
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-roman-v1.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/SourceSans3-roman-v1.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/SourceSans3-italic-v1.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-400-v1.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-500-v1.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 95.4%; ascent-override: 97.8%; descent-override: 25.5%; line-gap-override: 0%; }
@font-face { font-family: "Source Sans Fallback"; src: local("Arial"), local("Helvetica"); ascent-override: 102.4%; descent-override: 40%; line-gap-override: 0%; }
@font-face { font-family: "Mono Fallback"; src: local("Menlo Regular"), local("Menlo-Regular"), local("Consolas"); }

:root {
  --surface-1: #FBFAF7;  --surface-2: #FFFEFC;  --surface-3: #F1F0EC;  --surface-hover: #F1EFE6;  --surface-sel: #E4F3FA;
  --surface-rail: #F4F2EE;
  --border-1: #DFDED8;     
  --border-2: #838078;  
  --text-1: #1F1C19;  --text-2: #4E4A44;  --text-3: #68645E;
  --action: #26221E;  --action-hover: #3E3A34;  --on-action: #FCFAF3;     
  --link-text: #026585;  --link-text-hover: #024C64;
  --link-underline: var(--link-text);   
  --focus: #1280A5;      
  --accent: #0A6D8E;  --accent-bg: #DCF1FA;  --accent-ink: #024C64;  --mark-bg: #0A6D8E;  --mark-ink: #FEFDFB;  --on-accent: #FEFDFB;
  --highlight: var(--accent);  --accent-line: var(--focus);   
  --status-ok: #21763C;  --status-ok-bg: #DFF6E2;
  --status-warn: #A3590C;  --status-warn-bg: #FDEDDB;
  --status-bad: #BA2B2E;  --status-bad-bg: #FDE9E7;
  --data-derived: #B48C2B;      
  --brand-1: #26221E;  --brand-2: #1F1C19;  --brand-3: #4E4A44;  --on-brand-1: #FCFAF3;  --on-brand-2: #44D6D6;  --on-brand-3: #C3CACC;
  --shade: var(--text-1);
  --scrim: color-mix(in srgb, var(--shade) 70%, transparent);
  --scrim-copy: color-mix(in srgb, var(--shade) 72%, transparent);  --scrim-mid: color-mix(in srgb, var(--shade) 28%, transparent);  --scrim-edge: color-mix(in srgb, var(--shade) 10%, transparent);
  --cap-bg: color-mix(in srgb, var(--shade) 78%, transparent);      
  --glass: color-mix(in srgb, var(--card) 96%, transparent);
  --glass-blur: color-mix(in srgb, var(--card) 92%, transparent);
  --contour-bg: none;   
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2368645E'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  --lift:   0 1px 0 color-mix(in srgb, var(--shade) 5%, transparent), 0 14px 30px -20px color-mix(in srgb, var(--shade) 30%, transparent);   
  --lift-2: 0 2px 0 color-mix(in srgb, var(--shade) 5%, transparent), 0 24px 44px -24px color-mix(in srgb, var(--shade) 38%, transparent);
  --ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--ring-c);   
  --ring-photo: var(--accent);  --ring-halo: var(--brand-2);   
  --qr-bg: #FFFFFF;   
  --font-display: "Fraunces", "Fraunces Fallback", "Source Sans 3", serif;
  --font-ui: "Source Sans 3", "Source Sans Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fsa: .53;          
  --r-xs: 6px; --r-sm: 8px; --r: 12px; --r-lg: 20px; --r-pill: 999px;
  --r-leaf: 28px 4px 28px 4px;  --r-leaf-sm: 14px 3px 14px 3px;   
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --container: 1240px;  --band-pad: clamp(80px, 9vw, 136px);
  --ease: cubic-bezier(.2,.7,.2,1);  --t-fast: 160ms;  --t-reveal: 280ms;  --t-panel: 420ms;
  --bg: var(--paper);  --code: var(--sunk);  --cite: var(--sunk);
  --navy: var(--forest);  --abyss: var(--moss);
  --blue: var(--link);  --blue-h: var(--link-h);
  --lagoon: var(--leaf);  --lagoon-ink: var(--link);
  --kelp: var(--good);  --kelp-ink: var(--good);
  --coral: var(--bad);  --sun-ink: var(--warn);
  --top: var(--paper);  --topink: var(--ink2);
  --grad-light: linear-gradient(var(--line), var(--line));   
  --shadow: var(--lift);
  --src-defra: #1C5CAB; --src-ember: #2E7D43; --src-epa: #B07E1E;
  --src-useeio: #7B5CC0; --src-etkb: #C58419; --src-cbam: #5E7FA3; --src-exio: #B3403B;
  --src-ademe: #B54882; --src-agribalyse: #7A9E3F; --src-okobaudat: #8C6D46; --src-nzmfe: #159087;
  --src-jpmoe: #C4485C; --src-aunga: #B78D00; --src-cnmee: #C96A2E; --src-incea: #3E8E5E;
  --src-miteco: #A05CB5; --src-eccc: #4E7FBE; --src-mcti: #2F9E77; --src-dffe: #6A76C9;
  --chart-1: var(--src-ember);  --chart-2: var(--src-etkb);  --chart-3: var(--src-defra);
  --chart-4: var(--src-exio);  --chart-5: var(--src-useeio);  --chart-6: var(--src-agribalyse);
  --chart-seq-1: #3E98BC;  --chart-seq-2: #207EA0;  --chart-seq-3: #0C6481;  --chart-seq-4: #024B63;  --chart-seq-5: #013345;
  --status-good: var(--status-ok);  --status-good-bg: var(--status-ok-bg);  --border: var(--border-1);  --border-ui: var(--border-2);
  --shell-top-h: 56px;  --shell-side-w: 240px;  --shell-bottom-h: 56px;  --shell-scrim: color-mix(in srgb, var(--shade) 45%, transparent);
  --z-side: 66;  --z-top: 70;  --z-pop: 72;  --z-scrim: 74;  --z-navdrawer: 76;  --z-modal: 90;  --z-toast: 300;
  --paper: var(--surface-1);  --card: var(--surface-2);  --sunk: var(--surface-3);  --hover: var(--surface-hover);  --sel: var(--surface-sel);
  --line: var(--border-1);  --line-ui: var(--border-2);  --ink: var(--text-1);  --ink2: var(--text-2);  --ink3: var(--text-3);
  --act: var(--action);  --act-h: var(--action-hover);  --on-act: var(--on-action);  --link: var(--link-text);  --link-h: var(--link-text-hover);
  --forest: var(--brand-1);  --moss: var(--brand-2);  --forest-2: var(--brand-3);  --leaf: var(--accent-line);  --lime: var(--highlight);
  --on-dark: var(--on-brand-1);  --on-dark-2: var(--on-brand-2);  --on-dark-3: var(--on-brand-3);  --good: var(--status-ok);  --good-bg: var(--status-ok-bg);
  --warn: var(--status-warn);  --warn-bg: var(--status-warn-bg);  --bad: var(--status-bad);  --bad-bg: var(--status-bad-bg);  --sun: var(--data-derived);
  --ring-c: var(--focus);
  color-scheme: light;
}
[data-theme="dark"] {
  --surface-1: #1D2325;  --surface-2: #262D2F;  --surface-3: #161C1D;  --surface-hover: #2C3638;  --surface-sel: #1D3F43;
  --surface-rail: #161C1D;
  --border-1: #373F41;  --border-2: #747E81;
  --text-1: #EBEFF0;  --text-2: #C3CACC;  --text-3: #A4ACAF;
  --action: #62DEDD;  --action-hover: #86EBEB;  --on-action: #121F23;
  --link-text: #6CE0E0;  --link-text-hover: #95EDEC;
  --focus: #55E3E3;
  --accent: #44D6D6;  --accent-bg: #143C40;  --accent-ink: #95EDEC;  --mark-bg: #145154;  --mark-ink: #EBF4F4;  --on-accent: #121F23;
  --status-ok: #7CDD93; --status-ok-bg: #1F3A25;   --status-warn: #F4C26A; --status-warn-bg: #443116;   --status-bad: #FB998C; --status-bad-bg: #502824;
  --data-derived: #E6B55D;
  --brand-1: #262D2F;  --brand-2: #161C1D;  --brand-3: #373F41;  --on-brand-1: #EBEFF0;  --on-brand-2: #44D6D6;  --on-brand-3: #C3CACC;
  --shade: var(--surface-3);
  --scrim: color-mix(in srgb, var(--shade) 68%, transparent);
  --scrim-copy: color-mix(in srgb, var(--shade) 66%, transparent);  --scrim-mid: color-mix(in srgb, var(--shade) 26%, transparent);  --scrim-edge: color-mix(in srgb, var(--shade) 4%, transparent);
  --cap-bg: color-mix(in srgb, var(--shade) 80%, transparent);
  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23A4ACAF'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  --lift:   0 18px 40px -22px color-mix(in srgb, var(--shade) 70%, transparent);
  --lift-2: 0 26px 52px -24px color-mix(in srgb, var(--shade) 80%, transparent);
  --src-defra: #66A6FC;  --src-ember: #6CB97B;  --src-epa: #CE9A42;  --src-useeio: #AD8FF8;  --src-etkb: #D89533;
  --src-cbam: #86A8CE;  --src-exio: #F47B72;  --src-ademe: #EA78B2;  --src-agribalyse: #8EB355;  --src-okobaudat: #BF9E76;
  --src-nzmfe: #4EB9AF;  --src-jpmoe: #F77686;  --src-aunga: #D0A215;  --src-cnmee: #EA884E;  --src-incea: #69B986;
  --src-miteco: #CB85E1;  --src-eccc: #74A7E9;  --src-mcti: #52BB93;  --src-dffe: #8F9DF3;
  --chart-seq-1: #3F8BA6;  --chart-seq-2: #56A4C1;  --chart-seq-3: #75BDD8;  --chart-seq-4: #99D3EB;  --chart-seq-5: #C2E8F8;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui); font-size: 15px; line-height: 1.55; font-size-adjust: var(--fsa);
  background: var(--paper); color: var(--ink);
  transition: background .15s ease, color .15s ease;
  min-height: 100vh; min-height: 100dvh;   
}
main { display: block; counter-reset: folio; }
.num { font-variant-numeric: tabular-nums; }
i:empty { font-style: normal; }   
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-h); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:where(main :is(p, li, dd, td, figcaption, blockquote)) a:not([class]) { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--lime) 60%, transparent); color: var(--ink); }
[data-theme="dark"] ::selection { background: color-mix(in srgb, var(--lime) 35%, transparent); }
:where(input, select, textarea, button) { font-family: inherit; font-size-adjust: inherit; }   
::placeholder { color: var(--text-3); opacity: 1; }   
:where([data-theme="dark"]) :where(input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file]), select, textarea) {
  background-color: var(--surface-2); color: var(--text-1); border-color: var(--border-2); }   
:where(h1, h2, .display, .brand) { font-family: var(--font-display); font-size-adjust: none; font-optical-sizing: auto; }
img, video, svg { max-width: 100%; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ring-c); outline-offset: 2px; box-shadow: none; }
:where(input, select, textarea):focus-visible { border-color: var(--leaf); outline-offset: 1px; }
tr.row:focus-visible { outline: 2px solid var(--ring-c); outline-offset: -2px; box-shadow: none; }
:is(section.hero .hero-pause, :is(.band:not(.faint), .cta-band) :is(a, button, input, select, textarea, summary, [tabindex])):focus-visible {
  outline: 2px solid var(--ring-photo); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ring-halo); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 16px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line-ui); border-radius: var(--r-pill); box-shadow: var(--lift-2); font-weight: 600; font-size: 14px; }
.skip-link:focus { left: 8px; }
#main:focus { outline: none; }

.topbar { position: relative; z-index: 70; display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 24px;
  background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { display: flex; flex: none; text-decoration: none; }
.brand img { display: block; height: 26px; width: auto; }
.brand .dk, [data-theme="dark"] .brand img { display: none; }
[data-theme="dark"] .brand .dk { display: block; }
.topbar nav { display: flex; gap: 4px; flex: 1; align-items: center; }
.topbar nav a, .navgrp .grplbl { display: inline-flex; align-items: center; gap: 4px; font: 500 15px/1 var(--font-ui); font-size-adjust: var(--fsa);
  color: var(--ink2); padding: 10px 13px; border: 0; border-radius: var(--r-pill); background: none; cursor: pointer; white-space: nowrap; }
.topbar nav a:hover, .navgrp:hover .grplbl { color: var(--ink); background: var(--hover); text-decoration: none; }
.topbar nav a.on, .navgrp.on .grplbl { color: var(--ink); background: var(--sel); }        
.topbar nav a.btn { background: var(--act); color: var(--on-act); font-weight: 600; padding: 0 14px; border-radius: var(--r-pill); }
.topbar nav a.btn:hover { background: var(--act-h); color: var(--on-act); }
.navgrp { position: relative; }
.navgrp .grplbl { user-select: none; }
.navgrp .caret { width: 14px; height: 14px; opacity: .75; vertical-align: 0; }
.navgrp .navdd { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; flex-direction: column;
  min-width: 220px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-leaf-sm); box-shadow: var(--lift-2); }
.navgrp .navdd::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.navgrp:hover .navdd, .navgrp:focus-within .navdd, .navgrp.tap .navdd { display: flex; animation: fbdrop var(--t-fast) var(--ease); }
.navgrp.esc:hover .navdd, .navgrp.esc:focus-within .navdd { display: none; }   
.navgrp.esc.tap .navdd { display: none; }
@keyframes fbdrop { from { opacity: 0; transform: translateY(-4px); } }
.navgrp .navdd a { padding: 9px 12px; border-radius: var(--r-sm); font-size: 15px; color: var(--ink2); }
.navgrp .navdd a:hover { background: var(--hover); color: var(--ink); }
.navgrp .navdd a.on { background: var(--sel); color: var(--ink); font-weight: 600; }
.nav-auth { display: none; }
.topbar .auth { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--ink2); flex: none; }
.topbar .auth a:not(.btn) { color: var(--ink2); }
.topbar .auth a:not(.btn):hover { color: var(--ink); }
.themebtn, .navbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line-ui); background: transparent; color: var(--ink2); cursor: pointer; flex: none; }
.themebtn:hover, .navbtn:hover { background: var(--hover); color: var(--ink); }
.themebtn .ico, .navbtn .ico { width: 20px; height: 20px; vertical-align: 0; }
.navbtn { display: none; width: 44px; height: 44px; }
.topbar nav a:focus-visible, .navgrp .grplbl:focus-visible { outline: 2px solid var(--ring-c); outline-offset: 2px; box-shadow: none; }
.topbar.overlay { position: sticky; top: 0; z-index: 80; background: var(--paper);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.topbar.overlay.scrolled { background: var(--glass-blur); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px color-mix(in srgb, var(--shade) 35%, transparent); }

.wrap { max-width: var(--container); margin: 0 auto; padding: 28px 24px 64px; }
h1 { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1.08; letter-spacing: -.012em; font-weight: 400; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.15; letter-spacing: -.01em; font-weight: 420; margin: 40px 0 14px; }
h3 { font-family: var(--font-ui); font-size: 18px; line-height: 1.35; font-weight: 600; }
.display { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.375rem); line-height: 1.03; letter-spacing: -.014em; font-weight: 360; max-width: 16ch; }
.display::after { content: ""; display: block; width: min(4.2em, 62%); height: .14em; margin-top: .2em; border-radius: 2px;
  background: var(--lime); transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) { .js .display::after { animation: fbmark 700ms var(--ease) 200ms both; } }
@keyframes fbmark { from { transform: scaleX(0); } }
@media (max-width: 380px) { .display::after { display: none; } }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); line-height: 1.55; font-weight: 400; color: var(--ink2); max-width: 56ch; }
.prose { font-size: 16px; line-height: 1.62; }
.prose p, .prose ul, .prose ol { margin-bottom: 1em; }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.measure { max-width: 66ch; }
.muted { color: var(--ink2); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--ink3); }   
.mono { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: 0; }
.eyebrow { display: block; font: 600 14px/1.35 var(--font-ui); font-size-adjust: var(--fsa);
  letter-spacing: 0; text-transform: none; color: var(--link); margin: 0; }
.eyebrow::before { content: none; width: auto; height: auto; background: none; }   
.eyebrow.plain::before { content: none; }   
.note { border-left: 3px solid var(--link); background: var(--sunk); color: var(--ink2); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 16px 0; }
.note > :is(b, strong):first-child { font-weight: 600; color: var(--ink); }
.grad-rule { height: 1px; background: var(--line); border: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--lift); }
a.card, .card[onclick], .card.link, .imgcard { transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
[data-theme="dark"] .card { border-color: var(--border-1); }   
a.card:hover, .card[onclick]:hover, .card.link:hover, .imgcard:hover { transform: translateY(-2px); box-shadow: var(--lift-2);
  border-color: color-mix(in srgb, var(--leaf) 45%, var(--line)); text-decoration: none; }
.card.feature { border-radius: var(--r-leaf); padding: 26px; }      
.grid { display: grid; gap: 16px; }
@media (min-width: 800px) { .g4 { grid-template-columns: repeat(4, 1fr); } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 799px) { .g4 { grid-template-columns: 1fr 1fr; } }   

.stat { position: relative; }
.card.stat { background: var(--card); padding: 18px 20px; }      
.stat .lbl { font: 600 14px/1.3 var(--font-ui); font-size-adjust: var(--fsa); letter-spacing: 0; text-transform: none; color: var(--ink2); }
.stat .val { font-family: var(--font-ui); font-weight: 600; font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.1;
  letter-spacing: -.01em; font-variant-numeric: proportional-nums lining-nums; margin-top: 6px; color: var(--ink); }
.stat .val .unit { font: 500 14px var(--font-ui); font-size-adjust: var(--fsa); letter-spacing: 0; color: var(--ink3); margin-left: 6px; }
.stat .sub { font: 400 14px/1.45 var(--font-ui); font-size-adjust: var(--fsa); color: var(--ink3); margin-top: 6px; }
.stat .src { font: 400 12px/1.3 var(--font-mono); font-size-adjust: var(--fsa); letter-spacing: 0; color: var(--ink3); margin-top: 10px; }
.stat.live .lbl::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); margin-right: 8px; vertical-align: 2px; }
@keyframes fbpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.pulse { animation: fbpulse 2s ease-in-out infinite; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 0;
  border-radius: var(--r-pill); background: var(--act); color: var(--on-act); font: 600 15px/1.2 var(--font-ui); font-size-adjust: var(--fsa); cursor: pointer;
  text-decoration: none; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn:hover { background: var(--act-h); color: var(--on-act); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; margin: 0; vertical-align: 0; transition: transform var(--t-fast) var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }               
.btn.ghost { background: transparent; color: var(--act); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, var(--act) 8%, transparent); color: var(--act); }
[data-theme="dark"] .btn.ghost { color: var(--text-1); box-shadow: inset 0 0 0 1.5px var(--border-2); }   
[data-theme="dark"] .btn.ghost:hover { background: var(--surface-hover); color: var(--text-1); }
.btn.ghost-light { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--on-dark) 70%, transparent); }
.btn.ghost-light:hover { background: color-mix(in srgb, var(--on-dark) 12%, transparent); color: var(--on-dark); }
:is(section.hero, .band-h .band-inner, .pagehead.has-img .band-inner, .glass, .band.faint) .btn.ghost-light {
  color: var(--act); box-shadow: inset 0 0 0 1.5px var(--act); }
[data-theme="dark"] :is(section.hero, .band-h .band-inner, .pagehead.has-img .band-inner, .glass, .band.faint) .btn.ghost-light { color: var(--link); box-shadow: inset 0 0 0 1.5px var(--link); }
:root:not([data-theme="dark"]) :is(.cta-band, .band:not(.band-h):not(.faint) .band-copy) .btn:not(.ghost):not(.ghost-light) {
  background: var(--on-dark); color: var(--forest); }
:root:not([data-theme="dark"]) :is(.cta-band, .band:not(.band-h):not(.faint) .band-copy) .btn:not(.ghost):not(.ghost-light):hover { background: var(--surface-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

.srcchip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.srcchip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
[class*="src-defra"] i, .dot-defra { background: var(--src-defra); }
.src-ember i { background: var(--src-ember); }
.src-epa2025 i { background: var(--src-epa); }
[class*="src-useeio"] i { background: var(--src-useeio); }
.src-etkb i { background: var(--src-etkb); }
.src-cbam2026 i { background: var(--src-cbam); }
[class*="src-exiobase"] i { background: var(--src-exio); }
[class*="src-climly"] i, .src-private i { background: var(--sun); }
.src-egrid2018 i, .src-egrid2019 i, .src-egrid2020 i, .src-egrid2021 i, .src-egrid2022 i { background: var(--src-epa); }
.src-ademe i { background: var(--src-ademe); } .src-agribalyse31 i { background: var(--src-agribalyse); }
.src-okobaudat i { background: var(--src-okobaudat); } .src-nzmfe2026 i { background: var(--src-nzmfe); }
.src-jpmoe i { background: var(--src-jpmoe); } .src-aunga2025 i { background: var(--src-aunga); }
.src-cnmee i { background: var(--src-cnmee); } .src-incea20 i { background: var(--src-incea); }
.src-miteco i { background: var(--src-miteco); } .src-eccc i { background: var(--src-eccc); }
.src-mcti i { background: var(--src-mcti); } .src-dffe i { background: var(--src-dffe); }

.drvbadge { display: inline-flex; align-items: center; gap: 4px; font: 600 11.5px/1.4 var(--font-ui); font-size-adjust: var(--fsa); font-variant-caps: normal; letter-spacing: 0;
  color: var(--warn); background: var(--warn-bg); border: 0; border-radius: var(--r-pill); padding: 2px 8px;
  cursor: help; white-space: nowrap; vertical-align: middle; }
.drvbadge :is(svg, .ico) { width: 12px; height: 12px; flex: none; vertical-align: 0; }

.recipe .fxmono { font-family: var(--font-mono); font-size: 12.5px;
  background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 12px;
  overflow-x: auto; margin: 8px 0; }
.recipe .tblx { overflow-x: auto; }
.recipe td.ell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipe pre { max-height: 340px; overflow: auto; white-space: pre; }
.recipe details summary { cursor: pointer; font-weight: 600; }
code, pre, kbd { font-family: var(--font-mono); font-size: .92em; }
pre { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; }

.readout { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--font-ui); font-size-adjust: var(--fsa); letter-spacing: 0; padding: 7px 11px;
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); color: var(--ink2); white-space: nowrap; vertical-align: middle; }
.readout .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.readout.live .dot { background: var(--leaf); }
.readout .ico { width: 15px; height: 15px; vertical-align: 0; }
.readout b { font-weight: 600; color: var(--ink); }
.readout.ok { color: var(--good); background: var(--good-bg); border-color: transparent; margin-top: 0; font-size: 13px; }
.readout.warn { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.readout.bad { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.readout:is(.ok, .warn, .bad) b { color: inherit; }
.readout.mono, .readout code { font-family: var(--font-mono); font-size: 12.5px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font: 600 13.5px/1.3 var(--font-ui); font-size-adjust: var(--fsa); font-variant-caps: normal; letter-spacing: 0; text-transform: none;
  color: var(--ink2); padding: 9px 10px; border-bottom: 1px solid var(--line-ui);
  position: sticky; top: 0; background: var(--sunk); cursor: pointer; white-space: nowrap; z-index: 2; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.row { cursor: pointer; }
tr.row:hover { background: var(--hover); }
tr.row.sel { background: var(--sel); box-shadow: inset 3px 0 0 var(--leaf); }
tr.row.sel td:first-child { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }   
.tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); box-shadow: none; }
.tblwrap.mono-head th { font-family: var(--font-ui); font-size: 13.5px; letter-spacing: 0; }   
td code, td .uid { font: 400 12.5px var(--font-mono); font-size-adjust: var(--fsa); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; align-items: center; }
:is(.filters, .toolbar) :is(input, select):where(:not([type=checkbox], [type=radio])),
.authform :is(input, select, textarea):where(:not([type=checkbox], [type=radio])) { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-ui);
  border-radius: var(--r-sm); background: var(--card); color: var(--ink); font-size: 15px; font-family: inherit; }
:is(.filters, .toolbar, .authform) select { appearance: none; -webkit-appearance: none; padding-right: 36px; background: var(--caret) right 12px center / 14px no-repeat, var(--card); }
.filters input[type=text] { min-width: 260px; }
.toolbar :is(input[type=text], input[type=search]) { border-radius: var(--r-pill); padding-left: 18px; min-width: 260px; }
:is(.filters, .toolbar, .authform) :is(input, select, textarea):focus-visible { outline: 2px solid var(--ring-c); outline-offset: 1px; border-color: var(--leaf); box-shadow: none; }
.toolbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px 0; margin: 8px 0 12px; background: var(--paper); }
.toolbar.static { position: static; }
.toolbar .btn { min-height: 44px; }
.toolbar .readout { min-height: 32px; }

.drawer { position: fixed; top: 0; right: 0; width: min(61.8vw, 1080px); height: 100vh; background: var(--card);
  border-left: 1px solid var(--line); box-shadow: -24px 0 60px -30px color-mix(in srgb, var(--shade) 45%, transparent);
  transform: translateX(103%); transition: transform .24s cubic-bezier(.3,.8,.4,1); overflow-y: auto; z-index: var(--z-pop); padding: 30px 36px 44px; }
[data-theme="dark"] .drawer { box-shadow: -24px 0 60px -20px color-mix(in srgb, var(--shade) 70%, transparent); }
@media (max-width: 900px) { .drawer { width: 96vw; padding: 24px 20px; } }
.drawer.open { transform: none; }
.drawer .x { position: absolute; top: 14px; right: 16px; background: none; border: 0;
  font-size: 24px; color: var(--ink2); cursor: pointer; width: 44px; height: 44px; border-radius: 50%; }
.drawer .x:hover { background: var(--hover); color: var(--ink); }
.dgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px 34px; align-items: start; }
@media (max-width: 1100px) { .dgrid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 5px 14px; font-size: 13.5px; margin: 14px 0; }
.kv dt { font: 600 13.5px/1.45 var(--font-ui); font-size-adjust: var(--fsa); font-variant-caps: normal; letter-spacing: 0; color: var(--ink3); }
.kv dd { margin: 0; }
.uidbox { font: 500 13.5px/1.3 var(--font-mono); font-size-adjust: var(--fsa);
  background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-xs); padding: 10px 12px; overflow-wrap: anywhere;
  display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.qrline { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.qrline img { background: var(--qr-bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 6px; flex: none; }   

.spec-label, .citebox { background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r-xs);
  box-shadow: inset 0 3px 0 var(--card), inset 0 4px 0 var(--ink), var(--lift); padding: 14px 16px; font-size: 14px; }
.spec-label .sl-head { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 0 10px; border-bottom: 1px solid var(--line);
  font: 600 15px/1.3 var(--font-ui); font-size-adjust: var(--fsa); }
.spec-label .sl-head > :first-child { flex: 1; }
.spec-label dl { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 6px 12px; margin: 12px 0; }
.spec-label dt { font: 600 13.5px/1.45 var(--font-ui); font-size-adjust: var(--fsa); font-variant-caps: normal; letter-spacing: 0; color: var(--ink3); }
.spec-label dd { margin: 0; overflow-wrap: anywhere; }
.spec-label .uid { font: 500 13.5px/1.3 var(--font-mono); font-size-adjust: var(--fsa); background: var(--sunk); border-radius: var(--r-xs); padding: 8px 10px; overflow-wrap: anywhere; }

.badge { display: inline-flex; align-items: center; gap: 5px; font: 600 13px/1 var(--font-ui); font-size-adjust: var(--fsa); font-variant-caps: normal; letter-spacing: 0;
  padding: 5px 10px; border-radius: var(--r-pill); border: 0; }
.badge.verified { color: var(--good); background: var(--good-bg); }
.badge.ai { color: var(--warn); background: var(--warn-bg); }
.badge.st-valid { color: var(--ink2); background: var(--sunk); }
.badge.st-old { color: var(--warn); background: var(--warn-bg); }

.spreadviz { margin: 10px 0 4px; max-width: 640px; }
.spreadviz svg { width: 100%; height: auto; display: block; }
.spreadviz .ray { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.spreadviz .kilavuz { stroke: var(--line); stroke-width: 1; }
.spreadviz .dot { stroke: var(--card); stroke-width: 2; }
.spreadviz .dot.s-defra { fill: var(--src-defra); } .spreadviz .dot.s-ember { fill: var(--src-ember); }
.spreadviz .dot.s-epa { fill: var(--src-epa); } .spreadviz .dot.s-useeio { fill: var(--src-useeio); }
.spreadviz .dot.s-etkb { fill: var(--src-etkb); } .spreadviz .dot.s-cbam { fill: var(--src-cbam); }
.spreadviz .dot.s-exio { fill: var(--src-exio); }
.spreadviz .dot.s-climly { fill: var(--sun); }
.spreadviz text.ana { fill: var(--ink); font-weight: 600; }
.spreadviz text.alt { fill: var(--ink2); }
.spreadviz text.uc { fill: var(--ink2); font-family: var(--font-mono); }

.pager { display: flex; gap: 10px; align-items: center; margin: 14px 2px; font-size: 13.5px; color: var(--ink2); }
.pager button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-ui); background: var(--card); color: var(--ink); border-radius: var(--r-pill); cursor: pointer; font-family: inherit; }
.pager button:hover:not(:disabled) { border-color: var(--act); color: var(--act); }
.pager button:disabled { opacity: .4; cursor: default; }

.authform { max-width: 440px; margin: 40px auto; }
.authform label { display: block; font: 600 14px/1.3 var(--font-ui); font-size-adjust: var(--fsa); color: var(--ink); margin: 16px 0 6px; }
.authform input { width: 100%; }
.authform .help, .help { font-size: 13px; color: var(--ink3); }
:where(input[type=checkbox], input[type=radio]) { accent-color: var(--act); width: 18px; height: 18px; }
.err { color: var(--bad); font-size: 14px; margin-top: 10px; }
.ok { color: var(--good); font-size: 14px; margin-top: 10px; }

footer { position: sticky; top: 100vh; margin-top: 72px; padding: 56px 0 0; overflow: hidden; isolation: isolate;
  background: var(--contour-bg) right -160px bottom -40px / 1100px auto no-repeat, var(--moss);
  color: var(--on-dark-3); font-size: 14px; line-height: 1.55; border-top: 0; }
[data-theme="dark"] footer { background: color-mix(in srgb, var(--forest) 70%, var(--moss)); }   
footer .wrap { padding: 0 24px; }
footer a { color: var(--on-dark); }
footer a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 32px 40px; }   
.fcol h4 { font: 600 15px/1.3 var(--font-ui); font-size-adjust: var(--fsa);
  letter-spacing: 0; text-transform: none; color: var(--on-dark-2); margin: 0 0 12px; }
.fcol ul { list-style: none; padding: 0; margin: 0; }
.fcol li { margin: 0 0 8px; }
.fcol a { font-size: 15px; }
.fcol .ftext { font-size: 14px; color: var(--on-dark-3); margin: 0 0 12px; }
.fcol .colophon { font-family: var(--font-ui); font-size: 13px; letter-spacing: 0; color: var(--on-dark-3); }
.fcol .legal { font-size: 13px; color: var(--on-dark-3); margin: 14px 0 0; }
.fcol .legal #legalLine:empty { display: none; }
.ftools { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
footer .themebtn { border-color: color-mix(in srgb, var(--on-dark) 45%, transparent); color: var(--on-dark); }
footer .themebtn:hover { background: color-mix(in srgb, var(--on-dark) 10%, transparent); color: var(--on-dark); }
footer::after { content: ""; display: block; width: min(56vw, 760px); aspect-ratio: 411 / 106; background: var(--forest);
  -webkit-mask: url("/img/logo/wordmark-v1-mono.svg") 0 0 / 100% 100% no-repeat; mask: url("/img/logo/wordmark-v1-mono.svg") 0 0 / 100% 100% no-repeat;
  margin: 48px 0 -2.4vw max(16px, calc((100% - var(--container)) / 2 + 12px)); pointer-events: none; }
[data-theme="dark"] footer::after { color: color-mix(in srgb, var(--brand-1) 70%, var(--brand-3)); }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } .fcol.fabout { grid-column: 1 / -1; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

.grid > *, .linegrid > *, .grid5 > * { min-width: 0; }
.linegrid input, .linegrid select, .grid5 input, .grid5 select { min-width: 0; width: 100%; }
p, dd, td, .tiny, .small { overflow-wrap: break-word; }

section.hero { --plate-min: clamp(420px, 44vw, 620px); position: relative; isolation: isolate; overflow: visible;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "copy plate";
  column-gap: clamp(32px, 5vw, 72px); align-items: center; max-width: var(--container); margin: 0 auto; min-height: 0;
  padding: clamp(32px, 4.5vw, 64px) 24px clamp(28px, 3vw, 44px); color: var(--ink); background: none; }
section.hero::before { content: ""; grid-area: plate; align-self: stretch; min-height: var(--plate-min); border-radius: var(--r-leaf);
  background: var(--hero-lqip, none) center / cover no-repeat, var(--contour-bg) center / cover no-repeat var(--forest); }  
.bleed { margin-inline: calc(50% - 50vw); }
.hero-poster-pic { display: contents; }
.hero-poster, .hero-video { grid-area: plate; position: relative; inset: auto; z-index: 0; align-self: stretch; width: 100%; height: 100%;
  min-height: var(--plate-min); object-fit: cover; object-position: var(--hero-pos, 50% 50%); border-radius: var(--r-leaf);
  outline: 1px solid color-mix(in srgb, var(--shade) 12%, transparent); outline-offset: -1px; }
.hero-video { z-index: 1; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-video.on { opacity: 1; }
[data-theme="dark"] :is(.hero-poster, .hero-video) { filter: brightness(.92); }
.hero-scrim, .reticle { display: none; }   
.hero-inner { grid-area: copy; position: relative; z-index: 2; display: block; width: auto; max-width: none; margin: 0; padding: 0; }
.hero-inner > * { min-width: 0; }
.hero-copy > * + * { margin-top: 22px; }
.hero-copy .eyebrow { color: var(--link); }
.hero-copy .lead { color: var(--ink2); max-width: 54ch; }
section.hero h1, section.hero h2 { color: var(--ink); }
section.hero a:not(.btn) { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); text-underline-offset: 3px; }
.hero-copy .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-readout { grid-column: auto; justify-self: start; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 26px;
  padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; color: var(--ink2);
  font-family: var(--font-ui); }
.hero-readout .readout:not(.ok, .warn, .bad) { background: var(--card); border-color: var(--line); }
.hero-readout a { color: var(--link); }
section.hero .hero-readout a.readout { text-decoration: none; }
section.hero .hero-readout a.readout:hover { text-decoration: underline; }
.hero-pause { grid-area: plate; position: relative; z-index: 3; top: auto; right: auto; align-self: start; justify-self: end; margin: 16px;
  width: 40px; height: 40px; border-radius: 50%; display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  color: var(--on-dark); background: var(--cap-bg); border: 1px solid color-mix(in srgb, var(--on-dark) 45%, transparent); }
.hero-pause:hover { background: color-mix(in srgb, var(--shade) 90%, transparent); }
.hero-pause .ico { width: 18px; height: 18px; vertical-align: 0; }
section.hero.has-video .hero-pause { display: inline-flex; }
.hero-caption, .band-caption { display: none !important; }
@media (max-width: 900px) {
  section.hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "plate"; row-gap: 28px; padding: 24px 16px 28px; }
  section.hero::before, .hero-poster, .hero-video { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) { .hero-video { display: none; } }   

.band, .cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  background: var(--band-img, none) var(--band-pos, center right) / cover no-repeat, var(--contour-bg) center / cover no-repeat var(--forest); }
.band::before, .cta-band::before { content: none; }
.band::after, .cta-band::after, .band-h::after { content: none; }      
.band:not(.band-h):not(.faint) { margin: clamp(48px, 6vw, 88px) clamp(12px, 2vw, 24px); border-radius: var(--r-leaf); padding: var(--band-pad) 0; }
.band:is(.loaded, [style*="--band-img"]):not(.band-h):not(.faint)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  mix-blend-mode: multiply;
  background: linear-gradient(var(--scrim-dir, 90deg), var(--scrim-copy) 0, var(--scrim-copy) 55%, var(--scrim-mid) 82%, var(--scrim-edge) 100%); }
.band:has(> .band-inner > .glass:first-child, > .band-inner > .card:first-child)::before { --scrim-dir: 270deg; }
.band:has(> .band-inner > :is(.glass, .card):only-child)::before { content: none; }
.band h1, .band h2, .band h3, .cta-band h2 { color: var(--on-dark); }
.band .lead, .band .muted, .band .sub, .band p { color: color-mix(in srgb, var(--on-dark) 90%, transparent); }
.band a:not(.btn), .cta-band a:not(.btn) { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 3px; }
.band .eyebrow, .cta-band .eyebrow { color: var(--on-dark); }      
.band .readout:not(.ok, .warn, .bad), .cta-band .readout:not(.ok, .warn, .bad) { background: color-mix(in srgb, var(--on-dark) 12%, transparent);
  border-color: color-mix(in srgb, var(--on-dark) 28%, transparent); color: var(--on-dark); }
.band .readout.ok { background: var(--good-bg); color: var(--good); } .band .readout.warn { background: var(--warn-bg); color: var(--warn); } .band .readout.bad { background: var(--bad-bg); color: var(--bad); }
.band-inner { position: relative; z-index: 1; width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.band-inner > * { min-width: 0; }
.band-copy { max-width: 56ch; }
.band-inner .eyebrow { margin: 0 0 10px; }
.band-inner h1 { margin: 0 0 8px; }
.band-inner .lead { margin: 0; }
.band-inner .chips { margin-top: 16px; }
.chips, .pagehead .chips, .band .chips { display: flex; flex-wrap: wrap; gap: 8px; }

:is(.band.band-h, .pagehead.has-img) { display: flex; align-items: flex-end; min-height: max(var(--band-h, var(--pagehead-h, 240px)), 280px);
  margin: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 24px) 0; border-radius: var(--r-leaf);
  padding: clamp(20px, 3vw, 32px) max(clamp(20px, 3vw, 32px), calc((100% - var(--container)) / 2 + 24px)); }
:is(.band.band-h, .pagehead.has-img) .band-inner { width: auto; max-width: min(720px, 100%); margin: 0; padding: 22px 26px 24px;
  background: var(--card); color: var(--ink); border-radius: var(--r-leaf-sm); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--shade) 45%, transparent); }
:is(.band-h, .pagehead.has-img) .band-inner :is(h1, h2, h3) { color: var(--ink); }
:is(.band-h, .pagehead.has-img) .band-inner :is(.lead, .muted, .sub, p) { color: var(--ink2); }
:is(.band-h, .pagehead.has-img) .band-inner a:not(.btn) { color: var(--link); text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
:is(.band-h, .pagehead.has-img) .band-inner .eyebrow { color: var(--link); }
:is(.band-h, .pagehead.has-img) .band-inner .readout:not(.ok, .warn, .bad) { background: var(--card); border-color: var(--line); color: var(--ink2); }
[data-theme="dark"] :is(.band.band-h, .pagehead.has-img):is(.loaded, [style*="--band-img"])::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--shade) 18%, transparent); }
@media (max-width: 720px) {
  :is(.band.band-h, .pagehead.has-img) { min-height: 0; margin: 12px 12px 0; padding: 132px 12px 12px; }   
  :is(.band.band-h, .pagehead.has-img) .band-inner { max-width: none; padding: 18px 18px 20px; }
}

.band.faint { margin: 0; border-radius: 0; padding: 28px 0 20px; color: var(--ink);
  background: var(--band-img, none) var(--band-pos, center right) / cover no-repeat, var(--paper); }
.band.faint::before { content: ""; position: absolute; inset: 0; z-index: -1; mix-blend-mode: normal;
  background: linear-gradient(90deg, var(--paper) 0 42%, color-mix(in srgb, var(--paper) 74%, transparent) 100%); }
.band.faint :is(h1, h2, h3) { color: var(--ink); }
.band.faint :is(p, .lead, .muted) { color: var(--ink2); }
.band.faint a:not(.btn) { color: var(--link); text-decoration: none; }
.band.faint .eyebrow { color: var(--link); }
.band.faint .readout:not(.ok, .warn, .bad) { background: var(--card); border-color: var(--line); color: var(--ink2); }
[data-theme="dark"] .band.faint { background: var(--paper); }

.pagehead { position: relative; overflow: hidden; isolation: isolate; display: block; color: var(--ink); background: var(--paper);
  min-height: 0; padding: clamp(28px, 4vw, 48px) 0 clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.pagehead:not(.has-img)::before, .pagehead:not(.has-img)::after { content: none; }
.pagehead:not(.has-img) .band-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.pagehead h1 { color: var(--ink); margin: 0; }
.pagehead .sub { color: var(--ink2); max-width: 68ch; margin: 10px 0 0; font-size: 16px; line-height: 1.5; }
.pagehead .crumb { font: 400 14px/1.4 var(--font-ui); font-size-adjust: var(--fsa); letter-spacing: 0; color: var(--ink3); margin: 0 0 10px; }
.pagehead .crumb a { color: var(--link); text-decoration: none; }
.pagehead .crumb a:hover { text-decoration: underline; }
.pagehead .eyebrow { color: var(--link); margin-bottom: 10px; }
.pagehead .readout:not(.ok, .warn, .bad) { background: var(--card); border-color: var(--line); color: var(--ink2); }
.pagehead .readout.ok { color: var(--good); background: var(--good-bg); } .pagehead .readout.warn { color: var(--warn); background: var(--warn-bg); } .pagehead .readout.bad { color: var(--bad); background: var(--bad-bg); }
.pagehead + .wrap { padding-top: 28px; }
.pagehead.has-img { border-bottom: 0; background: var(--band-img, none) var(--band-pos, center right) / cover no-repeat, var(--contour-bg) center / cover no-repeat var(--forest); }

.glass, .band.dark .card { background: var(--card); color: var(--ink); border: 0; border-radius: var(--r-leaf-sm); box-shadow: var(--lift-2); padding: 26px; }
:is(.glass, .band.dark .card) :is(h1, h2, h3, p) { color: inherit; }
:is(.glass, .band.dark .card) :is(.muted, .lead, .small, .sub) { color: var(--ink2); }
:is(.glass, .band.dark .card) .tiny { color: var(--ink3); }
:is(.glass, .band.dark .card) a:not(.btn) { color: var(--link); text-decoration: none; }
:is(.glass, .band.dark .card) .eyebrow { color: var(--link); }
:is(.glass, .band.dark .card) .readout:not(.ok, .warn, .bad) { background: var(--sunk); border-color: var(--line); color: var(--ink2); }
[data-theme="dark"] .glass, [data-theme="dark"] .band.dark .card { border: 0; }

.cta-band { margin: clamp(56px, 7vw, 96px) clamp(12px, 2vw, 24px) 0; border-radius: var(--r-leaf); padding: var(--band-pad) 24px; text-align: center; }
.cta-band:is(.loaded, [style*="--band-img"])::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 66%, transparent), color-mix(in srgb, var(--shade) 78%, transparent)); }   
[data-theme="dark"] .cta-band:is(.loaded, [style*="--band-img"])::before { background: linear-gradient(180deg, color-mix(in srgb, var(--shade) 60%, transparent), color-mix(in srgb, var(--shade) 72%, transparent)); }   
[data-theme="dark"] :is(.band:not(.band-h):not(.faint), .cta-band) { box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 color-mix(in srgb, var(--on-dark) 10%, transparent); }
.cta-band h2 { margin: 0 auto; max-width: 22ch; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem); color: var(--on-dark); }
.cta-band p { color: color-mix(in srgb, var(--on-dark) 90%, transparent); max-width: 56ch; margin: 12px auto 0; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.cta-band.compact { padding: 44px 24px; }
.overlap-up { position: relative; z-index: 3; margin-top: 0; }   

.imgcard, .card.imgcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; position: relative; border-radius: var(--r-leaf); }
.imgcard-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--lqip, none) center / cover no-repeat, var(--contour-bg) center / cover no-repeat var(--forest); }   
.imgcard-media::after { content: none; }
.imgcard-media img, .imgcard-media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.imgcard-media img { position: relative; }
:is(.imgcard-media img, img.hero-poster)::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--contour-bg) center / cover no-repeat var(--forest); }
[data-theme="dark"] .imgcard-media img { filter: brightness(.92); }
.imgcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.imgcard-body h3 { margin: 0; font-weight: 600; font-size: 1.25rem; line-height: 1.25; }   
.imgcard-body .tag { align-self: flex-start; }
.imgcard a.primary { color: var(--ink); }
.imgcard a.primary::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.imgcard a.primary:hover { text-decoration: none; }
.imgcard a.primary:focus-visible { outline: none; }   
.imgcard:focus-within { outline: 2px solid var(--ring-c); outline-offset: 2px; box-shadow: var(--lift); }
.imgcard .caption { font: 400 13px/1.4 var(--font-ui); font-size-adjust: var(--fsa); letter-spacing: 0; text-transform: none; color: var(--ink3); }
.ar-16x9 { aspect-ratio: 16 / 9; } .ar-4x5 { aspect-ratio: 4 / 5; } .ar-21x9 { aspect-ratio: 21 / 9; } .ar-3x2 { aspect-ratio: 3 / 2; } .ar-1x1 { aspect-ratio: 1 / 1; }

.evidence-chain { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: ec; }
.evidence-chain li { position: relative; counter-increment: ec; }
.evidence-chain li > a, .evidence-chain li > div { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.evidence-chain li > a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--lift-2); border-color: color-mix(in srgb, var(--leaf) 45%, var(--line)); }
.evidence-chain .ec-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--forest); background: var(--sel); }
[data-theme="dark"] .evidence-chain .ec-ico { color: var(--link); }
.evidence-chain .ec-ico .ico { width: 22px; height: 22px; vertical-align: 0; }
.evidence-chain b { font: 600 16px/1.3 var(--font-ui); font-size-adjust: var(--fsa); }
.evidence-chain b::before { content: counter(ec, decimal-leading-zero); font: 600 15px var(--font-ui); font-size-adjust: var(--fsa); font-variant-numeric: tabular-nums;
  letter-spacing: 0; color: var(--link); margin-right: 8px; }
.evidence-chain .ec-ex { font: 400 13px/1.4 var(--font-mono); font-size-adjust: var(--fsa); color: var(--ink2); overflow-wrap: anywhere; }
.evidence-chain .ec-ex .readout { white-space: normal; }
.evidence-chain li + li::before { content: ""; position: absolute; top: 41px; left: -16px; width: 16px; height: 2px;
  background: radial-gradient(circle, var(--line-ui) 1px, transparent 1.3px) 0 50% / 6px 2px repeat-x; }
@media (max-width: 800px) {
  .evidence-chain { grid-template-columns: 1fr; gap: 12px; }
  .evidence-chain li + li::before { top: -12px; left: 41px; width: 2px; height: 12px; background-size: 2px 6px; background-repeat: repeat-y; }
}
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.plan, .card.plan { border-radius: var(--r-leaf); }
.plan .price { font-weight: 600; font-size: 2.75rem; line-height: 1; letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.plan .price .per, .plan .per { font: 400 14px var(--font-ui); font-size-adjust: var(--fsa); letter-spacing: 0; color: var(--ink3); margin-left: 6px; }
.plan .features { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15px; }
.plan .features li { display: flex; gap: 10px; align-items: flex-start; }
.plan .features .ico { width: 16px; height: 16px; color: var(--link); flex: none; margin-top: 2px; }
.plan .cta, .plan .actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.plan.featured { border-color: var(--act); box-shadow: 0 0 0 1px var(--act), var(--lift); }
.plan .flag { position: absolute; top: -13px; left: 22px; font: 600 13.5px/1 var(--font-ui); font-size-adjust: var(--fsa); font-variant-caps: normal; letter-spacing: 0;
  text-transform: none; background: var(--act); color: var(--on-act); padding: 7px 12px; border-radius: var(--r-pill); }
.plan .flag.early { background: var(--mark-bg); color: var(--mark-ink); }
@media (max-width: 720px) { .plan .price { font-size: 2.5rem; } }

.grid.ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); row-gap: 0;
  border-top: 1px solid var(--ink); margin-top: 0; }
.grid.ledger > .card.stat { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none;
  padding: 18px 0 16px; min-height: 0; display: grid; grid-template-columns: auto minmax(24px, 1fr) auto;
  grid-template-areas: "lbl dots val" "sub sub src"; column-gap: 14px; row-gap: 4px; align-items: baseline; }
.grid.ledger .stat .lbl { grid-area: lbl; font: 600 1.0625rem/1.25 var(--font-ui); font-size-adjust: var(--fsa); color: var(--ink2); }
.grid.ledger .stat.live .lbl::before { vertical-align: 3px; }
.grid.ledger > .card.stat::after { content: ""; grid-area: dots; align-self: center; height: 2px;
  background: radial-gradient(circle, var(--line-ui) 1px, transparent 1.3px) 0 50% / 8px 2px repeat-x; }
.grid.ledger .stat .val { grid-area: val; margin: 0; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(2.25rem, 1.75rem + 1.6vw, 3rem); line-height: 1; letter-spacing: -.015em; color: var(--ink); }
.grid.ledger .stat .sub { grid-area: sub; margin: 0; }
.grid.ledger .stat .sub + .sub { grid-area: auto / 1 / auto / 3; }   
.grid.ledger .stat .src { grid-area: src; margin: 0; text-align: right; }
@media (max-width: 799px) { .grid.ledger { grid-template-columns: 1fr; } }

@media (min-width: 1100px) {
  .folio { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 48px; counter-increment: folio; }
  .folio > * { grid-column: 2; min-width: 0; }
  .folio > .eyebrow:first-child { grid-column: 1; grid-row: 1 / span 30; align-self: start; position: sticky; top: 96px; padding-top: 10px; }
  .folio > .eyebrow:first-child::before { content: "§ " counter(folio, decimal-leading-zero);
    content: "§ " counter(folio, decimal-leading-zero) / "";   
    display: block; width: auto; height: auto; background: none; font: 400 13px/1.4 var(--font-ui); font-size-adjust: var(--fsa);
    font-style: normal; letter-spacing: 0; color: var(--ink3); margin-bottom: 4px; }
}

.sn, .stepnum, .step .n { background: var(--sel); color: var(--forest); font: 600 14px/1 var(--font-ui); font-size-adjust: var(--fsa); font-variant-numeric: tabular-nums; border-radius: var(--r-leaf-sm); }
[data-theme="dark"] :is(.sn, .stepnum, .step .n) { color: var(--link); }

:where(.split) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
:where(.split) > * { min-width: 0; }
:where(.split-55) { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 40px; align-items: start; }
.sticky-rail { position: sticky; top: 24px; }
@media (max-width: 900px) { :where(.split), :where(.split-55) { grid-template-columns: 1fr; } .sticky-rail { position: static; } }
.with-toc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.toc-rail { display: none; }
@media (min-width: 1100px) { .with-toc { grid-template-columns: minmax(0, 1fr) 220px; } .toc-rail { display: block; } .toc-rail[hidden] { display: none; } }
.toc { position: sticky; top: 24px; font-size: 14px; border-left: 1px solid var(--line); padding-left: 14px; }
.toc .eyebrow { margin-bottom: 10px; }
.toc a { display: block; color: var(--ink2); padding: 4px 0; text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--leaf); margin-left: -15px; padding-left: 15px; }
.ico { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.ico.duo { width: 44px; height: 44px; vertical-align: middle; }
.vis-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .imgcard.reveal .imgcard-media { clip-path: inset(0 0 10% 0 round 28px 4px 0 0); transition: clip-path var(--t-panel) var(--ease); }
.js .imgcard.reveal.in .imgcard-media { clip-path: inset(0 0 0 0 round 28px 4px 0 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-video { display: none; }
  .pulse { animation: none; }
  .display::after, .js .display::after { animation: none; }
  .imgcard-media, .js .imgcard.reveal .imgcard-media, .js .imgcard.reveal.in .imgcard-media { clip-path: none; }
}

@media (max-width: 900px) {
  .topbar { height: 60px; padding: 0 14px; gap: 10px; position: sticky; top: 0; }
  .navbtn { display: inline-flex; margin-left: auto; }
  .topbar nav { display: none; }
  .topbar nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--paper); padding: 12px 16px 32px; overflow-y: auto; z-index: 65; }
  .topbar nav.open > a, .topbar nav.open .grplbl { width: 100%; justify-content: flex-start; padding: 14px 12px; font-size: 17px;
    border-radius: var(--r-sm); border-bottom: 1px solid var(--line); }
  .topbar nav.open .navgrp { position: static; }
  .topbar nav.open .navgrp .navdd { display: flex; position: static; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 6px 12px; animation: none; }
  .topbar nav.open .navgrp .navdd a { padding: 11px 12px; font-size: 16px; }
  .topbar nav.open .navgrp .caret { display: none; }
  .topbar nav.open .nav-auth { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 18px 12px 0; font-size: 15px; color: var(--ink2); }
  .topbar nav.open .nav-auth a:not(.btn) { color: var(--ink); padding: 0; border: 0; font-size: 15px; background: none; }
  .topbar nav.open .nav-auth .nav-mail { overflow-wrap: anywhere; }
  .topbar .auth { margin-left: 0; }
  .topbar .auth #authState { display: none; }   
  .topbar.overlay { position: sticky; }
  .toolbar { top: 60px; }
  .wrap { padding: 20px 16px 48px; }
  h2 { margin: 28px 0 10px; }
  .filters input[type=text], .toolbar input[type=text], .toolbar input[type=search] { min-width: 0; width: 100%; }
  .filters input, .filters select, .toolbar input, .toolbar select { flex: 1 1 45%; }
  table { font-size: 12.5px; }
  th, td { padding: 7px 8px; }
  .drawer { width: 100vw; padding: 20px 16px 40px; }
  .kv { grid-template-columns: 110px 1fr; }
  .tabs { flex-wrap: wrap; }
  .srcchip { white-space: normal; }                 
  .wrap [style*="display:flex"], main [style*="display:flex"], .band-inner [style*="display:flex"], .hero-inner [style*="display:flex"] { flex-wrap: wrap; } 
  .hero-copy, .band-inner, .pagehead .band-inner { overflow-wrap: anywhere; }
  .wrap select { max-width: calc(100vw - 64px); }    
  .band-inner, footer .wrap { padding-left: 16px; padding-right: 16px; }
  .band:is(.loaded, [style*="--band-img"]):not(.band-h):not(.faint)::before { background: var(--scrim-copy); }
  .band-caption { right: 16px; }
}
@media (max-width: 720px) {
  .cta-band { margin: 48px 12px 0; padding: 56px 18px; }
}
@media (max-width: 600px) {
  .btn { min-height: 44px; }
  .btn.sm { min-height: 40px; }
  .themebtn { width: 44px; height: 44px; }
  .pager button { min-height: 44px; }
  .drawer .x { width: 44px; height: 44px; }
}
@media (max-width: 1080px) and (min-width: 901px) {
  .topbar { gap: 16px; }
  .topbar nav { gap: 2px; }
  .topbar nav a, .navgrp .grplbl { font-size: 14px; padding: 10px 10px; }
}

section.hero .hero-copy::before { content: none; }
section.hero .hero-copy .eyebrow { color: var(--link); }
section.hero .hero-inner .hero-readout { background: none; border-color: var(--line); color: var(--ink2); }
section.hero .hero-inner .hero-readout .readout:not(.ok, .warn, .bad) { background: var(--card); border-color: var(--line); color: var(--ink2); }
section.hero .hero-inner .hero-readout .readout.ok { color: var(--good); background: var(--good-bg); border-color: transparent; }
section.hero .hero-inner .hero-readout .readout.bad { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
section.hero .hero-inner .hero-readout .readout b { color: var(--ink); }
section.hero .hero-inner .hero-readout .readout:is(.ok, .warn, .bad) b { color: inherit; }
section.hero .hero-inner .hero-readout a.readout { flex: 0 0 auto; justify-content: center; padding: 7px 11px; color: var(--link); }

.m-cta { display: none; }
@media (max-width: 900px) {
  .m-cta { display: inline-flex; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45;
    box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--shade) 55%, transparent); }
  .m-cta.off { display: none; }
  body.has-mcta { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .m-cta { display: none; } }

.env-ribbon { position: fixed; left: 12px; bottom: 12px; z-index: 60; color: var(--on-dark); background: color-mix(in srgb, var(--forest) 92%, transparent);
  border: 1px solid var(--leaf); font: 500 12px/1.3 var(--font-ui); font-size-adjust: var(--fsa); letter-spacing: 0;
  border-radius: var(--r-pill); padding: 6px 12px; pointer-events: none; }
@media print { .env-ribbon { display: none; } }
@media (max-width: 900px) { body.has-mcta .env-ribbon { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); } }

body[data-surface="app"] { padding: var(--shell-top-h) 0 0 var(--shell-side-w); background: var(--surface-1); }
[data-surface="app"] main { min-height: calc(100dvh - var(--shell-top-h)); }
.app-top, .focus-top { display: flex; align-items: center; gap: 8px; height: var(--shell-top-h); background: var(--surface-1); border-bottom: 1px solid var(--border-1); }
.app-top { position: fixed; top: 0; left: var(--shell-side-w); right: 0; z-index: var(--z-top); padding: 0 16px 0 32px; }
.focus-top { padding: 0 16px 0 24px; }
.app-side { position: fixed; top: 0; bottom: 0; left: 0; z-index: var(--z-side); width: var(--shell-side-w); overflow-y: auto; display: flex;
  flex-direction: column; gap: 2px; padding: 12px; background: var(--surface-rail); border-right: 1px solid var(--border-1); }
.app-side * { transition: none; }   
.app-side-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding-left: 10px; }
:is(.app-side, .app-top, .focus-top) .brand img { height: 22px; }
[data-surface="app"] { --font-display: var(--font-ui); }
.app-org { display: flex; align-items: center; gap: 8px; margin: 2px 10px 4px; font-size: 13.5px; color: var(--text-2); }
.app-org span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-plan { padding: 0 8px; border: 1px solid var(--border-1); border-radius: var(--r-pill); background: var(--accent-bg); color: var(--text-1);
  font-size: 12px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.app-grp { margin: 16px 10px 4px; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.app-fold > summary { cursor: pointer; list-style: none; }   
.app-fold > summary::-webkit-details-marker { display: none; }
.app-fold > summary::after { content: " ▾"; }
.app-fold[open] > summary::after { content: " ▴"; }
.app-link { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px; border-radius: var(--r-sm); font-size: 15px;
  font-weight: 500; line-height: 1.25; color: var(--text-2); }
:is(.app-link, .app-pop a, .app-ico, .app-menu, .app-close, .app-userbtn):hover { background: var(--surface-hover); color: var(--text-1); text-decoration: none; }
.app-link.on { background: var(--surface-sel); color: var(--text-1); font-weight: 600; }   
:is(.app-link, .app-pop a) .ico { width: 18px; height: 18px; flex: none; }
.ico.app-ext { width: .85em; height: .85em; margin-left: 3px; vertical-align: -.08em; }   
.app-link .ico.app-ext { width: 14px; height: 14px; margin-left: auto; color: var(--text-3); }   
.app-link.app-locked > span { color: var(--text-3); }   
.app-sub .app-link { min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: 14px; }   
.app-sub .app-link[aria-current="page"] { background: var(--surface-sel); color: var(--text-1); font-weight: 600; }
:is(.app-link.on, .app-tabbar .on) .ico { color: var(--accent); }   
.app-side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-1); }
.app-foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.app-title { flex: 1; min-width: 0; }
.app-title p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; color: var(--text-1); }
.app-actions { display: flex; gap: 8px; }
.app-ws select { max-width: 220px; min-height: 36px; padding: 4px 30px 4px 10px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  appearance: none; -webkit-appearance: none; background: var(--caret) right 8px center / 14px no-repeat, var(--surface-2); color: var(--text-1);
  font: 500 14px/1.2 var(--font-ui); text-overflow: ellipsis; }
@media (max-width: 767px) { .app-ws select { max-width: 38vw; } }
.app-env { padding: 2px 10px; border: 1px solid var(--border-2); border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.app-ico, .app-menu, .app-close, .app-userbtn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
:is(.app-ico, .app-menu, .app-close) .ico { width: 20px; height: 20px; }
.app-menu, .app-close, .app-brand, .app-tabbar, :is(.app-link, .app-plan, .app-scrim, .app-pop)[hidden], .app-actions:empty { display: none; }
.app-user { position: relative; }
.app-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--action); color: var(--on-action);
  font-size: 13px; font-weight: 600; }
.app-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: var(--z-pop); display: flex; flex-direction: column; min-width: 240px; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--border-1); border-radius: var(--r); box-shadow: var(--lift-2); }
.app-pop-who { display: grid; justify-items: start; gap: 4px; margin: 0 0 4px; padding: 6px 10px 10px; border-bottom: 1px solid var(--border-1);
  font-weight: 600; overflow-wrap: anywhere; }
.app-pop a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--r-sm); color: var(--text-1); }
.app-scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: var(--shell-scrim); }
[data-surface="app"] :is(.band.band-h, .pagehead, .band.faint, .band.gateband) { min-height: 0; margin: 0; padding: 28px 32px 4px; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: var(--text-1); }
[data-surface="app"] :is(.band.band-h, .pagehead, .band.faint, .band.gateband)::before { content: none; }
[data-surface="app"] :is(.band.band-h, .pagehead, .band.faint, .band.gateband) .band-inner { max-width: var(--container); margin: 0; padding: 0; background: none;
  box-shadow: none; border-radius: 0; color: var(--text-1); }
[data-surface="app"] :is(.band.band-h, .pagehead, .band.faint) .sub { font-family: var(--font-ui); font-size-adjust: var(--fsa); font-style: normal; color: var(--text-2); }
[data-surface="app"] .how, [data-surface="app"] .band-h .sub:is(#cbamSub) { display: none; }   
[data-surface="app"] .band.gateband { padding-bottom: 48px; }
[data-surface="app"] .gateband .glass { background: var(--surface-2); border: 1px solid var(--border-1); box-shadow: none; }
:is([data-surface="app"], .page-head) :is(h1, h2) { font-family: var(--font-ui); font-size-adjust: var(--fsa); font-style: normal; font-weight: 600;
  letter-spacing: -.005em; color: var(--text-1); }
:is([data-surface="app"], .page-head) h1 { margin: 0; font-size: 26px; line-height: 1.2; }
[data-surface="app"] h2 { font-size: 18px; line-height: 1.3; letter-spacing: 0; }
[data-surface="app"] h3 { font-size: 15px; line-height: 1.35; font-weight: 600; }
[data-surface="app"] :is(.eyebrow, .env-ribbon, .m-cta) { display: none; }
[data-surface="app"] .wrap { max-width: none; margin: 0; padding: 20px 32px 48px; }
[data-surface="app"] .toolbar { top: var(--shell-top-h); }
[data-surface="app"] .drawer { top: var(--shell-top-h); height: calc(100dvh - var(--shell-top-h)); z-index: var(--z-side); }   
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; margin: 0 0 20px; }
.page-head > :first-child { flex: 1 1 320px; min-width: 0; }
.ph-sub { margin: 4px 0 0; color: var(--text-2); }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ph-tabs { display: flex; flex-basis: 100%; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--border-1); }
.ph-tabs > * { flex: none; padding: 10px 12px; border: 0; border-radius: var(--r-sm) var(--r-sm) 0 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--text-2); }
.ph-tabs > :hover { background: var(--surface-hover); color: var(--text-1); text-decoration: none; }
.ph-tabs > :is([aria-selected="true"], [aria-current="page"]) { color: var(--text-1); font-weight: 600; box-shadow: inset 0 -2px 0 var(--text-1); }
.state { display: grid; justify-items: start; gap: 8px; max-width: 640px; padding: 28px 24px; border: 1px dashed var(--border-1); border-radius: var(--r);
  background: var(--surface-2); color: var(--text-2); }
.state-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-1); }
.state-text { margin: 0; }
.state.error { border: 1px solid var(--status-bad); background: var(--status-bad-bg); }
.state.error .state-title { color: var(--status-bad); }
.state.loading { max-width: none; padding: 8px 0; border: 0; background: none; animation: fbgec 1ms 400ms both; }
@keyframes fbgec { from { visibility: hidden; } }
.skel { display: block; height: 14px; border-radius: var(--r-xs); background: var(--surface-3); }
.skel.short { width: 60%; }
.fb-toasts { position: fixed; right: 16px; bottom: 16px; z-index: var(--z-toast); display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.fb-toast { display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 14px; border-radius: var(--r); background: var(--text-1);
  color: var(--surface-1); box-shadow: var(--lift-2); }
.fb-toast.error { box-shadow: inset 4px 0 0 var(--status-bad), var(--lift-2); }
.fb-toast p { flex: 1; margin: 0; }
.fb-toast .ico { width: 18px; height: 18px; flex: none; }
.fb-toast button { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: var(--r-sm); background: none; color: inherit; cursor: pointer; }
.fb-toast button:focus-visible { outline-color: var(--surface-1); }
.fb-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid var(--border-1); border-radius: var(--r-lg); background: var(--surface-2);
  color: var(--text-1); box-shadow: var(--lift-2); }
.fb-dialog::backdrop { background: var(--shell-scrim); }
.fb-dialog h2 { margin: 0 0 8px; font: 600 18px/1.3 var(--font-ui); font-size-adjust: var(--fsa); }
.fb-dialog-text { margin: 0 0 16px; color: var(--text-2); }
.fb-dialog-text:empty, .fb-dialog-err:empty { display: none; }
.fb-dialog-text p { margin: 0 0 10px; }
.fb-dialog-err { margin: 0 0 12px; color: var(--status-bad); font-size: 14px; font-weight: 600; }
.fb-dialog label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.fb-dialog input { width: 100%; min-height: 44px; margin-bottom: 16px; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: var(--surface-1); color: var(--text-1); }
.fb-dialog-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.btn.danger { background: var(--status-bad); color: var(--on-action); }
.fb-dialog .btn:disabled { opacity: .5; cursor: not-allowed; }
.app-foot { padding: 16px 32px 20px; border-top: 1px solid var(--border-1); color: var(--text-3); font-size: 13px; }
.app-foot .fmeasure { margin: 0 0 6px; }
.app-foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }
.app-foot-links a { min-height: 24px; line-height: 24px; }   
.app-foot-links .copy { margin-left: auto; }
[data-shell="focus"] .app-foot { max-width: var(--container); margin: 40px auto 0; padding: 16px 24px 24px; }
.focus-exit { margin-left: auto; color: var(--text-2); }
@media (max-width: 1023px) {
  body[data-surface="app"] { padding-left: 0; }
  .app-top { left: 0; padding: 0 12px; }
  .app-menu, .app-close { display: inline-flex; }
  .app-brand { display: block; margin-right: 4px; }
  .app-side { z-index: var(--z-navdrawer); width: min(86vw, 280px); visibility: hidden; transform: translateX(-102%); box-shadow: var(--lift-2);
    transition: transform var(--t-panel) var(--ease), visibility 0s var(--t-panel); }
  .app-nav-open .app-side { visibility: visible; transform: none; transition: transform var(--t-panel) var(--ease); }
  .app-nav-open { overflow: hidden; }
  [data-surface="app"] :is(.band.band-h, .pagehead, .band.faint, .band.gateband) { padding: 20px 16px 4px; }
  [data-surface="app"] .wrap { padding: 16px 16px 40px; }
  .app-foot { padding: 14px 16px 18px; }
  .app-foot-links .copy { margin-left: 0; }
}
@media (max-width: 767px) {
  :root { --shell-top-h: 52px; }
  body[data-surface="app"] { padding-bottom: calc(var(--shell-bottom-h) + env(safe-area-inset-bottom, 0px)); }
  .app-top .app-menu, .app-title, .app-env { display: none; }
  .app-brand { margin-right: auto; }
  .app-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-top); display: flex; padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--surface-rail); border-top: 1px solid var(--border-1); }
  .app-tabbar.off { display: none; }
  .app-tabbar > * { flex: 1 1 0; min-width: 0; min-height: var(--shell-bottom-h); display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px; padding: 4px 2px; border: 0; background: none; color: var(--text-2); font-size: 11.5px; font-weight: 500; cursor: pointer; }
  .app-tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-tabbar .ico { width: 22px; height: 22px; }
  .app-tabbar .on { color: var(--text-1); font-weight: 600; background: var(--surface-sel); }
  .app-pop { position: fixed; top: calc(var(--shell-top-h) + 4px); left: 12px; right: 12px; }
  [data-surface="app"] .fb-toasts { bottom: calc(12px + var(--shell-bottom-h) + env(safe-area-inset-bottom, 0px)); }
  [data-surface="app"] #pgMsg { bottom: calc(18px + var(--shell-bottom-h)); }
  [data-surface="app"] .drawer { height: calc(100dvh - var(--shell-top-h) - var(--shell-bottom-h) - env(safe-area-inset-bottom, 0px)); }
  .ph-actions, .ph-actions > .btn:not(.ghost) { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .app-side { transition: none !important; } }
@media (forced-colors: active) { :is(.app-link.on, .app-tabbar .on, .ph-tabs > [aria-selected="true"]) { outline: 2px solid CanvasText; outline-offset: -2px; } }
@media print { :is(.app-top, .app-side, .app-scrim, .app-tabbar, .fb-toasts, .focus-top) { display: none; } body[data-surface="app"] { padding: 0; } }
