/* DBA Agency: BMC Brand tokens and shared components. One look only (no dark mode). */
@font-face { font-family: Figtree; font-weight: 300; font-display: swap; src: url(fonts/figtree-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 400; font-display: swap; src: url(fonts/figtree-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 600; font-display: swap; src: url(fonts/figtree-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Figtree; font-weight: 700; font-display: swap; src: url(fonts/figtree-latin-700-normal.woff2) format('woff2'); }

:root {
  --bg-page: #f7f8fd; --surface: #ffffff; --surface-sunken: #eef1f6; --line: #d7dbe0;
  --ink: #052140; --ink-secondary: #33475e; --ink-muted: #55687d; --input-border: #7d8b9a;
  --header-bg: #052140; --header-bg-end: #264580; --header-ink: #ffffff; --header-ink-muted: #c0c8cf;
  --primary: #264580; --primary-soft: #edfbff; --cta: #ff5a4d; --on-cta: #052140; --cta-ink: #e04a3e;
  --toggle-on: #4040d9; --lilac: #758ce5; --done-bg: #264580;
  --warning-bg: #eef0fc; --warning-line: #c9d1f4; --warning-ink: #914796;
  --danger: #b8382d; --danger-bg: #ffe9e7; --focus: #4040d9;
  --tile-bg: #edfbff; --tile-ring: #cfe9f5; --tile-ink: #264580;
  --shadow-card: 0 1px 2px rgba(5,33,64,.06), 0 6px 18px rgba(5,33,64,.06);
  --r: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Sofia Pro", Figtree, "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.45; color: var(--ink); background: var(--bg-page); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); } a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 24px; } h2 { font-size: 15px; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--surface); }
.sr:focus { position: fixed; left: 8px; top: 8px; width: auto; height: auto; clip-path: none; z-index: 100; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ic { display: block; flex: none; }
.muted { color: var(--ink-muted); }
.small { font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---------- app frame ---------- */
#app { min-height: 100%; display: flex; flex-direction: column; }
.hdr { flex: 0 0 60px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: linear-gradient(90deg, var(--header-bg), var(--header-bg-end)); color: var(--header-ink); position: sticky; top: 0; z-index: 20; }
/* The header's content lines up with the page content (same 1180px column as the home screen and footer),
   so it looks the same on any screen width; the blue bar itself stays full width. */
.hdr-in { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 1116px; margin: 0 auto; height: 100%; }
/* Screens with the side menu use the same centred column. */
.frame { width: 100%; max-width: 1180px; margin: 0 auto; }
@media (min-width: 1181px) { .nav { border-left: 1px solid var(--line); } }
/* The left block has a fixed width, so the search box always starts in the same place, whatever the screen's name. */
.hdr-left { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; width: 400px; min-width: 0; }
.hdr-logo { display: inline-flex; border-radius: 4px; }
.hdr-div { width: 1px; height: 24px; background: rgba(255,255,255,.3); }
.crumb { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; min-width: 0; }
.crumb .here { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb a { color: #fff; text-decoration: none; font-size: 17px; font-weight: 600; }
.crumb .sep { color: var(--header-ink-muted); }
.crumb .here { font-size: 17px; font-weight: 300; }
.hs { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); border-radius: 999px; padding: 0 14px; height: 36px; color: var(--header-ink-muted); flex: 0 1 380px; min-width: 170px; }
.hs input { border: 0; background: transparent; color: #fff; padding: 0; width: 100%; font: inherit; font-size: 13.5px; outline: none; }
.hs input::placeholder { color: var(--header-ink-muted); }
.hs:focus-within { box-shadow: inset 0 0 0 2px #fff; }
.hk { font-size: 11.5px; border: 1px solid rgba(255,255,255,.3); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.hdr-right { display: flex; align-items: center; gap: 12px; flex: 1 0 auto; justify-content: flex-end; margin-left: auto; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--header-ink-muted); white-space: nowrap; }
.stc { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 5px 12px; white-space: nowrap; border: 0; cursor: pointer; }
.stc.access { background: var(--cta); color: var(--on-cta); }
.stc.conflict { background: #fff; color: var(--ink); }
.stc.readonly { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.stc.netfail { background: var(--danger); color: #fff; }
.st-div { width: 1px; height: 18px; background: rgba(255,255,255,.25); }
.spin { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

.frame { flex: 1; display: flex; min-height: 0; }
.nav { flex: 0 0 220px; padding: 16px 12px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--ink-secondary); text-decoration: none; font-weight: 600; min-height: 40px; }
.nav a:hover { background: var(--bg-page); color: var(--ink); }
.nav a.on { background: var(--primary-soft); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px #cfe9f5; }
.nav a .ni { display: flex; gap: 10px; align-items: center; }
.nav a .ni svg { color: var(--ink-muted); } .nav a.on .ni svg { color: var(--tile-ink); }
.nav .grp { display: flex; align-items: center; gap: 10px; padding: 16px 12px 8px; border-top: 1px solid var(--line); margin-top: 8px; font-weight: 700; font-size: 15px; }
.nav .soon { font-size: 11px; font-weight: 600; color: var(--ink-muted); }
.nav .spacer { flex: 1; }
main { flex: 1; min-width: 0; }
.page { padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 16px; max-width: 960px; }
.page.wide { max-width: 1180px; margin: 0 auto; width: 100%; }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); }
.sec { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.sec-h { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.sec-h h2 { display: flex; align-items: center; gap: 10px; }
.tile { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--tile-bg); color: var(--tile-ink); box-shadow: inset 0 0 0 1px var(--tile-ring); }
.tile.d { background: var(--danger-bg); color: var(--danger); box-shadow: inset 0 0 0 1px #f6c9c3; }
.tool { display: inline-flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 4px 12px rgba(5,33,64,.18); }
.tool-new { border: 1.5px dashed var(--input-border); color: var(--ink-muted); box-shadow: none; }
.lbl { font-size: 11.5px; font-weight: 700; color: var(--ink-secondary); text-transform: uppercase; letter-spacing: .06em; }
.btn { font: inherit; font-size: 13px; font-weight: 700; min-height: 36px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--input-border); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn:hover { background: var(--bg-page); }
.btn-p { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn-p:hover { background: #ff7468; }
.btn-d { color: var(--danger); border-color: #e7b3ad; }
.btn-s { min-height: 30px; padding: 3px 10px; font-size: 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select, textarea { font: inherit; font-size: 13.5px; color: var(--ink); border: 1px solid var(--input-border); border-radius: 6px; padding: 7px 10px; background: #fff; min-height: 36px; }
label.fld { display: flex; flex-direction: column; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-sunken); color: var(--ink-secondary); }
.pill.blue { background: #e3e8ff; color: var(--ink); }
.pill.done { background: var(--done-bg); color: #fff; }
.pill.wait { background: var(--warning-bg); color: var(--warning-ink); box-shadow: inset 0 0 0 1px var(--warning-line); }
.pill.red { background: var(--danger-bg); color: var(--danger); }
.pill button { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; display: inline-flex; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.kv { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; align-items: baseline; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; }
.note { background: var(--primary-soft); border: 1px solid var(--tile-ring); border-radius: 10px; padding: 10px 14px; display: flex; gap: 10px; align-items: flex-start; }
.note.warn { background: var(--danger-bg); border-color: #f6c9c3; }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 0 8px 24px rgba(5,33,64,.25); }
.toast-act { background: none; border: 0; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.dlg { border: 0; border-radius: 14px; padding: 0; width: min(480px, 92vw); box-shadow: 0 20px 60px rgba(5,33,64,.3); color: var(--ink); }
.dlg.wide { width: min(720px, 94vw); }
.dlg::backdrop { background: rgba(5,33,64,.45); }
.dlg form { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.dlg h2 { font-size: 18px; }
.dlg-body { display: flex; flex-direction: column; gap: 12px; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

.update { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 340px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.update ul { margin: 0; padding-left: 18px; }

/* ---------- home ---------- */
.hero { border-radius: 24px; padding: 30px 36px 32px; display: flex; flex-direction: column; gap: 14px; min-height: 220px; justify-content: space-between; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,90,77,.38) 0%, rgba(255,90,77,0) 45%), radial-gradient(90% 120% at 0% 100%, rgba(117,140,229,.35) 0%, rgba(117,140,229,0) 55%), linear-gradient(120deg, #052140 0%, #0b2b57 55%, #264580 100%); }
.hero h1 { color: #fff; font-size: 40px; line-height: 44px; }
.hero p { margin: 0; font-size: 18px; font-weight: 300; color: var(--header-ink-muted); }
.hchip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; text-decoration: none; font-weight: 600; font-size: 13.5px; }
.hchip:hover { color: #fff; background: rgba(255,255,255,.18); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.tcard { padding: 20px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
a.tcard:hover { border-color: var(--input-border); color: var(--ink); }
.tcard.next { border-style: dashed; box-shadow: none; background: transparent; }
.tcard .tname { font-size: 18px; font-weight: 600; }
.tc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tc-blurb { margin-top: 2px; }
.foot { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* ---------- setup ---------- */
.setup { padding: 32px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: stretch; max-width: 1180px; margin: 0 auto; width: 100%; }
.brand-panel { flex: 1 1 380px; min-height: 540px; border-radius: 24px; padding: 36px; color: #fff; display: flex; flex-direction: column; gap: 14px;
  background: radial-gradient(80% 60% at 85% 85%, rgba(255,90,77,.45) 0%, rgba(255,90,77,0) 60%), radial-gradient(70% 70% at 10% 10%, rgba(117,140,229,.35) 0%, rgba(117,140,229,0) 60%), linear-gradient(160deg, #052140 0%, #0b2b57 60%, #264580 100%); }
.brand-panel .big { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; max-width: 12ch; }
.brand-panel .sub { font-size: 18px; font-weight: 300; color: var(--header-ink-muted); max-width: 30ch; }
.setup-form { flex: 1 1 420px; max-width: 520px; padding: 32px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.step { display: flex; flex-direction: column; gap: 8px; }

/* ---------- small screens / phones ---------- */
.phone { max-width: 440px; margin: 0 auto; padding: 28px 20px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1100px) { .hdr-left { width: 330px; } }
@media (max-width: 900px) { .hdr-right .st-net-label { display: none; } .hdr-left { width: auto; flex: 0 1 auto; } }
@media (max-width: 760px) {
  .hs, .hdr-right .st-net-label { display: none; }
  .help-toc { display: none; }
  .nav { display: none; }
  .page { padding: 20px 16px; }
  .hero h1 { font-size: 30px; line-height: 34px; }
}

/* ---------- link icons ---------- */
.lic { flex: none; border-radius: 5px; display: inline-block; object-fit: contain; }
.lic-letter { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; line-height: 1; }
.links-home a { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; min-width: 0; }
.links-home a:first-child { border-top: 0; }
.links-home a:hover { color: var(--primary); }
.links-home .lt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links-home .ic { color: var(--ink-muted); }
.lrow { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.lrow:first-child { border-top: 0; }
.lrow .lmain { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrow .lmain strong, .lrow .lmain .url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .lbtns { display: flex; gap: 6px; flex: none; }
.btn-i { min-width: 32px; padding: 3px 7px; }
.lrow.editing { flex-wrap: wrap; }
.lrow.editing .lmain { flex-direction: row; gap: 8px; flex-wrap: wrap; }

/* ---------- home banner picture (BMC Brand gradients, by time of day) ---------- */
.hero { position: relative; overflow: hidden; background-color: #052140; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,33,64,.9) 0%, rgba(5,33,64,.72) 38%, rgba(5,33,64,.25) 75%, rgba(5,33,64,.1) 100%); pointer-events: none; }
.hero > * { position: relative; }
.hero.morning { background-image: url(images/hero-morning.jpg); background-position: center 45%; }
.hero.afternoon { background-image: url(images/hero-afternoon.jpg); background-position: center 60%; }
.hero.evening { background-image: url(images/hero-evening.jpg); background-position: center 30%; }
.hero.night { background-image: url(images/hero-night.jpg); background-position: center 8%; }
.brand-panel { background-image: linear-gradient(160deg, rgba(5,33,64,.5), rgba(5,33,64,.15)), url(images/hero-night.jpg); background-size: cover; background-position: center; }

/* ---------- help ---------- */
.help-page { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; max-width: 1180px; align-items: start; }
.help-toc { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; max-height: calc(100vh - 96px); overflow: auto; padding-bottom: 20px; }
.help-toc a { display: flex; align-items: center; gap: 8px; color: var(--ink-secondary); text-decoration: none; padding: 5px 10px; border-radius: 6px; }
.help-toc a:hover { background: var(--surface); color: var(--ink); }
.help-toc a.on { background: var(--primary-soft); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--tile-ring); }
.toc-g { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.toc-g .lbl { padding: 0 10px 4px; font-size: 10.5px; }
.help-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.help-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--input-border); border-radius: 999px; padding: 0 14px; background: #fff; max-width: 520px; color: var(--ink-muted); }
.help-search input { border: 0; padding: 0; min-height: 40px; outline: none; flex: 1; background: transparent; }
.help-search:focus-within { box-shadow: 0 0 0 2px var(--focus); }
.help-article { padding: 26px 30px; gap: 10px; }
.help-article h1 { font-size: 26px; }
.help-body { font-size: 14.5px; line-height: 1.6; max-width: 72ch; }
.help-body h3 { margin: 18px 0 6px; font-size: 15px; }
.help-body li { margin: 4px 0; }
.help-body pre { background: var(--surface-sunken); border-radius: 8px; padding: 12px 14px; font-size: 12.5px; overflow: auto; }
.help-body .note { margin: 12px 0; }
.kbd-table { border-collapse: collapse; width: 100%; }
.kbd-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.kbd-table tr:first-child td { border-top: 0; }
.help-np { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .help-page { grid-template-columns: 1fr; } }

/* ---------- feedback ---------- */
.fb { gap: 18px; }
.fb fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.fb legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.stars { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.star { display: inline-flex; padding: 4px; border-radius: 8px; cursor: pointer; color: #b7c0cc; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.star svg { transition: transform .12s; }
.star.on, .star.hover { color: #f5a524; }
.star.on svg, .star.hover svg { fill: currentColor; }
.star:hover svg { transform: scale(1.12); }
.star:focus-within { box-shadow: 0 0 0 2px var(--focus); }
.star-txt { margin-left: 10px; font-weight: 600; }
.fb-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.kchip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--input-border); cursor: pointer; font-weight: 600; min-height: 44px; background: #fff; }
.kchip:hover { border-color: var(--primary); }
.kchip.on { background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.kchip:focus-within { box-shadow: 0 0 0 2px var(--focus); }
.fb textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.chk { display: flex; gap: 10px; align-items: flex-start; }
.chk input { min-height: 0; margin-top: 3px; }
.fb-pre { white-space: pre-wrap; background: var(--surface-sunken); border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--ink); }
.fb-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- arranging the tool cards ---------- */
.tcard.arranging { cursor: grab; border-style: dashed; border-color: var(--input-border); user-select: none; }
.tcard.arranging.dragging { opacity: .45; }
.tcard.arranging.drop { box-shadow: 0 0 0 2px var(--cta); }
.tcard .arr { display: flex; align-items: center; gap: 8px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-top: 10px; }

/* Banner icon buttons with instant tooltips (home) */
.hicons { display: inline-flex; gap: 8px; }
.hicon { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; cursor: pointer; text-decoration: none; transition: background .15s; }
.hicon:hover, .hicon:focus-visible { background: rgba(255,255,255,.22); color: #fff; }
.hicon:disabled { opacity: .45; cursor: default; }
[data-tip]::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-2px); white-space: nowrap; padding: 5px 9px; border-radius: 7px; background: #052140; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.2; box-shadow: 0 4px 14px rgba(5,33,64,.3); opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 5; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.hero { overflow: visible; }
.hero::before { border-radius: inherit; }
.hchip-p { background: #fff; color: var(--ink); box-shadow: none; }
.hchip-p:hover { background: #fff; color: var(--ink); opacity: .92; }
button.hchip { border: 0; cursor: pointer; font-family: inherit; }
.hhint { color: var(--header-ink-muted); font-size: 13.5px; margin-right: 4px; }

.tagline { margin: 18px 0 0; text-align: right; font-style: italic; font-size: 12.5px; color: var(--ink-muted); }
.tagline-foot { margin-left: auto; font-style: italic; }
.setup + .tagline { max-width: 1180px; margin: -16px auto 0; padding: 0 32px 24px; width: 100%; }

/* ---------- phones (kept last so it wins over the rules above) ---------- */
.help-back { display: none; }
@media (max-width: 760px) {
  .help-toc { display: none; }
  .help-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-weight: 600; text-decoration: none; padding: 6px 2px; }
  .help-article { padding: 20px 18px; }
  .help-article h1 { font-size: 22px; }
  /* Header: icons only for the save status, so it never runs into "DBA Agency" */
  .hdr { padding: 0 16px; gap: 10px; }
  .hdr-in { gap: 10px; }
  .hdr-left { gap: 10px; }
  .crumb .sep, .crumb .here { display: none; }
  .st .st-label { display: none; }
  .hdr-right { flex: 0 0 auto; gap: 8px; }
  /* Banner */
  .hero { padding: 20px 20px 22px; min-height: 0; gap: 12px; border-radius: 20px; }
  .hero h1 { font-size: 26px; line-height: 30px; }
  .hero p { font-size: 15px; }
  .hicon { width: 38px; height: 38px; }
  .hero::before { background: linear-gradient(90deg, rgba(5,33,64,.9) 0%, rgba(5,33,64,.78) 60%, rgba(5,33,64,.55) 100%); }
  /* Tool cards: one compact row each */
  .tools { gap: 10px; }
  .tcard { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 12px; padding: 12px 14px; align-items: center; }
  .tc-top { display: contents; }
  .tcard .tool { grid-column: 1; grid-row: 1 / span 2; width: 40px !important; height: 40px !important; border-radius: 12px !important; align-self: start; }
  .tcard .tool svg { width: 22px; height: 22px; }
  .tc-top > .pill { grid-column: 3; grid-row: 1; align-self: start; font-size: 11.5px; }
  .tc-text { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
  .tcard .tname { font-size: 16px; }
  .tc-blurb { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tc-nums { grid-column: 2 / span 2; }
  .tc-nums:has(> .muted:only-child) { display: none; }
  .tcard.next { display: none; }
  .tcard .arr { grid-column: 1 / -1; }
  /* Setup: the photo panel is banner-sized */
  .setup { padding: 16px; gap: 16px; }
  .brand-panel { background-image: linear-gradient(90deg, rgba(5,33,64,.88), rgba(5,33,64,.55)), url(images/hero-night.jpg); flex: 1 1 100%; min-height: 0; padding: 22px 20px; gap: 8px; border-radius: 20px; }
  .brand-panel .big { font-size: 26px; line-height: 30px; max-width: none; }
  .brand-panel .sub { font-size: 15px; }
  .setup-form { padding: 22px 18px; }
}

/* ---------- tool screens: side menu, tables, tabs (0.4.0) ---------- */
.nav .subnav { display: flex; flex-direction: column; gap: 2px; margin: 0 0 4px 22px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav .subnav a { min-height: 34px; padding: 6px 10px; font-size: 13.5px; }
.nav a.open { color: var(--ink); }
.nav .nb { font-size: 11px; padding: 1px 7px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; padding: 6px 8px; }
.tbl td { padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { padding: 8px 12px; color: var(--ink-secondary); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--primary); }
.jump { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 4px; }
.jump a { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-secondary); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.jump a:hover { color: var(--ink); border-color: var(--input-border); }
@media (max-width: 760px) { .tbl { display: block; overflow-x: auto; } }

/* ---------- shared services: agent work, library, house book, review (0.4.0) ---------- */
.wrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.wrow:first-of-type { border-top: 0; }
.wmain { flex: 1; min-width: 0; } .wtitle { font-weight: 600; } .wbtns { justify-content: flex-end; }
.agent-state { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.agent-state.s-waiting-for-you, .warn-ink { color: var(--warning-ink); } .agent-state.s-failed { color: var(--danger); }
.ok { color: var(--primary); } .ok, .warn-ink, .vis { display: inline-flex; gap: 6px; align-items: center; }
.vis { font-size: 12.5px; color: var(--ink-secondary); }
.needs-you { box-shadow: inset 3px 0 0 var(--cta); }
.stale-flag { display: flex; gap: 6px; align-items: flex-start; color: var(--warning-ink); font-size: 12.5px; margin-top: 4px; }
.lib-title { color: var(--ink); text-decoration: none; } .lib-title:hover { text-decoration: underline; }
.chain { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chain .chip { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; background: var(--surface); }
.bar { height: 8px; border-radius: 999px; background: var(--surface-sunken); margin-top: 6px; overflow: hidden; } .bar > div { height: 100%; background: var(--primary); border-radius: 999px; }
.astep { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); } .step-s { flex: none; width: 24px; padding-top: 2px; } .step-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.checks { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--surface); }
.checks summary { display: flex; gap: 8px; align-items: center; cursor: pointer; } .checks ul { margin: 8px 0 0; padding-left: 26px; }
.checks.fail { border-color: #f6c9c3; background: var(--danger-bg); } .checks.warn { border-color: var(--warning-line); background: var(--warning-bg); }
.checks li.fail { color: var(--danger); }
.prose p { margin: 0 0 10px; line-height: 1.55; } .prose h2, .prose h3, .prose h4, .prose h5 { margin: 14px 0 6px; font-size: 15px; } .prose ul, .prose ol { margin: 0 0 10px; padding-left: 22px; line-height: 1.5; }
.prose blockquote { margin: 0 0 10px; padding: 6px 12px; border-left: 3px solid var(--lilac); background: var(--warning-bg); border-radius: 0 8px 8px 0; }
.img-slot { display: inline-block; padding: 14px 18px; border: 1px dashed var(--input-border); border-radius: 8px; color: var(--ink-muted); font-size: 12.5px; }
.claims, .src-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.claims li, .src-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); } .claims li:first-child, .src-list li:first-child { border-top: 0; }
.claims li { color: var(--warning-ink); } .claims li.ok { color: var(--ink); } .claims li > div { color: var(--ink); }
.src-loc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.hb-add input { width: 100%; }
