body.content-page { margin: 0; }
.content-header { border-bottom: 1px solid var(--line, #d5d8cf); padding: 1rem max(1.25rem, calc((100vw - 52rem) / 2)); }
.content-header a { font-weight: 750; }
.content-main { width: min(100% - 2.5rem, 52rem); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.content-main h1 { font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1; margin: 0 0 1.25rem; }
.content-main h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin: 2rem 0 .5rem; }
.content-main p { max-width: 72ch; margin: .5rem 0 1rem; }
.content-main a:not(.button) { text-decoration: underline; }
.content-main label { display: block; font-weight: 700; margin: .9rem 0 .35rem; }
.content-main input, .content-main textarea { width: 100%; max-width: 100%; background: var(--surface, #fff); color: inherit; border: 1px solid var(--line, #767d73); border-radius: .35rem; padding: .7rem; font: inherit; }
.content-main textarea { display: block; resize: vertical; line-height: 1.55; }
.content-main form .button { margin-top: .8rem; white-space: normal; }
.content-actions { display: flex; flex-wrap: wrap; column-gap: .75rem; }
.content-notice { border-inline-start: 3px solid currentColor; padding: .65rem .9rem; }

.content-admin .content-main { width: min(100% - 2rem, 91rem); }
.content-admin .content-main > section:not(.visual-editor) { max-width: 58rem; margin-top: 3rem; }
.editor-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; margin-bottom: .5rem; }
.editor-heading > a { margin-bottom: 1rem; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); gap: 1rem; align-items: start; }
.editor-canvas, #home-editor { border: 1px solid var(--line, #76819b); background: var(--surface, #111f33); padding: .8rem; min-width: 0; }
#home-editor h3 { margin: 0; }
#home-editor select { width: 100%; border: 1px solid var(--line, #76819b); padding: .6rem; color: inherit; background: var(--surface, #111f33); font: inherit; }
.editor-view { display: flex; gap: .5rem; margin-bottom: .7rem; }
.editor-view button { padding: .5rem .75rem; border: 1px solid var(--line, #76819b); background: transparent; color: inherit; cursor: pointer; }
.editor-view button[aria-pressed="true"] { background: #223654; border-color: #9ab5db; }
.editor-preview { display: block; margin: auto; width: 100%; height: clamp(31rem, 70vh, 48rem); border: 0; background: #08172b; }
.editor-preview.phone { max-width: 390px; }
.editor-iframe .hero [data-home-field]:hover { outline: 1px dashed currentColor; outline-offset: 4px; cursor: pointer; }
.editor-iframe [data-home-field]:hover { outline:1px dashed #a8dd38; outline-offset:4px; cursor:pointer; }
.editor-iframe .hero-film .film-poster { display: block; width: 100%; height: auto; }
.editor-iframe .hero-film video { display: none; }
.editor-iframe .hero-film button { pointer-events: none; }
.activity-dashboard { max-width: 91rem !important; padding: clamp(1.1rem, 2.5vw, 2rem); border: 1px solid var(--line, #76819b); background: #f5f7fa; }
.activity-dashboard > h2 { margin-top: 0 !important; }
.activity-dashboard > p { color: var(--muted, #5d6878); }
.activity-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.2rem 0; }
.activity-metric { display: grid; gap: .25rem; padding: 1rem; border: 1px solid var(--line, #76819b); background: #fff; }
.activity-metric strong { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; }
.activity-metric span { color: var(--muted, #5d6878); font-size: .95rem; }
.activity-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.activity-columns > section, .activity-inbox { min-width: 0; padding: 1rem; border: 1px solid var(--line, #76819b); background: #fff; }
.activity-columns h3, .activity-inbox h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.activity-days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: .25rem; height: 6.5rem; margin-top: .9rem; padding-top: .5rem; border-top: 1px solid #e2e6ec; }
.activity-day { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: .25rem; height: 100%; min-width: 0; }
.activity-bar { display: block; width: min(100%, 1.2rem); min-height: 3px; border-radius: 2px 2px 0 0; background: #2e527d; }
.activity-day small { color: var(--muted, #5d6878); font-size: .68rem; white-space: nowrap; }
.activity-order { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; margin: 0; border-top: 1px solid #e2e6ec; }
.activity-order strong { white-space: nowrap; }
.activity-inbox { margin-top: .75rem; }
.activity-inbox > p { color: var(--muted, #5d6878); }
.activity-review { padding: 1rem 0; border-top: 1px solid #e2e6ec; overflow-wrap: anywhere; }
.activity-review-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.activity-review-heading time, .activity-status, .activity-contact { color: var(--muted, #5d6878); font-size: .9rem; }
.activity-review p { white-space: pre-wrap; }
.activity-transcript summary { min-height: 40px; padding: .5rem 0; cursor: pointer; font-weight: 700; }
.activity-error { color: #8d2020; }
.shop-editor { margin:2rem 0; padding:1.5rem; border:1px solid var(--line,#cbd4dc); border-radius:10px; background:#fff; }
.shop-editor h2 { margin-top:0; }
.shop-editor form { display:grid; max-width:720px; gap:.65rem; }
.shop-editor label { margin-top:.45rem; font-weight:700; }
.shop-editor input:not([type=checkbox]),.shop-editor textarea { width:100%; min-height:46px; padding:.7rem; border:1px solid #9baeca; font:inherit; }
.shop-editor small { color:var(--muted,#5d6878); }
.shop-editor .editor-check { display:flex; align-items:center; gap:.6rem; }
.shop-editor button { justify-self:start; margin-top:.8rem; }
.page-builder { max-width:91rem!important; margin:2rem 0; padding:clamp(1.1rem,2.5vw,2rem); border:1px solid var(--line,#76819b); border-radius:10px; background:#f5f7fa; }
.page-builder h2 { margin-top:0; }
.page-builder ol { display:grid; gap:.5rem; padding:0; list-style:none; }
.page-builder li { display:grid; grid-template-columns:auto minmax(9rem,1fr) auto auto; gap:.7rem; align-items:center; padding:.7rem; border:1px solid #bdc9d3; border-radius:7px; background:#fff; }
.page-builder li.dragging { opacity:.45; }
.drag-handle { color:#536579; font-size:1.5rem; cursor:grab; }
.page-builder .block-visibility { display:flex; align-items:center; gap:.35rem; margin:0; white-space:nowrap; }
.page-builder .block-visibility input { width:auto; }
.page-builder li button { padding:.4rem .6rem; border:1px solid #aab8c5; border-radius:4px; background:#fff; cursor:pointer; }
.page-builder li button:hover { background:#e9eef3; }
.page-builder .button { margin-top:.8rem; }
@media (max-width:680px) { .page-builder li { grid-template-columns:auto 1fr auto; }.page-builder li > div { grid-column:2/-1; display:flex; gap:.5rem; }.page-builder li button { flex:1; } }
@media (max-width: 860px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } .editor-preview { height: 32rem; } }
@media (max-width: 600px) { .activity-metrics, .activity-columns { grid-template-columns: minmax(0, 1fr); } .activity-review-heading { align-items: start; flex-direction: column; gap: .2rem; } }
