:root {
  color-scheme: light;
  --paper: #f2f0e9;
  --olive: #657044;
  --bg: var(--paper);
  --panel: #fcfbf7;
  --panel-raised: #eae9df;
  --ink: #19211d;
  --muted: #626b64;
  --faint: #6e7568;
  --line: #d2d6cd;
  --field-line: #a4aa98;
  --olive-soft: #e6e9d9;
  --green: #465c2f;
  --error: #a43121;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid #526c21; }
button { cursor: pointer; border: 0; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; }
button, a, summary { touch-action: manipulation; }
input, textarea, select { min-width: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(36px, 4.3vw, 54px); line-height: .98; letter-spacing: -.065em; margin: 19px 0 23px; }
h1 em { color: var(--olive); font-style: normal; }
h2 { font-size: 34px; line-height: 1.07; letter-spacing: -.045em; margin-bottom: 14px; }
h3 { font-size: 19px; line-height: 1.2; letter-spacing: -.025em; margin-bottom: 8px; }
.body-copy { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 500px; }
.fine-print, .help { color: var(--muted); font-size: 12px; line-height: 1.65; }
.help { margin: 0; }

.site-header, .site-footer, main { width: calc(100% - 80px); max-width: 1200px; margin: auto; }
.site-header { padding: 28px 0 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { font-family: var(--serif); letter-spacing: 6px; font-size: 28px; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.brand-mark { color: var(--green); font-size: 29px; letter-spacing: 0; font-family: var(--serif); }
.header-right { display: flex; gap: 24px; align-items: center; }
.header-label, .eyebrow, .section-kicker, .mini-label { font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: 1.5px; text-transform: uppercase; }
.header-label { color: var(--muted); }
main { min-height: 70vh; padding: 42px 0 76px; }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 32px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }
.site-footer a { text-underline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 24px; padding: 15px; background: var(--olive-soft); color: var(--ink); z-index: 200; }
.skip-link:focus { top: 12px; }
.loading-state { padding: 60px 0; text-align: center; }
.loading-state p { color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); }
.eyebrow:before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; flex-shrink: 0; }

.auth-layout { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: start; max-width: 1020px; margin: 36px auto 48px; }
.auth-intro { padding-top: 22px; }
.auth-intro .body-copy { max-width: 400px; }
.orbital { display: none; }
.auth-card { background: var(--panel); border: 1px solid var(--line); padding: 32px; border-radius: 4px; }
.auth-card h2 { font-size: 26px; margin-top: 19px; }
.auth-card .field { margin-top: 24px; }
.auth-card .primary { width: 100%; justify-content: space-between; margin-top: 24px; }
.auth-card .fine-print { margin-top: 22px; margin-bottom: 0; }
.auth-card .eyebrow { color: var(--muted); }
.auth-card input.code { font-family: var(--mono); font-size: 24px; letter-spacing: 6px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.field input, .field textarea, .field select, .search-input { width: 100%; padding: 12px 13px; border: 1px solid var(--field-line); border-radius: 3px; background: #fffefa; color: var(--ink); font-size: 14px; line-height: 1.5; }
.field input, .field select { min-height: 46px; }
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder, .search-input::placeholder { color: #71766b; opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus, .search-input:focus { border-color: #526c21; }
.field input[readonly] { background: var(--panel-raised); color: var(--muted); }
.field .help { font-size: 12px; }
.fields { display: grid; gap: 25px; }
.grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.span-full { grid-column: 1 / -1; }
.primary, .secondary, .danger, .small-button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; padding: 13px 18px; border-radius: 2px; line-height: 1.5; font-size: 13px; font-weight: 700; text-decoration: none; min-height: 46px; text-align: center; }
.primary { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.primary:hover { background: #405747; }
.secondary, .small-button { border: 1px solid var(--field-line); background: transparent; color: var(--ink); }
.secondary:hover, .small-button:hover { background: var(--panel-raised); }
.danger { border: 1px solid #bf8274; color: var(--error); background: transparent; }
.danger:hover { background: #f7e6df; }
.small-button { font-size: 11px; min-height: 36px; padding: 8px 11px; gap: 9px; }
.text-button { padding: 5px 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; line-height: 1.5; }
.text-button:hover { color: var(--ink); }
.arrow { font-size: 20px; line-height: 1; font-weight: 400; }
.error { color: var(--error); font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.error:empty { display: none; }

.page-lead { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-lead h1 { font-size: clamp(36px, 4.3vw, 54px); margin: 19px 0 23px; max-width: 640px; }
.page-lead .body-copy { font-size: 18px; line-height: 1.5; color: #48544b; margin: 0; max-width: 620px; }
.lead-actions { display: flex; gap: 10px; flex-shrink: 0; align-items: center; }
.client-shell { display: block; }
.client-shell > *, .brand-layout > *, .admin-grid > * { min-width: 0; }
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px 24px; position: static; margin-bottom: 32px; }
.client-card { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; }
.client-card .mini-label { display: none; }
.client-card h3 { font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.mini-label { color: var(--muted); font-size: 9px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { background: #e9eddc; border: 1px solid #c7cfb6; color: #41532c; font-size: 10px; font-weight: 600; line-height: 1.4; border-radius: 3px; padding: 5px 7px; }
.scope-note { font-size: 12px; line-height: 1.65; color: var(--muted); margin: 14px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.steps { display: flex; grid-column: 1 / -1; grid-row: 2; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.step { display: flex; align-items: center; gap: 9px; width: auto; min-width: max-content; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; text-align: left; color: var(--muted); font-size: 13px; padding: 15px 0; }
.step-num { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.step.current { background: transparent; color: var(--ink); border-bottom-color: var(--olive); font-weight: 700; }
.step.current .step-num { color: var(--olive); }
.step:hover { color: var(--ink); }
.step .done { margin-left: auto; font-size: 13px; color: var(--green); }
.save-status { font-size: 11px; line-height: 1.6; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 22px 11px 8px; }
.status-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.save-status.problem { color: var(--error); }
.save-status.problem .status-dot { background: var(--error); }
.save-status.saving .status-dot { background: var(--muted); animation: pulse 1.5s infinite; }
.sidebar-note { display: none; }
.sidebar .save-status { grid-row: 1; grid-column: 2; margin: 0; }
.identity-card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 28px; margin-bottom: 38px; }
.identity-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.identity-top h3 { font-size: 14px; margin: 0; }
.identity-top .help { font-size: 11px; }
.identity-card .field-label { font-size: 11px; }
.identity-card .field input { padding: 10px 12px; font-size: 13px; min-height: 42px; }
.content-panel { border: 0; border-radius: 0; background: transparent; padding: 0; }
.section-kicker { color: #405747; margin-bottom: 10px; }
.section-intro { max-width: 700px; font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 28px; }
.form-block + .form-block { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 30px; }
.block-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.block-heading h3 { margin: 0; }
.block-heading .help { margin-top: 7px; }
.contact-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); }
.item-card { border: 1px solid var(--line); padding: 22px; border-radius: 3px; background: var(--panel); margin-bottom: 16px; }
.item-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 20px; }
.item-heading h3 { margin: 0; }
.item-actions { display: flex; gap: 12px; align-items: center; }
.item-name { font-size: 13px; }
.inline-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-footer { display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.section-footer .help { font-size: 11px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: flex; align-items: center; gap: 9px; border: 1px solid var(--field-line); border-radius: 3px; padding: 10px 12px; font-size: 12px; cursor: pointer; background: #fffefa; min-height: 44px; }
.choice:has(input:checked) { border-color: #718746; color: #354824; background: #eaf1d5; }
.choice input { accent-color: #526c21; width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.choice-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice-group legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 10px; }

.format-note { border-left: 2px solid var(--olive); padding-left: 16px; max-width: 740px; font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.profile-actions .help { font-size: 12px; }
.brands-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.search-input { flex: 1; min-width: 100px; }
.brand-layout { display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 23px; align-items: start; }
.brand-list { display: grid; gap: 7px; max-height: 560px; overflow: auto; padding: 3px 6px 3px 3px; }
.brand-tab { border: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; border-radius: 3px; padding: 13px 12px; display: grid; gap: 7px; min-width: 0; }
.brand-tab strong { font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.brand-tab small { font-size: 10px; color: var(--muted); }
.brand-tab.current { border-color: var(--ink); background: #e7e8e0; }
.brand-tab.complete small { color: var(--green); }
.brand-editor { border-left: 1px solid var(--line); padding-left: 23px; min-width: 0; }
.brand-editor .fields { gap: 23px; }
.brand-editor .grid-two { gap: 16px; }
.brand-editor .item-heading { align-items: start; }
.brand-editor .item-actions { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.brand-editor .item-heading h3 { font-size: 23px; max-width: 240px; overflow-wrap: anywhere; }
.empty-state { border: 1px dashed var(--field-line); border-radius: 3px; text-align: center; padding: 34px 24px; }
.empty-state .empty-icon { font-size: 30px; color: var(--green); margin-bottom: 12px; }
.empty-state h3 { font-size: 21px; }
.empty-state p { max-width: 420px; color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 auto 22px; }
.empty-small { padding: 20px 5px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.note-box { padding: 16px 18px; border: 1px solid #c5cfac; border-radius: 3px; background: #eff2e6; color: #465637; font-size: 12px; line-height: 1.7; margin-bottom: 25px; }
.note-box p:last-child { margin-bottom: 0; }
.note-box strong { font-weight: 700; }
.conflict-banner { padding: 20px 23px; border: 1px solid #c6a963; border-radius: 3px; background: #faf0d5; margin-bottom: 22px; font-size: 13px; line-height: 1.6; }
.conflict-banner p { color: #655224; margin-bottom: 14px; }
.conflict-banner h3 { font-size: 16px; }
.conflict-banner .inline-actions { margin-top: 15px; }

.review-card { border-top: 1px solid var(--line); padding: 23px 0; }
.review-card:first-child { border-top: 0; padding-top: 0; }
.review-card .block-heading { margin-bottom: 14px; }
.review-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; margin: 0 0 14px; font-size: 13px; line-height: 1.7; }
.review-row dt { color: var(--muted); }
.review-row dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card details { border-top: 1px solid var(--line); padding: 13px 0; }
.review-card summary { cursor: pointer; font-size: 13px; line-height: 1.6; font-weight: 600; }
.review-card details .review-row { margin-top: 14px; }
.success-mark { height: 48px; width: 48px; display: grid; place-items: center; background: var(--olive-soft); color: var(--ink); border-radius: 50%; font-size: 24px; margin-bottom: 24px; }
.success-card { padding: 40px; text-align: left; }
.success-card h2 { font-size: 34px; }
.success-card .body-copy { max-width: 560px; }
.success-card .inline-actions { margin-top: 30px; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 36px); background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 4px; box-shadow: 0 8px 35px #19211d20; font-size: 13px; line-height: 1.5; z-index: 150; }
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; width: min(520px, calc(100vw - 36px)); padding: 30px; max-height: 85vh; overflow: auto; box-shadow: 0 20px 80px #19211d30; }
dialog::backdrop { background: #19211d66; backdrop-filter: blur(3px); }
.modal-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 14px; }
.modal-top h2 { font-size: 25px; margin: 0; }
.close-button { color: var(--muted); background: transparent; font-size: 26px; line-height: 1; padding: 8px; min-width: 40px; min-height: 40px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.modal-copy { color: var(--muted); font-size: 13px; line-height: 1.7; }
.share-link { font-family: var(--mono); font-size: 11px !important; word-break: break-all; min-height: 85px !important; }
.modal-divider { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 24px; }
.modal-divider h3 { font-size: 14px; }

.owner-shell { max-width: 1120px; margin: auto; }
.admin-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 32px; align-items: start; }
.admin-create { padding: 26px; }
.admin-create h2, .admin-list-heading h2 { font-size: 25px; }
.admin-create .fields { gap: 21px; }
.admin-create .primary { width: 100%; }
.admin-create .choices { gap: 7px; }
.admin-create .choice { font-size: 11px; }
.admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.admin-list-heading h2 { margin: 0; }
.admin-record { border: 1px solid var(--line); border-radius: 4px; padding: 24px; margin-bottom: 18px; background: var(--panel); }
.admin-record h3 { font-size: 23px; margin-bottom: 10px; overflow-wrap: anywhere; }
.record-top { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.state-pill { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 5px 7px; white-space: nowrap; border: 1px solid #b4c392; border-radius: 3px; color: var(--green); background: #eff3e3; }
.state-pill.alert { color: var(--error); border-color: #d2a297; background: #fbede7; }
.record-details { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 12px; font-size: 12px; line-height: 1.6; margin: 20px 0; }
.record-details dt { color: var(--muted); }
.record-details dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.record-actions { display: flex; flex-wrap: wrap; gap: 9px; border-top: 1px solid var(--line); padding-top: 18px; }
.link-result { border: 1px solid #bdcc98; background: #edf2df; border-radius: 4px; padding: 24px; margin-bottom: 24px; }
.link-result h3 { font-size: 23px; }
.link-result .field { margin: 16px 0; }
.input-hint { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.required-note { font-size: 11px; color: var(--muted); margin-top: 18px; }
.submission-status { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.module-title { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.module-title .tag { font-size: 9px; }
.module-title h3 { margin: 0; }
.compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compare-grid pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--sans); font-size: 12px; line-height: 1.6; max-height: 230px; overflow: auto; background: #ecece3; padding: 12px; border-radius: 3px; color: var(--muted); }
.compare-grid h3 { font-size: 13px; }
.owner-view-note { margin-bottom: 20px; }
.retry-button { color: var(--green); font-size: 11px; }
.mobile-status { display: none; }
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 1100px) {
  .site-header, .site-footer, main { width: calc(100% - 56px); }
  .client-shell { gap: 26px; grid-template-columns: 180px minmax(0, 1fr); }
  .content-panel { padding: 0; }
  .identity-card { padding: 0 0 28px; }
  .identity-card .grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-card .field:last-child { grid-column: 1 / -1; }
  .brand-layout { grid-template-columns: 145px minmax(0, 1fr); gap: 18px; }
  .brand-editor { padding-left: 18px; }
  .brand-editor .grid-two { grid-template-columns: 1fr; }
  .auth-layout { gap: 40px; grid-template-columns: 1fr 380px; }
  .admin-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 800px) {
  .site-header, .site-footer, main { width: calc(100% - 44px); }
  .site-header { padding: 23px 0; }
  .wordmark { font-size: 25px; letter-spacing: 5px; }
  .brand-mark { font-size: 26px; }
  .header-label { display: none; }
  main { padding-top: 30px; padding-bottom: 50px; }
  .auth-layout { grid-template-columns: 1fr; gap: 25px; max-width: 520px; margin: 0 auto 30px; }
  .auth-intro { padding: 0; }
  .auth-intro h1 { max-width: 460px; }
  .auth-card { padding: 27px; }
  .page-lead { display: block; margin-bottom: 25px; padding-bottom: 24px; }
  .page-lead h1 { font-size: 46px; }
  .lead-actions { margin-top: 20px; flex-wrap: wrap; }
  .client-shell { display: block; }
  .sidebar { display: block; position: static; margin-bottom: 26px; }
  .client-card { padding: 0 0 16px; margin-bottom: 15px; }
  .client-card h3 { font-size: 18px; margin: 5px 0 9px; }
  .steps { display: flex; gap: 20px; overflow-x: auto; padding: 0; scrollbar-width: thin; }
  .step { width: auto; min-width: max-content; gap: 8px; padding: 12px 0; font-size: 12px; }
  .step-num { font-size: 10px; }
  .step .done { font-size: 11px; margin-left: 2px; }
  .sidebar .save-status { margin: 12px 0 0; }
  .sidebar-note { padding-left: 3px; margin-bottom: 0; }
  .identity-card { margin-bottom: 20px; }
  .identity-top { align-items: start; gap: 12px; }
  .identity-top .help { max-width: 190px; text-align: right; }
  .content-panel { padding: 0; }
  h2 { font-size: 31px; }
  .review-row { grid-template-columns: 140px minmax(0, 1fr); gap: 15px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-create .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-create .field:has(textarea), .admin-create .choice-group, .admin-create .primary, .admin-create .error { grid-column: 1 / -1; }
  .admin-create .choice { font-size: 12px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer a { width: 100%; }
  .success-card { padding: 30px; }
}
@media (max-width: 540px) {
  .site-header, .site-footer, main { width: calc(100% - 36px); }
  .site-header { padding: 21px 0; }
  .header-right { gap: 12px; }
  .wordmark { font-size: 23px; gap: 10px; }
  .brand-mark { font-size: 24px; }
  .auth-intro h1, .page-lead h1 { font-size: 42px; }
  .auth-card { padding: 23px; }
  .auth-card h2 { font-size: 25px; }
  .auth-card input.code { font-size: 22px; letter-spacing: 5px; }
  .identity-card { padding: 0 0 24px; }
  .identity-top { display: block; }
  .identity-top .help { max-width: none; text-align: left; margin-top: 6px; }
  .identity-card .grid-three { gap: 15px; }
  .identity-card .grid-three > .field { grid-column: 1 / -1; }
  .identity-card .field input { font-size: 16px; }
  .content-panel { padding: 0; }
  .grid-two, .grid-three { grid-template-columns: 1fr; gap: 20px; }
  .fields { gap: 23px; }
  h2 { font-size: 31px; }
  .section-intro { font-size: 13px; }
  .field input, .field textarea, .field select, .search-input { font-size: 16px; padding: 12px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 13px; }
  .field textarea { min-height: 120px; }
  .item-card { padding: 17px; }
  .item-heading { gap: 10px; flex-wrap: wrap; }
  .item-heading h3 { font-size: 16px; }
  .profile-actions { align-items: stretch; gap: 10px; }
  .profile-actions .primary { width: 100%; }
  .brands-toolbar { gap: 9px; flex-wrap: wrap; }
  .brands-toolbar .search-input { flex-basis: 100%; }
  .brands-toolbar .secondary { flex: 1; }
  .brand-layout { display: block; }
  .brand-list { display: flex; overflow-x: auto; max-height: none; gap: 7px; padding: 3px 3px 14px; margin-bottom: 15px; }
  .brand-tab { min-width: 140px; max-width: 170px; padding: 12px; flex-shrink: 0; }
  .brand-editor { border-left: 0; border-top: 1px solid var(--line); padding: 21px 0 0; }
  .brand-editor .grid-two { grid-template-columns: 1fr; }
  .brand-editor .item-heading h3 { font-size: 21px; }
  .brand-editor .item-actions { gap: 13px; }
  .choice { padding: 10px; font-size: 12px; }
  .section-footer { align-items: stretch; flex-wrap: wrap; }
  .section-footer .primary, .section-footer .secondary { padding: 12px 14px; font-size: 12px; gap: 10px; }
  .section-footer > .help { flex-basis: 100%; }
  .review-row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 17px; }
  .review-card { padding: 20px 0; }
  .review-card .block-heading h3 { font-size: 16px; }
  .note-box { padding: 14px; }
  .conflict-banner { padding: 17px; }
  .conflict-banner .inline-actions { display: grid; }
  .admin-create .fields { grid-template-columns: 1fr; }
  .admin-record { padding: 20px; }
  .record-details { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; }
  .record-top { gap: 10px; flex-wrap: wrap; }
  .admin-record h3 { font-size: 22px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-grid pre { max-height: 150px; }
  .modal-actions { flex-wrap: wrap; }
  dialog { padding: 24px; }
  .success-card h2 { font-size: 29px; }
  .success-card { padding: 27px 22px; }
  .success-card .inline-actions { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Private owner feedback controls. */
.review-panel { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: calc(100vw - 36px); padding: 10px; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 4px 20px #19211d18; }
.review-panel .secondary { min-height: 38px; padding: 7px 10px; font-size: 12px; }
.review-panel p { flex-basis: 100%; margin: 0; }
.review-selecting #main { cursor: crosshair; }
.review-target { outline: 2px solid var(--olive) !important; outline-offset: 4px; }
.review-dialog { width: min(560px, calc(100vw - 32px)); padding: 25px; }
.review-dialog textarea { width: 100%; margin: 15px 0; min-height: 100px; font-size: 16px; padding: 12px; border: 1px solid var(--field-line); background: var(--panel); color: var(--ink); }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
body:has(.review-panel) { padding-bottom: 100px; }

.revenue-block { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 40px; }
.revenue-mascot { display: block; width: 230px; height: auto; max-width: 100%; justify-self: center; }
@media (max-width: 600px) {
  .revenue-block { grid-template-columns: 1fr; gap: 22px; }
  .revenue-mascot { width: 175px; }
}
.notice-block { background: var(--panel-soft, rgba(0,0,0,0.03)); border: 1px dashed var(--line); border-radius: 12px; padding: 18px 20px; }
.notice-block h3 { margin: 0 0 8px; }
.notice-text { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink, inherit); }
.block-intro { margin: -8px 0 16px; }
