/* The console. Same look as johnscreekscreens.com: stage black, warm paper, one signal accent. */
:root {
  --ink: #0b0b0d; --ink-2: #17171b; --ink-line: rgba(255, 255, 255, .1); --on-ink: #f3f0ea; --on-ink-2: #aaa69e;
  --paper: #f3efe8; --paper-2: #ece6dc; --card: #fdfcf9; --text: #141416; --text-2: #57534c; --line: #dcd4c7;
  --accent: #ff5a2c; --accent-deep: #c2380f; --ok: #0c7a5e; --ok-bg: #d8f0e6; --warn: #8a6410; --warn-bg: #fbedc4; --bad: #b3261e; --bad-bg: #fbe0dc; --quiet-bg: #e9e4da;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 15px/1.45 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 600; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
[hidden] { display: none !important; }

/* shell */
.test-bar { position: sticky; top: 0; z-index: 10; min-height: 29px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; background: #ffe9a8; color: #4a3a05; font-size: 13px; padding: 5px 16px; }
.test-bar button { border: 0; background: none; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
.layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 29px); }
.side { background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 29px; height: calc(100vh - 29px); }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; font-weight: 600; letter-spacing: -.01em; color: inherit; text-decoration: none; }
.side .logo svg { width: 30px; height: 30px; flex: none; }
.side .who-for { padding: 0 8px 12px; }
.side .who-for label { display: block; font-size: 12px; color: var(--on-ink-2); margin-bottom: 4px; }
.side .who-for select { width: 100%; background: var(--ink-2); color: var(--on-ink); border: 1px solid var(--ink-line); border-radius: 8px; padding: 7px 8px; }
.side .for-name { font-weight: 600; line-height: 1.25; }
.usage { margin-top: 8px; font-size: 12.5px; line-height: 1.35; color: var(--on-ink-2); }
.usage i { display: block; height: 4px; border-radius: 4px; background: var(--ink-line); overflow: hidden; margin-bottom: 5px; }
.usage i b { display: block; height: 100%; border-radius: 4px; background: var(--on-ink-2); }
.usage.full { color: #ffd479; }
.usage.full i b { background: #ffd479; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--on-ink-2); text-decoration: none; font-weight: 500; }
.side nav a:hover { background: var(--ink-2); color: var(--on-ink); }
.side nav a.on { background: var(--ink-2); color: var(--on-ink); box-shadow: inset 2px 0 0 var(--accent); }
.side nav a svg { width: 18px; height: 18px; flex: none; }
.side .me { border-top: 1px solid var(--ink-line); padding: 12px 8px 0; font-size: 13px; }
.side .me b { display: block; font-weight: 600; }
.side .me span { display: block; color: var(--on-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side .me button { margin-top: 8px; background: none; border: 1px solid var(--ink-line); color: var(--on-ink); border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.side .me button:hover { background: var(--ink-2); }
#view { padding: 26px 32px 60px; min-width: 0; max-width: 1320px; width: 100%; }

/* page furniture */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head > div:first-child { min-width: 0; }
.page-head p { color: var(--text-2); margin-top: 4px; }
.crumbs { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 6px; opacity: .6; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head p { color: var(--text-2); font-size: 14px; }
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.two > .panel + .panel { margin-top: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px; }
.tile span { display: block; font-size: 13px; color: var(--text-2); }
.tile b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile small { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
button.tile { font: inherit; text-align: left; cursor: pointer; }
button.tile:hover { border-color: var(--text-2); }
button.tile.on { border-color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent-deep); }

/* buttons, pills, switches */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-weight: 500; padding: 8px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #2a2a30; }
.btn.accent { background: var(--accent-deep); color: #fff; }
.btn.accent:hover { background: #a82f0c; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.danger { background: transparent; color: var(--bad); border-color: #e9b9b3; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.sm { padding: 5px 10px; font-size: 13.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.link { border: 0; background: none; padding: 0; color: var(--accent-deep); text-decoration: underline; cursor: pointer; font-size: inherit; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; background: var(--quiet-bg); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch i { position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 24px; background: #c9c2b5; transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* forms */
.f { display: block; margin-bottom: 12px; min-width: 0; }
.f > span, .f-label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 4px; }
.f small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 3px; }
input[type=text], input[type=email], input[type=date], input[type=time], input[type=number], input[type=search], input[type=tel], input[type=url], select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--text-2); }
textarea { min-height: 72px; resize: vertical; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; }
.check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); flex: none; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.actions .right { margin-left: auto; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--paper-2); border-radius: 9px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span { display: block; padding: 5px 11px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.seg input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-deep); }
.err { color: var(--bad); font-size: 14px; }
.note-box { background: var(--paper-2); border-radius: 9px; padding: 9px 12px; font-size: 13.5px; color: var(--text-2); }
.warn-box { background: var(--warn-bg); color: #5c430a; border-radius: 9px; padding: 9px 12px; font-size: 13.5px; }
.warn-box ul { margin: 0; padding-left: 18px; }

/* filters and tables */
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input[type=search] { flex: 1 1 220px; max-width: 340px; }
.filters select { width: auto; min-width: 130px; }
.filters .check { margin: 0 0 0 4px; font-size: 14px; }
.filters .count { margin-left: auto; font-size: 13px; color: var(--text-2); }
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text-2); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
th button:hover { color: var(--text); }
th button.on { color: var(--text); font-weight: 600; }
td { padding: 10px 12px; border-bottom: 1px solid var(--paper-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.go { cursor: pointer; }
tbody tr.go:hover { background: #f7f3ec; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td b { font-weight: 600; }
.cell-name a { font-weight: 600; text-decoration: none; }
.cell-name a:hover { text-decoration: underline; }
.cell-name span:not(.pill) { display: block; font-size: 13px; color: var(--text-2); }
.empty { padding: 28px 16px; text-align: center; color: var(--text-2); }

/* screens */
.screen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.screen-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-decoration: none; }
.screen-card:hover { border-color: var(--text-2); }
.screen-card .tb { display: flex; justify-content: center; background: #1b1b1f; border-radius: 8px; overflow: hidden; height: 182px; }
.screen-card .shot { width: 100%; border-radius: 0; flex: none; }
.screen-card .shot.tall { width: 102px; }
.screen-card .meta { padding: 10px 4px 2px; }
.screen-card .meta b { display: block; font-weight: 600; }
.screen-card .meta div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.live-frame { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.live-frame.tall { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
.live-frame iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; }
.link-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.link-row code { font-family: var(--mono); font-size: 13px; background: var(--paper-2); border-radius: 7px; padding: 6px 9px; flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hours-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.hours-day { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.hours-time { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.hours-time input { width: 124px; padding: 4px 6px; }

/* cards on a screen */
.card-list { list-style: none; margin: 0; padding: 0; }
.card-row { display: grid; grid-template-columns: 26px 118px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 8px 6px; border-top: 1px solid var(--paper-2); background: var(--card); }
.card-row:first-child { border-top: 0; }
.card-row.off .thumb, .card-row.off .main { opacity: .5; }
.card-row.drag { opacity: .4; }
.card-row.over { box-shadow: inset 0 2px 0 var(--accent-deep); }
.card-row .grip { display: flex; flex-direction: column; align-items: center; gap: 0; }
.card-row .grip button { border: 0; background: none; cursor: pointer; padding: 0 4px; line-height: 1; color: var(--text-2); font-size: 13px; border-radius: 4px; }
.card-row .grip button:hover:not(:disabled) { color: var(--text); background: var(--paper-2); }
.card-row .grip button:disabled { opacity: .25; cursor: default; }
.card-row .thumb { display: flex; justify-content: center; }
.card-row .shot { border-radius: 6px; }
.card-row .shot.tall { width: 40px; }
.card-row .main { min-width: 0; }
.card-row .main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-row .main span { font-size: 13px; color: var(--text-2); }
.secs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text-2); }
.secs input { width: 56px; padding: 4px 6px; text-align: right; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.lib-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; text-decoration: none; display: block; }
.lib-card:hover { border-color: var(--text-2); }
.lib-card .tb { background: #1b1b1f; border-radius: 7px; overflow: hidden; }
.lib-card .shot { border-radius: 0; }
.lib-card b { display: block; padding: 8px 4px 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-card span { display: block; padding: 0 4px 3px; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* card editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
.editor .side-preview { position: sticky; top: 14px; }
.editor .side-preview .panel + .panel { margin-top: 12px; }
.preview-box { background: #1b1b1f; border-radius: 10px; overflow: hidden; display: flex; justify-content: center; }
.preview-box .shot { border-radius: 0; }
.preview-box .shot.tall { width: 52%; }
.frame-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin-top: 8px; }
.frame-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.img-field { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.img-field .prev { width: 64px; height: 44px; border-radius: 6px; background: var(--paper-2); overflow: hidden; }
.img-field .prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-field label.btn { position: relative; overflow: hidden; }
.img-field input[type=file] { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rows-head { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-2); padding: 0 30px 3px 0; }
.row-item { display: grid; gap: 6px; align-items: center; margin-bottom: 6px; position: relative; padding-right: 30px; }
.row-item input[type=text] { padding: 6px 8px; font-size: 14px; }
.row-item .row-x { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; cursor: pointer; color: var(--text-2); font-size: 16px; line-height: 1; }
.row-item .row-x:hover { background: var(--bad-bg); color: var(--bad); }
.row-item .row-check { display: flex; justify-content: center; }
.row-item .row-check input { width: 17px; height: 17px; accent-color: var(--ink); }
.swatch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
input[type=color] { width: 44px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--card) 30%); padding-top: 14px; margin-top: 4px; }

/* lock panel */
.locked { background: var(--paper-2); border-color: var(--paper-2); }
.lock-title { display: flex; align-items: center; gap: 8px; }
.lock-title svg { width: 16px; height: 16px; }
.lock-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 10px 0; }
.lock-list div span { display: block; font-size: 12.5px; color: var(--text-2); }
.lock-list div b { font-weight: 500; }

/* sign in */
.signin { min-height: calc(100vh - 29px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--ink); color: var(--on-ink); }
.signin-box { width: 100%; max-width: 520px; background: var(--card); color: var(--text); border-radius: 16px; padding: 26px; }
.signin-box .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 16px; }
.signin-box .logo svg { width: 30px; height: 30px; }
.signin-box h3 { margin: 16px 0 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.acct { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; margin-bottom: 5px; cursor: pointer; text-align: left; }
.acct:hover { border-color: var(--text-2); }
.acct b { font-weight: 600; display: block; }
.acct span { font-size: 13px; color: var(--text-2); }
.acct div { min-width: 0; }
.acct div span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* dialog and toast */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); background: var(--card); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(11, 11, 13, .55); }
.dlg { padding: 20px 22px; }
.dlg h2 { margin-bottom: 4px; }
.dlg > p { color: var(--text-2); margin-bottom: 12px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.type-grid a, .type-grid button { display: block; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; text-decoration: none; text-align: left; cursor: pointer; width: 100%; }
.type-grid a:hover, .type-grid button:hover { border-color: var(--text-2); }
.type-grid b { display: block; font-weight: 600; }
.type-grid span { display: block; font-size: 13px; color: var(--text-2); line-height: 1.3; }
.pick-list { max-height: 34vh; overflow-y: auto; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 12px); background: var(--ink); color: var(--on-ink); padding: 9px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 50; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--bad); color: #fff; }

/* system page */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.theme-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.theme-card .sw { display: flex; height: 44px; }
.theme-card .sw i { flex: 1; }
.theme-card div:last-child { padding: 9px 12px; }
.theme-card b { font-weight: 600; }
.theme-card span { display: block; font-size: 13px; color: var(--text-2); }
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.theme-pick label { cursor: pointer; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; display: block; background: #fff; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick input:checked + .tp { box-shadow: inset 0 0 0 2px var(--accent-deep); }
.theme-pick input:focus-visible + .tp { outline: 2px solid var(--accent-deep); }
.theme-pick .tp { display: block; padding: 8px 10px; border-radius: 9px; }
.theme-pick .tp .sw { display: flex; height: 22px; border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
.theme-pick .tp .sw i { flex: 1; }
.theme-pick .tp b { font-weight: 600; font-size: 14px; }

/* phones */
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .test-bar { position: static; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; gap: 6px 12px; }
  .side .logo { padding: 0; }
  .side .logo span { display: none; }
  .side .who-for { padding: 0; flex: 1; min-width: 0; order: 1; }
  .side .who-for label { display: none; }
  .side .for-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side nav { order: 3; flex: 1 1 100%; flex-direction: row; overflow-x: auto; }
  .side nav a { padding: 6px 10px; white-space: nowrap; }
  .side nav a.on { box-shadow: inset 0 -2px 0 var(--accent); }
  .side nav a svg { display: none; }
  .side .me { border: 0; padding: 0; order: 2; }
  .side .me b, .side .me span { display: none; }
  .side .me button { margin: 0; }
  #view { padding: 16px 16px 48px; }
  h1 { font-size: 24px; }
  .two, .editor { grid-template-columns: minmax(0, 1fr); }
  .editor .side-preview { position: static; order: -1; }
  .card-row { grid-template-columns: 26px 84px minmax(0, 1fr) auto; }
  .card-row .secs { display: none; }
  .card-row .edit { grid-column: 3 / -1; justify-self: start; }
  .rt thead { display: none; }
  .rt, .rt tbody, .rt tr, .rt td { display: block; width: 100%; }
  .rt tr { padding: 10px 12px; border-bottom: 1px solid var(--paper-2); }
  .rt td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .rt td[data-label]::before { content: attr(data-label); color: var(--text-2); font-size: 13px; text-align: left; flex: none; }
  .rt td.cell-name { display: block; text-align: left; }
  .rt td.num { text-align: right; }
  .row-item { grid-template-columns: 1fr 1fr !important; }
  .rows-head { display: none; }
  .hours-grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hours-time { margin-bottom: 8px; }
  .hours-time input { width: auto; flex: 1; min-width: 0; }
}

/* locations */
.loc-group { margin-top: 22px; }
.loc-group:first-of-type { margin-top: 6px; }
.loc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.loc-head h2 { font-size: 16px; }
.loc-head span { color: var(--text-2); font-size: 13px; }
.for-loc { color: var(--on-ink-2); font-size: 12px; margin-top: 2px; }

/* shared screens: tenants, spots, notices */
.side nav a .nav-count { margin-left: auto; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 1px 7px; }
.spot { margin-top: 14px; }
.spot .panel-head { align-items: flex-start; }
.spot-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pulled-why { display: block; color: var(--bad); font-size: 12.5px; margin-top: 3px; }
.ended { margin-top: 16px; }
.ended summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.spot-card { margin-top: 14px; }
.play-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.usage-line { font-size: 13px; color: var(--text-2); margin: 10px 0 2px; }
.usage-line.full { color: var(--warn); }
.qr-box { width: 200px; margin: 12px auto; background: #fff; padding: 10px; border-radius: 10px; border: 1px solid var(--line); }
.qr-box svg { display: block; width: 100%; height: auto; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notice-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.notice-list li.new { border-left: 4px solid var(--accent); }
.notice-list li.new p { font-weight: 600; }
.notice-list li p { margin: 0 0 2px; }
.notice-list li span { color: var(--text-2); font-size: 12.5px; }
.notice-actions { display: flex; gap: 6px; flex: none; }
.test-accounts { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.test-accounts summary { cursor: pointer; color: var(--text-2); font-size: 13px; }
.dev-code { display: block; margin-top: 6px; padding: 6px 10px; background: #fff4c2; color: #4a3b00; border-radius: 8px; }
/* a tenant's card in a list: no grip, no seconds, and one or two buttons at the end */
.card-row.t { grid-template-columns: 118px minmax(0, 1fr) auto auto; }
.card-row.t .main b { white-space: normal; }
@media (max-width: 760px) {
  .card-row.t { grid-template-columns: 84px minmax(0, 1fr); }
  .card-row.t > .btn, .card-row.t > .pill { grid-column: 2; justify-self: start; }
}

/* signing up from the website (public/app/signup.js) */
.steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; counter-reset: s; }
.steps li a { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 20px; text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; background: var(--paper-2); }
.steps li a i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text-2); }
.steps li.done a i { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.on a { background: var(--ink); color: var(--on-ink); }
.steps li.on a i { background: var(--accent); border-color: var(--accent); color: #fff; }
.how { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.how b { color: var(--text); }
.how li.done { text-decoration: line-through; text-decoration-color: var(--ok); }
.kind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.kind { display: block; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 36px; cursor: pointer; }
.kind input { position: absolute; left: 12px; top: 13px; margin: 0; accent-color: var(--ink); }
.kind b { display: block; font-size: 14.5px; }
.kind span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.kind.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.scr-list { list-style: none; margin: 8px 0 0; padding: 0; }
.scr-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--paper-2); }
.scr-list li:first-child { border-top: 0; }
.scr-list li > div:first-child { min-width: 0; }
.scr-list li span:not(.pill) { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.scr-list .check-note { color: var(--text) !important; }
.row-actions { display: flex; gap: 6px; flex: none; }
.price-box h2 { margin-bottom: 10px; }
.price-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--paper-2); font-size: 14px; }
.price-line small { display: block; color: var(--text-2); font-size: 12.5px; }
.price-line b { white-space: nowrap; }
.price-detail { list-style: none; margin: 4px 0 8px; padding: 0; font-size: 13px; }
.price-detail li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--text-2); }
.price-detail b { font-weight: 500; color: var(--text); }
.price-box p { margin-top: 6px; }
.ok-box { background: var(--ok-bg); color: #0b4d3c; border-radius: 9px; padding: 9px 12px; font-size: 14px; }
.biz-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr) 86px; gap: 0 10px; }
.photo-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel.sticky { position: sticky; top: 46px; }
.mail-frame { width: 100%; height: min(70vh, 640px); border: 1px solid var(--line); border-radius: 10px; background: #f3f0ea; margin: 10px 0; }
dialog:has(.mail-frame) { width: min(720px, calc(100vw - 32px)); }
@media (max-width: 860px) {
  .biz-row { grid-template-columns: minmax(0, 1fr) 80px; }
  .biz-row .f:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .panel.sticky { position: static; }
  .scr-list li { flex-wrap: wrap; }
}

/* brands, and the cards businesses pay us to build (public/app/brands.js, shared.js) */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.brand-tile { text-decoration: none; display: block; }
.brand-tile:hover { border-color: var(--text-2); }
.brand-tile + .brand-tile { margin-top: 0; }
.pill.brand-pill { background: var(--ink); color: var(--on-ink); }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.tier { display: flex; flex-direction: column; gap: 4px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px 12px 36px; cursor: pointer; }
.tier input { position: absolute; left: 12px; top: 15px; margin: 0; accent-color: var(--ink); }
.tier b { font-size: 15.5px; }
.tier .tier-price { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.tier span:not(.tier-price) { font-size: 13px; color: var(--text-2); }
.tier small { font-size: 12px; color: var(--text-2); margin-top: auto; }
.tier.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tier-more summary { cursor: pointer; }
.tier-status, .tier-more { margin: 12px 0; }
.img-field[data-video] .prev video { width: 100%; max-height: 120px; border-radius: 6px; background: #000; }
