/* ============================================================
   SW 품질구매 멘토링 아카이브 — design system
   Direction: "engineering ledger" — ink navy rail, warm paper
   canvas, hairline rules, electric blue + vermillion signals.
   ============================================================ */

:root {
  --ink: #0c1824;
  --ink-2: #1b3145;
  --ink-3: #456072;
  --paper: #f4f1ea;
  --paper-2: #ece7dd;
  --paper-3: #fbf9f4;
  --line: rgba(12, 24, 36, 0.13);
  --line-strong: rgba(12, 24, 36, 0.28);
  --blue: #1f4fff;
  --blue-deep: #0d2a63;
  --blue-soft: #e5ebff;
  --signal: #cf3a1e;
  --signal-soft: #fdeae4;
  --ok: #0b7157;
  --ok-soft: #e0f2eb;
  --amber: #a9670a;
  --amber-soft: #fbeed6;
  --slate: #475569;

  --role-buy: #0d6f6a;
  --role-dev: #1f4fff;
  --role-qa: #b4460f;
  --role-ssdp: #44546a;

  --font-ui: "Pretendard Variable", Pretendard, "Malgun Gothic", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  --font-display: Bahnschrift, "Archivo Narrow", "Segoe UI Variable Display", "Pretendard Variable", Pretendard, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, monospace;

  --shadow-1: 0 1px 0 rgba(12, 24, 36, 0.06);
  --shadow-2: 0 2px 4px rgba(12, 24, 36, 0.05), 0 12px 28px -18px rgba(12, 24, 36, 0.4);
  --shadow-3: 0 30px 60px -30px rgba(12, 24, 36, 0.45);

  --rail-w: 272px;
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }


html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- typography helpers ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
h1 { font-size: clamp(30px, 3.4vw, 44px); }
h2 { font-size: clamp(22px, 2.2vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 15px; letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- app shell ---------- */

.shell { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  background: var(--ink);
  color: #e8e4da;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #000;
}
.rail__brand {
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}
.rail__brand .mark {
  width: 26px; height: 26px;
  border: 1.5px solid #e8e4da;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  margin-bottom: 14px;
  position: relative;
}
.rail__brand .mark::after {
  content: ""; position: absolute; inset: 4px -4px -4px 4px;
  border-right: 1px solid rgba(232, 228, 218, 0.4);
  border-bottom: 1px solid rgba(232, 228, 218, 0.4);
  z-index: -1;
}
.rail__brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.4;
}
.rail__brand span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(232, 228, 218, 0.55);
  text-transform: uppercase;
}

.rail__nav { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.rail__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
  color: rgba(232, 228, 218, 0.72);
  border-radius: var(--radius);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.rail__nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.rail__nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.rail__nav a[aria-current="page"] .idx { color: var(--blue); }
.rail__nav .idx { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: rgba(232, 228, 218, 0.4); width: 18px; }

.rail__people { flex: 1; overflow: auto; padding: 16px 8px 40px; scrollbar-width: thin; }
.rail__people::-webkit-scrollbar { width: 6px; }
.rail__people::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); }
.rail__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: rgba(232, 228, 218, 0.4);
  padding: 0 10px 6px;
  text-transform: uppercase;
}
.person-link {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5.5px 10px;
  border-radius: var(--radius);
  color: rgba(232, 228, 218, 0.78);
  font-size: 12.5px;
  transition: background 0.15s var(--ease);
}
.person-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.person-link[aria-current="page"] { background: #fff; color: var(--ink); }
.person-link .n { font-family: var(--font-display); font-size: 11px; color: rgba(232, 228, 218, 0.45); }
.person-link[aria-current="page"] .n { color: var(--blue); }
.person-link .dotrole { width: 5px; height: 5px; border-radius: 50%; background: #6b7f92; }
.person-link[aria-current="page"] .dotrole { opacity: 0.9; }

.rail__foot {
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(232, 228, 218, 0.65);
}
.rail__foot .who { display: flex; align-items: center; gap: 8px; }
.rail__foot .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 11px; color: #fff;
}
.linkbtn {
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 12px; padding: 4px 6px; border-radius: 2px;
  text-decoration: underline; text-underline-offset: 3px;
}
.linkbtn:hover { color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px 40px;
  display: flex; align-items: center; gap: 18px;
  min-height: 58px;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.45; }
.crumbs strong { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.page { padding: 34px 40px 80px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ---------- buttons / pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-3);
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(12, 24, 36, 0.05); border-color: var(--ink); color: var(--ink); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.progress { background: var(--blue-soft); color: #123a9c; }
.pill.needs-work { background: var(--amber-soft); color: #7a4a05; }
.pill.nodata { background: #eceae4; color: #5c6057; }
.pill.high { background: var(--signal-soft); color: #9c2a13; }
.pill.mid { background: var(--amber-soft); color: #7a4a05; }
.pill.low { background: #eceae4; color: #5c6057; }
.pill.ok { background: var(--ok-soft); color: #075442; }
.pill.outline { background: transparent; border-color: var(--line-strong); color: var(--ink-3); }

.role {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}
.role::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dot, #999); }
.role[data-role="구매"] { --dot: var(--role-buy); }
.role[data-role="개발"] { --dot: var(--role-dev); }
.role[data-role="품질"] { --dot: var(--role-qa); }
.role[data-role="품질개선"] { --dot: var(--role-qa); }
.role[data-role="SSDP"] { --dot: var(--role-ssdp); }

/* ---------- cards / panels ---------- */

.card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  min-width: 0;
  box-shadow: var(--shadow-1);
}
.card--pad-lg { padding: 28px 30px; }
.card--ink { background: var(--ink); color: #e8e4da; border-color: var(--ink); }
.card--ink h3, .card--ink h4 { color: #fff; }
.card--ink .mono, .card--ink .muted { color: rgba(232, 228, 218, 0.55); }

.panel-title {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-title h3 { font-size: 16px; }
.panel-title .mono { margin-left: auto; }

.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.main-aside { grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.9fr); align-items: start; }

/* ---------- login ---------- */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  position: relative;
  z-index: 1;
}
.login__stage {
  background: var(--ink);
  color: #efece3;
  padding: 56px clamp(32px, 5vw, 84px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
}
.login__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 78%);
}
.login__stage::after { display: none; }
.login__stage::after {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -320px; bottom: -320px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.02), 0 0 0 61px rgba(255, 255, 255, 0.08);
}
.login__brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.login__brand .brand-logo { height: 32px; width: auto; display: block; }
.login__brand .mark {
  width: 34px; height: 34px; border: 1.5px solid currentColor;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 15px;
}
.login__brand .txt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; line-height: 1.5; }
.login__headline { position: relative; z-index: 2; margin: auto 0 0; max-width: 37em; }
.login__headline::before {
  content: "";
  position: absolute;
  inset: -44px -70px -44px -90px;
  z-index: -1;
  background: radial-gradient(62% 68% at 26% 54%, rgba(9, 20, 32, 0.82), rgba(9, 20, 32, 0) 72%);
  pointer-events: none;
}
.login__headline .kicker {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.22em;
  color: #8fa6bb; text-transform: uppercase; margin-bottom: 22px;
}
.login__headline h1 {
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 800;
}

/* AI LLM focus strip */
.login__focus {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 14px;
  position: relative;
  isolation: isolate;
  animation: rise 0.9s 0.28s var(--ease) both;
}
.login__focus::before {
  content: "";
  position: absolute;
  inset: -18px -22px -10px -22px;
  z-index: -1;
  background: radial-gradient(48% 90% at 26% 55%, rgba(31, 79, 255, 0.22), rgba(31, 79, 255, 0) 72%);
  pointer-events: none;
}
.login__focus::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 160, 255, 0), rgba(127, 160, 255, 0.85), rgba(127, 160, 255, 0));
  background-size: 220% 100%;
  animation: sweepLine 6s linear infinite;
}
.focus-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9db7ff;
  text-transform: uppercase;
  margin-right: 2px;
}
.focus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fa0ff;
  box-shadow: 0 0 0 0 rgba(127, 160, 255, 0.55);
  animation: focusPulse 2.4s ease-out infinite;
}
.focus-chip {
  position: relative;
  overflow: hidden;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #e9eef7;
  animation: rise 0.8s var(--ease) both;
}
.focus-chip.c1 { animation-delay: 0.34s; }
.focus-chip.c2 { animation-delay: 0.42s; }
.focus-chip.c3 { animation-delay: 0.5s; }
.focus-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(127, 160, 255, 0.38) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: chipSheen 7s ease-in-out infinite;
}
.focus-chip.c2::before { animation-delay: 1.1s; }
.focus-chip.c3::before { animation-delay: 2.2s; }
.focus-chip--accent {
  border-color: rgba(127, 160, 255, 0.5);
  background: rgba(31, 79, 255, 0.2);
  color: #fff;
  box-shadow: 0 0 24px -8px rgba(31, 79, 255, 0.7);
}
@keyframes focusPulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 160, 255, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(127, 160, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 160, 255, 0); }
}
@keyframes chipSheen {
  0%, 55% { transform: translateX(-130%); }
  78%, 100% { transform: translateX(130%); }
}
@keyframes sweepLine {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}


/* kinetic headline */
.hl-title .hl-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.02em;
}
.hl-title .hl-text {
  display: inline-block;
  transform: translateY(118%);
  animation: hlRise 0.95s cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}
.hl-title .hl-line:nth-child(1) .hl-text { animation-delay: 0.16s; }
.hl-title .hl-line:nth-child(2) .hl-text { animation-delay: 0.34s; }
.hl-line--accent { position: relative; }
.hl-line--accent .hl-text {
  background: linear-gradient(100deg, #6f8cff 0%, #c8d5ff 30%, #7fa0ff 58%, #5f86ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: hlRise 0.95s 0.34s cubic-bezier(0.2, 0.75, 0.25, 1) forwards,
             sheen 9s 1.3s linear infinite;
}
.hl-line--accent::before {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.2em;
  height: 0.3em;
  background: linear-gradient(90deg, rgba(31, 79, 255, 0), rgba(31, 79, 255, 0.28) 20%, rgba(31, 79, 255, 0.1) 60%, rgba(31, 79, 255, 0));
  transform: scaleX(0);
  transform-origin: left center;
  animation: hlSweep 7.5s 1.35s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  z-index: -1;
  pointer-events: none;
}
.hl-line--accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 160, 255, 0.95), rgba(127, 160, 255, 0));
  transform: scaleX(0);
  transform-origin: left center;
  animation: hlUnderline 1.5s 1.05s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  pointer-events: none;
}
@keyframes hlRise {
  to { transform: translateY(0); }
}
@keyframes hlSweep {
  0% { transform: scaleX(0); opacity: 0; }
  10% { opacity: 1; }
  32% { transform: scaleX(1); opacity: 1; }
  55% { transform: scaleX(1); opacity: 0.85; }
  72% { transform: scaleX(1); opacity: 0; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes hlUnderline {
  to { transform: scaleX(1); }
}

.login__headline h1 em { font-style: normal; color: #7fa0ff; }
.login__headline p { margin-top: 22px; max-width: 30em; color: rgba(239, 236, 227, 0.68); font-size: 15px; }
.login__stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 22px; gap: 18px; max-width: 560px;
}
.login__stats .n { font-family: var(--font-display); font-size: 30px; line-height: 1; color: #fff; }
.login__stats .l { font-size: 11.5px; color: rgba(239, 236, 227, 0.55); margin-top: 6px; }

.login__form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 40px clamp(24px, 4vw, 64px);
  background: var(--paper);
}
.login__form { width: 100%; max-width: 392px; }
.login__form .kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }
.login__form h2 { font-size: 30px; margin: 12px 0 6px; }
.login__form .lead { color: var(--ink-3); font-size: 14px; margin-bottom: 30px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 7px; letter-spacing: 0.01em; }
.field .inputwrap { position: relative; }
.field input {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input::placeholder { color: #9aa4ad; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 255, 0.14); }
.field .toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--ink-3);
  font-size: 11px; padding: 8px; letter-spacing: 0.06em;
}
.field .toggle:hover { color: var(--ink); }
.login__row { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 22px; font-size: 12.5px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-3); }
.check input { accent-color: var(--blue); width: 14px; height: 14px; }
.alert {
  display: none;
  padding: 11px 13px;
  background: var(--signal-soft);
  border-left: 2px solid var(--signal);
  color: #8f2a15;
  font-size: 12.5px;
  margin-bottom: 16px;
}
.alert.show { display: block; animation: shake 0.3s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.login__hint {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3); line-height: 1.7;
}
.login__hint code {
  font-family: var(--font-mono); font-size: 11px; background: var(--paper-2);
  padding: 1px 5px; border-radius: 2px; color: var(--ink-2);
}
.login__partner { display: inline-flex; margin-top: 18px; opacity: 0.72; transition: opacity 0.2s var(--ease); }
.login__partner:hover, .login__partner:focus-visible { opacity: 1; }
.login__partner img { height: 24px; width: auto; display: block; }
.login__foot { margin-top: 34px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: #8b9199; text-transform: uppercase; }

/* live mentoring status — deliberately small */
.login__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: -14px 0 24px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.005em;
}
.login__live strong { color: var(--ink); font-weight: 700; }
.login__live-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(11, 113, 87, 0.42); }
  70% { box-shadow: 0 0 0 7px rgba(11, 113, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(11, 113, 87, 0); }
}

/* ---------- login · HMC purchasing team network ---------- */

.login__teams {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  margin-top: 38px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  animation: rise 0.8s 0.45s var(--ease) both;
}
.login__teams::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, rgba(127, 160, 255, 0.95), rgba(127, 160, 255, 0));
}
.login__teams-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lt-title {
  margin: 0;
  color: #e7edf7;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lt-title span { margin-left: 5px; color: #8fa6bb; font-weight: 500; }
.lt-meta {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  color: #7f93a6;
  white-space: nowrap;
}
.lt-map { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.lt-map text { font-family: var(--font-ui); }
.lt-hub-glow { fill: rgba(31, 79, 255, 0.26); filter: blur(18px); }
.lt-hub-core { fill: #12263a; stroke: rgba(255, 255, 255, 0.32); stroke-width: 1; }
.lt-hub-ring {
  fill: none;
  stroke: rgba(127, 160, 255, 0.42);
  stroke-width: 1;
  stroke-dasharray: 3 6;
  transform-origin: 60px 110px;
  animation: orbSpin 48s linear infinite;
}
.lt-hub-ring--inner {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-dasharray: 14 8;
  transform-origin: 60px 110px;
  animation: orbSpinRev 34s linear infinite;
}
.lt-hub-title { fill: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: -0.03em; text-anchor: middle; }
.lt-hub-sub { fill: #9db2c5; font-size: 6.2px; letter-spacing: 0.02em; text-anchor: middle; }
.lt-rule { stroke: rgba(255, 255, 255, 0.13); stroke-width: 1; }
.lt-col-title { fill: #e7edf7; font-size: 8.3px; font-weight: 700; letter-spacing: -0.01em; }
.lt-col-count { fill: var(--c); font-family: var(--font-mono); font-size: 7px; font-weight: 600; }
.lt-col-dot { fill: var(--c); opacity: 0.9; }
.lt-team { fill: rgba(223, 230, 245, 0.9); font-size: 9.2px; font-weight: 500; letter-spacing: -0.01em; }
.lt-link {
  fill: none;
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-dasharray: 2 7;
  animation: ltFlow 13s linear infinite;
}
.lt-node { filter: drop-shadow(0 0 3px rgba(127, 160, 255, 0.55)); }
.lt-halo { fill: none; stroke-width: 0.8; animation: ltPulse 5.4s ease-out infinite; }
@keyframes ltFlow { to { stroke-dashoffset: -180; } }
@keyframes ltPulse {
  0% { opacity: 0.8; r: 3; }
  70% { opacity: 0; r: 9; }
  100% { opacity: 0; r: 9; }
}
.login__teams-mobile { display: none; }
@media (max-width: 1279px) {
  .login__teams { max-width: none; margin-top: 26px; }
  .lt-map { display: none; }
  .login__teams-mobile { display: block; margin-top: 12px; }
  .ltm-details { border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .ltm-details > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    color: #dfe6f5;
    font-size: 10.5px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }
  .ltm-details > summary::-webkit-details-marker { display: none; }
  .ltm-details > summary::marker { content: ""; }
  .ltm-details > summary:focus-visible { outline: 1px solid rgba(127, 160, 255, 0.8); outline-offset: 2px; }
  .ltm-summary-label { white-space: nowrap; }
  .ltm-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    color: #9db2c5;
    font-family: var(--font-mono);
    font-size: 8.5px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .ltm-chips span { display: inline-flex; align-items: center; gap: 4px; }
  .ltm-chips i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
  .ltm-toggle {
    color: #8fa6bb;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1;
    transition: transform 0.2s var(--ease);
  }
  .ltm-details[open] .ltm-toggle { transform: rotate(45deg); }
  .ltm-groups { display: grid; gap: 14px; margin-top: 10px; padding-bottom: 2px; }
  .ltm-head {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #dfe6f5;
    font-size: 10.5px;
    font-weight: 700;
  }
  .ltm-head i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c);
    animation: ltmPulse 4.2s ease-in-out infinite;
  }
  .ltm-group:nth-child(2) .ltm-head i { animation-delay: 0.8s; }
  .ltm-group:nth-child(3) .ltm-head i { animation-delay: 1.6s; }
  .ltm-head b {
    margin-left: auto;
    color: #8fa6bb;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }
  .ltm-group ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 12px;
    margin: 7px 0 0;
    padding: 0;
  }
  .ltm-group li {
    position: relative;
    min-width: 0;
    padding-left: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(223, 230, 245, 0.82);
    font-size: 10.5px;
    line-height: 1.55;
  }
  .ltm-group li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--c);
    opacity: 0.85;
  }
}
@media (min-width: 620px) and (max-width: 1279px) {
  .ltm-details > summary { display: none; }
  .ltm-groups { margin-top: 0; }
  .ltm-group ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 619px) {
  .lt-meta-count { display: none; }
}
@keyframes ltmPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}


/* ---------- login motion graphic ---------- */

.login__motion {
  position: absolute;
  right: -80px;
  top: -240px;
  width: clamp(440px, 36vw, 560px);
  aspect-ratio: 1 / 1;
  z-index: 1;
  pointer-events: none;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: transform;
  opacity: 0.45;
}
.orb { width: 100%; height: 100%; overflow: visible; }
.orb__grid circle, .orb__grid ellipse { fill: none; stroke: rgba(255, 255, 255, 0.11); stroke-width: 1; }
.orb__grid { transform-origin: 360px 360px; animation: orbSpin 150s linear infinite; }
.orb__spin-slow { transform-origin: 360px 360px; animation: orbSpin 70s linear infinite; }
.orb__spin-rev { transform-origin: 360px 360px; animation: orbSpinRev 46s linear infinite; }
.orb__dash { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; stroke-dasharray: 3 9; }
.orb__ring { fill: none; stroke: url(#orbRing); stroke-width: 1.4; }
.orb__flow path {
  fill: none;
  stroke: url(#orbRing);
  stroke-width: 1.3;
  stroke-dasharray: 5 11;
  animation: dashFlow 14s linear infinite;
}
.orb__flow path:nth-child(2) { animation-duration: 19s; animation-direction: reverse; }
.orb__dot { fill: #9db7ff; opacity: 0.9; }
.orb__halo { fill: none; stroke: #7fa0ff; stroke-width: 1; animation: nodePulse 4.2s ease-out infinite; }

.login__headline .kicker { animation: rise 0.8s var(--ease) both; }
.login__headline h1 { animation: rise 0.9s 0.08s var(--ease) both; }
.login__headline p { animation: rise 0.9s 0.18s var(--ease) both; }
.login__headline h1 em {
  background: linear-gradient(100deg, #6f8cff 0%, #b9caff 32%, #7fa0ff 58%, #5f86ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}

@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbSpinRev { to { transform: rotate(-360deg); } }
@keyframes dashFlow { to { stroke-dashoffset: -320; } }
@keyframes nodePulse {
  0% { r: 2; opacity: 0.85; }
  70% { r: 9; opacity: 0; }
  100% { r: 9; opacity: 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sheen {
  from { background-position: 0% 50%; }
  to { background-position: 220% 50%; }
}

@media (max-width: 900px) {
  .login__motion { display: none; }
}


/* ---------- participating team map ---------- */
.team-map {
  position: relative;
  overflow: hidden;
  background: #0c1824;
  border: 1px solid #0c1824;
  padding: 26px 30px 16px;
  margin-bottom: 26px;
  color: #e8e4da;
}
.team-map::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 18% 45%, #000 0%, transparent 70%);
}
.team-map__head { position: relative; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.team-map h2 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.03em; }
.tm-count { font-family: var(--font-display); color: #7fa0ff; font-size: 0.78em; margin-left: 4px; }
.tm-sub { margin-top: 8px; max-width: 54em; font-size: 12.5px; line-height: 1.65; color: rgba(232, 228, 218, 0.62); }
.tm-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tm-legend-item { display: inline-flex; gap: 7px; align-items: center; font-size: 11px; color: rgba(232, 228, 218, 0.75); white-space: nowrap; }
.tm-legend-item i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.teammap-wrap { position: relative; margin-top: 4px; overflow-x: auto; }
.teammap { width: 100%; min-width: 980px; height: auto; display: block; }
.teammap text { font-family: var(--font-ui); }
.tm-hub-core { fill: #12263a; stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.tm-hub-glow { fill: rgba(31, 79, 255, 0.18); filter: blur(26px); }
.tm-hub-ring { fill: none; stroke: rgba(127, 160, 255, 0.38); stroke-dasharray: 3 7; transform-origin: 118px 218px; animation: orbSpin 40s linear infinite; }
.tm-hub-title { fill: #fff; font-size: 14px; font-weight: 700; text-anchor: middle; }
.tm-hub-sub { fill: #8fa6bb; font-size: 9px; text-anchor: middle; }
.tm-col-title { fill: #fff; font-size: 14px; font-weight: 700; }
.tm-col-count { fill: #7fa0ff; font-size: 12px; font-weight: 700; }
.tm-col-rule { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.tm-team { fill: #dfe6f5; font-size: 13.2px; font-weight: 600; letter-spacing: -0.01em; }
.tm-person { fill: #93a9bd; font-size: 10.2px; }
.tm-link { fill: none; stroke-width: 1; opacity: 0.35; stroke-dasharray: 4 9; animation: tmDash 9s linear infinite; }
.tm-node { filter: drop-shadow(0 0 4px rgba(127, 160, 255, 0.5)); }
.tm-halo { fill: none; stroke-width: 1; animation: tmPulse 4.6s ease-out infinite; }
@keyframes tmDash { to { stroke-dashoffset: -130; } }
@keyframes tmPulse {
  0% { r: 4; opacity: 0.85; }
  70% { r: 15; opacity: 0; }
  100% { r: 15; opacity: 0; }
}
.tm-fallback { display: none; }
.tm-note { margin-top: 10px; font-size: 11px; color: rgba(232, 228, 218, 0.58); }
@media (max-width: 900px) {
  .teammap-wrap { display: none; }
  .tm-fallback { display: grid; gap: 16px; margin-top: 16px; }
  .tm-fb-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #fff; }
  .tm-fb-head i { width: 7px; height: 7px; border-radius: 50%; }
  .tm-fb-group ul { list-style: none; margin: 8px 0 0; padding: 0; }
  .tm-fb-group li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; }
  .tm-fb-team { color: #dfe6f5; }
  .tm-fb-person { color: #8fa6bb; font-size: 10.5px; white-space: nowrap; }
}

/* ---------- dashboard hero ---------- */

.hero {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-3);
  padding: 34px 36px 26px;
  overflow: hidden;
  margin-bottom: 26px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.5;
  mask-image: linear-gradient(105deg, transparent 40%, #000 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr); gap: 34px; align-items: end; }
.hero h1 { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -0.045em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede { margin-top: 16px; max-width: 44em; color: var(--ink-2); font-size: 14.5px; }
.hero__meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero__stamp {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--ink-3); text-transform: uppercase;
  border-left: 1px solid var(--line-strong); padding-left: 12px;
}

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--paper-3); margin-bottom: 26px; }
.kpi { padding: 20px 22px 18px; border-right: 1px solid var(--line); position: relative; }
.kpi:last-child { border-right: 0; }
.kpi .k {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.01em; color: var(--ink-3); display: block; margin-bottom: 10px;
  text-transform: none;
}
.kpi .v { font-family: var(--font-display); font-size: 38px; line-height: 0.95; letter-spacing: -0.03em; display: flex; align-items: baseline; gap: 6px; }
.kpi .v small { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.kpi .s { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); }
.kpi.signal .v { color: var(--signal); }

/* ---------- person cards ---------- */

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }

.pcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 20px 22px 18px;
  min-height: 210px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.pcard__top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pcard__n {
  font-family: var(--font-display); font-size: 12px; color: var(--ink-3);
  border: 1px solid var(--line-strong); padding: 1px 6px; letter-spacing: 0.04em;
}
.pcard__name { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.pcard__role { margin-left: auto; }
.pcard__topic {
  font-size: 13px; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}
.pcard__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard__spark { display: flex; gap: 2px; align-items: flex-end; height: 18px; margin-left: auto; }
.pcard__spark i { width: 3px; background: var(--line-strong); display: block; }
.pcard__spark i.on { background: var(--blue); }
.pcard__spark i.part { background: #9db0ff; }

/* ---------- coverage ---------- */

.cov { display: inline-flex; gap: 3px; align-items: center; }
.cov i { width: 7px; height: 7px; border-radius: 50%; background: #d9d5cc; display: block; }
.cov i.full { background: var(--ok); }
.cov i.part { background: var(--amber); }
.cov i.none { background: #cfcabf; }

.meter { height: 4px; background: var(--paper-2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--blue); transform-origin: left; }
.meter.ok > span { background: var(--ok); }
.meter.warn > span { background: var(--amber); }
.meter.sig > span { background: var(--signal); }

/* ---------- tables ---------- */

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 500; padding: 0 12px 9px; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(12, 24, 36, 0.025); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl a.name { font-weight: 650; border-bottom: 1px solid transparent; }
.tbl a.name:hover { border-color: currentColor; }

.matrix { border-collapse: separate; border-spacing: 2px; font-size: 12px; width: 100%; }
.matrix th {
  font-family: var(--font-ui); font-size: 10.5px; letter-spacing: 0.01em; color: var(--ink-3);
  font-weight: 600; padding: 4px; text-align: center; vertical-align: bottom; text-transform: none;
}
.matrix th.rowhead { text-align: left; padding-left: 8px; white-space: nowrap; }
.matrix td { text-align: center; padding: 5px 4px; border-radius: 2px; font-family: var(--font-display); font-size: 11px; }
.matrix td.full { background: #d9eee5; color: #075442; }
.matrix td.part { background: #f6e7c9; color: #7a4a05; }
.matrix td.none { background: #eceae4; color: #8a8579; }
.matrix tr:hover td.rowhead { color: var(--blue); }

/* ---------- person page ---------- */

.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; margin-bottom: 28px; }
.profile-head .idline { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.profile-head .projno {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.06em;
  background: var(--ink); color: var(--paper-3); padding: 3px 8px;
}
.profile-head h1 { font-size: clamp(30px, 3.4vw, 44px); }
.profile-head .topic { margin-top: 10px; font-size: 15px; color: var(--ink-2); max-width: 46em; }
.profile-head .oneliner {
  margin-top: 16px; padding-left: 14px; border-left: 2px solid var(--blue);
  font-size: 13.5px; color: var(--ink-2);
}
.maturity-box { border: 1px solid var(--line); background: var(--paper-3); padding: 18px 20px; }
.card .maturity-box { border: 0; background: transparent; padding: 0; }
.maturity-box .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.maturity-box .row:last-child { margin-bottom: 0; }
.maturity-box .label { font-size: 11.5px; color: var(--ink-3); }
.maturity-box .score { font-family: var(--font-display); font-size: 13px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-strong); margin: 10px 0 26px; overflow-x: auto; }
.tabs button {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; white-space: nowrap; letter-spacing: -0.01em;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tabpanel[hidden] { display: none; }

.axis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.axis { border-top: 2px solid var(--ink); padding-top: 16px; }
.axis .axis-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.axis .axis-h .no { font-family: var(--font-mono); font-size: 10px; color: var(--blue); letter-spacing: 0.1em; }
.axis .axis-h h3 { font-size: 16px; }
.axis .axis-h .en { margin-left: auto; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }

.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.item-list li:last-child { border-bottom: 0; }
.item-list .st { font-size: 13.5px; font-weight: 600; line-height: 1.55; letter-spacing: -0.015em; }
.item-list .ev { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); line-height: 1.6; padding-left: 10px; border-left: 1px solid var(--line-strong); }
.item-list .meta-row { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--line);
  padding: 2px 5px; border-radius: 2px;
}
.tag.blue { color: #123a9c; border-color: #c3d0ff; background: var(--blue-soft); }
.tag.sig { color: #9c2a13; border-color: #f3c9be; background: var(--signal-soft); }
.tag.ok { color: #075442; border-color: #bfe3d7; background: var(--ok-soft); }

.perspective { border-left: 1px solid var(--line); padding-left: 20px; }
.perspective .big { font-size: 20px; font-weight: 750; letter-spacing: -0.03em; margin: 4px 0 2px; }
.perspective .sec { font-size: 12.5px; color: var(--ink-3); }
.perspective p { margin-top: 14px; font-size: 13.5px; }

.aspect-row { display: grid; grid-template-columns: 130px 76px 1fr; gap: 14px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.aspect-row:last-child { border-bottom: 0; }
.aspect-row .nm { font-size: 12.5px; font-weight: 650; }
.aspect-row .note { font-size: 12px; color: var(--ink-3); line-height: 1.6; }

/* solution */
.solution-band {
  background: var(--ink); color: #e9e5db; padding: 30px 34px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px;
  position: relative; overflow: hidden;
}
.solution-band::after {
  content: ""; position: absolute; right: -100px; top: -100px; width: 320px; height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%;
}
.solution-band h2 { font-size: 30px; letter-spacing: -0.035em; color: #fff; }
.solution-band .tagline { margin-top: 10px; font-size: 14px; color: rgba(233, 229, 219, 0.72); max-width: 40em; }
.solution-band .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.solution-band .meta .pill { border-color: rgba(255, 255, 255, 0.25); color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.06); }
.solution-band .side { border-left: 1px solid rgba(255, 255, 255, 0.16); padding-left: 26px; }
.solution-band .side .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.45); text-transform: uppercase; }
.solution-band .side .v { font-size: 13px; margin-top: 6px; color: rgba(255, 255, 255, 0.9); }

.as-is-to-be { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 0; align-items: stretch; }
.as-is-to-be .box { padding: 20px 22px; background: var(--paper-3); border: 1px solid var(--line); }
.as-is-to-be .box.to { background: var(--blue-soft); border-color: #c9d5ff; }
.as-is-to-be .box .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.as-is-to-be .arrow { display: grid; place-items: center; color: var(--ink-3); font-size: 16px; }

.rules { counter-reset: r; list-style: none; margin: 0; padding: 0; }
.rules li { display: grid; grid-template-columns: 58px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rules li:last-child { border-bottom: 0; }
.rules .rid { font-family: var(--font-mono); font-size: 11px; color: var(--blue); letter-spacing: 0.06em; padding-top: 2px; }
.rules .rt { font-size: 13px; line-height: 1.6; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.flow li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.flow li:last-child { border-bottom: 0; }
.flow .n { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); padding-top: 2px; }

.metric-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.metric { border: 1px solid var(--line); padding: 12px 14px; background: var(--paper-3); }
.metric .k { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.metric .v { font-size: 12.5px; font-weight: 600; margin-top: 3px; line-height: 1.55; }

.toolcard { display: block; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease); }
.toolcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.toolcard .cta { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--blue); letter-spacing: -0.01em; }

/* artifacts */
.artifact { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.artifact:last-child { border-bottom: 0; }
.artifact .kind {
  flex: 0 0 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em;
  color: var(--ink-2); background: var(--paper);
}
.artifact .kind.web { border-color: #b9c8ff; color: #123a9c; background: var(--blue-soft); }
.artifact .kind.excel { border-color: #bfe3d7; color: #075442; background: var(--ok-soft); }
.artifact .kind.doc { border-color: var(--line-strong); }
.artifact .info { min-width: 0; flex: 1; }
.artifact .nm { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artifact .ds { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.artifact .act { display: flex; gap: 6px; flex: 0 0 auto; }

.viewer { border: 1px solid var(--line-strong); background: #fff; margin-top: 16px; }
.viewer__bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-size: 11.5px; }
.viewer iframe { width: 100%; height: 640px; border: 0; display: block; background: #fff; }

/* timeline / updates */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--line-strong); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -23px; top: 6px; width: 9px; height: 9px;
  background: var(--paper); border: 1.5px solid var(--ink-3); border-radius: 50%;
}
.timeline li.done::before { background: var(--blue); border-color: var(--blue); }
.timeline li.warn::before { background: var(--amber); border-color: var(--amber); }
.timeline .when { font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink-3); }
.timeline .what { font-size: 13px; margin-top: 3px; }

.composer { border: 1px solid var(--line); background: var(--paper-3); padding: 16px; }
.composer label { display: block; font-size: 11.5px; font-weight: 600; margin-bottom: 6px; }
.composer textarea, .composer input, .composer select {
  width: 100%; font-family: inherit; font-size: 13px; padding: 9px 10px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink);
  border-radius: 2px; resize: vertical;
}
.composer textarea:focus, .composer input:focus, .composer select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 79, 255, 0.12); }
.composer .row { display: grid; grid-template-columns: 1fr 130px; gap: 10px; margin-bottom: 10px; }
.composer .actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.composer .note { font-size: 11px; color: var(--ink-3); }

.update-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.update-item:last-child { border-bottom: 0; }
.update-item .when { font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.update-item .body { font-size: 13px; margin-top: 3px; }
.update-item .del { float: right; }

/* misc */
.divider { height: 1px; background: var(--line); margin: 26px 0; }
.stack > * + * { margin-top: 16px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.callout { border-left: 2px solid var(--blue); background: var(--blue-soft); padding: 14px 16px; font-size: 13px; }
.callout.warn { border-color: var(--signal); background: var(--signal-soft); }
.empty { padding: 26px; text-align: center; color: var(--ink-3); font-size: 13px; border: 1px dashed var(--line-strong); }

.searchbox { position: relative; }
.searchbox input {
  width: 240px; padding: 8px 12px 8px 32px; font-size: 13px; font-family: inherit;
  border: 1px solid var(--line-strong); background: var(--paper-3); border-radius: var(--radius);
}
.searchbox::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 11px; height: 11px;
  border: 1.5px solid var(--ink-3); border-radius: 50%; transform: translateY(-60%);
}
.searchbox::after {
  content: ""; position: absolute; left: 20px; top: 50%; width: 5px; height: 1.5px;
  background: var(--ink-3); transform: rotate(45deg) translateY(1px);
}

.chipbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  padding: 5px 12px; font-size: 12px; border-radius: 999px; cursor: pointer;
  transition: all 0.15s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.fade-up { animation: fadeUp 0.5s var(--ease) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  :root { --rail-w: 232px; }
  .page { padding: 26px 24px 70px; }
  .topbar { padding: 10px 24px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-right: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .grid.main-aside { grid-template-columns: minmax(0, 1fr); }
  .profile-head { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .shell { display: block; }
  .topbar { gap: 10px; padding: 10px 14px; }
  .topbar__right { display: none; }
  .rail-toggle { white-space: nowrap; flex: 0 0 auto; }
  .crumbs { overflow: hidden; white-space: nowrap; }
  .crumbs strong { max-width: 46vw; }

  .rail {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    transform: translateX(-100%); transition: transform 0.25s var(--ease);
    width: 280px;
  }
  .rail.open { transform: translateX(0); box-shadow: 0 0 60px rgba(0,0,0,0.4); }
  .rail-toggle { display: inline-flex !important; }
  .login { grid-template-columns: 1fr; }
  .login__stage { min-height: auto; padding: 40px 28px; }
  .login__headline { margin: 28px 0; }
  .login__stats { display: none; }
  .axis-grid { grid-template-columns: 1fr; }
  .solution-band { grid-template-columns: minmax(0, 1fr); }
  .solution-band .side { border-left: 0; border-top: 1px solid rgba(255,255,255,0.16); padding-left: 0; padding-top: 18px; }
  .as-is-to-be { grid-template-columns: minmax(0, 1fr); }
  .as-is-to-be .arrow { transform: rotate(90deg); padding: 8px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi { border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .searchbox input { width: 160px; }
  .artifact { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .rail, .topbar, .tabs, .composer, .btn { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; }
  .card, .hero, .solution-band { break-inside: avoid; }
}

/* ---------------- deep-dive report ---------------- */
.report-wrap { max-width: 960px; margin: 0 auto; padding: 26px 0 12px; }
.report-kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; }
.report { color: var(--ink); }
.report h1 { margin: 8px 0 20px; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -0.02em; }
.report h2 { margin: 40px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 23px; line-height: 1.3; letter-spacing: -0.01em; }
.report h3 { margin: 26px 0 8px; font-size: 17.5px; line-height: 1.45; }
.report p { margin: 9px 0; font-size: 14.5px; line-height: 1.8; }
.report ul, .report ol { margin: 10px 0 16px; padding-left: 22px; }
.report li { margin: 5px 0; font-size: 14.5px; line-height: 1.75; }
.report li > ul, .report li > ol { margin: 6px 0; }
.report strong { font-weight: 700; }
.report code { font-family: var(--font-mono); font-size: 0.88em; padding: 1px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2); overflow-wrap: anywhere; }
.report pre { margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper-2); overflow-x: auto; }
.report pre code { border: 0; padding: 0; background: none; font-size: 12.5px; line-height: 1.6; }
.report .table-wrap { margin: 14px 0 18px; border: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.report table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
.report th, .report td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.report th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); white-space: nowrap; }
.report tbody tr:last-child td { border-bottom: 0; }
.report hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }
.report-foot { margin: 36px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.report-foot p { margin: 4px 0; }
@media (max-width: 720px) {
  .report-wrap { padding-top: 14px; }
  .report h1 { font-size: 27px; }
  .report h2 { font-size: 20px; margin-top: 32px; }
  .report p, .report li { font-size: 14px; }
}
