/* Repomate homepage: the working front door.
   Same materials as the tour (near-black, cyan to violet, Geist, glass), but
   the job is different: scan something, or open a report that already exists.
   One pinned moment (the report anatomy); everything else is a tool. */

:root {
  --sc-canvas: #06070b;
  --sc-surface: #0d0f16;
  --sc-ink: #e9ecf5;
  --sc-ink-soft: #a3a9ba;
  --sc-accent: #53e0ff;
  --sc-accent-ink: #06070b;
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --sc-font-mono: "Geist Mono", ui-monospace, monospace;

  --bg: #06070b; --panel: #0c0e15; --panel-2: #11141d; --panel-3: #161a26;
  --line: #1b1f2b; --line-2: #262b3a; --line-3: #343a4d;
  --ink: #e9ecf5; --ink-2: #a3a9ba; --ink-3: #6b7285; --ink-4: #4a5061;
  --cyan: #53e0ff; --violet: #9b7bff;
  --good: #3ddc84; --warn: #f5c451; --serious: #ff8a4c; --critical: #ff5470; --low: #7d8699;
  --grad: linear-gradient(100deg, #53e0ff 0%, #8fa2ff 50%, #9b7bff 100%);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-padding-top: 76px; background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-size: 16px; overflow-x: clip; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 78% -12%, #1a2a4a66, transparent 60%),
    radial-gradient(50rem 40rem at -10% 110%, #2a1a4a44, transparent 60%),
    linear-gradient(#ffffff05 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, #ffffff05 1px, transparent 1px) 0 0 / 56px 56px;
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, code, pre, kbd { font-family: var(--sc-font-mono); }
a { color: inherit; }
[hidden] { display: none !important; }
.shell { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); position: relative; }
svg use { pointer-events: none; }

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; font-family: var(--sc-font-display); }
h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 4.6rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--ink-3); }
.kicker { font-size: .76rem; color: var(--cyan); margin: 0 0 1rem; }
.lede { font-size: clamp(1rem, .95rem + .3vw, 1.14rem); color: var(--ink-2); line-height: 1.6; max-width: 33rem; margin: 1.2rem 0 0; }
.sub { color: var(--ink-2); line-height: 1.6; max-width: 36rem; margin: .9rem 0 0; }
.link { display: inline-flex; align-items: center; gap: .35rem; color: var(--cyan); text-decoration: none; font-size: .8rem; }
.link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 0; border-radius: 10px; padding: .75rem 1.2rem; font: 600 .94rem/1 var(--sc-font-text); text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--bg); }
.btn svg { width: 16px; height: 16px; }
.btn--sm { padding: .55rem .85rem; font-size: .85rem; }
.btn--glow { background: var(--grad); box-shadow: 0 0 0 1px #ffffff22 inset, 0 8px 30px -8px #53e0ff66; transition: box-shadow .25s, transform .15s; }
.btn--glow:hover { box-shadow: 0 0 0 1px #ffffff44 inset, 0 10px 40px -6px #53e0ffaa; }
.btn--glow:active { transform: translateY(1px); }
.btn--ghost { color: var(--ink); background: #ffffff0b; box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn--ghost:hover { background: #ffffff15; box-shadow: 0 0 0 1px var(--line-3) inset; }
.btn:disabled { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-3); }
.icon-btn svg { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; background: #06070bb8; backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid #ffffff0e; }
.nav__row { display: flex; align-items: center; gap: 2rem; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 650; letter-spacing: -0.02em; text-decoration: none; }
.nav__links { display: flex; gap: 1.5rem; font-size: .9rem; }
.nav__links a { color: var(--ink-3); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__end { margin-left: auto; display: flex; gap: 1rem; align-items: center; }
.nav__sign { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.nav__sign:hover { color: var(--ink); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: calc(56px + clamp(2.5rem, 7vh, 5.5rem)) 0 clamp(2.5rem, 6vh, 4rem); position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.cmd { position: relative; margin-top: 2rem; max-width: 38rem; z-index: 5; }
.cmd__box {
  display: flex; align-items: center; gap: .15rem; padding: .45rem .45rem .45rem .95rem; border-radius: 14px;
  background: #0b0d14; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px #ffffff05 inset, 0 20px 60px -30px #53e0ff55;
  transition: border-color .2s, box-shadow .25s;
}
.cmd__box:focus-within { border-color: #53e0ff88; box-shadow: 0 0 0 4px #53e0ff1f, 0 24px 70px -26px #53e0ff77; }
.cmd__icon { width: 18px; height: 18px; color: var(--ink-3); flex: none; margin-right: .45rem; }
.cmd__sign { color: var(--ink-3); font-size: .95rem; flex: none; }
.cmd input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: 500 1.02rem var(--sc-font-mono); padding: .7rem .1rem; }
.cmd input::placeholder { color: var(--ink-4); }
.cmd__kbd { font-size: .72rem; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: .1rem .4rem; margin-right: .5rem; }
.cmd__box:focus-within .cmd__kbd { display: none; }
.cmd__note { font-size: .84rem; color: var(--ink-3); margin-top: .8rem; min-height: 1.3em; max-width: 38rem; }
.cmd__note.err { color: var(--ink); background: #ff547014; border: 1px solid #ff547055; border-radius: 10px; padding: .7rem .85rem; }
.cmd__note.err b { color: var(--critical); display: block; margin-bottom: .2rem; }
.cmd__note .btn { margin-top: .6rem; }

.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none; background: #0d1018f5; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 60px -20px #000; backdrop-filter: blur(10px); }
.suggest__cap { font: .7rem var(--sc-font-mono); color: var(--ink-3); padding: .35rem .6rem .25rem; }
.suggest li[role="option"] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .55rem .6rem; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li[role="option"]:hover { background: #ffffff0c; }
.suggest .nm { font: 500 .88rem var(--sc-font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sc { font: .78rem var(--sc-font-mono); color: var(--ink-3); }

.recent { margin: 1.1rem 0 0; font-size: .76rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.recent a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .28rem .6rem .28rem .35rem; transition: border-color .2s, color .2s; }
.recent a:hover { color: var(--ink); border-color: var(--line-3); }

/* grade chips: the letter always shows, colour is the second signal */
.gchip { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 .3rem; border-radius: 6px; font: 700 .76rem var(--sc-font-text); color: #06070b; background: var(--good); flex: none; }
.gchip[data-g="B"] { background: #8fe07a; }
.gchip[data-g="C"] { background: var(--warn); } .gchip[data-g="D"] { background: var(--serious); } .gchip[data-g="F"] { background: var(--critical); }
.gchip--sm { min-width: 18px; height: 18px; font-size: .68rem; border-radius: 5px; }
.gchip--lg { min-width: 38px; height: 38px; font-size: 1.1rem; border-radius: 10px; }

/* instrument */
.glass { background: linear-gradient(180deg, #11141dd9, #0c0e15d9); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 #ffffff0a inset, 0 30px 80px -40px #000; backdrop-filter: blur(8px); }
.inst { padding: 1rem 1.1rem 1.1rem; position: relative; overflow: hidden; }
.inst::after { content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, #53e0ff1c, transparent); pointer-events: none; }
.inst__head { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; color: var(--ink-3); }
.inst__live { display: inline-flex; align-items: center; gap: .45rem; }
.inst__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); animation: blink 2.4s infinite; }
.inst.is-scan .inst__live i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation-duration: .9s; }
@keyframes blink { 50% { opacity: .35; } }
.inst__ring { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: .4rem auto .2rem; }
.inst__ring canvas { width: 100%; height: 100%; display: block; }
.inst__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .15rem; text-align: center; }
.inst__center b { font-size: clamp(2.4rem, 2rem + 1.4vw, 3.1rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.inst__of { font-size: .72rem; color: var(--ink-3); }
.inst__center .gchip { margin-top: .35rem; }
.inst__name { display: flex; align-items: baseline; gap: 0; text-decoration: none; font-size: 1.05rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inst__name span { color: var(--ink-3); font-size: .95rem; }
.inst__name:hover b { text-decoration: underline; text-underline-offset: 3px; }
.inst__desc { color: var(--ink-2); font-size: .86rem; line-height: 1.5; margin: .35rem 0 0; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inst__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; }
.inst__body { transition: opacity .3s; }
.inst__body.swap { opacity: 0; }
.inst__pager { display: flex; gap: .35rem; margin-top: .9rem; }
.inst__pager button { flex: 1; height: 3px; border: 0; padding: 0; border-radius: 2px; background: var(--line-2); cursor: pointer; position: relative; overflow: hidden; }
.inst__pager button::before { content: ""; position: absolute; inset: -8px 0; }
.inst__pager button[aria-current="true"] { background: #53e0ff55; }
.inst__pager button[aria-current="true"] i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--cyan); animation: fillx var(--dwell, 6s) linear forwards; }
.inst:hover .inst__pager i, .inst:focus-within .inst__pager i { animation-play-state: paused; }
@keyframes fillx { to { width: 100%; } }
.sevline { display: inline-flex; gap: .7rem; font-size: .74rem; color: var(--ink-3); flex-wrap: wrap; }
.sevline i { font-style: normal; display: inline-flex; align-items: center; gap: .3rem; }
.sevline i::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--c); }

.inst__scan { padding-top: .3rem; }
.inst__phase { margin: 0 0 .7rem; font-weight: 600; }
.bar { height: 4px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 3%; background: var(--grad); transition: width .6s var(--ease); }
.phases { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .35rem; font-size: .76rem; color: var(--ink-4); }
.phases li { display: flex; gap: .5rem; align-items: center; }
.phases li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-3); flex: none; }
.phases li.done { color: var(--ink-3); } .phases li.done::before { background: var(--good); }
.phases li.now { color: var(--ink); } .phases li.now::before { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.inst__small { font-size: .76rem; color: var(--ink-3); margin: .9rem 0 0; line-height: 1.5; }

/* your repositories (signed in) */
.mine { margin-top: clamp(2rem, 5vh, 3rem); }
.mine__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.mine__title { font-size: 1.05rem; letter-spacing: -0.01em; }
.mine__row { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.mini { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .7rem .8rem; border-radius: 12px; background: #0c0e15cc; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.mini:hover { border-color: var(--line-3); transform: translateY(-2px); }
.mini__nm { font: 500 .84rem var(--sc-font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__s { font-size: .74rem; color: var(--ink-3); margin-top: .15rem; }
.mini__d { font: 600 .78rem var(--sc-font-mono); }
.up { color: var(--good); } .down { color: var(--critical); }

/* ---------------------------------------------------------------- board */
.sec { padding: clamp(4rem, 11vh, 7rem) 0; position: relative; z-index: 1; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.dist { display: grid; gap: .45rem; min-width: min(100%, 20rem); }
.dist__bar { display: flex; gap: 2px; height: 10px; border-radius: 4px; overflow: hidden; }
.dist__bar i { background: var(--c); min-width: 4px; }
.dist__key { display: flex; gap: .9rem; font: .74rem var(--sc-font-mono); color: var(--ink-3); flex-wrap: wrap; }
.dist__key span { display: inline-flex; align-items: center; gap: .35rem; }

.tools-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 2rem 0 1.2rem; }
.filter { flex: 1 1 18rem; display: flex; align-items: center; gap: .55rem; padding: 0 .8rem; border-radius: 10px; background: #0b0d14; border: 1px solid var(--line-2); }
.filter:focus-within { border-color: #53e0ff77; }
.filter svg { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.filter input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: .9rem var(--sc-font-text); padding: .62rem 0; }
.filter input::placeholder { color: var(--ink-4); }
.chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.chips button, .seg button { font: 500 .8rem var(--sc-font-text); color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: .42rem .75rem; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chips button:hover, .seg button:hover { color: var(--ink); border-color: var(--line-3); }
.chips button[aria-pressed="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; gap: 2px; margin-left: auto; }
.seg button { border: 0; border-radius: 7px; padding: .38rem .7rem; }
.seg button[aria-pressed="true"] { background: #ffffff14; color: var(--ink); }
@media (max-width: 700px) { .seg { margin-left: 0; } }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .9rem; }
.card {
  display: grid; gap: .85rem; padding: 1rem 1.05rem; border-radius: 16px; text-decoration: none;
  background: linear-gradient(180deg, #10131cd0, #0b0d14d0); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
  animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card:hover { border-color: #53e0ff55; transform: translateY(-3px); box-shadow: 0 20px 50px -30px #53e0ff66; }
.card__top { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: .85rem; align-items: center; }
.ring { position: relative; width: 58px; height: 58px; }
.ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 650 .95rem var(--sc-font-text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card__id { min-width: 0; }
.card__nm { font: 500 .92rem var(--sc-font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__nm span { color: var(--ink-3); }
.card__desc { margin: .25rem 0 0; font-size: .8rem; color: var(--ink-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; gap: .9rem; align-items: center; font-size: .72rem; color: var(--ink-3); flex-wrap: wrap; }
.card__meta span { display: inline-flex; gap: .3rem; align-items: center; }
.card__meta svg { width: 12px; height: 12px; }
.card__meta .lg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.card__meta .when { margin-left: auto; }
.mix { display: flex; gap: 2px; height: 5px; border-radius: 3px; overflow: hidden; background: var(--line); }
.mix i { background: var(--c); }
.card__f { display: flex; justify-content: space-between; font-size: .72rem; color: var(--ink-3); margin-top: .45rem; }

.miss { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.1rem; border: 1px dashed var(--line-3); border-radius: 14px; color: var(--ink-2); margin-top: .9rem; }
.miss p { margin: 0; } .miss b { color: var(--ink); font-family: var(--sc-font-mono); font-weight: 500; }
.skel { height: 150px; border-radius: 16px; background: linear-gradient(90deg, #0d1018, #141824, #0d1018) 0 0 / 200% 100%; animation: shimmer 1.4s infinite linear; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

#explore { padding-top: clamp(1.5rem, 4vh, 3rem); }

/* ---------------------------------------------------------------- anatomy */
.act { position: relative; z-index: 1; }
.stage { display: flex; align-items: center; }
.anat { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-top: 56px; }
.anat__steps { list-style: none; margin: 1.8rem 0 1.6rem; padding: 0; display: grid; gap: .3rem; }
.anat__steps li { position: relative; padding: .7rem .9rem .7rem 3rem; border-radius: 12px; color: var(--ink-3); font-size: .92rem; line-height: 1.5; transition: color .35s, background .35s; }
.anat__steps li::before { content: attr(data-n); position: absolute; left: .95rem; top: .78rem; font: .72rem var(--sc-font-mono); color: var(--ink-4); transition: color .35s; }
.anat__steps li b { color: var(--ink-2); font-weight: 600; transition: color .35s; }
.anat__steps li.on { color: var(--ink-2); background: #ffffff08; }
.anat__steps li.on b { color: var(--ink); }
.anat__steps li.on::before { color: var(--cyan); }

.rep { padding: 0; overflow: hidden; }
.rep__head { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--ink-3); }
.rep__head > span:first-child { display: inline-flex; gap: .45rem; align-items: center; color: var(--ink-2); }
.rep__head svg { width: 14px; height: 14px; }
.rep__part { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); opacity: .28; transition: opacity .45s var(--ease), background .45s; position: relative; }
.rep__part:last-child { border-bottom: 0; }
.rep__part.on { opacity: 1; background: #53e0ff06; }
.rep__part.on::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--grad); }
.rep__label { margin: 0 0 .6rem; font-size: .7rem; color: var(--ink-3); }
.rep__score .gchip { justify-self: start; }
.rep__score { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 1rem; align-items: center; }
.rep__big b { font-size: 2.6rem; font-weight: 650; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.rep__big span { font-size: .72rem; color: var(--ink-3); margin-left: .3rem; }
.rep__verdict { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.45; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1.4rem; }
.areas li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 38px; gap: .6rem; align-items: center; font-size: .78rem; color: var(--ink-2); }
.areas li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.areas .m { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.areas .m i { display: block; height: 100%; background: var(--c); width: calc(var(--v) * 1%); transform-origin: left; transition: transform .8s var(--ease); }
.rep:not(.p1) .areas .m i { transform: scaleX(.02); }
.areas .l { font: .74rem var(--sc-font-mono); text-align: right; color: var(--ink-3); }
.areas .l.hit { color: var(--serious); }
.areas li.na { opacity: .5; }
.actions { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.actions li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; font-size: .84rem; padding: .5rem .6rem; border-radius: 9px; background: #ffffff05; border: 1px solid var(--line); }
.actions li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions .e { font: .7rem var(--sc-font-mono); color: var(--ink-3); }
.sev { font: 600 .66rem var(--sc-font-mono); padding: .18rem .4rem; border-radius: 5px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.proof { border-radius: 10px; border: 1px solid var(--line-2); background: #07080d; overflow: hidden; font-size: .8rem; }
.proof__path { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line); font: .74rem var(--sc-font-mono); color: var(--ink-2); }
.proof__body { padding: .7rem .75rem; display: grid; gap: .4rem; }
.proof__t { font-weight: 600; }
.proof__d { color: var(--ink-3); line-height: 1.5; font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proof__fix { display: inline-flex; gap: .4rem; align-items: center; font: .72rem var(--sc-font-mono); color: var(--good); }
.proof__fix svg { width: 13px; height: 13px; }

/* Short desktop screens: parts that are not being read fold to their label. */
@media (min-width: 901px) and (max-height: 880px) {
  .rep__part:not(.on):not(.rep__score) { max-height: 2.35rem; overflow: hidden; opacity: .5; }
  .rep__part { transition: opacity .45s var(--ease), background .45s, max-height .5s var(--ease); max-height: 30rem; }
  .anat__steps li { padding-block: .5rem; }
}

@media (max-width: 900px) {
  .anat { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-content: center; }
  .anat__copy h2 { font-size: 1.7rem; }
  .anat__steps { margin: 1rem 0 .4rem; }
  .anat__steps li { display: none; padding-top: .5rem; padding-bottom: .5rem; }
  .anat__steps li.on { display: block; }
  #anat-open { display: none; }
  .rep__part:not(.on) { display: none; }
  .rep__part { opacity: 1; }
  .areas { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- tools */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .9rem; margin-top: 2.2rem; }
.tool { padding: 1.15rem; display: flex; flex-direction: column; gap: .65rem; border-radius: 16px; }
.tool p { margin: 0; color: var(--ink-2); font-size: .86rem; line-height: 1.55; }
.tool input { width: 100%; min-width: 0; background: #07080d; border: 1px solid var(--line-2); border-radius: 9px; color: var(--ink); font: .84rem var(--sc-font-mono); padding: .6rem .7rem; outline: 0; }
.tool input:focus { border-color: #53e0ff77; }
.tool input::placeholder { color: var(--ink-4); font-family: var(--sc-font-text); }
.tool .btn { align-self: flex-start; margin-top: auto; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .4rem; align-items: center; }
.pair span { font-size: .72rem; color: var(--ink-3); }
.badge-out { display: flex; gap: .6rem; align-items: center; padding: .6rem .7rem; border-radius: 9px; background: #07080d; border: 1px solid var(--line-2); margin-top: auto; min-width: 0; }
.badge-out img { flex: none; }
.badge-out code { flex: 1; min-width: 0; font-size: .68rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan { color: var(--ink-3) !important; font-size: .76rem !important; }

/* ---------------------------------------------------------------- method */
.bands { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .74rem; color: var(--ink-3); }
.bands span { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .55rem .3rem .3rem; border: 1px solid var(--line-2); border-radius: 8px; }
.wbar { display: flex; gap: 3px; height: 14px; margin: 2.2rem 0 1.4rem; }
.wbar i { flex: var(--w); background: var(--c); border-radius: 3px; opacity: .85; transition: opacity .2s, transform .2s; }
.wbar i.hl { opacity: 1; transform: scaleY(1.5); }
.areas-ref { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: .2rem 2.2rem; }
.areas-ref li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.areas-ref li::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); transform: translateY(1px); }
.areas-ref b { font-weight: 600; font-size: .92rem; }
.areas-ref p { margin: .25rem 0 0; color: var(--ink-3); font-size: .82rem; line-height: 1.5; }
.areas-ref .w { font: .8rem var(--sc-font-mono); color: var(--ink-2); }
.method__more { display: flex; gap: 1.6rem; margin: 2rem 0 0; }

/* ---------------------------------------------------------------- close + foot */
.close { padding: clamp(4rem, 12vh, 7rem) 0 clamp(4rem, 10vh, 6rem); position: relative; z-index: 1; }
.close__inner { display: grid; justify-items: center; text-align: center; gap: 1.6rem; }
.cmd--close { margin: 0; width: min(100%, 34rem); }
.cmd--close .cmd__box { padding-left: 1rem; }
.foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2.2rem; position: relative; z-index: 1; }
.foot__row { display: flex; gap: 1.3rem; flex-wrap: wrap; align-items: center; font-size: .76rem; color: var(--ink-3); }
.foot__row a { text-decoration: none; } .foot__row a:hover { color: var(--ink); }
.foot__row > span:first-child { color: var(--ink); }
.foot__note { margin-left: auto; }
@media (max-width: 760px) { .foot__note { margin-left: 0; width: 100%; } }

@media (max-width: 560px) {
  .cmd__sign { display: none; }
  .cmd__kbd { display: none; }
  .hero { padding-top: calc(56px + 2rem); }
  .inst__ring { width: min(100%, 240px); }
  .rep__score { grid-template-columns: auto auto; }
  .rep__verdict { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .inst__live i { animation: none; }
  .inst__pager button[aria-current="true"] i { animation: none; width: 100%; }
  .rep__part { opacity: 1; }
  .rep .areas .m i { transform: none !important; }
}
