/* KCRH — Ola light brand (lime #CDF564 on white). Welcoming, soft, never punitive. */
:root {
  --bg: #f3f7f9;
  --ink: #181E22;          /* Ola Electric ink (from olaelectric.com) */
  --body: #41515C;
  --muted: #687986;
  --green: #C6F23D;        /* Ola neon lime (hyperchrome) accent */
  --green-dark: #3C5A0E;   /* readable dark-lime for text / links / ok states */
  --action-green: #16aa51;
  --action-deep: #0f6f3b;
  --teal: #427a7a;
  --amber: #b96b00;
  --red: #c33a31;
  --lime-hover: #BCEA3F;   /* darker lime for button hover */
  --tint: #F4FBDD;         /* pale lime wash */
  --card: rgba(255,255,255,.78);
  --surface: rgba(255,255,255,.72);
  --surface-strong: rgba(255,255,255,.92);
  --line: #d6e1ea;
  --shadow: 0 20px 60px rgb(21 29 42 / .12);
  --shadow-lift: 0 28px 80px rgb(21 29 42 / .18);
  --radius: 16px;
  --glass-line: rgba(255,255,255,.78);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Figtree", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(243,247,249,.90) 0 20%, rgba(243,247,249,.56) 48%, rgba(243,247,249,.18) 100%),
    linear-gradient(180deg, rgba(243,247,249,.08), rgba(243,247,249,.36) 64%, rgba(243,247,249,.94) 100%),
    url("https://cdn.olaelectric.com/sites/evdp/pages/gen3/s1_x_gen3_plus_banner_web_image_v2.webp") center top / cover fixed no-repeat,
    linear-gradient(135deg, rgba(243,247,249,.96), rgba(236,248,248,.88) 44%, rgba(255,255,255,.96));
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(245,250,247,.76)),
    rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(214,225,234,.74);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 20px 60px rgb(21 29 42 / .11), 0 0 0 1px rgb(198 242 61 / .08), inset 0 1px 0 rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brandlink { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brandlink:hover .wordmark { color: #2C6B17; }
.ola-logo { height: 21px; width: auto; display: block; }
.ola {
  font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: #0A0A0A;
  background: var(--green); border-radius: 8px; padding: 5px 10px; line-height: 1;
}
.divider { width: 1px; height: 18px; background: var(--line); display: inline-block; }
.wordmark { font-weight: 700; letter-spacing: .03em; color: var(--ink); }
.kicker { color: var(--muted); font-size: 13px; font-weight: 600; }
.weekswitch { color: #34434c; font-size: 13px; font-weight: 700; border: 1px solid #cfdde5; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.70)); border-radius: 999px; min-height: 34px; padding: 3px 30px 3px 14px; cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; box-shadow: 0 10px 24px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.90); }
.weekswitch:hover { border-color: var(--muted); }
.who { display: flex; align-items: center; gap: 14px; }
.who-name { font-weight: 600; font-size: 14px; }
.navweek { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; font-size: 13px;
  min-height: 44px; color: #fff; background: linear-gradient(135deg, var(--action-green), var(--action-deep)); border: 1px solid rgb(15 111 59 / .82); border-radius: 999px; padding: 0 18px; white-space: nowrap; box-shadow: 0 10px 24px rgb(22 170 81 / .22), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .14s var(--ease); }
.navweek:hover { background: linear-gradient(135deg, var(--action-deep), #0a4f2b); border-color: #0a4f2b; transform: translateY(-1px); box-shadow: 0 14px 30px rgb(15 111 59 / .24), inset 0 1px 0 rgba(255,255,255,.16); }
.navweek .nw-short { display: none; }
.logout { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.logout:hover { color: var(--green-dark); }

/* layout */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 22px 70px; flex: 1; }
.loading { color: var(--muted); padding: 60px 0; text-align: center; }

.greet { margin: 6px 0 20px; }
.greet h1 { font-size: 28px; margin: 0 0 5px; }
.greet p { color: var(--body); margin: 0; font-size: 15px; }

/* blocks */
.blocks { display: grid; gap: 16px; }
.block {
  background: linear-gradient(135deg, rgba(245,250,247,.92), rgba(236,248,248,.78)), rgba(245,250,247,.84);
  border: 1px solid var(--glass-line); border-radius: 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgb(198 242 61 / .08), inset 0 1px 0 rgba(255,255,255,.92);
  overflow: hidden;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.block .strip { height: 5px; background: linear-gradient(90deg, var(--green), #b9eb60); box-shadow: 0 8px 18px rgb(198 242 61 / .28); }
.block .body { padding: 18px; }
.block h3 { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.block .cap { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.block .hint { color: var(--body); font-size: 13.5px; margin: 8px 0 0; line-height: 1.5; }
.pill {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--green-dark);
  background: rgba(255,255,255,.48); border: 1px solid rgb(198 242 61 / .26); border-radius: 999px; padding: 2px 9px; letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
}
.soon { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* footer */
.foot {
  display: flex; justify-content: space-between; padding: 16px 22px;
  border-top: 1px solid rgba(214,225,234,.74); color: var(--body); font-size: 12.5px;
  background: linear-gradient(135deg, rgba(255,255,255,.82), rgba(245,250,247,.62)), rgba(255,255,255,.72);
  box-shadow: 0 -12px 38px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}
.foot .muted { color: var(--muted); }
.muted { color: var(--muted); }

/* dashboard CTA */
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, rgba(245,250,247,.66), rgba(236,248,248,.42)), rgba(245,250,247,.46);
  border: 1px solid var(--glass-line); border-radius: 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgb(198 242 61 / .08), inset 0 1px 0 rgba(255,255,255,.92);
  padding: 20px 22px;
  min-height: 168px;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(4px) saturate(130%);
  backdrop-filter: blur(4px) saturate(130%);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  pointer-events: none;
  opacity: .82;
  background:
    linear-gradient(90deg, rgba(245,250,247,.62), rgba(245,250,247,.16) 34%, rgba(245,250,247,.02) 100%),
    url("https://cdn.olaelectric.com/sites/evdp/pages/hyperservice/hyper_service_banner_web_image_v4.webp") center / cover no-repeat;
  filter: saturate(1.16) contrast(1.08);
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background:
    linear-gradient(120deg, rgba(255,255,255,.34), transparent 36%),
    linear-gradient(90deg, transparent 0 64%, rgba(198,242,61,.10) 100%);
}
.cta > * { position: relative; z-index: 1; }
.cta .btn-primary {
  min-width: 162px;
  min-height: 58px;
  font-size: 17px;
  padding: 0 28px;
}
.cta-week { font-weight: 700; font-size: 15px; }
.cta-status { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.cta-status.ok { color: var(--green-dark); }

/* buttons */
.btn-primary, .btn-ghost {
  font-family: inherit; font-weight: 800; font-size: 14px; border-radius: 999px;
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; cursor: pointer; border: 1px solid var(--green); text-decoration: none; white-space: nowrap;
  transition: transform .14s var(--ease), box-shadow .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease);
}
.btn-primary { background: linear-gradient(135deg, var(--action-green), var(--action-deep)); color: #fff; border-color: rgb(15 111 59 / .82); box-shadow: 0 10px 24px rgb(22 170 81 / .22), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: linear-gradient(135deg, var(--action-deep), #0a4f2b); border-color: #0a4f2b; transform: translateY(-1px); box-shadow: 0 14px 30px rgb(15 111 59 / .24), inset 0 1px 0 rgba(255,255,255,.16); }
.btn-ghost { background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.68)); color: var(--ink); border-color: rgba(214,225,234,.92); box-shadow: 0 10px 24px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.92); }
.btn-ghost:hover { background: #fff; border-color: rgb(22 170 81 / .36); color: var(--action-deep); transform: translateY(-1px); box-shadow: 0 14px 30px rgb(21 29 42 / .09), inset 0 1px 0 rgba(255,255,255,.92); }

/* entry form */
.entry-head { margin: 0 0 18px; }
.entry-head .back { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.entry-head .back:hover { color: var(--green-dark); }
.entry-head h1 { font-size: 25px; margin: 10px 0 4px; }
.entry-head .sub { color: var(--body); font-size: 14px; margin: 0; }
.entry .block { margin-bottom: 16px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.block-head h3 { margin: 0; font-size: 16px; }
.rows { display: grid; gap: 12px; }
.row {
  display: grid; grid-template-columns: minmax(260px, 1.45fr) minmax(220px, 1fr) auto; gap: 10px; align-items: end;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.58)); border: 1px solid rgba(255,255,255,.72); border-radius: 16px; padding: 12px;
  box-shadow: 0 12px 30px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.82);
}
.row-risk {
  grid-template-columns: minmax(230px, 1.35fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(132px, .7fr) auto;
}
.row .fld:nth-child(1), .row .fld:nth-child(2) { grid-column: span 1; }
.fld { display: flex; flex-direction: column; gap: 4px; }
.fld .lbl { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.fld input, .fld select {
  font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}
.fld input:focus, .fld select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--tint); }
.carried { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--green-dark);
  background: var(--tint); border-radius: 7px; padding: 5px 10px; margin-bottom: 2px; }
.rowtools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 128px; }
.conf.resolved { color: var(--green-dark); font-weight: 600; }
.coach { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  margin-top: 4px; border-radius: 8px; padding: 7px 10px; line-height: 1.35; }
.coach.lo { background: #FDECEA; color: #9A2A1E; }
.coach.mid { background: #FFF4E0; color: #8A5A00; }
.coach.hi { background: var(--tint); color: var(--green-dark); }
.coach .score { font-weight: 800; font-size: 11px; border-radius: 999px; padding: 1px 7px; background: rgb(0 0 0 / .06); flex: none; }
.conf { font-size: 12px; color: var(--body); white-space: nowrap; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.btn-del { border: none; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; padding: 2px 6px; border-radius: 6px; }
.btn-del:hover { color: #C4382C; background: #FDECEA; }
.btn-add {
  margin-top: 12px; font-family: inherit; font-weight: 600; font-size: 13.5px; color: var(--green-dark);
  background: linear-gradient(180deg, rgba(244,251,221,.98), rgba(255,255,255,.74)); border: 1px solid rgb(198 242 61 / .50); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  box-shadow: 0 10px 24px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.92);
}
.btn-add:disabled { color: var(--muted); background: #F4F5F6; border-color: var(--line); cursor: not-allowed; }

/* save bar */
.savebar { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(245,250,247,.68)); border: 1px solid rgba(255,255,255,.92); border-radius: 22px; box-shadow: 0 24px 66px rgb(21 29 42 / .16), inset 0 1px 0 rgba(255,255,255,.92); padding: 10px 12px; margin-top: 18px; -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
/* Status / toast gets its OWN full-width row so it never gets crushed into one-word-per-line. */
.savestate { flex: 1 1 100%; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; }
.savestate:empty { display: none; }

/* changelog (admin) */
.cl-list { display: grid; gap: 1px; }
.cl-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cl-item:last-child { border-bottom: none; }
.cl-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 5px; flex: none; }
.cl-item.live .cl-dot { background: var(--green); }
.cl-item.soon .cl-dot { background: #D9DCD3; }
.cl-t { font-weight: 700; font-size: 14px; }
.cl-d { font-size: 13px; margin-top: 1px; }

/* roster list view: filter chips + filed/substance cells */
.rosterbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rfilter { display: inline-flex; gap: 4px; background: #EEF1EC; border-radius: 9px; padding: 3px; }
.rchip { border: none; background: transparent; font: inherit; font-size: 12.5px; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--body); }
.rchip.on { background: #fff; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rosterbar .ptsearch { flex: 1; min-width: 200px; margin: 0; }
.filed-yes { color: #3C7A1E; font-weight: 600; font-size: 12.5px; }
.filed-no { color: var(--muted); font-size: 12.5px; }
.bandchip { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: capitalize; white-space: nowrap; }
.bandchip.substantial { background: #E7F6D9; color: #3C7A1E; }
.bandchip.moderate { background: #FCEFD6; color: #8A5A12; }
.bandchip.thin { background: #FBE3DB; color: #A23A1C; }

/* work-substance card */
.substbar { display: flex; gap: 3px; height: 24px; border-radius: 7px; overflow: hidden; margin: 4px 0 10px; }
.substbar .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; min-width: 26px; }
.substbar .seg.sub { background: #6FB73A; }
.substbar .seg.mod { background: #E6A93A; }
.substbar .seg.thinx { background: #D9795A; }
.sublegend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--body); margin-bottom: 14px; }
.sublegend .sdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.sdot.sub { background: #6FB73A; } .sdot.mod { background: #E6A93A; } .sdot.thinx { background: #D9795A; }
.subcols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.subh { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .03em; }
.subrow { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13.5px; }
.subrow:last-child { border-bottom: none; }
.subrow .sn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subrow .sc { font-weight: 700; font-size: 12.5px; padding: 1px 8px; border-radius: 999px; }
.subrow .sc.good { background: #E7F6D9; color: #3C7A1E; }
.subrow .sc.low { background: #FBE3DB; color: #A23A1C; }
.sm { font-size: 12.5px; }
@media (max-width: 640px) { .subcols { grid-template-columns: 1fr; } }

/* substance card: clickable segments / legend / name rows */
.substbar .seg { cursor: pointer; transition: filter .12s; }
.substbar .seg:hover { filter: brightness(1.08); }
.sublegend .leg { cursor: pointer; }
.sublegend .leg:hover { text-decoration: underline; }
.subrow { cursor: pointer; }
.subrow:hover { background: #F6F8F3; }
.subrow:hover .sn { text-decoration: underline; color: var(--green-dark, #2C6B17); }
.rchip.rchip-substantial.on { background: #E7F6D9; color: #3C7A1E; }
.rchip.rchip-moderate.on { background: #FCEFD6; color: #8A5A12; }
.rchip.rchip-thin.on { background: #FBE3DB; color: #A23A1C; }

/* version chip (changelog) */
.verchip { display: inline-block; font-size: 12px; font-weight: 600; color: var(--muted); background: #EEF1EC; border-radius: 999px; padding: 3px 10px; margin-left: 10px; vertical-align: middle; font-variant-numeric: tabular-nums; }

/* peers view (P6) — redacted lateral cards */
.peergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.peercard { background: linear-gradient(135deg, rgba(245,250,247,.92), rgba(236,248,248,.78)), rgba(245,250,247,.84); border: 1px solid var(--glass-line); border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.92); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.peerhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pblk { margin: 9px 0; }
.pblk-h { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 3px; }
.pitem { font-size: 13.5px; padding: 3px 0; line-height: 1.4; }
.redtag { margin-top: 10px; font-size: 12px; color: var(--muted); background: #F4F2EC; border-radius: 7px; padding: 5px 9px; display: inline-block; }
@media (max-width: 760px) { .peergrid { grid-template-columns: 1fr; } }

/* signals digest (insights: what moved / risks / chronic) */
.digestlist { display: grid; gap: 1px; max-height: 360px; overflow-y: auto; }
.dgrow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.4; }
.dgrow:last-child { border-bottom: none; }
.dgtxt { flex: 1; }
a.dgtxt { color: var(--ink); text-decoration: none; }
a.dgtxt:hover { text-decoration: underline; }
.dgwho { color: var(--muted); font-size: 12px; white-space: nowrap; text-align: right; flex: none; }
/* clickable person names → person page */
.subrow .sn { color: #1C6B3A; }
a.dgwho.lnk { color: #1C6B3A; text-decoration: none; cursor: pointer; }
a.dgwho.lnk:hover { text-decoration: underline; }
a.dgtxt { color: #1C6B3A; }
/* redundancy / duplicate-work clusters (item 11) */
.rdcard { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; margin-bottom: 10px; background: #FAFBF8; }
.rdhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rdtheme { font-weight: 700; color: var(--ink); font-size: 14px; }
.rdcount { font-size: 11.5px; font-weight: 700; color: #8A5A12; background: #FCEFD6; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.rdpeople { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0; }
.rdperson { font-size: 12px; color: #1C6B3A; text-decoration: none; background: #E7F2EB; padding: 2px 9px; border-radius: 999px; }
.rdperson:hover { text-decoration: underline; }
.rdsamples { margin: 4px 0 0; padding-left: 18px; }
.rdsamples li { font-size: 12.5px; margin: 2px 0; color: var(--body); }
.nctag { display: inline-block; margin-left: 7px; font-size: 10.5px; font-weight: 700; color: #8A5A12; background: #FCEFD6; border-radius: 999px; padding: 1px 7px; vertical-align: middle; }
.cfbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px;
  background: linear-gradient(135deg, rgba(244,251,221,.96), rgba(255,255,255,.68)); border: 1px solid var(--line); border-radius: 16px; }
.cfbar .sm { padding: 7px 13px; font-size: 13px; }
.cfhint { font-size: 12.5px; color: var(--body); }
.advice { font-size: 12.5px; line-height: 1.45; color: var(--green-dark); background: linear-gradient(135deg, rgba(244,251,221,.96), rgba(255,255,255,.68));
  border: 1px solid rgb(198 242 61 / .20); border-radius: 16px; padding: 7px 11px; margin: 0 0 12px; }
/* Mood pulse (optional, anonymous) */
.optnote { font-weight: 500; font-size: 12px; color: var(--muted); }
.moodrow { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.moodlbl { width: 64px; font: 600 13px Figtree, system-ui, sans-serif; color: var(--body); }
.moodopts { display: flex; gap: 8px; flex-wrap: wrap; }
.moodface { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 62px;
  padding: 8px 6px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.72)); cursor: pointer; box-shadow: 0 8px 18px rgb(24 30 34 / .05); transition: transform .14s var(--ease), border-color .14s var(--ease), box-shadow .14s var(--ease), background .14s var(--ease); }
.moodface .mf { font-size: 22px; line-height: 1; }
.moodface .mn { font: 600 11px Figtree, system-ui, sans-serif; color: var(--muted); }
.moodface:hover { border-color: rgb(198 242 61 / .65); transform: translateY(-1px); box-shadow: 0 12px 26px rgb(198 242 61 / .12), inset 0 1px 0 rgba(255,255,255,.94); }
.moodface.on { border-color: var(--green); background: #fff; }
.moodface.on .mn { color: var(--green-dark); }
.moodnote { width: 100%; box-sizing: border-box; margin-top: 10px; border: 1px solid var(--line);
  border-radius: 14px; padding: 9px 11px; font: 14px Figtree, system-ui, sans-serif; color: var(--ink); background: rgba(255,255,255,.94); }
.moodro { margin: 14px 2px 0; font-size: 13px; }
@media (max-width: 620px) { .moodrow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .moodlbl { width: auto; } .moodface { min-width: 54px; } }
/* Mood dashboard card */
.moodcard .moodidx { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin: 6px 0 12px; }
.mdbig { display: flex; align-items: center; gap: 10px; }
.mdface { font-size: 34px; line-height: 1; }
.mdnum { font: 800 26px Figtree, system-ui, sans-serif; color: var(--ink); }
.mdden { font: 600 13px Figtree, system-ui, sans-serif; color: var(--muted); }
.mdbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; background: #fff; }
.mdseg { min-width: 2px; }
.mdseg.md1 { background: #E0524A; } .mdseg.md2 { background: #E89B3C; } .mdseg.md3 { background: #C9CDD2; }
.mdseg.md4 { background: #7FB84E; } .mdseg.md5 { background: var(--green-dark); }
.mdlegend { margin-top: 7px; }
.mdsparkwrap { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.moodgate { padding: 6px 0 2px; font-size: 13px; }
/* Substance review (write-time, non-blocking) + manager tip */
.reviewpanel { margin-top: 12px; }
.reviewcard { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.reviewcard.band-substantial { border-color: #7FB84E; background: var(--tint); }
.reviewcard.band-moderate { border-color: #E89B3C; }
.reviewcard.band-thin { border-color: #E0524A; }
.rvhead { font: 700 15px Figtree, system-ui, sans-serif; display: flex; align-items: center; gap: 10px; }
.rvscore { font: 700 13px Figtree, system-ui, sans-serif; color: var(--ink); background: var(--card); border-radius: 999px; padding: 3px 10px; }
.rvsum { font-size: 12.5px; margin: 4px 0 10px; }
.rvfactors { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-bottom: 8px; }
.rvf { font: 500 13px Figtree, system-ui, sans-serif; }
.rvf.ok { color: var(--green-dark); }
.rvf.no { color: #8a3b32; }
.rvtips { margin-top: 6px; }
.rvth { font: 700 12px Figtree, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--body); margin-bottom: 3px; }
.rvtips ul { margin: 0; padding-left: 18px; }
.rvtips li { font-size: 13px; color: var(--body); margin: 2px 0; }
.rvok { color: var(--green-dark); font: 600 13px Figtree, system-ui, sans-serif; }
.subrow { display: block; }
.srtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.srtip { font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
@media (max-width: 620px) { .rvfactors { grid-template-columns: 1fr; } }
.aqstat { cursor: pointer; transition: background .15s, box-shadow .15s; }
.aqstat:hover { background: var(--tint); box-shadow: 0 0 0 2px var(--green) inset; }
.aqflash { animation: aqflash 1.3s ease; }
@keyframes aqflash { 0%, 30% { background: var(--tint); box-shadow: 0 0 0 2px var(--green) inset; } 100% { background: transparent; box-shadow: none; } }
.emailchk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #3F454D; margin-right: 4px; cursor: pointer; user-select: none; white-space: nowrap; flex: 0 0 auto; }
.emailchk input { accent-color: #1C6B3A; }
.samplenote { background: #EAF3FF; border: 1px solid #BBD8FF; color: #1F4B82; border-radius: 12px; padding: 13px 16px; margin: 0 0 16px; font-size: 13.5px; line-height: 1.55; }
.markconf { border: 1px solid rgba(214,225,234,.92); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.68)); color: #3F454D; border-radius: 999px; padding: 4px 9px; font: 600 11.5px Figtree, sans-serif; cursor: pointer; box-shadow: 0 8px 18px rgb(21 29 42 / .05), inset 0 1px 0 rgba(255,255,255,.92); }
.markconf:hover { border-color: #8A5A12; color: #8A5A12; background: #FCEFD6; }
.confterms { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 0; }
.confterms .ctlbl { font-size: 11px; font-weight: 700; color: #8A5A12; }
.ctchip { display: inline-flex; align-items: center; gap: 5px; background: #FCEFD6; color: #8A5A12; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 600; }
.ctchip b { cursor: pointer; opacity: .7; font-weight: 700; }
.ctchip b:hover { opacity: 1; color: #B42318; }
.remind1 { border: none; background: transparent; cursor: pointer; font-size: 13px; padding: 0 3px; opacity: .55; line-height: 1; vertical-align: middle; }
.remind1:hover { opacity: 1; transform: scale(1.15); }
/* admin "what's counted" eligibility footnote */
.countnote { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.countnote summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); list-style: none; }
.countnote summary::-webkit-details-marker { display: none; }
.countnote summary:hover { color: var(--ink); }
.countnote-body { font-size: 12px; line-height: 1.6; color: var(--body); margin-top: 6px; }
.countnote-body code { background: #F1F3F5; padding: 0 4px; border-radius: 4px; font-size: 11px; }
/* clear empty-state banner (e.g. person with no submissions) */
.emptystate { margin-top: 12px; padding: 13px 16px; background: #FFF7E8; border: 1px solid #F2D9A0; border-radius: 10px; color: #8A5A12; font-weight: 600; font-size: 14px; }
/* AI substance review (item 14) */
.prev { margin: 10px 0 4px; }
.airev { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #FAFBF8; }
.airev-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.airev-score { font-weight: 800; font-size: 16px; color: var(--ink); }
.airev-notes { margin: 4px 0 0; padding-left: 18px; }
.airev-notes li { font-size: 13px; margin: 3px 0; color: var(--body); }
.dgask { font-size: 12.5px; margin-top: 2px; }
/* print / Save-as-PDF (item 15): strip chrome, expand for a clean leadership handout */
@media print {
  .topbar, .foot, .rpttools, .btn-ghost, .btn-primary, .askbar { display: none !important; }
  body { background: #fff; }
  .wrap, .wide { max-width: 100% !important; padding: 0 !important; }
  .panel { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
/* close-the-loop (P8) */
.lp-actions { display: flex; gap: 6px; align-items: center; margin-top: 5px; flex-wrap: wrap; }
.lp-badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.lp-badge.open { background: #F1EFE9; color: var(--muted); }
.lp-badge.own { background: #FCEFD6; color: #8A5A12; }
.lp-badge.done { background: #E7F6D9; color: #3C7A1E; }
.lp-btn { font: inherit; font-size: 11.5px; padding: 2px 9px; border: 1px solid rgba(214,225,234,.92); background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.68)); border-radius: 999px; cursor: pointer; color: var(--body); box-shadow: 0 8px 18px rgb(21 29 42 / .05), inset 0 1px 0 rgba(255,255,255,.92); }
.lp-btn:hover { background: #fff; border-color: rgb(22 170 81 / .36); color: var(--action-deep); }
.lp-btn:disabled { opacity: .5; cursor: default; }
.lp-btn.ghost { color: var(--muted); }
.aqacts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.loopstat { font-size: 12px; font-weight: 600; color: #3C7A1E; background: #EEF6E2; border-radius: 999px; padding: 2px 10px; margin-left: 8px; white-space: nowrap; }

/* consolidated report (P7) */
.rpttools { margin-top: 12px; }
.rpt-overall { border-left: 3px solid var(--green); }
.rpt-md p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.rpt-md ul { margin: 6px 0; padding-left: 20px; }
.rpt-md li { margin: 5px 0; font-size: 14px; line-height: 1.45; }
.rpt-md b { color: var(--ink); }

/* carry-forward card (item 10) */
.cfcard { background: linear-gradient(135deg, rgba(245,250,247,.92), rgba(236,248,248,.78)), rgba(245,250,247,.84); border: 1px solid var(--glass-line); border-radius: 22px; padding: 15px 18px; margin-top: 16px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.92); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.cfhead { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.cflist { display: grid; gap: 5px; margin-bottom: 10px; }
.cfitem { display: flex; gap: 8px; font-size: 13.5px; align-items: baseline; line-height: 1.4; }
.cftag { flex: none; }

/* dashboard history list */
.dashboard-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .82fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}
.dashboard-pair.no-mood { display: block; }
.dashboard-pair #moodci:empty { display: none; }
.dashboard-pair .moodblock,
.dashboard-pair .histsec { margin-top: 0; }
.histsec { margin-top: 22px; }
.histhead { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.histlist { display: grid; gap: 8px; }
.histrow { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, rgba(245,250,247,.92), rgba(236,248,248,.78)), rgba(245,250,247,.84); border: 1px solid var(--glass-line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 10px 24px rgb(24 30 34 / .055), inset 0 1px 0 rgba(255,255,255,.76); transition: transform .14s var(--ease), border-color .14s var(--ease), box-shadow .14s var(--ease); }
.histrow:hover { border-color: rgb(198 242 61 / .50); transform: translateY(-1px); box-shadow: 0 18px 44px rgb(21 29 42 / .10), inset 0 1px 0 rgba(255,255,255,.88); }
.histrow .hw { font-weight: 700; font-size: 14px; min-width: 86px; }
.histrow .hi { font-size: 13px; flex: 1; }
.histrow .hs { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.histrow .hs.ok { color: var(--green-dark); }
.histrow .hs.miss { color: var(--green-dark); }
/* a missed week — dashed, inviting a late catch-up rather than scolding */
.histrow.missed { background: #FCFDFA; border-style: dashed; }
.histrow.missed .hw { color: var(--muted); }
.histmore { margin-top: 8px; }
.histmore > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--green-dark); list-style: none; padding: 4px 2px; }
.histmore > summary::-webkit-details-marker { display: none; }
.histmore[open] > summary { margin-bottom: 8px; }

.rtag { color: #9A5A00; font-weight: 600; font-size: 12px; background: #FFF4E0; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.pmeta { font-size: 13px; margin-top: -6px; }

/* pending people table (search + sort) */
.ptsearch { width: 100%; font-family: inherit; font-size: 13.5px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; margin: 12px 0 8px; background: rgba(255,255,255,.94); box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
.ptsearch:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--tint); }
.pttablewrap { max-height: 420px; overflow: auto; border: 1px solid rgba(214,225,234,.86); border-radius: 20px; background: rgba(255,255,255,.60); box-shadow: inset 0 1px 0 rgba(255,255,255,.82); }
.pttable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: rgba(255,255,255,.76); }
.pttable th { text-align: left; padding: 9px 12px; position: sticky; top: 0; background: linear-gradient(180deg, rgba(236,248,248,.98), rgba(226,241,241,.86)); cursor: pointer; user-select: none; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #2c5f56; border-bottom: 1px solid rgba(214,225,234,.92); white-space: nowrap; }
.pttable th:hover { color: var(--ink); }
.pttable td { padding: 9px 12px; border-bottom: 1px solid rgba(214,225,234,.78); vertical-align: middle; background: rgba(255,255,255,.52); }
.pttable td:first-child { background: rgba(236,248,248,.52); font-weight: 800; }
.pttable tbody tr:hover td { background: rgba(244,251,221,.78); }
.pttable a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.pttable a:hover { text-decoration: underline; }
.sortcaret { font-size: 9px; }

/* fuzzy person autocomplete */
.pewrap { position: relative; flex: 1; }
.pewrap > input { width: 100%; }
.sugbox { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); z-index: 30; max-height: 300px; overflow: auto; }
.sugitem { padding: 9px 12px; cursor: pointer; font-size: 13.5px; display: flex; justify-content: space-between; gap: 12px; }
.sugitem:hover, .sugitem.active { background: var(--tint); }
.sugitem .sm { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* admin participation stat card */
.partcard { background: linear-gradient(135deg, rgba(245,250,247,.92), rgba(236,248,248,.78)), rgba(245,250,247,.84); border: 1px solid var(--glass-line); border-radius: 22px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.92); padding: 18px 20px; margin-top: 16px; -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.parthead { font-weight: 800; font-size: 15px; margin-bottom: 12px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.partstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pstat { background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.58)); border: 1px solid rgba(255,255,255,.72); border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 30px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.82); }
.pstat .pv { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pstat .pv.warn { color: #9A5A00; }
.pstat .pl { font-size: 12px; color: var(--muted); font-weight: 600; }
.partprogress { height: 8px; background: #EEF1EC; border-radius: 999px; overflow: hidden; margin: 0 0 12px; }
.partprogress span { display: block; height: 100%; min-width: 3px; background: var(--green); border-radius: inherit; }
.partbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost.sm { padding: 7px 12px; font-size: 13px; }
.pendinglist { margin-top: 12px; display: grid; gap: 2px; max-height: 460px; overflow: auto; }
.prow { display: flex; justify-content: space-between; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.allin { margin-top: 8px; font-size: 13px; }
.actionq { border-color: #DDE7C0; }
.aqstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.aqstats > div { background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.58)); border: 1px solid rgba(255,255,255,.72); border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 30px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.82); }
.aqstats b { display: block; font-size: 23px; line-height: 1; }
.aqstats span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-top: 4px; }
.aqgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aqsec { border: 1px solid rgba(255,255,255,.72); border-radius: 16px; padding: 11px 12px; background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.58)); min-width: 0; box-shadow: 0 12px 30px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.82); }
.aqh { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 7px; }
.aqh span { background: #EEF1EC; color: var(--body); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.aqsec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aqsec li { font-size: 13px; line-height: 1.35; border-top: 1px solid var(--line); padding-top: 8px; }
.aqsec li:first-child { border-top: none; padding-top: 0; }
.aqsec a { color: var(--green-dark); text-decoration: none; font-weight: 700; }
.aqsec a:hover { text-decoration: underline; }
.aqsec .lp-btn { margin-top: 5px; }
.aqscore { margin-left: 6px; font-size: 11.5px; font-weight: 800; color: #A23A1C; background: #FBE3DB; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.roitem.empty { font-style: italic; }
.roask { font-size: 12.5px; margin-top: 3px; }

/* lock / submission window */
.windownote { background: var(--tint); border: 1px solid #DEECB8; border-radius: 8px; padding: 9px 13px; font-size: 13px; color: var(--green-dark); margin-bottom: 14px; }
/* deadline-cue states — soft, never alarming: green=open, amber=closing soon, blue=closed-but-catch-up */
.windownote.due { background: #FFF7E6; border-color: #F4D58A; color: #8A5A00; }
.windownote.closed { background: #EEF4FB; border-color: #C9DCF0; color: #355C86; }
.cta-deadline { font-size: 12.5px; font-weight: 600; margin-top: 4px; color: var(--green-dark); }
.cta-deadline.due { color: #8A5A00; }
.cta-deadline.closed { color: #355C86; }
.rolist { display: grid; gap: 8px; }
.roitem { background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.58)); border: 1px solid rgba(255,255,255,.72); border-radius: 16px; padding: 10px 13px; font-size: 14px; box-shadow: 0 12px 30px rgb(21 29 42 / .06), inset 0 1px 0 rgba(255,255,255,.82); }

/* insights / analytics */
.wrap.wide { max-width: 1240px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: linear-gradient(135deg, rgba(245,250,247,.92), rgba(236,248,248,.78)), rgba(245,250,247,.84); border: 1px solid var(--glass-line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.92); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.kpi-v { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.kpi-l { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 2px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.panel { background: linear-gradient(135deg, rgba(245,250,247,.92), rgba(236,248,248,.78)), rgba(245,250,247,.84); border: 1px solid var(--glass-line); border-radius: 22px; padding: 18px 20px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.92); margin-bottom: 16px; -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
.panel h3 { margin: 0 0 6px; font-size: 15px; }
.chart { width: 100%; height: 260px; }
.askbar { display: flex; gap: 10px; }
.askbar input { flex: 1; font-family: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.askbar input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--tint); }
#answer, #person { margin-top: 14px; }
.answer-md { background: var(--tint); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; font-size: 14px; line-height: 1.55; color: var(--ink); }
.answer-md ul { margin: 0; padding-left: 20px; }
.answer-md li { margin: 5px 0; }
.answer-md p { margin: 6px 0; }
.dtable { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.dtable th, .dtable td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.dtable th { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .03em; }
details.sql { margin-top: 10px; } details.sql pre { background: var(--card); padding: 10px; border-radius: 8px; overflow: auto; font-size: 12px; }
.pweek { font-weight: 700; margin: 14px 0 6px; color: var(--green-dark); }
.pitem { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; border-radius: 5px; padding: 1px 6px; margin-right: 6px; background: var(--tint); color: var(--green-dark); }
.badge.risk { background: #FDECEA; color: #9A2A1E; } .badge.opp { background: #FFF4E0; color: #8A5A00; }

@media (max-width: 900px) {
  .row, .row-risk { grid-template-columns: 1fr 1fr; }
  .rowtools { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; min-width: 0; }
  .dashboard-pair { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, 1fr); } .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .topbar { align-items: center; flex-wrap: nowrap; gap: 8px; padding: 10px 12px; }
  .brand { gap: 8px; min-width: 0; }
  .wordmark, .divider { display: none; }            /* OLA logo carries the brand on mobile */
  .who { gap: 8px; min-width: 0; }
  .who-name { display: none; }                       /* save width; identity is obvious post-login */
  .navweek { padding: 6px 10px; font-size: 12px; }
  .navweek .nw-full { display: none; }
  .navweek .nw-short { display: inline; }
  .wrap { padding: 22px 14px 64px; }
  .greet h1 { font-size: 22px; }
  .kicker { display: none; }
  .row, .row-risk { grid-template-columns: 1fr; }
  .rowtools { flex-direction: row; justify-content: space-between; }
  .cta { flex-direction: column; align-items: stretch; }
  .cta::before { display: none; }
  .partstats { grid-template-columns: 1fr; gap: 8px; }
  .aqstats, .aqgrid { grid-template-columns: 1fr; }
  .histrow { align-items: flex-start; flex-wrap: wrap; }
  /* On phones the action bar flows at the end of the form (not sticky) so it can't sit under
     the fixed 💬 Feedback button — body already reserves bottom space for that button. */
  .savebar { position: static; flex-wrap: wrap; justify-content: stretch; }
  .savebar .btn-primary, .savebar .btn-ghost { flex: 1 1 auto; }
  .savestate { flex-basis: 100%; }
  .pttable { min-width: 820px; }
}

/* First-login onboarding */
.ob-ov { position: fixed; inset: 0; z-index: 10000; background: rgba(10,12,15,.5); display: flex; align-items: center; justify-content: center; padding: 18px; }
.ob-card { position: relative; background: #fff; border-radius: 18px; max-width: 460px; width: 100%; padding: 28px 26px 22px; box-shadow: 0 24px 70px rgba(0,0,0,.32); font-family: Figtree, system-ui, sans-serif; color: var(--ink); }
.ob-x { position: absolute; top: 14px; right: 16px; border: none; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.ob-icon { font-size: 40px; line-height: 1; }
.ob-card h2 { margin: 10px 0 8px; font-size: 21px; }
.ob-body { font-size: 14.5px; line-height: 1.5; color: var(--body); }
.oblist { margin: 8px 0; padding-left: 4px; list-style: none; }
.oblist li { margin: 4px 0; }
.ob-dots { display: flex; gap: 6px; justify-content: center; margin: 18px 0 14px; }
.ob-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
.ob-dots span.on { background: var(--green); width: 18px; border-radius: 4px; }
.ob-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ob-back { border: none; background: none; color: var(--muted); font: 600 13px Figtree, system-ui, sans-serif; cursor: pointer; padding: 8px; }
.ob-next { padding: 10px 18px; }

/* Help / guides */
.guidegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 8px; }
.guidecard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.guidecard video { width: 100%; display: block; background: #0B0D0F; aspect-ratio: 16 / 10; }
.gc-body { padding: 13px 15px 16px; }
.gc-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.gc-mins { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.gc-tag { font-size: 10.5px; font-weight: 700; color: var(--green-dark); background: var(--tint); border-radius: 999px; padding: 1px 8px; }
.gc-desc { font-size: 13px; color: var(--body); line-height: 1.45; margin-top: 5px; }

/* multiline "thing" field (auto-grows via JS) */
.fld textarea { font-family: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; width: 100%;
  resize: vertical; min-height: 62px; line-height: 1.45; overflow-y: auto; display: block; box-sizing: border-box; }
.fld textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--tint); }
.row { align-items: start; }
