/* Inset kit: the second look for the Dash app series (from Nov 20, 2026).
   Layers, from the back: a warm gray page, a sidebar that sits on the page, and one white app panel
   with rounded corners. Inside the panel, every card is a light surface with a small header strip,
   and its content sits inset in a white panel with a hairline border and a soft shadow.
   Copy into the app's assets/ next to inset.py's output. Edit here, not in the copies. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
:root {
  --page:#E7E7E4; --panel:#FBFBFA; --surface:#F2F2EF; --inset:#FFFFFF;
  --line:#E4E4E0; --line-2:#D8D8D3;
  --ink:#141416; --ink-2:#3A3A3F; --muted:#76767C; --faint:#A3A3A8;
  --purple:#7A76FF; --purple-ink:#4F49E0; --lavender:#ECEBFD; --blue:#3479F3;
  --pink:#FF2C6D; --amber:#D9822B; --amber-soft:#FBF1E4; --green:#1F9D55; --green-soft:#E6F4EC; --red-soft:#FDE8EE;
  --r-panel:16px; --r-card:13px; --r-inset:9px; --r-sm:7px;
  --shadow-inset:0 1px 2px rgba(20,20,22,.05), 0 1px 1px rgba(20,20,22,.03);
  --shadow-panel:0 1px 3px rgba(20,20,22,.06), 0 8px 24px rgba(20,20,22,.05);
  --font:Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing:border-box; }
html, body { margin:0; background:var(--page); color:var(--ink); font-family:var(--font); font-size:13.5px; line-height:1.45; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
.muted { color:var(--muted); }
.num { font-variant-numeric:tabular-nums; }

/* shell: sidebar on the page, one white panel for the content */
.shell { display:flex; gap:10px; padding:10px; min-height:100vh; }
.side { width:232px; flex:none; display:flex; flex-direction:column; gap:14px; padding:4px 2px; position:sticky; top:10px; height:calc(100vh - 20px); }
.panel { flex:1; min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:var(--r-panel); box-shadow:var(--shadow-panel); display:flex; flex-direction:column; }

/* sidebar */
.org { display:flex; align-items:center; gap:10px; padding:9px 10px; background:var(--inset); border:1px solid var(--line); border-radius:11px; box-shadow:var(--shadow-inset); }
.org-mark { width:30px; height:30px; border-radius:8px; background:var(--ink); display:grid; place-items:center; flex:none; }
.org-mark img { width:17px; height:17px; filter:invert(1); }
.org-name { font-weight:600; font-size:13.5px; line-height:1.2; }
.org-sub { font-size:12px; color:var(--muted); line-height:1.25; }
.side-search { display:flex; align-items:center; gap:8px; padding:7px 10px; background:var(--inset); border:1px solid var(--line); border-radius:9px; color:var(--faint); font-size:13px; }
.side-search img { width:14px; opacity:.5; }
.side-search .kbd { margin-left:auto; font-size:11px; color:var(--muted); border:1px solid var(--line); border-radius:5px; padding:0 5px; background:var(--panel); }
.nav-group { display:flex; flex-direction:column; gap:1px; }
.nav-h { font-size:11.5px; font-weight:500; color:var(--faint); padding:0 10px 5px; }
.nav-i { display:flex; align-items:center; gap:10px; padding:7px 10px; border-radius:9px; color:var(--ink-2); text-decoration:none; font-weight:500; font-size:13.5px; border:1px solid transparent; }
.nav-i img { width:16px; height:16px; opacity:.72; }
.nav-i:hover { background:rgba(255,255,255,.55); }
.nav-i.on { background:var(--inset); border-color:var(--line); box-shadow:var(--shadow-inset); color:var(--ink); }
.nav-i .count { margin-left:auto; font-size:11.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.nav-i .badge { margin-left:auto; background:#E5484D; color:#fff; border-radius:6px; font-size:11px; font-weight:600; padding:0 6px; }
.nav-dot { width:7px; height:7px; border-radius:2px; background:var(--line-2); margin:0 4px 0 4px; }
.side-foot { margin-top:auto; display:flex; flex-direction:column; gap:8px; }
.source { font-size:11.5px; color:var(--muted); padding:0 10px; line-height:1.4; }

/* top bar inside the panel */
.topbar { display:flex; align-items:center; gap:10px; padding:11px 22px; border-bottom:1px solid var(--line); }
.crumbs { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); }
.crumbs a { text-decoration:none; color:var(--muted); }
.crumbs a:hover { color:var(--ink); }
.crumbs .sep { color:var(--faint); }
.crumbs .here { color:var(--ink); font-weight:500; }
.top-r { margin-left:auto; display:flex; align-items:center; gap:8px; }
.pill { display:inline-flex; align-items:center; gap:7px; padding:4px 10px; border-radius:999px; background:var(--surface); border:1px solid var(--line); font-size:12px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
.pill .dot { width:7px; height:7px; border-radius:50%; background:var(--green); }

/* page */
.page { padding:20px 22px 26px; display:flex; flex-direction:column; gap:14px; }
.head { display:flex; align-items:flex-start; gap:14px; }
.head-icon { width:44px; height:44px; border-radius:12px; background:var(--surface); border:1px solid var(--line); display:grid; place-items:center; flex:none; }
.head-icon img { width:22px; opacity:.8; }
.title-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.title { font-size:22px; font-weight:600; letter-spacing:-0.015em; margin:0; }
.subtitle { color:var(--muted); font-size:13.5px; margin-top:2px; }
.tag { display:inline-flex; align-items:center; gap:6px; padding:2px 9px; border-radius:7px; font-size:12px; font-weight:500; background:var(--surface); border:1px solid var(--line); color:var(--ink-2); }
.tag.good { background:var(--green-soft); border-color:#CDE9D8; color:#16784A; }
.tag.warn { background:var(--amber-soft); border-color:#F2DDBF; color:#9A5A16; }
.tag.bad { background:var(--red-soft); border-color:#F7CBD8; color:#B4234F; }
.tag .dot { width:6px; height:6px; border-radius:50%; background:currentColor; }
.actions { margin-left:auto; display:flex; gap:8px; }
.btn { display:inline-flex; align-items:center; gap:7px; padding:7px 12px; border-radius:9px; border:1px solid var(--line-2); background:var(--inset); font:500 13px var(--font); color:var(--ink); text-decoration:none; cursor:pointer; box-shadow:var(--shadow-inset); }
.btn.dark { background:var(--ink); color:#fff; border-color:var(--ink); }
.btn img { width:14px; }
.btn.dark img { filter:invert(1); }

/* grid */
.row { display:grid; gap:12px; }
.c2 { grid-template-columns:1fr 1fr; } .c3 { grid-template-columns:repeat(3, 1fr); } .c4 { grid-template-columns:repeat(4, 1fr); }
.c5 { grid-template-columns:repeat(5, 1fr); }
.c-2-1 { grid-template-columns:2fr 1fr; } .c-1-2 { grid-template-columns:1fr 2fr; } .c-3-2 { grid-template-columns:3fr 2fr; } .c-2-3 { grid-template-columns:2fr 3fr; }

/* KPI: an inset white box with the value and a mini chart, and a footnote on the surface below it */
.kpi { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:5px; display:flex; flex-direction:column; }
.kpi-in { background:var(--inset); border:1px solid var(--line); border-radius:var(--r-inset); box-shadow:var(--shadow-inset); padding:11px 12px 10px; display:flex; justify-content:space-between; align-items:flex-end; gap:8px; min-height:86px; }
.kpi-l { font-size:12px; color:var(--muted); font-weight:500; display:flex; align-items:center; gap:6px; }
.kpi-v { font-size:24px; font-weight:600; letter-spacing:-0.02em; margin-top:6px; font-variant-numeric:tabular-nums; line-height:1.1; }
.kpi-v small { font-size:13px; font-weight:500; color:var(--muted); letter-spacing:0; margin-left:4px; }
.kpi-mini { width:96px; height:40px; flex:none; }
.kpi-foot { display:flex; align-items:center; gap:7px; padding:7px 8px 3px; font-size:12px; color:var(--muted); }
.kpi-foot .dot { width:6px; height:6px; border-radius:50%; flex:none; }
.up { color:#16784A; font-weight:600; } .down { color:#B4234F; font-weight:600; }

/* card: light surface, header strip, inset white content */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-card); padding:5px; display:flex; flex-direction:column; min-width:0; }
.card-head { display:flex; align-items:center; gap:8px; padding:6px 8px 8px; min-height:30px; }
.card-head img.ico { width:14px; opacity:.62; }
.card-t { font-size:12.5px; font-weight:600; color:var(--ink-2); }
.card-t .sub { font-weight:400; color:var(--muted); }
.card-r { margin-left:auto; display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); }
.inset { background:var(--inset); border:1px solid var(--line); border-radius:var(--r-inset); box-shadow:var(--shadow-inset); padding:12px; flex:1; min-width:0; }
.inset.flush { padding:0; overflow:hidden; }
.card-note { font-size:12px; color:var(--muted); padding:8px 8px 3px; }
.legend { display:flex; gap:12px; flex-wrap:wrap; font-size:12px; color:var(--muted); }
.legend span { display:inline-flex; align-items:center; gap:6px; }
.legend i { width:9px; height:9px; border-radius:2.5px; display:inline-block; }
.legend i.line { height:2.5px; width:14px; border-radius:2px; }
.chip-good { font-size:12px; font-weight:500; color:#16784A; background:var(--green-soft); border-radius:6px; padding:2px 8px; }
.chip-warn { font-size:12px; font-weight:500; color:#9A5A16; background:var(--amber-soft); border-radius:6px; padding:2px 8px; }

/* lists inside an inset */
.list { display:flex; flex-direction:column; }
.li { display:flex; align-items:center; gap:12px; padding:10px 4px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--ink); }
.li:last-child { border-bottom:0; }
.li-ico { width:30px; height:30px; border-radius:8px; display:grid; place-items:center; flex:none; background:var(--amber-soft); border:1px solid #F2DDBF; }
.li-ico img { width:15px; opacity:.75; }
.li-t { font-weight:600; font-size:13px; }
.li-s { font-size:12px; color:var(--muted); }
.li-r { margin-left:auto; font-size:12.5px; font-weight:500; display:flex; align-items:center; gap:6px; white-space:nowrap; }

/* segmented control (dcc.RadioItems className="seg") */
.seg { display:inline-flex; gap:2px; background:var(--surface); border:1px solid var(--line); padding:2px; border-radius:9px; }
.seg .dash-options-list-option-wrapper, .seg input { display:none; }
.seg .dash-options-list-option, .seg label { padding:0 !important; margin:0 !important; }
.seg-l { display:inline-flex; padding:4px 10px; border-radius:7px; font-size:12.5px; font-weight:500; color:var(--muted); cursor:pointer; }
.seg .selected .seg-l, .seg input:checked + .seg-l { background:var(--inset); color:var(--ink); box-shadow:0 1px 2px rgba(0,0,0,.08); }

/* glossary */
.gloss { display:grid; grid-template-columns:220px 1fr; gap:0; }
.gloss dt { font-weight:600; padding:11px 4px; border-bottom:1px solid var(--line); }
.gloss dd { margin:0; padding:11px 4px; border-bottom:1px solid var(--line); color:var(--ink-2); }

/* AG Grid, dense and quiet */
.ag-theme-quartz { --ag-font-family:var(--font); --ag-font-size:12.5px; --ag-header-background-color:#FAFAF9; --ag-border-color:var(--line);
  --ag-row-border-color:#EFEFEC; --ag-header-foreground-color:var(--muted); --ag-row-hover-color:#F6F6FF; --ag-selected-row-background-color:var(--lavender);
  --ag-wrapper-border-radius:0; --ag-border-radius:0; --ag-cell-horizontal-padding:12px; --ag-header-height:34px; --ag-row-height:33px; --ag-wrapper-border:none; }
.ag-theme-quartz .ag-root-wrapper { border:0; }
.ag-theme-quartz .ag-header-cell-text { font-weight:500; }
.ag-row { cursor:pointer; }

.foot { font-size:12px; color:var(--faint); padding:4px 2px 0; }
.js-plotly-plot .plotly .modebar { display:none !important; }

/* metrics (semantic layer) page */
.metrics { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.metric { background:var(--inset); border:1px solid var(--line); border-radius:var(--r-inset); box-shadow:var(--shadow-inset); padding:14px 16px;
          display:flex; flex-direction:column; gap:8px; min-width:0; }
.m-head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.m-name { font-size:15px; font-weight:600; color:var(--ink); }
.m-val { font-size:13px; font-weight:600; color:var(--purple-ink); background:var(--lavender); border-radius:999px; padding:2px 9px; white-space:nowrap; }
.m-q { font-size:12.5px; color:var(--muted); }
.m-def { font-size:13px; line-height:1.5; color:var(--ink-2); }
.m-box { background:#FAFAF8; border:1px solid var(--line); border-radius:8px; padding:8px 10px; }
.m-lab { display:block; font-size:11px; color:var(--muted); margin-bottom:3px; }
.m-formula { font-size:13.5px; color:var(--ink); line-height:1.45; }
.m-note { font-size:12px; color:#9A5A12; background:var(--amber-soft); border-radius:8px; padding:6px 10px; }
.m-src { margin-top:2px; }
.m-code { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:11.5px; line-height:1.5; color:#2B2B33; background:#F7F7FB;
          border:1px solid #E8E7F6; border-radius:8px; padding:10px 12px; margin:0; white-space:pre-wrap; word-break:break-word; }
@media (max-width: 1100px) { .metrics { grid-template-columns:1fr; } }

/* MCP tools page */
.tools { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.tool { border:1px solid var(--line); border-radius:10px; padding:12px 14px; background:#FCFCFB; }
.tool-h { display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.tool-h .ico { width:15px; height:15px; flex:none; }
.tool-n { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:13px; font-weight:600; color:var(--ink); background:none; }
.tool-sig { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:11.5px; color:var(--muted); margin-bottom:6px; word-break:break-word; }
.tool-doc { font-size:12.5px; line-height:1.5; color:var(--ink-2); }
@media (max-width: 1100px) { .tools { grid-template-columns:1fr; } }

/* flood watch app additions (chips and map key as in the methane app) */
.chips { display:inline-flex; gap:4px; flex-wrap:wrap; }
.chips .dash-options-list-option-wrapper, .chips input { display:none; }
.chips .dash-options-list-option, .chips label { padding:0 !important; margin:0 !important; }
.chip { display:inline-flex; padding:3px 9px; border-radius:999px; font-size:12px; font-weight:500; color:var(--muted);
        border:1px solid var(--line); background:var(--inset); cursor:pointer; }
.chips .selected .chip, .chips input:checked + .chip { color:var(--ink); border-color:#C9C7F7; background:var(--lavender); }
.mapkey { display:flex; flex-wrap:wrap; gap:6px 16px; padding:10px 14px; font-size:12px; color:var(--muted); border-top:1px solid var(--line); }
.mapkey span { display:inline-flex; align-items:center; gap:6px; }
.mapkey .sw { width:9px; height:9px; border-radius:50%; display:inline-block; }
.mapkey .ln { width:16px; height:3px; border-radius:2px; display:inline-block; }
.mapkey .sq { width:10px; height:10px; border-radius:2px; display:inline-block; }
.mapkey .ramp { width:120px; height:8px; border-radius:2px; display:inline-block; }
.li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; border-bottom:1px solid var(--line);
      text-decoration:none; color:inherit; }
.li:last-child { border-bottom:0; }
.li:hover { background:#FAFAF9; }
.li-main { min-width:0; }
.li-r { white-space:nowrap; font-size:13px; }
/* the NWS warning */
.warn-box { display:grid; grid-template-columns: 1fr 1fr; gap:0; }
.warn-box > div { padding:14px 16px; }
.warn-box > div + div { border-left:1px solid var(--line); }
.warn-h { display:flex; align-items:center; gap:8px; font-weight:600; font-size:13.5px; color:var(--ink); margin-bottom:6px; }
.warn-h .dot { width:8px; height:8px; border-radius:50%; background:#FF2C6D; box-shadow:0 0 0 4px rgba(255,44,109,.15); }
.warn-p { font-size:12.5px; line-height:1.55; color:#3A3A3F; margin:0 0 6px; }
.warn-p b { font-weight:600; color:var(--ink); }
.warn-ul { margin:0; padding-left:18px; font-size:12.5px; line-height:1.6; color:#3A3A3F; }
.peaks { display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; margin-top:10px; }
.peak { border:1px solid var(--line); border-radius:8px; padding:8px 10px; background:#fff; }
.peak .d { font-size:11.5px; color:var(--muted); }
.peak .v { font-size:18px; font-weight:650; color:var(--ink); letter-spacing:-0.01em; }
.peak .v small { font-size:11.5px; font-weight:500; color:var(--muted); margin-left:2px; }
.peak .n { font-size:11.5px; color:var(--muted); }
.peak.max { border-color:#FFB3C9; background:#FFF5F8; }
.peak.max .v { color:#D3124F; }
.frame-ctl { display:flex; align-items:center; gap:12px; padding:10px 14px; border-top:1px solid var(--line); }
.frame-ctl > div:last-child { flex:1; }
.frame-lab { font-size:12.5px; font-weight:600; color:var(--ink); min-width:150px; }
.prose { font-size:13px; line-height:1.6; color:#3A3A3F; padding:14px 16px; margin:0; }
.prose p { margin:0 0 10px; }
.prose p:last-child { margin:0; }
.warn-h img.ico { width:15px; height:15px; opacity:.7; }
.btn { white-space:nowrap; }
.seg-l { white-space:nowrap; }
.actions { align-items:center; flex-wrap:nowrap; }

/* phone and narrow tablet: the sidebar folds into a header with a Menu button, and the grids stack */
.menu-btn { display:none; }
@media (max-width: 820px) {
  html, body { font-size:14px; }
  .shell { flex-direction:column; gap:8px; padding:8px; }
  .side { width:auto; position:static; height:auto; gap:10px; padding:0; }
  .side-search, .side-foot { display:none; }
  .side .nav-group { display:none; }
  .side.open .nav-group { display:flex; }
  .side.open { padding-bottom:6px; }
  .menu-btn { display:inline-flex; align-items:center; gap:6px; margin-left:auto; padding:6px 11px; border-radius:9px;
              border:1px solid var(--line-2); background:var(--panel); font:500 13px var(--font); color:var(--ink); cursor:pointer; }
  .menu-btn img { width:15px; height:15px; opacity:.75; }
  .org > div:nth-child(2) { min-width:0; }
  .topbar { flex-wrap:wrap; padding:10px 12px; gap:8px; }
  .top-r { margin-left:0; flex-wrap:wrap; gap:6px; }
  .pill { font-size:11.5px; }
  .page { padding:14px 10px 18px; gap:12px; }
  .head { flex-wrap:wrap; }
  .head-icon { display:none; }
  .title { font-size:20px; }
  .actions { margin-left:0; flex-wrap:wrap; }
  .c2, .c3, .c-2-1, .c-1-2, .c-3-2, .c-2-3 { grid-template-columns:1fr; }
  .c4, .c5 { grid-template-columns:1fr 1fr; }
  .warn-box { grid-template-columns:1fr; }
  .warn-box > div + div { border-left:0; border-top:1px solid var(--line); }
  .peaks { grid-template-columns:repeat(3, 1fr); }
  .gloss { grid-template-columns:1fr; }
  .gloss dt { border-bottom:0; padding-bottom:2px; }
  .metrics, .tools { grid-template-columns:1fr; }
  .frame-ctl { flex-wrap:wrap; }
  .frame-lab { min-width:0; }
  .card-head { flex-wrap:wrap; }
  .card-r { flex-wrap:wrap; }
  .kpi-v { font-size:21px; }
  .kpi-mini { width:72px; }
  .hscroll { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .hscroll > div { min-width:620px; }
}
