/* Prefessional — the "Pass" design. Intern badges on lanyards.
   Light theme by default, dark (neon) with <html data-theme="dark">. */

:root {
  --bg: #ECEFF2;
  --surface: #FFFFFF;
  --ink: #0E1116;
  --text: #3E434C;
  --mute: #5D636E;
  --line: #DCE0E6;
  --chip: #ECEFF2;
  --accent: #FF5A1F;
  --accent-ink: #FFFFFF;
  --accent-soft: #FFE7DD;
  --plaque: #0E1116;
  --foot: #0E1116;           /* bottom of the "Deadline" badge */
  --strap-dark: #0E1116;
  --strap-grey: #9CA2AC;
  --metal: linear-gradient(180deg, #E9EBEF 0%, #B9BEC6 55%, #9DA3AC 100%);
  --footer-bg: #0E1116;
  --footer-text: #A9AFB9;
  --ok: #1C8A4C; --ok-bg: #DDF3E6;
  --warn-bg: #FFE7DD;
  --error: #D93A2B;
  --shadow: 0 0 0 1px rgba(14, 17, 22, .07), 0 2px 4px rgba(14, 17, 22, .05);
  --glow: none;
  --display: 'Onest', sans-serif;      /* the wide Unbounded font — only in the landing headline and dates */
  --radius: 10px;
  color-scheme: light;            /* scrollbars, date pickers and form controls follow the theme */
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0A0C0F;
  --surface: #15171C;
  --ink: #F2F3F5;
  --text: #C4C9D2;
  --mute: #A3A9B4;
  --line: #262A33;
  --chip: #212128;
  --accent: #FF6A33;
  --accent-ink: #FFFFFF;
  --accent-soft: #3A1A0E;
  --plaque: #1E0F0A;
  --foot: #2A2A32;
  --strap-dark: #2A2A32;
  --strap-grey: #4A4E58;
  --metal: linear-gradient(180deg, #D9DCE1 0%, #A7ACB5 55%, #7F858F 100%);
  --footer-bg: #07080A;
  --footer-text: #8E95A1;
  --ok: #5FD38F; --ok-bg: #12301F;
  --warn-bg: #3A1A0E;
  --error: #FF6B5E;
  --shadow: 0 0 0 1px #262A33, 0 2px 6px rgba(0, 0, 0, .35);
  --glow: 0 0 6px rgba(255, 106, 51, .9), 0 0 18px rgba(255, 106, 51, .55), 0 0 42px rgba(255, 106, 51, .25);
}

/* ---------- base ---------- */
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Onest', sans-serif; font-variant-numeric: tabular-nums;
  transition: background .25s, color .25s;
}
body:has(.modal) { overflow: hidden }
a { color: var(--accent) }
a:hover { color: var(--ink) }
input, select, button, textarea { font: inherit; color: inherit }
h1, h2, h3, p { margin: 0 }
main { flex: 1 }
.page { min-height: 100vh; display: flex; flex-direction: column }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; width: 100% }
.mute { color: var(--mute) }
.small { font-size: 14px }
.empty { color: var(--mute); padding: 24px 4px; grid-column: 1 / -1 }
.inline-form { display: inline-flex; margin: 0 }

/* ---------- typography ---------- */
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; color: var(--ink); text-wrap: balance }
.display--page { font-size: 52px }
.display--title { font-size: 40px; line-height: 1.1 }
.display--admin { font-size: 34px }
.h2 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1 }
.h3 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0 }
.lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 560px; text-wrap: pretty }
.link-accent { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--accent) }
.link-accent:hover { color: var(--ink) }
.accent-word { color: var(--accent) }
:root[data-theme=dark] .accent-word { text-shadow: 0 0 12px rgba(255, 106, 51, .35) }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow-tag { padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); letter-spacing: .02em; font-size: 11px }
.eyebrow--plain { background: none; padding: 0; color: var(--accent); margin-bottom: 10px }

/* ---------- logo ---------- */
.logo { text-decoration: none; display: inline-flex; align-items: flex-start; font-weight: 800; font-size: 23px; letter-spacing: -.045em; line-height: 1 }
.logo .pre { display: inline-flex; flex-direction: column; gap: 3px; color: var(--accent) }
/* width 0 + min-width 100%: the arrow stretches under "pre" without making the block wider than the text */
.logo .pre svg { width: 0; min-width: 100%; height: 5px }
.logo .rest { color: var(--ink) }
.footer .logo .rest { color: #fff }

/* ---------- header and footer ---------- */
.header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px) }
.header-row { display: flex; align-items: center; gap: 32px; padding-top: 18px; padding-bottom: 18px }
.nav { flex: 1; display: flex; justify-content: center; gap: 4px; font-size: 15px; font-weight: 600 }
.nav a { padding: 8px 14px; border-radius: 8px; color: var(--mute); text-decoration: none; white-space: nowrap; transition: background .15s, color .15s }
.nav a:hover { color: var(--ink); background: var(--chip) }
.nav a.active { color: var(--accent); background: var(--accent-soft) }
.header-actions { display: flex; align-items: center; gap: 14px }
.icon-btn { width: 38px; height: 38px; flex: none; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--ink) }
.icon-btn:hover { border-color: var(--accent); color: var(--accent) }
/* RU | EN switch (i18n.py) — the same height as .icon-btn */
.lang-switch { height: 38px; flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface) }
.lang-switch a { display: flex; align-items: center; height: 100%; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--mute); text-decoration: none }
.lang-switch a:hover { color: var(--accent) }
.lang-switch a.active { background: var(--ink); color: var(--surface) }
.btn-text { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none }
.btn-text:hover { color: var(--accent) }
.user-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: none; max-width: 200px }
.user-link.active, .user-link:hover { color: var(--accent) }
.user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800 }
.footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 40px }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 34px; padding-bottom: 34px; font-size: 14px }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; transition: transform .15s, background .15s, border-color .15s, color .15s, box-shadow .2s; white-space: nowrap }
.btn:active { transform: translateY(1px) }
.btn-primary { background: var(--accent); color: var(--accent-ink) }
.btn-primary:hover { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 88%, #000) }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink) }
.btn-outline:hover { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent) }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line) }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent) }
.btn-danger { background: var(--error); color: #fff }
.btn-danger:hover { color: #fff; filter: brightness(1.08) }
.btn-lg { font-size: 16px; padding: 16px 28px }
.btn-sm { font-size: 13px; padding: 7px 14px }
.btn-block { display: flex; width: 100% }
.btn.is-saved { color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent) }
:root[data-theme=dark] .btn-outline { box-shadow: inset 0 0 0 1.5px #3A3F49 }
:root[data-theme=dark] .btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 16px rgba(255, 106, 51, .35) }

/* ---------- chips, tags, segmented controls ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s }
a.chip:hover { color: var(--accent) }
.chip--on, a.chip--on:hover { background: var(--accent); color: var(--accent-ink) }
.chip--sm { padding: 2px 8px; font-size: 11.5px; font-weight: 700; align-self: flex-start }
.tags { display: flex; flex-wrap: wrap; gap: 6px }
.tag { display: inline-block; padding: 1px 8px; margin-left: 4px; border-radius: 6px; background: var(--chip); color: var(--ink); font-size: 12px; font-weight: 700; vertical-align: 1px }
.tag--ok { background: var(--ok-bg); color: var(--ok) }
.tag--warn { background: var(--warn-bg); color: var(--accent) }
.tag--error { background: var(--error); color: #fff }
.segment { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip) }
.segment a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--mute); text-decoration: none }
.segment a:hover { color: var(--ink) }
.segment a.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(14, 17, 22, .1) }
:root[data-theme=dark] .segment a.on { background: #2A2D35 }
.date-pill { display: inline-block; font-family: var(--display); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--foot); color: #fff }
.date-pill--soon { background: var(--accent) }

/* ---------- inputs ---------- */
.search { display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 9px 16px; background: var(--chip); color: var(--mute) }
.search input { border: 0; outline: 0; background: transparent; font-size: 15px; width: 100%; min-width: 0; color: var(--ink) }
.search input::placeholder { color: var(--mute) }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px }
.select { border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--surface); color: var(--ink); font-size: 14px; min-width: 0 }
.select:focus { outline: 2px solid var(--accent); outline-offset: 1px }
.select--sm { padding: 5px 8px; font-size: 13px; border-radius: 8px }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; cursor: pointer }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0 }

/* ---------- notices ---------- */
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); font-size: 15px; line-height: 1.5 }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow) }
:root[data-theme=dark] .card { border: 1px solid var(--line) }

/* =====================================================================
   HANGER: strap → clip → badge. No rail — the strap goes up and fades out.
   Each badge has its own strap, length, tilt and offset (the variables are
   set by the hanger macro in _macros.html).
   .swing rotates around its top point: angle = resting tilt (--tilt)
   + swing from mouse movement (--sway, set by static/js/swing.js).
   ===================================================================== */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 48px; row-gap: 22px; align-items: start }
.hang { position: relative; display: flex; justify-content: center }
.swing {
  width: 100%; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  transform: translateX(var(--shift, 0px)) rotate(calc(var(--tilt, 0deg) + var(--sway, 0deg)));
  will-change: transform;
}
/* The strap is flexible: the badge also turns on its clip, lagging behind the strap (--sway2) */
.swing > .badge, .swing > .pass { transform-origin: 50% 0; transform: rotate(var(--sway2, 0deg)) }

/* straps: 3 colours (--sc main, --sp print colour) × 5 prints = 15 combinations; the top fades out */
.strap {
  display: block; width: var(--strap-w, 22px); height: var(--strap-h, 56px);
  background: var(--sc, var(--accent));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
          mask-image: linear-gradient(to bottom, transparent, #000 45%);
}
.strap-c-orange { --sc: var(--accent); --sp: rgba(255, 255, 255, .85) }
.strap-p-plain { box-shadow: inset -4px 0 0 rgba(0, 0, 0, .08) }
:root[data-theme=dark] .strap-c-orange .strap, :root[data-theme=dark] .strap--lanyard { filter: drop-shadow(0 0 7px rgba(255, 106, 51, .7)) }

.slot { display: block; width: 46px; height: 7px; margin: 14px auto 2px; border-radius: 4px; background: var(--chip); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12) }

/* ---------- listing badge: shared base ---------- */
.badge {
  --state: var(--foot);                       /* deadline colour: normal */
  position: relative; display: flex; flex-direction: column; width: 100%; margin-top: -8px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: box-shadow .2s;
}
.badge--soon { --state: var(--accent) }
.badge--closed { --state: var(--strap-grey) }
a.badge:hover { color: var(--ink); box-shadow: 0 22px 40px rgba(14, 17, 22, .16) }
:root[data-theme=dark] .badge { border: 1px solid rgba(255, 106, 51, .18) }
/* badges have slightly different corners — as if cut by hand */
.plaque { width: 50px; height: 50px; flex: none; border-radius: 12px; background: var(--plaque); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.02em }
.plaque--lg { width: 64px; height: 64px; font-size: 20px; border-radius: 15px }
/* A company logo instead of the initials: always on white, so dark logos stay visible in the dark theme */
.plaque--logo { padding: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(14, 17, 22, .08) }
.plaque--logo img { display: block; width: 100%; height: 100%; object-fit: contain }
:root[data-theme=dark] .plaque--logo { box-shadow: none }
.plaque--sm { width: 36px; height: 36px; font-size: 12px; border-radius: 9px }
.plaque--sm.plaque--logo { padding: 4px }
.cell-org { display: flex; align-items: center; gap: 12px }
.logo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap }
:root[data-theme=dark] .plaque { box-shadow: inset 0 0 0 1px rgba(255, 106, 51, .35) }

/* the deadline strip on the listing page and the error page */
.badge-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 22px; background: var(--state, var(--foot)); color: #fff }
.badge-foot span { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase }
.badge-foot strong { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em }
.badge-foot--soon { background: var(--accent) }
.badge-foot--closed { background: var(--strap-grey) }
.badge-foot--big { padding: 16px 22px }
.badge-foot--big span { line-height: 1.5 }
.badge-foot--big strong { font-size: 24px; text-align: right }

.badge--static { margin-top: -8px }

/* ---------- dark theme: neon and lamp flicker on hover ----------
   20 flicker characters live in neon.css (generated by tools/make_neon_css.py).
   --flk picks a badge's character; swing.js picks a new one on every hover. */
:root[data-theme=dark] a.badge:hover,
:root[data-theme=dark] .hang:hover > .swing > .badge--static,
:root[data-theme=dark] .hang--pass:hover .pass {
  border-color: rgba(255, 106, 51, .7);
  animation: var(--flk, flk-1) var(--flk-time, 8s) ease-in-out infinite;
}
:root[data-theme=dark] .accent-word:hover { animation: flkt-7 8s ease-in-out infinite }
:root[data-theme=dark] .btn-primary:hover { animation: var(--flk, flk-3) var(--flk-time, 7s) ease-in-out infinite }

/* ---------- landing page ---------- */
.landing { padding-top: 24px; display: flex; flex-direction: column; gap: 72px }
.hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: start }
.hero-text { display: flex; flex-direction: column; gap: 26px; padding-top: 52px }
.hero .display { font-size: 64px }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap }
.stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 44px; padding-top: 30px; margin-top: 8px; border-top: 1px solid var(--line) }
.stat-num { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1 }
.stat-text { font-size: 14px; color: var(--mute); margin-top: 8px }
.section { display: flex; flex-direction: column; gap: 30px }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px }

/* the intern pass (landing page and profile) */
.hero-pass { display: flex; justify-content: center }
.hang--pass { width: 100%; max-width: 380px }
.strap--lanyard {
  position: relative; width: 44px !important; height: 190px !important; overflow: hidden;
  background: linear-gradient(90deg, rgba(0, 0, 0, .06), transparent 30%, transparent 70%, rgba(0, 0, 0, .1)), var(--accent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%);
          mask-image: linear-gradient(to bottom, transparent, #000 22%);
}
.strap--lanyard::after {
  content: "PREFESSIONAL";
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  writing-mode: vertical-rl; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: .32em; color: #fff;
}
.pass { position: relative; width: 100%; margin-top: -12px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden }
:root[data-theme=dark] .pass { border: 1px solid rgba(255, 106, 51, .25) }
.pass-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px 0 }
.pass-logo .logo { font-size: 19px; pointer-events: none }
.pass-role { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase }
.pass-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px 24px 22px }
.pass-photo { aspect-ratio: 4 / 5; border-radius: 14px; border: 1.5px dashed var(--line); background: var(--chip); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--mute); font-size: 13px; font-weight: 600 }
.pass-photo--avatar { border-style: solid; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-family: var(--display); font-size: 54px; font-weight: 800 }
.pass-qr { display: flex; align-items: center; color: var(--ink) }
.pass-qr svg { width: 100%; height: auto }
.pass-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 24px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600 }
.pass-foot strong { font-family: var(--display); font-weight: 800 }
.pass-name { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; padding: 0 24px 6px; overflow-wrap: anywhere }

/* ---------- feed ---------- */
.feed-page { padding-top: 40px; display: flex; flex-direction: column; gap: 22px }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap }

/* ---------- listing page ---------- */
.listing-page { padding-top: 28px; display: flex; flex-direction: column; gap: 26px }
.back-row { display: flex; justify-content: space-between; gap: 16px }
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start }
.listing-main { display: flex; flex-direction: column; gap: 36px; max-width: 700px }
.listing-head { display: flex; flex-direction: column; gap: 18px }
.org-row { display: flex; align-items: center; gap: 14px }
.org-name { display: flex; flex-direction: column; gap: 6px; font-size: 16px; font-weight: 600 }
.block { display: flex; flex-direction: column; gap: 14px }
.block p { font-size: 17px; line-height: 1.65; color: var(--text); text-wrap: pretty }
.reqs { list-style: none; margin: 0; padding: 0 }
.reqs li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 12px 0; border-top: 1.5px dashed var(--line); font-size: 16px; line-height: 1.5 }
.reqs li::before { content: '✓'; color: var(--accent); font-weight: 800 }
.stages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px }
.stages li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow) }
:root[data-theme=dark] .stages li { border: 1px solid var(--line) }
.stage-n { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) }
.stage-title { font-size: 16px; font-weight: 600; line-height: 1.4 }
.stage-date { font-size: 14px; color: var(--mute); white-space: nowrap }
.aside { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px }
.facts { display: flex; flex-direction: column; font-size: 15px; margin: 6px 22px 0 }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1.5px dashed var(--line) }
.facts div:last-child { border-bottom: 0 }
.facts dt { color: var(--mute) }
.facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere }
.aside-actions { display: flex; flex-direction: column; gap: 8px; padding: 10px 22px 20px }
.aside-actions .inline-form, .aside-actions .btn { width: 100% }
.verified { display: flex; gap: 10px; align-items: flex-start; padding: 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--mute) }
.verified::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px }

/* ---------- profile pass ---------- */
.hang--profile { max-width: 290px }
.hang--profile .strap--lanyard { height: 84px !important }
.facts--pass { margin: 0 24px 14px; font-size: 14px }

/* ---------- sign-in and sign-up ---------- */
.auth-header { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px }
.auth { flex: 1; min-height: calc(100vh - 80px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 70px 24px 72px }
.pass-card { position: relative; overflow: visible }
.card-hang { position: absolute; top: -66px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none }
.card-hang .strap { height: 60px; margin-top: 0 }
.pass-card > .slot { margin-top: -14px; margin-bottom: 4px }
.form { display: flex; flex-direction: column; gap: 18px }
.form-card { width: 100%; max-width: 440px; background: var(--surface); border-radius: 24px; padding: 30px 34px 34px; box-shadow: var(--shadow) }
:root[data-theme=dark] .form-card, :root[data-theme=dark] .modal-card { border: 1px solid rgba(255, 106, 51, .25) }
.form-head { display: flex; flex-direction: column; gap: 8px }
.form-head h1, .form-head h2 { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05 }
.form-head p { font-size: 15px; line-height: 1.5; color: var(--mute) }
.form-row { display: flex; flex-direction: column; gap: 6px }
.form-row > span:first-child { font-size: 14px; font-weight: 600 }
.form-row input, .form-row select, .form-row textarea { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; background: var(--bg); color: var(--ink) }
.form-row textarea { resize: vertical; line-height: 1.5; font-family: inherit }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px }
.form-row input::placeholder { color: var(--mute) }
.hint { font-size: 13px; color: var(--mute) }
.error { font-size: 13px; color: var(--error); font-weight: 500 }
.form .btn-block { margin-top: 4px; padding: 15px }
.form-alt { font-size: 15px; color: var(--mute); text-align: center }
.form-alt a { font-weight: 600; text-decoration: none }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 90px 24px 24px; overflow-y: auto }
.modal-backdrop { position: fixed; inset: 0; background: rgba(6, 8, 12, .6); backdrop-filter: blur(6px); cursor: default }
.modal-card { position: relative; width: 100%; max-width: 440px; margin: auto; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 26px 34px 34px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); animation: drop-in .5s cubic-bezier(.2, 1.4, .4, 1) }
@keyframes drop-in { from { transform: translateY(-40px) rotate(-3deg); opacity: 0 } to { transform: none; opacity: 1 } }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 999px; background: var(--chip); display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 20px; line-height: 1; text-decoration: none }
.modal-close:hover { color: var(--accent-ink); background: var(--accent) }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--chip); margin-right: 44px }
.tabs a { flex: 1; border-radius: 999px; padding: 8px; text-align: center; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--mute) }
.tabs a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 17, 22, .1) }
:root[data-theme=dark] .tabs a.active { background: #2A2D35 }

/* ---------- error page ---------- */
.not-found { padding-top: 60px; padding-bottom: 60px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start }
.not-found-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 60px }
.badge--ghost .ghost-code { font-family: var(--display); font-size: 84px; font-weight: 800; letter-spacing: -.05em; text-align: center; padding: 26px 0 30px; color: var(--line) }
:root[data-theme=dark] .badge--ghost .ghost-code { color: #2A2D35 }

/* ---------- admin panel (no frills) ---------- */
.admin-page { padding-top: 36px; display: flex; flex-direction: column; gap: 18px }
.admin-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line) }
.admin-tabs a { padding: 10px 16px; font-weight: 600; text-decoration: none; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px }
.admin-tabs a.active { color: var(--ink); border-bottom-color: var(--accent) }
.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap }
.admin-toolbar a.btn-primary { margin-left: auto }
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line) }
.admin-search { flex: 1 1 100% }
.af { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--mute) }
.af .select { width: 170px }
.af--narrow .select { width: 90px }
.af-actions { display: flex; gap: 8px; margin-left: auto }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px }
.table { width: 100%; border-collapse: collapse; font-size: 14px }
.table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle }
.table tr:last-child td { border-bottom: 0 }
.table tbody tr:hover td { background: color-mix(in srgb, var(--chip) 55%, transparent) }
.cell-strong { font-weight: 600; color: var(--ink); text-decoration: none }
a.cell-strong:hover { color: var(--accent) }
.cell-actions { white-space: nowrap; text-align: right }
.cell-actions .inline-form { margin-left: 8px }
.status-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap }
.status-cell .tag { margin-left: 0 }
.role-form { display: flex; gap: 6px; align-items: center }
.confirm { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--mute); margin-right: 6px }
.admin-form { max-width: 900px }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px }
.form-row--wide { grid-column: 1 / -1 }
.form-actions { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap }

/* ---------- toasts at the bottom of the screen ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none }
.toast { padding: 13px 20px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 15px; font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); animation: toast 5s var(--delay, 0s) both }
.toast--error { background: var(--error); color: #fff }
:root[data-theme=dark] .toast { background: var(--surface); color: var(--ink); border: 1px solid rgba(255, 106, 51, .5); box-shadow: 0 0 20px rgba(255, 106, 51, .35) }
@keyframes toast {
  0% { opacity: 0; transform: translateY(20px) }
  6%, 88% { opacity: 1; transform: none }
  100% { opacity: 0; transform: translateY(10px) }
}

/* ---------- feed: layout switch and filters ---------- */
.feed-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
.segment--icons a { display: inline-flex; align-items: center; gap: 6px }
.filters2 { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow) }
:root[data-theme=dark] .filters2 { background: #17181E; border: 1px solid var(--line) }
.filters2-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.filters2-search { flex: 1 1 260px }
.filters2-top .select { border-radius: 999px; padding: 9px 14px }
.filters2-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1.5px dashed var(--line) }
.filters2-active { display: flex; justify-content: space-between; gap: 12px }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px }
.chips--scroll .chip { flex: none }
/* toggle switch */
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; cursor: pointer; user-select: none }
.switch input { position: absolute; opacity: 0; pointer-events: none }
.switch span { position: relative; width: 38px; height: 22px; flex: none; border-radius: 999px; background: var(--line); transition: background .2s }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s }
.switch input:checked + span { background: var(--accent) }
.switch input:checked + span::after { transform: translateX(16px) }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
.switch--row { padding: 6px 0 }

/* ---------- weekly plan ---------- */
.plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px }
.plan-list li { display: flex; align-items: center; gap: 10px; font-size: 15px }
.plan-list .task--done { color: var(--mute); text-decoration: line-through }
.plan-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow) }
.plan-form select.select:first-of-type { flex: 1 1 220px }

/* ---------- settings and documents ---------- */
.settings-page, .legal-page { padding-top: 40px; display: flex; flex-direction: column; gap: 24px }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start }
.settings-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start }
.settings-card > .form-row, .account-form { align-self: stretch }
.account-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start }
.account-form .form-row, .pw-change { align-self: stretch }
.pw-change { display: flex; flex-direction: column; gap: 14px }
.pw-change summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--accent) }
.pw-change[open] summary { margin-bottom: 14px }
.opt { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px }
.opt legend { width: 100%; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--mute) }
.opt-pill input { position: absolute; opacity: 0; pointer-events: none }
.opt-pill span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 600; cursor: pointer }
.opt-pill input:checked + span { background: var(--accent); color: var(--accent-ink) }
/* Theme while it follows the device: nothing is ticked, so the pill of the theme on screen looks ticked */
:root[data-theme=light] .opt--theme:not(:has(input:checked)) .opt-pill--light span,
:root[data-theme=dark] .opt--theme:not(:has(input:checked)) .opt-pill--dark span { background: var(--accent); color: var(--accent-ink) }
.opt .hint { width: 100% }
.opt-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
.facts--flat { margin: 0; width: 100% }
.doc-links { display: flex; flex-direction: column; gap: 10px; font-weight: 600 }
.doc-links a { text-decoration: none }
.danger { box-shadow: inset 0 0 0 1.5px var(--error), var(--shadow) }
.danger .form-row { width: 100% }
.legal-page { max-width: 760px }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap }
.footer-links a { color: var(--footer-text); text-decoration: none }
.footer-links a:hover { color: #fff }

/* ---------- the "no flicker" setting ---------- */
:root[data-neon=off] *, :root[data-neon=off] *:hover { animation-name: none !important }
:root[data-neon=off] .toast { animation-name: toast !important }
:root[data-neon=off] .modal-card { animation-name: drop-in !important }

/* =====================================================================
   CALMER: fewer typical "generated" tricks.
   The wide font only in the landing headline; smaller radii; crisp shadows
   instead of blurry clouds; eyebrows above headings in plain grey rather than
   orange caps; no constant glow in the dark theme (neon only on hover).
   ===================================================================== */
.hero .display { font-family: 'Unbounded', 'Onest', sans-serif }
.display, .h2, .h3 { letter-spacing: -.025em }
.display { font-weight: 800 }

.eyebrow--plain { color: var(--mute); text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 500; margin-bottom: 4px }

.btn, .icon-btn, .search, .filters2-top .select, .tabs { border-radius: 10px }
.btn-sm, .chip, .segment a, .tabs a, .opt-pill span { border-radius: 7px }
.chip--sm { border-radius: 5px }
.segment { border-radius: 10px }
.filters2, .plan-form, .admin-filters, .table-wrap { border-radius: 12px }
.form-card, .modal-card, .pass, .card { border-radius: 14px }
.stages li, .toast, .notice { border-radius: 10px }
.btn-outline { box-shadow: inset 0 0 0 1px var(--ink) }

/* =====================================================================
   NO METAL: the strap goes behind the card and shows through the slot.
   The strap tucks under the top of the badge (negative bottom margin), the card
   lies on top; the slot is filled with the strap colour (--sc from the hanger),
   as if the strap were threaded through it.
   ===================================================================== */
.strap { position: relative; z-index: 0; margin-bottom: -30px }
.swing > .badge, .swing > .pass { position: relative; z-index: 1; margin-top: 0 }
.slot {
  position: relative; z-index: 1;
  width: calc(var(--strap-w, 22px) + 8px); height: 9px; margin: 14px auto 4px; border-radius: 5px;
  background: var(--sc, var(--accent));
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .06);
}
.hang--pass .slot { width: 52px; height: 11px; border-radius: 6px }
.hang--pass .strap { margin-bottom: -34px }
.badge--ghost .slot { background: var(--accent) }

/* sign-in forms: the strap reaches the top edge of the card and disappears into the slot */
.card-hang { top: -60px }
.card-hang .strap { width: 22px; height: 60px; margin-bottom: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%) }
.pass-card > .slot { margin-top: -12px; background: var(--accent) }

/* =====================================================================
   PERSONAL PLAN (_plan.html): home page and "My tasks"
   ===================================================================== */
.plan { display: flex; flex-direction: column; gap: 14px; min-width: 0 }
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap }
.plan-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.plan-nav { display: flex; gap: 6px }
.plan-nav a { min-width: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow) }
.plan-nav a:hover { color: var(--accent) }

/* the week as a strip (home page) */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px }
.strip-day { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 104px; padding: 12px; border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s }
.strip-day:hover { color: var(--ink); transform: translateY(-2px) }
.strip-top { display: flex; justify-content: space-between; align-items: baseline }
.strip-top span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute) }
.strip-top strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em }
.strip-sum { margin-top: auto; font-size: 12.5px; color: var(--mute); line-height: 1.3 }
.strip-day.has-deadline::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent) }
.strip-day.is-today .strip-top strong { color: var(--accent) }
.strip-day.is-selected { background: var(--accent); color: #fff }
.strip-day.is-selected .strip-top span, .strip-day.is-selected .strip-sum, .strip-day.is-selected .strip-top strong { color: #fff }
:root[data-theme=dark] .strip-day.is-selected { box-shadow: 0 0 22px rgba(255, 106, 51, .45) }
.dots { display: flex; gap: 4px; min-height: 6px }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35 }
.dots i.on { opacity: 1 }

/* the week as a timeline ("My tasks") */
.timeline { display: flex; flex-direction: column; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden }
.tl-day { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); border-left: 3px solid transparent }
.tl-day:first-child { border-top: 0 }
.tl-day:hover { color: var(--ink); background: var(--chip) }
.tl-day.is-selected { border-left-color: var(--accent); background: var(--accent-soft) }
.tl-date { display: flex; align-items: baseline; gap: 6px }
.tl-date strong { font-size: 22px; font-weight: 800; letter-spacing: -.03em; min-width: 28px }
.tl-date span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mute) }
.tl-day.is-today .tl-date strong { color: var(--accent) }
.tl-items { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0 }
.tl-task, .tl-deadline { max-width: 100%; padding: 4px 9px; border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.tl-task { background: var(--chip) }
.tl-task.is-done { color: var(--mute); text-decoration: line-through }
.tl-deadline { background: var(--accent); color: #fff; font-weight: 600 }
.tl-free { font-size: 13px; color: var(--mute) }
.tl-count { font-size: 12.5px; font-weight: 700; color: var(--mute) }

/* the month as a grid */
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 10px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow) }
.mgrid-wd { padding: 4px 0 6px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute) }
.mgrid-day { display: flex; flex-direction: column; gap: 3px; min-height: 84px; min-width: 0; padding: 6px; border-radius: 8px; background: var(--chip); color: var(--ink); text-decoration: none }
.mgrid-day:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line) }
.mgrid-day.is-other { opacity: .4 }
.mgrid-day.is-today .mgrid-num { color: var(--accent) }
.mgrid-day.is-selected { box-shadow: inset 0 0 0 2px var(--accent) }
.mgrid-num { font-size: 13px; font-weight: 700 }
.mgrid-task, .mgrid-deadline { display: block; padding: 2px 5px; border-radius: 4px; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.mgrid-task { background: var(--surface) }
.mgrid-task.is-done { color: var(--mute); text-decoration: line-through }
.mgrid-deadline { background: var(--accent); color: #fff }
.mgrid-more { font-size: 10.5px; color: var(--mute) }

/* the selected day */
.day-panel { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow) }
.day-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px }
.tag--today { margin-left: 0; background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent) }
.day-progress { margin-left: auto; display: flex; align-items: center; gap: 8px }
.bar { width: 72px; height: 4px; border-radius: 2px; background: var(--chip); overflow: hidden }
.bar i { display: block; height: 100%; background: var(--accent) }
.day-deadline { padding: 9px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: none }
.task-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; background: var(--chip) }
.task-box { width: 20px; height: 20px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: 5px; border: 1.5px solid var(--mute); background: transparent; color: #fff; cursor: pointer }
.task-row.is-done .task-box { border-color: var(--accent); background: var(--accent) }
.task-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14.5px; font-weight: 500 }
.task-body small { font-size: 12px; color: var(--mute) }
.task-body small a { color: var(--mute); text-decoration: none }
.task-body small a:hover { color: var(--accent) }
.task-row.is-done .task-body > span { color: var(--mute); text-decoration: line-through }
.task-x { padding: 0; border: 0; background: none; color: var(--mute); font-size: 18px; line-height: 1; cursor: pointer }
.task-x:hover { color: var(--error) }
.day-add { display: flex; gap: 8px; margin-top: 4px }
.day-add input[type=text] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font-size: 14px }
.day-add input[type=text]:focus { outline: 2px solid var(--accent); outline-offset: 1px }

/* upcoming deadlines (home page) */
.deadlines { display: flex; flex-direction: column; gap: 4px }
.deadlines .h3 { margin-bottom: 8px }
.dl-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none }
.dl-item:hover { color: var(--accent) }
.dl-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 8px; background: var(--chip); line-height: 1.1 }
.dl-date strong { font-size: 18px; font-weight: 800 }
.dl-date span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--mute) }
.dl-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 600; line-height: 1.3 }
.dl-text small { font-size: 12.5px; font-weight: 500; color: var(--mute) }
.dl-text small.is-soon { color: var(--accent) }

/* page layouts */
.home-page { padding-top: 40px; display: flex; flex-direction: column; gap: 26px }
.home-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start }

@media (max-width: 1000px) {
  .home-grid { grid-template-columns: 1fr }
  .strip { grid-template-columns: repeat(4, minmax(0, 1fr)) }
}
@media (max-width: 680px) {
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .mgrid { padding: 6px; gap: 3px }
  .mgrid-day { min-height: 54px; padding: 4px }
  .mgrid-task, .mgrid-deadline { font-size: 0; height: 6px; padding: 0 }
  .tl-day { grid-template-columns: 52px minmax(0, 1fr) }
  .tl-count { display: none }
}

/* calendar subscription in settings */
.copy-row { display: flex; gap: 8px; width: 100% }
.copy-row .select { flex: 1; min-width: 0; font-size: 13px; font-family: ui-monospace, Consolas, monospace }
.cal-buttons { display: flex; gap: 8px; flex-wrap: wrap }

/* ---------- about page ---------- */
.about-page { padding-top: 40px; display: flex; flex-direction: column; gap: 32px; max-width: 980px }
.about-intro { display: flex; flex-direction: column; gap: 14px }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
.about-card { display: flex; flex-direction: column; gap: 12px }
.about-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--text) }
.founders { display: flex; flex-wrap: wrap; gap: 14px }
.founder { display: flex; align-items: center; gap: 14px; min-width: 260px; padding: 16px 20px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow) }
.founder-avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--plaque); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px }
.founder-name { font-size: 17px; font-weight: 700 }
.about-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap }
@media (max-width: 680px) { .about-grid { grid-template-columns: 1fr } }

/* ---------- saved listings on "My tasks": a sideways-scrolling strip ---------- */
.fav-block { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; min-width: 0 }
.fav-strip {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding: 4px 2px 14px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.fav-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px }
.fav-item { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; scroll-snap-align: start }
@media (max-width: 680px) { .fav-item { flex-basis: 78% } }

/* =====================================================================
   CARDS AND LIST (the "Cards" and "List" feed layouts)
   ===================================================================== */

/* deadline scale: 12 ticks */
.tick-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px }
.tick-label { white-space: nowrap; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase }
.tick-date { font-family: 'Unbounded', 'Onest', sans-serif; font-size: 21px; font-weight: 800; letter-spacing: -.02em; justify-self: end }
.ticks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px }
.ticks i { height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .28) }
.ticks i.on { background: #fff }

/* card */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px }
.icard { --state: var(--foot); position: relative; display: flex; flex-direction: column; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s }
.icard:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 0 0 1.5px var(--accent), 0 10px 24px rgba(14, 17, 22, .12) }
.icard--soon { --state: var(--accent) }
.icard--closed { --state: #C9CDD3 }
.icard--closed .icard-top, .icard--closed .icard-plaque { filter: saturate(.25) opacity(.55) }
.icard--closed .icard-body { opacity: .55 }
.icard-top { position: relative; height: 74px }
.icard-slot { position: absolute; top: 9px; left: 50%; width: 34px; height: 6px; margin-left: -17px; border-radius: 3px; background: #fff; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25) }
.icard-field { position: absolute; top: 36px; right: 10px; padding: 3px 9px; border-radius: 6px; background: #fff; color: #0E1116; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase }
.icard-plaque { position: absolute; top: 40px; left: 14px; width: 48px; height: 48px; font-size: 15px; box-shadow: 0 0 0 3px var(--surface) }
.icard-plaque.plaque--logo { box-shadow: 0 0 0 3px var(--surface), inset 0 0 0 1px rgba(14, 17, 22, .08) }
.icard-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 24px 14px 14px }
.icard-org { font-size: 11.5px; color: var(--mute) }
.icard-title { font-family: 'Unbounded', 'Onest', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; text-wrap: pretty }
.icard-facts { margin: auto 0 0; padding-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; font-size: 12px }
.icard-facts div { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.icard-facts .wide { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line) }
.icard-facts dt { color: var(--mute) }
.icard-facts dd { margin: 0; font-weight: 700 }
.icard-facts .wide dd { text-align: right }
.icard-foot { padding: 11px 14px 12px; background: var(--state); color: #fff }
.icard--closed .icard-foot { color: rgba(255, 255, 255, .9) }

/* list row */
.list { display: flex; flex-direction: column; gap: 10px }
.lrow { --state: var(--foot); position: relative; display: grid; grid-template-columns: 22px 46px minmax(0, 1.25fr) minmax(0, 1.25fr) 210px; gap: 16px; align-items: center; min-height: 92px; padding-right: 0; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s }
.lrow:hover { color: var(--ink); box-shadow: 0 0 0 1.5px var(--accent), var(--shadow) }
.lrow--soon { --state: var(--accent) }
.lrow--closed { --state: #C9CDD3 }
.lrow--closed > :not(.lrow-dl) { opacity: .5 }
.lrow--closed .lrow-pat { filter: saturate(.25) }
.lrow-pat { align-self: stretch }
.lrow .plaque { width: 46px; height: 46px; font-size: 14px }
.lrow-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 0 }
.lrow-meta { font-size: 11.5px; color: var(--mute) }
.lrow-meta b { color: var(--ink); font-weight: 800; letter-spacing: .06em; text-transform: uppercase }
.lrow-title { font-family: 'Unbounded', 'Onest', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25 }
.lrow-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; font-size: 12.5px }
.lrow-facts div { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.lrow-facts dt { color: var(--mute) }
.lrow-facts dd { margin: 0; font-weight: 700 }
.lrow-dl { align-self: stretch; display: flex; align-items: center; padding: 14px 16px; background: var(--state); color: #fff }
.lrow-dl .tick-row { width: 100%; grid-template-columns: 1fr }
.lrow-dl .tick-date { order: 1; justify-self: start; line-height: 1 }
.lrow-dl .ticks { order: 2; margin: 4px 0 2px }
.lrow-dl .tick-label { order: 3; white-space: normal }

/* saved listings on "My tasks": the same cards, smaller */
.fav-strip--cards .icard-top { height: 58px }
.fav-strip--cards .icard-field { top: 28px; font-size: 9px }
.fav-strip--cards .icard-plaque { top: 32px; width: 40px; height: 40px; font-size: 13px }
.fav-strip--cards .icard-body { padding: 20px 12px 12px }
.fav-strip--cards .icard-title { font-size: 13.5px }
.fav-strip--cards .tick-date { font-size: 17px }
.fav-strip--cards .icard-foot { padding: 9px 12px 10px }

@media (max-width: 1000px) {
  .lrow { grid-template-columns: 14px 44px minmax(0, 1fr) 150px }
  .lrow-facts { display: none }
}
@media (max-width: 680px) {
  .lrow { grid-template-columns: 10px 40px minmax(0, 1fr); gap: 12px }
  .lrow-dl { grid-column: 1 / -1 }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px }
}

/* =====================================================================
   BADGE (new format): a strap with the card pattern + a dark clip bar
   ===================================================================== */
.hang--patterned .strap { margin-bottom: 0; width: 24px; height: var(--strap-h, 56px) }
.clip-bar { position: relative; z-index: 2; display: block; width: 40px; height: 13px; margin: -3px 0 -7px; border-radius: 4px; background: linear-gradient(180deg, #2E323B, #0E1116); box-shadow: 0 2px 3px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12) }
:root[data-theme=dark] .clip-bar { background: linear-gradient(180deg, #4A4E58, #23262D) }

.badge2 { --state: var(--foot); border-radius: 14px; overflow: hidden; transition: box-shadow .15s }
.badge2.badge--soon { --state: var(--accent) }
.badge2.badge--closed { --state: #C9CDD3 }
a.badge2:hover { box-shadow: 0 0 0 1.5px var(--accent), 0 14px 28px rgba(14, 17, 22, .12) }
.b2-head { display: flex; align-items: center; gap: 10px; padding: 18px 16px 0 }
.b2-head .plaque { width: 42px; height: 42px; font-size: 14px; border-radius: 10px }
.b2-org { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; color: var(--mute); line-height: 1.3 }
.b2-field { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase }
.b2-field i { width: 11px; height: 11px; border-radius: 2px; flex: none }
.b2-title { padding: 14px 16px 0; font-family: 'Unbounded', 'Onest', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; text-wrap: pretty }
.b2-facts { margin: 0; padding: 14px 16px 14px }
.badge2 .icard-foot { margin-top: auto }
.badge2.badge--closed .b2-head, .badge2.badge--closed .b2-title, .badge2.badge--closed .b2-facts { opacity: .5 }
.hang--patterned:has(.badge--closed) .strap { filter: saturate(.2) opacity(.6) }

/* =====================================================================
   20 LANYARD PATTERNS. Palette: orange, black, peach, white. Used on straps,
   card tops, list row stripes and the direction swatch. Which direction gets
   which pattern: PATTERNS and FIELD_PATTERNS in app.py.
   ===================================================================== */
.pat-diag { background: repeating-linear-gradient(135deg, #0E1116 0 5px, #FF5A1F 5px 10px) }
.pat-dots { background: radial-gradient(circle, #FF5A1F 2.2px, transparent 2.6px) 0 0 / 9px 9px, #0E1116 }
.pat-plus { background: linear-gradient(#fff 2px, transparent 2px) 0 0 / 9px 9px, linear-gradient(90deg, #fff 2px, transparent 2px) 0 0 / 9px 9px, #FF5A1F }
.pat-ripples { background: repeating-radial-gradient(circle at 50% 115%, #0E1116 0 4px, #FF5A1F 4px 8px) }
.pat-barcode { background: repeating-linear-gradient(90deg, #0E1116 0 2px, #FBE1D4 2px 5px, #0E1116 5px 6px, #FBE1D4 6px 10px, #0E1116 10px 13px, #FBE1D4 13px 15px) }
.pat-blueprint { background: linear-gradient(#0E1116 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(90deg, #0E1116 1px, transparent 1px) 0 0 / 8px 8px, #FF5A1F }
.pat-warning { background: repeating-linear-gradient(135deg, #0E1116 0 3px, #FBE1D4 3px 9px) }
.pat-checker { background: conic-gradient(#0E1116 25%, #FF5A1F 0 50%, #0E1116 0 75%, #FF5A1F 0) 0 0 / 10px 10px }
.pat-zigzag {
  background:
    linear-gradient(135deg, #0E1116 25%, transparent 25%) -6px 0 / 12px 12px,
    linear-gradient(225deg, #0E1116 25%, transparent 25%) -6px 0 / 12px 12px,
    linear-gradient(315deg, #0E1116 25%, transparent 25%) 0 0 / 12px 12px,
    linear-gradient(45deg, #0E1116 25%, transparent 25%) 0 0 / 12px 12px, #FF5A1F;
}
.pat-bigdots { background: radial-gradient(circle, #0E1116 3.6px, transparent 4.1px) 0 0 / 13px 13px, #fff }
.pat-sport { background: repeating-linear-gradient(180deg, #0E1116 0 4px, #fff 4px 6px, #FF5A1F 6px 10px, #fff 10px 12px) }
.pat-lattice { background: repeating-linear-gradient(45deg, #fff 0 1.5px, transparent 1.5px 9px), repeating-linear-gradient(-45deg, #fff 0 1.5px, transparent 1.5px 9px), #FF5A1F }
.pat-triangles { background: linear-gradient(45deg, #0E1116 50%, #FF5A1F 50%) 0 0 / 10px 10px }
.pat-rings { background: radial-gradient(circle, transparent 2px, #FF5A1F 2.4px 3.6px, transparent 4px) 0 0 / 10px 10px, #0E1116 }
.pat-tartan { background: repeating-linear-gradient(90deg, rgba(14, 17, 22, .35) 0 2px, transparent 2px 8px), repeating-linear-gradient(0deg, rgba(14, 17, 22, .35) 0 2px, transparent 2px 8px), #FF5A1F }
.pat-stitch { background: linear-gradient(90deg, #0E1116 0 16%, transparent 16% 84%, #0E1116 84%), repeating-linear-gradient(180deg, #fff 0 4px, transparent 4px 8px) 50% 0 / 2px 100% no-repeat, #FF5A1F }
.pat-wave { background: radial-gradient(circle at 50% 0, transparent 3px, #0E1116 3.5px 5.5px, transparent 6px) 0 0 / 12px 8px, #FF5A1F }
.pat-confetti { background: radial-gradient(circle, #FF5A1F 1.4px, transparent 1.7px) 0 0 / 9px 11px, radial-gradient(circle, #fff 1.1px, transparent 1.4px) 4px 5px / 9px 11px, #0E1116 }
.pat-mosaic { background: conic-gradient(#0E1116 25%, #fff 0 50%, #FF5A1F 0 75%, #fff 0) 0 0 / 8px 8px }
.pat-arrows { background: linear-gradient(135deg, #0E1116 25%, transparent 25%) 0 0 / 16px 16px, linear-gradient(225deg, #0E1116 25%, transparent 25%) 0 0 / 16px 16px, #FF5A1F }

/* settings form groups */
.settings-card .opt { align-self: stretch }
/* Drop-down with a tick (feed layout, pass lanyard) */
.dd { position: relative; align-self: stretch }
.dd-btn { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: var(--bg); color: var(--ink); font-size: 16px; cursor: pointer }
.dd-btn::-webkit-details-marker { display: none }
.dd-btn::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s; flex: none }
.dd[open] .dd-btn::after { transform: translateY(2px) rotate(-135deg) }
.dd-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px }
.dd-value, .dd-name { display: flex; align-items: center; gap: 10px }
.dd-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .18) }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 15px; cursor: pointer }
.dd-opt:hover { background: var(--bg) }
.dd-opt input { position: absolute; opacity: 0; pointer-events: none }
.dd-opt::after { content: "✓"; font-weight: 800; color: var(--accent); visibility: hidden }
.dd-opt:has(input:checked) { font-weight: 700 }
.dd-opt:has(input:checked)::after { visibility: visible }
.dd-opt:has(input:focus-visible) { outline: 2px solid var(--accent) }
.dd-swatch { width: 46px; height: 16px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px var(--line) }
.dd-swatch--brand { background: var(--accent) }
/* a pattern on the pass lanyard: the lettering stays readable */
.strap--lanyard[class*="pat-"]::after { text-shadow: 0 0 3px #0E1116, 0 0 6px #0E1116 }

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

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero, .listing, .not-found, .settings-grid { grid-template-columns: 1fr }
  .hero .display { font-size: 48px }
  .hero-text { padding-top: 20px }
  .aside { position: static; max-width: 420px }
  .hang--pass { max-width: 340px }
  .not-found-text { padding-top: 0 }
  .hang--error { max-width: 320px }
}
@media (max-width: 680px) {
  .wrap { padding-left: 16px; padding-right: 16px }
  .header-row { gap: 12px; flex-wrap: wrap }
  .nav { order: 3; flex: 1 1 100%; justify-content: flex-start; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px }
  .nav a { padding: 7px 10px }
  .header-actions { margin-left: auto; gap: 8px }
  .user-name { display: none }
  .hero .display, .display--page { font-size: 34px }
  .display--title { font-size: 28px }
  .h2 { font-size: 24px }
  .stats { gap: 22px }
  .stat-num { font-size: 26px }
  .board { grid-template-columns: 1fr }
  .section-head { flex-direction: column; align-items: flex-start }
  .stages li { grid-template-columns: 1fr; gap: 4px }
  .form-card, .modal-card { padding-left: 22px; padding-right: 22px }
  .form-grid { grid-template-columns: 1fr }
  .af .select { width: 100% }
  .af { flex: 1 1 140px }
}

/* ===================== Applications, profile, sign-in extras, admin tools ===================== */
.tag--bad { background: var(--error); color: #fff; text-decoration: none }
.nowrap { white-space: nowrap }

/* "Doesn't fit" mark on cards and rows (spec FR-3.5) */
.inelig { display: inline-block; align-self: flex-start; margin: 8px 0 0; padding: 3px 8px; border-radius: 6px; background: var(--warn-bg); color: var(--accent); font-size: 11.5px; font-weight: 700; line-height: 1.3 }
.icard .inelig { margin: 0 16px 12px }
.lrow .inelig { margin-top: 2px }
.icard.is-ineligible .icard-body, .lrow.is-ineligible .lrow-title { opacity: .7 }

/* Pages */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px }
.pager a { min-width: 38px; padding: 8px 12px; border-radius: 8px; background: var(--surface); color: var(--ink); text-align: center; text-decoration: none; font-weight: 600; box-shadow: var(--shadow) }
.pager a.on { background: var(--accent); color: var(--accent-ink) }

/* Other ways to sign in */
.alt-signin { display: flex; flex-direction: column; gap: 12px }
.btn-google { gap: 10px }
.form-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px }

/* Requirement checks against the profile (spec FR-3.6) */
.fit { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px }
.fit li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45 }
.fit-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800 }
.fit--ok .fit-mark { background: var(--ok-bg); color: var(--ok) }
.fit--no .fit-mark { background: var(--error); color: #fff }
.fit--unknown .fit-mark { background: var(--chip); color: var(--mute) }
.fit--no { color: var(--ink); font-weight: 600 }

/* Application on the listing page: status, readiness, checklist */
.app-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-bottom: 14px }
.app-status label { display: flex; flex-direction: column; gap: 4px }
.readiness { display: flex; flex-direction: column; gap: 6px; min-width: 160px }
.readiness .bar { width: 100%; height: 6px; border-radius: 3px }
.readiness--sm { flex-direction: row; align-items: center; gap: 8px; min-width: 110px }
.readiness--sm .bar { width: 64px; height: 4px }
.checklist { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px }
.ck { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow) }
.ck--sub { margin-left: 34px; padding: 7px 12px; font-size: 14px }
.ck.is-done .ck-title { color: var(--mute); text-decoration: line-through }
.ck-title { flex: 1; min-width: 0 }
.ck-menu summary { list-style: none; cursor: pointer; padding: 2px 8px; border-radius: 6px; color: var(--mute); font-weight: 800; letter-spacing: .1em }
.ck-menu summary::-webkit-details-marker { display: none }
.ck-menu summary:hover, .ck-menu[open] summary { background: var(--chip); color: var(--ink) }
.ck-pop { position: absolute; z-index: 15; right: 8px; top: calc(100% + 4px); width: min(360px, calc(100vw - 48px)); display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px rgba(0, 0, 0, .18) }
.ck-edit { display: flex; flex-wrap: wrap; gap: 6px }
.ck-edit input { flex: 1 1 140px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px }
.ck-actions { display: flex; flex-wrap: wrap; gap: 6px }
.ck-actions button[disabled] { opacity: .4; pointer-events: none }

/* Profile completeness, status chips, applications table */
.completeness { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow) }
a.completeness:hover { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow) }
.completeness-text { display: flex; flex-direction: column; gap: 2px }
.completeness .bar { width: 160px; height: 6px; border-radius: 3px }
.completeness--inline { box-shadow: none; background: transparent; padding: 0; justify-content: flex-end; text-align: right; max-width: 460px }
.fav-item { position: relative }
.status-chip { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 11px; font-weight: 700; box-shadow: var(--shadow) }
.status--applied, .status--review, .status--interview { background: var(--accent); color: var(--accent-ink) }
.status--offer { background: var(--ok); color: #fff }
.status--rejected { background: var(--chip); color: var(--mute) }
.apps { display: flex; flex-direction: column; gap: 14px }
.apps-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap }
.apps-table td { vertical-align: middle }

/* Profile page */
.profile-form { display: flex; flex-direction: column; gap: 26px }
.pf-group { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0 }
.pf-group legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 700; color: var(--ink) }
.pf-lead { margin-top: -14px }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.pf-hours { max-width: 200px }
.chips--pick { gap: 8px }
.chip-pick { cursor: pointer }
.chip-pick input { position: absolute; opacity: 0; pointer-events: none }
.chip-pick span { display: inline-block; padding: 8px 14px; border-radius: 7px; background: var(--chip); color: var(--ink); font-size: 14px; font-weight: 600 }
.chip-pick input:checked + span { background: var(--accent); color: var(--accent-ink) }
.chip-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
@media (max-width: 680px) { .pf-row { grid-template-columns: 1fr } }

/* Admin: dashboard, drafts, import, audit log, two-factor sign-in */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow) }
a.stat-card:hover { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow) }
.stat-card .stat-num { font-family: 'Unbounded', 'Onest', sans-serif; font-size: 30px; font-weight: 800 }
.stat-card--warn { box-shadow: inset 4px 0 0 var(--error), var(--shadow) }
.stat-card--warn .stat-num { color: var(--error) }
.row-draft td { background: color-mix(in srgb, var(--chip) 60%, transparent) }
.import-card, .import-errors { display: flex; flex-direction: column; gap: 14px; padding: 22px }
.import-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px }
.import-help summary { cursor: pointer; font-weight: 600 }
.import-errors ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--error) }
.audit-diff { font-size: 13px; line-height: 1.5; max-width: 420px; overflow-wrap: anywhere }
.audit-diff s { color: var(--mute) }
.twofa-page { display: grid; place-items: center; padding-top: 40px; padding-bottom: 64px }
.twofa-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 16px; padding: 28px }
.twofa-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; line-height: 1.45 }
.twofa-qr { align-self: center; border-radius: 8px; background: #fff; padding: 6px }
.twofa-secret { align-self: center; padding: 6px 10px; border-radius: 6px; background: var(--chip); font-size: 13px; letter-spacing: .08em; overflow-wrap: anywhere }

/* ===================== Page layouts: "My tasks", profile, FAQ ===================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* "My tasks": plan and selected day side by side, then full-width rows */
.tasks-page { display: flex; flex-direction: column; gap: 44px; padding-top: 40px; padding-bottom: 72px }
.tasks-page .page-head p { margin: 6px 0 0 }
.tasks-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start }
.tasks-day { position: sticky; top: 96px }
.fav-block--wide { margin-top: 0 }
.fav-block--wide .fav-strip { gap: 20px }
.fav-block--wide .fav-item { flex-basis: calc((100% - 60px) / 4) }

/* Profile: a smaller pass with a section menu on the left, roomy cards on the right */
.profile-page { display: flex; flex-direction: column; gap: 32px; padding-top: 40px; padding-bottom: 72px }
.profile-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; align-items: start }
.profile-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px }
.profile-menu { display: flex; flex-direction: column; gap: 2px }
.profile-menu a { padding: 9px 12px; border-radius: 8px; color: var(--mute); font-weight: 600; text-decoration: none }
.profile-menu a:hover { background: var(--chip); color: var(--ink) }
.profile-menu a:last-child { color: var(--error) }
.profile-main { display: flex; flex-direction: column; gap: 28px; min-width: 0 }
.profile-main > .card { padding: 28px; scroll-margin-top: 96px }
.profile-main .settings-card { gap: 18px }
.profile-main .account-form { gap: 18px }
.pf-current { max-width: 420px }
.profile-main .form-actions .mute { flex: 1 1 240px }

/* FAQ */
.faq-page { display: flex; flex-direction: column; gap: 32px; max-width: 860px; padding-top: 40px; padding-bottom: 72px }
.faq-groups { display: flex; flex-direction: column; gap: 32px }
.faq-group { display: flex; flex-direction: column; gap: 10px }
.faq-item { border-radius: 10px; background: var(--surface); box-shadow: var(--shadow) }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; list-style: none; cursor: pointer; font-weight: 600; color: var(--ink) }
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after { content: "+"; flex: none; color: var(--accent); font-weight: 800 }
.faq-item[open] summary::after { content: "−" }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--text); line-height: 1.6 }

@media (max-width: 1000px) {
  .tasks-grid, .profile-grid { grid-template-columns: 1fr; gap: 28px }
  .tasks-day, .profile-side { position: static }
  .profile-side { align-items: center }
  .profile-side .hang--profile { max-width: 260px }
  .profile-menu { flex-direction: row; flex-wrap: wrap; justify-content: center }
  .fav-block--wide .fav-item { flex-basis: calc((100% - 20px) / 2) }
  .completeness--inline { text-align: left; justify-content: flex-start }
}
@media (max-width: 680px) {
  .fav-block--wide .fav-item { flex-basis: 78% }
  .profile-main > .card { padding: 20px }
  .tasks-page, .profile-page { gap: 32px }
}
