@font-face {
  font-family: Inter;
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7f4;
  --surface: #f2f1ed;
  --hover: #e6e5e0;
  --ink: #26251e;
  --muted: color-mix(in srgb, var(--ink) 70%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --control: color-mix(in srgb, var(--ink) 20%, transparent);
  --accent: #f54e00;
  --accent-text: color-mix(in srgb, var(--accent) 63%, var(--ink));
  --tint: color-mix(in srgb, var(--accent) 10%, var(--paper));
  --field-background: var(--surface);
  --radius: 9px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1, h2, h3, p { margin: 0; }
strong, th { font-weight: 520; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .53; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.mono, input[inputmode=decimal], input[inputmode=numeric], input[type=number], input[name=codigo], input[name=frecuencia],
.step b, #station-count, #selection-note, .summary-stat dd, .summary-total strong, .line-head h3 span {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.topbar { background: var(--paper); }
.top-inner {
  width: min(1200px, calc(100% - 64px));
  min-height: 65px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; border: 0; background: none; padding: 0; }
.brand-mark {
  width: 64px; height: 26px;
  background: url("/crn-logo.png") center / 135.5% auto no-repeat;
  mix-blend-mode: multiply;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav button {
  min-height: 35px; padding: 0 13px; border-radius: 6px; border: 0;
  color: var(--muted); background: transparent; font-size: 12px; font-weight: 450;
}
.nav button:hover, .nav button[aria-current] { color: var(--ink); background: var(--hover); }
.nav button[aria-current] { font-weight: 510; }
.account { justify-self: end; display: flex; flex-direction: row-reverse; align-items: center; gap: 9px; min-width: 0; font-size: 12px; font-weight: 450; }
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.avatar { display: grid; place-items: center; background: var(--hover); color: var(--ink); width: 31px; height: 31px; flex: 0 0 auto; border-radius: 50%; font-size: 10px; font-weight: 500; }

#app { width: min(1200px, calc(100% - 64px)); margin: 51px auto 72px; }
.loading { padding: 32px 0; color: var(--muted); }
.page-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1 { font-size: clamp(23px, 3vw, 28px); font-weight: 475; letter-spacing: -.04em; line-height: 1.16; }
h2 { font-size: 18px; font-weight: 500; letter-spacing: -.03em; line-height: 1.24; }
h3 { font-size: 14px; font-weight: 520; letter-spacing: -.015em; }
.subtitle { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(246px, 278px);
  align-items: stretch; border-radius: var(--radius); background: var(--surface);
}
.layout > section { min-width: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--paper); }
.layout > section > .card { border-radius: inherit; }
.stepper, .footer { border-top: 1px solid var(--line); }
.stepper {
  display: flex; gap: 22px; padding-inline: 24px;
}
.step {
  min-width: 0; display: flex; align-items: center; gap: 7px;
  min-height: 49px; padding: 6px 2px; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); background: transparent; font-size: 12px; font-weight: 460;
}
.step:not(:disabled):hover { color: var(--ink); }
.step:focus-visible { outline-offset: -2px; }
.step b { font-size: 10px; font-weight: 500; }
.step[aria-current] { color: var(--ink); border-color: var(--accent); font-weight: 520; }
.step[aria-current] b { color: var(--accent-text); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.card-head { padding: 24px 24px 18px; }
.card-content { padding: 0 24px 22px; }
.section-divider { border-top: 1px solid var(--line); padding-top: 12px; }
.client-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.client-fields > .section-divider { margin-top: 14px; }
.client-fields.contact-fields { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.contact-picker { max-width: 320px; margin: 10px 0 12px; }
.contact-assignments { list-style: none; margin: 6px 0 0; padding: 0; }
.contact-assignments li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.client-logo-button {
  display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  color: var(--muted); font-size: 12px; font-weight: 500;
}
.client-logo-button:hover:not(:disabled) { border-color: var(--accent); background: var(--hover); }
.client-logo-button .client-mark { width: 100%; height: 100%; outline: 0; }
.client-mark {
  display: grid; place-items: center; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  background: var(--surface); outline: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.quote-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quote-preview-logos { display: flex; gap: 8px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.client-fields .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.directory-field { min-width: 0; }
.client-field-label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 500; }
.directory-control { display: flex; align-items: center; gap: 8px; }
.directory-input { position: relative; flex: 1; min-width: 0; }
.directory-input:has([aria-expanded="true"]) { z-index: 2; }
.directory-input[data-can-choose="true"]:not(:has(.directory-add:not([hidden])))::after {
  content: ""; position: absolute; right: 13px; top: 14px; width: 6px; height: 6px; pointer-events: none;
  border: solid var(--muted); border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.directory-input[data-can-choose="true"] input { padding-inline-end: 30px; }
.directory-input:has(.directory-add:not([hidden])) input { padding-inline-end: 40px; }
.directory-add {
  position: absolute; inset-block: 3px; inset-inline-end: 3px; width: 32px; padding: 0;
  border: 0; border-radius: 4px; background: var(--hover); color: var(--accent-text); font-size: 18px; line-height: 1;
}
.directory-add:hover { background: var(--control); }
.directory-hint { display: block; margin-top: 5px; }
.directory-menu {
  position: absolute; inset-inline: 0; top: calc(100% + 4px); max-height: 166px; overflow-y: auto;
  padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 5px 16px #26251e16;
}
.directory-option { display: block; width: 100%; min-height: 32px; padding: 6px; border: 0; border-radius: 4px; color: var(--ink); background: transparent; text-align: left; overflow-wrap: anywhere; font-size: 12px; }
.directory-option:hover, .directory-option.is-active, .directory-option[aria-selected="true"] { background: var(--hover); }
.directory-empty { padding: 7px 6px; }
.date-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 6px; width: 100%; min-height: 38px;
  padding: 7px 10px; border: 0; border-radius: 6px; background: var(--field-background); color: var(--ink); font-size: 13px; text-align: left;
}
.date-trigger:hover { background: var(--hover); }
.date-trigger::after {
  content: ""; width: 11px; height: 10px; flex: 0 0 auto; border: 1px solid currentColor; border-top-width: 3px; border-radius: 2px;
}
.quote-calendar {
  position: fixed; inset: auto; margin: 0; width: min(355px, calc(100% - 16px));
  padding: 13px; overflow: auto; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px #26251e24;
}
.calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.calendar-heading strong { font-size: 14px; font-weight: 520; }
.calendar-arrow { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 20px; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 1fr; justify-items: center; gap: 2px; }
.calendar-weekdays { color: var(--muted); font-size: 11px; font-weight: 510; padding-block: 6px 9px; }
.calendar-day {
  width: min(100%, 40px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); font-size: 13px;
}
.calendar-day[aria-current="date"] { box-shadow: inset 0 0 0 1px var(--control); }
.calendar-day:hover, .calendar-arrow:hover { background: var(--hover); }
.calendar-day[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.calendar-clear { width: 100%; margin-top: 11px; padding: 11px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; }
.calendar-clear:hover { color: var(--ink); }
label.field { display: grid; gap: 6px; font-size: 11px; font-weight: 500; min-width: 0; align-content: start; }
.field.wide { grid-column: 1 / -1; }
input, select, textarea {
  display: block; width: 100%; min-width: 0; min-height: 38px; border: 1px solid transparent; border-radius: 6px;
  padding: 8px 11px; background: var(--field-background); color: var(--ink); font-size: 13px; font-weight: 420;
}
input:hover, select:hover, textarea:hover { background: var(--hover); }
textarea { resize: vertical; min-height: 76px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
.station-search { margin-bottom: 13px; }
.department-filters { margin-bottom: 11px; }
#department-filter-label { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 510; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; margin: -4px; }
.filter-chip {
  flex: 0 0 auto; min-height: 29px; padding: 4px 10px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 460; white-space: nowrap;
}
.filter-chip:hover { background: var(--hover); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.selection-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 9px; min-height: 26px; color: var(--muted); font-size: 11px; font-weight: 450; }
.selection-bar > :first-child { margin-right: auto; }
.station-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; max-height: 346px;
  overflow: auto; padding: 5px 4px; margin: 0 -4px; border-top: 1px solid var(--line);
  scrollbar-color: var(--control) transparent; align-content: start;
}
.station, .station-assignment {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 49px;
  padding: 8px 9px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); text-align: left;
}
.station:hover, .station-assignment:hover { background: var(--hover); }
.station:focus-visible, .station-assignment:focus-visible { outline-offset: -2px; }
.station[aria-pressed="true"], .station-assignment[aria-pressed="true"] { background: var(--tint); box-shadow: inset 2px 0 var(--accent); }
.station-info { min-width: 0; display: grid; gap: 3px; }
.station strong { font-size: 12px; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.station small { font-size: 10px; line-height: 1.2; color: var(--muted); }
.frequency {
  margin-left: auto; flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 420; white-space: nowrap;
}
.station[aria-pressed="true"] .frequency { color: var(--accent-text); }
.footer {
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
}
.client-footer { justify-content: flex-end; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px;
  padding: 8px 15px; border: 0; background: var(--hover); border-radius: 999px;
  color: var(--ink); font-size: 12px; font-weight: 490; text-decoration: none; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--control); }
.btn.primary { color: var(--paper); background: var(--ink); }
.btn.primary:hover:not(:disabled) { background: #3b3a33; }
.btn.quiet { background: transparent; }
.btn.small { padding: 6px 9px; min-height: 34px; }
.link { color: var(--accent-text); border: 0; background: none; text-align: left; padding: 3px; font-weight: 500; font-size: inherit; }
.link:hover:not(:disabled) { text-decoration: underline; }

.summary {
  position: sticky; top: 18px; align-self: start;
  background: transparent; border: 0; border-radius: 0;
}
.summary .card-head { padding: 25px 22px 17px; }
.summary h2 { font-size: 16px; }
.summary-facts { display: grid; margin: 0; padding: 0 22px; }
.summary-client { display: grid; gap: 6px; padding-bottom: 15px; }
.summary-facts dt { color: var(--muted); font-size: 12px; }
.summary-facts dd { margin: 0; font-weight: 490; overflow-wrap: anywhere; }
.summary-client dd { font-size: 13px; min-height: 18px; }
.summary-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 7px 0; }
.summary-client + .summary-stat { border-top: 1px solid var(--control); }
.summary-stat dd { font-size: 12px; }
.summary-total { margin: 1px 22px 0; padding: 15px 0 21px; border-top: 1px solid var(--control); display: grid; gap: 7px; }
.summary-total span { color: var(--muted); font-size: 12px; }
.summary-total strong { font-size: clamp(22px, 2.6vw, 26px); font-weight: 485; line-height: 1.13; letter-spacing: -.06em; overflow-wrap: anywhere; }

.add-bar, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.add-bar { margin-bottom: 14px; }
.choice-group { display: flex; align-items: center; gap: 10px; }
.choice-pills { gap: 5px; }
.choice-pills .btn[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.choice-separator { color: var(--muted); font: 12px var(--mono); }
.product-toolbar { margin-bottom: 14px; }
.editor-bulk { margin-inline-start: auto; justify-content: flex-end; gap: 2px; }
.editor-bulk .btn { color: var(--muted); }
.editor-bulk .btn:hover { color: var(--ink); }
.preview-total > .note { display: block; }
.list { display: grid; gap: 12px; }
.line, .charge-line { --field-background: var(--paper); }
.line { border-radius: 7px; padding: 15px; display: grid; gap: 12px; background: var(--surface); min-width: 0; }
.line-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.line-head .actions { justify-content: flex-end; }
.line-head span { font-size: 12px; color: var(--muted); }
.line-head button { color: var(--accent-text); }
.line > .line-head { align-items: center; }
.line > .line-head h3 { min-width: 0; }
.line > .line-head > .btn { flex: 0 0 auto; }
.editor-toggle { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0; border: 0; background: transparent; text-align: left; overflow-wrap: anywhere; }
.line-head .editor-toggle { color: var(--ink); }
.editor-toggle::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; border-radius: 1px; transform: translateY(-2px) rotate(45deg); }
.editor-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.editor-body { display: grid; gap: 12px; }
.editor-body > .list { padding-left: 10px; }
.editor-body > .list > .line { --field-background: var(--surface); background: var(--paper); }
.scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; max-height: 180px; overflow: auto; border-top: 1px solid var(--line); }
.station-assignment { min-height: 37px; font-size: 12px; overflow-wrap: anywhere; }
.rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.empty { padding: 21px 15px; color: var(--muted); background: var(--surface); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.note { font-size: 12px; line-height: 1.48; color: var(--muted); }
.notice { padding: 12px; border-radius: 6px; background: var(--tint); color: var(--accent-text); font-size: 12px; overflow-wrap: anywhere; }
.quote-item, .catalog-row { padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.quote-item:last-child, .catalog-row:last-child { border-bottom: 0; }
.quote-item p, .catalog-row p { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.catalog-row h3, .quote-item h3 { font-size: 13px; }
.history-list { max-width: 960px; }
.history-list > .card-content:has(> :is(.catalog-row, .quote-item))::before { content: ""; display: block; border-top: 1px solid var(--line); }
.history-list > .card-content:has(> .directory-filters)::before { content: none; }
.directory-filters { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.catalog-entry, .catalog-logo-editor { display: flex; align-items: center; gap: 10px; min-width: 0; }
.catalog-entry .client-mark, .catalog-logo-preview .client-mark { width: 34px; height: 34px; font-size: 11px; }
.catalog-entry + .actions { justify-content: flex-end; }
.catalog-entry + .actions .link { font-size: 11px; white-space: nowrap; }
.catalog-logo-editor { flex-wrap: wrap; }
.catalog-logo-editor .field { flex: 1 1 195px; }
.panel-tabs { margin-bottom: 13px; }
#modal { width: min(650px, calc(100% - 30px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--paper); box-shadow: 0 20px 60px #26251e35; }
#modal::backdrop { background: #26251e75; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px 22px; display: grid; gap: 14px; }
.modal-body .actions { margin-top: 4px; }
.directory-option:focus-visible { outline-offset: -2px; }
#toast { position: fixed; bottom: 20px; right: 20px; max-width: min(390px, calc(100% - 40px)); z-index: 8; background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 7px; box-shadow: 0 10px 28px #26251e30; font-size: 14px; }
#toast:empty { display: none; }
.preview-paper { background: var(--surface); border-radius: 7px; padding: 19px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
.client-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; margin: 0; font-size: 13px; }
.client-preview > div {
  display: grid; grid-template-columns: fit-content(46%) minmax(0, 1fr); gap: 10px;
  align-items: center; padding-block: 7px; border-bottom: 1px solid var(--line);
}
.client-preview > div:last-child { border-bottom: 0; }
.client-preview dt { color: var(--muted); text-align: left; }
.client-preview dd { margin: 0; font-weight: 510; overflow-wrap: anywhere; text-align: right; }
.quote-table-scroll { overflow-x: auto; }
.quote-table { border-collapse: collapse; width: 100%; min-width: 345px; font-size: 12px; line-height: 1.45; }
.quote-table th, .quote-table td { text-align: right; vertical-align: top; padding: 7px 5px; border-top: 1px solid var(--line); }
.quote-table thead { background: var(--paper); }
.quote-table th:first-child, .quote-table .quote-detail td { text-align: left; }
.quote-table tbody th { width: 35%; overflow-wrap: anywhere; }
.quote-table .mono { white-space: nowrap; }
.quote-table .quote-package { background: var(--paper); }
.quote-table .quote-included th, .quote-table .quote-included.quote-detail td { padding-left: 15px; }
.quote-table .quote-detail td { padding-top: 0; border-top: 0; color: var(--muted); overflow-wrap: anywhere; }
.preview-total { text-align: right; padding: 12px; border-top: 1px solid var(--line); background: var(--hover); font-size: 16px; }
.preview-total .mono { margin-left: 6px; color: var(--accent-text); }
.quote-disclaimer { font-size: 11px; }
.charge-line { min-width: 0; margin: 0; padding: 10px 13px 13px; background: var(--surface); border: 0; border-radius: 7px; }
.charge-line legend { padding: 0 4px; font-size: 12px; font-weight: 510; }
.pricing-breakdown { margin: 0; border-top: 1px solid var(--line); font-size: 13px; }
.pricing-breakdown div { display: flex; justify-content: space-between; gap: 9px; padding: 7px 3px; border-bottom: 1px solid var(--line); }
.pricing-breakdown div:last-child { border-bottom: 0; }
.pricing-breakdown dd { margin: 0; text-align: right; white-space: nowrap; }
.coverage-preview { overflow-wrap: anywhere; }
.coverage-table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.4; }
.coverage-table th, .coverage-table td { padding: 8px 7px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.coverage-table thead { background: var(--paper); }
.coverage-table thead th { font-weight: 520; }
.coverage-table tbody th { font-weight: 490; }
.repeater-detail { display: block; margin-top: 2px; font-weight: 400; }
.coverage-table tr > :last-child { text-align: right; }
.coverage-table .mono { white-space: nowrap; }
.export-img { display: block; width: min(100%, 460px); height: auto; margin: auto; border: 1px solid var(--line); }
.export-link { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.export-link-controls { display: flex; align-items: center; gap: 8px; }
.export-link-controls input { flex: 1; min-width: 0; }
.export-link-controls .btn { white-space: nowrap; }
#export-link-status:empty { display: none; }

.shared-quote { max-width: 870px; margin: 0 auto; padding: 24px clamp(12px, 4vw, 36px) 40px; }
.shared-heading { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 14px; }
.shared-heading h1 { font-size: 16px; }
.shared-heading .quote-preview-logos { gap: 4px; }
.shared-crn-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #000; overflow: hidden; }
.shared-crn-mark img { flex: none; width: 135%; max-width: none; filter: invert(1); }
.shared-quote .coverage-preview { margin-top: 16px; }
.shared-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 10px 0; border-block: 1px solid var(--line); }
.shared-metrics dt { color: var(--muted); font-size: 11px; }
.shared-metrics dd { font-size: 16px; margin: 3px 0 0; }
@media (max-width: 480px) {
  .shared-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 741px) {
  .client-preview > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}
@media (min-width: 741px) and (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 225px; }
  .client-fields .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .station-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 740px) {
  .top-inner, #app { width: calc(100% - 28px); }
  #app { margin-top: 28px; }
  .top-inner { min-height: 61px; display: flex; gap: 9px; justify-content: space-between; }
  #account-name { display: none; }
  .brand-mark { width: 54px; }
  .nav { gap: 2px; }
  .nav button { padding-inline: 7px; min-height: 32px; font-size: 11.5px; }
  .avatar { width: 26px; height: 26px; font-size: 10px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > section { border-radius: var(--radius) var(--radius) 0 0; }
  .summary { position: static; }
  .page-title { align-items: start; flex-wrap: wrap; margin-bottom: 19px; gap: 11px; }
  .card-head, .card-content, .footer { padding-inline: 16px; }
  .stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 5px; padding-inline: 13px; }
  .step { min-height: 40px; padding: 6px; gap: 5px; justify-content: center; font-size: 11.5px; }
  .step b { font-size: 10px; }
  .footer { flex-wrap: wrap; }
  .filter-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--control) transparent; }
  .filter-chip { min-height: 40px; }
  .client-fields .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-preview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 490px) {
  .product-toolbar { column-gap: 6px; }
  .pricing-mode { flex-basis: 100%; }
  .choice-group { gap: 7px; }
  .choice-pills .btn { padding-inline: 6px; font-size: 11.5px; }
  .client-type-fields .choice-pills .btn { padding-inline: 5px; font-size: 11px; }
  .editor-bulk .btn { padding-inline: 3px; font-size: 11px; }
  .client-fields .directory-fields { grid-template-columns: minmax(0, 1fr); }
  .stepper { padding-inline: 6px; gap: 3px; }
  .step { flex-direction: column; gap: 3px; min-height: 44px; padding-inline: 2px; font-size: 11px; }
  .station-grid { grid-template-columns: minmax(0, 1fr); max-height: 342px; }
  .footer .note { font-size: 11px; }
  .modal-body, .modal-head { padding-inline: 15px; }
  .preview-paper { padding: 12px; }
  .quote-table { min-width: 280px; }
  .quote-table th, .quote-table td { padding-inline: 3px; font-size: 10.5px; }
  .quote-table tbody th { width: 32%; }
  .coverage-table th, .coverage-table td { padding-inline: 4px; font-size: 11.5px; }
  .coverage-table .mono { white-space: normal; }
}
@media (max-width: 380px) {
  .fields, .rates, .scope-grid { grid-template-columns: minmax(0, 1fr); }
  .step { gap: 4px; }
  .nav button { padding-inline: 5px; }
}
