/* Log-hub demo analytics (staff only). Tokens from shared/ds only; same family as portal/portal.css. */
:root {
  --a-navy: var(--lh-color-ramp-neutral-950);
  --a-navy-2: var(--lh-color-ramp-neutral-900);
  --a-hair: var(--lh-color-ramp-neutral-100);
  --a-on-navy: var(--lh-color-ramp-neutral-50);
  --a-on-navy-muted: var(--lh-color-ramp-neutral-300);
  --a-ease: cubic-bezier(0, 0, .2, 1);
  --a-gutter: 16px;
  --a-z: 1;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --a-gutter: 32px; } }
@media (min-width: 2200px) { html { zoom: 1.25; } :root { --a-z: 1.25; } }
@media (min-width: 3200px) { html { zoom: 2; } :root { --a-z: 2; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lh-color-surface-subtle); color: var(--lh-color-text-primary); font-family: var(--lh-font-family-body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lh-color-ramp-brand-500); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: calc(1280px + 2 * var(--a-gutter)); margin: 0 auto; padding: 0 var(--a-gutter); }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 9999px; background: #fff; color: var(--a-navy); font-weight: 600; }
.skip:focus { top: 12px; }
.lh-logo { display: block; height: 22px; width: auto; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lh-color-text-muted); line-height: 1.4; }
.mono { font-family: var(--lh-font-family-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--lh-color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 9999px; border: 1px solid transparent; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 0 16px; font-size: 14px; }
.btn--ghost { border-color: rgb(255 255 255 / .28); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .5); }
.btn--light { background: #fff; color: var(--a-navy); }
.btn--light:hover { background: var(--lh-color-ramp-neutral-100); }
.btn--solid { background: var(--lh-color-accent-base); color: var(--lh-color-accent-on); }
.btn--solid:hover { background: var(--lh-color-accent-hover); }
.btn--line { border-color: var(--lh-color-border-subtle); color: var(--lh-color-text-primary); background: var(--lh-color-surface-raised); }
.btn--line:hover { border-color: var(--lh-color-border-default); background: var(--lh-color-surface-subtle); }
.btn--danger { background: var(--lh-color-status-critical-base); color: #fff; }
.btn--danger:hover { background: var(--lh-color-status-critical-text); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.link { min-height: 44px; padding: 0 4px; border: 0; background: none; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.link[disabled] { opacity: .6; cursor: default; text-decoration: none; }
.iconbtn { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9999px; background: transparent; color: var(--lh-color-text-secondary); }
.iconbtn:hover { background: var(--lh-color-surface-sunken); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgb(22 30 41 / .2); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ sample banner */
.sample { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 12px; padding: 6px var(--a-gutter); background: var(--lh-color-status-warning-surface); border-bottom: 1px solid var(--lh-color-status-warning-border); color: var(--lh-color-status-warning-text); font-size: 13px; line-height: 1.4; text-align: center; }
.sample b { font-weight: 700; }
.sample a { display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 2px; font-weight: 600; padding: 0 2px; }

/* ------------------------------------------------------------ sign-in */
.auth { min-height: calc(100dvh / var(--a-z)); display: flex; flex-direction: column; color: var(--a-on-navy); background: radial-gradient(120% 150% at 88% 8%, var(--a-navy-2) 0%, var(--a-navy) 62%); position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000, transparent 75%); pointer-events: none; }
.auth > * { position: relative; }
.auth__in { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px var(--a-gutter) 48px; }
.auth__card { width: 100%; max-width: 460px; padding: 28px 22px; border-radius: 24px; border: 1px solid rgb(255 255 255 / .14); background: linear-gradient(180deg, rgb(255 255 255 / .07), rgb(255 255 255 / .03)); box-shadow: 0 24px 48px -24px rgb(0 0 0 / .55); }
@media (min-width: 560px) { .auth__card { padding: 36px 36px 30px; } }
.auth .lh-logo { height: 26px; }
.auth .eyebrow { margin-top: 28px; color: var(--lh-color-ramp-neutral-300); }
.auth h1 { margin-top: 8px; font-family: var(--lh-font-family-display); font-size: 30px; line-height: 1.1; font-weight: 700; letter-spacing: -.022em; color: #fff; }
.auth__lede { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--a-on-navy-muted); }
.auth form { margin-top: 24px; }
.auth label, .auth__label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--lh-color-ramp-neutral-200); }
.auth__label b { color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.auth__row { display: flex; flex-direction: column; gap: 12px; }
.auth input[type="email"] { width: 100%; height: 52px; padding: 0 20px; border-radius: 9999px; border: 1px solid rgb(255 255 255 / .22); background: rgb(22 30 41 / .6); font-size: 16px; color: #fff; transition: border-color .15s; }
.auth input::placeholder { color: var(--lh-color-ramp-neutral-500); }
.auth input:hover { border-color: rgb(255 255 255 / .4); }
.auth input:focus-visible { outline: 2px solid var(--lh-color-ramp-brand-500); outline-offset: 2px; border-radius: 9999px; border-color: transparent; }
.auth .btn { min-height: 52px; }
.auth__go { width: 100%; margin-top: 18px; }
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 400px) { .code { gap: 10px; } }
.code input { width: 100%; min-width: 0; height: 56px; padding: 0; text-align: center; border-radius: 14px; border: 1px solid rgb(255 255 255 / .22); background: rgb(22 30 41 / .6); font-family: var(--lh-font-family-mono); font-size: 24px; font-weight: 600; color: #fff; caret-color: #fff; }
.code input:focus-visible { outline: 2px solid var(--lh-color-ramp-brand-500); outline-offset: 2px; border-radius: 14px; border-color: transparent; }
.code input[aria-invalid="true"] { border-color: #ffb4a6; }
.auth__links { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.auth__err { margin-top: 16px; font-size: 14px; line-height: 1.45; color: #ffb4a6; }
.auth__err[data-note] { color: var(--a-on-navy-muted); }
.auth__err:empty { display: none; }
.auth__fine { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--lh-color-ramp-neutral-400); }

/* ------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 40; background: var(--a-navy); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 8px 24px -14px rgb(0 0 0 / .5); }
.top__in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 56px; border-radius: 8px; }
.brand__div { width: 1px; height: 20px; background: rgb(255 255 255 / .22); }
.brand__sub { font-size: 13.5px; color: var(--a-on-navy-muted); white-space: nowrap; }
@media (max-width: 479px) { .brand__div, .brand__sub { display: none; } }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who__av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .12); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.who__txt { display: none; min-width: 0; line-height: 1.25; }
.who__name, .who__role { display: block; }
.who__name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.who__role { font-size: 12px; color: var(--a-on-navy-muted); }
@media (min-width: 640px) { .who__txt { display: block; } }
.tools .btn { padding: 0 12px; }
@media (min-width: 640px) { .tools .btn { padding: 0 16px; } }
@media (max-width: 639px) { .tools .btn__t { display: none; } .tools .btn { width: 44px; padding: 0; } }

.nav { order: 3; flex: 1 0 100%; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 8px; -webkit-overflow-scrolling: touch; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 9999px; font-size: 14.5px; font-weight: 500; color: var(--a-on-navy-muted); transition: color .15s, background-color .15s; }
.nav a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .14); font-weight: 600; }
@media (min-width: 900px) { .nav { order: 0; flex: 0 1 auto; margin: 0 0 0 12px; padding: 0; overflow: visible; } .tools { order: 2; } }

/* ------------------------------------------------------------ page */
main { padding-bottom: 72px; }
.phead { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t r" "s s"; align-items: center; gap: 4px 12px; padding: 22px 0 16px; }
.phead h1 { grid-area: t; font-family: var(--lh-font-family-display); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.022em; }
.phead p { grid-area: s; margin-top: 4px; max-width: 70ch; font-size: 14.5px; color: var(--lh-color-text-secondary); text-wrap: pretty; }
.phead .refresh { grid-area: r; }
@media (min-width: 760px) { .phead { grid-template-areas: "t r" "s r"; align-items: end; padding: 28px 0 18px; } .phead p { font-size: 15px; } }
@media (max-width: 559px) { .upd__r { display: none; } }
.refresh { flex: none; color: var(--lh-color-text-secondary); font-weight: 500; }
.refresh svg { transition: transform .4s var(--a-ease); }
.refresh[aria-busy="true"] svg { animation: spin .8s linear infinite; }

.card { background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 16px; box-shadow: var(--lh-elevation-1); }
.card__pad { padding: 20px; }
@media (min-width: 760px) { .card__pad { padding: 24px 28px; } }
.h3 { font-family: var(--lh-font-family-display); font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -.012em; }
.sub { margin-top: 4px; font-size: 14px; color: var(--lh-color-text-muted); text-wrap: pretty; }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stat { padding: 12px 14px; }
.stat__n { display: block; font-family: var(--lh-font-family-display); font-size: 26px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__l { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--lh-color-text-muted); }

/* filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.field { position: relative; flex: 1 1 240px; min-width: 0; }
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--lh-color-text-muted); pointer-events: none; }
.input, .select { width: 100%; min-height: 44px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--lh-color-border-subtle); background: var(--lh-color-surface-raised); font-size: 15px; transition: border-color .15s; }
.field .input { padding-left: 42px; }
.input:hover, .select:hover { border-color: var(--lh-color-border-default); }
.input::placeholder { color: var(--lh-color-text-muted); }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23394758' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; width: auto; max-width: 100%; }
.seg { display: inline-flex; padding: 3px; border-radius: 9999px; background: var(--lh-color-surface-sunken); max-width: 100%; }
.seg button { min-width: 44px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 9999px; background: transparent; font-size: 14px; font-weight: 600; color: var(--lh-color-text-secondary); white-space: nowrap; }
@media (pointer: fine) { .seg button { min-height: 38px; } }
.seg button:hover { color: var(--lh-color-text-primary); }
.seg button[aria-pressed="true"] { background: var(--lh-color-surface-raised); color: var(--lh-color-text-primary); box-shadow: 0 1px 2px rgb(22 30 41 / .18); }
.seg--scroll { overflow-x: auto; scrollbar-width: none; }
.seg--scroll::-webkit-scrollbar { display: none; }
.count { margin: 2px 2px 10px; font-size: 13.5px; color: var(--lh-color-text-muted); }
.help { margin-top: 14px; font-size: 13.5px; color: var(--lh-color-text-muted); }
.help summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--lh-color-text-secondary); }
.help p { max-width: 80ch; padding-bottom: 6px; text-wrap: pretty; }

/* ------------------------------------------------------------ lead list (cards on phone, table-like list from 900 px) */
.rows { display: grid; gap: 10px; }
.rows__head { display: none; }
.rows li.rows__hli { display: none; }
.rows li { background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 14px; box-shadow: var(--lh-elevation-1); overflow: hidden; }
.lead { display: grid; width: 100%; text-align: left; border: 0; background: transparent; padding: 14px 16px; gap: 8px 12px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who heat" "why why" "meta meta"; align-items: center; min-height: 44px; }
.lead:hover { background: var(--lh-color-surface-subtle); }
.lead:focus-visible { outline-offset: -3px; border-radius: 14px; }
.lead__who { grid-area: who; min-width: 0; }
.lead__mail { display: block; font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
@media (min-width: 900px) { .lead__mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.lead__co { display: block; font-size: 13.5px; color: var(--lh-color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__demos { display: none; font-size: 12.5px; color: var(--lh-color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__heat { grid-area: heat; justify-self: end; }
.lead__why { grid-area: why; display: flex; flex-wrap: wrap; gap: 6px; }
.lead__meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--lh-color-text-muted); }
.lead__meta b { font-weight: 600; color: var(--lh-color-text-secondary); }
.lead__seen { grid-area: seen; }
.lead__own { grid-area: own; }
.heat { display: inline-flex; align-items: center; gap: 10px; }
.heat__bar { width: 64px; height: 6px; border-radius: 3px; background: var(--lh-color-chart-grid); overflow: hidden; }
.heat__bar i { display: block; height: 100%; border-radius: 3px; background: var(--lh-color-chart-featured); }
.heat__n { min-width: 2.2ch; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 9999px; font-size: 12.5px; font-weight: 500; line-height: 1.2; white-space: nowrap; background: var(--lh-color-surface-sunken); color: var(--lh-color-text-secondary); }
.chip--win { background: var(--lh-color-status-good-surface); color: var(--lh-color-status-good-text); }
.chip--acc { background: var(--lh-color-accent-subtle); color: var(--lh-color-text-accent); }
.chip--warn { background: var(--lh-color-status-warning-surface); color: var(--lh-color-status-warning-text); }
.chip--bad { background: var(--lh-color-status-critical-surface); color: var(--lh-color-status-critical-text); }
@media (min-width: 900px) {
  .rows { gap: 0; background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 16px; box-shadow: var(--lh-elevation-1); overflow: hidden; }
  .rows li { border: 0; border-bottom: 1px solid var(--a-hair); border-radius: 0; box-shadow: none; }
  .rows li:last-child { border-bottom: 0; }
  .rows li.rows__hli { display: block; background: var(--lh-color-surface-subtle); }
  .rows__head { display: grid; padding: 10px 20px; border-bottom: 1px solid var(--a-hair); background: var(--lh-color-surface-subtle); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-color-text-muted); }
  .rows__head, .lead { grid-template-columns: minmax(0, 2.1fr) 128px minmax(0, 2.8fr) 92px minmax(0, 1fr); gap: 0 20px; }
  .rows--sales .rows__head, .rows--sales .lead { grid-template-columns: minmax(0, 2.1fr) 128px minmax(0, 3fr) 92px; }
  .lead { grid-template-areas: "who heat why seen own"; padding: 12px 20px; }
  .rows--sales .lead { grid-template-areas: "who heat why seen"; }
  .lead__heat { justify-self: start; }
  .lead__meta { display: contents; }
  .lead__seen, .lead__own { font-size: 13.5px; }
  .lead__own { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lead__meta b { font-weight: 400; color: var(--lh-color-text-secondary); }
  .lead__meta .lbl { display: none; }
  .lead__demos { display: block; }
  .rows--sales .lead__own { display: none; }
}

/* ------------------------------------------------------------ tables (cards on phone) */
.tblwrap { background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 16px; box-shadow: var(--lh-elevation-1); overflow-x: auto; }
.tbl { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; }
.tbl td.first { min-width: 190px; }
.tbl th { padding: 10px 16px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lh-color-text-muted); background: var(--lh-color-surface-subtle); border-bottom: 1px solid var(--a-hair); }
.tbl td { padding: 10px 16px; border-bottom: 1px solid var(--a-hair); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tbody tr.pick { cursor: pointer; }
.tbl tbody tr.pick:hover td { background: var(--lh-color-surface-subtle); }
.tbl tbody tr[aria-selected="true"] td { background: var(--lh-color-accent-subtle); }
.tbl .name { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
@media (min-width: 720px) and (pointer: fine) { .tbl .name { min-height: 32px; } }
@media (max-width: 719px) {
  .tblwrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tbl { min-width: 0; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl tr { margin-bottom: 10px; padding: 6px 16px 8px; background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 14px; box-shadow: var(--lh-elevation-1); }
  .tbl tbody tr[aria-selected="true"] { border-color: var(--lh-color-ramp-brand-600); background: var(--lh-color-accent-subtle); }
  .tbl tbody tr[aria-selected="true"] td { background: transparent; }
  .tbl td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; border: 0; text-align: right; }
  .tbl td::before { content: attr(data-label); flex: none; font-size: 13px; color: var(--lh-color-text-muted); text-align: left; }
  .tbl td.first { display: block; padding: 2px 0 4px; text-align: left; }
  .tbl td.first::before { content: none; }
  .tbl td.first .name { font-size: 16px; }
}

/* ------------------------------------------------------------ states */
.state { padding: 36px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.state h2 { font-family: var(--lh-font-family-display); font-size: 19px; line-height: 1.25; font-weight: 700; }
.state p { max-width: 54ch; font-size: 14.5px; color: var(--lh-color-text-secondary); text-wrap: pretty; }
.state .btn { margin-top: 10px; }
.state--error h2 { color: var(--lh-color-status-critical-text); }
.state__ic { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--lh-color-surface-sunken); color: var(--lh-color-text-secondary); }
.state--error .state__ic { background: var(--lh-color-status-critical-surface); color: var(--lh-color-status-critical-text); }
.skel { display: grid; gap: 10px; }
.skel i { display: block; height: 76px; border-radius: 14px; background: linear-gradient(90deg, var(--lh-color-surface-sunken) 0%, var(--lh-color-ramp-neutral-100) 50%, var(--lh-color-surface-sunken) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.inline-err { margin-top: 8px; font-size: 13.5px; color: var(--lh-color-status-critical-text); }
.inline-ok { font-size: 13.5px; color: var(--lh-color-status-good-text); }
.more { display: flex; justify-content: center; margin-top: 14px; }

/* ------------------------------------------------------------ charts */
.charts { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 1100px) { .charts { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.fnlist { display: grid; gap: 14px; }
.fncard { display: block; width: 100%; text-align: left; padding: 18px 20px 20px; border: 1.5px solid var(--a-hair); background: var(--lh-color-surface-raised); border-radius: 16px; box-shadow: var(--lh-elevation-1); }
.fncard:hover { border-color: var(--lh-color-ramp-neutral-300); }
.fncard[aria-pressed="true"] { border-color: var(--lh-color-ramp-brand-600); box-shadow: 0 0 0 3px rgb(0 120 215 / .1), var(--lh-elevation-1); }
.fncard__h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-bottom: 14px; }
.fncard__h b { font-family: var(--lh-font-family-display); font-size: 17px; line-height: 1.25; letter-spacing: -.01em; }
.fncard__h span { font-size: 13px; color: var(--lh-color-text-muted); }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab val" "trk trk"; gap: 4px 12px; align-items: baseline; }
@media (min-width: 520px) { .bar { grid-template-columns: 112px minmax(0, 1fr) 150px; grid-template-areas: "lab trk val"; align-items: center; } }
.bar__lab { grid-area: lab; font-size: 14px; color: var(--lh-color-text-secondary); }
.bar__trk { grid-area: trk; height: 12px; border-radius: 4px; background: var(--lh-color-chart-grid); overflow: hidden; }
.bar__trk i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--lh-color-chart-featured); }
.bar__val { grid-area: val; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__val b { font-weight: 700; }
.bar__val span { color: var(--lh-color-text-muted); margin-left: 6px; font-size: 13px; }
.bar--drop .bar__trk i { background: var(--lh-color-chart-featured); }
.bar--drop .bar__lab::after { content: " · largest drop"; font-weight: 700; color: var(--lh-color-status-critical-text); font-size: 12.5px; }
.callout { margin: 14px 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--lh-color-status-warning-surface); border: 1px solid var(--lh-color-status-warning-border); color: var(--lh-color-status-warning-text); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.steps .bar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lab val" "trk trk"; }
@media (min-width: 520px) { .steps .bar { grid-template-columns: 132px minmax(0, 1fr) 104px; grid-template-areas: "lab trk val"; } }
.steps .bar--drop .bar__lab::after { content: none; }
.steps .tag { display: none; }
.steps .bar--drop .tag { display: inline; white-space: nowrap; margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--lh-color-status-critical-text); }

/* ------------------------------------------------------------ drawer */
#drawer-root { position: fixed; inset: 0; z-index: 60; }
.scrim { position: absolute; inset: 0; background: rgb(22 30 41 / .5); animation: fade .2s var(--a-ease); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 600px; display: flex; flex-direction: column; background: var(--lh-color-surface-subtle); box-shadow: -24px 0 48px -24px rgb(0 0 0 / .4); animation: slide .26s var(--a-ease); outline: none; }
@keyframes slide { from { transform: translateX(32px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { flex: none; display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 16px; background: var(--lh-color-surface-raised); border-bottom: 1px solid var(--a-hair); }
.drawer__head .iconbtn:first-child:not([hidden]) { margin-left: -8px; }
.drawer__title { flex: 1; min-width: 0; font-family: var(--lh-font-family-display); font-size: 17px; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; padding: 6px 0; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 40px; }
@media (min-width: 760px) { .drawer__body { padding: 22px 24px 48px; } }
.dsec { margin-top: 24px; }
.dsec:first-child { margin-top: 0; }
.dsec > .eyebrow { margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kv > div { padding: 10px 14px; background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 12px; }
.kv .wide { grid-column: 1 / -1; }
.kv .wide dd { font-size: 15px; font-weight: 600; }
.kv dt { font-size: 12.5px; color: var(--lh-color-text-muted); }
.kv dd { margin-top: 2px; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv dd small { font-size: 12.5px; font-weight: 400; color: var(--lh-color-text-muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.who-line { margin-top: 4px; font-size: 14px; color: var(--lh-color-text-secondary); overflow-wrap: anywhere; }
.who-line button { min-height: 44px; padding: 0; border: 0; background: none; font-weight: 600; color: var(--lh-color-text-accent); text-decoration: underline; text-underline-offset: 3px; }
.dhead { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 10px; }
.plist { display: grid; gap: 8px; }
.plist .lead { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; grid-template-areas: "who heat" "why why"; background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 12px; }
.plist .lead__why:empty { display: none; }

/* timeline */
.tl__day { margin: 22px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lh-color-text-muted); }
.tl__day:first-child { margin-top: 0; }
.tl__sess { margin-bottom: 10px; padding: 12px 14px 8px; background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 14px; }
.tl__sh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--a-hair); }
.tl__sh b { font-size: 14px; }
.tl__sh span { font-size: 13px; color: var(--lh-color-text-muted); }
.tl__ev { display: grid; grid-template-columns: 44px 14px minmax(0, 1fr); gap: 0 10px; padding: 7px 0; position: relative; }
.tl__t { font-size: 13px; color: var(--lh-color-text-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.tl__dot { position: relative; display: flex; justify-content: center; }
.tl__dot::before { content: ""; position: absolute; top: 18px; bottom: -14px; width: 1px; background: var(--lh-color-border-subtle); }
.tl__ev:last-child .tl__dot::before { display: none; }
.tl__dot i { margin-top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--lh-color-ramp-neutral-400); background: var(--lh-color-surface-raised); position: relative; z-index: 1; }
.tl__ev--win .tl__dot i { background: var(--lh-color-status-good-base); border-color: var(--lh-color-status-good-base); border-radius: 3px; transform: rotate(45deg); }
.tl__ev--key .tl__dot i { background: var(--lh-color-chart-featured); border-color: var(--lh-color-chart-featured); }
.tl__x { font-size: 14.5px; line-height: 1.4; }
.tl__ev--win .tl__x { font-weight: 700; }
.tl__d { display: block; font-size: 13px; color: var(--lh-color-text-muted); overflow-wrap: anywhere; }

/* admin */
.asec { margin-top: 14px; }
.alist { display: grid; }
.alist > li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--a-hair); }
.alist > li:last-child { border-bottom: 0; }
.alist .main { flex: 1 1 220px; min-width: 0; }
.alist .main b { display: block; overflow-wrap: anywhere; font-weight: 600; }
.alist .main > span { display: block; font-size: 13.5px; color: var(--lh-color-text-muted); overflow-wrap: anywhere; }
.alist .ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alist .ctl .select { max-width: 260px; }
.owned { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.confirm { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 8px; }
.confirm__msg { flex: 1 0 100%; font-size: 13.5px; color: var(--lh-color-status-critical-text); max-width: 46ch; line-height: 1.4; }
.form { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--a-hair); }
@media (min-width: 760px) { .form { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) auto; align-items: end; } }
.form label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--lh-color-text-secondary); }
.form .input, .form .select { border-radius: 12px; width: 100%; max-width: none; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--lh-color-text-secondary); min-height: 44px; padding: 4px 0; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lh-color-ramp-brand-600); }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag-i { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px 0 14px; min-height: 44px; border-radius: 9999px; background: var(--lh-color-surface-sunken); font-size: 14px; }
@media (pointer: fine) { .tag-i { min-height: 34px; } }
.tag-i .confirm { margin-left: 2px; }
.tag-i .iconbtn { width: 32px; height: 32px; }
@media (pointer: coarse) { .tag-i .iconbtn { width: 44px; height: 44px; } }
.tag-i--ask { border-radius: 14px; padding: 8px 8px 8px 14px; }
@media (max-width: 719px) { .alist .ctl .select { max-width: 100%; flex: 1 1 200px; } }

@media (pointer: coarse) { .sample a { padding: 13px 6px; margin: -13px 0; } }
@media (max-width: 899px) { .tblwrap--wide { display: none; } .charts { margin-top: 0; } }

/* rooms: list, editor, link and one-time code */
.inline-err:empty { display: none; }
.rhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 12px; }
.rhead .sub { flex: 1 1 320px; max-width: 70ch; margin: 0; }
.rsub { display: block; font-size: 13.5px; color: var(--lh-color-text-muted); overflow-wrap: anywhere; }
.rchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tbl td.act { text-align: right; white-space: nowrap; }
@media (max-width: 719px) { .tbl td.act { justify-content: flex-end; padding-top: 8px; } .tbl td.act::before { content: none; } .rchips { justify-content: flex-end; } }
.ebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.ebar h2 { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.ebar h2:focus { outline: none; }
.rform { display: grid; gap: 26px; }
.rsec { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.rsec > .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }
@media (min-width: 760px) { .rsec--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; } }
.fld { min-width: 0; }
.fld > label, .fld > .lbl { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--lh-color-text-secondary); }
.fld .input, .fld .select { border-radius: 12px; width: 100%; max-width: none; }
.fld__help { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--lh-color-text-muted); text-wrap: pretty; }
.fld .inline-err { margin-top: 6px; }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--lh-color-status-critical-base); }
.input[readonly] { background: var(--lh-color-surface-subtle); }
.chipin { display: flex; gap: 8px; }
.chipin .input { flex: 1 1 auto; min-width: 0; }
.chipin .btn { flex: none; }
.fld .taglist { margin-top: 10px; }
.swt .check { padding: 6px 0; }
.swt .check b { display: block; font-weight: 600; color: var(--lh-color-text-primary); }
.swt .check .fld__help { margin-top: 2px; }
.swt .inline-err { margin: 0 0 4px 30px; }
.pick { min-width: 0; margin: 0; padding: 0; border: 0; }
.pick__g { margin-top: 12px; }
.pick__g > .eyebrow { margin-bottom: 4px; }
.pick__l { display: grid; gap: 0 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .pick__l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pick .check { align-items: center; color: var(--lh-color-text-primary); font-size: 14.5px; }
.pick .callout, .pick .fld__help { margin-top: 12px; }
.rfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.reveal { margin-bottom: 14px; border-color: var(--lh-color-ramp-brand-600); box-shadow: 0 0 0 3px rgb(0 120 215 / .1), var(--lh-elevation-1); scroll-margin-top: 140px; }
.reveal .fld { margin-top: 14px; }
.reveal .h3:focus { outline: none; }
.copyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.copyrow .input { flex: 1 1 260px; min-width: 0; font-size: 14px; }
.codebig { flex: 1 1 auto; padding: 8px 16px; border-radius: 12px; background: var(--lh-color-surface-sunken); font-family: var(--lh-font-family-mono); font-size: 26px; font-weight: 700; letter-spacing: .12em; user-select: all; }
@media (max-width: 719px) { .tbl td .rchips { margin-left: auto; } }
.tbl td[data-label="Owner"] { white-space: nowrap; }
@media (max-width: 719px) { .tbl td[data-label="Owner"] { white-space: normal; } }
/* the rooms table has seven columns: cards up to 999 px (two across on tablets), a table from there */
@media (min-width: 720px) and (max-width: 999px) {
  .tblwrap--rooms { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .tbl--rooms { min-width: 0; }
  .tbl--rooms, .tbl--rooms tbody, .tbl--rooms tr, .tbl--rooms td { display: block; }
  .tbl--rooms tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tbl--rooms thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl--rooms tr { margin: 0; padding: 6px 16px 8px; background: var(--lh-color-surface-raised); border: 1px solid var(--a-hair); border-radius: 14px; box-shadow: var(--lh-elevation-1); }
  .tbl--rooms td { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 5px 0; border: 0; text-align: right; }
  .tbl--rooms td::before { content: attr(data-label); flex: none; font-size: 13px; color: var(--lh-color-text-muted); text-align: left; }
  .tbl--rooms td.first { display: block; padding: 2px 0 4px; text-align: left; min-width: 0; }
  .tbl--rooms td.first::before, .tbl--rooms td.act::before { content: none; }
  .tbl--rooms td.first b { font-size: 16px; }
  .tbl--rooms td.act { justify-content: flex-end; padding-top: 8px; }
  .tbl--rooms td .rchips { margin-left: auto; justify-content: flex-end; }
  .tbl--rooms td[data-label="Owner"] { white-space: normal; }
}
@media (min-width: 1000px) { .tbl--rooms { min-width: 940px; } }
