/* Chamber of Mines Research Database */
:root {
  --red: #B5121B;
  --red-600: #9C0F17;
  --red-50: #FBEDEE;
  --red-100: #F6D6D8;
  --gold: #C99A2E;
  --ink: #15171C;
  --ink-2: #1E2128;
  --ink-3: #2A2E37;
  --side-tx: #B9BDC7;
  --tx: #1B1D22;
  --tx-2: #565B66;
  --tx-3: #8A8F99;
  --bg: #F6F4F1;
  --card: #FFFFFF;
  --line: #E8E4DE;
  --line-2: #F0EDE8;
  --r: 14px;
  --shadow: 0 1px 2px rgba(20, 18, 15, .05), 0 4px 16px -6px rgba(20, 18, 15, .08);
  --shadow-lg: 0 2px 4px rgba(20, 18, 15, .05), 0 18px 40px -16px rgba(20, 18, 15, .22);
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --side-w: 296px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--tx); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font: 12.5px/1 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--line-2); padding: 2px 6px; border-radius: 5px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--tx-3); }
.flip { transform: rotate(180deg); }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--ink); color: var(--side-tx); display: flex; flex-direction: column; z-index: 40; }
.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }
.view { flex: 1; padding: 28px 36px 24px; outline: none; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ---------- sidebar ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; color: #fff; }
.brand-mark { width: 38px; height: 38px; color: var(--red); display: grid; place-items: center; }
.brand-mark svg { width: 38px; height: 38px; filter: drop-shadow(0 6px 14px rgba(181, 18, 27, .45)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font: 650 15px/1.2 var(--display); letter-spacing: -.01em; }
.brand-text small { color: var(--side-tx); font-size: 12px; letter-spacing: .02em; }
.side-filter { margin: 0 16px 10px; display: flex; align-items: center; gap: 8px; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 10px; padding: 0 10px; }
.side-filter .i { width: 16px; color: #7D828D; }
.side-filter input { flex: 1; background: none; border: 0; outline: 0; color: #fff; padding: 9px 0; font: inherit; font-size: 13px; }
.side-filter input::placeholder { color: #7D828D; }
.side-filter:focus-within { border-color: #4A4F5A; }

.tree { flex: 1; overflow: auto; padding: 4px 10px 16px; scrollbar-width: thin; scrollbar-color: #3A3E48 transparent; }
.tree ul { list-style: none; margin: 0; padding: 0; }
.tree .t-row { display: flex; align-items: center; position: relative; }
.tree a { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px; border-radius: 8px; color: var(--side-tx); font-size: 13.2px; transition: background .12s, color .12s; }
.tree a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree a:hover { background: var(--ink-2); color: #fff; }
.tree a.active { background: linear-gradient(90deg, rgba(181, 18, 27, .26), rgba(181, 18, 27, .08)); color: #fff; }
.tree a.active::before { content: ""; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.tree .t-l0 > li > .t-row > a { font-weight: 550; color: #E4E6EB; }
.tree .t-l0 > li > .t-row > a .i { color: #868B96; }
.tree .t-l0 > li > .t-row > a.active .i { color: #FF6B72; }
.tree .t-tog { position: absolute; right: 2px; width: 26px; height: 26px; border: 0; background: none; border-radius: 6px; color: #6F7480; cursor: pointer; display: grid; place-items: center; z-index: 1; }
.tree .t-tog:hover { background: var(--ink-3); color: #fff; }
.tree .t-tog .i { width: 14px; transition: transform .18s; }
.tree .t-folder > .t-row > a { padding-right: 58px; }
.tree .t-folder.open > .t-row > .t-tog .i { transform: rotate(90deg); }
.tree .t-folder > ul { display: none; margin: 2px 0 4px 18px; padding-left: 8px; border-left: 1px solid var(--ink-3); }
.tree .t-folder.open > ul { display: block; }
.tree .t-count { position: absolute; right: 30px; font-style: normal; font-size: 11px; color: #7D828D; background: var(--ink-2); border-radius: 20px; padding: 0 7px; line-height: 18px; }
.tree .t-l1 a, .tree .t-l2 a, .tree .t-l3 a { font-size: 12.8px; padding-top: 5.5px; padding-bottom: 5.5px; }
.tree .dot { width: 5px; height: 5px; border-radius: 50%; background: #4A4F5A; flex: none; margin: 0 2px; }
.tree a.active .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(181, 18, 27, .25); }
.tree .is-pending a { color: #7D828D; }
.tree .t-soon { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); border: 1px solid rgba(201, 154, 46, .35); padding: 0 5px; border-radius: 4px; }
.tree.filtering li { display: none; }
.tree.filtering li.hit, .tree.filtering li.hit-path { display: block; }
.tree.filtering .t-folder > ul { display: block; }
.tree.filtering li.hit > .t-row > a span { color: #fff; }

.side-foot { padding: 14px 20px 18px; border-top: 1px solid var(--ink-2); display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.lock-pill { display: inline-flex; align-items: center; gap: 6px; color: #E4E6EB; font-weight: 550; }
.lock-pill .i { width: 14px; color: var(--gold); }
.side-foot .muted { color: #6F7480; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 36px; background: rgba(246, 244, 241, .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); min-height: 62px; }
.topbar .menu-btn { display: none; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--tx-2); overflow: hidden; white-space: nowrap; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; }
.crumbs a:hover { background: var(--line-2); color: var(--tx); }
.crumbs .i { width: 16px; }
.crumbs .sep { width: 13px; color: var(--tx-3); }
.crumbs .cur { color: var(--tx); font-weight: 600; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; }

.search { position: relative; width: min(420px, 42vw); display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 0 10px 0 12px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: #D7C9C9; box-shadow: 0 0 0 4px rgba(181, 18, 27, .08), var(--shadow); }
.search > .i { width: 17px; color: var(--tx-3); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; padding: 9px 0; }
.search kbd { font: 11px var(--font); color: var(--tx-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.search-results { display: none; position: absolute; top: calc(100% + 8px); right: 0; left: 0; min-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow: auto; }
.search.open .search-results { display: block; }
.sr { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; }
.sr.sel, .sr:hover { background: var(--red-50); }
.sr-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; color: var(--tx-2); flex: none; }
.sr.sel .sr-ic { background: #fff; color: var(--red); }
.sr-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sr-tx strong { font-weight: 600; }
.sr-tx small, .sr-k { color: var(--tx-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-empty { padding: 18px; color: var(--tx-3); text-align: center; }
.sr-h { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--tx-3); }
.sr mark { background: #FFE7A3; color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn .i { width: 17px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(181, 18, 27, .6); }
.btn-primary:hover { background: var(--red-600); transform: translateY(-1px); }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--tx); }
.btn-ghost:hover { border-color: #D8D2CA; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--tx-2); transition: color .15s, border-color .15s; }
.icon-btn:hover { color: var(--tx); border-color: #D8D2CA; }
.icon-btn.sm { width: 28px; height: 28px; border: 0; background: none; }
.icon-btn.sm .i { width: 16px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 550; color: var(--tx-2); background: var(--line-2); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.tag .i { width: 13px; }
.tag-soft { background: #FFF6E3; color: #8A6514; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, #5A0A10 0%, #2A0C10 34%, var(--ink) 70%); color: #fff; padding: 52px 52px 0; box-shadow: var(--shadow-lg); }
.hero-strata { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420' viewBox='0 0 900 420' fill='none' stroke='%23ffffff' stroke-opacity='.09'%3E%3Cpath d='M0 300 C150 260 260 330 420 290 S700 230 900 270'/%3E%3Cpath d='M0 330 C160 290 280 360 430 320 S710 260 900 300'/%3E%3Cpath d='M0 360 C170 320 290 390 440 350 S720 290 900 330'/%3E%3Cpath d='M0 390 C180 350 300 420 450 380 S730 320 900 360'/%3E%3Cpath d='M300 0 C360 80 520 60 560 140 S720 220 900 180' stroke-opacity='.06'/%3E%3Cpath d='M340 0 C400 80 560 60 600 140 S760 220 900 210' stroke-opacity='.06'/%3E%3Cpath d='M380 0 C440 80 600 60 640 140 S800 220 900 240' stroke-opacity='.06'/%3E%3C/svg%3E");
  background-size: cover; background-position: right bottom; }
.hero-in { position: relative; max-width: 640px; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #F3B4B8; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font: 700 clamp(34px, 4.4vw, 54px)/1.04 var(--display); letter-spacing: -.035em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #FF8C92, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #C8CBD3; font-size: 15.5px; max-width: 540px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 46px -52px 0; border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .18); }
.stat { padding: 20px 26px 22px 52px; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; }
.stat span { color: #A9ADB7; font-size: 12.5px; }

/* ---------- blocks, cards ---------- */
.block { margin-top: 34px; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-h h2 { display: flex; align-items: center; gap: 8px; font: 650 17px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.block-h h2 a:hover { color: var(--red); }
.block-h h2 .i { width: 17px; color: var(--tx-3); }
.grid { display: grid; gap: 16px; }
.grid-big { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: #E2D6D6; }
.card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--red-50); color: var(--red); }
.card-ic .i { width: 22px; height: 22px; }
.card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.card-body strong { font: 650 16px/1.3 var(--display); letter-spacing: -.01em; }
.card-sub { color: var(--tx-3); font-size: 12.5px; margin-top: -2px; }
.card-body p { margin: 2px 0 0; color: var(--tx-2); font-size: 13.2px; }
.card-kids { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-kids li { font-size: 11.5px; color: var(--tx-2); background: var(--line-2); padding: 2px 8px; border-radius: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px dashed var(--line); }
.card .go { width: 17px; color: var(--tx-3); transition: transform .18s, color .18s; }
.card:hover .go { transform: translateX(3px); color: var(--red); }
.card.is-pending .card-ic, .row.is-pending .row-ic { background: #FFF6E3; color: #A27717; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; font-weight: 550; font-size: 13px; box-shadow: var(--shadow); }
.chip .i { width: 16px; color: var(--red); }
.chip small { color: var(--tx-3); font-weight: 400; font-size: 12px; }
.chip:hover { border-color: #E2D6D6; }

/* ---------- folder page ---------- */
.page-h { display: flex; gap: 18px; align-items: center; padding: 8px 0 4px; }
.page-h h1 { font: 700 30px/1.15 var(--display); letter-spacing: -.025em; margin: 0 0 4px; }
.page-h p { margin: 0; color: var(--tx-2); }
.page-ic { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, var(--red), #7E0B12); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 22px -10px rgba(181, 18, 27, .7); }
.page-ic .i { width: 26px; height: 26px; }
.page-ic.sm { width: 44px; height: 44px; border-radius: 12px; }
.page-ic.sm .i { width: 22px; height: 22px; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line-2); transition: background .12s; }
.row:first-child { border-top: 0; }
.row:hover { background: #FCFAF8; }
.row-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--red-50); color: var(--red); display: grid; place-items: center; flex: none; }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t strong { font-weight: 600; }
.row-t small { color: var(--tx-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-m { display: flex; align-items: center; gap: 8px; }
.row .go { width: 16px; color: var(--tx-3); }
.row:hover .go { color: var(--red); }

/* ---------- empty / error ---------- */
.empty { max-width: 520px; margin: 9vh auto; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 44px 36px; box-shadow: var(--shadow); }
.empty-ic { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; background: #FFF6E3; color: #A27717; display: grid; place-items: center; }
.empty-ic .i { width: 28px; height: 28px; }
.empty h1 { font: 700 24px/1.2 var(--display); margin: 0 0 8px; letter-spacing: -.02em; }
.empty p { color: var(--tx-2); margin: 0 0 12px; }
.empty .btn { margin-top: 10px; }

/* ---------- dataset ---------- */
.ds-h { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ds-title { display: flex; gap: 14px; align-items: center; min-width: 0; }
.ds-title h1 { font: 700 25px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
.ds-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tx-3); font-size: 12.5px; }
.ds-meta .lock { display: inline-flex; align-items: center; gap: 4px; color: #8A6514; font-weight: 600; }
.ds-meta .lock .i { width: 13px; }
.ds-actions { display: flex; gap: 8px; align-items: center; }
.note { display: flex; align-items: center; gap: 10px; background: #FFF8E8; border: 1px solid #F1E0B5; color: #6E5212; border-radius: 11px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; }
.note .i { color: #A27717; }

.sheet-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.sheet-card:fullscreen { border-radius: 0; }
.tools { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FCFBF9; flex-wrap: wrap; }
.cellbar { flex: 1; min-width: 220px; display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.cellbar .addr { width: 64px; text-align: center; font: 600 12px ui-monospace, Consolas, monospace; color: var(--red); border-right: 1px solid var(--line); height: 100%; display: grid; place-items: center; background: var(--red-50); }
.cellbar .val { flex: 1; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.find { display: flex; align-items: center; gap: 4px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 4px 0 10px; }
.find > .i { width: 15px; color: var(--tx-3); }
.find input { width: 150px; border: 0; outline: 0; font: inherit; font-size: 13px; background: none; }
.find-c { font-size: 11.5px; color: var(--tx-3); min-width: 34px; text-align: right; }
.find:focus-within, .cellbar:focus-within { border-color: #D7C9C9; }
.seg { display: flex; align-items: center; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.seg button { width: 30px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--tx-2); }
.seg button:hover { background: var(--line-2); }
.seg span { font-size: 12px; min-width: 42px; text-align: center; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.tools .icon-btn { width: 34px; height: 34px; }

.grid-wrap { position: relative; overflow: auto; height: calc(100vh - 280px); min-height: 420px; background: #fff; scrollbar-width: thin; scrollbar-color: #CFC8BF transparent; }
.sheet-card:fullscreen .grid-wrap { height: auto; flex: 1; }
.loading, .err { display: flex; align-items: center; justify-content: center; gap: 12px; height: 100%; min-height: 360px; color: var(--tx-2); }
.err { align-items: flex-start; justify-content: flex-start; padding: 32px; gap: 14px; }
.err .i { color: var(--red); width: 22px; height: 22px; margin-top: 2px; }
.err p { margin: 6px 0 0; color: var(--tx-2); }
.spin { width: 20px; height: 20px; border: 2.5px solid var(--red-100); border-top-color: var(--red); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- the Excel grid ---------- */
table.xl { border-collapse: collapse; table-layout: fixed; font: 13px/1.25 Calibri, Carlito, "Segoe UI", Arial, sans-serif; color: #000; background: #fff; }
table.xl th { position: sticky; z-index: 3; background: #F4F2EF; color: #6B6F78; font: 500 11px/1 var(--font); border: 1px solid #E1DDD7; user-select: none; }
table.xl thead th { top: 0; height: 24px; }
table.xl th.rh { left: 0; z-index: 2; text-align: center; padding: 0 4px; }
table.xl th.corner { top: 0; left: 0; z-index: 5; background: #ECE9E4; }
table.xl th.hl-r { background: var(--red-50); color: var(--red); }
table.xl td { padding: 2px 4px; height: 20px; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: clip; border: 1px solid transparent; cursor: cell; }
table.xl.gl td { border-color: #ECE9E5; }
table.xl td.ov { overflow: visible; }
table.xl td.ov > span { position: relative; z-index: 1; display: inline-block; overflow: hidden; vertical-align: bottom; }
table.xl td.w { white-space: pre-wrap; word-break: break-word; }
table.xl td.n { font-variant-numeric: tabular-nums; }
table.xl td.sel { outline: 2px solid var(--red); outline-offset: -2px; position: relative; z-index: 2; }
table.xl td.hit { background-color: #FFF1B8 !important; }
table.xl td.hit.sel { background-color: #FFD966 !important; }
table.xl td a { color: #0563C1; text-decoration: underline; }
table.xl tr.fz-r > * { position: sticky; z-index: 2; }
table.xl tr.fz-r > td { background-color: #fff; box-shadow: inset 0 -1px 0 #E1DDD7; }
table.xl tr.fz-r > th { z-index: 4; }
table.xl td.fz-c { position: sticky; z-index: 1; background-color: #fff; box-shadow: inset -1px 0 0 #E1DDD7; }
table.xl thead th.fz-c { position: sticky; z-index: 4; }
table.xl tr.fz-r > td.fz-c { z-index: 3; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 46px; padding: 18px 2px 4px; border-top: 1px solid var(--line); font-size: 12px; color: var(--tx-3); }

/* ---------- responsive ---------- */
.scrim { display: none; }
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
}
@media (max-width: 880px) {
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s; }
  body.nav-open .sidebar { transform: none; visibility: visible; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
  .ds-title .page-ic { display: none; }
  .ds-title h1 { font-size: 22px; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 10, 14, .45); z-index: 35; }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .crumbs { display: none; }
  .search { flex: 1; width: auto; }
  .search kbd { display: none; }
  .search-results { min-width: 0; }
  .view { padding: 18px 16px; }
  .hero { padding: 34px 24px 0; border-radius: 18px; }
  .stats { margin: 32px -24px 0; }
  .stat { padding: 16px 20px 18px 24px; }
  .find input { width: 100px; }
  .grid-wrap { height: calc(100vh - 320px); }
}
@media print {
  .sidebar, .topbar, .tools, .ds-actions { display: none !important; }
  .main { margin: 0; }
  .grid-wrap { height: auto; overflow: visible; }
}
