/* Atlas Table owner dashboard. Calm, legible, built for daily use on a laptop or an iPad at the pass. */
@font-face { font-family: 'Hanken Grotesk'; src: url(/fonts/HankenGrotesk_500Medium.woff2) format('woff2'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url(/fonts/HankenGrotesk_600SemiBold.woff2) format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Libre Caslon Display'; src: url(/fonts/LibreCaslonDisplay_400Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/LibreCaslonText_400Regular.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/LibreCaslonText_400Regular_Italic.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/LibreCaslonText_700Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --bg: #F5F1EA; --card: #FFFDF9; --line: #E4DCCE; --line2: #EFE9DF; --ink: #1F1A17; --ink2: #5E544B; --ink3: #8A7F73;
  --brass: #8F7142; --brass-l: #B08D57; --brass-bg: #F3EADB; --char: #161312; --coal: #1E1A18; --cream: #F2E8D5;
  --ok: #3F6B3A; --ok-bg: #E7F0E2; --warn: #8A5A12; --warn-bg: #FBF0DC; --bad: #A33A22; --bad-bg: #FBE6E0; --ox: #4E1719;
  --r: 6px; --f: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; --serif: 'Libre Caslon Display', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 500 14.5px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass-l); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
h1 { font: 400 2.1rem/1.1 var(--serif); letter-spacing: -.01em; }
h2 { font: 400 1.6rem/1.15 var(--serif); }
h3 { font-size: 1rem; }
h4 { font-size: .85rem; margin: 18px 0 10px; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink2); } .small { font-size: .82rem; } .grow { flex: 1; }
.eyebrow { display: block; font: 600 .68rem/1.2 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin-bottom: 6px; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--ink2); gap: 10px; }
.spin { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--brass); border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -2px; }
@keyframes sp { to { transform: rotate(360deg); } }
.row { display: flex; gap: 10px; align-items: center; } .row.end { justify-content: flex-end; } .row.wrap { flex-wrap: wrap; align-items: flex-end; }
.stack { display: grid; gap: 14px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); font-weight: 600; font-size: .86rem; cursor: pointer; white-space: nowrap; color: var(--ink); transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink3); text-decoration: none; }
.btn.primary { background: var(--char); border-color: var(--char); color: var(--cream); }
.btn.primary:hover { background: #2a2420; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger.ghost, .btn.ghost.danger { background: transparent; color: var(--bad); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: .8rem; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: .95rem; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.lnk { background: none; border: 0; padding: 0; color: var(--brass); font-weight: 600; cursor: pointer; }
.lnk.danger { color: var(--bad); }
.iconbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid transparent; background: none; border-radius: var(--r); cursor: pointer; color: var(--ink2); flex: none; }
.iconbtn:hover { background: var(--line2); color: var(--ink); }
.iconbtn.danger:hover { color: var(--bad); }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 8px 10px; min-height: 38px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass-l); box-shadow: 0 0 0 3px rgba(176, 141, 87, .18); }
input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--char); }
.fld { display: grid; gap: 5px; min-width: 0; }
.fld > span { font-size: .76rem; font-weight: 600; color: var(--ink2); }
.fld.full { grid-column: 1 / -1; }
.fld.narrow { max-width: 140px; }
.fld.check, .check { display: flex; align-items: center; gap: 8px; font-size: .86rem; }
.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 14px; }
@media (max-width: 640px) { .form2 { grid-template-columns: 1fr; } }
.search { width: 220px; }
.err { color: var(--bad); font-size: .86rem; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--ink2); user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; cursor: pointer; border: 0; padding: 0; flex: none; }
.switch input::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--char); }
.switch input:checked::after { transform: translateX(14px); }
.toggles { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 6px 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--ink2); }
.chip.on { background: var(--char); border-color: var(--char); color: var(--cream); }
.chip.warn.on { background: var(--warn-bg); border-color: #E2C48E; color: var(--warn); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.seg.wrap { flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 12px; font-size: .8rem; font-weight: 600; color: var(--ink2); cursor: pointer; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--char); color: var(--cream); }
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; background: var(--line2); color: var(--ink2); margin-left: 6px; vertical-align: 1px; }
.tag.soft { background: var(--brass-bg); color: var(--brass); }
.tag.live { background: var(--ok-bg); color: var(--ok); }
.note { background: var(--brass-bg); border-left: 3px solid var(--brass-l); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: .86rem; margin: 10px 0; }
.note.bad { background: var(--bad-bg); border-color: var(--bad); color: #6d2414; }
.note.ok { background: var(--ok-bg); border-color: var(--ok); }
.demo-note { margin-bottom: 18px; }

/* shell */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--char); color: #CFC4B2; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.side-brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px 18px; border-bottom: 1px solid #2A2522; }
.side-brand .mk { width: 38px; height: 38px; color: var(--cream); flex: none; }
.side-brand b { display: block; color: var(--cream); font: 400 1.05rem/1.2 var(--serif); }
.side-brand span { font-size: .72rem; color: #A89C88; letter-spacing: .04em; }
.side nav { display: grid; padding: 10px 10px; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); color: #CFC4B2; font-size: .86rem; font-weight: 500; }
.side nav a:hover { background: #221D1A; color: #fff; text-decoration: none; }
.side nav a.on { background: #2B2420; color: #fff; box-shadow: inset 2px 0 0 var(--brass-l); }
.side nav a svg { opacity: .8; }
.side-foot { margin-top: auto; padding: 16px 18px; display: grid; gap: 6px; font-size: .76rem; color: #8A7F73; border-top: 1px solid #2A2522; }
.side-foot a { color: #D2B37C; }
.main { min-width: 0; display: flex; flex-direction: column; }
.sbx { background: var(--ox); color: #F2E1D9; font-size: .8rem; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: center; }
.sbx b { color: #fff; } .sbx a, .sbx .lnk { color: #F2CFA0; } .sbx-acts { display: flex; gap: 16px; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(245, 241, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 10px 28px; min-height: 56px; }
.navbtn { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 600; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.pill.live { background: var(--ok-bg); color: var(--ok); } .pill.live .dot { background: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.warn .dot { background: #D58A1B; }
.pill.warn b { margin-left: 4px; color: var(--ink); }
.savestate { margin-left: auto; font-size: .78rem; color: var(--ink3); display: flex; gap: 6px; align-items: center; }
.savestate.ok { color: var(--ok); }
#view { flex: 1; }
.page { padding: 28px 28px 80px; max-width: 1180px; }
.page.wide { max-width: 1440px; }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ph p { max-width: 62ch; margin-top: 8px; }
.scrim { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .navbtn { display: inline-grid; }
  .page { padding: 20px 16px 80px; }
  .topbar { padding: 8px 12px; }
  .savestate { display: none; }
}

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.card.feature { background: var(--char); color: #D8CCB6; border-color: var(--char); }
.card.feature h2 { color: var(--cream); margin: 4px 0 10px; }
.card.feature .eyebrow { color: #D2B37C; }
.card.feature .btn:not(.primary) { background: transparent; color: var(--cream); border-color: #4a403a; }
.card.feature .btn.primary { background: #D2B37C; border-color: #D2B37C; color: var(--char); }
.card.feature .fld > span, .card.feature .muted { color: #A89C88; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid2 > .card { margin-bottom: 0; }
.span2 { grid-column: 1 / -1; }
@media (max-width: 960px) { .grid2 { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tiles.mini { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 2px; color: var(--ink); }
.tile:hover { text-decoration: none; border-color: var(--ink3); }
.tile span { font-size: .76rem; color: var(--ink2); font-weight: 600; }
.tile b { font: 400 2rem/1.1 var(--serif); }
.tile em { font-style: normal; font-size: .76rem; color: var(--ink3); }
.tile em.up { color: var(--ok); } .tile em.down { color: var(--bad); }
@media (max-width: 960px) { .tiles { grid-template-columns: 1fr 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: .88rem; }
.list li:last-child { border-bottom: 0; }
.list.links li { justify-content: flex-start; }
.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
.tbl th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink3); font-weight: 600; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.tbl tr.off td { opacity: .5; }
.tbl tbody tr:hover td { background: #FBF8F2; }
.tbl .acts { white-space: nowrap; display: flex; gap: 4px; flex-wrap: wrap; }
.cell { border-color: transparent; background: transparent; min-height: 32px; padding: 4px 6px; }
.cell:hover { border-color: var(--line); background: #fff; }
.cell.num { width: 70px; }
.card { overflow-x: auto; }

/* modal + drawer */
.modal-bg, .drawer-bg { position: fixed; inset: 0; background: rgba(22, 19, 18, .42); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.drawer-bg { place-items: stretch end; padding: 0; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 12px; padding: 22px 24px; width: min(640px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.3); display: grid; gap: 14px; }
.modal.sm { width: min(440px, 100%); }
.modal h3 { font-size: 1.1rem; }
.drawer { background: var(--card); width: min(520px, 100vw); height: 100vh; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.2); animation: slide .22s ease-out; }
.drawer.narrow { width: min(440px, 100vw); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.drawer-b h2 { margin-bottom: -6px; }
.drawer-f { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: #FBF8F2; }
.photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.ph-empty { aspect-ratio: 4/3; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--ink3); margin-bottom: 8px; }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 8px; max-height: 240px; overflow-y: auto; }
.library.sm { grid-template-columns: repeat(5, 1fr); max-height: 180px; }
.library button { border: 2px solid transparent; padding: 0; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; }
.library button.on { border-color: var(--char); }
.library img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.variant input:first-child { flex: 1; } .variant input:nth-child(2) { width: 110px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--char); color: var(--cream); padding: 12px 18px; border-radius: 8px; font-size: .88rem; z-index: 200; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: 92vw; animation: fade .2s; }
.toast.err { background: var(--bad); color: #fff; }

/* welcome */
.welcome { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--char) url(/img/tour-bar-1600.webp) center / cover; position: relative; }
.welcome::before { content: ''; position: absolute; inset: 0; background: rgba(14, 12, 11, .72); }
.wl-card { position: relative; background: var(--card); border-radius: 14px; padding: 34px 34px 26px; width: min(520px, 100%); box-shadow: 0 40px 100px rgba(0,0,0,.45); display: grid; gap: 4px; }
.wl-mark { width: 56px; height: 56px; color: var(--char); margin-bottom: 10px; }
.wl-card h1 { font-size: 1.9rem; margin: 2px 0 10px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 6px; font-size: .88rem; }
.ticks li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 8px; }
.wl-card .small { margin-top: 10px; }

/* menu editor */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-weight: 600; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--char); }
.menubar { display: flex; align-items: center; gap: 10px; padding: 10px 0 14px; }
.menuset { margin-top: 0; }
.cat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.cat-h { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); background: #FBF8F2; }
.cat-name { font-weight: 700; font-size: .95rem; border-color: transparent; background: transparent; max-width: 340px; }
.cat-name:hover { border-color: var(--line); background: #fff; }
.irow { display: grid; grid-template-columns: 16px 48px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line2); cursor: pointer; background: var(--card); }
.irow:hover { background: #FBF8F2; }
.irow.over { box-shadow: inset 0 2px 0 var(--brass-l); }
.irow.out .iname b { text-decoration: line-through; color: var(--ink3); }
.irow.hid { opacity: .6; }
.grip { color: var(--ink3); cursor: grab; font-size: .7rem; letter-spacing: -2px; }
.thumb { width: 48px; height: 36px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.iname { min-width: 0; }
.iname b { display: block; font-weight: 600; }
.iname small { display: block; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .78rem; }
.star { color: var(--brass-l); margin-right: 5px; }
.flags { display: flex; gap: 2px; }
.price-in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding-left: 8px; width: 92px; }
.price-in span { color: var(--ink3); }
.price-in input { border: 0; min-height: 32px; padding: 4px 6px; text-align: right; box-shadow: none; }
.pv { font-size: .8rem; color: var(--ink2); white-space: nowrap; }
.addrow { width: 100%; border: 0; background: none; text-align: left; padding: 10px 14px; color: var(--brass); font-weight: 600; cursor: pointer; }
.addrow:hover { background: #FBF8F2; }
.addrow.big { border: 1px dashed var(--line); border-radius: 10px; text-align: center; }
@media (max-width: 760px) {
  .irow { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .grip, .flags { display: none; }
  .irow .switch span { display: none; }
  .irow .switch { grid-column: 3; }
  .irow .price-in, .irow .pv { grid-column: 2 / 4; justify-self: end; }
  .search { width: 100%; }
}
.specials { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.special.out { opacity: .7; }

/* publish */
.changes { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.changes > li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 10px; border-radius: 6px; background: #FBF8F2; font-size: .86rem; }
.changes .op { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink2); padding-top: 2px; }
.changes .added .op { color: var(--ok); } .changes .removed .op { color: var(--bad); } .changes .changed .op { color: var(--warn); }
.changes ul { margin: 4px 0 0; padding-left: 16px; }
.changes s { color: var(--ink3); }
.versions { list-style: none; padding: 0; margin: 0; max-height: 560px; overflow-y: auto; }
.versions li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.versions li.live { background: linear-gradient(90deg, var(--ok-bg), transparent); padding-left: 8px; border-radius: 6px; }
.demo .row { align-items: flex-end; }
.demo select, .demo input { background: #2A2420; border-color: #4a403a; color: var(--cream); }
.verify { margin-top: 14px; background: #221D1A; border-radius: 8px; padding: 14px 16px; }
.verify ul { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 5px; }
.verify li.ok { color: #A9D39B; } .verify li.bad { color: #F0A08C; }
.verify b { color: var(--cream); }
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.channel { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.channel figcaption { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .86rem; }
.channel .frame { position: relative; overflow: hidden; border-radius: 6px; background: var(--char); }
.channel.desk .frame { aspect-ratio: 16/11; }
.channel.tv .frame { aspect-ratio: 16/9; border: 6px solid #111; }
.channel.phone .frame { aspect-ratio: 9/16; max-width: 260px; margin: 0 auto; border: 8px solid #111; border-radius: 26px; }
.channel iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.channel.desk iframe { width: 250%; height: 250%; transform: scale(.4); }
.channel.tv iframe { width: 1600px; height: 900px; transform: scale(var(--k, .26)); }
.channel.phone iframe { width: 390px; height: 693px; transform: scale(.62); }

/* print studio */
.studio { display: grid; grid-template-columns: 360px 1fr; gap: 18px; align-items: start; }
.controls { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; display: grid; gap: 14px; }
.tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tpls button { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; text-align: left; }
.tpls button.on { background: var(--char); color: var(--cream); border-color: var(--char); }
.preview { min-width: 0; }
.pv-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.fit { font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.fit.ok { background: var(--ok-bg); color: var(--ok); } .fit.bad { background: var(--bad-bg); color: var(--bad); }
.paper { background: #3a3430; border-radius: 8px; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.paper svg { width: 100%; height: auto; display: block; }
.legend .g { display: inline-block; width: 14px; height: 0; border-top: 2px solid; margin: 0 4px 3px 10px; }
.g.trim { border-color: #e05a3a; } .g.bleed { border-color: #4fbf8f; border-top-style: dashed; } .g.safe { border-color: #4f8fd6; border-top-style: dotted; } .g.fold { border-color: #4f8fd6; border-top-style: dashed; }
@media (max-width: 1100px) { .studio { grid-template-columns: 1fr; } .controls { position: static; max-height: none; } }

/* orders */
.store .summary { position: sticky; top: 72px; display: grid; gap: 12px; }
.sum { margin: 0; display: grid; }
.sum div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: .88rem; }
.sum dt { color: var(--ink2); } .sum dd { margin: 0; font-weight: 600; }
.sum .tot { font-size: 1.05rem; } .sum .tot dd { font: 400 1.5rem var(--serif); }
.timeline { display: flex; flex-wrap: wrap; gap: 4px; }
.timeline span { font-size: .7rem; padding: 2px 6px; border-radius: 4px; background: var(--line2); color: var(--ink3); }
.timeline span.done { background: var(--ok-bg); color: var(--ok); }

/* qr */
.qrg { grid-template-columns: 1.6fr 1fr; }
.qrthumb { border: 0; padding: 0; background: none; cursor: pointer; display: block; width: 44px; }
.qrthumb svg { width: 44px; height: 44px; display: block; }
.qrbig svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto 8px; }
.qrt code { background: var(--line2); padding: 2px 6px; border-radius: 4px; }
@media (max-width: 1100px) { .qrg { grid-template-columns: 1fr; } }

/* reservations */
.resbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.resbar input[type=date] { width: auto; }
.tl { padding: 12px 14px 18px; }
.tl-head { position: relative; height: 22px; margin-left: 92px; font-size: .7rem; color: var(--ink3); border-bottom: 1px solid var(--line); }
.tl-head span { position: absolute; transform: translateX(-50%); }
.tl-area { margin-top: 10px; }
.tl-alabel { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--brass); margin: 6px 0 4px; }
.tl-row { display: grid; grid-template-columns: 84px 1fr; gap: 8px; align-items: center; height: 34px; }
.tl-name { font-weight: 700; font-size: .8rem; display: flex; justify-content: space-between; padding-right: 6px; }
.tl-name small { color: var(--ink3); font-weight: 500; }
.tl-track { position: relative; height: 28px; border-radius: 4px; background: #FBF8F2; }
.tl-hour { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-open { position: absolute; top: 0; bottom: 0; background: rgba(176, 141, 87, .08); }
.tl-res { position: absolute; top: 2px; bottom: 2px; border: 0; border-radius: 4px; background: var(--char); color: var(--cream); font-size: .72rem; text-align: left; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.tl-res.seated { background: var(--ok); } .tl-res.completed { background: #8A7F73; } .tl-res.cancelled, .tl-res.no_show { background: repeating-linear-gradient(45deg, #ddd 0 4px, #eee 4px 8px); color: var(--ink3); text-decoration: line-through; }
.st { font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line2); }
.st.confirmed { background: #ECE6F7; color: #4E3D7A; } .st.seated { background: var(--ok-bg); color: var(--ok); } .st.cancelled, .st.no_show { background: var(--bad-bg); color: var(--bad); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slots button { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 6px 9px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.slots button.on { background: var(--char); color: var(--cream); border-color: var(--char); }
.slots button:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban .col { background: #EFE9DF; border-radius: 10px; padding: 10px; min-height: 200px; display: grid; gap: 8px; align-content: start; }
.kanban h4 { margin: 2px 4px 4px; }
.kcard { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; cursor: pointer; }
.kcard:hover { border-color: var(--ink3); }

/* hours */
.hrow { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.periods { display: grid; gap: 6px; }
.period { display: flex; gap: 6px; align-items: center; }
.period input[type=time] { width: 130px; }
.period .cell { width: 120px; }
@media (max-width: 640px) { .hrow { grid-template-columns: 1fr; } .period { flex-wrap: wrap; } }

/* charts */
.chart { width: 100%; height: auto; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { font-size: 10px; fill: var(--ink3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: minmax(110px, 1.2fr) 2fr 52px; gap: 10px; align-items: center; font-size: .84rem; }
.bars .bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .bt { height: 8px; background: var(--line2); border-radius: 999px; overflow: hidden; }
.bars .bt span { display: block; height: 100%; background: var(--brass-l); border-radius: 999px; }
.bars b { text-align: right; }
.audit li { align-items: flex-start; }

/* online orders */
.kanban.four { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.ocard .oc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ocard.delivery { border-left: 3px solid #B08D57; }
.tag.warn { background: #F4E7CF; color: #6E5226; border-color: #E6D2AC; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; align-items: end; }
.chk { display: flex; gap: 10px; align-items: center; font-size: .92rem; min-height: 40px; }
