:root {
  --ink: #102235;
  --ink-2: #172f47;
  --slate: #56677a;
  --muted: #8391a0;
  --mist: #eef3f5;
  --paper: #f8fafb;
  --white: #ffffff;
  --line: #dce5e8;
  --teal: #18a99b;
  --teal-dark: #08796f;
  --aqua: #9ce7dc;
  --coral: #ee735e;
  --amber: #d49c31;
  --violet: #7569d6;
  --danger: #c44d58;
  --success: #2d936f;
  --shadow: 0 14px 38px rgba(16, 34, 53, .08);
  --radius: 16px;
  --font-display: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.loading-screen { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 12% 14%, rgba(24,169,155,.16), transparent 27%), var(--ink); color: var(--white); }
.loading-mark { display: grid; gap: 14px; justify-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.loading-orbit { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--aqua); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Public */
.public { min-height: 100vh; overflow: hidden; background: linear-gradient(135deg, #f8fbfb 0%, #edf5f4 44%, #f7f8fb 100%); }
.public-nav { max-width: 1220px; min-height: 84px; padding: 18px 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border-radius: 10px; background: var(--ink); box-shadow: 0 8px 18px rgba(16,34,53,.17); }
.brand-mark i { display: block; border-radius: 3px; background: var(--aqua); }
.brand-mark i:nth-child(2) { background: var(--teal); }
.brand-mark i:nth-child(3) { background: var(--coral); }
.brand-mark i:nth-child(4) { background: #f5d788; }
.brand small { display: block; color: var(--muted); font: 600 9px/1 var(--font-mono); letter-spacing: .11em; text-transform: uppercase; margin-top: 3px; }
.public-hero { max-width: 1220px; padding: 76px 28px 70px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #e4f5f1; border: 1px solid #c5e7df; border-radius: 999px; color: var(--teal-dark); font: 700 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(24,169,155,.12); }
.hero-copy h1 { font: 760 clamp(42px, 5vw, 68px)/1.06 var(--font-display); letter-spacing: -.065em; margin: 18px 0 22px; max-width: 700px; }
.hero-copy h1 em { font-style: normal; color: var(--teal-dark); }
.hero-copy p { max-width: 610px; color: var(--slate); font-size: 16px; line-height: 1.85; margin: 0; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 34px; color: var(--slate); font-size: 12px; }
.trust-line span::before { content: "✓"; color: var(--teal-dark); font-weight: 800; margin-right: 7px; }

.trace-board { position: relative; padding: 20px; border: 1px solid rgba(16,34,53,.13); border-radius: 22px; background: linear-gradient(160deg, #102235, #1c4250); color: var(--white); box-shadow: 0 30px 65px rgba(16,34,53,.24); transform: rotate(1.2deg); }
.trace-board::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(156,231,220,.13); border-radius: 15px; pointer-events: none; }
.trace-top { display: flex; justify-content: space-between; align-items: center; color: #c8dbdf; font: 700 10px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.trace-live { color: #b7f1e8; display: inline-flex; align-items: center; gap: 6px; }
.trace-live::before { content: ""; width: 7px; height: 7px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 0 4px rgba(24,169,155,.17); }
.trace-rail { display: grid; gap: 0; margin: 25px 0 8px; position: relative; }
.trace-rail::before { content: ""; position: absolute; left: 15px; top: 24px; bottom: 24px; width: 1px; background: rgba(156,231,220,.35); }
.trace-step { position: relative; display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.trace-step b { position: relative; z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #214c59; color: #c2f2e9; border: 1px solid rgba(156,231,220,.32); font: 700 10px var(--font-mono); }
.trace-step:nth-child(3) b { background: var(--coral); color: #fff; border-color: var(--coral); }
.trace-step strong { display: block; font-size: 13px; }
.trace-step small { display: block; color: #9bb4ba; font-size: 10.5px; margin-top: 1px; }
.trace-pill { color: #a7d8d0; font: 700 9px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.trace-step:nth-child(3) .trace-pill { color: #ffd1c7; }
.trace-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.trace-metric { padding: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.trace-metric b { font: 750 22px/1 var(--font-display); letter-spacing: -.05em; }
.trace-metric span { display: block; margin-top: 4px; color: #a5c0c5; font-size: 10px; }
.public-features { max-width: 1220px; padding: 0 28px 84px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.feature-card { min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.84); }
.feature-index { color: var(--teal-dark); font: 700 10px var(--font-mono); letter-spacing: .08em; }
.feature-card h2 { margin: 26px 0 8px; font-size: 17px; letter-spacing: -.035em; }
.feature-card p { color: var(--slate); font-size: 12px; line-height: 1.75; margin: 0; }
.public-footer { padding: 24px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font: 500 11px var(--font-mono); }

/* auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr); background: var(--paper); }
.auth-aside { position: relative; overflow: hidden; padding: 44px; background: linear-gradient(150deg, #102235, #19434e); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside::before { content: ""; position: absolute; width: 500px; height: 500px; left: -210px; top: 24%; border: 1px solid rgba(156,231,220,.2); border-radius: 50%; box-shadow: 0 0 0 42px rgba(156,231,220,.035), 0 0 0 84px rgba(156,231,220,.025); }
.auth-aside .brand { position: relative; z-index: 1; }
.auth-aside .brand small { color: #a8c5ca; }
.auth-aside .brand-mark { background: #f6faf9; }
.auth-aside .narrative { position: relative; z-index: 1; max-width: 400px; }
.auth-aside h1 { font: 720 42px/1.13 var(--font-display); letter-spacing: -.06em; margin: 0 0 18px; }
.auth-aside p { color: #bcd3d5; font-size: 15px; line-height: 1.8; }
.auth-steps { display: grid; gap: 12px; margin-top: 35px; }
.auth-steps span { color: #d8efeb; font: 650 11px var(--font-mono); letter-spacing: .04em; }
.auth-steps span::before { content: "→"; color: var(--aqua); margin-right: 9px; }
.auth-legal { position: relative; z-index: 1; color: #98b9bd; font-size: 10.5px; }
.auth-main { display: grid; place-items: center; padding: 42px 28px; }
.auth-card { width: min(100%, 440px); }
.auth-card h2 { font: 750 32px/1.15 var(--font-display); letter-spacing: -.055em; margin: 0 0 8px; }
.auth-card > p { margin: 0 0 28px; color: var(--slate); }

/* shared controls */
.btn { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font-weight: 720; font-size: 12px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); border-color: #b6c6ca; box-shadow: 0 7px 16px rgba(16,34,53,.09); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(24,169,155,.28); outline-offset: 2px; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); }
.btn-teal { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-soft { background: #e6f5f2; border-color: #d2ebe5; color: var(--teal-dark); }
.btn-danger { background: #fff0f1; border-color: #f4d1d6; color: var(--danger); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--slate); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 11px; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { color: var(--ink-2); font: 700 10.5px var(--font-mono); letter-spacing: .035em; text-transform: uppercase; }
.input, .select, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease; }
.input, .select { min-height: 42px; padding: 0 11px; }
.textarea { min-height: 92px; padding: 10px 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(24,169,155,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
.form-actions { display: flex; gap: 9px; align-items: center; justify-content: space-between; margin-top: 22px; }
.helper { color: var(--muted); font-size: 11px; line-height: 1.65; }
.error-text { color: var(--danger); font-size: 12px; margin-top: 12px; }

/* application shell */
.shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; background: var(--ink); color: #d2dde5; }
.sidebar .brand { padding: 7px 8px 19px; color: #fff; }
.sidebar .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.sidebar .brand small { color: #9db2c0; }
.identity-card { margin: 0 4px 19px; padding: 12px; border-radius: 11px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.075); }
.identity-role { color: var(--aqua); font: 750 9px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.identity-name { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f5f9fa; font-size: 12px; font-weight: 700; }
.identity-org { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #91aab9; font-size: 10.5px; }
.nav-group { margin: 17px 0; }
.nav-label { padding: 0 10px 6px; color: #718a9d; font: 700 9px var(--font-mono); letter-spacing: .11em; text-transform: uppercase; }
.nav-link { position: relative; min-height: 37px; margin: 2px 0; padding: 0 10px; display: flex; align-items: center; gap: 9px; border-radius: 8px; color: #b7c6d0; font-size: 12px; font-weight: 620; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(24,169,155,.29), rgba(24,169,155,.05)); }
.nav-link.active::before { content: ""; width: 3px; position: absolute; left: 0; top: 9px; bottom: 9px; border-radius: 3px; background: var(--aqua); }
.nav-icon { width: 17px; text-align: center; font-size: 13px; }
.nav-badge { margin-left: auto; padding: 1px 5px; border-radius: 999px; background: rgba(255,255,255,.1); color: #d5f2ee; font: 700 9px var(--font-mono); }
.app-main { min-width: 0; background: var(--paper); }
.topbar { min-height: 65px; position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 0 27px; border-bottom: 1px solid var(--line); background: rgba(248,250,251,.9); backdrop-filter: blur(18px); }
.breadcrumb { color: var(--muted); font: 650 10px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; }
.breadcrumb b { color: var(--ink); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.tenant-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; background: #e1f3ef; border: 1px solid #ceebe5; color: var(--teal-dark); border-radius: 999px; font: 700 9px var(--font-mono); letter-spacing: .04em; }
.tenant-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; background: var(--ink-2); border-radius: 9px; color: #fff; font: 700 10px var(--font-mono); }
.page { max-width: 1540px; padding: 26px 27px 55px; margin: auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.page-title { margin: 0; font: 750 27px/1.08 var(--font-display); letter-spacing: -.055em; }
.page-subtitle { max-width: 680px; margin: 7px 0 0; color: var(--slate); font-size: 12px; line-height: 1.65; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* reusable content */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { position: relative; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 12px rgba(16,34,53,.025); }
.kpi::after { content: ""; position: absolute; width: 76px; height: 76px; right: -26px; bottom: -38px; border: 1px solid rgba(24,169,155,.25); border-radius: 50%; }
.kpi-label { color: var(--slate); font: 700 10px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.kpi-value { margin: 10px 0 3px; font: 760 32px/1 var(--font-display); letter-spacing: -.065em; }
.kpi-foot { color: var(--muted); font-size: 10.5px; }
.kpi-icon { position: absolute; right: 15px; top: 14px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: #e4f5f1; color: var(--teal-dark); font-size: 13px; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 13px; margin-top: 13px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.stack { display: grid; gap: 13px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 3px 12px rgba(16,34,53,.025); overflow: hidden; }
.card-pad { padding: 17px; }
.card-head { min-height: 53px; display: flex; justify-content: space-between; align-items: center; gap: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card-head h2, .card-head h3 { margin: 0; font-size: 13px; letter-spacing: -.02em; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 10.5px; }
.card-meta { color: var(--muted); font: 650 9.5px var(--font-mono); letter-spacing: .04em; }
.proof-rail { display: grid; grid-template-columns: 5px 1fr; min-height: 248px; }
.proof-rail > i { background: linear-gradient(var(--teal), var(--aqua), #e8eff1); }
.proof-content { padding: 17px; }
.proof-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.proof-title h2 { margin: 0; font-size: 15px; letter-spacing: -.03em; }
.proof-title p { margin: 5px 0 0; color: var(--slate); font-size: 11px; }
.execution-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 22px; }
.execution-step { position: relative; display: grid; gap: 7px; min-width: 0; }
.execution-step:not(:last-child)::after { content: ""; position: absolute; left: 29px; right: -4px; top: 10px; height: 1px; background: #bfd6d3; }
.execution-step b { position: relative; z-index: 1; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #dfeae8; color: var(--teal-dark); font: 700 9px var(--font-mono); }
.execution-step.complete b { background: var(--teal); color: #fff; }
.execution-step.current b { background: var(--coral); color: #fff; box-shadow: 0 0 0 4px rgba(238,115,94,.13); }
.execution-step span { padding-right: 8px; color: var(--slate); font-size: 10.5px; line-height: 1.35; }
.execution-step small { color: var(--muted); font-size: 9.5px; }
.notice { padding: 12px 13px; border: 1px solid #cfeae4; border-radius: 10px; background: #edf8f5; color: #206b62; font-size: 11px; line-height: 1.7; }
.notice.warning { border-color: #f1deb7; background: #fff8e8; color: #8b6318; }
.notice.danger { border-color: #f3d0d3; background: #fff3f4; color: #9e3f4a; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; font: 720 9px var(--font-mono); letter-spacing: .015em; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.green { color: #287c5f; background: #e6f5ef; }
.status.teal { color: var(--teal-dark); background: #e4f5f1; }
.status.amber { color: #946515; background: #fff5dd; }
.status.coral { color: #b75142; background: #fff0ed; }
.status.red { color: #ab4050; background: #fff0f2; }
.status.slate { color: #627486; background: #edf1f3; }
.severity { font: 800 9px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.severity.high, .severity.critical { color: var(--danger); }
.severity.medium { color: #bd7a1c; }
.severity.low { color: #788a9a; }
.table-tools { padding: 11px 13px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; }
.table-tools > div { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.search { min-height: 32px; min-width: 210px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fcfdfd; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th { padding: 9px 12px; background: #f6f8f9; color: var(--slate); font: 700 9.5px var(--font-mono); letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid #edf1f2; color: var(--ink-2); font-size: 11.5px; vertical-align: middle; }
tbody tr:hover { background: #fbfdfd; }
tbody tr:last-child td { border-bottom: 0; }
.truncate { display: block; max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--slate); }
.empty { min-height: 164px; display: grid; place-items: center; padding: 24px; color: var(--slate); text-align: center; }
.empty strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.empty p { max-width: 370px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.skill-card { min-height: 155px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.skill-card.mvp { border-top: 3px solid var(--teal); }
.skill-code { color: var(--teal-dark); font: 750 10px var(--font-mono); letter-spacing: .06em; }
.skill-card h3 { margin: 12px 0 5px; font-size: 13px; letter-spacing: -.02em; }
.skill-card p { min-height: 34px; margin: 0; color: var(--slate); font-size: 10.5px; line-height: 1.55; }
.skill-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 11px; margin-top: 11px; border-top: 1px solid #edf1f2; color: var(--muted); font-size: 10px; }
.chart-area { position: relative; min-height: 220px; padding: 20px 8px 0; background: repeating-linear-gradient(to bottom, transparent 0 45px, #e9eeef 46px 47px); }
.chart-area svg { width: 100%; height: 185px; overflow: visible; }
.chart-area path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area .fill { fill: url(#fill-teal); stroke: none; opacity: .22; }
.chart-labels { display: flex; justify-content: space-between; padding: 0 8px 10px; color: var(--muted); font: 650 9px var(--font-mono); }
.mini-list { display: grid; gap: 0; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1f2; }
.mini-row:last-child { border-bottom: 0; }
.mini-row b { display: block; font-size: 11.5px; }
.mini-row span { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.progress-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #e7eff0; }
.progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #69cfc2); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.right { text-align: right; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(8,21,34,.46); backdrop-filter: blur(4px); }
.modal { width: min(100%, 600px); max-height: min(82vh, 790px); overflow: auto; border-radius: 17px; background: #fff; box-shadow: 0 24px 80px rgba(8,21,34,.28); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 21px 15px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 730 20px/1.2 var(--font-display); letter-spacing: -.04em; }
.modal-head p { margin: 5px 0 0; color: var(--slate); font-size: 11px; }
.modal-body { padding: 18px 21px 21px; }
.toast { position: fixed; z-index: 50; right: 18px; bottom: 18px; max-width: min(420px, calc(100vw - 36px)); padding: 12px 14px; border-radius: 11px; background: var(--ink); color: #fff; box-shadow: 0 12px 32px rgba(16,34,53,.23); font-size: 12px; transition: opacity .2s ease, transform .2s ease; }
.toast.error { background: #a64451; }
.toast.success { background: #167c70; }

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-hero { grid-template-columns: 1fr; }
  .trace-board { max-width: 620px; width: 100%; margin: auto; }
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; overflow: visible; padding: 12px; }
  .sidebar .brand { padding-bottom: 9px; }
  .identity-card, .nav-label { display: none; }
  .nav-group { display: inline-flex; margin: 2px 0; gap: 2px; flex-wrap: wrap; }
  .nav-link { display: inline-flex; min-height: 32px; font-size: 10.5px; }
  .nav-link.active::before { display: none; }
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px 44px; }
  .split { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 620px) {
  .public-nav { padding: 15px 16px; }
  .public-hero { padding: 44px 16px 48px; gap: 38px; }
  .public-features { padding: 0 16px 55px; grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 42px; }
  .trace-board { padding: 15px; transform: none; }
  .kpi-grid, .grid-2, .grid-3, .skill-grid, .form-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; }
  .head-actions { justify-content: flex-start; }
  .topbar { align-items: center; }
  .top-actions .tenant-chip { display: none; }
  .execution-steps { grid-template-columns: 1fr; gap: 6px; }
  .execution-step { grid-template-columns: 24px 1fr; align-items: center; }
  .execution-step:not(:last-child)::after { left: 10px; right: auto; top: 20px; bottom: -6px; width: 1px; height: auto; }
  .execution-step small { grid-column: 2; }
  .auth-main { padding: 32px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
