/* GrowLantern look, v10: "a lantern in the field".
   Night-pine menu with one warm light (the page you are on), quiet paper-white pages, numbers set large in Bricolage,
   one line-icon style, fewer boxes: only real groups get a card, cards inside cards become flat tinted panels. */
:root {
  --paper: #f2f4f1; --paper2: #f7f8f6; --card: #fff; --ink: #15231d; --ink2: #3f4f47; --muted: #6c7a72;
  --line: #dce2dd; --line2: #ebefec;
  --night: #10221b; --night2: #193128; --night-ink: #c5d3cb; --night-mute: #7d938a;
  --lamp: #f4be4f; --lamp-soft: #fff4d6;
  --g: #1f7a53; --g2: #2a9467; --g-soft: #e4f1ea; --g-soft2: #f1f8f4; --dark: #10221b;
  --blue: #2f66c9; --blue-soft: #e8effb; --amber: #a66a00; --amber-soft: #fbf0d6; --red: #bf3a2b; --red-soft: #fbe9e6;
  --purple: #7350c2; --purple-soft: #f0ebfb;
  --r: 12px; --r-in: 8px; --shadow: none; --bg: var(--paper);
  --f-body: 'IBM Plex Sans', system-ui, sans-serif; --f-disp: 'Bricolage Grotesque', 'IBM Plex Sans', system-ui, sans-serif;
}
html, body { background: var(--paper); font: 14px/1.5 var(--f-body); color: var(--ink); }
.gli { display: inline-block; vertical-align: -3px; flex: none; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; }
a { color: var(--g); }

/* Menu: the night side of the lantern */
.sidebar { background: var(--night); border-right: 0; color: var(--night-ink); padding: 18px 12px; scrollbar-color: #2c463b transparent; }
.brand b { color: #fff; font-family: var(--f-disp); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.brand small { color: var(--night-mute); }
.logo { background: transparent; border: 1px solid #2c463b; border-radius: 10px; box-shadow: inset 0 0 14px rgba(244,190,79,.18); }
.logo svg path[fill] { fill: var(--lamp); } .logo svg path[stroke="#8ee6b6"] { stroke: var(--lamp); }
nav .sec { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--night-mute); margin: 18px 10px 4px; }
nav a { color: var(--night-ink); font-weight: 450; font-size: 13.5px; padding: 7px 10px; border-radius: 8px; gap: 11px; }
nav a .ic { width: 18px; height: 18px; display: grid; place-items: center; opacity: .85; color: var(--night-mute); }
nav a:hover { background: var(--night2); color: #fff; } nav a:hover .ic { color: var(--night-ink); }
nav a.active { background: var(--night2); color: #fff; font-weight: 600; }
nav a.active .ic { color: var(--lamp); opacity: 1; filter: drop-shadow(0 0 5px rgba(244,190,79,.55)); }
nav a .tag { background: rgba(244,190,79,.14); color: var(--lamp); font-weight: 600; font-size: 10px; }
nav a.active .tag { background: rgba(244,190,79,.2); color: var(--lamp); }
.auto-card { background: var(--night2); border: 1px solid #2c463b; color: var(--night-ink); border-radius: 10px; }
.auto-card b { color: #fff; }

/* Top bar */
.topbar { background: rgba(242,244,241,.9); border-bottom: 1px solid var(--line); }
.search { border-radius: 8px; border-color: var(--line); } .search > span { color: var(--muted); display: grid; }
.site-select, .icon-btn { border-radius: 8px; }
.icon-btn { display: inline-grid; place-items: center; color: var(--ink2); }
.job-badge { border-radius: 8px; background: var(--lamp-soft); color: #6b4a00; }

/* Type */
h1, .page-h h1, .hero h1, .home-head h1 { font-family: var(--f-disp); font-weight: 700; letter-spacing: -.025em; }
.page-h h1, .hero h1 { font-size: 28px; line-height: 1.15; } .home-head h1 { font-size: 32px; }
.kpi .val, .h-val, .mini-stats b, .send-rec .big, .ring .t b { font-family: var(--f-disp); font-weight: 700; letter-spacing: -.02em; }
.card h3 { font-size: 15px; font-weight: 600; }
.num, td.num, .kpi .val, .h-val { font-variant-numeric: tabular-nums; }

/* Page header: no gradient band, the title carries it */
.hero { background: transparent; border: 0; padding: 4px 0 6px; border-radius: 0; }
.hero .hico { width: 44px; height: 44px; border-radius: 10px; background: var(--g-soft); border: 0; color: var(--g); font-size: 20px; }
.hero p { color: var(--ink2); }
.step i { border-radius: 8px; }

/* Cards: one border, no shadow; a card inside a card is a flat tinted panel */
.card { border-radius: var(--r); border-color: var(--line); box-shadow: none; }
.card .card { background: var(--paper2); border: 0 !important; box-shadow: none !important; border-radius: var(--r-in); }
.card .card .card { background: #fff; }
.insight { background: var(--night); border-color: var(--night); }
.hcard { border-top: 0; padding: 16px 16px 14px; transition: border-color .12s; }
.hcard:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--st, var(--g)) 55%, var(--line)); }
.hcard .row:first-child .h-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--st, var(--g)) 12%, #fff); color: var(--st, var(--g)); }
.h-val { font-size: 30px; }
.st-pill { font-weight: 600; }
.empty { padding: 36px 20px; }

/* Status: small chips with a dot, not pills of color */
.status { border-radius: 6px; font-weight: 600; padding: 2px 8px 2px 7px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status.gray::before { opacity: .6; }
.pill, .kd { border-radius: 5px; }

/* Buttons and fields */
.btn { border-radius: 8px; font-weight: 600; } .btn.sm { border-radius: 7px; } .btn.xs { border-radius: 6px; }
.btn.primary { background: var(--g); border-color: var(--g); } .btn.primary:hover { background: #196645; }
.btn.dark { background: var(--night); border-color: var(--night); }
.btn .gli { margin-right: 1px; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea, .input { border-radius: 8px; border-color: var(--line); }
input:focus, select:focus, textarea:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(31,122,83,.14); }
.tab { border-radius: 8px; } .tab.active { background: var(--night); }
.pager button.cur { background: var(--night); }
.toggle input:checked + i { background: var(--g); }

/* Tables */
th { font-size: 12px; font-weight: 500; color: var(--muted); border-bottom-color: var(--line); }
td { border-bottom-color: var(--line2); }
tr.click:hover td { background: var(--paper2); }

/* Messages: the attention box on Home is the one lit panel; other verdicts stay light */
.verdict { border-radius: var(--r); border-width: 1px; }
.v-good, .v-ok { background: var(--g-soft2); border-color: #cfe5d8; } .v-warn { background: #fffaf0; border-color: #f0dfb4; }
.v-bad { background: #fff6f4; border-color: #f3d3cc; } .v-info { background: #f5f8fe; border-color: #d9e4f8; }
#hmInd + .verdict { background: var(--night); border-color: var(--night); color: var(--night-ink); padding: 18px 20px; }
#hmInd + .verdict .grow > b:first-child { color: #fff; font-family: var(--f-disp); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
#hmInd + .verdict li b { color: #fff; font-weight: 600; } #hmInd + .verdict a { color: var(--lamp); }
#hmInd + .verdict .v-ic { color: var(--lamp); filter: drop-shadow(0 0 8px rgba(244,190,79,.6)); }
#hmInd + .verdict.v-good .v-ic, #hmInd + .verdict.v-ok .v-ic { color: #7fd4a8; filter: drop-shadow(0 0 8px rgba(127,212,168,.5)); }

/* Charts and bars use the same palette */
.bar > i { background: var(--g); }
.hb-bar, .pbar, .stackbar, .mini-gauge { background: var(--line2); }
.chart-tip { border-radius: 8px; }
.term-tip { background: var(--night); }
.term-tip a, .tt-cat { color: var(--lamp); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: .01ms !important; } }
@media (max-width: 900px) { .sidebar { background: var(--night); } }
.v-ic { display: grid; place-items: center; }
.v-good .v-ic, .v-ok .v-ic { color: var(--g); } .v-warn .v-ic { color: var(--amber); } .v-bad .v-ic { color: var(--red); } .v-info .v-ic { color: var(--blue); }

/* Home cards */
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.hcard { gap: 10px; }
.h-top { display: flex; gap: 10px; align-items: flex-start; }
.h-top .h-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--st, var(--g)) 12%, #fff); color: var(--st, var(--g)); }
.h-t { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.h-top .st-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; margin-top: 2px; }
.h-top .st-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.h-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h-val { font-size: 30px; line-height: 1; }
.h-unit { font-size: 12px; color: var(--muted); }
.h-ch { font-weight: 600; } .h-ch.up { color: var(--g); } .h-ch.down { color: var(--red); }
.h-vis svg { max-width: 100%; display: block; }
.h-vis .mini-gauge { width: 100%; height: 6px; margin: 2px 0 0; }
.h-txt { color: var(--ink2); min-height: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hcard .lnk { color: var(--g); font-weight: 600; margin-top: auto; padding-top: 2px; }

/* Duotone icons: the soft fill under the line */
.gli .gl-f { opacity: .16; }
nav a .ic .gli .gl-f { opacity: .12; } nav a.active .ic .gli .gl-f { opacity: .35; }
.gli, .gi { stroke-width: 1.75; }
.status.warn { background: var(--amber-soft); color: var(--amber); }
.explain .ex-body b { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--ink2); }
.tt-cat { text-transform: none; letter-spacing: 0; font-size: 11px; }
.rep-kicker { text-transform: none; letter-spacing: 0; }

/* Small screens */
@media (max-width: 760px) {
  #scanBtn span { display: inline !important; } #scanBtn { font-size: 0; gap: 0; } #scanBtn svg { width: 17px; height: 17px; }
  .home-head h1, .page-h h1, .hero h1 { font-size: 26px; }
  .card h3 { flex-wrap: wrap; } .card h3 .sub { flex-basis: 100%; }
}
