/* Dialogue: the shared design layer for the public site and the workspace.
   Every colour, face, radius, border and effect is a token below, keyed by <html data-theme>; theme.js picks
   the theme before the first paint and also sets <html data-scheme> to light or dark. Components read
   tokens only, so every theme (and a GetMoat style set at runtime) restyles the whole site. */
@font-face{font-family:"Familjen Grotesk";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/familjen-grotesk-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Familjen Grotesk";font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/familjen-grotesk-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-400-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-mono-600-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Inter (SIL OFL 1.1) and Gambarino (Fontshare / ITF free font licence), self-hosted for the CSP. Gambarino has one weight. */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/inter-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Gambarino";font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/gambarino-regular.woff2) format("woff2")}

/* Token contract (see the theme notes in docs/UX_AND_VISUAL_DESIGN.md and window.GetHackedTheme.customTokens()):
   --bg page, opaque · --ink text · --ink-2 strong secondary text · --muted secondary text (AA everywhere) · --faint decorative, never text
   --ghost hairline borders · --fill/--fill-2 control fills · --cell-fill bar track · --surface cards on the page effects · --bg-raised menus, opaque
   --control-line outlined-control border · --border-hover · --accent/--accent-hover/--accent-ink/--accent-wash/--accent-line the one accent
   --accent-text accent-coloured text (AA) · --focus focus ring · --link/--link-underline · --ok/--ok-text/--doing/--doing-text/--todo/--gold/--danger
   --display headlines and brand moments · --display-weight · --display-tracking · --body UI and body text · --body-weight · --label small caps labels · --mono
   --radius-sm/--radius/--radius-field/--radius-lg/--radius-round · --shadow · --button-shadow/--button-glow/--button-glow-active/--hover-lift
   --button-weight/--button-tracking button and tab text (here, not in kit.css, so pages without the kit match the workspace)
   --page-mesh/--page-mesh-size/--page-mesh-motion the moving background · --page-grain/--page-grain-size the overlay · --text-glow
   --public-action* and --public-mesh* refine public actions and signed-out pages without changing private workspace tokens.
   The default (no or unknown data-theme) is GetHacked: black, the blue and purple mesh, grain, Gambarino and Inter, one blue.
   Themed blocks carry html[data-theme] specificity, so a stylesheet's own :root defaults never override a theme. */
:root,html[data-theme=gethacked],html[data-theme=custom]{
  color-scheme:dark;
  --bg:#000000;--ink:#ffffff;--ink-2:#cccccc;--muted:#888888;--faint:#555555;--ghost:rgba(255,255,255,.08);--fill:rgba(255,255,255,.03);--fill-2:rgba(255,255,255,.06);
  --ok:#3ccf82;--ok-text:#3ccf82;--doing-text:#ff9a5c;--doing:#ff7a33;--todo:#6a727c;--gold:#ddb052;--danger:#ff6b5e;--cell-fill:rgba(255,255,255,.08);--shadow:0 1px 2px rgba(0,0,0,.6),0 24px 64px rgba(0,0,0,.7);
  --surface:rgba(255,255,255,.02);--bg-raised:#0c0d11;--control-line:rgba(255,255,255,.15);--border-hover:rgba(255,255,255,.2);
  --accent:#1e5eff;--accent-hover:#2f68ff;--accent-ink:#ffffff;--accent-wash:rgba(30,94,255,.1);--accent-line:rgba(30,94,255,.35);--accent-text:#8aa8ff;
  --focus:#1e5eff;--link:#ffffff;--link-underline:#1e5eff;
  --display:"Gambarino",Georgia,serif;--display-weight:400;--display-tracking:-.02em;--body:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--body-weight:400;--label:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;--font-synthesis:style;
  --radius-sm:4px;--radius:6px;--radius-field:6px;--radius-lg:6px;--radius-round:2px;
  --button-shadow:none;--button-glow:0 0 24px rgba(30,94,255,.35),0 0 48px rgba(30,94,255,.15);--button-glow-active:0 0 12px rgba(30,94,255,.2);--hover-lift:translateY(-1px);--button-weight:500;--button-tracking:.02em;
  --page-mesh:radial-gradient(ellipse 80% 60% at 20% 20%,rgba(30,94,255,.15) 0%,transparent 60%),radial-gradient(ellipse 60% 80% at 80% 80%,rgba(88,28,135,.1) 0%,transparent 50%),radial-gradient(ellipse 50% 50% at 50% 50%,rgba(30,58,138,.08) 0%,transparent 60%);
  --page-mesh-size:200% 200%,180% 180%,220% 220%;--page-mesh-motion:gh-mesh-drift 25s ease-in-out infinite;
  --page-grain:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");--page-grain-size:256px 256px;--text-glow:none;
  --ease:cubic-bezier(.2,.8,.2,1);
  /* Older step modules read these names. */
  --line:var(--ghost);--panel:var(--fill);--glow:transparent;
}
/* Light: today's white canvas, bulky black type, no bordered controls. Unchanged. */
html[data-theme=light]{
  color-scheme:light;
  --bg:#ffffff;--ink:#0c0c0d;--ink-2:#2c2e32;--muted:#5d646d;--faint:#c3c8cf;--ghost:#e3e6ea;--fill:#f2f3f5;--fill-2:#e8eaed;
  --ok:#11904a;--ok-text:#0b7139;--doing-text:#b8440a;--doing:#e2560f;--todo:#8a919a;--gold:#b5852b;--danger:#b42318;--cell-fill:#eef0f2;--shadow:0 1px 2px rgba(0,0,0,.06),0 22px 60px rgba(0,0,0,.14);
  --surface:var(--bg);--bg-raised:var(--bg);--control-line:transparent;--border-hover:var(--faint);
  --accent:var(--ink);--accent-hover:var(--ink-2);--accent-ink:var(--bg);--accent-wash:var(--fill);--accent-line:var(--ink);--accent-text:#245aee;
  --focus:#245aee;--link:#1f4bff;--link-underline:currentColor;
  --display:"Familjen Grotesk","Helvetica Neue",Arial,sans-serif;--display-weight:700;--display-tracking:initial;--body:"Familjen Grotesk","Helvetica Neue",Arial,sans-serif;--body-weight:500;--label:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;--font-synthesis:weight style;
  --radius-sm:4px;--radius:6px;--radius-field:6px;--radius-lg:8px;--radius-round:99px;
  --button-shadow:none;--button-glow:none;--button-glow-active:none;--hover-lift:none;--button-weight:700;--button-tracking:0em;
  --page-mesh:none;--page-mesh-size:auto;--page-mesh-motion:none;--page-grain:none;--page-grain-size:auto;--text-glow:none;
}
/* Dark: today's dark design. The saved "retro" appearance from the earlier design opens it too. */
html[data-theme=dark],html[data-theme=retro]{
  color-scheme:dark;
  --bg:#0c0d0f;--ink:#f3f4f5;--ink-2:#d4d7db;--muted:#a3aab3;--faint:#4a5059;--ghost:#262a30;--fill:#16181c;--fill-2:#1f2227;
  --ok:#3ccf82;--ok-text:#3ccf82;--doing-text:#ff9a5c;--doing:#ff7a33;--todo:#6a727c;--gold:#ddb052;--danger:#ff8a7a;--cell-fill:#1a1d22;--shadow:0 1px 2px rgba(0,0,0,.4),0 22px 60px rgba(0,0,0,.55);
  --surface:var(--bg);--bg-raised:var(--bg);--control-line:transparent;--border-hover:var(--faint);
  --accent:var(--ink);--accent-hover:var(--ink-2);--accent-ink:var(--bg);--accent-wash:var(--fill);--accent-line:var(--ink);--accent-text:#8eaaff;
  --focus:#8eaaff;--link:#8ea2ff;--link-underline:currentColor;
  --display:"Familjen Grotesk","Helvetica Neue",Arial,sans-serif;--display-weight:700;--display-tracking:initial;--body:"Familjen Grotesk","Helvetica Neue",Arial,sans-serif;--body-weight:500;--label:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;--font-synthesis:weight style;
  --radius-sm:4px;--radius:6px;--radius-field:6px;--radius-lg:8px;--radius-round:99px;
  --button-shadow:none;--button-glow:none;--button-glow-active:none;--hover-lift:none;--button-weight:700;--button-tracking:0em;
  --page-mesh:none;--page-mesh-size:auto;--page-mesh-motion:none;--page-grain:none;--page-grain-size:auto;--text-glow:none;
}
/* Terminal: an old phosphor screen. Green on green-black, amber for focus and the second voice, mono everywhere, square corners, scanlines. */
html[data-theme=terminal]{
  color-scheme:dark;
  --bg:#060b07;--ink:#7dff9a;--ink-2:#5ee07a;--muted:#4fbf68;--faint:#1f3a24;--ghost:rgba(125,255,154,.16);--fill:rgba(125,255,154,.05);--fill-2:rgba(125,255,154,.09);
  --ok:#33ff66;--ok-text:#33ff66;--doing-text:#ffb000;--doing:#ffb000;--todo:#3a7a48;--gold:#ffb000;--danger:#ff5f56;--cell-fill:rgba(125,255,154,.1);--shadow:0 0 0 1px rgba(125,255,154,.18),0 18px 48px rgba(0,0,0,.8);
  --surface:rgba(125,255,154,.025);--bg-raised:#0b140d;--control-line:rgba(125,255,154,.32);--border-hover:rgba(125,255,154,.55);
  --accent:#33ff66;--accent-hover:#7dff9a;--accent-ink:#021405;--accent-wash:rgba(51,255,102,.1);--accent-line:rgba(51,255,102,.45);--accent-text:#7dff9a;
  --focus:#ffb000;--link:#7dff9a;--link-underline:#ffb000;
  --display:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;--display-weight:600;--display-tracking:0em;--body:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;--body-weight:400;--label:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;--font-synthesis:weight style;
  --radius-sm:0px;--radius:0px;--radius-field:0px;--radius-lg:0px;--radius-round:0px;
  --button-shadow:none;--button-glow:0 0 14px rgba(51,255,102,.45);--button-glow-active:0 0 6px rgba(51,255,102,.3);--hover-lift:none;--button-weight:600;--button-tracking:.02em;
  --page-mesh:radial-gradient(ellipse 120% 90% at 50% 40%,rgba(51,255,102,.06) 0%,transparent 70%);--page-mesh-size:100% 100%;--page-mesh-motion:none;
  --page-grain:repeating-linear-gradient(to bottom,rgba(125,255,154,.045) 0 1px,transparent 1px 3px);--page-grain-size:auto;--text-glow:0 0 .45em rgba(51,255,102,.28);
}
/* Cyberpunk: violet-black, neon magenta with cyan for focus and links, a grotesk display, a little neon on primary buttons. */
html[data-theme=cyberpunk]{
  color-scheme:dark;
  --bg:#0b0614;--ink:#f4f1ff;--ink-2:#d9d0f5;--muted:#a99bd3;--faint:#4b3d6e;--ghost:rgba(200,160,255,.14);--fill:rgba(200,160,255,.05);--fill-2:rgba(200,160,255,.09);
  --ok:#00f5a0;--ok-text:#00f5a0;--doing-text:#ffb02e;--doing:#ffb02e;--todo:#6b5b95;--gold:#ffd23f;--danger:#ff4d6d;--cell-fill:rgba(200,160,255,.1);--shadow:0 1px 2px rgba(0,0,0,.6),0 24px 64px rgba(20,0,40,.75);
  --surface:rgba(200,160,255,.03);--bg-raised:#140a24;--control-line:rgba(0,240,255,.3);--border-hover:rgba(0,240,255,.55);
  --accent:#ff2bd6;--accent-hover:#ff5ce1;--accent-ink:#14001a;--accent-wash:rgba(255,43,214,.12);--accent-line:rgba(255,43,214,.5);--accent-text:#ff7be5;
  --focus:#00f0ff;--link:#00f0ff;--link-underline:#ff2bd6;
  --display:"Familjen Grotesk","Helvetica Neue",Arial,sans-serif;--display-weight:700;--display-tracking:-.03em;--body:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--body-weight:400;--label:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;--font-synthesis:weight style;
  --radius-sm:2px;--radius:3px;--radius-field:3px;--radius-lg:4px;--radius-round:2px;
  --button-shadow:0 0 12px rgba(255,43,214,.35);--button-glow:0 0 18px rgba(255,43,214,.6),0 0 42px rgba(255,43,214,.3);--button-glow-active:0 0 8px rgba(255,43,214,.45);--hover-lift:translateY(-1px);--button-weight:700;--button-tracking:.04em;
  --page-mesh:radial-gradient(ellipse 80% 60% at 20% 20%,rgba(255,43,214,.16) 0%,transparent 60%),radial-gradient(ellipse 60% 80% at 80% 80%,rgba(0,240,255,.1) 0%,transparent 50%),radial-gradient(ellipse 50% 50% at 50% 50%,rgba(110,40,200,.12) 0%,transparent 60%);
  --page-mesh-size:200% 200%,180% 180%,220% 220%;--page-mesh-motion:gh-mesh-drift 25s ease-in-out infinite;
  --page-grain:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");--page-grain-size:256px 256px;--text-glow:none;
}
/* Soft pink: blush canvas, deep plum ink, one rose accent, Gambarino headlines, soft corners. */
html[data-theme=pink]{
  color-scheme:light;
  --bg:#fbf0f2;--ink:#3b1230;--ink-2:#5a2a4c;--muted:#7a4a6a;--faint:#dcbfcc;--ghost:#efd9e1;--fill:#f6e4ea;--fill-2:#f0d6df;
  --ok:#1a7547;--ok-text:#17663f;--doing-text:#a8400a;--doing:#b8440a;--todo:#a07f90;--gold:#84590c;--danger:#b42318;--cell-fill:#f2dde4;--shadow:0 1px 2px rgba(59,18,48,.06),0 22px 60px rgba(59,18,48,.14);
  --surface:rgba(255,255,255,.55);--bg-raised:#fffafb;--control-line:#e6c6d3;--border-hover:#d29ab2;
  --accent:#c2185b;--accent-hover:#a3134c;--accent-ink:#ffffff;--accent-wash:#f9dce6;--accent-line:rgba(194,24,91,.35);--accent-text:#a3134c;
  --focus:#c2185b;--link:#3b1230;--link-underline:#c2185b;
  --display:"Gambarino",Georgia,serif;--display-weight:400;--display-tracking:-.02em;--body:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--body-weight:400;--label:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--font-synthesis:style;
  --radius-sm:6px;--radius:10px;--radius-field:8px;--radius-lg:14px;--radius-round:99px;
  --button-shadow:0 6px 18px rgba(194,24,91,.18);--button-glow:0 10px 28px rgba(194,24,91,.28);--button-glow-active:0 4px 12px rgba(194,24,91,.2);--hover-lift:translateY(-1px);--button-weight:500;--button-tracking:.01em;
  --page-mesh:radial-gradient(ellipse 80% 60% at 20% 20%,rgba(255,170,200,.35) 0%,transparent 60%),radial-gradient(ellipse 60% 80% at 80% 80%,rgba(214,170,255,.25) 0%,transparent 50%),radial-gradient(ellipse 50% 50% at 50% 50%,rgba(255,214,190,.3) 0%,transparent 60%);
  --page-mesh-size:200% 200%,180% 180%,220% 220%;--page-mesh-motion:gh-mesh-drift 25s ease-in-out infinite;
  --page-grain:none;--page-grain-size:auto;--text-glow:none;
}
/* "custom": GetMoat's (or anyone's) style. theme.js validates it, enforces contrast and sets every token inline on <html>;
   anything it leaves out falls back to the GetHacked default above. */

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;font-synthesis:var(--font-synthesis)}
body{margin:0;background:var(--bg);color:var(--ink);font:var(--body-weight) 16px/1.5 var(--body);text-shadow:var(--text-glow);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
button,input,textarea,select{font:inherit;color:inherit;letter-spacing:inherit}
button{background:none;border:0;border-radius:0;padding:0;margin:0;cursor:pointer;color:inherit;text-align:inherit;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:default}
a{color:inherit;text-underline-offset:5px}
p{line-height:1.55}
:focus-visible{outline:2px solid var(--focus);outline-offset:4px;border-radius:6px}
/* Light and dark keep today's ink ring, which follows any panel that re-points --ink. */
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :focus-visible{outline-color:var(--ink)}
h1:focus,h2:focus,main:focus,[tabindex="-1"]:focus{outline:none}
[hidden]{display:none!important}
::selection{background:var(--ink);color:var(--bg)}

/* Fields: the DESIGN.md input. A faint fill, a hairline from --control-line (none in light and dark), and on focus the
   line turns to the focus colour with a soft halo. Zero specificity, so components can restyle them. */
:where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]),textarea,select){
  width:100%;min-height:46px;border:0;border-radius:var(--radius-field);background-color:var(--fill);color:var(--ink);box-shadow:inset 0 0 0 1px var(--control-line);
  padding:12px 16px;font:var(--body-weight) 15px/1.35 var(--body);transition:background-color .2s,box-shadow .2s}
:where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]),textarea,select):hover{background-color:var(--fill-2)}
:where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]),textarea,select):focus-visible{outline:1px solid var(--focus);outline-offset:-1px;border-radius:var(--radius-field);background-color:var(--fill-2);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 35%,transparent)}
:where(input[type=checkbox],input[type=radio],input[type=range],input[type=file],input[type=color]):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
:where(textarea){resize:vertical;line-height:1.45}
/* The select arrow is one conic wedge in --muted, so it follows every theme (light and dark keep today's drawn chevron below). */
:where(select){appearance:none;-webkit-appearance:none;padding-right:44px;cursor:pointer;
  background-image:conic-gradient(from -45deg at 50% 100%,var(--muted) 90deg,transparent 0);
  background-repeat:no-repeat;background-position:right 18px center;background-size:10px 5px}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input[type=checkbox],input[type=radio]{width:20px;height:20px;min-height:0;margin:0;accent-color:var(--accent);flex:none}
input[type=range]{accent-color:var(--accent);width:100%}
/* A small label above its field. */
label{display:block;margin:0 0 8px;font:var(--body-weight) 12px/1.35 var(--body);letter-spacing:.01em;color:var(--muted)}

.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.kicker{margin:0;font:500 12px/1.3 var(--label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}

/* Primary action: one solid accent button with the theme's glow on hover (DESIGN.md btn-primary).
   Light and dark keep today's ink hexagon carrying an arrow, then bold words (below). Step modules share the look. */
.hex-action,.academy-primary,.assessment-primary{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 24px;border:1px solid var(--ghost);border-radius:var(--radius);background:var(--accent);color:var(--accent-ink);box-shadow:var(--button-shadow);font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 14px/1.15 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));text-align:center;text-decoration:none;text-shadow:none;transition:background-color .2s,border-color .2s,box-shadow .2s,transform .2s}
.hex-action:hover:not(:disabled),.academy-primary:hover:not(:disabled),.assessment-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--border-hover);box-shadow:var(--button-glow);transform:var(--hover-lift)}
.hex-action:active:not(:disabled),.academy-primary:active:not(:disabled),.assessment-primary:active:not(:disabled){transform:none;box-shadow:var(--button-glow-active)}
.hex-action:disabled,.academy-primary:disabled,.assessment-primary:disabled{opacity:.45;cursor:default}
/* Secondary action: words only. */
.text-action{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 2px;font:var(--button-weight,calc(var(--body-weight)*2 - 300)) 15px/1.2 var(--body);letter-spacing:var(--button-tracking,calc((500 - var(--body-weight))*.0002em));color:var(--muted);text-decoration:none;transition:color .2s}
.text-action:hover:not(:disabled){color:var(--ink)}
.text-action:disabled{opacity:.45}
.text-action[aria-pressed=true]{color:var(--ink)}

/* Status hexagons: green ready, orange ongoing, grey not started. */
.hx{width:15px;height:17px;flex:none;overflow:visible}
.hx polygon{fill:none;stroke:var(--todo);stroke-width:1.8;stroke-linejoin:round;transition:fill .4s,stroke .4s}
.hx[data-status=done] polygon{fill:var(--ok);stroke:var(--ok)}
.hx[data-status=active] polygon{fill:var(--doing);stroke:var(--doing)}
.hx[data-status=current] polygon{fill:none;stroke:var(--doing);stroke-width:2.4}
.hx[data-status=active]{animation:hx-pulse 1.6s ease-in-out infinite}
@keyframes hx-pulse{50%{transform:scale(.82)}}

/* GetMoat's spoken line: plain reading text, what has been said in --ink-2, the rest waiting in grey. */
.getmoat-who{display:block;margin:0 0 10px;font:500 12px/1 var(--label);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.getmoat-who b{color:var(--ink);font-weight:600}
.getmoat-line{margin:0;font:var(--body-weight) clamp(17px,1.4vw,20px)/1.5 var(--body);color:var(--ink-2);text-wrap:pretty;overflow-wrap:break-word}
.getmoat-line .rest{color:var(--faint)}

/* Light and dark keep today's metrics: heavier fields, larger labels and kickers, the ink hexagon and the large spoken line.
   Zero-specificity theme scope, placed after the shared rules, so component and media rules still apply on top. */
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]),textarea,select){min-height:50px;padding:13px 16px;font-weight:600;font-size:17px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :where(input,textarea,select):focus-visible{outline:2px solid var(--ink);outline-offset:2px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :where(input:not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]),textarea,select):focus-visible{background-color:var(--fill);box-shadow:inset 0 0 0 1px var(--control-line)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :where(select){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%238a9099' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 14px center;background-size:18px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) label{font-weight:600;font-size:14px;letter-spacing:normal;color:var(--ink-2)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.kicker,.getmoat-who){font-size:14px;letter-spacing:.045em}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary){justify-content:flex-start;gap:14px;min-height:52px;padding:0 2px 0 0;border:0;border-radius:0;background:none;color:var(--ink);box-shadow:none;font:700 19px/1.15 var(--body);letter-spacing:-.01em;text-align:left;transition:none}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary):hover:not(:disabled){background:none;border-color:transparent;box-shadow:none;transform:none}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary):active:not(:disabled){box-shadow:none}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary):disabled{opacity:1;color:var(--muted)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary)::before{content:"";flex:none;width:42px;height:48px;background:var(--accent);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);transition:transform .3s var(--ease),opacity .3s}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary)::after{content:"";position:absolute;left:12px;top:50%;width:18px;height:18px;margin-top:-9px;background:var(--accent-ink);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M10.5 5l5 5-5 5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary):hover:not(:disabled)::before{transform:scale(1.07)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary):disabled::before,:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) :is(.hex-action,.academy-primary,.assessment-primary):disabled::after{opacity:.32}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .hex-action.is-check::after{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4L16.5 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4L16.5 6' fill='none' stroke='%23000' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .hex-action.is-ok::before{background:var(--ok)}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .text-action{font-size:17px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-line{font:var(--display-weight) clamp(24px,2.3vw,36px)/1.14 var(--display);letter-spacing:-.028em;color:inherit}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .getmoat-line.is-long{font-size:clamp(21px,1.9vw,30px);line-height:1.2}

/* Page effects from the theme: the moving mesh behind every page, the grain or scanlines over it. Neither takes input,
   and the mesh stops under reduced motion or the motion pause. Content that should show the mesh leaves its background unset
   or uses --surface; anything opaque (sticky bars, dialogs) uses --bg or --bg-raised. */
body::before,body::after{content:"";position:fixed;inset:0;pointer-events:none}
body::before{z-index:-1;background-image:var(--page-mesh);background-size:var(--page-mesh-size);animation:var(--page-mesh-motion)}
body::after{z-index:2147483000;background-image:var(--page-grain);background-size:var(--page-grain-size)}
@keyframes gh-mesh-drift{0%{background-position:0% 0%,0% 0%,0% 0%}33%{background-position:100% 50%,80% 20%,60% 80%}66%{background-position:50% 100%,20% 80%,80% 40%}100%{background-position:0% 0%,0% 0%,0% 0%}}
@media(prefers-reduced-motion:reduce){body::before{animation:none}}
@media print{body::before,body::after{display:none}}

/* The theme menu (theme.js): one list on every page, drawn from the active tokens. */
.gh-theme-pop{position:fixed;top:0;left:0;z-index:2000;width:min(220px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;padding:6px;border:1px solid var(--ghost);border-radius:var(--radius-lg);background:var(--bg-raised);color:var(--ink);box-shadow:var(--shadow);font:400 14px/1.3 var(--body);text-shadow:none}
.gh-theme-menu{display:grid;gap:2px}
.gh-theme-item{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:6px 10px;border-radius:var(--radius);color:var(--ink-2);font:var(--body-weight) 14px/1.2 var(--body);text-align:left}
.gh-theme-item:hover,.gh-theme-item:focus-visible{background:var(--fill-2);color:var(--ink)}
.gh-theme-item:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
:where(html[data-theme=light],html[data-theme=dark],html[data-theme=retro]) .gh-theme-item:focus-visible{outline-color:var(--ink)}
.gh-theme-item[aria-checked=true]{color:var(--ink)}
.gh-theme-item[aria-checked=true]::after,.gh-theme-option[aria-pressed=true]::after{content:"";flex:none;width:14px;height:14px;margin-left:auto;background:var(--accent);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4L16.5 6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4L16.5 6' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.gh-theme-sep{height:1px;margin:5px 6px;background:var(--ghost)}
/* A quiet dot per theme: its page colour and its accent, half and half. */
.gh-swatch{display:inline-flex;flex:none;width:12px;height:12px;overflow:hidden;border-radius:50%;outline:1px solid var(--border-hover);outline-offset:-1px}
.gh-swatch i{flex:1 1 0;background:var(--sw,transparent)}
.gh-swatch i:nth-child(2){display:none}
.gh-theme-note{margin:6px 10px 4px;font:400 13px/1.4 var(--body);color:var(--muted)}
/* Inline theme buttons for settings panels (theme.js mountOptions). */
.gh-theme-options[data-theme-options]{display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
.gh-theme-options>.gh-theme-option{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 10px;border-radius:var(--radius);color:var(--ink-2);font:var(--body-weight) 14px/1.2 var(--body);text-align:left}
.gh-theme-options>.gh-theme-option:hover{background:var(--fill-2);color:var(--ink)}
.gh-theme-options>.gh-theme-option[aria-pressed=true]{color:var(--ink)}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html.motion-paused *,html.motion-paused *::before,html.motion-paused *::after{animation:none!important;transition:none!important}

/* Public action finishes are separate from workspace accents and badge palettes. */
:root{
  --public-action:var(--accent);--public-action-hover:var(--accent-hover);--public-action-ink:var(--accent-ink);--public-action-line:var(--accent-line);
  --public-action-sheen:none;--public-action-shadow:var(--button-shadow);--public-action-hover-shadow:var(--button-glow);
  --public-mesh:var(--page-mesh);--public-mesh-size:var(--page-mesh-size);--public-mesh-motion:var(--page-mesh-motion);
}
:root:not([data-theme]),html[data-theme=gethacked],html[data-theme=light],html[data-theme=dark],html[data-theme=retro]{
  --public-action:#1c3b88;--public-action-hover:#24499f;--public-action-ink:#f2f5ff;--public-action-line:#435c98;
  --public-action-sheen:linear-gradient(155deg,rgba(115,149,255,.18),rgba(115,149,255,0) 62%);
  --public-action-shadow:inset 0 1px 0 rgba(203,218,255,.12),inset 0 -1px 0 rgba(0,9,34,.24),0 3px 10px rgba(0,9,34,.2);
  --public-action-hover-shadow:inset 0 1px 0 rgba(203,218,255,.18),inset 0 -1px 0 rgba(0,9,34,.2),0 4px 14px rgba(0,9,34,.24);
}
/* Faint transparent shades overlap on the original black canvas; no opaque colour wash. */
:root:not([data-theme]),html[data-theme=gethacked]{
  --public-mesh:radial-gradient(ellipse 85% 80% at 18% 25%,rgba(30,94,255,.085),transparent 72%),radial-gradient(ellipse 85% 80% at 82% 75%,rgba(88,28,135,.065),transparent 72%),radial-gradient(ellipse 100% 90% at 52% 50%,rgba(30,58,138,.025),transparent 78%);
  --public-mesh-size:115% 115%,120% 120%,110% 110%;--public-mesh-motion:gh-public-shade 72s ease-in-out infinite;
}
:is(body.landing-page,body.guides) .hex-action,.ws-access .k-btn.is-primary,#account-form .hex-action{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:13px 24px;border:1px solid var(--public-action-line);border-radius:var(--radius);background:var(--public-action-sheen),var(--public-action);color:var(--public-action-ink);box-shadow:var(--public-action-shadow);font:500 14px/1.15 var(--body);letter-spacing:.01em;text-align:center;text-decoration:none;text-shadow:none;transition:background-color .2s,border-color .2s,box-shadow .2s;
}
:is(body.landing-page,body.guides) .hex-action:hover:not(:disabled),.ws-access .k-btn.is-primary:hover:not(:disabled),#account-form .hex-action:hover:not(:disabled){background:var(--public-action-sheen),var(--public-action-hover);color:var(--public-action-ink);border-color:var(--public-action-line);box-shadow:var(--public-action-hover-shadow);transform:none}
:is(body.landing-page,body.guides) .hex-action:active:not(:disabled),.ws-access .k-btn.is-primary:active:not(:disabled),#account-form .hex-action:active:not(:disabled){background:var(--public-action);box-shadow:inset 0 1px 3px rgba(0,0,0,.18);transform:none}
:is(body.landing-page,body.guides) .hex-action:disabled,.ws-access .k-btn.is-primary:disabled,#account-form .hex-action:disabled{opacity:.45;cursor:default;color:var(--public-action-ink)}
:is(body.landing-page,body.guides) .hex-action::before,:is(body.landing-page,body.guides) .hex-action::after,#account-form .hex-action::before,#account-form .hex-action::after{content:none}
:is(body.landing-page,body.guides) .hex-action:focus-visible,.ws-access .k-btn.is-primary:focus-visible,#account-form .hex-action:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
body.landing-page :is(.hear .text-action,.tier-open){color:var(--ink-2);background:color-mix(in srgb,var(--public-action) 8%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--public-action-line) 52%,transparent)}
body.landing-page :is(.hear .text-action,.tier-open):hover{color:var(--ink);background:color-mix(in srgb,var(--public-action) 16%,transparent);box-shadow:inset 0 0 0 1px var(--public-action-line)}
body:is(.landing-page,.guides,:has(.ws-access),:has(#account-form))::before{background-image:var(--public-mesh);background-size:var(--public-mesh-size);background-repeat:no-repeat;animation:var(--public-mesh-motion)}
@keyframes gh-public-shade{0%,100%{background-position:0% 20%,100% 80%,50% 50%}33%{background-position:30% 40%,70% 55%,60% 45%}66%{background-position:15% 55%,85% 35%,40% 60%}}
@media(prefers-reduced-motion:reduce){body:is(.landing-page,.guides,:has(.ws-access),:has(#account-form))::before{animation:none}}
body.guides .callout .hex-action{color:var(--public-action-ink)}
/* GetSealed colours (I194, option B: gold on deep navy, matching the road). Here, not in public-site.css, so the
   workspace and sign-in (app/platform/app.html, data-brand=getsealed since 8a29365) wear them too. They sit over the GetHacked brand theme only,
   so an explicit apply() of another theme still shows that theme unchanged. Gold carries buttons, bars and focus. */
html[data-brand=getsealed][data-theme=gethacked]{
  --bg:#050914;--bg-raised:#0b1222;--gold:#e0b85c;
  --accent:#e0b85c;--accent-hover:#eccb80;--accent-ink:#110d05;--accent-wash:rgba(224,184,92,.1);--accent-line:rgba(224,184,92,.35);--accent-text:#f0d699;
  --focus:#e0b85c;--link-underline:#e0b85c;
  --button-glow:0 0 24px rgba(224,184,92,.35),0 0 48px rgba(224,184,92,.15);--button-glow-active:0 0 12px rgba(224,184,92,.2);
  --page-mesh:radial-gradient(ellipse 80% 60% at 20% 20%,rgba(30,58,138,.28) 0%,transparent 60%),radial-gradient(ellipse 60% 80% at 80% 80%,rgba(224,184,92,.1) 0%,transparent 50%),radial-gradient(ellipse 50% 50% at 50% 50%,rgba(30,58,138,.1) 0%,transparent 70%);
  --public-mesh:radial-gradient(ellipse 85% 80% at 18% 25%,rgba(30,58,138,.16),transparent 72%),radial-gradient(ellipse 85% 80% at 82% 75%,rgba(224,184,92,.06),transparent 72%);
  --ink-bg:#070c18;--ink-fill:#0e1526;--ink-fill-2:#141c30;--ink-accent:#e0b85c;--ink-accent-ink:#110d05;--ink-accent-hover:#eccb80;--ink-focus:#e0b85c;
  --blue:#e0b85c;--blue-ink:#110d05;--blue-wash:rgba(224,184,92,.1);
  --public-action:#e0b85c;--public-action-hover:#eccb80;--public-action-ink:#110d05;--public-action-line:#e0b85c;
  --public-action-sheen:linear-gradient(155deg,rgba(255,255,255,.28),rgba(255,255,255,0) 62%);
  --public-action-shadow:0 3px 14px rgba(0,0,0,.35);--public-action-hover-shadow:0 0 24px rgba(224,184,92,.45);
}
