:root {
  color-scheme: light;
  --ink: #161514;
  --muted: #706d68;
  --faint: #a9a59f;
  --line: #e4e0d9;
  --line-dark: #c7c1b7;
  --paper: #fffefd;
  --canvas: #f5f3ef;
  --soft: #eeece7;
  --success: #215d48;
  --warning: #8a5a13;
  --danger: #a52727;
  --radius: 2px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 0;
  padding: .72rem .78rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, summary:focus-visible, a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid #274a70;
  outline-offset: 2px;
}
input:focus, select:focus, textarea:focus { border-color: #274a70; box-shadow: 0 0 0 3px rgba(39,74,112,.09); }
label { display: grid; gap: .42rem; font-size: .82rem; font-weight: 650; letter-spacing: .01em; }
fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; font-size: .82rem; font-weight: 650; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.025em; }
h1 { font: 400 clamp(2.1rem, 3vw, 3.35rem)/1.02 var(--serif); }
h2 { font: 400 1.56rem/1.13 var(--serif); margin-bottom: .35rem; }
button { border: 0; }
code { padding: .13rem .35rem; background: var(--soft); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8em; }

.skip-link { position: fixed; z-index: 100; top: -5rem; left: .8rem; padding: .7rem .8rem; color: white; background: var(--ink); }
.skip-link:focus { top: .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }
.muted { color: var(--muted); font-size: .84rem; }
.eyebrow { margin-bottom: .45rem; color: #5d6974; font-size: .65rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.optional { color: var(--muted); font-weight: 500; }
.required-label { align-self: flex-start; padding: .25rem .4rem; color: var(--danger); background: #fff4f3; font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.notice { position: fixed; z-index: 1000; right: 1rem; bottom: 1rem; max-width: min(30rem, calc(100vw - 2rem)); padding: .85rem 1rem; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.16); font-size: .88rem; }
.notice[data-tone="error"] { border-color: var(--danger); background: #782b2b; }
.notice[data-tone="success"] { border-color: var(--success); background: var(--success); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: transparent; font-size: .82rem; font-weight: 700; text-align: center; transition: transform .12s ease, background .12s ease, color .12s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: white; background: var(--ink); }
.button-primary:hover:not(:disabled) { background: #34312e; }
.button-secondary { border-color: #657180; color: #23394e; background: #edf3f9; }
.button-quiet { border-color: var(--line-dark); background: var(--paper); }
.button-quiet:hover:not(:disabled) { background: var(--soft); }
.button-wide { width: 100%; }
.button-small { min-height: 44px; padding: .43rem .68rem; font-size: .73rem; }
.text-button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; color: #4b4640; background: transparent; font-size: .75rem; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.icon-button { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-dark); color: var(--ink); background: var(--paper); font-size: 1.5rem; line-height: 1; }
.icon-button:hover { background: var(--soft); }

.auth-shell { display: grid; min-height: 100vh; place-items: center; padding: 1.5rem; background: linear-gradient(135deg, #efeee9 0%, #f9f8f5 50%, #e9e7e0 100%); }
.auth-panel { width: min(100%, 29rem); padding: clamp(1.7rem, 5vw, 3.3rem); border: 1px solid var(--line-dark); background: rgba(255,254,253,.93); box-shadow: 0 18px 48px rgba(49,44,37,.08); }
.wordmark { margin: 0 0 3rem; font-size: .85rem; font-weight: 820; letter-spacing: .13em; }
.auth-panel h1 { margin-bottom: .75rem; }
.auth-panel .intro { max-width: 24rem; margin-bottom: 2rem; color: var(--muted); font-size: .96rem; }
.form-stack { display: grid; gap: 1rem; }
.mfa-copy { padding-top: .1rem; }
.mfa-copy h2 { margin-bottom: .4rem; }
.mfa-copy p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.auth-footnote { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

.studio-shell { min-height: 100vh; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 4rem; padding: .65rem clamp(1rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); background: rgba(255,254,253,.96); backdrop-filter: blur(12px); }
.studio-nav { display: flex; align-items: center; gap: .3rem; margin-right: auto; margin-left: 2rem; }
.studio-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: .52rem .72rem; text-decoration: none; }
.studio-nav a[aria-current='page'] { border-bottom: 1px solid currentColor; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: .68rem; color: var(--ink); font-size: .8rem; font-weight: 750; letter-spacing: .02em; text-decoration: none; }
.brand-mark { display: grid; width: 1.85rem; height: 1.85rem; place-items: center; color: var(--paper); background: var(--ink); font-family: var(--serif); font-size: 1.1rem; font-weight: 400; }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.status-pill, .release-status { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .45rem; border: 1px solid var(--line-dark); color: var(--muted); background: var(--paper); font-size: .67rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.status-pill::before { width: .38rem; height: .38rem; border-radius: 100%; background: var(--warning); content: ""; }
.status-pill[data-state="ready"]::before { background: #3f826a; }
.status-pill[data-state="error"]::before { background: var(--danger); }
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; min-height: 44px; gap: .48rem; list-style: none; cursor: pointer; font-size: .78rem; font-weight: 650; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { display: grid; width: 1.85rem; height: 1.85rem; place-items: center; border: 1px solid var(--line-dark); border-radius: 100%; background: var(--soft); font-size: .7rem; }
.user-popover { position: absolute; right: 0; top: calc(100% + .6rem); display: grid; gap: .75rem; width: 12rem; padding: .8rem; border: 1px solid var(--line-dark); background: var(--paper); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.user-popover p { margin: 0; }

.studio-layout { display: grid; grid-template-columns: minmax(14.5rem, 19rem) minmax(0, 1fr); min-height: calc(100vh - 4rem); }
.release-sidebar { display: flex; flex-direction: column; min-height: 0; padding: 1.35rem 1rem; border-right: 1px solid var(--line); background: #f8f7f4; }
.sidebar-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: 0 .25rem 1rem; }
.sidebar-head h2 { margin-bottom: 0; font-size: 1.3rem; }
.filter-row { display: flex; gap: .25rem; margin: 0 0 1rem; padding: .2rem; background: #e9e7e1; }
.filter { flex: 1; min-height: 44px; padding: .43rem .3rem; color: var(--muted); background: transparent; font-size: .68rem; font-weight: 750; }
.filter.is-active { color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.07); }
.release-list { display: grid; gap: .4rem; overflow: auto; max-height: calc(100vh - 20rem); padding-right: .15rem; }
.release-item { width: 100%; padding: .72rem .68rem; border: 1px solid transparent; border-left-color: transparent; color: var(--ink); background: transparent; text-align: left; }
.release-item:hover { background: #efede8; }
.release-item.is-selected { border-color: var(--line-dark); border-left: 2px solid var(--ink); background: var(--paper); }
.release-item-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.release-id { overflow: hidden; font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.release-mini-status { color: var(--muted); font-size: .61rem; font-weight: 760; letter-spacing: .05em; }
.release-reason { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: .72rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.release-date { display: block; margin-top: .4rem; color: var(--faint); font-size: .64rem; }
.release-list-empty { padding: 1.3rem .3rem; color: var(--muted); font-size: .8rem; text-align: center; }
#load-more { margin-top: .75rem; }
.sidebar-note { display: flex; gap: .55rem; margin-top: auto; padding: 1rem .2rem .15rem; color: var(--muted); font-size: .67rem; line-height: 1.55; }
.sidebar-note p { margin: 0; }
.note-icon { color: #445f72; }

.workspace { min-width: 0; padding: clamp(1.3rem, 4vw, 3.4rem); }
.editor { width: min(100%, 62rem); margin: 0 auto; }
.editor-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.editor-topline h1 { margin-bottom: 0; }
.release-status { margin-top: .3rem; }
.release-status[data-status="PUBLISHED"] { border-color: #a9c7bb; color: var(--success); background: #eef8f3; }
.release-status[data-status="SCHEDULED"] { border-color: #e9c99c; color: var(--warning); background: #fff7ea; }
.editor-actions, .editor-bottom-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; margin-bottom: 1.25rem; }
.editor-bottom-actions { margin: 1.4rem 0 3rem; }
.card { margin-top: 1rem; padding: clamp(1rem, 2.4vw, 1.5rem); border: 1px solid var(--line-dark); background: var(--paper); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.card-heading h2 { margin-bottom: 0; }
.release-details textarea { margin-bottom: .12rem; }
.field-hint { margin: .1rem 0 0; color: var(--muted); font-size: .68rem; }

.surface-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.25rem; }
.surface-tab { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .56rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line-dark); color: var(--muted); background: transparent; text-align: left; font-size: .85rem; font-weight: 720; }
.surface-tab:hover { background: #f8f7f3; }
.surface-tab.is-active { border-color: var(--ink); color: var(--ink); background: var(--paper); box-shadow: inset 0 -2px var(--ink); }
.surface-icon { grid-row: 1 / span 2; font-size: 1.35rem; }
.surface-tab small { color: var(--muted); font-size: .66rem; font-weight: 500; }

.hero-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; }
.image-upload { display: grid; grid-template-columns: 6.1rem minmax(0, 1fr); min-height: 8rem; border: 1px solid var(--line); background: #fbfaf8; }
.image-preview { display: grid; min-height: 100%; place-items: center; overflow: hidden; color: var(--muted); background: #eae7e0 center/cover no-repeat; font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; }
.image-preview.has-image { color: transparent; }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-narrow { background-color: #dfddd7; }
.image-upload-copy { display: flex; flex-direction: column; min-width: 0; padding: .65rem .7rem; }
.image-title { margin: 0 0 .1rem; font-size: .76rem; font-weight: 700; }
.image-upload-copy .muted { margin: 0; font-size: .66rem; }
.image-actions { display: flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: .55rem; }
.file-key { overflow: hidden; margin: .43rem 0 0; color: var(--faint); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.compact-grid { margin-bottom: 1.5rem; }
.span-all { grid-column: 1 / -1; }
.locale-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 1.35rem 0 1rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.locale-title { margin: 0 0 .08rem; font-size: .78rem; font-weight: 730; }
.locale-tools .muted { margin: 0; max-width: 30rem; font-size: .7rem; }
.locale-tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.locale-tab { min-width: 44px; min-height: 44px; padding: .3rem; border: 1px solid var(--line-dark); color: var(--muted); background: var(--paper); font-size: .67rem; font-weight: 750; }
.locale-tab.is-active { border-color: var(--ink); color: var(--paper); background: var(--ink); }

.section-intro { max-width: 41rem; margin: -.35rem 0 1.1rem; color: var(--muted); font-size: .79rem; }
.sections-list { display: grid; gap: .75rem; }
.section-card { padding: 1rem; border: 1px solid var(--line); background: #fbfaf8; }
.section-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .85rem; }
.section-card-title { margin: 0; font-size: .83rem; font-weight: 760; }
.section-card-subtitle { margin: .1rem 0 0; color: var(--muted); font-size: .7rem; }
.section-card .form-grid { gap: .75rem; }
.section-card .form-grid + .form-grid { margin-top: .75rem; }
.section-card input, .section-card select { padding: .58rem .65rem; font-size: .82rem; }
.section-item-list { margin-top: .75rem; }
.section-item-list label { font-size: .73rem; }
.section-advanced { margin-top: .8rem; }
.section-advanced summary { cursor: pointer; color: var(--muted); font-size: .72rem; font-weight: 650; }
.add-section-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.empty-sections { margin: 0; padding: 1.1rem; border: 1px dashed var(--line-dark); color: var(--muted); font-size: .8rem; text-align: center; }
.campaign-editor .code-input { min-height: 22rem; font: 500 .72rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 2; }
.campaign-workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 1.15rem; padding: 0; border: 1px solid var(--line); list-style: none; counter-reset: campaign-step; }
.campaign-workflow li { display: grid; min-width: 0; gap: .25rem; padding: .85rem; counter-increment: campaign-step; }
.campaign-workflow li + li { border-left: 1px solid var(--line); }
.campaign-workflow strong { font-size: .72rem; }
.campaign-workflow strong::before { margin-right: .35rem; color: var(--muted); content: counter(campaign-step, decimal-leading-zero); }
.campaign-workflow span { color: var(--muted); font-size: .65rem; line-height: 1.4; }
.campaign-evidence-panel, .campaign-integrity-readiness { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); background: #fbfaf8; }
.campaign-evidence-panel h3, .campaign-integrity-readiness h3 { margin: .1rem 0 .45rem; font: 500 1rem/1.2 var(--serif); }
.campaign-evidence-panel > .muted, .campaign-integrity-readiness > .muted { margin: 0 0 .8rem; font-size: .72rem; }
.campaign-evidence-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; padding: 0; list-style: none; }
.campaign-evidence-facts li { display: grid; gap: .2rem; min-width: 0; padding: .65rem; border-left: 3px solid var(--line-dark); background: var(--paper); }
.campaign-evidence-facts li[data-tone="ready"] { border-left-color: var(--success); }
.campaign-evidence-facts li[data-tone="error"] { border-left-color: #9b342d; }
.campaign-evidence-facts strong { font-size: .68rem; }
.campaign-evidence-facts span { color: var(--muted); font-size: .66rem; overflow-wrap: anywhere; }
.campaign-asset-evidence { display: grid; gap: .3rem; margin: .7rem 0 0; padding: 0; color: var(--muted); font: 500 .63rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; list-style: none; }
.campaign-asset-evidence li { overflow-wrap: anywhere; }
.campaign-integrity-readiness { border-style: dashed; }
.campaign-queue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.campaign-queue-grid h4 { margin: 0 0 .45rem; font-size: .7rem; }
.campaign-queue-list { display: grid; gap: .4rem; }
.campaign-queue-item, .campaign-queue-empty { display: grid; gap: .22rem; min-width: 0; padding: .65rem; border: 1px solid var(--line); background: var(--paper); font-size: .66rem; }
.campaign-queue-item[data-tone="exception"] { border-left: 3px solid #9b342d; }
.campaign-queue-item[data-tone="ready"] { border-left: 3px solid var(--success); }
.campaign-queue-item button { width: fit-content; padding: 0; border: 0; color: var(--ink); background: transparent; font: inherit; font-weight: 750; text-align: left; text-decoration: underline; cursor: pointer; }
.campaign-queue-item span, .campaign-queue-empty { color: var(--muted); overflow-wrap: anywhere; }
.campaign-approval-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.campaign-approval-actions p { margin: 0; }
.campaign-editor .release-status[data-status="APPROVED"] { border-color: #a9c7bb; color: var(--success); background: #eef8f3; }

.empty-state { width: min(100%, 38rem); margin: clamp(2rem, 12vh, 8rem) auto; padding: clamp(1.5rem, 5vw, 3.2rem); border: 1px solid var(--line-dark); background: var(--paper); text-align: center; }
.empty-mark { display: grid; width: 3rem; height: 3rem; margin: 0 auto 1.4rem; place-items: center; color: var(--paper); background: var(--ink); font-family: var(--serif); font-size: 1.7rem; }
.empty-state p:not(.eyebrow) { max-width: 28rem; margin: 0 auto 1.5rem; color: var(--muted); }

.modal { width: min(100% - 2rem, 44rem); max-height: min(86vh, 50rem); padding: 0; border: 1px solid var(--line-dark); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(21,20,18,.48); backdrop-filter: blur(2px); }
.modal-close-row { display: flex; justify-content: flex-end; padding: .7rem .7rem 0; }
.modal-close-row .icon-button { width: 44px; height: 44px; font-size: 1.35rem; }
.modal-heading, .preview-dialog-head { padding: 0 clamp(1rem, 3vw, 1.6rem); }
.modal-heading h2 { margin-bottom: .38rem; }
.modal-heading .muted { margin-bottom: 1.2rem; }
.action-dialog .form-stack, .mfa-dialog .form-stack { padding: .3rem clamp(1rem, 3vw, 1.6rem) 1.5rem; }
.surface-checks { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; padding: .8rem; border: 1px solid var(--line); }
.surface-checks legend { margin-bottom: .55rem; }
.surface-checks label { display: flex; align-items: center; gap: .45rem; font-size: .8rem; }
.surface-checks input { width: auto; }
.confirmation-field { padding-top: .95rem; border-top: 1px solid var(--line); }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; padding-top: .3rem; }
.preview-dialog { width: min(100% - 2rem, 65rem); }
.preview-dialog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; }
.preview-dialog-head h2 { margin-bottom: 0; }
.preview-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.preview-controls select { width: auto; min-height: 44px; padding: .38rem .45rem; font-size: .72rem; }
.preview-frame { min-height: 22rem; border-top: 1px solid var(--line); background: #e8e5df; }
.customer-preview { position: relative; isolation: isolate; display: grid; min-height: 22rem; grid-template-columns: minmax(0, 1fr); place-items: end start; overflow: hidden; padding: clamp(1.2rem, 5vw, 3.5rem); color: white; background: #262522; }
.customer-preview::before { position: absolute; z-index: 0; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.08)); content: ""; }
.customer-preview-image { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.customer-preview-content { position: relative; z-index: 1; max-width: 34rem; text-shadow: 0 1px 12px rgba(0,0,0,.28); }
.customer-preview .eyebrow { color: rgba(255,255,255,.84); }
.customer-preview h3 { margin: 0 0 .8rem; font: 400 clamp(2rem,5vw,4rem)/.98 var(--serif); letter-spacing: -.035em; }
.customer-preview p { margin: 0 0 1.2rem; font-size: .94rem; }
.customer-preview-button { display: inline-flex; padding: .7rem 1rem; color: var(--ink); background: white; font-size: .76rem; font-weight: 750; text-shadow: none; }
.preview-loading, .preview-empty { display: grid; min-height: 22rem; place-items: center; padding: 2rem; color: var(--muted); font-size: .85rem; text-align: center; }
.preview-disclaimer { margin: 0; padding: .85rem clamp(1rem,3vw,1.6rem) 1.1rem; color: var(--muted); font-size: .68rem; }
.campaign-preview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line); }
.campaign-preview-card { min-width: 0; background: var(--paper); }
.campaign-preview-card img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: cover; background: #eeeae4; }
.campaign-preview-card div { padding: .75rem; }
.campaign-preview-card h3 { margin: .25rem 0 .35rem; font: 400 1.05rem/1.05 var(--serif); }
.campaign-preview-card p { margin: 0; color: var(--muted); font-size: .65rem; }

@media (max-width: 850px) {
  .studio-layout { grid-template-columns: 1fr; }
  .release-sidebar { min-height: auto; padding: 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .release-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .release-item { flex: 0 0 12rem; }
  .sidebar-note { display: none; }
  #load-more { display: none; }
  .workspace { padding: 1.2rem; }
  .campaign-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .campaign-workflow li:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .campaign-workflow li:nth-child(4) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .topbar { flex-wrap: wrap; padding: .62rem .9rem; }
  .studio-nav { order: 3; overflow-x: auto; width: 100%; margin: 0; }
  .studio-nav a, .brand, .user-menu summary, .customer-preview-button { min-height: 44px; }
  .campaign-workflow, .campaign-evidence-facts, .campaign-queue-grid { grid-template-columns: 1fr; }
  .campaign-workflow li + li { border-top: 1px solid var(--line); border-left: 0; }
  .user-menu summary { min-width: 44px; justify-content: center; }
  .button, .button-small, .icon-button, .modal-close-row .icon-button,
  .filter, .release-item, .surface-tab, .locale-tab, .text-button,
  .catalog-tab, .band-remove, .variant-remove, .image-key-list button {
    min-width: 44px;
    min-height: 44px;
  }
  .status-pill { display: none; }
  #user-name { display: none; }
  .workspace { padding: 1rem .75rem; }
  .editor-topline { display: block; }
  .editor-topline .release-status { margin-bottom: .8rem; }
  .editor-actions, .editor-bottom-actions { justify-content: stretch; }
  .editor-actions .button, .editor-bottom-actions .button { flex: 1 1 calc(50% - .55rem); }
  .hero-image-grid, .form-grid { grid-template-columns: 1fr; }
  .campaign-approval-actions { align-items: stretch; flex-direction: column; }
  .span-all { grid-column: auto; }
  .image-upload { grid-template-columns: 5.3rem minmax(0,1fr); }
  .surface-switcher { gap: .45rem; }
  .surface-tab { padding: .7rem; }
  .locale-tools { display: block; }
  .locale-tabs { margin-top: .75rem; }
  .preview-dialog-head { display: block; }
  .preview-controls { justify-content: flex-start; margin-top: .8rem; }
  .campaign-preview-grid { grid-template-columns: 1fr; }
  .modal-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
