/* HALO OS: dark liquid glass (Apple-style glossy panels). Brand: #1686CB, #333333, Quicksand. */
:root {
  --blue: #1686CB;
  --blue-l: #4FB0EC;
  --char: #333333;
  --text: #F3F7FB;
  --muted: rgba(235, 242, 250, 0.62);
  --gold: #F2C55C;
  --amber: #F5A845;
  --radius: 22px;
  --nav-w: 284px;
  --glass: linear-gradient(160deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.04) 100%);
  --edge: rgba(255, 255, 255, 0.18);
  --edge-hi: rgba(255, 255, 255, 0.42);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: #070d1a; }
html, body { margin: 0; height: 100%; }
body { font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; color: var(--text);
  font-size: 15px; -webkit-font-smoothing: antialiased; letter-spacing: .1px; }
[hidden] { display: none !important; }

/* == Design and flow: denser desktop (Nov 29) ==
   Steve asked for slightly smaller text so more fits. One token scales every module on desktop
   (text, spacing and embedded apps together); phones stay at full size for readability.
   Change --ui-zoom to tune it. Full-height panels divide by it so they still reach the bottom
   (html-prefixed so they win over the base rules further down). Kept near the top of the file so
   a stray brace in a later module section can't swallow it. */
:root { --ui-zoom: 1; }
@media (min-width: 861px) {
  :root { --ui-zoom: .9; }
  html { zoom: var(--ui-zoom); }
  html .dock { zoom: calc(1 / var(--ui-zoom)); }
  html .nav { height: calc((100vh - 36px) / var(--ui-zoom)); }
  html .frame-wrap { height: calc((100vh - 120px) / var(--ui-zoom)); }
  html .rp-wrap { height: calc((100vh - 150px) / var(--ui-zoom)); }
  html .modal { max-height: calc(92vh / var(--ui-zoom)); }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Deep night sky with soft colour orbs behind the glass */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(55vw 55vw at 8% 0%, rgba(22,134,203,0.55) 0%, transparent 60%),
    radial-gradient(45vw 45vw at 95% 15%, rgba(124,92,230,0.42) 0%, transparent 60%),
    radial-gradient(55vw 55vw at 70% 105%, rgba(32,190,160,0.32) 0%, transparent 60%),
    radial-gradient(35vw 35vw at 30% 70%, rgba(242,197,92,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0a1426 0%, #070d1a 100%); }
.bg::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 3px 3px; opacity: .35; }

/* Liquid glass: frosted, refractive, with a specular top edge and a glossy sheen */
.glass { position: relative; background: var(--glass);
  backdrop-filter: blur(28px) saturate(180%) brightness(1.08); -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(1.08);
  border: 1px solid var(--edge); box-shadow: var(--shadow), inset 0 1px 0 var(--edge-hi), inset 0 -1px 0 rgba(255,255,255,0.05); isolation: isolate; }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.03) 38%, transparent 60%); }

/* Buttons: glossy capsules */
.btn { font: inherit; font-weight: 600; color: var(--text); cursor: pointer; display: inline-flex; gap: 10px; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--edge);
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 14px rgba(0,0,0,0.3); transition: transform .12s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.98); }
.btn.primary { width: 100%; padding: 14px 22px; color: #fff; border-color: rgba(255,255,255,0.25);
  background: linear-gradient(180deg, #5cbdf5 0%, #2496dc 48%, #1686CB 52%, #1173b0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -2px 6px rgba(0,40,80,0.35), 0 10px 28px rgba(22,134,203,0.55); }
.btn.small { padding: 7px 13px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; filter: none; }
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(79,176,236,.6); outline-offset: 2px; }

/* Sign-in */
.signin { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.card { width: min(420px, 100%); border-radius: 32px; padding: 42px 32px 28px; text-align: center; }
.card h1 { margin: 8px 0 2px; font-size: 32px; font-weight: 700; letter-spacing: .6px; }
.card .mark { width: 120px; display: block; margin: 0 auto 6px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.card .logo.foot { width: 150px; margin: 22px auto 0; display: block; opacity: .7; }
.muted { color: var(--muted); margin: 0 0 26px; }
.signin .msg { min-height: 1.2em; color: #ffb39a; font-size: 14px; margin: 12px 0 0; }
.fine { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

.halo-mark { height: 28px; display: grid; place-items: center; margin-bottom: 4px; }
.ring { width: 70px; height: 15px; border-radius: 50%; border: 3px solid var(--gold);
  box-shadow: 0 0 18px rgba(242,197,92,.9), inset 0 0 6px rgba(242,197,92,.6); animation: float 3.5s ease-in-out infinite; }
.ring.amber { border-color: var(--amber); box-shadow: 0 0 18px rgba(245,168,69,.8); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Shell */
.shell { display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100%; gap: 18px; padding: 18px; }
.nav { border-radius: 26px; padding: 20px 12px; display: flex; flex-direction: column; position: sticky; top: 18px; height: calc(100vh - 36px); }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 10px 18px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 10px; }
.brand-row { display: flex; align-items: center; gap: 10px; }
.nav-mark { width: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.35)); }
.nav-logo { width: 178px; }
.brand-name { font-weight: 700; color: #fff; letter-spacing: 2px; font-size: 15px; padding-left: 2px; }
#menu { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; flex: 1; margin: 0 -4px; padding: 0 4px 10px; scrollbar-width: thin; }
.nav-tree { display: flex; flex-direction: column; gap: 2px; }
.cat-row { display: flex; align-items: center; gap: 2px; }
.cat-row a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; color: var(--text); text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: background .15s ease; }
.cat-row a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-row a svg { width: 20px; height: 20px; flex: none; color: var(--blue-l); }
.cat-row a:hover, .subs a:hover { background: rgba(255,255,255,0.07); }
.cat-row a.in { background: rgba(79,176,236,0.12); }
.cat-row a[aria-current="page"] { color: #fff; border-color: rgba(255,255,255,0.22);
  background: linear-gradient(180deg, rgba(92,189,245,0.95) 0%, rgba(22,134,203,0.95) 55%, rgba(17,115,176,0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 22px rgba(22,134,203,0.45); }
.cat-row a[aria-current="page"] svg { color: #fff; }
.cat-tog { flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.cat-tog:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.cat-tog svg { transition: transform .18s ease; }
.cat.open .cat-tog svg { transform: rotate(90deg); }
.subs { display: none; flex-direction: column; gap: 1px; margin: 2px 0 8px 22px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.12); }
.cat.open .subs { display: flex; }
.subs a { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.subs a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subs a[aria-current="page"] { color: #fff; background: rgba(79,176,236,0.22); box-shadow: inset 0 0 0 1px rgba(79,176,236,0.45); }
.hdot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); display: inline-block; }
.hdot.k-halo { background: var(--gold); box-shadow: 0 0 8px rgba(242,197,92,.8); }
.hdot.k-app { background: var(--blue-l); box-shadow: 0 0 6px rgba(79,176,236,.6); }
.hdot.k-owner { background: #b79cff; }
.hdot.k-system { background: #4fd8b8; }
.hdot.k-planned { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.35); }
.nav-find { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.1); color: var(--muted); }
.nav-find input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.nav-find input:focus { outline: none; }
.nav-find:focus-within { border-color: rgba(79,176,236,0.6); }
.nav-results { display: flex; flex-direction: column; gap: 2px; }
.nav-results a { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.nav-results a:hover, .nav-results a:focus-visible { background: rgba(255,255,255,0.08); }
.nav-results small { color: var(--muted); font-size: 12px; }
.nav-none { color: var(--muted); font-size: 13px; padding: 8px 12px; margin: 0; }
.nav-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who { display: flex; flex-direction: column; min-width: 0; }
.who span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); font-size: 12px; }

.shell > .main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; align-items: center; gap: 12px; }
.icon-btn { display: none; border-radius: 14px; padding: 10px; color: var(--text); cursor: pointer; }
.ask { flex: 1; display: flex; align-items: center; gap: 12px; border-radius: 999px; padding: 7px 10px 7px 18px; }
.ask-halo { width: 24px; height: 9px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 0 10px rgba(242,197,92,.9); flex: none; }
.ask input { flex: 1; border: 0; background: transparent; font: inherit; font-weight: 500; padding: 8px 4px; color: var(--text); min-width: 0; }
.ask input::placeholder { color: var(--muted); }
.ask input:focus { outline: none; }
.env { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--amber);
  background: rgba(245,168,69,0.14); border: 1px solid rgba(245,168,69,0.3); padding: 5px 11px; border-radius: 999px; }

.view { outline: none; }
.view h1 { font-size: 30px; font-weight: 700; margin: 6px 4px 4px; letter-spacing: .3px; }
.view .sub { color: var(--muted); margin: 0 4px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { border-radius: var(--radius); padding: 20px; min-height: 128px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease; }
a.tile:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(0,0,0,0.5), inset 0 1px 0 var(--edge-hi); }
.tile h3 { margin: 0; font-size: 17px; font-weight: 700; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tile.soon { opacity: .72; }
.pill { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 4px 10px; border-radius: 999px;
  background: rgba(79,176,236,0.16); color: #9fd6f8; border: 1px solid rgba(79,176,236,0.3); }
.pill.next { background: rgba(242,197,92,0.16); color: var(--gold); border-color: rgba(242,197,92,0.35); }
.halo-ring-home { width: 170px; height: 170px; border-radius: 50%; margin: 8px auto 0; display: grid; place-items: center; text-align: center; padding: 10px;
  background: conic-gradient(from 200deg, rgba(242,197,92,0.95), rgba(242,197,92,0.35), rgba(242,197,92,0.95));
  box-shadow: 0 0 40px rgba(242,197,92,0.35); }
.halo-ring-home > div { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--text);
  background: radial-gradient(circle at 50% 30%, #1b2a44, #0c1528); box-shadow: inset 0 2px 10px rgba(0,0,0,0.6); }

/* Phone */
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding: 12px; }
  .nav { position: fixed; z-index: 20; left: 12px; top: 12px; bottom: 12px; height: auto; width: min(300px, 84vw); transform: translateX(-110%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1); background: linear-gradient(160deg, rgba(30,44,70,0.92), rgba(14,22,40,0.92)); }
  .nav.open { transform: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  .icon-btn { display: inline-flex; }
  .env { display: none; }
  .view h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .nav, .tile, .btn { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: #18243a; } }

/* H-AI-LEY character */
.byline { font-size: 12px; color: var(--muted); margin: 18px 0 0; letter-spacing: .4px; }

/* Owner Reports */
.banner { border-radius: 16px; padding: 12px 16px; margin: 0 0 14px; color: #ffd9a0; border-color: rgba(245,168,69,.35); }
.kpis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; }
.kpi b { font-size: 26px; } .kpi span { color: var(--muted); font-size: 13px; }
.or-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.segs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--edge); flex-wrap: wrap; }
.seg { font: inherit; font-weight: 600; color: var(--text); background: transparent; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.seg i { font-style: normal; font-size: 12px; background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 999px; }
.seg.on { background: linear-gradient(180deg, rgba(92,189,245,.95), rgba(22,134,203,.95)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.or-mod { font: inherit; color: var(--text); padding: 9px 14px; border-radius: 999px; }
.or-mod option { color: #111; }
.or-batch { display: flex; gap: 10px; align-items: center; min-height: 8px; margin: 6px 2px 10px; }
.chk { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.or-list { display: flex; flex-direction: column; gap: 10px; }
.or-row { border-radius: 18px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.or-main { flex: 1; min-width: 0; }
.or-prop { font-weight: 700; font-size: 16px; }
.or-meta { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.or-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.or-acts a { text-decoration: none; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text); }
.tag.ok { background: rgba(32,190,160,.18); color: #8ff0d6; } .tag.warn { background: rgba(245,168,69,.18); color: #ffd08a; } .tag.bad, .bad { color: #ffb39a; }
.btn.primary-s { color: #fff; background: linear-gradient(180deg, #5cbdf5 0%, #1686CB 55%, #1173b0 100%); border-color: rgba(255,255,255,.25); }
.or-empty { color: var(--muted); padding: 30px; text-align: center; }
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: min(760px, 100%); max-height: 92vh; border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: linear-gradient(160deg, rgba(30,44,70,.95), rgba(14,22,40,.95)); }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.modal-head small { display: block; color: var(--muted); margin-top: 4px; }
.mail { width: 100%; height: 52vh; border: 0; border-radius: 14px; background: #fff; }
.sms { background: rgba(255,255,255,.06); border-radius: 14px; padding: 10px 14px; } .sms small { color: var(--muted); } .sms p { margin: 6px 0 0; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; z-index: 60; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpi b { font-size: 22px; } .or-row { flex-wrap: wrap; } .or-acts { width: 100%; justify-content: flex-start; } }

/* Owner Reports: email and text shown as separate channels */
.or-chans { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ch { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid rgba(255,255,255,.08); }
.ch b { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text); }
.ch-email { background: rgba(22,134,203,.16); border-color: rgba(22,134,203,.4); color: #a9dbff; } .ch-email b { background: #1686CB; color: #fff; }
.ch-text { background: rgba(32,190,160,.14); border-color: rgba(32,190,160,.4); color: #8ff0d6; } .ch-text b { background: #1a9e86; color: #fff; }
.ch-bad { background: rgba(255,110,80,.14); border-color: rgba(255,110,80,.45); color: #ffb39a; cursor: help; } .ch-bad b { background: #d9573a; color: #fff; }
.ch-ready { color: var(--text); }
.kpi.k-email b { color: #6cc4ff; } .kpi.k-text b { color: #6fe3c6; } .kpi.k-bad b { color: #ff9a80; }
.pv-label { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; margin: 10px 0 6px; display: inline-block; }
.pv-label.ch-email { background: #1686CB; color: #fff; } .pv-label.ch-text { background: #1a9e86; color: #fff; }
.kpi em { font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.seg.seg-bad i { background: #d9573a; color: #fff; }
.or-row.has-issue { box-shadow: inset 3px 0 0 #d9573a; }
.ch-btn-email { border-color: rgba(22,134,203,.55) !important; } .ch-btn-sms { border-color: rgba(32,190,160,.55) !important; }
.grow { flex: 1; }
.pv-block { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.pv-label { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.pv-label input { margin: 0; accent-color: #fff; }
.pv-to { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
/* What was sent: channel cards + timeline */
.lg-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 14px; }
.lg-card { border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.05); }
.lg-card b { font-size: 11px; letter-spacing: .6px; text-transform: uppercase; }
.lg-card span { font-weight: 700; color: var(--text); } .lg-card small { color: var(--muted); font-size: 12px; word-break: break-word; }
.lg-card .btn { align-self: flex-start; margin-top: 6px; }
.lg-card.card-email { border-color: rgba(22,134,203,.5); background: rgba(22,134,203,.12); } .lg-card.card-email b { color: #6cc4ff; }
.lg-card.card-sms { border-color: rgba(32,190,160,.5); background: rgba(32,190,160,.1); } .lg-card.card-sms b { color: #6fe3c6; }
.lg-card.card-bad { border-color: rgba(255,110,80,.5); background: rgba(255,110,80,.1); } .lg-card.card-bad b { color: #ff9a80; }
.lg-line { position: relative; padding-left: 4px; max-height: 52vh; overflow: auto; }
.lg-ev { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.lg-ev:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: rgba(255,255,255,.1); }
.lg-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.35); margin-top: 4px; flex: none; }
.lg-ev.ev-email .lg-dot { background: #1686CB; } .lg-ev.ev-text .lg-dot { background: #1a9e86; } .lg-ev.ev-bad .lg-dot { background: #d9573a; } .lg-ev.ev-ok .lg-dot { background: #f5c04a; }
.lg-ev.lg-test { opacity: .7; }
.lg-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lg-t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .lg-t small { color: var(--muted); font-size: 12px; }
.lg-body > small { color: var(--muted); font-size: 12px; word-break: break-word; }
.lg-subj { font-weight: 600; font-size: 14px; }
.lg-body .btn { align-self: flex-start; } .lg-body .mail { height: 420px; }
@media (max-width: 560px) { .lg-cards { grid-template-columns: 1fr; } }
.modal { overflow: auto; } .pv-block .mail { height: 40vh; }
@media (max-width: 560px) {
  .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .kpi { flex: 0 0 116px; scroll-snap-align: start; }
  .segs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .seg { white-space: nowrap; }
}

/* Report already sent to the owner: green edge, soft tint, "Sent to owner" tag */
.or-row.is-sent { box-shadow: inset 4px 0 0 #20BEA0; background: linear-gradient(90deg, rgba(32,190,160,.14), rgba(32,190,160,.03) 45%), var(--glass); }
.or-row.is-sent.has-issue { box-shadow: inset 4px 0 0 #d9573a; }
.tag.sent-tag { margin-left: 8px; vertical-align: 2px; background: rgba(32,190,160,.22); color: #8ff0d6; }

/* ───────── H-AI-LEY ───────── */
.hailey { display: inline-block; position: relative; width: var(--hs); height: var(--hs); flex: none; }
.hailey img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.hailey.pet img { position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; }
.hailey.pet img.on { opacity: 1; }
/* Gold light pool under her: the "halo stage" */
.stage-floor { position: absolute; left: 50%; bottom: 6%; width: 78%; height: 16%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242,197,92,.55), rgba(242,197,92,.14) 60%, transparent); filter: blur(4px); animation: floor 4s ease-in-out infinite; }
@keyframes floor { 0%,100% { opacity: .75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }
.bubble { position: relative; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(236,244,252,.96)); color: var(--char); border-radius: 18px;
  padding: 11px 15px; font-weight: 600; font-size: 14.5px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.bubble p { margin: 0; }
.bubble::after { content: ""; position: absolute; width: 14px; height: 14px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.bubble.up::after { top: -6px; left: 50%; margin-left: -7px; background: #fff; }

/* Sign-in: she is the hero */
.sign-stage { position: relative; width: 220px; height: 220px; margin: -96px auto 4px; }
.sign-stage.small { width: 170px; height: 170px; margin-top: -76px; }
.sign-stage .hailey { position: relative; z-index: 1; filter: drop-shadow(0 14px 22px rgba(0,0,0,.35)); }
.signin .card { margin-top: 90px; }
#signin-say { margin: 0 auto 18px; max-width: 300px; animation: pop .45s cubic-bezier(.2,1.4,.4,1) both .3s; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.92); } to { opacity: 1; transform: none; } }

/* Ask bar: her face + shortcut */
.ask { cursor: text; }
.ask .hailey { margin: -8px -2px -8px -10px; }
.ask-kbd { font: inherit; font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--edge); border-radius: 8px; padding: 3px 7px; margin-right: 6px; }

/* Home hero */
.hero { border-radius: 30px; padding: 22px 28px 22px 12px; display: flex; align-items: center; gap: 18px; margin-bottom: 18px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 50%, rgba(242,197,92,.16), transparent 55%), var(--glass); }
.hero-stage { position: relative; width: 210px; height: 210px; flex: none; }
.hero-stage .hailey { position: relative; z-index: 1; }
.hero-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.hero-copy h1 { margin: 0 !important; }
.hero .bubble::after { left: -6px; top: 22px; }
.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-acts span { display: contents; }
.note { display: flex; align-items: center; gap: 14px; border-radius: 20px; padding: 10px 18px 10px 8px; margin: 10px 0 20px; }
.note p { margin: 0; color: var(--muted); } .note b { color: var(--text); }

/* Dock */
.dock { position: fixed; right: 18px; bottom: 14px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; pointer-events: none; }
.dock > * { pointer-events: auto; }
.dock-pet { cursor: pointer; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); transition: transform .2s ease; outline: none; }
.dock-pet:hover { transform: translateY(-4px) scale(1.04); }
.dock-pet { touch-action: none; user-select: none; -webkit-user-select: none; }
.dock.dragging .dock-pet { cursor: grabbing; transform: scale(1.08); transition: none; }
.dock.dragging .dock-hide { opacity: 0; }
.dock-pet { position: relative; }
.dock-say .shh { display: block; margin: 6px 0 0 auto; background: none; border: 0; padding: 0; font: inherit; font-size: 12px; opacity: .75; text-decoration: underline; cursor: pointer; color: inherit; }
.pet-hearts { position: absolute; inset: 0; pointer-events: none; }
.pet-hearts i { position: absolute; top: 18%; font-style: normal; font-size: 15px; color: #ff7aa8; opacity: 0; text-shadow: 0 2px 6px rgba(255,122,168,.45); }
.pet-hearts i:nth-child(1) { left: 22%; } .pet-hearts i:nth-child(2) { left: 48%; font-size: 19px; } .pet-hearts i:nth-child(3) { left: 70%; }
.pet-hearts.go i { animation: heart-float 1.8s ease-out both; }
.pet-hearts.go i:nth-child(2) { animation-delay: .25s; } .pet-hearts.go i:nth-child(3) { animation-delay: .5s; }
@keyframes heart-float { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 20% { opacity: 1; transform: translateY(-4px) scale(1); }
  100% { opacity: 0; transform: translateY(-38px) scale(.9) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .pet-hearts { display: none; } }
.dock-pet:focus-visible { outline: 3px solid rgba(79,176,236,.6); border-radius: 50%; }
.dock-say { max-width: 270px; margin: 0 12px -6px 0; animation: pop .35s cubic-bezier(.2,1.4,.4,1) both; }
.dock-say::after { bottom: -6px; right: 44px; }
.dock-hide { position: absolute; right: 4px; bottom: 98px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--edge); background: rgba(14,22,40,.85);
  color: var(--muted); cursor: pointer; opacity: 0; transition: opacity .2s; font-size: 15px; line-height: 1; z-index: 2; }
.dock:hover .dock-hide, .dock-hide:focus-visible { opacity: 1; }
.dock-wake { display: none; width: 52px; height: 30px; border-radius: 999px; border: 1px solid rgba(242,197,92,.5); background: rgba(14,22,40,.85); cursor: pointer; place-items: center; }
.dock-wake span { width: 26px; height: 9px; border-radius: 50%; border: 2.5px solid var(--gold); box-shadow: 0 0 12px rgba(242,197,92,.9); display: block; animation: float 3.5s ease-in-out infinite; }
.dock.tucked .dock-pet, .dock.tucked .dock-hide, .dock.tucked .dock-say { display: none !important; }
.dock.tucked .dock-wake { display: grid; }
body.asking .dock { opacity: 0; pointer-events: none; }
.toast { display: none; }

/* Ask H-AI-LEY panel */
.ask-wrap { position: fixed; inset: 0; z-index: 70; }
.ask-scrim { position: absolute; inset: 0; background: rgba(4,8,18,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .22s; }
.ask-panel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(440px, calc(100vw - 28px)); border-radius: 28px; display: flex; flex-direction: column;
  background: linear-gradient(170deg, rgba(34,52,84,.94), rgba(12,20,38,.96)); transform: translateX(30px); opacity: 0; transition: transform .26s cubic-bezier(.2,.8,.2,1), opacity .22s; overflow: hidden; }
.ask-wrap.on .ask-scrim { opacity: 1; } .ask-wrap.on .ask-panel { transform: none; opacity: 1; }
.ask-head { display: flex; align-items: flex-end; gap: 10px; padding: 8px 16px 10px 6px; border-bottom: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(90% 120% at 20% 100%, rgba(242,197,92,.18), transparent 60%); }
.ask-stage { position: relative; width: 150px; height: 150px; flex: none; }
.ask-stage .hailey { position: relative; z-index: 1; }
.ask-id { flex: 1; display: flex; flex-direction: column; padding-bottom: 22px; } .ask-id b { font-size: 20px; letter-spacing: .5px; }
.ask-status { color: var(--gold); font-weight: 600; }
.ask-head .btn { margin-bottom: 24px; }
.ask-thread { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-row.me { justify-content: flex-end; }
.msg-row .msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; line-height: 1.45; font-size: 14.5px; }
.msg-row.her .msg { background: rgba(255,255,255,.95); color: var(--char); border-bottom-left-radius: 6px; font-weight: 500; }
.msg-row.me .msg { background: linear-gradient(180deg, #2b9fe3, #1686CB); color: #fff; border-bottom-right-radius: 6px; font-weight: 600; }
.msg-row .msg ul { margin: 6px 0; padding-left: 18px; } .msg-row .msg small { color: #6b7280; } .msg-row .msg .btn { margin-top: 6px; color: #fff; background: linear-gradient(180deg, #5cbdf5, #1686CB); text-decoration: none; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: #1686CB; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 10px; }
.ask-chips .chip { font: inherit; font-size: 13px; font-weight: 600; color: var(--gold); background: rgba(242,197,92,.1); border: 1px solid rgba(242,197,92,.35); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.ask-chips .chip:hover { background: rgba(242,197,92,.2); }
.ask-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.ask-form input { flex: 1; min-width: 0; font: inherit; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--edge); border-radius: 999px; padding: 11px 16px; }
.ask-form input:focus { outline: none; border-color: rgba(242,197,92,.6); box-shadow: 0 0 0 3px rgba(242,197,92,.15); }
.ask-hint { color: var(--muted); font-size: 11.5px; text-align: center; padding: 0 0 10px; }

/* Empty states with H-AI-LEY */
.or-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.or-empty p { margin: 0; }

@media (max-width: 860px) {
  .hero { flex-direction: column; text-align: center; padding: 10px 18px 22px; gap: 4px; }
  .hero-stage { width: 170px; height: 170px; }
  .hero .bubble::after { left: 50%; top: -6px; margin-left: -7px; }
  .hero-acts { justify-content: center; }
  .dock { right: 8px; bottom: 8px; } .dock-pet { --hs: 84px !important; }
  .dock-hide { bottom: 66px; opacity: 1; }
  .ask-kbd { display: none; }
  .ask-panel { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(86vh, 720px); border-radius: 26px; transform: translateY(40px); }
  .ask-stage { width: 112px; height: 112px; } .ask-stage .hailey { --hs: 112px !important; }
}
@media (prefers-reduced-motion: reduce) { .stage-floor, .dock-wake span, #signin-say, .dock-say { animation: none; } }
.hero .bubble { max-width: 560px; align-self: flex-start; }
a.btn { text-decoration: none; }
.ask-head { padding-top: 14px; }
@media (max-width: 860px) { .hero .bubble { align-self: center; } }

/* Owner Reports v2 (Nov 29, 2026): status icon row with hover / tap popovers, per-channel Send buttons. */
.si-row { display: flex; gap: 6px; margin-top: 8px; align-items: center; flex-wrap: wrap; }
.si { position: relative; width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); color: rgba(255,255,255,.38); font: inherit; }
.si svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.si-blue { color: #6cc4ff; background: rgba(22,134,203,.20); border-color: rgba(22,134,203,.55); }
.si-green { color: #6fe3c6; background: rgba(32,190,160,.18); border-color: rgba(32,190,160,.5); }
.si-red { color: #ff9a80; background: rgba(217,87,58,.20); border-color: rgba(217,87,58,.6); }
.si-orange { color: #ffc070; background: rgba(245,150,40,.22); border-color: rgba(245,150,40,.65); }
[data-tip] { position: relative; }
.si::after, .btn[data-tip]:disabled::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 240px; white-space: normal; text-align: left; font-size: 12px; font-weight: 600; line-height: 1.35; color: #333333;
  background: #fff; padding: 7px 10px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 30; }
.si::after { left: 0; transform: none; }
.si:nth-child(n+4)::after { left: auto; right: 0; }
.btn[data-tip]:disabled::after { top: auto; bottom: calc(100% + 8px); }
@media (hover: hover) { .si:hover::after, .btn[data-tip]:disabled:hover::after { opacity: 1; } }
.si.tip-open::after, .si:focus-visible::after { opacity: 1; }
.btn[data-tip]:disabled { pointer-events: auto; cursor: not-allowed; }
.btn.send-email:not(:disabled) { color: #fff; background: linear-gradient(180deg, #5cbdf5 0%, #1686CB 55%, #1173b0 100%); border-color: rgba(255,255,255,.25); }
.btn.send-sms:not(:disabled) { color: #fff; background: linear-gradient(180deg, #4fd8b8 0%, #1a9e86 60%, #148571 100%); border-color: rgba(255,255,255,.25); }
.or-batch .grow { flex: 1; }
.or-batch .chk small { color: var(--muted); }
@media (max-width: 860px) { .or-batch { flex-wrap: wrap; } .si { width: 34px; height: 34px; } .si::after { max-width: 220px; } }

/* ───────── Owner Reports v2 (Nov 29 2026): view switch, split send button, owner follow-up ───────── */
.or-switch { margin: 4px 0 16px; }
.seg.big { padding: 10px 18px; font-size: 15px; }
.kpis.kpis-4, .or-tiles.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi.k-warn b { color: #ffd08a; }
.btn.warn-s { color: #2a1700; border-color: rgba(255,255,255,.3); background: linear-gradient(180deg, #ffd08a 0%, #F5A845 60%, #e08f2a 100%); }
.or-split { display: inline-flex; position: relative; }
.or-split > .btn { border-radius: 999px 0 0 999px; }
.or-more { position: relative; }
.or-more > summary { list-style: none; border-radius: 0 999px 999px 0; border-left: 1px solid rgba(255,255,255,.25); padding-inline: 10px; }
.or-more > summary::-webkit-details-marker { display: none; }
.or-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; border-radius: 14px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 160px;
  background: linear-gradient(160deg, rgba(30,44,70,.98), rgba(14,22,40,.98)); }
.or-pop .btn { justify-content: flex-start; }
.fu { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 14px; align-items: start; }
.fu-side { border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.fu-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.fu-filters input, .fu-filters select, .fu-field select, .fu-field textarea { font: inherit; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--edge); border-radius: 999px; padding: 8px 12px; }
.fu-filters input { flex: 1 1 100%; min-width: 0; }
.fu-filters select { flex: 1 1 0; min-width: 0; }
.fu-filters option, .fu-field option { color: #111; }
.fu-list { display: flex; flex-direction: column; gap: 3px; max-height: calc(100vh - 260px); min-height: 200px; overflow: auto; }
.fu-owner { text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 9px 11px; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
.fu-owner:hover { background: rgba(255,255,255,.06); }
.fu-owner.sel { background: rgba(22,134,203,.24); border-color: rgba(92,189,245,.5); }
.fu-nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-sm { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.fu-count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; align-self: center; font-variant-numeric: tabular-nums; }
.fu-count.r { background: #d9573a; color: #fff; } .fu-count.a { background: rgba(245,168,69,.3); color: #ffd08a; } .fu-count.g { background: rgba(32,190,160,.25); color: #8ff0d6; }
.fu-detail { border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fu-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.fu-head h2 { margin: 0; font-size: 22px; }
.fu-contact { color: var(--muted); font-size: 13px; margin-top: 4px; }
.fu-line { font-size: 13px; padding: 10px 12px; border-radius: 12px; border: 1px solid; }
.fu-line.bad { background: rgba(217,87,58,.14); border-color: rgba(217,87,58,.4); color: #ffb39a; }
.fu-line.warn { background: rgba(245,168,69,.12); border-color: rgba(245,168,69,.35); color: #ffd08a; }
.fu-line.ok { background: rgba(32,190,160,.12); border-color: rgba(32,190,160,.35); color: #8ff0d6; }
.fu-group { border: 1px solid var(--edge); border-radius: 16px; background: rgba(255,255,255,.03); }
.fu-group > summary { cursor: pointer; list-style: none; display: flex; gap: 8px; align-items: center; padding: 11px 14px; }
.fu-group > summary::-webkit-details-marker { display: none; }
.fu-group > summary::before { content: "▸"; color: var(--muted); transition: transform .15s ease; }
.fu-group[open] > summary::before { transform: rotate(90deg); }
.fu-rep { border-top: 1px solid rgba(255,255,255,.08); }
.fu-rep-h { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 14px; }
.fu-rep-h small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.fu-rep-h a { text-decoration: none; }
.fu-items { display: flex; flex-direction: column; padding: 0 14px 10px; }
.fu-item { display: grid; grid-template-columns: 118px minmax(0, 1fr) auto; gap: 10px; padding: 7px 0; border-top: 1px dashed rgba(255,255,255,.07); align-items: center; font-size: 14px; }
.fu-item .tag { justify-self: start; }
.fu-it small, .fu-ans small { color: var(--muted); }
.fu-ans { font-size: 12px; color: #ffd08a; text-align: right; } .fu-ans.done { color: #8ff0d6; }
.tag.req { background: rgba(217,87,58,.24); color: #ffb39a; } .tag.rec { background: rgba(245,168,69,.18); color: #ffd08a; }
.fu-tl { display: flex; flex-direction: column; gap: 6px; padding: 0 14px 12px 28px; font-size: 13px; }
.fu-tl small { color: var(--muted); margin-right: 6px; }
.fu-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; }
.fu-field textarea { border-radius: 14px; resize: vertical; }
@media (max-width: 900px) {
  .fu { grid-template-columns: minmax(0, 1fr); }
  .fu-side { position: static; } .fu-list { max-height: 320px; }
  .kpis.kpis-4, .or-tiles.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; overflow: visible; }
  .fu-item { grid-template-columns: minmax(0, 1fr) auto; } .fu-item .tag { grid-column: 1 / -1; }
}

/* Owner's answers panel (Nov 29) */
.fu-res { margin: 0 14px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.02); }
.fu-res > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; font-size: 13px; }
.fu-res > summary::-webkit-details-marker { display: none; }
.fu-res > summary::before { content: "▸"; color: var(--muted); margin-right: 2px; transition: transform .15s; }
.fu-res[open] > summary::before { transform: rotate(90deg); }
.fu-res .fu-items { padding: 0 10px 6px; }
.fu-ansh { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 10px 0; text-transform: uppercase; letter-spacing: .04em; }
.fu-note, .fu-work { display: block; margin-top: 2px; }
.fu-work { color: #9cc9ff !important; }
.tag.ans-hrez { background: rgba(22,134,203,.25); color: #bfe3ff; }
.tag.ans-quote { background: rgba(255,138,0,.2); color: #ffd08a; }
.tag.ans-talk { background: rgba(180,140,255,.2); color: #dccbff; }
.tag.ans-owner { background: rgba(143,240,214,.15); color: #8ff0d6; }
.tag.ans-decline { background: rgba(255,255,255,.08); color: var(--muted); }
.fu-filters [data-fu-os] { flex: 1 1 100%; }
.fu-field input { font: inherit; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--edge); border-radius: 12px; padding: 8px 12px; width: 100%; box-sizing: border-box; }
/* Owner follow-up (Nov 29): each report on the owner's page expands and collapses */
.fu-fold { display: flex; justify-content: flex-end; gap: 6px; margin: 4px 0 6px; }
.fu-reps { display: flex; flex-direction: column; gap: 8px; }
.fu-reps .fu-rep { border: 1px solid var(--edge); border-radius: 14px; background: rgba(255,255,255,.03); }
.fu-rep > summary { cursor: pointer; list-style: none; }
.fu-rep > summary::-webkit-details-marker { display: none; }
.fu-rep > summary::before { content: "▸"; color: var(--muted); transition: transform .15s ease; }
.fu-rep[open] > summary::before { transform: rotate(90deg); }
.fu-rep-acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 6px; }
.fu-rep-acts:empty { display: none; }
.fu-rep-acts a { text-decoration: none; }
.tag.t-safety { background: rgba(217,87,58,.2); color: #ffb59f; }
.tag.t-storm { background: rgba(22,134,203,.25); color: #bfe3ff; }
.tag.t-amenity { background: rgba(32,190,160,.2); color: #8ff0d6; }
.tag.t-owner_success { background: rgba(255,138,0,.2); color: #ffd08a; }
/* Green = nothing waiting on the owner (no decisions needed, or all answered) */
.fu-reps .fu-rep.done { border-color: rgba(32,190,160,.8); background: rgba(32,190,160,.16); }
.fu-reps .fu-rep.done > summary::before { color: #8ff0d6; }
.fu-owner.done { border-color: rgba(32,190,160,.45); background: rgba(32,190,160,.08); }
.fu-owner.sel.done { background: rgba(22,134,203,.24); border-color: rgba(32,190,160,.6); }
/* Header cards are buttons that open their list (Nov 29) */
.kpi.kpi-btn { font: inherit; color: inherit; text-align: left; cursor: pointer; border: 1px solid var(--edge); transition: transform .12s ease, border-color .12s ease; }
.kpi.kpi-btn:hover { transform: translateY(-2px); border-color: rgba(92,189,245,.6); }
.kpi.kpi-btn.on { border-color: rgba(92,189,245,.9); box-shadow: 0 0 0 2px rgba(92,189,245,.35) inset; }
.kpi.kpi-btn:focus-visible { outline: 2px solid #5cbdf5; outline-offset: 2px; }

/* Answer status and report type icons (Steve, Nov 29): red = no reply, amber = partly answered, green = all answered. */
.ti { flex: none; width: 34px; height: 34px; border-radius: 11px; display: inline-grid; place-items: center; position: relative; }
.ti svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ti-safety { background: rgba(217,87,58,.2); color: #ffb59f; }
.ti-storm { background: rgba(22,134,203,.28); color: #bfe3ff; }
.ti-summer { background: rgba(242,197,92,.2); color: #ffd978; }
.ti-winter { background: rgba(150,200,255,.18); color: #d6ecff; }
.ti-owner_success { background: rgba(255,138,0,.2); color: #ffd08a; }
.ti.st-done::after, .ti.st-part::after, .ti.st-none::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0e1628; }
.ti.st-done::after { background: #20bea0; } .ti.st-part::after { background: #f2c55c; } .ti.st-none::after { background: #ef5b5b; }
.fu-icons { display: flex; gap: 6px; margin: 6px 0 2px; flex-wrap: wrap; }
.fu-icons .ti { width: 26px; height: 26px; border-radius: 8px; } .fu-icons .ti svg { width: 15px; height: 15px; }
.fu-icons .ti::after { width: 9px; height: 9px; }
.ans { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 5px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ans i { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #0e1628;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ans-done { --c: #20bea0; background: rgba(32,190,160,.2); color: #8ff0d6; } .ans-done i { background: #20bea0; }
.ans-part { --c: #f2c55c; background: rgba(242,197,92,.16); color: #ffd978; }
.ans-none { --c: #ef5b5b; background: rgba(239,91,91,.18); color: #ffb3b3; } .ans-none i { background: #ef5b5b; }
.ans-draft { --c: #8aa0bf; background: rgba(255,255,255,.06); color: var(--muted); }
.fu-reps .fu-rep { border-left-width: 5px; }
.fu-reps .fu-rep.st-none { border-color: rgba(239,91,91,.55); border-left-color: #ef5b5b; }
.fu-reps .fu-rep.st-part { border-color: rgba(242,197,92,.45); border-left-color: #f2c55c; }
.fu-reps .fu-rep.st-done { border-left-color: #20bea0; }
.fu-owner { border-left: 4px solid transparent; }
.fu-owner.none { border-left-color: #ef5b5b; } .fu-owner.part { border-left-color: #f2c55c; } .fu-owner.done { border-left-color: #20bea0; }
.fu-count.g { background: rgba(32,190,160,.25); color: #8ff0d6; }
.fu-icons { grid-column: 1 / -1; }
.fu-owner.none, .fu-owner.part, .fu-owner.done { border-left-width: 4px; }
.ti-amenity { background: rgba(32,190,160,.2); color: #8ff0d6; }

/* Onboarding Amenity Assessment: key icon on a cyan teal (not a status color) */
.ti-onboarding { background: rgba(20,184,196,.22); color: #9ff3f8; }
.tag.t-onboarding { background: rgba(20,184,196,.22); color: #9ff3f8; }

/* Send reports, pass 1 (Nov 29): search, type chips, one primary button per row, "⋯" menu, reasons in words */
.or-find { margin: 4px 0 10px; }
.or-q { width: 100%; font: inherit; color: var(--text); padding: 11px 18px; border-radius: 999px; min-height: 44px; }
.or-q::placeholder { color: var(--muted); }
.or-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.chip { font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--edge); border-radius: 999px;
  padding: 6px 12px; min-height: 36px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.chip i { font-style: normal; font-size: 12px; color: var(--muted); }
.chip.on { background: rgba(22,134,203,.32); border-color: rgba(92,189,245,.8); }
.chip.on i { color: var(--text); }
.chip[data-zero] { opacity: .55; }
.chip:focus-visible { outline: 3px solid rgba(79,176,236,.6); outline-offset: 2px; }
.chip-i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.or-why { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.or-off .or-why { margin: 0 2px 6px; }
.modal-foot .or-why { flex-basis: 100%; text-align: right; margin: 0; }
.or-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.or-row > .ti { align-self: flex-start; margin-top: 2px; }
.or-acts { align-items: center; }
.or-menu { position: relative; display: inline-flex; }
.or-dots { min-width: 40px; font-size: 18px; line-height: 1; padding-inline: 10px; }
.or-menu .or-pop { right: 0; min-width: 210px; }
.mi { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: transparent; border: 0; border-radius: 10px; padding: 9px 12px; min-height: 40px;
  text-align: left; cursor: pointer; text-decoration: none; display: flex; align-items: center; }
.mi:hover, .mi:focus-visible { background: rgba(255,255,255,.1); outline: none; }
.mi:focus-visible { box-shadow: inset 0 0 0 2px #4FB0EC; }
.mi:disabled { opacity: .55; cursor: default; }

/* Answers panel: a side sheet on desktop, full screen on a phone */
.ap-wrap { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; justify-content: flex-end; }
.ap { width: min(520px, 100%); height: 100%; display: flex; flex-direction: column; border-radius: 24px 0 0 24px; outline: none;
  background: linear-gradient(170deg, rgba(34,52,84,.96), rgba(12,20,38,.97)); }
.ap-head { padding: 16px 18px 10px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 8px; }
.ap-top { display: flex; gap: 12px; align-items: flex-start; }
.ap-top h2 { margin: 0; font-size: 19px; }
.ap-top h2 small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ap-sub { color: var(--muted); font-size: 13px; }
.ap-x { min-width: 40px; min-height: 40px; padding: 0; }
.ap-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ap-links .grow { flex: 1; }
.ap-links a { text-decoration: none; }
.ap-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-body { flex: 1; overflow: auto; padding: 4px 18px 18px; }
.ap-items { list-style: none; margin: 0; padding: 0; }
.ap-item { padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 5px; font-size: 14px; }
.ap-it small { color: var(--muted); }
.ap-ch { color: var(--muted); } .ap-ch b { color: var(--text); }
.ap-ch.wait { color: #ffd08a; }
.ap-note { color: var(--text); font-size: 13px; }
.ap-none { color: var(--muted); text-align: center; }
.ap-wo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wo { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.wo svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wo-done { color: #8ff0d6; background: rgba(32,190,160,.14); border-color: rgba(32,190,160,.5); }
.wo-in_progress { color: #9cd3ff; background: rgba(22,134,203,.18); border-color: rgba(92,189,245,.5); }
.wo-open, .wo-cancelled { color: rgba(235,242,250,.8); background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.22); }
.wo-link { color: #9cd3ff; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; min-height: 32px; }
.ap-hist summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.ap-hist ol { margin: 6px 0 0; padding-left: 18px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.ap-hist small { color: var(--muted); margin-right: 4px; }
.ap-hn { color: var(--muted); }

@media (max-width: 860px) {
  .btn.small, .chip, .or-dots { min-height: 40px; }
  .pick { width: 22px; height: 22px; margin: 9px; }
  .or-row { align-items: flex-start; }
  .or-row .or-main { flex: 1 1 calc(100% - 90px); }
  .or-acts { flex-wrap: nowrap; }
  .or-acts > .btn, .or-acts > .or-split { flex: 1; }
  .or-acts > .or-split > .btn { flex: 1; }
  .or-more > summary { min-height: 40px; }
  /* The menu opens as a bottom sheet so it never runs off the screen */
  .or-menu .or-pop { position: fixed; left: 8px; right: 8px; bottom: 8px; top: auto; min-width: 0; border-radius: 18px; padding: 8px; z-index: 40;
    background: linear-gradient(170deg, rgba(34,52,84,.97), rgba(12,20,38,.98)); }
  .mi { min-height: 44px; }
}
@media (max-width: 560px) {
  .ap { border-radius: 0; width: 100%; }
  .or-types { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .chip { white-space: nowrap; flex: none; }
}

/* Owner Reports pass 2 (Nov 29): record an owner's answer, contact editor, send sheet, Owner Portal, sort */
.linkish { font: inherit; font-size: 12.5px; font-weight: 700; color: #9cd3ff; background: none; border: 0; padding: 4px 2px; margin-left: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.linkish:focus-visible { outline: 3px solid rgba(79,176,236,.6); outline-offset: 2px; border-radius: 6px; }
.fu-ans .linkish { display: block; margin: 2px 0 0 auto; }
.or-find { display: flex; gap: 8px; align-items: center; }
.or-find .or-q { flex: 1; min-width: 0; }
.or-sortl { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; white-space: nowrap; }
.or-sort { font: inherit; color: var(--text); padding: 10px 14px; border-radius: 999px; min-height: 44px; border: 1px solid var(--edge); }
.or-sort option, .fu-sort option { color: #111; }
.recf, .ce { display: flex; flex-direction: column; gap: 10px; padding: 12px; margin-top: 4px; border: 1px solid rgba(92,189,245,.35); border-radius: 14px; background: rgba(22,134,203,.08); }
.rec-ch { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rec-ch legend { color: var(--muted); font-size: 13px; margin-bottom: 6px; padding: 0; }
.rec-opt { position: relative; }
.rec-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rec-opt span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.06); font-size: 13px; font-weight: 600; }
.rec-opt input:checked + span { background: rgba(22,134,203,.4); border-color: rgba(92,189,245,.9); }
.rec-opt input:focus-visible + span { outline: 3px solid rgba(79,176,236,.6); outline-offset: 2px; }
.recf .fu-field select { border-radius: 12px; }
.rec-acts { display: flex; gap: 8px; justify-content: flex-end; }
.rec-err { margin: 0; color: #ffb39a; font-size: 13px; }
.ce-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; }
.ce-x { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ce-x .ce-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr); }
.ce-nm { font-weight: 700; font-size: 13px; padding-bottom: 10px; } .ce-nm small { color: var(--muted); font-weight: 600; }
.fu-head .ce { margin-top: 8px; }
.modal.ss { width: min(640px, 100%); }
.ss-body { overflow: auto; min-height: 0; }
.ss-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ss-line { border: 1px solid var(--edge); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; background: rgba(255,255,255,.03); font-size: 13.5px; }
.ss-who { display: flex; gap: 8px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.ss-who > span { display: inline-flex; gap: 4px; }
.ss-what { color: var(--text); }
.ss-to { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.ss-x { color: var(--muted); font-size: 12.5px; } .ss-x:empty { display: none; }
.sc { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid; }
.sc-email { color: #bfe3ff; border-color: rgba(92,189,245,.6); }
.sc-sms { color: #8ff0d6; border-color: rgba(32,190,160,.6); }
.sc-invite { color: #ffd08a; border-color: rgba(245,168,69,.6); }
.ss-skip { margin-top: 10px; font-size: 13px; color: var(--muted); } .ss-skip ul { margin: 6px 0 0; padding-left: 18px; }
.ss-res .ok .ss-who > span { color: #8ff0d6; font-weight: 700; }
.ss-res .bad { border-color: rgba(217,87,58,.5); } .ss-res .bad .ss-who > span { color: #ffb39a; font-weight: 700; }
.ss-note { text-align: left; margin: 0; }
.fu-portal { padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; }
.fu-ph { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; } .fu-ph small { color: var(--muted); }
.fu-pp { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fu-pp li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.fu-pp small { color: var(--muted); margin-left: 4px; } .fu-pp .pp-mail { display: block; margin-left: 0; }
.pp-st { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid; }
.pp-active { color: #8ff0d6; border-color: rgba(32,190,160,.6); } .pp-invited { color: #bfe3ff; border-color: rgba(92,189,245,.6); } .pp-none { color: var(--muted); border-color: var(--edge); }
@media (max-width: 560px) {
  .or-find { flex-wrap: wrap; } .or-sortl { flex: 1 1 100%; } .or-sort { flex: 1; }
  .ce-row, .ce-x .ce-row { grid-template-columns: minmax(0, 1fr); }
  .ce-nm { padding-bottom: 0; }
  .modal-wrap:has(.modal.ss) { padding: 0; }
  .modal.ss { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .modal.ss .ss-body { flex: 1; }
  .modal.ss .ss-foot { position: sticky; bottom: 0; padding-top: 8px; background: inherit; }
  .modal.ss .ss-foot .btn { flex: 1; min-height: 48px; }
}
.fu-filters select { flex: 1 1 calc(50% - 3px); }

/* ── App launcher (launcher.js) ── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 2px 4px 6px; }
.crumbs a { color: var(--blue-l); text-decoration: none; } .crumbs a:hover { text-decoration: underline; } .crumbs b { color: var(--text); font-weight: 600; }
.view h2.more { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; margin: 28px 4px 12px; }
.kpill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px; padding: 3px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.kpill.k-halo { color: var(--gold); background: rgba(242,197,92,0.14); border-color: rgba(242,197,92,0.35); }
.kpill.k-app { color: #9fd6f8; background: rgba(79,176,236,0.14); border-color: rgba(79,176,236,0.32); }
.kpill.k-owner { color: #d2c3ff; background: rgba(183,156,255,0.14); border-color: rgba(183,156,255,0.32); }
.kpill.k-system { color: #8ff0d8; background: rgba(79,216,184,0.12); border-color: rgba(79,216,184,0.3); }
.kpill.k-planned { color: var(--muted); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sec-grid > .sec { border-radius: var(--radius); padding: 18px 20px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: transform .18s ease, box-shadow .18s ease; }
.sec-grid > .sec:hover { transform: translateY(-3px); box-shadow: 0 26px 60px rgba(0,0,0,0.5), inset 0 1px 0 var(--edge-hi); }
.sec-grid > .sec.soon { opacity: .7; }
.sec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sec-grid > .sec h3 { margin: 0; font-size: 17px; }
.sec-grid > .sec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sec-grid > .sec li { display: flex; align-items: center; gap: 9px; }
.sec-grid > .sec p { margin: 0; color: var(--muted); font-size: 14px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 12px; }
.app-card { border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.app-card.soon { opacity: .78; }
.app-head { display: flex; gap: 14px; align-items: center; }
.app-head h3 { margin: 0 0 5px; font-size: 18px; }
.app-card > p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14.5px; }
.app-ico { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff;
  background: linear-gradient(160deg, #5cbdf5, #1173b0); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 16px rgba(0,0,0,.3); }
.app-ico.k-halo { background: linear-gradient(160deg, #f7d77f, #c8952a); color: #1b1300; }
.app-ico.k-owner { background: linear-gradient(160deg, #c7b2ff, #7a5ad6); }
.app-ico.k-system { background: linear-gradient(160deg, #6fe6c8, #168a72); }
.app-ico.k-planned { background: rgba(255,255,255,0.08); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.app-facts { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.app-facts b { color: var(--text); font-weight: 600; margin-right: 6px; }
.app-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.app-acts .btn { padding: 9px 15px; font-size: 14px; text-decoration: none; }
.btn .ext { opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.chips .chip:hover { filter: brightness(1.15); }
.ql { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ql-app { border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; transition: transform .18s ease; }
.ql-app:hover { transform: translateY(-2px); }
.ql-app b { font-size: 14px; line-height: 1.3; } .ql-app small { color: var(--muted); font-size: 12px; }
.view.framed { display: flex; flex-direction: column; }
.frame-wrap { display: flex; flex-direction: column; gap: 10px; height: calc(100vh - 120px); min-height: 480px; }
.frame-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px; flex-wrap: wrap; }
.frame-bar .btn { text-decoration: none; }
.frame-title { font-size: 16px; } .frame-note { color: var(--muted); font-size: 12.5px; margin-right: auto; }
.frame-box { flex: 1; border-radius: 18px; overflow: hidden; position: relative; padding: 0; }
.frame-box iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.frame-help { position: absolute; inset: auto 0 0 0; z-index: 0; margin: 0; padding: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.frame-help a { color: var(--blue-l); }
.dir-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 16px; }
.dir-kpis > div { border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; } .dir-kpis b { font-size: 26px; } .dir-kpis span { color: var(--muted); font-size: 12.5px; }
.dir-wrap { border-radius: var(--radius); overflow-x: auto; }
table.dir { width: 100%; border-collapse: collapse; font-size: 14px; }
.dir th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.12); white-space: nowrap; }
.dir td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.07); vertical-align: top; }
.dir td small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; max-width: 420px; }
.dir td a { color: var(--blue-l); text-decoration: none; word-break: break-all; }
@media (max-width: 860px) {
  .dir-kpis { grid-template-columns: repeat(3, 1fr); }
  .frame-wrap { height: calc(100vh - 96px); }
  .frame-note { display: none; }
  .app-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sec, .ql-app, .cat-tog svg { transition: none; } }

/* ── Property pages (properties.js) ── */
.pp-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pp-in { font: inherit; color: var(--text); background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 10px 14px; }
input.pp-in { flex: 1; min-width: 220px; }
.pp-in:focus { outline: none; border-color: rgba(79,176,236,0.7); }
.pp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.pp-kpis > div { border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; } .pp-kpis b { font-size: 24px; font-variant-numeric: tabular-nums; } .pp-kpis span { color: var(--muted); font-size: 12.5px; }
.pp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.pp-list { border-radius: 20px; padding: 8px; max-height: calc(100vh - 330px); min-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.pp-row { text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.pp-row:hover { background: rgba(255,255,255,0.06); }
.pp-row.on { background: rgba(79,176,236,0.18); border-color: rgba(79,176,236,0.45); }
.pp-name { font-weight: 700; } .pp-row small { color: var(--muted); font-size: 12.5px; }
.pp-detail { border-radius: 20px; padding: 20px 22px; position: sticky; top: 18px; display: flex; flex-direction: column; gap: 12px; }
.pp-detail h2 { margin: 0; font-size: 22px; } .pp-detail h3 { margin: 6px 0 0; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pp-addr { margin: 0; color: var(--muted); }
.pp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.pp-dl dt { color: var(--muted); } .pp-dl dd { margin: 0; min-width: 0; word-break: break-all; }
.pp-dl code { font-size: 13px; background: rgba(0,0,0,0.25); padding: 2px 6px; border-radius: 6px; }
.pp-dl .linkish { min-height: 0; padding: 0 2px; }
.pp-miss { color: var(--amber); font-size: 13px; }
p.pp-none { color: var(--muted); padding: 16px; margin: 0; }
.pp-detail .btn { align-self: flex-start; }
@media (max-width: 860px) { .pp-split { grid-template-columns: 1fr; } .pp-list { max-height: 50vh; } .pp-kpis { grid-template-columns: repeat(2, 1fr); } .pp-detail { position: static; } .pp-dl { grid-template-columns: 120px 1fr; } }
.needs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.needs-list a { display: flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none; padding: 6px 8px; border-radius: 10px; }
.needs-list a:hover { background: rgba(255,255,255,0.07); }
.needs-list b { font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 28px; } .needs-list span { color: var(--muted); font-size: 14px; }
.tile.needs > div p { margin: 0; color: var(--muted); font-size: 14px; }
/* Phone: while the menu drawer is open, H-AI-LEY steps out of the way so she never covers the logo or the menu. */
@media (max-width: 860px) { .nav.open ~ .dock { opacity: 0; visibility: hidden; pointer-events: none; } .dock { transition: opacity .2s ease; } }

/* Design polish 1 (Nov 29): readable placeholders, Home leads with what needs you, the dock never hides the last row */
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.view { padding-bottom: 24px; }
@media (max-width: 860px) {
  .view { padding-bottom: 110px; }
  .tile.halo-soon { display: none; }
  .segs { scrollbar-width: none; }
  .segs::-webkit-scrollbar { display: none; }
}
:focus-visible { outline: 2px solid rgba(79,176,236,.75); outline-offset: 2px; }

/* Design polish 2 (Nov 29): one breadcrumb on every page, a calm Private pill, tab rows that never hide a tab on phones */
.shell-crumbs { margin: 0 4px -10px; }
.env { color: #bfe3ff; background: rgba(79,176,236,0.12); border-color: rgba(79,176,236,0.3); }
@media (max-width: 860px) {
  .segs { flex-wrap: wrap; overflow: visible; }
}
/* ── Reports (reports.js): built dashboards shown in a sealed frame ── */
.rp-wrap { display: flex; flex-direction: column; gap: 10px; flex: 1; height: calc(100vh - 150px); min-height: 480px; }
.rp-bar { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.rp-tab { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.rp-tab small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.rp-tab:hover { background: rgba(255,255,255,.08); }
.rp-tab.on { background: var(--blue-l, #4aa8e8); color: #fff; } .rp-tab.on small { color: rgba(255,255,255,.85); }
.rp-tab:focus-visible { outline: 2px solid var(--blue-l, #4aa8e8); outline-offset: 2px; }
.rp-sp { flex: 1; } .rp-load { padding: 8px 12px; color: var(--muted); }
.rp-box { min-height: calc(100vh - 230px); }
.rp-box > .note, .rp-box > .or-empty { margin: 24px; }
@media (max-width: 860px) { .rp-wrap { height: calc(100vh - 130px); } }

/* == issues (Operations > Issues and Report a problem) == */
.fi-topbtn { gap: 8px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 860px) { .fi-topbtn span { display: none; } .fi-topbtn { padding: 10px; } }
.fi-sheet, .fi-detail { gap: 10px; }
.fi-sheet h3, .fi-detail h3 { margin: 0; }
.fi-lbl { font-size: 13px; font-weight: 700; color: var(--muted); margin: 4px 0 0; }
.fi-in { font: inherit; color: var(--text); background: rgba(255,255,255,.07); border: 1px solid var(--edge); border-radius: 12px; padding: 10px 12px; width: 100%; }
.fi-in::placeholder { color: rgba(235,242,250,.42); }
select.fi-in option { color: #111; }
textarea.fi-in { resize: vertical; min-height: 84px; }
.fi-home { position: relative; }
.fi-homes { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 3; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: #15223a; border: 1px solid var(--edge); max-height: 260px; overflow: auto; box-shadow: var(--shadow); }
.fi-homes li { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.fi-homes li:hover, .fi-homes li:focus { background: rgba(79,176,236,.18); outline: none; }
.fi-homes .fi-none { color: var(--muted); cursor: default; }
.fi-types { display: flex; flex-wrap: wrap; gap: 8px; }
.fi-type { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--edge); border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 40px; }
.fi-type[aria-checked="true"] { background: rgba(22,134,203,.45); border-color: rgba(79,176,236,.8); }
.fi-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.fi-photo { cursor: pointer; }
.fi-urg { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.fi-urg input { width: 18px; height: 18px; accent-color: var(--amber); }
.fi-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.fi-thumb { position: relative; margin: 0; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid var(--edge); display: block; }
.fi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fi-thumb button { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 999px; width: 24px; height: 24px; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; }
.fi-note { color: var(--muted); font-size: 14px; margin: 4px 0; }
.fi-note.ok { color: #8ff0d6; }
.fi-route { margin: 0; font-size: 14px; color: #bfe3ff; min-height: 1em; }
.fi-dlist { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.fi-d { width: 100%; text-align: left; font: inherit; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.fi-d small { color: var(--muted); }
.fi-d.on { border-color: var(--gold); background: rgba(242,197,92,.14); }
.fi-d.on::after { content: "Same problem: your report will be linked to this"; font-size: 12px; color: var(--gold); }
.fi-page { display: grid; gap: 16px; }
.fi-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.fi-top h1 { margin: 0; } .fi-sub { margin: 4px 0 0; color: var(--muted); }
.fi-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fi-kpis .tile { min-height: 0; padding: 14px 16px; gap: 2px; } .fi-kpis b { font-size: 28px; } .fi-kpis span { color: var(--muted); font-size: 13px; }
.fi-kpis .warn b { color: var(--amber); }
.fi-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.fi-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.fi-tabs button { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--edge); border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.fi-tabs button[aria-selected="true"] { background: rgba(22,134,203,.45); border-color: rgba(79,176,236,.8); }
.fi-tabs span { opacity: .7; margin-left: 4px; }
.fi-filters { display: flex; gap: 8px; } .fi-filters .fi-in { width: auto; min-width: 150px; }
.fi-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.fi-list { display: grid; gap: 8px; }
.fi-item { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; font: inherit; color: var(--text); border-radius: 16px; padding: 12px 14px; cursor: pointer; border: 1px solid var(--edge); }
.fi-item.late { border-color: rgba(245,168,69,.6); }
.fi-item small, .fi-meta small { color: var(--muted); display: block; font-size: 12.5px; margin-top: 2px; }
.fi-main { min-width: 0; } .fi-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-meta { text-align: right; }
.fi-u { align-self: stretch; border-radius: 4px; background: rgba(255,255,255,.2); }
.fi-u.u-urgent { background: #ff7a6b; } .fi-u.u-high { background: var(--amber); } .fi-u.u-normal { background: var(--blue-l); } .fi-u.u-low { background: rgba(255,255,255,.25); }
.fi-st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.1); white-space: nowrap; }
.fi-st.s-new { background: rgba(242,197,92,.2); color: var(--gold); } .fi-st.s-assigned, .fi-st.s-in_progress { background: rgba(79,176,236,.2); color: #bfe3ff; }
.fi-st.s-waiting { background: rgba(201,182,255,.2); color: #d9ccff; } .fi-st.s-closed { background: rgba(143,240,214,.18); color: #8ff0d6; }
.fi-bw { min-height: 0; } .fi-bw h3 { margin: 0; }
.fi-bw ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fi-bw a { display: grid; gap: 2px; color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.fi-bw a:hover { background: rgba(79,176,236,.14); } .fi-bw small { color: var(--muted); }
.fi-text { white-space: pre-wrap; margin: 0; background: rgba(255,255,255,.05); border-radius: 12px; padding: 10px 12px; }
.fi-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--muted); } .fi-facts a { color: #bfe3ff; }
.fi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fi-grid label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--muted); } .fi-grid .fi-wide { grid-column: 1 / -1; }
.fi-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fi-wo { font-size: 13px; color: #bfe3ff; }
.fi-hist summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.fi-hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; } .fi-hist code { font-size: 11.5px; opacity: .75; word-break: break-all; }
.fi-mine { min-height: 0; } .fi-mine-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .fi-mine-h h3 { margin: 0; }
.fi-mine-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fi-mine-i { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.fi-mine-i small { display: block; color: var(--muted); font-size: 12.5px; } .fi-mine-i .fi-closed { color: #8ff0d6; }
@media (max-width: 860px) {
  .fi-cols { grid-template-columns: 1fr; } .fi-kpis { grid-template-columns: repeat(2, 1fr); }
  .fi-grid { grid-template-columns: 1fr; } .fi-filters { width: 100%; } .fi-filters .fi-in { flex: 1; min-width: 0; }
  .fi-item { grid-template-columns: 6px minmax(0, 1fr); } .fi-meta { grid-column: 2; text-align: left; }
  .fi-wrap { padding: 0; place-items: end stretch; } .fi-wrap .modal { border-radius: 22px 22px 0 0; max-height: 94vh; width: 100%; }
}

/* Category pages: sections still coming sit in one quieter row */
.soon-row .chip { opacity: .78; }
/* == Design and flow: H-AI-LEY dock (Nov 29) == one H-AI-LEY on Home, and she glides to the nearest side after a drag */
body.on-home .dock { opacity: 0; visibility: hidden; pointer-events: none; }
.dock { transition: right .32s cubic-bezier(.2,.9,.25,1.15), bottom .32s cubic-bezier(.2,.9,.25,1.15), opacity .2s ease; }
.dock.dragging { transition: none; }
.dock.left { align-items: flex-start; }
.dock.left .dock-say { margin: 0 0 -6px 12px; }
.dock.left .dock-say::after { right: auto; left: 44px; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }


/* == guest reviews == */
.rv-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.rv-muted { color: var(--muted); font-size: 13px; }
.rv-h2 { font-size: 19px; margin: 26px 0 12px; }
.rv-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.rv-fig { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--edge); min-width: 0; }
.rv-fig figcaption { font-weight: 700; font-size: 14px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.rv-fig svg { width: 100%; height: auto; display: block; }
.rv-key { font-weight: 500; font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 4px; }
.rv-grid { stroke: rgba(255,255,255,.10); stroke-width: 1; }
.rv-ax { fill: rgba(235,242,250,.62); font-size: 13px; font-family: inherit; }
.rv-hit:hover rect[rx] { filter: brightness(1.2); }
.rv-table summary { cursor: pointer; font-size: 12px; color: var(--muted); margin-top: 8px; }
.rv-table table { width: 100%; font-size: 13px; border-collapse: collapse; margin-top: 6px; }
.rv-table td, .rv-table th { text-align: left; padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.rv-themes { display: flex; flex-direction: column; gap: 7px; }
.rv-trow { display: grid; grid-template-columns: minmax(110px, 1.1fr) 1fr 1fr; gap: 6px; align-items: center; font-size: 13px; }
.rv-tl small { color: var(--muted); font-size: 10px; border: 1px solid var(--edge); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.rv-tneg, .rv-tpos { display: flex; align-items: center; gap: 6px; height: 14px; }
.rv-tneg { flex-direction: row-reverse; }
.rv-tneg b, .rv-tpos b { display: block; height: 10px; border-radius: 4px; min-width: 0; }
.rv-tneg em, .rv-tpos em { font-style: normal; font-size: 11px; color: var(--muted); }
.rv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.rv-card { border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rv-card.low { box-shadow: inset 3px 0 0 #e8704f; }
.rv-card header { display: flex; flex-direction: column; gap: 2px; }
.rv-card details summary { cursor: pointer; font-size: 13px; color: #9fd6f8; }
.rv-card details p { font-size: 14px; line-height: 1.5; margin: 6px 0 0; white-space: pre-wrap; }
.rv-sum { margin: 0; font-size: 14px; line-height: 1.45; }
.rv-stars { color: #F2C55C; letter-spacing: 1px; font-size: 14px; } .rv-stars i { font-style: normal; color: rgba(255,255,255,.18); }
.rv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-chip { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.rv-chip.k { text-transform: capitalize; }
.rv-chip.pos { color: #a9dcff; border-color: rgba(58,166,230,.45); background: rgba(58,166,230,.12); }
.rv-chip.neg { color: #ffc0ad; border-color: rgba(232,112,79,.5); background: rgba(232,112,79,.13); }
.rv-home-link { font: inherit; font-size: 13px; font-weight: 700; color: #9fd6f8; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.rv-ops { display: grid; gap: 8px; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.18); }
.rv-ops ul, .rv-open ul { margin: 4px 0 0; padding-left: 18px; } .rv-ops p { margin: 4px 0 0; }
.rv-ops a, .rv-open a { color: #9fd6f8; }
.rv-open { border-radius: 18px; padding: 14px 16px; margin: 14px 0; font-size: 14px; }
.rv-homes { border-radius: 18px; padding: 6px; overflow: hidden; }
.rv-hrow { display: grid; grid-template-columns: minmax(0, 2.2fr) 60px 80px 80px 44px minmax(0, 2fr); gap: 10px; align-items: center; width: 100%;
  font: inherit; font-size: 14px; color: inherit; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding: 10px 10px; cursor: pointer; }
.rv-hrow:hover { background: rgba(255,255,255,.05); }
.rv-hh { cursor: default; font-size: 12px; color: var(--muted); font-weight: 700; } .rv-hh:hover { background: none; }
.rv-hn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-hrow small { color: var(--muted); }
.rv-up { color: #8ff0d6; font-size: 13px; } .rv-down { color: #ffb39a; } .rv-flat { color: var(--muted); font-size: 13px; }
#rv-back { margin-bottom: 4px; }
@media (max-width: 900px) {
  .rv-grid2 { grid-template-columns: 1fr; }
  .rv-hrow { grid-template-columns: minmax(0, 1fr) 52px 70px; }
  .rv-hrow > :nth-child(4), .rv-hrow > :nth-child(5) { display: none; }
  .rv-hrow > :nth-child(6) { grid-column: 1 / -1; }
  .rv-hh > :nth-child(6) { display: none; }
  .rv-cards { grid-template-columns: 1fr; }
}
/* == owner-360 == */
.o3-private { margin: 6px 0 14px; }
.o3-kpis { display: grid; gap: 12px; margin-bottom: 14px; }
.o3-hot b { color: #8ff0d6; }
.o3-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.o3-detail { position: static; min-width: 0; }
.o3-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.o3-badges .kpill, .o3-kind .kpill { font-size: 11.5px; }
.kpill.o3-b-done { background: rgba(32,190,160,.18); border-color: rgba(32,190,160,.55); color: #8ff0d6; }
.o3-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.o3-viewtog { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.o3-viewtog .btn.on { background: rgba(22,134,203,.4); border-color: rgba(92,189,245,.8); }
.o3-pv { margin: 0; }
.o3-homes, .o3-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.o3-callout { border-radius: 14px; padding: 10px 14px; background: rgba(32,190,160,.12); border: 1px solid rgba(32,190,160,.4); font-size: 14px; }
.o3-n { display: inline-block; min-width: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--text); font-size: 12px; text-align: center; letter-spacing: 0; }
.o3-asks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.o3-asks li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); }
.o3-asks small { color: var(--muted); font-size: 12.5px; }
.o3-tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
.o3-ev { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 10px 0 12px; border-left: 2px solid rgba(255,255,255,.12); padding-left: 14px; position: relative; }
.o3-ev::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #5cbdf5; box-shadow: 0 0 0 3px rgba(0,0,0,.35); }
.o3-ev.t-done::before { background: #20BEA0; } .o3-ev.t-answer::before { background: #b79cff; } .o3-ev.t-work::before { background: #ffd08a; } .o3-ev.t-mx::before { background: rgba(235,242,250,.5); }
.o3-when { color: var(--muted); font-size: 12.5px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.o3-what { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.o3-kind { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.o3-mod { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); }
.o3-mod::before { content: "· "; }
.o3-title { font-weight: 700; overflow-wrap: anywhere; }
.o3-det { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.o3-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; align-items: center; }
.o3-photos a { display: block; width: 84px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); }
.o3-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.o3-more { color: var(--muted); font-size: 13px; }
.o3-what .linkish { align-self: flex-start; font-size: 13px; }
@media (max-width: 860px) { .o3-split { grid-template-columns: 1fr; } .o3-ev { grid-template-columns: 1fr; gap: 2px; } .o3-photos a { width: 72px; height: 56px; } }

/* == accessibility (shell) == */
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: #0f2440; color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; outline: 3px solid #4FB0EC; outline-offset: 2px; }
#view:focus { outline: none; }

/* == executive dashboard (site/exec.js, key finance/executive) == */
.ex { display: flex; flex-direction: column; gap: 16px; }
.ex-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 4px 4px 0; }
.ex-head h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: .2px; }
.ex-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.ex-head-acts { display: flex; align-items: center; gap: 10px; }
.ex-fresh { color: var(--muted); font-size: 12.5px; }
.ex-card { border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.ex-card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.ex-card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ex-card-h h2 { margin: 0; }
.ex-card .link { color: var(--blue-l); text-decoration: none; font-size: 13px; font-weight: 600; } .ex-card .link:hover { text-decoration: underline; }
.ex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ex-wide { grid-column: 1 / -1; }
.ex-basis { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.ex-empty { color: var(--muted); margin: 6px 0; }
.ex-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.22); border: 1px solid var(--edge); }
.ex-seg button { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 7px 12px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.ex-seg button[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, #5cbdf5 0%, #1686CB 60%, #1173b0 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.ex-seg button:focus-visible { outline: 3px solid rgba(79,176,236,.6); outline-offset: 1px; }
.ex-kpi-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ex-kpi { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ex-kpi > span { color: var(--muted); font-size: 12.5px; }
.ex-kpi > b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.ex-kpi > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ex-kpi em { font-style: normal; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ex-kpi small { color: var(--muted); font-size: 11.5px; }
.ex-chip { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-chip.up { background: rgba(111,227,198,.16); color: #8ff0d6; } .ex-chip.down { background: rgba(255,154,128,.16); color: #ffb39a; }
.ex-att ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ex-att li { display: flex; align-items: center; gap: 10px; }
.ex-att li i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #a9dcff; }
.ex-att li.lv-bad i { background: #ff9a80; box-shadow: 0 0 10px rgba(255,154,128,.7); } .ex-att li.lv-warn i { background: #ffd08a; }
.ex-att a { color: var(--text); text-decoration: none; line-height: 1.4; } .ex-att a:hover { text-decoration: underline; }
.ex-att.ok p { margin: 0; color: var(--muted); }
.ex-chart { width: 100%; height: auto; display: block; }
.ex-chart text { fill: var(--muted); font: 600 11px Quicksand, system-ui, sans-serif; }
.ex-chart .t-up { fill: #8ff0d6; } .ex-chart .t-down { fill: #ffb39a; }
.ex-chart .b-ty { fill: #1686CB; } .ex-chart .b-ly { fill: rgba(255,255,255,.18); } .ex-chart .b-final { stroke: #ffd08a; stroke-width: 2; stroke-dasharray: 4 3; }
.ex-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.ex-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ex-legend .l-ty::before { background: #1686CB; } .ex-legend .l-ly::before { background: rgba(255,255,255,.18); } .ex-legend .l-final::before { height: 0; border-top: 2px dashed #ffd08a; border-radius: 0; vertical-align: 3px; }
.ex-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ex-table th, .ex-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
.ex-table thead th { color: var(--muted); font-size: 12px; font-weight: 600; }
.ex-table td small { display: block; color: var(--muted); font-size: 11.5px; }
.ex-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ex-mini > div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.ex-mini b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; } .ex-mini span { color: var(--muted); font-size: 12px; }
.ex-mini .bad b { color: #ffb39a; } .ex-mini .warn b { color: #ffd08a; }
.ex-risk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ex-risk li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.035); }
.ex-risk b { display: block; } .ex-risk small { color: var(--muted); font-size: 12px; } .ex-risk p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: rgba(235,242,250,.85); }
.ex-lvl { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin-top: 2px; }
.ex-lvl.high { background: rgba(255,154,128,.18); color: #ffb39a; } .ex-lvl.watch { background: rgba(255,208,138,.16); color: #ffd08a; }
.ex-big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; } .ex-big b { font-size: 34px; font-variant-numeric: tabular-nums; } .ex-big span { color: var(--muted); font-size: 13px; }
.ex-facts { list-style: none; margin: 0; padding: 0; }
.ex-facts li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.ex-facts li:last-child { border-bottom: 0; } .ex-facts span { color: rgba(235,242,250,.82); }
.ex-facts b { font-variant-numeric: tabular-nums; white-space: nowrap; } .ex-facts small { color: var(--muted); font-weight: 500; }
.ex-facts .warn { color: #ffd08a; } .ex-facts .bad { color: #ffb39a; }
.ex-rag, .ex-mix { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin-bottom: 8px; }
.ex-rag i, .ex-mix i { display: block; min-width: 4px; }
.r-g { background: #6fe3c6; color: #8ff0d6; } .r-a { background: #ffd08a; color: #ffd08a; } .r-r { background: #ff9a80; color: #ffb39a; } .r-n { background: rgba(255,255,255,.25); color: var(--muted); }
.ex-rag-l { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; margin-bottom: 8px; } .ex-rag-l span { background: none; font-weight: 600; }
.ex-flag { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.ex-flag li { display: flex; align-items: baseline; gap: 8px; font-size: 13.5px; flex-wrap: wrap; } .ex-flag small { color: var(--muted); }
.ex-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.ex-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.ex-src { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12px; color: var(--muted); padding: 0 4px 8px; }
.ex-src .ok::before, .ex-src .bad::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #6fe3c6; }
.ex-src .bad::before { background: #ff9a80; } .ex-src .link { color: var(--blue-l); text-decoration: none; font-weight: 600; margin-left: auto; }
.ex-skel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ex-skel > div { height: 140px; border-radius: var(--radius); animation: ex-pulse 1.6s ease-in-out infinite; }
.ex-loading { color: var(--muted); margin: 0 4px; }
@keyframes ex-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* Home strip */
.ex-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 20px; gap: 12px; align-items: center; border-radius: var(--radius); padding: 14px 18px; margin: 0 0 16px; color: inherit; text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
.ex-strip:hover { transform: translateY(-1px); border-color: rgba(92,189,245,.6); }
.ex-strip > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ex-strip span { color: var(--muted); font-size: 12px; } .ex-strip b { font-size: 22px; font-variant-numeric: tabular-nums; }
.ex-strip em { font-style: normal; color: var(--muted); font-size: 12px; } .ex-strip .ex-chip { align-self: flex-start; }
.ex-go { font-style: normal; font-size: 26px; color: var(--muted); }
@media (max-width: 1180px) { .ex-kpi-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ex-grid { grid-template-columns: 1fr; } .ex-risk { grid-template-columns: 1fr; } .ex-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ex-skel { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ex-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-kpi > b { font-size: 22px; } .ex-card { padding: 16px; }
  .ex-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-go { display: none; } .ex-head h1 { font-size: 24px; } .ex-src .link { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .ex-skel > div { animation: none; } .ex-strip { transition: none; } }
.ex-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ex-chart { max-height: 300px; }
.ex-verdict { font-size: 20px; font-weight: 700; margin: 4px 0 14px; } .ex-verdict.good { color: #8ff0d6; } .ex-verdict.bad { color: #ffb39a; }
.ex-stale { background: rgba(255,179,154,.14); border: 1px solid rgba(255,179,154,.45); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 14px; font-size: 13.5px; }
.ex-fresh { color: var(--muted); font-size: 12.5px; } .ex-fresh.warn { color: #ffd08a; font-weight: 600; }
.ex-skel { display: flex; flex-direction: column; gap: 16px; }
.ex-skel > div, .ex-skel .s-row > div { border-radius: var(--radius); animation: ex-pulse 1.6s ease-in-out infinite; }
.ex-skel > .s-line { height: 56px; } .ex-skel > .s-row { height: auto; animation: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ex-skel .s-row > div { height: 96px; } .ex-skel > .s-chart { height: 240px; }
.ex-chart .b-base { stroke: rgba(255,255,255,.35); stroke-width: 1; } .ex-chart .b-ly { fill: rgba(255,255,255,.30); stroke: rgba(255,255,255,.45); stroke-width: 1; }
.ex-mini { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.ex-kpi-row > .ex-kpi:nth-child(-n+2) > b { font-size: 30px; }
@media (max-width: 860px) { .ex-mini { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); } .ex-skel .s-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ex-seg { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .ex-seg button { min-height: 44px; white-space: nowrap; }
  .ex-skel .s-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-kpi-row > .ex-kpi:nth-child(-n+2) > b { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .ex-skel .s-row > div { animation: none; } }
/* ── HALO live data modules (live.js) ── */
.lv-src { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 16px; font-size: 13px; color: var(--muted); }
.lv-s { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--edge); background: rgba(255,255,255,.04); }
.lv-s i { width: 8px; height: 8px; border-radius: 50%; background: #6c7a8c; }
.lv-s.ok i { background: #3ccf8e; } .lv-s.off i { background: var(--amber); }
.lv-upd { margin-left: auto; }
.lv-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 18px; }
.lv-kpi { padding: 14px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; }
.lv-kpi b { font-size: 26px; font-weight: 700; } .lv-kpi span { color: var(--muted); font-size: 13px; }
.lv-kpi.t-good b { color: #5fe0a5; } .lv-kpi.t-warn b { color: var(--gold); } .lv-kpi.t-bad b { color: #ff8a80; }
.lv-sec { margin: 0 0 22px; } .lv-sec h2 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.lv-tw { border-radius: 16px; overflow-x: auto; }
.lv-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.lv-t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.lv-t td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; }
.lv-t tr:last-child td { border-bottom: 0; }
.lv-t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lv-t small, .lv-sm { color: var(--muted); font-size: 12px; }
.lv-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--edge); white-space: nowrap; }
.lv-tag.t-good { background: rgba(60,207,142,.16); border-color: rgba(60,207,142,.45); color: #8ff0c2; }
.lv-tag.t-warn { background: rgba(242,197,92,.14); border-color: rgba(242,197,92,.45); color: var(--gold); }
.lv-tag.t-bad { background: rgba(255,120,110,.14); border-color: rgba(255,120,110,.45); color: #ffb0a8; }
.lv-none { color: var(--muted); margin: 6px 2px 14px; }
.lv-nc { margin: 0 0 18px; }
.lv-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 600px) { .lv-upd { margin-left: 0; width: 100%; } .lv-kpi b { font-size: 22px; } }
/* Phones: every live table becomes a stack of cards, first column as the card title, other cells labelled. */
@media (max-width: 600px) {
  .lv-tw { overflow: visible; }
  .lv-t thead { display: none; }
  .lv-t, .lv-t tbody, .lv-t tr { display: block; width: 100%; }
  .lv-t tr { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .lv-t tr:last-child { border-bottom: 0; }
  .lv-t td { display: grid; grid-template-columns: 36% 1fr; gap: 10px; padding: 3px 0; border: 0 !important; text-align: left; min-width: 0; overflow-wrap: anywhere; }
  .lv-t td.num { text-align: left; white-space: normal; }
  .lv-t td::before { content: attr(data-l); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; padding-top: 3px; }
  .lv-t td:first-child, .lv-t td[data-l=""] { display: block; }
  .lv-t td:first-child { font-size: 15px; padding-bottom: 6px; }
  .lv-t td:first-child::before, .lv-t td[data-l=""]::before { content: none; }
  .lv-t td:has(> .lv-c:empty) { display: none; }
  .lv-t .lv-c { min-width: 0; }
  .lv-sec h2 { flex-wrap: wrap; }
}



/* == accessibility (contrast) == */
/* Bolt, Nov 29 2026: white text needs 4.5:1. #1686CB under white text is 3.96:1, so filled controls use a slightly deeper
   blue at rest (#1478b8 behind the text, 4.76:1) and keep the brand #1686CB gloss on hover. The current menu item keeps #1686CB (Iris). */
.btn.primary, .btn.primary-s, .btn.send-email:not(:disabled), .msg-row .msg .btn {
  background: linear-gradient(180deg, #4aa8e4 0%, #1a7fc2 46%, #1478b8 54%, #0f6aa3 100%); text-shadow: 0 1px 1px rgba(0,40,80,.35); }
.btn.primary:hover, .btn.primary-s:hover, .btn.send-email:not(:disabled):hover, .msg-row .msg .btn:hover {
  background: linear-gradient(180deg, #5cbdf5 0%, #2496dc 48%, #1686CB 52%, #1173b0 100%); }
.msg-row.me .msg { background: linear-gradient(180deg, #1a7fc2, #1173b0); }
.seg.on { background: linear-gradient(180deg, rgba(42,143,208,.97), rgba(17,115,176,.97)); }
.rp-tab.on { background: #1173b0; }
.ch-email b, .pv-label.ch-email { background: #1173b0; }
.ch-text b, .pv-label.ch-text { background: #127a78; }
.btn.send-sms:not(:disabled) { background: linear-gradient(180deg, #2fb497 0%, #138a74 50%, #127a78 100%); text-shadow: 0 1px 1px rgba(0,50,40,.35); }
.ch-bad b, .seg.seg-bad i, .fu-count.r { background: #c0442a; }
/* Form fields need a 3:1 border against the panel (was 1.6 to 1.8:1). */
.ask-form input, .fu-filters input, .fu-filters select, .fu-field select, .fu-field textarea, .pp-in { border-color: rgba(255,255,255,.42); }

/* == revenue == */
/* Owner Success > Revenue analytics (revenue.js). Prefix rva- because rv- is already used by Guest reviews. */
.rva-ctl { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; margin: 0 0 8px; }
.rva-grp { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.rva-opts { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; flex: 1 1 100%; }
.rva-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.rva-ctl .seg { padding: 7px 13px; }
.rva-ctl .seg:focus-visible, .rva-tog:focus-visible, .rva-chk input:focus-visible, .rva-q:focus-visible, .rva-table button:focus-visible, .rva-m:focus-visible, .rva-x:focus-visible { outline: 3px solid rgba(79,176,236,.6); outline-offset: 2px; }
.rva-tog { font: inherit; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 6px 4px; cursor: pointer; border-radius: 999px; }
.rva-tog:disabled { opacity: .5; cursor: default; }
.rva-sw { width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid var(--edge); position: relative; transition: background .2s ease; flex: none; }
.rva-sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s ease; }
.rva-tog[aria-pressed="true"] .rva-sw { background: linear-gradient(180deg, #5cbdf5, #1686CB); }
.rva-tog[aria-pressed="true"] .rva-sw::after { transform: translateX(16px); }
.rva-chk { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; cursor: pointer; }
.rva-chk input { width: 18px; height: 18px; accent-color: #1686CB; }
.rva-q { font: inherit; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 9px 14px; flex: 1; min-width: 180px; max-width: 340px; margin-left: auto; }
.rva-period { color: var(--muted); font-size: 13px; margin: 4px 4px 16px; line-height: 1.45; }
.rva-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.rva-kpi { border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rva-kl { font-size: 12.5px; color: var(--muted); font-weight: 600; } .rva-kl small { display: block; font-weight: 500; font-size: 11px; }
.rva-kpi > b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.rva-ks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .rva-ks small { font-size: 12px; }
.rva-chip { display: inline-flex; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rva-chip.up { color: #8ff0d6; background: rgba(32,190,160,.14); border-color: rgba(32,190,160,.4); }
.rva-chip.down { color: #ffd08a; background: rgba(245,168,69,.14); border-color: rgba(245,168,69,.42); }
.rva-chip.flat { color: var(--muted); background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.rva-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rva-cards.narrow { grid-template-columns: minmax(0, 1fr); }
.rva-card { border-radius: var(--radius); padding: 16px 18px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rva-card.wide { grid-column: 1 / -1; }
.rva-card h3 { margin: 0; font-size: 16px; font-weight: 700; }
.rva-ch { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 14px; }
.rva-cap { margin: 0; color: var(--muted); font-size: 13px; } .rva-cap b { color: var(--text); }
.rva-none { color: var(--muted); font-size: 14px; margin: 6px 0; }
.rva-foot { color: var(--muted); font-size: 12.5px; margin: 6px 2px 0; }
.rva-muted { color: var(--muted); }
.rva-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.rva-legend span, .rva-tip span { display: inline-flex; align-items: center; gap: 6px; }
.rva-legend i, .rva-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.rva-legend i.cur, .rva-tip i.cur { background: #338ced; } .rva-legend i.cur.fut { background: rgba(51,140,237,.45); box-shadow: inset 0 0 0 1px #338ced; }
.rva-legend i.ghost, .rva-tip i.ghost { background: rgba(255,255,255,.26); } .rva-legend i.obk { background: rgba(51,140,237,.35); }
.rva-legend i.tick { width: 3px; height: 12px; border-radius: 1px; background: #f3f7fb; }
.rva-chart { position: relative; width: 100%; min-height: 210px; }
.rva-chart svg { display: block; overflow: visible; }
.rva-grid { stroke: rgba(255,255,255,.1); stroke-width: 1; }
.rva-ax { fill: rgba(235,242,250,.62); font-size: 11px; font-family: inherit; font-variant-numeric: tabular-nums; }
.rva-hit { fill: transparent; }
.rva-m { cursor: default; outline: none; } .rva-m:hover .rva-hit, .rva-m:focus .rva-hit { fill: rgba(255,255,255,.06); }
.rva-cur { fill: #338ced; } .rva-cur.fut { fill: rgba(51,140,237,.45); stroke: #338ced; stroke-width: 1; }
.rva-ghost { fill: rgba(255,255,255,.26); }
.rva-tip { position: absolute; top: 0; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; padding: 9px 12px; border-radius: 12px; white-space: nowrap;
  background: rgba(12,20,36,.94); border: 1px solid var(--edge); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.rva-tip small { color: var(--muted); } .rva-tip .rva-chip { align-self: flex-start; margin-top: 2px; }
.rva-pl { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.rva-cap + .rva-pl { border-top: 0; padding-top: 4px; }
.rva-pl > b { font-size: 24px; font-variant-numeric: tabular-nums; } .rva-pl > small { font-size: 12px; }
.rva-stack { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; margin: 4px 0 6px; }
.rva-stack i { display: block; min-width: 3px; }
.rva-sw2 { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.rva-tw { position: relative; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.rva-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rva-table th, .rva-table td { padding: 10px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid rgba(255,255,255,.07); }
.rva-table .txt, .rva-table tbody th { text-align: left; }
.rva-table tbody th { font-weight: 600; }
.rva-table thead th { font-size: 12px; color: var(--muted); font-weight: 700; padding-top: 4px; }
.rva-table thead th button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 2px; cursor: pointer; border-radius: 6px; display: inline-flex; gap: 4px; align-items: center; }
.rva-table thead th[aria-sort="ascending"] button, .rva-table thead th[aria-sort="descending"] button { color: var(--text); }
.rva-table thead th button span { font-size: 9px; color: #5cbdf5; }
.rva-table tbody tr[data-pick] { cursor: pointer; } .rva-table tbody tr[data-pick]:hover { background: rgba(255,255,255,.05); }
.rva-table tbody tr.on { background: rgba(79,176,236,.16); }
.rva-table.small { font-size: 13px; } .rva-table.small th, .rva-table.small td { padding: 8px 8px; }
.rva-rowbtn { font: inherit; font-weight: 600; color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.rva-rowbtn:hover { color: #9fd6f8; }
.rva-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.rva-tablecard { border-radius: var(--radius); padding: 8px 10px 10px; min-width: 0; }
.rva-detail { display: none; min-width: 0; flex-direction: column; gap: 12px; }
.rva-split.has-pick .rva-detail { display: flex; }
.rva-detail .rva-kpis { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 0; }
.rva-detail .rva-kpi > b { font-size: 20px; }
.rva-dhead { border-radius: var(--radius); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rva-dhead h2 { margin: 2px 0 4px; font-size: 20px; } .rva-dhead p { margin: 0; font-size: 13px; }
.rva-dhead .rva-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold); }
.rva-x { font: inherit; font-size: 22px; line-height: 1; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--edge); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none; }
.rva-ask { align-self: flex-start; }
.rva-dist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rva-dist li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 82px; gap: 10px; align-items: center; font-size: 13px; }
.rva-dl { color: var(--muted); white-space: nowrap; }
.rva-track { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.07); }
.rva-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #338ced; }
.rva-track b { position: absolute; top: -3px; width: 3px; height: 16px; margin-left: -1.5px; border-radius: 1px; background: #f3f7fb; box-shadow: 0 0 0 2px rgba(12,20,36,.85); }
.rva-dv { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .rva-dv small { color: var(--muted); margin-left: 4px; }
.rva-pf { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.rva-pf li { display: flex; flex-direction: column; gap: 5px; }
.rva-pfh { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; } .rva-pfh span { font-variant-numeric: tabular-nums; white-space: nowrap; } .rva-pfh small { color: var(--muted); }
.rva-pf > li > small { font-size: 12px; }
.rva-prog { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.rva-prog i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.rva-prog i.ob { background: rgba(51,140,237,.35); } .rva-prog i.ytd { background: #338ced; }
@media (min-width: 1180px) {
  .rva-split.has-pick { grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); }
  .rva-split.has-pick .rva-tablecard { position: sticky; top: 12px; }
}
@media (max-width: 860px) {
  .rva-cards { grid-template-columns: minmax(0, 1fr); }
  .rva-kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .rva-opts { flex-basis: 100%; }
  .rva-q { margin-left: 0; max-width: none; }
}
@media (max-width: 560px) {
  .rva-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rva-kpi { padding: 12px 13px; } .rva-kpi > b { font-size: 19px; }
  .rva-card { padding: 14px 14px; }
  .rva-dist li { grid-template-columns: 92px minmax(0, 1fr) 74px; gap: 8px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .rva-sw, .rva-sw::after { transition: none; } }
/* revenue: owner health */
.rva-hp { display: inline-flex; min-width: 34px; justify-content: center; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid; font-variant-numeric: tabular-nums; }
.rva-hp.healthy { color: #8ff0d6; background: rgba(32,190,160,.14); border-color: rgba(32,190,160,.4); }
.rva-hp.watch { color: #ffd08a; background: rgba(245,168,69,.14); border-color: rgba(245,168,69,.42); }
.rva-hp.at_risk { color: #ffb4b4; background: rgba(240,90,90,.16); border-color: rgba(240,90,90,.45); }
.rva-reasons { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.rva-watch { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rva-watch li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rva-watch li .rva-muted { flex: 1 1 220px; font-size: 13px; }
/* == listing health == */
.lh-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.lh-head h1 { margin: 0 0 4px; } .lh-head .sub { max-width: 640px; }
.lh-title { display: flex; gap: 16px; align-items: center; } .lh-dates { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.lh-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.lh-kpis { margin-bottom: 12px; }
.lh-ring { --c: #8aa0bf; width: var(--sz); height: var(--sz); flex: 0 0 var(--sz); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); position: relative; }
.lh-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #1d2a3a; }
.lh-ring b { position: relative; font-size: calc(var(--sz) * .34); }
.lh-good { --c: #20bea0; } .lh-ok { --c: #f2c55c; } .lh-bad { --c: #ef7b5b; } .lh-none { --c: #8aa0bf; }
.lh-list { padding: 6px; display: flex; flex-direction: column; }
.lh-row { display: flex; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; color: inherit; text-decoration: none; }
.lh-row:hover, .lh-row:focus-visible { background: rgba(255,255,255,.07); }
.lh-row + .lh-row { border-top: 1px solid rgba(255,255,255,.06); }
.lh-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .lh-main small { color: var(--muted); }
.lh-top { font-size: 13px; display: flex; gap: 6px; align-items: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; } .lh-side small { color: var(--muted); font-size: 12px; } .lh-side em { font-style: normal; font-size: 12px; }
.lh-sev { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; display: inline-block; background: #8aa0bf; margin-top: 6px; }
.lh-sev.high { background: #ef7b5b; } .lh-sev.medium { background: #f2c55c; } .lh-sev.low { background: #4fb0ec; }
.lh-foot { color: var(--muted); font-size: 12px; margin-top: 10px; }
.lh-sec { padding: 16px 18px; margin-bottom: 12px; }
.lh-sec header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .lh-sec h2 { margin: 0; font-size: 18px; flex: 1; } .lh-sec header small { color: var(--muted); }
.lh-bar { width: 120px; height: 8px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; } .lh-bar i { display: block; height: 100%; background: var(--c); }
.lh-meta { color: var(--muted); font-size: 13px; margin: 8px 0; } .lh-meta a { color: var(--blue-l); }
.lh-finds { list-style: none; margin: 8px 0 0; padding: 0; }
.lh-find { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.07); }
.lh-find > div { flex: 1; min-width: 0; } .lh-find p { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; } .lh-find small { color: var(--muted); display: block; margin-top: 4px; }
.lh-find[data-status="done"] b, .lh-find[data-status="wont_fix"] b { text-decoration: line-through; opacity: .7; }
.lh-fix span { color: var(--blue-l); font-weight: 600; } .lh-fix a { color: var(--blue-l); }
.lh-st { width: auto; min-width: 110px; }
.lh-clean { color: #8ff0d6; font-size: 14px; margin: 8px 0 0; }
.lh-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 6px 0; }
.lh-thumbs figure { margin: 0; } .lh-thumbs img, .lh-thumbs span { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; background: rgba(255,255,255,.08); }
.lh-thumbs figcaption { font-size: 11px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; } .lh-cmp h3 { margin: 0 0 6px; font-size: 15px; } .lh-cmp h3 small { color: var(--muted); font-weight: 400; }
.lh-ttl { font-weight: 600; margin: 0 0 6px; } .lh-ttl small { color: var(--muted); font-weight: 400; }
.lh-txt { white-space: pre-wrap; font-size: 14px; line-height: 1.5; max-height: 360px; overflow: auto; padding: 10px; border-radius: 12px; background: rgba(0,0,0,.18); }
.lh-notes { font-size: 13px; color: var(--muted); margin: 8px 0 0; padding-left: 18px; }
.lh-closed { padding: 12px 18px; } .lh-closed summary { cursor: pointer; }
@media (max-width: 700px) {
  .lh-cmp { grid-template-columns: 1fr; } .lh-thumbs { grid-template-columns: repeat(3, 1fr); } .lh-thumbs figure:nth-child(n+4) { display: none; }
  .lh-row { gap: 10px; padding: 10px 6px; } .lh-find { flex-wrap: wrap; } .lh-find > div { flex-basis: calc(100% - 20px); } .lh-st { margin-left: 19px; }
}
/* revenue: on phones mobile.css turns .segs into a full-width grid, so give each control group the full row */
@media (max-width: 860px) { .rva-ctl .rva-grp { flex: 1 1 100%; } .rva-ctl .segs { grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); } }
/* revenue: summer week grid */
.rva-wk td.wk { padding: 3px; text-align: center; font-weight: 700; font-size: 12px; }
.rva-wk td.wk > span[aria-hidden] { display: grid; place-items: center; min-width: 30px; height: 26px; border-radius: 7px; }
.rva-wk td.wk.b > span[aria-hidden] { background: rgba(22,134,203,.85); color: #fff; }
.rva-wk td.wk.o > span[aria-hidden] { background: rgba(167,139,250,.35); color: #e9e2ff; border: 1px solid rgba(167,139,250,.6); }
.rva-wk td.wk.h > span[aria-hidden] { background: rgba(255,255,255,.08); color: var(--muted); border: 1px dashed rgba(255,255,255,.3); }
.rva-wk td.wk.p > span[aria-hidden] { background: rgba(22,134,203,.3); color: #cfe9ff; }
.rva-wk tbody th { position: sticky; left: 0; z-index: 1; background: rgba(14,24,48,.96); min-width: 150px; }
.rva-wkwrap { overflow-x: auto; }
.rva-wklegend { flex-wrap: wrap; }
.rva-wklegend i.wk { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.2); }
.rva-wklegend i.wk.b { background: rgba(22,134,203,.85); border-color: transparent; }
.rva-wklegend i.wk.o { background: rgba(167,139,250,.35); border-color: rgba(167,139,250,.6); }
.rva-wklegend i.wk.h { border-style: dashed; }
.rva-wklegend i.wk.p { background: rgba(22,134,203,.3); border-color: transparent; }

/* == growth and leads == */
.gr-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--edge); margin: 0 0 14px; flex-wrap: wrap; }
.gr-tab { font-weight: 600; color: var(--text); text-decoration: none; padding: 8px 16px; border-radius: 999px; min-height: 20px; }
.gr-tab.on { background: linear-gradient(180deg, rgba(92,189,245,.95), rgba(22,134,203,.95)); color: #fff; }
.gr-list { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; }
.gr-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--edge); }
.gr-row:last-child { border-bottom: 0; } .gr-row:hover { background: rgba(255,255,255,.06); }
.gr-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; } .gr-main small { color: var(--muted); }
.gr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex-shrink: 0; } .gr-side small { color: var(--muted); font-size: 12px; }
.gr-next { font-size: 12.5px; color: var(--muted); } .gr-next.due { color: #ffd08a; font-weight: 600; }
.gr-st { font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.1); white-space: nowrap; }
.gr-lead { background: rgba(159,180,255,.22); } .gr-proforma { background: rgba(201,182,255,.22); } .gr-agreement { background: rgba(255,208,138,.22); color: #ffe2b5; }
.gr-onboarding { background: rgba(92,189,245,.25); } .gr-live { background: rgba(32,190,160,.22); color: #8ff0d6; } .gr-lost { background: rgba(217,87,58,.2); color: #ffb39a; } .gr-none { color: var(--muted); }
.gr-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.gr-card { padding: 16px 18px; border-radius: 18px; min-width: 0; margin-bottom: 14px; } .gr-grid .gr-card { margin-bottom: 0; } .gr-card h2 { font-size: 16px; margin: 0 0 10px; }
.gr-wide { grid-column: 1 / -1; }
.gr-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.gr-facts dt { font-size: 12px; color: var(--muted); } .gr-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; } .gr-facts a { color: var(--blue-l); }
.gr-notes-txt { white-space: pre-wrap; color: var(--muted); }
.gr-big { font-size: 28px; font-weight: 700; margin: 0; } .gr-big small { font-size: 13px; font-weight: 500; color: var(--muted); }
.gr-noteform { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; } .gr-noteform textarea { flex: 1; min-width: 220px; }
.gr-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gr-notes li { border-left: 3px solid rgba(92,189,245,.6); padding: 2px 0 2px 12px; } .gr-notes p { margin: 4px 0; white-space: pre-wrap; } .gr-notes small { color: var(--muted); }
.gr-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-l); }
.gr-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px 18px; border-radius: 18px; margin-bottom: 14px; }
.gr-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); } .gr-f .pp-in { color: var(--text); } .gr-f select option { color: #111; }
.gr-vs { padding: 12px 16px; border-radius: 14px; margin: 0 0 14px; }
.gr-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 6px; }
.gr-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.gr-bar i { display: block; width: 100%; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #5cbdf5, #1686CB); }
.gr-bar small { font-size: 11px; color: var(--muted); }
.gr-tw { overflow-x: auto; border-radius: 18px; margin-bottom: 14px; }
.gr-t { width: 100%; border-collapse: collapse; font-size: 13.5px; } .gr-t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.gr-t td { padding: 10px 12px; border-bottom: 1px solid var(--edge); vertical-align: top; } .gr-t tr:last-child td { border-bottom: 0; } .gr-t a { color: var(--blue-l); }
.gr-sub { display: block; color: var(--muted); font-size: 12px; }
.gr-ch { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.gr-ch li { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; } .gr-ch i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, #1686CB var(--w), rgba(255,255,255,.1) var(--w)); } .gr-ch b { text-align: right; }
.gr-pre { white-space: pre-wrap; font-size: 12px; margin: 0; }
.gr-fun { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.gr-fstep { padding: 12px 14px; border-radius: 18px; } .gr-fstep b { display: block; font-size: 28px; } .gr-fstep span { color: var(--muted); font-size: 13px; } .gr-fstep small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
@media (max-width: 860px) {
  .gr-grid, .gr-form { grid-template-columns: 1fr; } .gr-fun { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-row { flex-wrap: wrap; } .gr-side { flex-direction: row; align-items: center; text-align: left; }
  .gr-facts { grid-template-columns: 1fr; } .gr-ch li { grid-template-columns: 90px 1fr 48px; }
}
@media print { .gr-acts, .gr-tabs, .crumbs { display: none; } }
/* == guest inbox == */
.gi-tabs { margin: 4px 0 10px; }
.gi-sync { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.gi-warn { color: var(--amber); }
.gi-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.gi-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.gi-list { border-radius: var(--radius); padding: 6px; max-height: calc(100vh - 250px); overflow-y: auto; }
.gi-row { display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; font: inherit; color: var(--text); background: transparent; border: 0; border-radius: 14px; padding: 11px 12px; cursor: pointer; min-height: 44px; }
.gi-row:hover { background: rgba(255,255,255,0.06); } .gi-row.on { background: rgba(79,176,236,0.18); }
.gi-row small { color: var(--muted); }
.gi-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .gi-top b { margin-right: auto; }
.gi-snip { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi-wait { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.gi-wait.ok { color: #bfe3ff; background: rgba(79,176,236,0.16); }
.gi-wait.amber { color: #2a1700; background: var(--amber); }
.gi-wait.red { color: #fff; background: #d9573a; }
.gi-detail { border-radius: var(--radius); padding: 18px; position: sticky; top: 12px; }
.gi-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; } .gi-head h2 { margin: 0; }
.gi-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin: 10px 0; } .gi-facts b { color: var(--text); margin-right: 4px; }
.gi-links { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gi-msgs { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 10px; max-height: 46vh; overflow-y: auto; }
.gi-msg { display: flex; flex-direction: column; max-width: 86%; } .gi-msg small { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.gi-msg.in { align-self: flex-start; } .gi-msg.out { align-self: flex-end; align-items: flex-end; }
.gi-bubble { padding: 10px 13px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.gi-msg.in .gi-bubble { background: rgba(255,255,255,0.10); border-bottom-left-radius: 5px; }
.gi-msg.out .gi-bubble { background: rgba(22,134,203,0.55); border-bottom-right-radius: 5px; }
.gi-msg.call .gi-bubble { font-style: italic; background: rgba(242,197,92,0.16); }
.gi-draft { border-radius: 18px; padding: 14px; margin-top: 14px; }
.gi-dhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; } .gi-dhead h3 { margin: 0; }
.gi-dbody { margin-top: 10px; }
.gi-text { width: 100%; font: inherit; color: var(--text); background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.16); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.gi-dacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-top: 10px; }
.gi-conf { color: var(--muted); font-size: 13px; margin-right: auto; }
.gi-esc { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: rgba(245,168,69,0.18); }
.gi-esc.urgent, .gi-esc.emergency { background: rgba(217,87,58,0.3); }
.gi-miss, .gi-fine { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.gi-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.gi-tile { border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.gi-tile b { font-size: 34px; } .gi-tile b.good { color: #8ff0d6; } .gi-tile b.mid { color: var(--gold); } .gi-tile b.bad { color: #ffb39a; }
.gi-tl { font-weight: 700; color: var(--muted); }
.gi-tile dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 10px 0 0; font-size: 13px; } .gi-tile dt { color: var(--muted); } .gi-tile dd { margin: 0; font-weight: 700; }
.gi-bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding: 8px 0; overflow-x: auto; }
.gi-bar { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.gi-bar i { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; background: rgba(255,255,255,0.14); border-radius: 4px 4px 0 0; min-height: 2px; }
.gi-bar em { display: block; background: var(--blue-l); border-radius: 4px 4px 0 0; }
.gi-bar small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.gi-table { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 6px; }
.gi-table th, .gi-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); } .gi-table th { color: var(--muted); font-weight: 700; }
.gi-reps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.gi-rep { border-radius: 18px; padding: 14px 16px; } .gi-rep > small { color: var(--muted); }
.gi-rep ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.gi-rep q { display: block; font-size: 13.5px; } .gi-rep li small { color: var(--muted); font-size: 11.5px; }
.gi-row .ci-tags, .gi-facts .ci-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.kpill.gi-turn { color: #ffd2c4; background: rgba(217,87,58,0.22); border-color: rgba(217,87,58,0.5); }

@media (max-width: 860px) {
  .gi-split { grid-template-columns: 1fr; } .gi-list { max-height: 48vh; } .gi-detail { position: static; padding: 14px; }
  .gi-tiles { grid-template-columns: 1fr; } .gi-msg { max-width: 94%; } .gi-tools .pp-in { flex: 1 1 100%; min-width: 0; }
  .gi-table { display: block; overflow-x: auto; }
}
/* == H-AI-LEY copilot (ask.js) == */
.ask-acts { display: flex; gap: 6px; margin-bottom: 24px; } .ask-acts .btn { margin-bottom: 0; }
.ask-form textarea { flex: 1; min-width: 0; font: inherit; color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--edge); border-radius: 22px; padding: 11px 16px; resize: none; line-height: 1.35; max-height: 140px; }
.ask-form textarea:focus { outline: none; border-color: rgba(242,197,92,.6); box-shadow: 0 0 0 3px rgba(242,197,92,.15); }
.ask-form .btn { align-self: flex-end; } .ask-form .btn.stop { background: rgba(255,255,255,.14); color: var(--text); }
.msg ol { margin: 6px 0; padding-left: 20px; } .msg p { margin: 0 0 6px; } .msg p:last-child { margin-bottom: 0; }
.msg a:not(.btn) { color: #1686CB; font-weight: 700; } .msg code { font-size: 13px; background: rgba(22,134,203,.1); padding: 1px 5px; border-radius: 6px; }
.ask-steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #6b7280; }
.ask-steps li { display: flex; align-items: center; gap: 6px; } .ask-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.ask-steps li.on::before { border: 2px solid #1686CB; border-right-color: transparent; animation: ask-spin .8s linear infinite; width: 6px; height: 6px; }
.ask-steps li.ok::before { background: #34c38f; }
@keyframes ask-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ask-steps li.on::before { animation: none; } }
.ask-acts-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .ask-acts-row .btn { margin-top: 0; }
.ask-tools { margin-top: 6px; text-align: right; } .ask-tools .link { font: inherit; font-size: 12px; color: #6b7280; background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.ask-tools .link:hover, .ask-tools .link:focus-visible { color: #1686CB; }
@media (max-width: 720px) { .ask-acts { flex-direction: column-reverse; align-items: flex-end; } }
/* == H-AI-LEY panel: phone, contrast and motion fixes == */
.ask-form textarea { font-size: 16px; }   /* 16px stops iOS zooming into the box */
.ask-form .btn, .ask-acts .btn, .ask-chips .chip { min-height: 44px; }
.ask-chips .chip[disabled], .ask-wrap .ask-thread[aria-busy="true"] ~ .ask-chips .chip { opacity: .55; cursor: default; }
.ask-thread .msg a:not(.btn) { color: #0b5e91; text-decoration: underline; }
.ask-steps { color: #4b5563; }
.ask-tools .link { color: #4b5563; min-height: 32px; }
@media (prefers-reduced-motion: reduce) { .dots i { animation: none; opacity: .7; } }
@media (max-width: 720px) { .ask-panel { height: min(86dvh, 720px); } }
/* == Steve's Today on Home (site/today.js, key data:exec_briefing) == */
.td { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; }
.td-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.td-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.td-fresh { color: var(--muted); font-size: 12.5px; } .td-fresh.warn { color: #ffd08a; font-weight: 600; }
.td-headline { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; }
.td-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.td-card { border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.td-card.td-wide { grid-column: span 2; }
.td-card h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.td-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.td-card li { font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.td-card li em, .td-dl em { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 4px; }
.td-card li > em { display: block; margin-left: 0; }
.td-card a { color: inherit; text-decoration: underline; text-decoration-color: rgba(92,189,245,.5); text-underline-offset: 2px; }
.td-cal b { display: inline-block; min-width: 46px; font-variant-numeric: tabular-nums; }
.td-big { margin: 0 0 6px; font-size: 26px; font-weight: 700; } .td-big span { font-size: 13px; font-weight: 500; color: var(--muted); }
.td-quiet li { color: var(--muted); }
.td-note { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.td-src { display: inline-block; min-width: 70px; font-size: 11.5px; font-weight: 700; color: #8fd3ff; text-transform: uppercase; letter-spacing: .4px; }
.td-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.td-tag.bad { background: rgba(255,120,90,.2); color: #ffb39a; } .td-tag.warn { background: rgba(255,208,138,.18); color: #ffd08a; } .td-tag.gold { background: rgba(255,200,60,.22); color: #ffd76a; }
.td-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13.5px; } .td-dl dt { color: var(--muted); } .td-dl dd { margin: 0; font-weight: 600; }
.td-foot { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; font-size: 13px; }
@media (max-width: 1100px) { .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .td-grid { grid-template-columns: 1fr; } .td-card.td-wide { grid-column: auto; } .td-head h2 { font-size: 19px; } .td-head .btn { min-height: 44px; } }
.td-cal li > em { display: inline; margin-left: 4px; }

/* == guest incidents == */
.ci-board { display: grid; grid-template-columns: repeat(5, minmax(172px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.ci-col h3 { font-size: 14px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; } .ci-col h3 i { font-style: normal; font-size: 12px; background: rgba(255,255,255,.12); padding: 1px 8px; border-radius: 999px; }
.ci-col { display: flex; flex-direction: column; gap: 10px; }
.ci-card { display: flex; flex-direction: column; gap: 5px; text-align: left; font: inherit; color: var(--text); border-radius: 16px; padding: 12px 13px; cursor: pointer; width: 100%; }
.ci-card:hover { filter: brightness(1.12); } .ci-card small { color: var(--muted); font-size: 12.5px; }
.ci-amt { font-weight: 700; color: var(--gold); }
.ci-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ci-dl { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: #bfe3ff; background: rgba(79,176,236,0.16); }
.ci-dl.amber { color: #2a1700; background: var(--amber); } .ci-dl.red, .ci-dl.late { color: #fff; background: #d9573a; }
.ci-lost { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ci-dlg { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--radius); padding: 18px 20px; color: var(--text); background: #142036; }
.ci-dlg::backdrop { background: rgba(3,8,18,0.7); backdrop-filter: blur(4px); }
.ci-dlg h2 { margin: 0; }
.ci-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-top: 12px; }
.ci-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; } .ci-f .pp-in, .ci-f .gi-text { width: 100%; min-width: 0; }
.ci-f small { color: var(--amber); }
.ci-f.wide, .ci-dep.wide { grid-column: 1 / -1; }
.ci-dep { border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 4px 12px 12px; margin: 0; } .ci-dep legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.ci-row { display: flex; gap: 8px; align-items: center; } .ci-row .pp-in { flex: 1; min-width: 0; }
.ci-photos { display: flex; flex-wrap: wrap; gap: 10px; } .ci-photos a { color: #9cd3ff; }
.ci-notes { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.ci-notes li { display: flex; flex-direction: column; } .ci-notes b { font-weight: 600; } .ci-notes small { color: var(--muted); font-size: 12px; }
.ci-days { width: 90px; }
@media (max-width: 860px) {
  .ci-board { grid-template-columns: repeat(5, 82vw); scroll-snap-type: x mandatory; } .ci-col { scroll-snap-align: start; }
  .ci-grid { grid-template-columns: 1fr; } .ci-dlg { padding: 14px; }
}

/* == guest inbox email context == */
.gi-email { margin: 10px 0; padding: 12px 14px; border-radius: 14px; background: var(--glass, rgba(255,255,255,.06)); }
.gi-mails { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.gi-mails li p { margin: 4px 0; opacity: .85; font-size: 13px; }
.gi-mails small { opacity: .7; }
/* Operations > Turnover and Quality: Saturday turnover command (turnday.js) */
.td-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 12px 14px; border-radius: 16px; margin: 0 0 12px; }
.td-date, .td-july, .td-tabs, .td-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.td-date input[type="date"] { font: inherit; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--edge); border-radius: 10px; padding: 6px 10px; color-scheme: dark; min-height: 36px; }
.td-july::before { content: "Last July"; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; margin-right: 2px; }
.td-tabs { margin: 0 0 14px; }
.td-chips { margin: 0 0 12px; }
.td-bar .chip, .td-tabs .chip, .td-chips .chip { min-height: 36px; }
.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; }
@media (max-width: 600px) {
  .td-bar { padding: 10px; gap: 10px; }
  .td-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .td-tabs .chip { flex: 0 0 auto; }
  .td-date input[type="date"] { flex: 1 1 140px; }
}
/* revenue: open prime weeks + weeks sold */
.rva-subtabs { margin: 4px 0 12px; }
.rva-open td, .rva-open th { vertical-align: top; }
.rva-move { display: inline-block; font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.rva-move.nudge { color: #cfe9ff; background: rgba(22,134,203,.3); border-color: rgba(22,134,203,.6); }
.rva-move.owner { color: #e9e2ff; background: rgba(167,139,250,.25); border-color: rgba(167,139,250,.55); }
.rva-move.split { color: #ffd08a; background: rgba(245,168,69,.14); border-color: rgba(245,168,69,.42); }
.rva-why { display: block; margin-top: 4px; max-width: 320px; white-space: normal; font-size: 12px; }
.rva-sold { width: 100%; height: auto; display: block; margin-top: 8px; }
.rva-sold text { fill: var(--muted); font-size: 11px; }
.rva-sold line.g { stroke: rgba(255,255,255,.08); }
.rva-sold line.now { stroke: rgba(255,255,255,.35); stroke-dasharray: 3 3; }
.rva-sold path { fill: none; stroke-width: 2.5; }
.rva-sold path.s0 { stroke: #4fb0ec; } .rva-sold path.s1 { stroke: #a78bfa; }
.rva-sold path.ly { stroke-dasharray: 5 4; opacity: .6; stroke-width: 2; }
.rva-legend i.cur.aug { background: #a78bfa; }
.gr-inc { list-style: none; margin: 8px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; } .gr-inc label { display: flex; gap: 8px; align-items: flex-start; }
.gr-terms h3 { margin: 0 0 8px; font-size: 15px; } .gr-terms { display: flex; flex-direction: column; gap: 8px; }
.gr-weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; border: 1px solid var(--edge); border-radius: 14px; padding: 10px 12px; } .gr-weeks legend { color: var(--muted); font-size: 13px; padding: 0 6px; }
.gr-off td { opacity: .55; }
@media (max-width: 860px) { .gr-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Growth signals (C9) */
.gr-filt { margin: 0 0 10px; } .gr-filt .pp-in { max-width: 260px; }
#gr-bk, #gr-lst { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* == compliance (Admin > Compliance and licenses) == */
.cp-blank { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.cp-blank b { font-size: 1.05rem; } .cp-blank span { opacity: .85; }
.cp-kpi.bad b { color: #ff8a80; } .cp-kpi.soon b { color: var(--amber); } .cp-kpi.ok b { color: #8ff0d8; }
.cp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.cp-tabs .rp-tab { flex-direction: row; }
.cp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.cp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cp-dot.ok, .cp-cell.ok { background: rgba(79,216,184,.22); border-color: rgba(79,216,184,.5); }
.cp-dot.soon, .cp-cell.soon { background: rgba(245,168,69,.25); border-color: rgba(245,168,69,.6); }
.cp-dot.bad, .cp-cell.bad { background: rgba(255,107,97,.25); border-color: rgba(255,107,97,.6); }
.cp-dot.na, .cp-cell.na { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.cp-dot.ok { background: #4fd8b8; } .cp-dot.soon { background: var(--amber); } .cp-dot.bad { background: #ff6b61; } .cp-dot.na { background: rgba(255,255,255,.3); }
.cp-scroll { border-radius: 18px; overflow: auto; max-height: 70vh; margin-bottom: 12px; }
.cp-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.cp-grid th, .cp-grid td { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.cp-grid thead th { position: sticky; top: 0; z-index: 2; background: #142037; color: var(--muted); font-weight: 700; font-size: 12px; min-width: 96px; }
.cp-grid tbody th { position: sticky; left: 0; z-index: 1; background: #111b2f; min-width: 170px; font-weight: 600; }
.cp-grid tbody th .linkish { margin: 0; color: var(--text); text-decoration: none; font-size: 13.5px; text-align: left; }
.cp-cell { font: inherit; font-size: 12px; font-weight: 600; color: var(--text); width: 100%; min-width: 86px; min-height: 34px; border-radius: 10px; border: 1px solid; cursor: pointer; padding: 4px 6px; }
.cp-cell:hover { filter: brightness(1.25); } .cp-cell:focus-visible { outline: 3px solid rgba(79,176,236,.6); outline-offset: 1px; }
.cp-rules td { font-size: 13px; }
.cp-month { border-radius: 18px; padding: 12px 16px; margin-bottom: 12px; }
.cp-month h3 { margin: 0 0 6px; font-size: 15px; } .cp-month h3 small { color: var(--muted); font-weight: 500; }
.cp-month ul { list-style: none; margin: 0; padding: 0; }
.cp-cal-row { font: inherit; color: inherit; width: 100%; display: grid; grid-template-columns: 12px 110px 1fr 1fr; gap: 10px; align-items: center; text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px 6px; cursor: pointer; min-height: 40px; }
.cp-cal-row:hover { background: rgba(255,255,255,.06); } .cp-cal-home { color: var(--muted); }
.cp-modal { width: min(820px, 100%); }
.cp-items { display: flex; flex-direction: column; gap: 14px; }
.cp-item { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .cp-head h3 { margin: 0; font-size: 15px; }
.cp-form, .cp-rule-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.cp-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; }
.cp-form label, .cp-rule-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.cp-form input, .cp-form textarea, .cp-rule-form input, .cp-rule-form select, .cp-rule-form textarea { font: inherit; font-size: 14px; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 8px 10px; min-height: 40px; }
.cp-form textarea, .cp-rule-form textarea { resize: vertical; }
.cp-empty { color: var(--muted); margin: 4px 0; font-size: 13px; }
.cp-hist summary { cursor: pointer; color: var(--muted); font-size: 13px; } .cp-hist ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .cp-fgrid { grid-template-columns: 1fr 1fr; } .cp-cal-row { grid-template-columns: 12px 96px 1fr; } .cp-cal-home { grid-column: 2 / -1; } }
@media (max-width: 520px) { .cp-fgrid { grid-template-columns: 1fr; } }
/* == knowledge (Properties > Property knowledge) == */
.pk-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pk-search { flex: 1 1 320px; min-height: 44px; }
.pk-listhead { padding: 8px; position: sticky; top: 0; z-index: 1; background: rgba(14,22,40,.85); border-radius: 14px; }
.pk-listhead .pp-in { width: 100%; }
.pk-bar { display: block; height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; margin: 4px 0 2px; }
.pk-bar i { display: block; height: 100%; border-radius: 4px; }
.pk-bar.good i { background: #4fd8b8; } .pk-bar.mid i { background: var(--amber); } .pk-bar.low i { background: #ff6b61; }
.pk-detail { gap: 14px; }
.pk-headrow { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pk-score { flex: none; width: 82px; height: 82px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 3px solid; }
.pk-score b { font-size: 22px; } .pk-score span { font-size: 11px; color: var(--muted); }
.pk-score.good { border-color: #4fd8b8; } .pk-score.mid { border-color: var(--amber); } .pk-score.low { border-color: #ff6b61; }
.pk-missing summary { cursor: pointer; font-weight: 700; color: var(--amber); } .pk-missing ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13.5px; columns: 2; }
.pk-allset { color: #8ff0d8; margin: 0; }
.pk-sugs { border: 1px solid rgba(79,176,236,.35); background: rgba(79,176,236,.08); border-radius: 16px; padding: 12px 14px; }
.pk-sugs h3, .pk-sec h3 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.pk-sugs ul, .pk-entries, .pk-results, .pk-gaps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pk-sug, .pk-entry { border-radius: 12px; padding: 10px 12px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); }
.pk-sec { border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.pk-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pk-hint, .pk-empty { color: var(--muted); font-size: 12.5px; margin: 4px 0 0; }
.pk-entry-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pk-text { margin: 6px 0 0; white-space: pre-line; font-size: 14px; line-height: 1.45; }
.pk-details { margin-top: 6px; grid-template-columns: 120px 1fr; }
.pk-links { display: flex; gap: 12px; font-size: 13px; } .pk-links a { color: #9cd3ff; }
.pk-meta { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.pk-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; } .pk-actions .linkish { margin-left: 0; }
.pk-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid rgba(79,176,236,.35); }
.pk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.pk-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.pk-form input:not([type=checkbox]), .pk-form textarea, .pk-form select { font: inherit; font-size: 14px; color: var(--text); background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 8px 10px; min-height: 40px; }
.pk-form label.pk-check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
.pk-form .pk-check input { width: 20px; height: 20px; }
.pk-warn { margin: 0; font-size: 12px; color: var(--amber); }
.pk-hit { font: inherit; color: inherit; width: 100%; text-align: left; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.pk-hit:hover { background: rgba(79,176,236,.12); } .pk-hit-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .pk-hit-body { color: var(--muted); font-size: 13.5px; }
.pk-gaps li { font-size: 14px; } .pk-gaps b { color: var(--amber); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .pk-grid { grid-template-columns: 1fr; } .pk-missing ul { columns: 1; } .pk-score { width: 66px; height: 66px; } }

/* Policies and Answers, Source check, Hailey's action rules (site/policies.js) */
.pa-grid th[scope="row"] { min-width: 220px; }
.pa-q { margin: 0; text-align: left; font-size: 14px; color: inherit; text-decoration: none; padding: 0; }
.pa-meta { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 4px; }
.pa-miss { color: var(--amber); font-weight: 600; }
.pa-ans { font: inherit; font-size: 13px; text-align: left; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 6px 9px; cursor: pointer; max-width: 260px; min-height: 32px; }
.pa-ans.inh { color: var(--muted); background: transparent; border-style: dashed; }
.pa-ans.ovr { border-color: rgba(245,168,69,.6); }
.pa-ans.empty { color: var(--amber); border-style: dashed; }
.pa-ans:focus-visible, .hr-mode:focus-visible { outline: 2px solid var(--blue-l, #4aa8e8); outline-offset: 2px; }
.pa-badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(245,168,69,.6); margin: 2px 2px 2px 0; }
.pa-none { color: var(--muted); font-size: 13px; }
.pa-lvl { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); }
.pa-lvl.home, .pa-lvl.soon { border-color: rgba(245,168,69,.6); } .pa-lvl.market { border-color: rgba(92,189,245,.6); }
.pa-lvl.ok { border-color: rgba(79,216,184,.5); } .pa-lvl.bad { border-color: rgba(255,138,128,.6); }
.pa-queue { display: grid; gap: 10px; }
.pa-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 14px; padding: 12px 14px; flex-wrap: wrap; }
.pa-item > div:first-child { min-width: 0; flex: 1 1 260px; } .pa-item small { display: block; color: var(--muted); margin-top: 3px; }
.pa-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pa-weeks { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.pa-form { display: grid; gap: 10px; margin-top: 12px; }
.pa-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.pa-ready { color: #8ff0d8; }
.sc-vals { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sc-vals li { display: flex; gap: 8px; justify-content: space-between; font-size: 13px; } .sc-vals span { color: var(--muted); }
.hr-mode { padding: 6px 10px; font-size: 13px; } .hr-mode.ok { border-color: rgba(79,216,184,.5); } .hr-mode.soon { border-color: rgba(245,168,69,.6); } .hr-mode.bad { border-color: rgba(255,138,128,.6); }
.hr-stats { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .pa-ans { max-width: 180px; } .pa-grid th[scope="row"] { min-width: 160px; } }
/* Admin > Connected systems (site/systems.js) */
.sy-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 14px; }
.sy-ls { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sy-l { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; }
.sy-l > small { color: var(--muted); font-size: 12px; } .sy-l .sy-note { flex-basis: 100%; color: var(--amber); }
.sy-alarm { border-color: rgba(255,120,110,.55); } .sy-alarm b { color: #ffb0a8; }

/* HALO version badge under the menu + Admin > Versions and rollback (version.js, releases.js) */
.nav-foot { flex-wrap: wrap; }
.nav-ver { flex-basis: 100%; font-size: 12px; color: var(--muted); text-decoration: none; padding: 6px 0 2px; }
.nav-ver:hover, .nav-ver:focus-visible { color: var(--text); text-decoration: underline; }
.rl-now { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.rl-now b.rl-ver { font-size: 22px; }
.rl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 14px; }
.rl-row h3 { margin: 0; font-size: 15px; }
.rl-row small { color: var(--muted); }
.rl-in { min-width: 0; flex: 1 1 auto; }
.rl-help { grid-column: 1 / -1; margin: 0; }
.rl-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rl-steps { margin: 6px 0 0 18px; padding: 0; }
.rl-steps li { margin: 4px 0; }
.rl-code { display: block; white-space: pre-wrap; word-break: break-all; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,0.06); }
@media (max-width: 560px) { .rl-row { grid-template-columns: 1fr; } .rl-acts { justify-content: flex-start; } }
.top-ver { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.top-ver:hover, .top-ver:focus-visible { color: var(--text); }
@media (max-width: 560px) { .top-ver { font-size: 11px; padding: 5px 8px; } }
/* == inspections == (Operations > Inspections, site/inspections.js) */
.in-jobs { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.in-job { display: inline-flex; gap: 7px; align-items: center; }
.in-job i { width: 8px; height: 8px; border-radius: 50%; background: #20BEA0; box-shadow: 0 0 8px #20BEA0; }
.in-job.bad i { background: #d9573a; box-shadow: 0 0 8px #d9573a; }
.in-row { align-items: flex-start; }
.in-rank { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(22,134,203,.20); color: #bfe3ff; font-variant-numeric: tabular-nums; }
.in-issues { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; line-height: 1.45; }
.in-issues .tag { text-transform: capitalize; margin-right: 4px; }
.in-issues small, .in-more { color: var(--muted); font-size: 12px; }
.in-desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text); max-width: 80ch; }
.in-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.in-photos img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--edge); display: block; }
.in-rule { margin-bottom: 10px; } .in-rule p { margin: 0; font-size: 13px; color: var(--muted); }
.in-form { display: flex; flex-direction: column; gap: 10px; } .in-form label { font-size: 13px; color: var(--muted); }
.in-form .pp-in { width: 100%; box-sizing: border-box; border-radius: 14px; }
.in-pre { white-space: pre-wrap; font: 13px/1.5 inherit; max-height: 50vh; overflow: auto; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--edge); }
@media (max-width: 860px) { .in-row .or-acts { flex-wrap: wrap; } .in-photos img { width: 72px; height: 56px; } .in-form .pp-in { font-size: 16px; } }
/* == hub == (Operations > Hub readiness, site/hub.js) */
.hb-src { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.hb-h { font-size: 17px; margin: 18px 0 8px; } .hb-h small { color: var(--muted); font-weight: 500; font-size: 13px; }
.hb-row { align-items: flex-start; }
.hb-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--edge); }
.hb-note { margin: 6px 0 0; font-size: 13px; color: #ffb39a; font-weight: 600; }
.hb-act { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.hb-man { margin-top: 8px; font-size: 13px; } .hb-man summary { cursor: pointer; color: var(--blue-l); font-weight: 600; }
.hb-man-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; margin-top: 8px; }
.hb-man h4 { margin: 4px 0; font-size: 12px; letter-spacing: .4px; color: var(--muted); } .hb-man ul { margin: 0; padding: 0; list-style: none; line-height: 1.6; }
.hb-man li b { display: inline-block; min-width: 22px; font-variant-numeric: tabular-nums; }
.hb-more { color: var(--muted); font-size: 13px; }
.hb-two { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
.hb-panel { padding: 16px; border-radius: 20px; min-width: 0; overflow-x: auto; } .hb-panel h2 { font-size: 17px; margin: 0 0 10px; } .hb-panel h2 small { color: var(--muted); font-weight: 500; font-size: 13px; }
.hb-t { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.hb-t th, .hb-t td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--edge); } .hb-t thead th { color: var(--muted); font-size: 12px; font-weight: 600; }
.hb-t tbody th { font-weight: 600; }
@media (max-width: 860px) { .hb-two { grid-template-columns: 1fr; } .hb-row .or-acts { flex-wrap: wrap; } }
