:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #18243a;
  background: #f5f7fb;
  --ink: #18243a;
  --muted: #556581;
  --line: #dce3ef;
  --surface: #fff;
  --surface-alt: #f5f7fb;
  --indigo: #4741c8;
  --indigo-hover: #3b35ac;
  --indigo-light: #eeedff;
  --positive: #17624f;
  --negative: #a52d3c;
  --radius: 12px;
  --page-width: 1256px;
  --page-padding: clamp(16px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 760; letter-spacing: -.035em; }
h2 { font-size: clamp(1.2rem, 2.35vw, 1.55rem); font-weight: 730; letter-spacing: -.025em; }
h3 { font-size: 1.03rem; font-weight: 700; }
h4 { font-size: .92rem; font-weight: 700; }
p + p { margin-top: .55rem; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-hover); }
img { display: block; max-inline-size: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid #7770e9; outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: fixed;
  top: .7rem;
  left: .7rem;
  z-index: 20;
  padding: .65rem .9rem;
  border-radius: 8px;
  transform: translateY(-200%);
  background: var(--indigo);
  color: #fff;
}
.skip-link:focus { transform: none; color: #fff; }
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(100%, calc(var(--page-width) + 2 * var(--page-padding)));
  margin-inline: auto;
  padding: 10px var(--page-padding);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .68rem;
  color: var(--ink);
  font-size: 1.025rem;
  font-weight: 750;
  letter-spacing: -.025em;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--indigo); }
.brand-mark {
  width: 34px;
  height: 34px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--indigo);
  border-radius: 9px;
}
.brand-mark span { border-radius: 2px; background: #fff; }
.brand-mark span:nth-child(2) { opacity: .54; }
.brand-mark span:nth-child(3) { opacity: .72; }
#account { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 7px; color: var(--muted); font-size: .875rem; }
#account:empty { display: none; }
.topbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
#notice {
  position: fixed;
  z-index: 15;
  inset: auto 24px 22px auto;
  max-width: min(465px, calc(100% - 32px));
  border: 1px solid #d6d4fb;
  border-radius: 10px;
  padding: 12px 15px;
  background: #fff;
  box-shadow: 0 8px 30px #24376122;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#notice:empty { display: none; }
#notice[data-tone="danger"], #notice[data-tone="error"], #notice.error { border-color: #efc8cf; background: #fff5f6; color: var(--negative); }
#notice[data-tone="success"] { border-color: #ccebdd; background: #effaf4; color: var(--positive); }
.initial-state { max-width: var(--page-width); margin: 46px auto; padding-inline: var(--page-padding); color: var(--muted); }

.workspace {
  display: grid;
  grid-template-columns: minmax(160px, 207px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3vw, 37px);
  width: min(100%, calc(var(--page-width) + 2 * var(--page-padding)));
  margin-inline: auto;
  padding: clamp(22px, 4vw, 42px) var(--page-padding) 54px;
}
.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.sidebar nav { display: grid; gap: 4px; min-width: 0; }
.side-label {
  margin: 8px 9px 3px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 650;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.nav-button:hover { background: var(--surface-alt); color: var(--ink); }
.nav-button[aria-current="true"], .nav-button[aria-current="page"] {
  border-color: #dedbfd;
  color: #3930a9;
  background: var(--indigo-light);
  font-weight: 720;
}
.main-panel { min-width: 0; }
.main-panel > * + * { margin-top: 20px; }
.workspace:has(> .main-panel:only-child) {
  grid-template-columns: minmax(0, 34rem);
  justify-content: center;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 13px 18px;
}
.section-head > * { min-width: 0; }
.section-head p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: .91rem; }
.eyebrow { color: var(--indigo); font-size: .77rem; font-weight: 720; margin-bottom: 6px; }
.muted { color: var(--muted); }
small, .small { font-size: .8125rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.tabs :where(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 620;
  text-decoration: none;
}
.tabs :where(button, a):hover { background: var(--surface-alt); color: var(--ink); }
.tabs :is([aria-selected="true"], [aria-current="true"], [aria-pressed="true"], .active, .selected) {
  border-color: #dedbfd;
  background: var(--indigo-light);
  color: #3930a9;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid #cbd5e5;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover:not(:disabled) { background: #f0f3fa; border-color: #aebbd0; color: var(--ink); }
.button.primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.button.primary:hover:not(:disabled) { background: var(--indigo-hover); border-color: var(--indigo-hover); color: #fff; }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.ghost:hover:not(:disabled) { background: var(--surface-alt); border-color: transparent; color: var(--ink); }
.button.danger { background: #fff4f5; border-color: #efc8cf; color: var(--negative); }
.button.danger:hover:not(:disabled) { background: #fce7ea; border-color: #db9da7; color: var(--negative); }
.button:disabled { opacity: .6; }
.button.small { min-height: 33px; padding: 5px 9px; }

.card {
  min-width: 0;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card > * + * { margin-top: 13px; }
.record-list {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.record-row + .record-row { border-top: 1px solid var(--line); }
.record-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(126px, .29fr) auto;
  align-items: center;
  gap: 12px 18px;
  padding: 13px 16px;
}
.record-row:has(.record-toggle[aria-expanded="true"]) > .record-head { background: #f8f8ff; }
.record-info { min-width: 0; overflow-wrap: anywhere; }
.record-info h2 { font-size: 1rem; letter-spacing: 0; }
.record-location { margin-top: 4px; font-size: .84rem; color: var(--muted); }
.record-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
}
.record-meta { display: grid; justify-items: start; gap: 4px; min-width: 0; }
.record-meta .price { font-size: 1rem; }
.record-clock { color: var(--muted); font-size: .77rem; font-variant-numeric: tabular-nums; }
.record-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.record-actions .button { white-space: nowrap; }
.record-toggle.button { color: var(--indigo); }
.disclosure-arrow {
  inline-size: 7px;
  block-size: 7px;
  margin: -3px 1px 0 3px;
  border-block-end: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}
[aria-expanded="true"] > .disclosure-arrow { margin-block-start: 3px; transform: rotate(225deg); }
.record-panel { padding: 16px; border-top: 1px solid var(--line); background: var(--surface-alt); }
.offer-details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: 16px 22px; }
.offer-media, .offer-detail-content { min-width: 0; }
.offer-detail-content { display: grid; gap: 12px; align-content: start; }
.asset-spec { font-size: .85rem; }
.asset-spec p + p { margin-top: 4px; }
.full-description { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .875rem; }
.offer-enabled { align-self: end; min-height: 40px; }
.offer-details .plan-prices { grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr)); }
.order-details { display: grid; gap: 12px; }
.order-details .facts { margin: 0; }
.edit-section {
  min-width: 0;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.edit-section[open] { padding-bottom: 12px; }
.edit-section form { margin-top: 8px; }
.creative-material { display: flex; align-items: start; flex-wrap: wrap; gap: 10px 14px; }
.creative-material > .field { flex: 1 1 210px; }
.material-images { display: flex; flex-wrap: wrap; gap: 8px; }
.material-images .asset-preview { width: 108px; height: 78px; }
.support-link strong { color: var(--indigo); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  min-height: 23px;
  padding: 2px 8px;
  border: 1px solid #e0e5ed;
  border-radius: 999px;
  background: #f1f4f8;
  color: #45566f;
  font-size: .73rem;
  font-weight: 690;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.badge:is([data-tone="open"], [data-tone="success"], [data-tone="active"], [data-tone="good"], [data-tone="green"]) {
  border-color: #c8e8db;
  background: #eaf7f1;
  color: var(--positive);
}
.badge:is([data-tone="pending"], [data-tone="warning"], [data-tone="warn"], [data-tone="amber"]) {
  border-color: #f3dfb2;
  background: #fff4d9;
  color: #754d13;
}
.badge:is([data-tone="info"], [data-tone="indigo"], [data-tone="blue"]) {
  border-color: #dad7fd;
  background: var(--indigo-light);
  color: #3930a9;
}
.badge:is([data-tone="danger"], [data-tone="error"], [data-tone="red"]) {
  border-color: #f0ccd2;
  background: #fff0f1;
  color: var(--negative);
}
.price { color: var(--ink); font-size: 1.18rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.price :is(small, span) { color: var(--muted); font-size: .78rem; font-weight: 630; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 116px), 1fr));
  gap: 10px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.facts dt { color: var(--muted); font-size: .76rem; }
.facts dd, .facts strong { font-weight: 680; color: var(--ink); overflow-wrap: anywhere; }
.facts:has(> dt) { grid-template-columns: minmax(80px, auto) minmax(0, 1fr); }

.offer-preview {
  position: relative;
  min-height: 76px;
  height: clamp(78px, 8vw, 110px);
  overflow: hidden;
  border: 1px solid #e1e5fb;
  border-radius: 9px;
  background: #eff2ff;
  isolation: isolate;
}
.offer-preview::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 50%;
  width: min(65%, 156px);
  transform: translateX(-50%);
  border: 1px solid #cbd3ee;
  border-radius: 5px;
  background:
    radial-gradient(circle, #a8b4d6 1px, transparent 1.5px) 5px 4px / 4px 4px repeat-x,
    linear-gradient(#e2e8f7, #e2e8f7) 13% 36% / 70% 4px no-repeat,
    linear-gradient(#e7ebf6, #e7ebf6) 13% 49% / 65% 3px no-repeat,
    linear-gradient(#e7ebf6, #e7ebf6) 13% 61% / 72% 3px no-repeat,
    linear-gradient(#e7ebf6, #e7ebf6) 13% 73% / 55% 3px no-repeat,
    #fff;
  box-shadow: 0 2px 8px #27315c12;
}
.offer-preview::after {
  content: "";
  position: absolute;
  top: 29%;
  left: 50%;
  width: min(49%, 117px);
  height: 8px;
  transform: translateX(-50%);
  border: 1px solid #726ae2;
  border-radius: 3px;
  background: #b9b2ff;
}
.offer-preview:is([data-shape="list"], [data-shape="listing_top_banner"])::after { top: 39%; }
.offer-preview:is([data-shape="article"], [data-shape="article-top"], [data-shape="article_top_banner"])::after { top: 44%; }
.offer-preview:is([data-shape="middle"], [data-shape="article-middle"], [data-shape="article_middle_banner"])::after { top: 60%; }
.offer-preview:is([data-shape="bottom"], [data-shape="footer"], [data-shape="site_bottom_banner"], [data-shape="article_bottom_banner"])::after { top: auto; bottom: 19%; }
.offer-preview[data-shape="site_bottom_banner"]::after { bottom: 14%; }
.form-grid > .offer-preview { grid-column: 1 / -1; }
.offer-preview:is([data-shape="popup"], [data-shape="modal"], [data-shape="splash"], [data-shape="popup_icon"], [data-shape="popup-grid"])::after {
  top: 50%;
  width: min(38%, 78px);
  height: 43%;
  transform: translate(-50%, -47%);
  background: #d8d3ff;
  box-shadow: 0 4px 9px #40329733;
}
.offer-preview:is([data-shape="grid"], [data-shape="button-grid"], [data-shape="article_button_grid"], [data-shape="popup_icon"], [data-shape="popup-grid"])::after {
  background:
    repeating-linear-gradient(90deg, #8d83ef 0 18%, transparent 18% 25%) center 30% / 76% 5px no-repeat,
    repeating-linear-gradient(90deg, #8d83ef 0 18%, transparent 18% 25%) center 68% / 76% 5px no-repeat,
    #e0dcff;
}
.offer-preview:is([data-shape="grid"], [data-shape="button-grid"], [data-shape="article_button_grid"])::after { top: 66%; height: 16%; }
.offer-preview[data-shape="splash"]::after { width: min(57%, 122px); height: 62%; }
.offer-preview:is([data-shape="float"], [data-shape="floating"], [data-shape="floating_bottom_right"])::after {
  top: auto;
  bottom: 17%;
  left: min(76%, calc(50% + 61px));
  width: 21px;
  height: 16px;
  transform: translateX(-100%);
}
.offer-preview:is([data-shape="mobile"], [data-shape="mobile-bar"], [data-shape="mobile_bottom_bar"])::before { width: 40px; }
.offer-preview:is([data-shape="mobile"], [data-shape="mobile-bar"], [data-shape="mobile_bottom_bar"])::after {
  top: auto;
  bottom: 16%;
  width: 33px;
  height: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px 16px;
}
.card.form-grid > * + * { margin-top: 0; }
.field {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 620;
}
.field small, .field .muted { font-size: .79rem; font-weight: 470; }
.field :where(input, select, textarea), .form-grid > :where(input, select, textarea) { width: 100%; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cbd5e5;
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 470;
}
input::placeholder, textarea::placeholder { color: #61708a; opacity: 1; }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--surface-alt); }
input[type="checkbox"], input[type="radio"] { width: 1rem; height: 1rem; accent-color: var(--indigo); vertical-align: middle; }
input[type="file"] { max-width: 100%; padding: 6px; color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: 7px;
  border: 0;
  border-radius: 5px;
  padding: 4px 7px;
  background: var(--indigo-light);
  color: #3930a9;
  font: inherit;
  cursor: pointer;
}
textarea { min-height: 88px; resize: vertical; }
.field:has(textarea), .field.wide, .span-two, .form-actions { grid-column: 1 / -1; }
.field:has(> :is(input[type="checkbox"], input[type="radio"])) {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
}
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .86rem; }
th, td { padding: 11px 12px; text-align: left; vertical-align: middle; }
thead th { border-bottom: 1px solid var(--line); background: #f2f5fa; color: #43546d; font-weight: 710; white-space: nowrap; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: #f8faff; }
td .toolbar { flex-wrap: nowrap; }
td .button { white-space: nowrap; }
code, .monospace {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .83em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.empty {
  padding: clamp(22px, 5vw, 42px) 16px;
  border: 1px dashed #bfcbe0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}
.empty > * + * { margin-top: 8px; }
.asset-preview {
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  min-height: 74px;
  max-height: 220px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
  object-fit: contain;
}
.asset-preview img { max-height: 204px; max-width: 100%; object-fit: contain; }

.overlay {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #18243a88;
}
body:has(.overlay:not([hidden])) { overflow: hidden; }
.dialog {
  width: min(100%, 600px);
  max-height: min(calc(100dvh - 32px), 850px);
  overflow: auto;
  padding: clamp(16px, 4vw, 27px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 22px 64px #17243b48;
}
dialog.dialog { margin: auto; }
dialog.dialog::backdrop { background: #18243a88; }
.dialog > * + * { margin-top: 13px; }
.dialog .section-head { align-items: center; }

.placement-photo { display: block; min-width: 0; margin: 0; }
.placement-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.placement-photo figcaption { padding-top: .25rem; color: var(--muted); font-size: .75rem; }
.plan-prices { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; font-size: .875rem; color: var(--muted); }
.payment-code { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.payment-code > div { flex: 1 1 13rem; }
.payment-code img { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 8px; }
.offer-heading h2 { margin: 0; }
.offer-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.offer-heading h2 { font-size: 1rem; }
.auth-form { max-width: 34rem; }
.fields-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.check input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--indigo); }
.order-card summary { cursor: pointer; min-height: 2rem; padding: .3rem 0; color: var(--indigo); font-weight: 650; }
.wrap-text { overflow-wrap: anywhere; }
.placement-list { display: grid; gap: 1rem; margin-top: 1rem; }
.placement-preview { display: grid; gap: .75rem; }
.placement-preview p { margin: 0; }
.preview-dialog { width: min(560px, calc(100% - 24px)); max-height: 85dvh; overflow: auto; }
.preview-dialog h2 { margin: 0; }
.preview-placement-media { display: grid; gap: .8rem; min-width: 0; }
.preview-placement-media[data-placement="popup_icon"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(5px, 2vw, 12px); }
.preview-placement-media[data-placement="article_button_grid"] { grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr)); }
.preview-creative { display: grid; gap: .35rem; min-width: 0; overflow-wrap: anywhere; color: inherit; }
.preview-creative img { width: 100%; display: block; max-height: 58dvh; object-fit: contain; border-radius: 9px; }
.preview-placement-media[data-placement="popup_icon"] .preview-creative img { aspect-ratio: 1; }
.preview-placement-media[data-placement="popup_icon"] .preview-creative { font-size: .8rem; text-align: center; }
.preview-placement-media[data-placement="floating_bottom_right"] { max-width: min(210px, 100%); margin-left: auto; }

@media (max-width: 800px) {
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 18px; }
  .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 4px; padding: 6px; }
  .sidebar nav { display: contents; }
  .sidebar .side-label { grid-column: 1 / -1; margin: 4px 6px 0; }
  .nav-button { justify-content: center; padding-inline: 7px; text-align: center; }
}
@media (max-width: 540px) {
  .topbar-inner { flex-wrap: wrap; gap: 7px; min-height: 59px; }
  .brand { gap: .42rem; font-size: .94rem; }
  .brand-mark { width: 29px; height: 29px; padding: 6px; border-radius: 7px; }
  #account { justify-content: flex-start; overflow-wrap: anywhere; font-size: .79rem; }
  #account .button { min-height: 38px; padding-inline: 8px; }
  #notice { inset: auto 16px 16px 16px; }
  .main-panel > * + * { margin-top: 15px; }
  .section-head { flex-wrap: wrap; }
  .record-head { grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 6px 10px; padding: 10px 12px; }
  .record-meta { max-width: 132px; justify-items: end; text-align: right; }
  .record-actions { grid-column: 1 / -1; }
  .record-panel { padding: 12px; }
  .offer-details { grid-template-columns: minmax(0, 1fr); }
  .offer-preview { height: 74px; min-height: 74px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .button, .nav-button { min-height: 44px; }
  .field :is(input, select, textarea) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
