/* css/views/home.css — the front door (js/views/home.js) and its intake cards (assistant/scripted/home.js). */
.home { height: 100%; position: relative; display: flex; flex-direction: column; }
.home-head { position: relative; flex: none; margin: 10px 18px 0; display: flex; align-items: center; gap: 4px; z-index: 3; pointer-events: none; }
/* (in the flow, not absolute: a long chat used to scroll under the header and its label, e.g. in Story Mode at 1280×720) */
.home-head > * { pointer-events: auto; }
.home-head .icon-btn { position: relative; color: var(--ink); }
.home-hcount { position: absolute; top: 3px; right: 2px; min-width: 14px; height: 14px; border-radius: 7px; background: var(--ink); color: #fff; font: 600 8.5px/14px var(--mono); padding: 0 3px; }
.home-ctx { margin-left: 10px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mut2); }
.home .elpis { flex: 1; min-height: 0; }
.home .elpis-thread { padding-top: 14px; }
.home .elpis-thread-inner { max-width: 724px; }

/* empty state: hero centered in the space above the dock */
.home.is-empty .elpis-thread { display: flex; padding-top: 0; }
.home.is-empty .elpis-thread-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.home-hero { text-align: center; padding: 0 0 8px; }
.home-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; line-height: 1.1; }
.home-hero p { color: var(--mut); font-size: 16px; line-height: 1.6; max-width: 600px; margin: 0 auto; }
.home-hero p em { font-style: italic; }
.home-hero p b { color: var(--ink); font-weight: 600; }
.home-resume { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; background: var(--surface); border-radius: var(--r-pill); padding: 6px 6px 6px 8px; box-shadow: var(--shadow); font-size: 13px; text-align: left; animation: rise .3s var(--ease) both; }

/* suggested requests (docked above the composer) */
.home-try { margin: 0 0 12px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; animation: rise .34s var(--ease) both; }
.ht-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 16px 8px; }
.ht-eyebrow { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut2); }
.ht-or { font-size: 12px; color: var(--mut2); }
.ht-list { border-top: 1px solid var(--line); }
.ht-row { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background var(--t-fast); }
.ht-row:first-child { border-top: 0; }
.ht-row:hover { background: var(--soft2); }
.ht-row:hover .ht-text { color: var(--ink); }
.ht-row:focus-visible { outline: 2px solid var(--bblue); outline-offset: -2px; }
.ht-q { width: 26px; height: 26px; border-radius: 50%; background: var(--pink-t); color: var(--red-d); display: inline-flex; align-items: center; justify-content: center; font: 700 16px/1 var(--serif); padding-top: 5px; }
.ht-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ht-text { font-size: 13.5px; line-height: 1.4; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-sub { font-size: 11.5px; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ht-done { color: var(--bblue); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.ht-done svg { width: 11px; height: 11px; }
.ht-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ht-meta small { font: 500 10px var(--mono); letter-spacing: .05em; color: var(--mut2); text-transform: uppercase; white-space: nowrap; }
.tag-danger { background: var(--danger-bg); color: var(--danger-fg); }
.ht-gen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 16px 11px; border-top: 1px solid var(--line); background: var(--soft2); }
.ht-gen { flex-wrap: nowrap; overflow: hidden; }
.ht-gen .ht-or { white-space: nowrap; flex: none; }
.ht-gen .chip { font-size: 12px; padding: 4px 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ht-gen .chip svg { width: 13px; height: 13px; color: var(--mut2); }

/* ---------------- intake cards ---------------- */
.hb-card, .hp-card, .hr-card { border-top: 3px solid var(--brand); }
.hb-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 18px 9px; }
.hb-hd .eyebrow { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.hb-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 10px 18px; border-top: 1px solid var(--line); }
.pcard.anim .hb-row, .pcard.anim .hp-lane { animation: rise .3s var(--ease) both; }
.hb-k { padding-top: 3px; font: 600 11px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--mut2); }
.hb-vw { min-width: 0; font-size: 14.5px; line-height: 1.45; }
.hb-v { font-weight: 500; color: var(--ink); }
.hb-v b { font-weight: 700; }
.hb-v small, .hb-sub { font-weight: 400; color: var(--mut); font-size: 12.5px; }
button.hb-edit { text-align: left; padding: 0; color: var(--ink); font: inherit; font-weight: 500; border-bottom: 1.5px dashed var(--line2); border-radius: 0; line-height: 1.45; cursor: text; transition: border-color var(--t-fast), background var(--t-fast); }
button.hb-edit:hover { border-bottom-color: var(--ink); background: var(--soft2); }
button.hb-edit:focus-visible { outline: 2px solid var(--bblue); outline-offset: 2px; }
.hb-cite { font-size: 11.5px; background: var(--brand-t); color: var(--brand-d); border-radius: 20px; padding: 2px 9px; white-space: nowrap; align-self: start; margin-top: 1px; }
.hb-uci.is-provisional { background: var(--pink-t); box-shadow: inset 3px 0 0 var(--red); }
.hb-uci.is-provisional .hb-cite { background: var(--surface); }
.hb-uci-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hb-uci .uci-swatches { gap: 5px; }
.hb-uci .uci-swatch { width: 22px; height: 22px; border-radius: 6px; padding: 0; cursor: pointer; transition: transform var(--t-fast); }
.hb-uci button.uci-swatch:hover { transform: translateY(-1px); }
.hb-uci span.uci-swatch { cursor: default; opacity: .55; }
.hb-uci span.uci-swatch.on { opacity: 1; }
.hb-uci .uci { font-weight: 600; }
.hb-signals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px; }
.hb-sig { font-size: 11.5px; font-weight: 600; background: var(--emph-t); color: var(--emph); border-radius: 20px; padding: 2px 9px; }
.hb-sig-note { font-size: 12px; color: var(--mut); }
.hb-flag { margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--red-d); display: flex; align-items: center; gap: 6px; }
.hb-flag svg { width: 12px; height: 12px; }
.hb-row-path .tag { font-size: 10px; }
.hb-scope { display: flex; align-items: center; gap: 9px; padding: 11px 18px 0; border-top: 1px solid var(--line); margin-top: 2px; font-size: 13px; color: var(--mut); }
.hb-scope b { color: var(--ink); }
.hb-scope .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emph); flex: none; }
.hb-scope.ok .dot { background: var(--teal-d); }
.hb-ft { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px 15px; }
.hb-scope + .hb-ft { padding-top: 10px; }
.hb-row + .hb-ft, .hp-sec + .hb-ft { border-top: 1px solid var(--line); }
.hb-ft .btn svg { width: 13px; height: 13px; }
.hb-note { margin-left: auto; font-size: 12px; color: var(--mut2); display: inline-flex; gap: 6px; align-items: center; }
.hb-note svg { width: 12px; height: 12px; transform: rotate(90deg); }
.hb-restart { font-size: 12.5px; color: var(--mut); font-weight: 600; }
.hb-restart:hover { color: var(--red); }
.hb-ft-done { background: var(--ok-bg); border-top: 1px solid var(--line); }
.hb-done { display: inline-flex; align-items: center; gap: 7px; color: var(--bblue); font-size: 13px; font-weight: 600; margin-right: auto; }
.hb-done .mono { font-family: var(--mono); font-size: 12px; }
.hb-ft-muted { color: var(--mut2); font-size: 12.5px; font-style: italic; border-top: 1px solid var(--line); }
.hb-superseded { opacity: .62; }
.hb-superseded .hb-uci.is-provisional { background: none; box-shadow: none; }

/* inline edit form */
.hb-form { display: flex; flex-wrap: wrap; gap: 10px 12px; padding: 12px 18px 14px; border-top: 1px solid var(--line); background: var(--soft2); }
.hb-fl { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
.hb-fl-sm { flex: 0 0 90px; }
.hb-fl > span { font: 600 10.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--mut2); }
.hb-fl .input, .hb-fl .select { font-size: 14px; padding: 8px 11px; width: 100%; }
.hb-fl .input.mono { font-family: var(--mono); font-size: 13px; }
.hb-form-ft { flex-basis: 100%; display: flex; align-items: center; gap: 8px; }
.hb-hint { font-size: 12px; color: var(--mut2); margin-left: 6px; }

/* plan card */
.hp-hero { background: var(--brand); color: #fff; padding: 15px 18px 14px; }
.hp-hero .eyebrow { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.hp-hero .t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 5px 0 2px; }
.hp-hero .s { font-size: 13px; opacity: .9; }
.hp-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.22); }
.hp-stats span { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.hp-stats small { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hp-stats b { font-weight: 700; }
.hp-stats em { font-style: normal; font-weight: 400; opacity: .85; font-size: 12.5px; }
.hp-stats .uci { color: #fff; font-size: 13.5px; }
.hp-stats .uci::before { box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.hp-sec { border-top: 1px solid var(--line); padding: 4px 0 6px; }
.hp-hero + .hp-sec { border-top: 0; }
.hp-sh { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 11px 18px 6px; display: flex; align-items: baseline; gap: 10px; }
.hp-sh small { font: 400 11.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--mut2); }
.hp-owner { display: flex; gap: 11px; align-items: flex-start; padding: 2px 18px 8px; font-size: 14px; }
.hp-owner b { display: block; }
.hp-owner small { color: var(--mut); font-size: 12.5px; }
.hp-conf { display: inline-block; font: 600 9.5px var(--mono); letter-spacing: .05em; text-transform: uppercase; background: var(--blue-t); color: var(--bblue); border-radius: 20px; padding: 1px 7px; margin-left: 4px; }
.hp-why { font-size: 12.5px; color: var(--mut); margin-top: 3px; }
.hp-lane, .hp-appr { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--line); }
.hp-sh + .hp-lane, .hp-sh + .hp-appr { border-top: 0; }
.hp-ll { font: 600 10.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); }
.hp-lt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hp-lt b { font-size: 13.5px; font-weight: 600; }
.hp-lt small { font-size: 12px; color: var(--mut); }
.hp-ls { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hp-ls small { font-size: 10px; color: var(--mut2); }
.hp-ls .govst.pend { border: 1px solid var(--line2); color: var(--mut); }
.hp-auto-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 6px 18px 8px; font-size: 13.5px; }
.hp-auto-row svg { width: 18px; height: 18px; color: var(--bblue); margin-top: 1px; }
.hp-auto-row b { display: block; }
.hp-auto-row small { color: var(--mut); font-size: 12.5px; }
.hp-auto-row .mono { font-family: var(--mono); font-size: 11.5px; }

/* keycard badge (UMB-DOA-001 levels) */
.v1kc { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--mono); letter-spacing: .03em; color: var(--ink); background: var(--nested); border-radius: 6px; padding: 3px 8px 3px 4px; white-space: nowrap; width: max-content; }
.v1kc i { width: 14px; height: 10px; border-radius: 2px; background: var(--kc); box-shadow: inset 0 -3px 0 rgba(255,255,255,.28); }
.v1kc small { font: 500 9.5px var(--mono); color: var(--mut2); text-transform: uppercase; letter-spacing: .06em; }
.v1kc.v1kc-none { padding-left: 8px; }

/* routing / answer cards */
.hr-title { padding: 0 18px 8px; font-size: 15.5px; font-weight: 800; }
.hr-rows .hr-row { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 9px 18px; border-top: 1px solid var(--line); font-size: 13.5px; }
.hr-v p { margin: 0; }
.hr-md { padding: 4px 18px 12px; font-size: 13.5px; color: var(--ink2); }
.hr-items { padding: 0 18px 4px; display: flex; flex-direction: column; gap: 8px; }
.hr-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; }
.hr-item b { display: block; font-size: 14px; }
.hr-item small { font-size: 12px; color: var(--mut); }
.hr-card .hb-ft { border-top: 1px solid var(--line); margin-top: 8px; }
.hr-serious { border-top-color: var(--danger-fg); }
.hr-serious .hb-hd .eyebrow { color: var(--danger-fg); }

/* chat history drawer */
.home-hist { display: flex; flex-direction: column; gap: 6px; }
.hh-row { display: grid; grid-template-columns: 10px 1fr 16px; gap: 12px; align-items: center; text-align: left; padding: 11px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.hh-row:hover { border-color: var(--ink); }
.hh-row b { display: block; font-size: 13.5px; font-weight: 600; }
.hh-row small { font-size: 12px; color: var(--mut2); }
.hh-row svg { width: 14px; height: 14px; color: var(--mut2); }
.hh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.hh-dot.wait { background: var(--emph); }
.hh-dot.done { background: var(--bblue); }

@media (max-width: 900px) {
  .ht-meta { display: none; }
  .ht-row { grid-template-columns: 26px minmax(0, 1fr); }
  .hb-row, .hp-lane, .hp-appr, .hr-rows .hr-row { grid-template-columns: 1fr; gap: 4px; }
  .hb-cite { justify-self: start; }
}

