/* Houston Hub admin styles. One file, no build step. */
:root {
  /* Palette (Nov 13): navy chrome, bright-blue actions, sand marker, slate secondary, blush/sand soft tints */
  --ink: #15202B;
  --ink-soft: #3B4A5C;
  --muted: #5A6E88;
  --slate: #768BA6;
  --surface: #F3F5F8;
  --card: #FFFFFF;
  --border: #DCE3EC;
  --accent: #0798F2;
  --accent-hover: #084F8C;
  --accent-soft: #E3F3FE;
  --link: #084F8C;
  --navy: #084F8C;
  --navy-2: #0A5A9E;
  --navy-3: #0D67B3;
  --sand: #F2C185;
  --sand-soft: #FBEBD4;
  --blush: #F2C9BB;
  --blush-soft: #FAE6DE;
  --review: #5B3BC4;
  --review-soft: #EFE9FF;
  --danger: #A8402A;
  --danger-soft: #FAE6DE;
  --warning: #8A5A00;
  --warning-soft: #FBEBD4;
  --success: #067A52;
  --success-soft: #DDF7EC;
  --sidebar: #084F8C;
  --sidebar-2: #0A5A9E;
  --sidebar-3: #0D67B3;
  --sidebar-text: #CFE0F2;
  --radius: 6px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow', 'Inter', system-ui, sans-serif;
  --font-condensed: 'Barlow Condensed', 'Barlow', 'Inter', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(8, 79, 140, .06);
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--surface); line-height: 1.45; }
a { color: var(--link); }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.1; font-weight: 700; font-family: var(--font-display); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
code { background: #EEF0F3; padding: .1em .35em; border-radius: 4px; }
pre.code { background: var(--sidebar); color: #E8EBEF; padding: 1rem; border-radius: var(--radius); overflow: auto; white-space: pre-wrap; word-break: break-all; }
pre.code code { background: transparent; padding: 0; color: inherit; }
.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* Layout */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); padding: 1rem .75rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; justify-content: space-between; padding: .25rem .5rem; }
.brand-link { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: var(--sand); color: var(--navy); font-weight: 700; }
.brand-text { color: var(--ink); }
.public-body .brand-link { color: var(--ink); margin-bottom: 1rem; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid var(--sidebar-3); border-radius: 6px; padding: .35rem .7rem; }
.nav-group { margin-bottom: .5rem; }
.nav-group-title { font-family: var(--font-condensed); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sand); padding: .6rem .6rem .3rem; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--sidebar-text); text-decoration: none; padding: .5rem .6rem; border-radius: 4px; font-weight: 500; }
.nav-link:hover { background: var(--sidebar-2); color: #fff; }
.nav-link.is-active { background: var(--sidebar-3); color: #fff; box-shadow: inset 3px 0 0 var(--sand); }
.nav-badge { background: #fff; color: var(--navy); font-size: .72rem; font-weight: 700; padding: .05rem .45rem; border-radius: 999px; min-width: 1.4em; text-align: center; }
.nav-link.is-active .nav-badge { background: var(--sand); color: var(--navy); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--sidebar-3); padding-top: .5rem; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.5rem; background: var(--sidebar); color: #fff; border-bottom: 1px solid var(--sidebar-3); position: sticky; top: 0; z-index: 20; }
.topbar a { color: #fff; }
.page-title { font-size: 1.6rem; margin: 0; flex: 1; color: #fff; }
.topbar .topbar-search input[type="search"], .topbar .topbar-search input { min-width: 260px; background: var(--sidebar-2); border-color: var(--sidebar-3); color: #fff; }
.topbar-search input::placeholder { color: var(--sidebar-text); }
.topbar .btn { background: var(--sidebar-2); border-color: var(--sidebar-3); color: #fff; }
.topbar .btn:hover { background: var(--sidebar-3); }
.topbar .btn-primary { background: var(--accent); border-color: var(--accent); }
.topbar .btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.user-chip { display: flex; align-items: center; gap: .6rem; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sand); color: var(--navy); font-weight: 700; font-family: var(--font-display); }
.user-meta { display: flex; flex-direction: column; line-height: 1.15; }
.user-meta small { color: var(--sidebar-text); text-transform: capitalize; }
.content { padding: 1.5rem; max-width: 1500px; width: 100%; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.kpi-label { color: var(--slate); font-family: var(--font-condensed); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { font-family: var(--font-condensed); font-size: 2.5rem; font-weight: 700; line-height: 1; margin: .2rem 0; letter-spacing: .01em; }
.kpi-note { color: var(--muted); font-size: .85rem; }
.kpi a { text-decoration: none; }

/* Pills & alerts */
.pill { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.5; text-transform: capitalize; white-space: nowrap; }
.pill-success { background: var(--success-soft); color: var(--success); }
.pill-warning { background: var(--warning-soft); color: var(--warning); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.pill-accent { background: var(--review-soft); color: var(--review); }
.pill-info { background: var(--accent-soft); color: var(--navy); }
.pill-neutral { background: #EAECF0; color: var(--ink-soft); }
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #A3E9CB; }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: var(--sand); }
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: var(--blush); }
.alert-info { background: var(--accent-soft); color: var(--navy); border-color: #B3DDFB; }
.alert code { background: rgba(0,0,0,.06); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 40px; padding: .45rem .95rem; border-radius: 4px; border: 1px solid #CFD3DA; background: var(--card); color: var(--ink); font: inherit; font-family: var(--font-display); font-weight: 700; font-size: .92rem; letter-spacing: .03em; text-transform: uppercase; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { background: #F0F2F5; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #912018; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: #F0F2F5; }
.btn-sm, .btn-ghost, .table .btn { text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 600; }
.btn-sm { min-height: 32px; padding: .25rem .65rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-group { display: inline-flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Forms */
label { font-weight: 500; font-size: .9rem; }
input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="color"], select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid #CFD3DA; border-radius: 4px; padding: .5rem .7rem; min-height: 40px; width: 100%; }
input[type="color"] { padding: .2rem; width: 56px; }
textarea { min-height: 96px; resize: vertical; }
input[type="file"] { font: inherit; }
.input-sm { max-width: 110px; }
.input-xs { width: 4.5rem; min-width: 3.5rem; padding-left: .35rem; padding-right: .35rem; }
.rooms-table td { padding: .25rem .3rem; }
.rooms-table td:first-child input { min-width: 11rem; }
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .85rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .85rem; align-items: end; }
.field-row .field { margin-bottom: .85rem; }
.form-stack { display: flex; flex-direction: column; gap: .25rem; }
.check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; }
.fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0 0 1rem; }
.fieldset legend { font-weight: 600; padding: 0 .4rem; }
.help { color: var(--muted); font-size: .82rem; }
.lock-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.lock-toggle { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.lock-toggle input { width: 14px; height: 14px; }
.field.is-locked input, .field.is-locked textarea, .field.is-locked select { background: #FFFBEB; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-family: var(--font-condensed); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); font-weight: 700; white-space: nowrap; }
.table tbody tr:hover { background: #F9FAFB; }
.table-compact th, .table-compact td { padding: .35rem .5rem; }
.th-sort { color: inherit; text-decoration: none; }
.th-sort.is-sorted { color: var(--navy); }
.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: #EEF0F3; display: block; }
.thumb-placeholder { width: 56px; height: 42px; border-radius: 6px; background: #EEF0F3; display: grid; place-items: center; color: var(--muted); font-size: .7rem; }
.cell-title { font-weight: 600; }
.cell-sub { color: var(--muted); font-size: .82rem; }
.row-selected { background: var(--accent-soft) !important; }
.diff-from { color: var(--danger); text-decoration: line-through; opacity: .8; }
.diff-to { color: var(--success); }

/* Tabs & chips */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; flex-wrap: wrap; }
.tab { padding: .55rem .9rem; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--navy); border-bottom-color: var(--accent); }
.tab .count { color: var(--muted); font-size: .8rem; margin-left: .3rem; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; text-decoration: none; color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip select { border: 0; background: transparent; padding: 0; min-height: 0; font-size: .85rem; width: auto; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filter-bar select, .filter-bar input { width: auto; min-width: 140px; }

/* Bulk bar */
.bulk-bar { display: none; position: sticky; bottom: 0; background: var(--sidebar); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); margin-top: 1rem; gap: .6rem; align-items: center; flex-wrap: wrap; z-index: 15; }
.bulk-bar.is-visible { display: flex; }
.bulk-bar select, .bulk-bar input { width: auto; min-height: 36px; background: #fff; color: var(--ink); }
.bulk-bar .btn { min-height: 36px; }
.bulk-bar .count { font-weight: 600; margin-right: .5rem; }
.bulk-bar a { color: var(--sand); }
.bulk-bar .btn { background: var(--sidebar-2); border-color: var(--sidebar-3); color: #fff; }
.bulk-bar .btn:hover { background: var(--sidebar-3); }
.bulk-bar .btn-primary { background: var(--accent); border-color: var(--accent); }
.bulk-bar .btn-danger { background: var(--danger); border-color: var(--danger); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; gap: 1rem; flex-wrap: wrap; }
.pagination-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pagination .btn.disabled { opacity: .45; pointer-events: none; }
.pagination-jump { display: inline-flex; align-items: center; gap: .4rem; }
.pagination-jump input[type=number] { width: 4.5rem; padding: .3rem .4rem; }

/* Editor two-column */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.editor-side { position: sticky; top: 76px; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .3rem 0; display: flex; gap: .5rem; align-items: center; }
.checklist .ok { color: var(--success); }
.checklist .missing { color: var(--danger); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.media-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.media-card img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.media-meta { padding: .75rem; }
.weekday-toggles { display: flex; gap: .35rem; flex-wrap: wrap; }
.weekday-toggles label { border: 1px solid var(--border); border-radius: 4px; padding: .35rem .6rem; cursor: pointer; background: var(--card); }
.weekday-toggles input { margin-right: .3rem; }
.weekday-toggles label:has(input:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.history-item { border-top: 1px solid var(--border); padding: .75rem 0; }
.history-head { margin-bottom: .4rem; }

/* Split view (review queue, places) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 1.25rem; align-items: start; }
.side-panel { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; }
.diff-table td:nth-child(2), .diff-table td:nth-child(3) { max-width: 160px; word-break: break-word; }
.diff-changed { background: #FFFBEB; }
.lock-flag { color: var(--warning); font-size: .75rem; font-weight: 600; }
.conf { font-variant-numeric: tabular-nums; font-weight: 600; }
.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.attention li:last-child { border-bottom: 0; }

/* Mapper */
.mapper-row { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1.4fr; gap: .6rem; align-items: start; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.mapper-row .samples { font-size: .78rem; color: var(--muted); word-break: break-word; }
.mapper-row .field { margin: 0; }
.readiness { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Embed preview */
.preview-frame { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; min-height: 480px; transition: width .2s; }
.preview-widths { display: flex; gap: .4rem; margin-bottom: .6rem; }
.copy-box { position: relative; }
.copy-box textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; min-height: 80px; }
.color-field { display: flex; gap: .5rem; align-items: center; }
.color-field input[type="text"] { max-width: 120px; }

/* Public pages */
.public-body { background: var(--surface); }
.public-main { max-width: 1100px; margin: 0 auto; padding: 3rem 1rem; }
.public-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.public-card.narrow { max-width: 420px; }
.public-card.wide { max-width: 1000px; }
.public-card h1 { font-size: 1.75rem; }
.public-body .topbar { display: none; }

/* Responsive */
@media (max-width: 1100px) {
  .editor, .split { grid-template-columns: 1fr; }
  .editor-side, .side-panel { position: static; max-height: none; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mapper-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav-toggle { display: inline-block; }
  .sidebar-nav, .sidebar-foot { display: none; }
  .sidebar.is-open .sidebar-nav, .sidebar.is-open .sidebar-foot { display: block; }
  .topbar { flex-wrap: wrap; position: static; }
  .topbar-search input { min-width: 0; width: 100%; }
  .content { padding: 1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .mapper-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .user-meta { display: none; }
}
@media print { .sidebar, .topbar, .bulk-bar { display: none; } .app { grid-template-columns: 1fr; } }

/* Show/hide password */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 4.5rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 .65rem; border: 1px solid var(--border); border-radius: 4px; background: #fff; font: inherit; font-size: .8rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.pw-toggle:hover { background: var(--accent-soft); }
.pw-toggle { color: var(--navy); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Location map */
.map-block { margin: .25rem 0 1rem; }
.map { height: 320px; border: 1px solid var(--border); border-radius: var(--radius); background: #E9EEF2; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Field inventory */
.inv-scan { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inv-scan-info { flex: 1 1 28rem; line-height: 1.6; }
.inv-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.inv-import { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inv-import input[type="file"] { max-width: 15rem; font-size: .85rem; }
.inv-group { padding: 0; margin-bottom: .75rem; }
.inv-group > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .85rem 1rem; cursor: pointer; list-style: none; }
.inv-group > summary::-webkit-details-marker { display: none; }
.inv-group > summary::before { content: '\25B8'; color: var(--muted); transition: transform .15s; }
.inv-group[open] > summary::before { transform: rotate(90deg); }
.inv-group[open] > summary { border-bottom: 1px solid var(--border); }
.inv-group-name { font-weight: 600; }
.inv-table td { vertical-align: top; }
.inv-field strong { word-break: break-word; }
.inv-path code { font-size: .74rem; color: var(--muted); word-break: break-all; background: none; padding: 0; }
.inv-bar { height: 6px; background: #EEF0F3; border-radius: 3px; overflow: hidden; margin: .35rem 0 .25rem; }
.inv-bar span { display: block; height: 100%; background: var(--accent); }
.inv-values ul { list-style: none; margin: .2rem 0 0; padding: 0; font-size: .84rem; }
.inv-values li { word-break: break-word; }
.inv-more summary { cursor: pointer; font-size: .8rem; color: var(--navy); }
.inv-sugg .inv-tgt { display: inline-block; font-size: .74rem; margin-left: .25rem; }
.inv-input { min-height: 34px !important; font-size: .84rem !important; padding: .3rem .5rem !important; margin-bottom: .3rem; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt span { display: inline-block; min-width: 44px; padding: .45rem .55rem; text-align: center; font-size: .82rem; font-weight: 600; color: var(--ink-soft); border-left: 1px solid var(--border); }
.seg-opt:first-child span { border-left: 0; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.seg-keep input:checked + span { background: var(--success-soft); color: var(--success); }
.seg-drop input:checked + span { background: #EEF0F3; color: var(--ink); }
.seg-undecided input:checked + span { background: var(--warning-soft); color: var(--warning); }
tr.inv-drop td { opacity: .62; }
tr.inv-drop td:nth-last-child(2), tr.inv-drop td:nth-last-child(1) { opacity: 1; }
tr.inv-dirty { box-shadow: inset 3px 0 0 var(--accent); }
tr.inv-stale .inv-field strong { text-decoration: line-through; text-decoration-color: var(--muted); }
.inv-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: flex-end; padding: .75rem 1rem; margin-top: .5rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 -4px 16px rgba(20, 23, 28, .06); }
.inv-savebar [data-inv-status] { margin-right: auto; color: var(--muted); font-size: .88rem; }
.inv-savebar-bulk { display: inline-flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .88rem; }
.inv-savebar-bulk[hidden] { display: none; }
.inv-path code { word-break: normal; overflow-wrap: anywhere; }
.inv-next > summary { cursor: pointer; display: flex; gap: .75rem; align-items: baseline; }
.inv-steps { margin: .75rem 0 0; padding-left: 1.4rem; line-height: 1.55; }
.inv-steps li { margin-bottom: .35rem; }
.inv-steps li.is-done { color: var(--success); }
.inv-steps li.is-done::marker { content: '\2713  '; }

/* Guide */
.topbar-help { font-size: .85rem; font-weight: 600; color: #fff; text-decoration: none; border: 1px solid var(--sidebar-3); border-radius: 999px; padding: .25rem .7rem; white-space: nowrap; }
.topbar-help:hover { background: var(--sidebar-2); }
.guide { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-start; }
.guide-nav { flex: 1 1 240px; max-width: 300px; padding: 1rem; position: sticky; top: 1rem; }
.guide-nav input { margin-bottom: .75rem; }
.guide-nav-group + .guide-nav-group { margin-top: 1rem; }
.guide-nav-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .35rem; }
.guide-nav-link { display: block; padding: .45rem .6rem; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.guide-nav-link:hover { background: #F2F4F7; }
.guide-nav-link.is-active { background: var(--accent-soft); color: var(--navy); font-weight: 600; }
.guide-nav-link[hidden] { display: none; }
.guide-body { flex: 999 1 520px; min-width: 0; padding: 1.5rem 1.75rem; max-width: 900px; }
.guide-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.guide-title { margin: .5rem 0 .25rem; font-size: 1.45rem; }
.guide-summary { color: var(--ink-soft); margin: 0 0 1rem; }
.guide-toc { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .85rem; padding: .7rem .9rem; background: #F7F8FA; border-radius: 8px; margin-bottom: 1rem; }
.guide-content { line-height: 1.65; }
.guide-content h2 { font-size: 1.15rem; margin: 1.6rem 0 .5rem; padding-top: .6rem; border-top: 1px solid var(--border); }
.guide-content h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.guide-content ol, .guide-content ul { padding-left: 1.4rem; }
.guide-content li { margin-bottom: .35rem; }
.guide-content code { background: #F2F4F7; padding: .05rem .35rem; border-radius: 4px; font-size: .86em; }
.guide-content pre.code { background: var(--sidebar); color: #E6EDF3; padding: .8rem 1rem; border-radius: 8px; overflow-x: auto; }
.guide-content pre.code code { background: none; padding: 0; color: inherit; }
.guide-note { border-radius: 8px; padding: .7rem .9rem; margin: .9rem 0; font-size: .93rem; }
.guide-note-info { background: var(--accent-soft); color: var(--navy); }
.guide-note-warning { background: var(--warning-soft); color: var(--warning); }
.guide-source { margin-top: 2rem; }
@media print {
  .sidebar, .topbar, .guide-nav, .guide-head .btn, .guide-source { display: none !important; }
  .guide-body { border: 0; padding: 0; max-width: none; }
}
.cron-log { max-height: 320px; overflow: auto; font-size: .78rem; white-space: pre-wrap; }
.cron-form { display: flex; flex-direction: column; gap: 1rem; background: #F7F8FA; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.cron-timing { display: flex; flex-wrap: wrap; gap: .75rem; }
.cron-timing > div { display: flex; flex-direction: column; gap: .25rem; min-width: 90px; }
.cron-timing code { font-size: 1rem; padding: .35rem .6rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.cron-label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.cron-command pre { margin: .35rem 0 .5rem; white-space: pre-wrap; word-break: break-all; }
.cron-full summary { cursor: pointer; font-size: .85rem; color: var(--muted); margin-top: .75rem; }
.fieldset { min-width: 0; }
.rooms-table { min-width: 900px; }
.table-wrap { overflow-x: auto; max-width: 100%; }

.secret-field { display: flex; gap: .35rem; align-items: center; }
.secret-field input { flex: 1; min-width: 0; }
.secret-toggle { padding: .3rem .5rem; line-height: 1; opacity: .7; }

/* Users */
.user-cell { display: flex; align-items: center; gap: .7rem; }
.avatar-sm { width: 32px; height: 32px; font-size: .78rem; flex: 0 0 auto; }
.users-table td { vertical-align: middle; }
.row-muted td { opacity: .6; }
.row-muted td:last-child { opacity: 1; }
.role-edit { position: relative; }
.role-edit > summary { list-style: none; cursor: pointer; display: inline-block; }
.role-edit > summary::-webkit-details-marker { display: none; }
.role-form { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: 280px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg, 0 10px 24px rgba(8, 79, 140, .14)); padding: .9rem; }
.role-form .field { margin-bottom: .6rem; }
.matrix td:first-child { font-size: .9rem; }
.matrix .ok { color: var(--success); font-weight: 700; }
.copy-box input[readonly] { width: 100%; min-height: 40px; }

/* Split-view detail panel motion */
.side-panel { will-change: transform, opacity; }
.side-panel.panel-enter { opacity: 0; transform: translateX(28px); }
.side-panel.panel-enter-active { opacity: 1; transform: none; transition: opacity .32s cubic-bezier(.22,.61,.36,1), transform .38s cubic-bezier(.22,.61,.36,1); }
.side-panel.panel-loading { opacity: .35; transform: translateY(6px); transition: opacity .14s ease-out, transform .14s ease-out; }
.side-panel.panel-swap-in { opacity: 0; transform: translateY(-6px); }
.side-panel:not(.panel-swap-in):not(.panel-loading):not(.panel-enter) { transition: opacity .22s cubic-bezier(.22,.61,.36,1), transform .26s cubic-bezier(.22,.61,.36,1); }
.side-panel h3:focus, .side-panel h2:focus { outline: none; }
.table tbody tr.row-selected td { transition: background-color .25s ease; }
@media (prefers-reduced-motion: reduce) { .side-panel, .side-panel * { transition: none !important; } }
.th-sort { cursor: pointer; white-space: nowrap; }
.th-sort:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.th-sort:not(.is-sorted)::after { content: ' \2195'; opacity: .35; font-size: .85em; }

/* Record drawer: list rows open the full editor in a panel that slides in from the right */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 31, 53, .38); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; z-index: 60; }
.drawer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(1180px, 94vw); background: var(--surface); box-shadow: -18px 0 48px rgba(8, 31, 53, .22); transform: translateX(100%); visibility: hidden; transition: transform .42s cubic-bezier(.22,.61,.36,1), visibility 0s linear .42s; z-index: 61; display: flex; flex-direction: column; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .42s cubic-bezier(.22,.61,.36,1); }
.drawer-bar { display: flex; align-items: center; gap: .75rem; padding: .55rem .9rem; background: var(--sidebar); color: #fff; border-bottom: 1px solid var(--sidebar-3); min-height: 48px; }
.drawer-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-bar .btn { background: var(--sidebar-2); border-color: var(--sidebar-3); color: #fff; min-height: 34px; }
.drawer-bar .btn:hover { background: var(--sidebar-3); }
.drawer-frame { flex: 1; width: 100%; border: 0; background: var(--surface); opacity: 0; transition: opacity .22s ease; }
.drawer-frame.is-ready { opacity: 1; }
.drawer-frame.is-swapping { opacity: .35; transition: opacity .14s ease; }
.drawer-spinner { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: drawer-spin .8s linear infinite; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer.is-loading .drawer-spinner { opacity: 1; }
@keyframes drawer-spin { to { transform: rotate(360deg); } }
body.drawer-open { overflow: hidden; }
body.is-embedded .sidebar, body.is-embedded .topbar { display: none; }
body.is-embedded .app { grid-template-columns: 1fr; min-height: 0; }
body.is-embedded .content { padding: 1rem 1.25rem 1.5rem; max-width: none; }
body.is-embedded .editor-side, body.is-embedded .side-panel { top: 1rem; }
@media (max-width: 900px) { .drawer { width: 100vw; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-backdrop, .drawer-frame { transition: none !important; } }

/* New & Notable */
.field-error { color: var(--danger); font-size: .82rem; margin-top: .2rem; }
.nn-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.nn-photo { position: relative; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.nn-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nn-primary { position: absolute; left: 8px; top: 8px; background: #fff; border-radius: 999px; padding: 3px 9px; font-size: .75rem; font-weight: 700; color: var(--warning); display: inline-flex; gap: .3rem; align-items: center; cursor: pointer; box-shadow: var(--shadow); }
.nn-primary input { margin: 0; width: 14px; height: 14px; }
.nn-photo-meta { padding: .5rem; display: flex; flex-direction: column; gap: .35rem; }
.nn-photo-meta input { min-height: 32px; font-size: .82rem; padding: .3rem .5rem; }
.nn-add { display: grid; place-items: center; aspect-ratio: 4 / 3; border-style: dashed; cursor: pointer; color: var(--muted); text-align: center; font-weight: 600; }
.nn-add:hover { border-color: var(--accent); color: var(--navy); }
.nn-add small { font-weight: 400; }
.nn-cands { display: flex; flex-direction: column; gap: .4rem; margin-top: .5rem; }
.nn-cand { text-align: left; border: 1px solid var(--border); background: var(--card); border-radius: 4px; padding: .5rem .7rem; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: .1rem; }
.nn-cand span { color: var(--muted); font-size: .85rem; }
.nn-cand:hover { border-color: var(--accent); }
.nn-steps { padding-left: 1.2rem; margin: 0; font-size: .9rem; line-height: 1.5; }
.nn-steps li { margin-bottom: .35rem; }
.nn-card { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: #fff; }
.nn-card-img { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #D9E2E7, #B8C7D0); }
.nn-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nn-card-badge { position: absolute; left: 10px; top: 10px; background: #00171f; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.nn-card-meta { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .7rem .8rem 0; }
.nn-card-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.15; padding: .2rem .8rem 0; }
.nn-card-why { font-size: .88rem; line-height: 1.5; padding: .4rem .8rem .8rem; margin: 0; }
.nn-table td { vertical-align: middle; }

/* Deployments (embeds v2) */
.dep-top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.dep-title-row { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: center; margin: .15rem 0 .25rem; }
.dep-builder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 9fr); gap: 1.25rem; align-items: start; }
.dep-left { min-width: 0; }
.dep-right { position: sticky; top: 76px; min-width: 0; }
.dep-palette { padding: .9rem 1rem; }
.dep-palette-title { font-family: var(--font-condensed); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: .5rem; }
.dep-palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .4rem; }
.dep-pal { display: flex; flex-direction: column; gap: .1rem; text-align: left; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 4px; background: var(--card); font: inherit; cursor: pointer; }
.dep-pal strong { font-size: .82rem; }
.dep-pal span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dep-pal:hover { border-color: var(--accent); background: var(--accent-soft); }
.dep-canvas { display: flex; flex-direction: column; gap: .6rem; }
.dep-block { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.dep-block.is-open { border-color: var(--accent); }
.dep-block-head { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; cursor: pointer; min-height: 46px; }
.dep-block-type { font-family: var(--font-condensed); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.dep-block-sum { flex: 1; min-width: 0; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-block-tools { display: inline-flex; gap: .15rem; align-items: center; }
.dep-block-tools select { min-height: 30px; padding: .1rem .4rem; font-size: .78rem; width: auto; }
.dep-block-tools .btn { min-height: 30px; padding: 0 .45rem; }
.dep-block-body { padding: .25rem .9rem .9rem; border-top: 1px solid var(--border); }
.dep-block-body .field { margin-bottom: .6rem; }
.dep-block-body .field-row { gap: .6rem; }
.dep-picks { margin-top: .5rem; }
.dep-picks-head { margin-bottom: .4rem; font-size: .9rem; }
.dep-pick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.dep-pick { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: .5rem; align-items: start; border: 1px solid var(--border); border-radius: 4px; padding: .5rem; background: var(--surface); }
.dep-pick.is-dragging { opacity: .5; }
.dep-pick-handle { cursor: grab; color: var(--muted); padding-top: .2rem; letter-spacing: -2px; }
.dep-pick-n { font-family: var(--font-condensed); font-weight: 700; color: var(--accent); font-size: 1.2rem; line-height: 1.2; }
.dep-pick-name { font-size: .9rem; font-weight: 600; margin-bottom: .3rem; }
.dep-pick textarea { min-height: 54px; font-size: .85rem; }
.dep-pick-add { position: relative; margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.dep-pick-add select { width: auto; }
.dep-pick-add input { flex: 1 1 14rem; }
.dep-pick-results { flex-basis: 100%; display: flex; flex-direction: column; gap: .25rem; }
.dep-pick-res { display: flex; gap: .6rem; align-items: center; text-align: left; border: 1px solid var(--border); background: #fff; border-radius: 4px; padding: .35rem .5rem; font: inherit; cursor: pointer; }
.dep-pick-res img, .dep-pick-noimg { width: 44px; height: 33px; object-fit: cover; border-radius: 3px; background: #E9EEF2; flex: 0 0 auto; }
.dep-pick-res span { display: flex; flex-direction: column; }
.dep-pick-res small { color: var(--muted); }
.dep-pick-res:hover { border-color: var(--accent); }
.dep-faq-item { border-top: 1px solid var(--border); padding-top: .5rem; margin-top: .5rem; }
.dep-preview-card { padding: .6rem .75rem .75rem; }
.dep-preview-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.dep-frame-wrap { background: repeating-linear-gradient(45deg, #EEF2F7 0 10px, #F5F7FA 10px 20px); border: 1px solid var(--border); border-radius: 4px; padding: 0; overflow: auto; max-height: calc(100vh - 170px); display: flex; justify-content: center; }
.dep-frame { width: 100%; max-width: 100%; height: calc(100vh - 172px); border: 0; background: #fff; transition: width .25s ease; }
.dep-frame-wrap.is-narrow { padding: 12px; }
.dep-frame-wrap.is-narrow .dep-frame { box-shadow: 0 8px 30px rgba(8, 79, 140, .18); border-radius: 8px; height: calc(100vh - 196px); }
.dep-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(760px, 94vw); box-shadow: 0 24px 60px rgba(8, 31, 53, .3); }
.dep-dialog-wide { width: min(980px, 96vw); }
.dep-dialog::backdrop { background: rgba(8, 31, 53, .45); }
.dep-dialog-body { padding: 1.25rem 1.4rem 1.4rem; max-height: 88vh; overflow: auto; }
.dep-dialog .copy-box { position: relative; }
.dep-dialog .copy-box textarea { width: 100%; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; line-height: 1.4; }
.dep-dialog .copy-box .btn { position: absolute; right: .5rem; top: .5rem; }
.dep-table td { vertical-align: middle; }
@media (max-width: 1100px) { .dep-builder { grid-template-columns: 1fr; } .dep-right { position: static; } .dep-frame { height: 70vh; } }

/* Google rating */
.rating-star { color: #F2B01E; }
.rating-cell { margin-top: .2rem; white-space: nowrap; }
.g-rating { display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin: -.35rem 0 .75rem; line-height: 1.2; }
.g-rating-main { display: inline-flex; align-items: center; gap: .3rem; font-size: 1.05rem; }
.g-rating-value { font-family: var(--font-condensed); font-weight: 700; font-size: 1.45rem; letter-spacing: .01em; }
.g-rating-count { color: var(--muted); font-size: .95rem; }
.g-rating-icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.g-rating-letter { display: inline-grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: #1a73e8; font: 700 11px/1 var(--font); }
.g-rating-sub { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.g-rating-empty .g-rating-main { font-size: .95rem; }

.copy-box-inline { display: flex; gap: .4rem; align-items: center; }
.copy-box-inline input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
.dep-dialog .copy-box-inline .btn { position: static; }
.copy-icon { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.copy-icon.is-copied { background: var(--success-soft); border-color: var(--success); color: var(--success); }

/* Houston Score */
.hs-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.hs-badge-big { display: flex; align-items: center; gap: .9rem; }
.hs-logo { width: 64px; height: auto; }
.hs-score { font-family: var(--font-condensed); font-weight: 700; font-size: 2.6rem; line-height: 1; }
.hs-of { font-size: 1.1rem; color: var(--muted); margin-left: .15rem; }
.hs-sub { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.hs-crit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 0; border-top: 1px solid var(--border); }
.hs-crit-label { display: flex; flex-direction: column; max-width: 26rem; }
.hs-stars { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.hs-star { cursor: pointer; font-size: 1.7rem; line-height: 1; color: #D5DAE1; padding: 0 .1rem; }
.hs-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hs-star:hover, .hs-star:hover ~ .hs-star, .hs-stars:has(input:checked) .hs-star:has(input:checked), .hs-stars:has(input:checked) .hs-star:has(input:checked) ~ .hs-star { color: #F2B01E; }
.hs-star:has(input:focus-visible) span:first-of-type { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.hs-form .field-row { margin-top: .75rem; }
.hs-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; }
.hs-chip img { width: 20px; height: auto; opacity: .9; }
.hs-chip:not(.is-public) { opacity: .65; }

/* Taxonomy → Output visibility */
.vis-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; }
.vis-head h2 { margin-bottom: .35rem; }
.vis-stat { flex: 0 0 auto; background: var(--surface); border-radius: 8px; padding: .7rem 1rem; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.vis-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; color: var(--navy); }
.table.table-tight td, .table.table-tight th { padding: .35rem .6rem; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.vis-table tr.is-child td { color: var(--muted); }
.vis-table tr.is-child label { color: inherit; }
tr.is-hidden-row td { background: #FBF1EE; }
tr.is-hidden-row td label { text-decoration: line-through; text-decoration-color: var(--slate); }
.sticky-actions { position: sticky; bottom: 0; background: #fff; padding: .8rem 1rem; border-top: 1px solid var(--border, #E3E8EF); margin-top: 1rem; display: flex; align-items: center; z-index: 2; box-shadow: 0 -6px 16px rgba(8,79,140,.06); }
.pill-hidden { background: #FBF1EE; color: #8A4B3B; }
@media (max-width: 760px) { .vis-head { flex-direction: column; } }

/* Page kits (Build a page) */
.kit-step { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.kit-step h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.kit-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 14px/1 var(--font-display); }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.kit-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 14px; border: 2px solid var(--border, #E3E8EF); border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.kit-card:hover { border-color: var(--slate); }
.kit-card input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kit-card:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(7,152,242,.15); }
.kit-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.kit-thumb { height: 96px; background: var(--surface); border-radius: 6px; position: relative; overflow: hidden; }
.kit-thumb i { position: absolute; background: #B9D6E8; border-radius: 2px; }
.kit-thumb-neighborhood i:nth-child(1){left:12px;top:12px;width:70px;height:10px;background:var(--navy)} .kit-thumb-neighborhood i:nth-child(2){left:12px;top:34px;width:40px;height:50px} .kit-thumb-neighborhood i:nth-child(3){left:60px;top:34px;width:100px;height:36px;background:#CFE3F0}
.kit-thumb-bestof i:nth-child(1){left:12px;top:12px;width:22px;height:30px;background:var(--accent)} .kit-thumb-bestof i:nth-child(2){left:44px;top:14px;width:80px;height:8px;background:var(--navy)} .kit-thumb-bestof i:nth-child(3){left:44px;top:30px;width:120px;height:52px}
.kit-thumb-itinerary i:nth-child(1){left:12px;top:14px;width:30px;height:8px;background:var(--accent)} .kit-thumb-itinerary i:nth-child(2){left:52px;top:12px;width:110px;height:24px} .kit-thumb-itinerary i:nth-child(3){left:52px;top:46px;width:110px;height:24px;background:#CFE3F0}
.kit-thumb-feature i:nth-child(1){left:0;top:0;right:0;height:44px;background:var(--navy)} .kit-thumb-feature i:nth-child(2){left:40px;top:54px;width:90px;height:6px;background:var(--slate)} .kit-thumb-feature i:nth-child(3){left:40px;top:66px;width:90px;height:6px;background:var(--slate)}
.kit-thumb-hub i:nth-child(1){left:12px;top:12px;width:90px;height:60px} .kit-thumb-hub i:nth-child(2){left:112px;top:12px;width:50px;height:28px;background:#CFE3F0} .kit-thumb-hub i:nth-child(3){left:112px;top:46px;width:50px;height:26px;background:#CFE3F0}
.kit-thumb-event i:nth-child(1){left:12px;top:12px;width:44px;height:60px;background:var(--navy)} .kit-thumb-event i:nth-child(2){left:66px;top:12px;width:100px;height:40px} .kit-thumb-event i:nth-child(3){left:66px;top:58px;width:60px;height:8px;background:var(--accent)}
.kit-label { font: 700 1rem/1.2 var(--font-display); color: var(--navy); }
.kit-desc { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.kit-results { margin-top: .5rem; max-width: 480px; }
.kit-chosen { font-size: .85rem; margin-top: .4rem; }

/* Readiness (Check & publish) */
.dep-ready-card { margin-bottom: 1rem; padding: .9rem 1rem; }
.ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.ready-sub { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.ready-score { flex: 0 0 auto; display: flex; align-items: baseline; gap: .3rem; padding: .35rem .6rem; border-radius: 6px; font-size: .75rem; color: var(--muted); background: var(--surface); }
.ready-score strong { font: 800 1.35rem/1 var(--font-display); color: var(--navy); }
.ready-good { background: #E8F5E3; } .ready-good strong { color: #2E6B1F; }
.ready-mid { background: #FFF4D6; } .ready-mid strong { color: #8A5A00; }
.ready-low { background: #FBF1EE; } .ready-low strong { color: #8A4B3B; }
.ready-stop { background: #FBE3E0; } .ready-stop strong { color: #A52A1A; }
.ready-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ready-row { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; border-top: 1px solid var(--border, #E3E8EF); font-size: .82rem; }
.ready-row:first-child { border-top: 0; }
.ready-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; margin-top: .3rem; background: var(--slate); }
.ready-row.is-ok .ready-dot { background: #3C8F2D; } .ready-row.is-warn .ready-dot { background: #E0A100; } .ready-row.is-stop .ready-dot { background: #C8321F; } .ready-row.is-na .ready-dot { background: #D9DEE5; }
.ready-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.ready-label { font-weight: 700; color: var(--navy); }
.ready-row.is-na .ready-label { color: var(--muted); font-weight: 600; }
.ready-detail { color: var(--muted); line-height: 1.4; }
.ready-pill { display: inline-block; padding: .2rem .5rem; border-radius: 999px; font: 700 .78rem/1 var(--font); font-variant-numeric: tabular-nums; }
.ready-pill.ready-good { color: #2E6B1F; } .ready-pill.ready-mid { color: #8A5A00; } .ready-pill.ready-low { color: #8A4B3B; } .ready-pill.ready-stop { color: #A52A1A; }
.sv-card { margin-top: 1rem; padding: .9rem 1rem; background: var(--surface); border-radius: 8px; }
.sv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; }
.sv-list label { display: flex; gap: .5rem; align-items: flex-start; cursor: pointer; }
.sv-list input { margin-top: .2rem; }
.dep-row-item { align-items: flex-end; }
.dep-row-item .btn { margin-bottom: .35rem; }
.dep-more { margin-top: .5rem; border-top: 1px dashed var(--border, #E3E8EF); padding-top: .5rem; }
.dep-more > summary { cursor: pointer; font: 700 .8rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-hover); padding: .5rem 0; list-style: none; min-height: 44px; display: flex; align-items: center; }
.dep-more > summary::-webkit-details-marker { display: none; }
.dep-more[open] > summary { color: var(--muted); }
.dep-more-body { padding-top: .25rem; }
.dep-q { position: relative; }
.dep-q-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border: 1px solid var(--border, #E3E8EF); border-radius: 6px; box-shadow: 0 10px 24px rgba(8,79,140,.12); padding: .25rem; max-height: 280px; overflow: auto; }
.dep-q-results:empty { display: none; }
.dep-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem .75rem; }
.dep-row-3 > .field { min-width: 0; }
@media (max-width: 900px) { .dep-row-3 { grid-template-columns: 1fr 1fr; } }
.dep-q .help { display: block; margin-top: .3rem; }
.dep-picker { position: relative; margin: .25rem 0 .75rem; padding: .75rem; background: var(--surface); border-radius: 8px; }
.dep-picker-label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: .35rem; color: var(--navy); }
.dep-picker .dep-pick-results { position: absolute; left: .75rem; right: .75rem; z-index: 5; background: #fff; border: 1px solid var(--border, #E3E8EF); border-radius: 6px; box-shadow: 0 10px 24px rgba(8,79,140,.12); padding: .25rem; max-height: 280px; overflow: auto; }
.dep-picker .dep-pick-results:empty { display: none; }
.dep-pick-list-compact { margin: .6rem 0 0; }
.dep-pick-compact { padding: .3rem .4rem; }
.dep-pick-compact .dep-pick-body { display: flex; align-items: center; }
.dep-picker .help { display: block; margin-top: .5rem; }
.dep-filter-label { font: 700 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: .25rem 0 .5rem; }
.dep-block.is-hl { box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(7,152,242,.15); }
.dep-block.is-flash { animation: dep-flash 1.2s ease-out; }
@keyframes dep-flash { 0% { background: #DDF1FD; } 100% { background: #fff; } }
@media (prefers-reduced-motion: reduce) { .dep-block.is-flash { animation: none; } }
.dep-stop { align-items: flex-start; }
.dep-stop-body { display: flex; flex-direction: column; gap: .4rem; }
.dep-stop-head input { width: 100%; }
.dep-stop .field { margin-bottom: 0; }
.dep-stop .field label { font-size: .72rem; }
.dep-stop-list { margin-top: .6rem; }
.dep-flip { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem .75rem; margin: 0 0 .9rem; background: var(--surface); border-radius: 6px; font-size: .85rem; }
.dep-flip label { font-weight: 700; color: var(--navy); }
.dep-flip select { width: auto; min-height: 36px; }
.dep-flip .help { flex-basis: 100%; }
