/* MMOT, Maayu's taxonomy workbench, on the MaayuGS design system of the Maayu AI website (maayu-ai-web,
   site/app/globals.css): navy #14375a · steel #507ba1 · orange #eb5400, Public Sans, 8/14/22 px radii, pill buttons.
   Layout: a sticky brand bar over a left menu (main sections → sub-pages) and one content column; the Maayu Command
   Window is a vertical MAAYU tab on the right edge (assets/mcw.js). Load this after a page's own <style>, so these
   shared rules win. */
:root {
  --navy-900: #0b1f35; --navy-800: #0f2a47; --navy-700: #14375a; --navy-600: #1d4a75;
  --steel-500: #507ba1; --steel-300: #9db6cf; --steel-100: #e6eef6;
  --orange-500: #eb5400; --orange-600: #c2410c; --orange-700: #9a3412;

  --bg: #f4f7fb; --card: #ffffff; --soft: #eaf1f8; --line: #dbe3ec; --line-strong: #b8c6d6;
  --ink: #13243a; --muted: #4b5d73; --faint: #6b7c90; --heading: #0f2a47; --navy: #14375a;
  --accent: #14375a; --accent-ink: #ffffff; --accent-soft: #e6eef6; --heat: 20, 55, 90;
  --brand: #eb5400; --cta: #c2410c; --cta-hover: #9a3412; --cta-ink: #ffffff;
  --good: #15803d; --good-bg: #e6f4ea; --warn: #9a5800; --warn-bg: #fcf1dc; --bad: #b42318; --bad-bg: #fdeceb; --hl: #ffe3a8;
  --fit-hi: #1f9d55; --fit-mid: #ec7a08; --fit-lo: #d93025;   /* fit bars: above 60% · 40–60% · below 40% */
  --c-white: #ffffff; --c-white-edge: #8c9c9a; --c-grey: #8a9897; --c-blue: #2d5da8; --c-rose: #bf5679;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 71, .06), 0 1px 3px rgba(15, 42, 71, .08);
  --shadow: 0 6px 24px rgba(15, 42, 71, .10); --shadow-lg: 0 18px 50px rgba(11, 31, 53, .22);
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --top-h: 64px; --nav-w: 256px; --mcw-tab-w: 44px;
  --mcw-bg: #14375a; --mcw-bg-hover: #0f2a47; --mcw-edge: transparent;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1726; --card: #12233a; --soft: #13283f; --line: #22384f; --line-strong: #345070;
    --ink: #e3ebf4; --muted: #a9bbcf; --faint: #8ba0b7; --heading: #f2f6fb; --navy: #9cc3ea;
    --accent: #9cc3ea; --accent-ink: #0b1726; --accent-soft: #1a3350; --heat: 156, 195, 234; --brand: #ff7a33;
    --good: #4cc98d; --good-bg: #10301f; --warn: #f2b84b; --warn-bg: #33270f; --bad: #f58a80; --bad-bg: #3a1a18; --hl: #5b4a12; --fit-hi: #4cc98d; --fit-mid: #f59f3a; --fit-lo: #f26b5e;
    --c-white: #f1f4f4; --c-white-edge: #6f807e; --c-grey: #8d9c9a; --c-blue: #6f9be0; --c-rose: #e28aa6;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 6px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  --mcw-bg: #1d4a75; --mcw-bg-hover: #245a8c; --mcw-edge: rgba(255, 255, 255, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1726; --card: #12233a; --soft: #13283f; --line: #22384f; --line-strong: #345070;
  --ink: #e3ebf4; --muted: #a9bbcf; --faint: #8ba0b7; --heading: #f2f6fb; --navy: #9cc3ea;
  --accent: #9cc3ea; --accent-ink: #0b1726; --accent-soft: #1a3350; --heat: 156, 195, 234; --brand: #ff7a33;
  --good: #4cc98d; --good-bg: #10301f; --warn: #f2b84b; --warn-bg: #33270f; --bad: #f58a80; --bad-bg: #3a1a18; --hl: #5b4a12; --fit-hi: #4cc98d; --fit-mid: #f59f3a; --fit-lo: #f26b5e;
  --c-white: #f1f4f4; --c-white-edge: #6f807e; --c-grey: #8d9c9a; --c-blue: #6f9be0; --c-rose: #e28aa6;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 6px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  --mcw-bg: #1d4a75; --mcw-bg-hover: #245a8c; --mcw-edge: rgba(255, 255, 255, .14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--heading); letter-spacing: -0.01em; text-wrap: balance; }
.code, code { font-family: var(--font-mono); }

/* ---------- shared components (pages keep their own layout rules) */
.card { border-radius: var(--radius) !important; box-shadow: var(--shadow-sm); border-color: var(--line) !important; }
button.main { background: var(--cta); color: var(--cta-ink); border: 0; border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; }
button.main:hover:not(:disabled) { background: var(--cta-hover); }
button.ghost { border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--heading); background: transparent; font: inherit; font-weight: 600; }
button.ghost:hover:not(:disabled) { border-color: var(--heading); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cta); }
.eyebrow::before { content: ""; width: 16px; height: 3px; border-radius: 2px; background: currentColor; }
:root[data-theme="dark"] .eyebrow { color: #ff9a5c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: #ff9a5c; } }

/* ---------- brand bar */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { height: 44px; width: auto; display: block; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
.brand-sep { width: 1px; height: 32px; background: var(--line-strong); flex: none; }
.product { display: grid; line-height: 1.12; min-width: 0; }
.product b { font-weight: 800; font-size: 20px; letter-spacing: .04em; color: var(--heading); }
.product small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.brand { overflow: hidden; }
.pill { font: 500 12px var(--font-mono); background: var(--soft); color: var(--muted); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill b { color: var(--heading); font-weight: 600; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: transparent; color: var(--heading); cursor: pointer; font: inherit; }
.icon-btn:hover { background: var(--soft); }
.menu-btn { display: inline-flex; }
.menu-btn[hidden] { display: none; }

/* ---------- menu */
.layout { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
.sidenav { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow-y: auto; background: var(--card);
  border-right: 1px solid var(--line); padding: 16px 12px 28px; }
.nav-group { margin-top: 18px; }
.nav-group > h2 { display: flex; align-items: center; gap: 8px; margin: 0 10px 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.nav-group > h2 svg { color: var(--brand); }
.nav-link { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--heading); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-group .nav-link { padding-left: 33px; font-weight: 500; color: var(--ink); }
.nav-link:hover { background: var(--soft); }
.nav-link svg { flex: none; color: var(--faint); }
.nav-link[aria-current="page"] { background: var(--accent-soft); color: var(--heading); font-weight: 700; }
.nav-link[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--brand); }
.nav-link[aria-current="page"] svg { color: var(--brand); }
.nav-foot { margin: 24px 10px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.nav-foot b { color: var(--heading); font-weight: 600; }
.scrim { display: none; }

/* ---------- content */
.content { min-width: 0; width: 100%; max-width: 1480px; padding: 22px 26px 48px; display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.content > section { min-width: 0; }
.page-head { display: grid; gap: 6px; padding-bottom: 4px; }
.page-head h1 { margin: 0; font-weight: 800; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); max-width: 86ch; font-size: 15px; }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
.page-head .eyebrow a:hover { text-decoration: underline; }

/* ---------- Maayu Command Window (every page; assets/mcw.js): a vertical MAAYU tab in the middle of the right
   edge opens the chat panel. Same look as the Maayu website's MCW: navy head, avatar ringed in orange, chat bubbles. */
.mcw-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 35; width: var(--mcw-tab-w);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 12px; cursor: pointer; font: inherit;
  background: var(--mcw-bg); color: #fff; border: 1px solid var(--mcw-edge); border-right: 0; border-left: 3px solid var(--brand);
  border-radius: var(--radius) 0 0 var(--radius); box-shadow: -6px 8px 22px rgba(11, 31, 53, .28); transition: width .15s ease, background .15s ease; }
.mcw-tab:hover { background: var(--mcw-bg-hover); width: calc(var(--mcw-tab-w) + 4px); }
.mcw-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.mcw-tab img { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); object-fit: cover; }
.mcw-letters { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 13px; line-height: 1.18; }
.mcw-open .mcw-tab { display: none; }

.mcw-panel { position: fixed; z-index: 50; right: 14px; top: 50%; transform: translateY(-50%);
  width: min(420px, calc(100vw - 28px)); height: min(660px, calc(100dvh - 2 * var(--top-h) - 24px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mcw-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--mcw-bg); color: #fff; }
.mcw-head img { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); object-fit: cover; flex: none; }
.mcw-title { flex: 1; min-width: 0; }
.mcw-title strong { display: block; font-size: 15px; line-height: 1.2; }
.mcw-title span { display: block; font-size: 12.5px; color: #c9d7e6; }
.mcw-close { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.mcw-close:hover { background: rgba(255, 255, 255, .2); }
.mcw-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.mcw-msg { max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.mcw-ai { align-self: flex-start; background: var(--soft); color: var(--ink); border-bottom-left-radius: 4px; }
.mcw-rich { white-space: normal; }
.mcw-rich p { margin: 0 0 6px; }
.mcw-rich p:first-child { font-weight: 600; }
.mcw-rich ul, .mcw-rich ol { margin: 2px 0 6px; padding-left: 18px; }
.mcw-rich li { margin: 3px 0; }
.mcw-rich li::marker { color: var(--muted); }
.mcw-rich > :last-child { margin-bottom: 0; }
.mcw-rich code { font: 12.5px/1.4 'JetBrains Mono', ui-monospace, monospace; background: rgba(127, 127, 127, .14); padding: 0 4px; border-radius: 4px; }
.mcw-me { align-self: flex-end; background: var(--mcw-bg); color: #fff; border-bottom-right-radius: 4px; }
.mcw-err { background: var(--bad-bg); color: var(--bad); }
.mcw-try { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mcw-try > span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }
.mcw-try button { font: inherit; font-size: 13px; text-align: left; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--heading); }
.mcw-try button:hover { border-color: var(--heading); background: var(--soft); }
.mcw-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.mcw-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: mcw-dot 1s infinite ease-in-out; }
.mcw-dots i:nth-child(2) { animation-delay: .15s; } .mcw-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mcw-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.mcw-form { display: flex; gap: 8px; align-items: center; margin: 0 12px; padding: 5px 5px 5px 16px;
  border: 2px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.mcw-form:focus-within { border-color: var(--brand); }
.mcw-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; padding: 6px 0; }
.mcw-form button.main { padding: 8px 16px; }
.mcw-foot { padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 11.5px; color: var(--faint); text-align: center; }
@media (hover: none), (max-width: 600px) { .mcw-key { display: none; } }

@media (min-width: 1001px) {
  .content { padding-right: calc(26px + var(--mcw-tab-w)); }
  .layout { transition: grid-template-columns .2s ease; }
  .sidenav { transition: opacity .15s ease; }
  body.nav-collapsed .layout { grid-template-columns: 0 minmax(0, 1fr); }      /* the menu folds away; the page takes the width */
  body.nav-collapsed .sidenav { opacity: 0; visibility: hidden; overflow: hidden; padding-left: 0; padding-right: 0; border-right: 0; }
}
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; left: 0; top: var(--top-h); bottom: 0; height: auto; width: min(300px, 86vw); z-index: 45;
    transform: translateX(-102%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidenav { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(11, 31, 53, .4); z-index: 44; }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px 16px 40px; }
}
@media (max-width: 680px) {
  .product small, .brand-sep { display: none; }
}
@media (max-width: 600px) {
  :root { --mcw-tab-w: 32px; }
  .mcw-tab { gap: 6px; padding: 6px 0 9px; }
  .mcw-tab img { width: 24px; height: 24px; }
  .mcw-letters { font-size: 11px; }
  .mcw-panel { left: 0; right: 0; bottom: 0; top: auto; transform: none; width: 100%; height: 86dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
@media (max-width: 560px) {
  .brand img { height: 38px; }
  .topbar { gap: 10px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Fit bars (Match++): green above 60%, orange 40–60%, red below 40% */
.bar > i.fit-hi { background: var(--fit-hi); }
.bar > i.fit-mid { background: var(--fit-mid); }
.bar > i.fit-lo { background: var(--fit-lo); }

/* ---------- account (assets/auth.js), after hil.maayu.io: a round profile icon in the top bar, its menu, the sign-in card */
.acct { position: relative; display: inline-flex; }
.acct-signin { font: 650 13.5px var(--font-body); padding: 8px 16px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; }
.acct-signin:hover { background: var(--mcw-bg-hover); }
:root[data-theme="dark"] .acct-signin { background: #1d4a75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .acct-signin { background: #1d4a75; } }
.tb-me { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(180deg, #7c8491, #5b626d); color: #fff; font: 650 12.5px var(--font-body); letter-spacing: .02em; }
.tb-me:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb-me[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand); }
.user-pop { position: absolute; right: -6px; top: calc(100% + 12px); z-index: 60; width: min(300px, calc(100vw - 24px)); padding: 6px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; }
.user-pop[hidden] { display: none; }
.user-pop-head { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; min-width: 0; }
.user-pop-av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft);
  color: var(--heading); font: 650 15px var(--font-body); }
.user-pop-id { display: grid; gap: 4px; min-width: 0; font-size: 13.5px; }
.user-pop-id b { overflow-wrap: anywhere; color: var(--heading); }
.user-pop-id .role { justify-self: start; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--heading); }
.user-pop a[role=menuitem], .user-pop button[role=menuitem] { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 500 14px var(--font-body); text-decoration: none; cursor: pointer; }
.user-pop a[role=menuitem]:hover, .user-pop button[role=menuitem]:hover, .user-pop [role=menuitem]:focus-visible { background: var(--soft); outline: none; }
.user-pop [role=menuitem] svg { color: var(--muted); flex: none; }
.user-pop-foot { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.user-pop-foot [role=menuitem] { color: var(--bad) !important; }
.user-pop-foot [role=menuitem] svg { color: var(--bad); }

/* the sign-in and reset card (hil.maayu.io's login card) */
.login-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  padding: 32px 30px 28px; display: grid; gap: 0; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-brand .av { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.login-brand .logo { height: 24px; width: auto; }
.login-brand .logo-dark { display: none; }
:root[data-theme="dark"] .login-brand .logo-light { display: none; } :root[data-theme="dark"] .login-brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login-brand .logo-light { display: none; } :root:not([data-theme="light"]) .login-brand .logo-dark { display: block; } }
.login-card h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 6px; color: var(--heading); }
.login-sub { font-size: 14px; color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.login-field { display: block; margin-bottom: 14px; }
.login-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px;
  font: 10.5px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.login-forgot { font: 500 12.5px var(--font-body); color: var(--accent); text-decoration: none; text-transform: none; letter-spacing: normal; }
.login-forgot:hover, .login-forgot:focus-visible { text-decoration: underline; }
.login-field input { width: 100%; max-width: 100%; padding: 12px 14px; font: 15px var(--font-body); border: 1px solid var(--line); border-radius: 10px;
  background: var(--soft); color: var(--ink); outline: none; }
.login-field input:focus { border-color: var(--accent); }
.btn-primary { width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 9px; background: var(--navy); color: #fff;
  font: 620 15px var(--font-body); cursor: pointer; text-align: center; text-decoration: none; display: block; }
.btn-primary:hover { background: var(--mcw-bg-hover); }
.btn-primary:disabled { opacity: .6; cursor: default; }
:root[data-theme="dark"] .btn-primary { background: #1d4a75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { background: #1d4a75; } }
.login-alt { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.6; }
.login-alt a, .login-alt button.link { color: var(--accent); font-weight: 600; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.login-alt a:hover, .login-alt button.link:hover { text-decoration: underline; }
.login-notice, .login-error { padding: 10px 12px; font-size: 13.5px; border-radius: 9px; margin: -8px 0 18px; }
.login-notice { color: var(--good); background: var(--good-bg); border: 1px solid color-mix(in srgb, var(--good) 30%, transparent); }
.login-error { color: var(--bad); background: var(--bad-bg); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.login-first { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13.5px; color: var(--muted); }
.login-first summary { cursor: pointer; font-weight: 600; color: var(--heading); }
.login-first ol { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* the profile header (hil.maayu.io's account head) */
.acct-head { display: flex; align-items: center; gap: 16px; }
.acct-avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft);
  color: var(--heading); font: 650 21px var(--font-body); letter-spacing: .02em; }
.acct-id { min-width: 0; display: grid; gap: 4px; }
.acct-id h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.acct-id .role { justify-self: start; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--heading); font: 650 12px var(--font-body); }

/* account pages: one centred column of cards */
.acct-page { display: grid; gap: 16px; max-width: 640px; width: 100%; }
.acct-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 12px; min-width: 0; }
.acct-card h2 { font-size: 17px; margin: 0; color: var(--heading); }
.acct-card p { margin: 0; color: var(--muted); max-width: 62ch; }
.acct-form { display: grid; gap: 12px; }
.acct-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--heading); }
.acct-form input { font: 15px var(--font-body); padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--card); color: var(--ink); width: 100%; max-width: 100%; min-width: 0; }
.acct-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-main { font: 650 14px var(--font-body); padding: 10px 18px; border-radius: 9px; border: 0; cursor: pointer; background: var(--navy); color: #fff; }
.btn-main:hover { background: var(--mcw-bg-hover); } .btn-main:disabled { opacity: .6; cursor: default; }
:root[data-theme="dark"] .btn-main { background: #1d4a75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-main { background: #1d4a75; } }
.btn-ghost { font: 600 14px var(--font-body); padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); cursor: pointer;
  background: transparent; color: var(--heading); text-decoration: none; }
.btn-ghost:hover { background: var(--soft); }
.note-ok, .note-bad, .note-info { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13.5px; }
.note-ok { background: var(--good-bg); color: var(--good); } .note-bad { background: var(--bad-bg); color: var(--bad); }
.note-info { background: var(--accent-soft); color: var(--heading); }
.kv-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.kv-list dt { color: var(--muted); } .kv-list dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.setup-key { font: 600 15px var(--font-mono); letter-spacing: .06em; background: var(--soft); padding: 10px 12px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.layout.no-nav { grid-template-columns: minmax(0, 1fr); }
.layout.no-nav .content { justify-items: center; }
.layout.no-nav .page-head { max-width: 640px; width: 100%; }
@media (max-width: 520px) { .kv-list { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .kv-list dd { margin-bottom: 8px; } }
@media (max-width: 400px) { .acct-signin { padding: 7px 11px; font-size: 12.5px; } }

/* the rights tick before an upload (test bench, gold set) */
.rights { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 13.5px; max-width: 880px; }
.rights input { margin-top: 3px; flex: none; }
.rights.small { font-size: 12.5px; margin: 8px 0 6px; }

/* text for screen readers only (e.g. a table's Actions header) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Under an MCW answer: thumbs up, thumbs down, comment, Explain (mcw.js feedbackRow) */
.mcw-fb { align-self: flex-start; display: flex; align-items: center; gap: 2px; margin-top: -4px; }
.mcw-fb-btn { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px;
  background: none; color: var(--muted, #6b7280); cursor: pointer; }
.mcw-fb-btn:hover { background: var(--soft); color: var(--ink); }
.mcw-fb-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.mcw-fb-btn[aria-pressed="true"] { color: var(--brand); background: var(--soft); }
.mcw-fb-btn[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .18; }
.mcw-fb-btn:disabled { opacity: .45; cursor: default; }
.mcw-fb-said { font-size: 12px; color: var(--muted, #6b7280); margin-left: 6px; }
.mcw-fb-note { align-self: stretch; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line, #d7dde6); border-radius: 10px; font-size: 13px; }
.mcw-fb-note textarea { font: inherit; padding: 6px 8px; border: 1px solid var(--line, #d7dde6); border-radius: 7px; resize: vertical; background: var(--bg, transparent); color: inherit; }
.mcw-fb-note button { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 7px; cursor: pointer; }
