/* BookView dashboard. Nexvora family look (navy + teal, Inter, left sidebar), light first. */
:root {
  --bg: #f3f6fa; --side: #ffffff; --surface: #ffffff; --surface-2: #f8fafc; --sunk: #eef2f7; --line: #dde4ec; --line-2: #e9eef4;
  --ink: #102030; --muted: #5a6b7d; --navy: #00203f;
  --accent: #0b8f86; --accent-ink: #087068; --accent-soft: rgba(11, 143, 134, .1); --on-accent: #fff;
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, .1); --warn: #b45309; --warn-soft: rgba(180, 83, 9, .1);
  --crit: #c2331f; --crit-soft: rgba(194, 51, 31, .09); --blue: #1d6fd1; --blue-soft: rgba(29, 111, 209, .1); --idle: #6d28d9; --idle-soft: rgba(109, 40, 217, .1);
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --f-brand: "Montserrat", "Inter", sans-serif;
  --r: 12px; --shadow: 0 1px 2px rgba(16, 32, 48, .04), 0 4px 16px rgba(16, 32, 48, .05);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 14px/1.5 var(--f-body); font-feature-settings: "cv11"; background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1rem; font-weight: 600; }
h3 { font-size: .9rem; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }

/* Shell */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 12px; background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: grid; gap: 4px; padding: 0 8px 6px; text-decoration: none; color: inherit; }
.brand img { width: 112px; }
.product { font-family: var(--f-brand); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; color: var(--navy); }
.product span { color: var(--accent); }
.bizname { margin: 0 4px; padding: 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; gap: 10px; align-items: center; min-width: 0; }
.bizname img, .bizname .ini { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-soft); display: grid; place-items: center; font-weight: 700; color: var(--accent); font-size: .8rem; }
.bizname b { display: block; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bizname small { color: var(--muted); font-size: .72rem; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.navgroup { font: 600 .66rem/1.4 var(--f-body); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 12px 10px 4px; }
.tab { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; cursor: pointer; text-align: left; text-decoration: none; white-space: nowrap; }
.tab:hover { color: var(--ink); background: var(--sunk); }
.tab[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.tab .count { margin-left: auto; font-size: .7rem; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; font-weight: 600; }
.sitecard { margin-top: auto; padding: 14px; border-radius: 12px; background: linear-gradient(160deg, rgba(11, 143, 134, .12), rgba(29, 111, 209, .06)); border: 1px solid rgba(11, 143, 134, .25); display: grid; gap: 8px; font-size: .8rem; }
.sitecard { gap: 10px; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sc-head b { font-size: .86rem; }
.sc-live { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; color: #0f7a4f; text-transform: uppercase; letter-spacing: .04em; }
.sc-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.sc-url { display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid rgba(11, 143, 134, .2); text-decoration: none; min-width: 0; }
.sc-url:hover { border-color: var(--accent); }
.sc-host { font-size: .7rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-path { font-size: .84rem; font-weight: 600; color: var(--accent-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sc-btns .btn { padding: 0 8px; width: 100%; min-width: 0; }
.side-foot { font-size: .72rem; color: var(--muted); padding: 0 8px; display: flex; justify-content: space-between; }
.side-foot button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; font-size: .72rem; }
.side-foot button:hover { color: var(--ink); text-decoration: underline; }

.main { min-width: 0; padding: 20px 28px 56px; display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 40px; }
.top h1 { font-size: 1.4rem; font-weight: 650; letter-spacing: -.02em; }
.top .sub { color: var(--muted); font-size: .85rem; margin: 2px 0 0; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .app { display: block; }
  .side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .brand { padding: 0; flex: none; } .brand img { display: none; }
  .navgroup, .sitecard, .side-foot { display: none; }
  /* Phones: keep the bell (and Switch app in the Nexvora app) in the top row. */
  .bizname { display: contents; } .bizname > :not(.bell) { display: none; }
  .side .bell { order: 1; flex: none; margin-left: 0; } .side .nav { order: 2; }
  .nav { flex-direction: row; gap: 2px; }
  .tab span.lbl { display: none; } .tab { padding: 8px 10px; }
  .tab[aria-current="page"] span.lbl { display: inline; }
  .main { padding: 16px 14px 48px; }
}

/* Controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--ink); }
.btn:hover { background: var(--surface-2); border-color: #c9d3de; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-ink); }
.btn.danger { color: var(--crit); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 2px; }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--muted); font-size: .84rem; }
.seg button[aria-pressed="true"] { background: var(--sunk); color: var(--ink); font-weight: 600; }
input.in, select.in, textarea.in { height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
textarea.in { height: auto; min-height: 84px; padding: 8px 10px; resize: vertical; }
.search { position: relative; } .search svg { position: absolute; left: 10px; top: 10px; color: var(--muted); } .search input { padding-left: 32px; width: 240px; }

.field { display: grid; gap: 5px; }
.field > label, .field > .lbl { font-size: .8rem; font-weight: 600; }
.field .hint { font-size: .76rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: center; cursor: pointer; font-weight: 500; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 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 + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.card .pad { padding: 16px; }
.bizname { position: relative; }
.bell { margin-left: auto; position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.bell i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d4372c; color: #fff; font: 700 .68rem/18px system-ui, sans-serif; font-style: normal; text-align: center; }
.inbox { display: grid; gap: 6px; }
.inrow { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; }
.inrow.unread { border-color: var(--accent, #0b8f86); background: #f2fbfa; }
.inrow span { font-size: .86rem; }
.inrow small { color: var(--muted); font-size: .74rem; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .88rem; }
.steps-list code { background: #f1f4f7; padding: 2px 6px; border-radius: 4px; }
.requests { border-color: #f5c46b; background: #fffaf0; }
.requests header h2 { display: flex; align-items: center; gap: 8px; }
.reqrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.reqrow .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.chip.requested { background: #fff1d6; color: #8a5a00; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 14px 16px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.kpi b { font-size: 1.55rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: .78rem; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: .72rem; font-weight: 600; white-space: nowrap; background: var(--sunk); color: var(--muted); }
.chip.confirmed { background: var(--blue-soft); color: var(--blue); }
.chip.completed, .chip.paid, .chip.in { background: var(--ok-soft); color: var(--ok); }
.chip.no_show { background: var(--warn-soft); color: var(--warn); }
.chip.cancelled { background: var(--crit-soft); color: var(--crit); }
.chip.unpaid { background: var(--sunk); color: var(--muted); }
.chip.web { background: var(--accent-soft); color: var(--accent-ink); }
.chip.acct { background: var(--blue-soft); color: var(--blue); }

/* Today timeline */
.timeline { display: grid; }
.trow { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--surface-2); }
.trow.past { opacity: .6; }
.trow.now { box-shadow: inset 3px 0 0 var(--accent); background: rgba(11, 143, 134, .04); }
.trow time { font-weight: 650; font-variant-numeric: tabular-nums; font-size: .95rem; }
.trow time small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.trow .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .who span { color: var(--muted); font-size: .82rem; }
.trow .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .trow { grid-template-columns: 56px 1fr; } .trow .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }

/* Tables */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--surface-2); }
table.t td.r, table.t th.r { text-align: right; }

/* Calendar */
.cal { overflow: auto; max-height: calc(100vh - 170px); position: relative; }
.calgrid { display: grid; min-width: 760px; position: relative; }
.calhead { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: center; font-size: .78rem; color: var(--muted); }
.calhead b { display: block; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.calhead.today b { color: #fff; background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin: 2px auto 0; }
.calhead.corner { left: 0; z-index: 4; }
.hourcol { position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); }
.hourcol div { font-size: .7rem; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.daycol { position: relative; border-right: 1px solid var(--line-2); cursor: copy; }
.daycol.closed { background: repeating-linear-gradient(135deg, var(--surface-2), var(--surface-2) 6px, var(--sunk) 6px, var(--sunk) 7px); }
.daycol .hl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-2); pointer-events: none; }
.daycol .hl.half { border-top-style: dashed; opacity: .6; }
.daycol .openband { position: absolute; left: 0; right: 0; background: var(--surface); pointer-events: none; }
.nowline { position: absolute; left: 0; right: 0; height: 2px; background: var(--crit); z-index: 2; pointer-events: none; }
.nowline::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--crit); }
.ev { position: absolute; left: 3px; right: 3px; border-radius: 6px; padding: 3px 6px; font-size: .72rem; line-height: 1.25; overflow: hidden; cursor: pointer; border-left: 3px solid var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 13%, #fff); color: var(--ink); z-index: 1; }
.ev:hover { filter: brightness(.97); z-index: 2; box-shadow: 0 4px 12px rgba(16, 32, 48, .12); }
.ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; }
.ev span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ev.st-completed { opacity: .75; } .ev.st-no_show { opacity: .6; border-left-style: dashed; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(10, 20, 35, .35); z-index: 40; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); z-index: 41; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(16, 32, 48, .18); animation: slide .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer > header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer > header h2 { flex: 1; font-size: 1.05rem; }
.drawer .body { padding: 18px; overflow-y: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.drawer > footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.iconbtn { width: 34px; height: 34px; border-radius: 8px; border: 0; background: var(--sunk); display: grid; place-items: center; cursor: pointer; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: .88rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.err { color: var(--crit); background: var(--crit-soft); padding: 9px 12px; border-radius: 8px; font-size: .85rem; }
.note { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font-size: .84rem; color: var(--muted); }
.note b { color: var(--ink); }
.soon { display: inline-flex; padding: 1px 7px; border-radius: 99px; font-size: .66rem; font-weight: 700; background: var(--idle-soft); color: var(--idle); text-transform: uppercase; letter-spacing: .05em; vertical-align: 1px; }
.slotpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.slotpick button { height: 34px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .8rem; font-variant-numeric: tabular-nums; }
.slotpick button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Website builder */
.builder { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.builder .editor { display: grid; gap: 14px; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 4px; position: sticky; top: 20px; }
.previewbox { position: sticky; top: 20px; display: grid; gap: 10px; }
.previewbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin-inline: auto; width: 100%; transition: width .25s; }
.browser.phone { width: 390px; }
.browser .chrome { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d0d7e0; }
.browser .chrome span { flex: 1; margin-left: 8px; background: var(--surface); border-radius: 6px; padding: 3px 10px; font-size: .74rem; color: var(--muted); font-family: ui-monospace, Consolas, monospace; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.framewrap { overflow: hidden; position: relative; }
.browser iframe { width: 100%; height: 560px; border: 0; display: block; background: #fff; transform-origin: 0 0; }
@media (max-width: 1100px) { .builder { grid-template-columns: 1fr; } .builder .editor { position: static; max-height: none; } .browser.phone { width: min(390px, 100%); } }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--surface); cursor: pointer; text-align: left; display: grid; gap: 6px; }
.theme[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.theme .sw { height: 46px; border-radius: 6px; display: flex; align-items: flex-end; padding: 6px 8px; font-size: .9rem; }
.theme small { font-size: .74rem; color: var(--muted); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatches input[type=color] { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.secrow { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); }
.secrow:last-child { border-bottom: 0; }
.secrow b { flex: 1; font-weight: 500; }
.secrow .mv { display: flex; gap: 2px; }
.secrow .mv button { width: 26px; height: 26px; border: 0; border-radius: 6px; background: var(--sunk); cursor: pointer; display: grid; place-items: center; }
.secrow .mv button:disabled { opacity: .3; cursor: default; }
.imgpick { display: flex; gap: 10px; align-items: center; }
.imgpick img, .imgpick .ph { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--sunk); border: 1px solid var(--line); }
.imgpick img.round { width: 48px; border-radius: 50%; }
.hoursed { display: grid; gap: 6px; }
.hoursed .row { display: grid; grid-template-columns: 92px 40px 1fr; gap: 8px; align-items: center; font-size: .84rem; }
.hoursed .ranges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hoursed input[type=time] { height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.savebar { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; display: flex; gap: 8px; align-items: center; z-index: 2; }
.savebar .state { font-size: .8rem; color: var(--muted); flex: 1; }

/* Services / team / photos */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.itemcard { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.itemcard:hover { border-color: #c4ced9; }
.itemcard img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; background: var(--sunk); }
.itemcard .pad { display: grid; gap: 6px; }
.itemcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.itemcard.off { opacity: .55; }
.person { display: flex; gap: 12px; align-items: center; }
.person .av { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; object-fit: cover; flex: none; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo .cap { padding: 8px 10px; font-size: .78rem; display: flex; gap: 6px; align-items: center; }
.photo .cap input { flex: 1; border: 0; background: transparent; min-width: 0; font-size: .78rem; padding: 2px 0; }
.photo .del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.dropzone { border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--muted); cursor: pointer; min-height: 160px; gap: 6px; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.connect { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.connect .logo { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; }
.connect div { flex: 1; } .connect small { color: var(--muted); display: block; font-size: .78rem; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .86rem; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); animation: fade .15s; }
.loading { padding: 48px; text-align: center; color: var(--muted); }

/* Login */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: radial-gradient(1200px 600px at 20% 10%, rgba(34, 179, 169, .35), transparent 60%), linear-gradient(160deg, #00203f, #013a4a); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .art h1 { font-size: 2.2rem; line-height: 1.15; max-width: 14ch; letter-spacing: -.02em; }
.auth .art p { opacity: .8; max-width: 40ch; }
.auth .art ul { padding: 0; list-style: none; display: grid; gap: 10px; opacity: .92; }
.auth .art li { display: flex; gap: 10px; align-items: center; }
.auth .form { display: grid; place-items: center; padding: 32px 20px; }
.auth form { width: min(380px, 100%); display: grid; gap: 14px; }
.auth form h2 { font-size: 1.4rem; }
.auth .btn { height: 42px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .art { display: none; } }

/* Notifications */
.chan { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.ntable th.c, .ntable td.c { text-align: center; width: 76px; }
.ntable th.grp { border-bottom: 1px solid var(--line); }
.ntable .switch { display: inline-block; vertical-align: middle; }
.ntable .switch input:disabled + i { opacity: .35; cursor: not-allowed; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: .84rem; }
.pill button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: inherit; }
.pill button:hover { background: rgba(0, 0, 0, .08); }
.pill svg.i { width: 14px; height: 14px; }
.varchips { display: flex; flex-wrap: wrap; gap: 6px; }
.varchips button { font-family: ui-monospace, Consolas, monospace; font-size: .74rem; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.varchips button:hover { border-color: var(--accent); color: var(--accent-ink); }
.msgpreview { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; font-size: .86rem; line-height: 1.5; overflow-wrap: anywhere; }
.drawer.wide { width: min(640px, 100%); }

/* Add-ons */
.addon-group { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 10px; }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.addon { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.addon p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.addon-head { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.addon-foot { display: flex; gap: 8px; align-items: center; margin-top: 4px; min-height: 32px; }
.addon.kind-soon { background: var(--surface-2); }
.addon.kind-soon b { color: var(--muted); }

/* Selling */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; }
.chip.pending { background: var(--warn-soft); color: var(--warn); }
.chip.deposit { background: var(--blue-soft); color: var(--blue); }
.connect input[type="radio"] { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }

/* Service editor: resources, extras */
.res-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.extras-head, .extra-row { display: grid; grid-template-columns: 1fr 80px 80px 36px; gap: 6px; align-items: center; }
.extras-head span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
#s-extras { display: grid; gap: 6px; }
.bell.appsw { margin-left: 4px; color: inherit; }

/* Public demo strip above the page */
.app:has(> .demobar) { grid-template-rows: auto 1fr; }
.app:has(> .demobar) > .side { grid-row: 1 / span 2; }
.app > .demobar { grid-column: 2; grid-row: 1; }
.app > .demobar ~ .main { grid-column: 2; grid-row: 2; }
.demobar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff7d6; border-bottom: 1px solid #f1d98a; color: #5a4300; font-size: .82rem; padding: 8px 18px; }
.demobar .i { width: 16px; height: 16px; flex: none; }
.demobar span { flex: 1; min-width: 200px; }
.demobar a { color: #5a4300; font-weight: 600; }
