:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --panel: #141419;
  --panel-2: #101014;
  --line: #303038;
  --line-soft: #24242b;
  --text: #f2f2f5;
  --muted: #92929d;
  --soft: #c5c5cc;
  --accent: #818cf8;
  --accent-2: #c7d2fe;
  --green: #34d399;
  --pink: #f472b6;
  --yellow: #fbbf24;
  --red: #fb7185;
  font-family: Inter, Pretendard, "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% -10%, #24223c 0, transparent 32%), var(--bg); color: var(--text); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { border: 1px solid var(--line); border-radius: 5px; background: #202027; color: var(--soft); padding: 8px 13px; transition: .15s ease; }
button:hover { border-color: #4c4c58; color: var(--text); }
button.primary { background: #4f46e5; border-color: #6366f1; color: white; }
button.success { background: #166534; border-color: #22c55e; color: #dcfce7; }
button.danger { background: #4c1822; border-color: #9f3146; color: #fecdd3; }
button.ghost, button.ghost-danger { background: transparent; }
button.ghost-danger { color: var(--red); }
button.wide { width: 100%; padding: 10px; }
a { color: var(--accent-2); text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; letter-spacing: -.025em; margin-bottom: 5px; }
h2 { font-size: 16px; margin-bottom: 14px; }
h3 { font-size: 14px; }
.hidden { display: none !important; }

.topbar { height: 62px; padding: 0 26px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 30px; background: rgba(11,11,15,.93); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 750; white-space: nowrap; }
.brand-mark { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 23px; font-weight: 900; background: linear-gradient(145deg, #6366f1, #9b72f2); box-shadow: 0 8px 30px rgba(99,102,241,.25); }
.brand-mark.small { width: 28px; height: 28px; border-radius: 7px; font-size: 15px; }
.brand-mark.admin-mark { background: linear-gradient(145deg, #0f766e, #34d399); }
.local-badge, .chip { border: 1px solid rgba(129,140,248,.35); color: var(--accent-2); background: rgba(129,140,248,.13); border-radius: 99px; padding: 3px 8px; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.topbar nav { display: flex; align-items: stretch; gap: 5px; height: 100%; }
.topbar nav button { background: transparent; border: 0; border-radius: 0; padding: 0 12px; color: var(--muted); border-bottom: 2px solid transparent; }
.topbar nav button.active { color: var(--text); border-bottom-color: var(--accent); }
.topbar nav a { display: grid; place-items: center; color: var(--muted); }
.account { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--soft); }

.container { max-width: 1160px; margin: 0 auto; padding: 34px 24px 80px; }
.admin-container { max-width: 1280px; }
.page-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.page-title p, .section-note { color: var(--muted); margin: 0; font-size: 13px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.section { margin-top: 27px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin-bottom: 0; }
.top-gap { margin-top: 14px; }

.state-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--panel); border-radius: 5px; overflow: hidden; }
.state-card { padding: 16px 18px; min-height: 88px; border-right: 1px solid var(--line-soft); }
.state-card:last-child { border-right: 0; }
.state-card .label { color: var(--muted); font-size: 11px; margin-bottom: 9px; }
.state-card .value { font-size: 19px; font-weight: 760; font-variant-numeric: tabular-nums; }
.state-card .value.accent { color: var(--accent-2); }
.status-dot { width: 9px; height: 9px; display: inline-block; margin-right: 8px; border-radius: 50%; background: #53535e; }
.status-dot.running { background: var(--green); box-shadow: 0 0 0 5px rgba(52,211,153,.09); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.card { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: grid; gap: 11px; }
.stack.compact { gap: 8px; }
.token-row, .info-row, .endpoint-row, .agent-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.token-row:last-child, .info-row:last-child, .endpoint-row:last-child, .agent-row:last-child { border-bottom: 0; }
.row-label { color: var(--muted); min-width: 92px; font-size: 12px; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
.token-value { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--panel-2); border-radius: 4px; padding: 6px 8px; color: #d9d9de; }
.upload-code { white-space: pre; overflow-x: auto; padding: 14px; background: #0d0d11; border: 1px solid #202027; border-radius: 4px; color: #d9d9de; line-height: 1.65; font-size: 12px; }
.help { color: var(--muted); font-size: 11px; margin: 8px 0 0; }
.metric-row { display: flex; flex-wrap: wrap; gap: 25px; }
.metric strong { display: block; font-size: 18px; margin-top: 4px; font-family: monospace; }
.metric span { color: var(--muted); font-size: 12px; }
.progress { height: 7px; background: #27272e; border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress > i { display: block; height: 100%; background: var(--accent); }

.table-shell { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--panel); }
.table-shell.horizontal { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 650px; }
th { background: #1a1a20; color: var(--muted); font-size: 11px; font-weight: 600; text-align: left; }
th, td { padding: 10px 13px; border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.mine { background: rgba(129,140,248,.08); }
.our-badge { margin-left: 7px; color: var(--accent-2); font-size: 10px; }
.empty { color: var(--muted); text-align: center; padding: 30px; }

.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.activity-total { font-size: 26px; font-weight: 800; color: var(--accent); }
.activity-total.pink { color: var(--pink); }
.event-item { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.result-ok { color: var(--green); }
.result-no { color: var(--muted); }
.bar-row { display: grid; grid-template-columns: 70px 1fr 90px; gap: 9px; align-items: center; margin: 8px 0; font-size: 11px; }
.bar { height: 8px; border-radius: 99px; background: #292930; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); }
.capture-group { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.capture-group:last-child { border-bottom: 0; }
.capture-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--soft); font-size: 12px; }

.announcement { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 18px; }
.announcement-head { display: flex; justify-content: space-between; gap: 15px; }
.announcement h2 { margin-bottom: 8px; }
.announcement time { color: var(--muted); font-size: 11px; white-space: nowrap; }
.announcement p { color: var(--soft); margin: 0; white-space: pre-wrap; line-height: 1.7; }
.pinned { color: var(--yellow); font-size: 11px; margin-right: 7px; }
.notice { border: 1px solid #6b5724; background: #211d12; color: #fde68a; padding: 15px; border-radius: 5px; }

.trend { display: grid; gap: 10px; }
.trend-row { display: grid; grid-template-columns: 120px 1fr 75px; gap: 10px; align-items: center; }
.trend-track { height: 14px; background: #26262e; border-radius: 3px; overflow: hidden; }
.trend-track i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #a78bfa); }
.layer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.layer-card { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 17px; }
.layer-number { color: var(--accent); font-weight: 800; font-size: 11px; }
.layer-card h2 { margin: 8px 0; }
.layer-card p { color: var(--muted); margin: 0; font-size: 12px; }
.locked { opacity: .55; }

.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(390px, 100%); display: grid; gap: 14px; border: 1px solid var(--line); background: rgba(20,20,25,.95); padding: 30px; border-radius: 8px; box-shadow: 0 24px 90px rgba(0,0,0,.45); }
.auth-card .brand-mark { margin: 0 auto 5px; }
.auth-card h1, .auth-card > p { text-align: center; margin-bottom: 0; }
.auth-card > p { color: var(--muted); }
label { display: grid; gap: 6px; color: var(--soft); font-size: 12px; }
input, select, textarea { width: 100%; color: var(--text); background: #101014; border: 1px solid var(--line); border-radius: 5px; padding: 9px 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(129,140,248,.12); }
.form-error { min-height: 18px; color: var(--red); font-size: 12px; text-align: center; }
.muted-link { text-align: center; color: var(--muted); font-size: 12px; }

.form-grid { display: grid; grid-template-columns: repeat(4, minmax(130px,1fr)); gap: 12px; align-items: end; }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.check-label input { width: auto; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-result { color: var(--muted); font-size: 12px; }
.event-log { max-height: 510px; overflow: auto; font: 11px/1.55 monospace; }
.log-line { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.log-line time { color: var(--muted); margin-right: 7px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 360px; padding: 12px 15px; border: 1px solid var(--line); background: #22222a; color: var(--text); border-radius: 6px; box-shadow: 0 12px 45px rgba(0,0,0,.45); }

@media (max-width: 900px) {
  .state-grid { grid-template-columns: repeat(2, 1fr); }
  .state-card { border-bottom: 1px solid var(--line-soft); }
  .layer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar nav { overflow-x: auto; }
}
@media (max-width: 650px) {
  .topbar { height: auto; min-height: 60px; padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .topbar nav { order: 3; width: 100%; height: 40px; }
  .account { margin-left: auto; }
  .container { padding: 24px 13px 60px; }
  .two-col, .activity-grid { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: 1fr 1fr; }
  .state-card .value { font-size: 16px; }
  .layer-grid, .form-grid { grid-template-columns: 1fr; }
  .page-title { align-items: flex-start; }
}

/* RADE participant portal */
.participant-body {
  --rade-bg: #0a0a0c;
  --rade-panel: #141419;
  --rade-panel-deep: #0f0f13;
  --rade-line: #383842;
  --rade-line-soft: #27272f;
  --rade-text: #f4f4f6;
  --rade-muted: #8f8f9b;
  --rade-indigo: #818cf8;
  --rade-indigo-strong: #6366f1;
  background:
    radial-gradient(ellipse 850px 390px at 50% -180px, rgba(49,46,129,.72), transparent 72%),
    var(--rade-bg);
  color: var(--rade-text);
  font-size: 14px;
}
.participant-body button,
.participant-body input,
.participant-body select { border-radius: 4px; }
.participant-body svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.participant-body .primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #7277f1;
  background: #5b5ee8;
  color: #fff;
  font-weight: 650;
}
.participant-body .primary:hover { background: #696cf0; border-color: #898df5; }
.participant-body button:disabled { cursor: not-allowed; opacity: .58; }
.boot-screen,
.page-loader {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--rade-muted);
}
.page-loader { min-height: 55vh; }
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #353541;
  border-top-color: var(--rade-indigo);
  border-radius: 50%;
  animation: rade-spin .75s linear infinite;
}
@keyframes rade-spin { to { transform: rotate(360deg); } }

.rade-auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background:
    radial-gradient(ellipse 700px 420px at 50% -140px, rgba(30,27,75,.92), transparent 74%),
    #0a0a0c;
}
.rade-auth-card {
  width: min(448px, 100%);
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--rade-line);
  border-radius: 5px;
  background: var(--rade-panel);
  box-shadow: 0 28px 90px rgba(0,0,0,.35);
}
.auth-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 1px;
  border: 1px solid rgba(129,140,248,.26);
  border-radius: 7px;
  background: rgba(99,102,241,.1);
  color: #a5b4fc;
}
.auth-icon svg { width: 25px; height: 25px; }
.auth-heading { text-align: center; margin-bottom: 3px; }
.auth-heading h1 { font-size: 23px; margin: 0 0 8px; }
.auth-heading p { margin: 0; color: var(--rade-muted); font-size: 13px; }
.rade-auth-card label { gap: 8px; color: #c6c6ce; font-size: 13px; }
.rade-auth-card input {
  height: 43px;
  padding: 0 13px;
  border: 1px solid #3a3a44;
  background: #0f0f13;
  color: #f5f5f7;
}
.rade-auth-card input:focus {
  border-color: var(--rade-indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.auth-submit { min-height: 43px; text-decoration: none; }
.auth-submit.center { text-align: center; }
.local-auth-note {
  width: min(448px, 100%);
  display: flex;
  justify-content: space-between;
  padding: 14px 3px 0;
  color: #666672;
  font-size: 11px;
  letter-spacing: .08em;
}
.local-auth-note a { color: #777786; letter-spacing: 0; }

.floating-header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 40;
  max-width: 1200px;
  height: 56px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(238,242,255,.06);
  box-shadow: 0 10px 40px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px 0 22px;
}
.rade-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f6f6f8;
  font: 700 17px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.rade-logo b { color: var(--rade-indigo); font-weight: 700; }
.rade-logo i {
  margin-left: 5px;
  padding: 3px 6px;
  border: 1px solid rgba(129,140,248,.26);
  border-radius: 99px;
  color: #a5b4fc;
  font: 700 8px/1 system-ui, sans-serif;
  letter-spacing: .08em;
}
.desktop-nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 48px;
}
.desktop-nav a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 12px;
  color: #a3a3ad;
  font-size: 13px;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: #f4f4f6; }
.desktop-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--rade-indigo);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.dropdown { position: relative; }
.header-button,
.account-button,
.mobile-trigger {
  height: 38px;
  border: 0;
  background: transparent;
  color: #b7b7c0;
}
.header-button { min-width: 38px; padding: 0 9px; font-size: 11px; font-weight: 700; }
.account-button { display: flex; align-items: center; gap: 8px; padding: 0 9px; font-size: 12px; }
.account-button:hover,
.header-button:hover { border: 0; background: rgba(255,255,255,.055); }
.avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid #3d3d49;
  border-radius: 50%;
  background: #1b1b21;
  color: #a7a7b0;
}
.avatar svg { width: 15px; height: 15px; }
.avatar.small { width: 34px; height: 34px; flex: 0 0 auto; }
.account-button .down { margin-top: -4px; color: #777781; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 11px);
  min-width: 165px;
  padding: 6px;
  border: 1px solid #34343e;
  border-radius: 6px;
  background: #17171c;
  box-shadow: 0 18px 55px rgba(0,0,0,.42);
}
.dropdown-menu.align-right { right: 0; }
.dropdown-menu a,
.dropdown-menu button {
  width: 100%;
  display: flex;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: #c7c7cf;
  text-align: left;
  font-size: 12px;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: #23232a; color: #fff; }
.mobile-trigger { display: none; padding: 0 8px; }
.mobile-menu { display: none; }

.rade-container {
  width: min(1200px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 104px 0 90px;
}
.page-heading { margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 7px; font-size: 22px; font-weight: 690; letter-spacing: -.025em; }
.page-heading p { margin: 0; color: var(--rade-muted); font-size: 13px; }
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  color: #818cf8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}
.live-label i { width: 6px; height: 6px; border-radius: 50%; background: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.rade-state-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}
.rade-state-card {
  min-height: 92px;
  padding: 20px;
  border: 1px solid var(--rade-line);
  border-radius: 4px;
  background: var(--rade-panel);
}
.rade-state-card > span {
  display: block;
  margin-bottom: 11px;
  color: var(--rade-muted);
  font-size: 11px;
}
.rade-state-card strong {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rade-state-card strong.indigo { color: #a5b4fc; }
.rade-state-card strong small { margin-left: 5px; color: #6f6f79; font-size: 12px; font-weight: 500; }
.live-dot { width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #52525b; }
.live-dot.on { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.1); animation: pulse 1.6s infinite; }
.rade-section { margin-top: 34px; }
.rade-section-title { margin-bottom: 13px; }
.rade-section-title h2 { margin: 0; font-size: 15px; font-weight: 660; }
.rade-section-title p { margin: 5px 0 0; color: var(--rade-muted); font-size: 11px; }
.rade-card {
  border: 1px solid var(--rade-line);
  border-radius: 4px;
  background: var(--rade-panel);
}
.rade-two-column { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }

.team-identity,
.entrypoint-card { min-height: 310px; padding: 20px; }
.team-map { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--rade-line-soft); }
.team-avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(129,140,248,.3);
  border-radius: 5px;
  background: rgba(99,102,241,.11);
  color: #c7d2fe;
  font-weight: 750;
}
.team-map strong,
.team-map span { display: block; }
.team-map strong { margin-bottom: 5px; font-size: 15px; }
.team-map span { color: var(--rade-muted); font: 11px/1.4 "SFMono-Regular", Consolas, monospace; }
.secret-list { padding: 10px 0; }
.secret-row {
  display: grid;
  grid-template-columns: 112px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 39px;
}
.secret-row > span { color: var(--rade-muted); font-size: 11px; }
.secret-row code {
  min-width: 0;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid #24242b;
  border-radius: 3px;
  background: var(--rade-panel-deep);
  color: #d0d0d7;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.copy-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #35353f;
  background: transparent;
  color: #9999a4;
  font-size: 10px;
}
.copy-control svg { width: 13px; height: 13px; }
.copy-control:hover { border-color: #525260; background: #1d1d23; color: #eeeef1; }
.agent-status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding-top: 13px; border-top: 1px solid var(--rade-line-soft); }
.agent-status { display: flex; align-items: center; gap: 9px; }
.agent-kind {
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(244,114,182,.1);
  color: #f9a8d4;
  font-size: 9px;
  font-weight: 750;
}
.agent-kind.defender { background: rgba(52,211,153,.1); color: #6ee7b7; }
.agent-status div span { display: block; color: #82828d; font-size: 9px; line-height: 1.6; white-space: nowrap; }
.agent-status div .agent-digest { color: #a5b4fc; font-family: "SFMono-Regular", Consolas, monospace; }
.entrypoint-card h3 { margin: 0 0 5px; font-size: 14px; }
.entrypoint-card > p { margin: 0; color: var(--rade-muted); font-size: 11px; }
.entrypoint-list { margin-top: 19px; }
.entrypoint-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--rade-line-soft);
}
.layer-pill { color: #a5b4fc; font-size: 10px; font-weight: 700; }
.entrypoint-row code,
.entrypoint-row div span { display: block; }
.entrypoint-row code { margin-bottom: 4px; color: #dedee3; font-size: 11px; }
.entrypoint-row div span { color: #777782; font: 10px/1 monospace; }

.usage-card { padding: 21px; }
.usage-metrics { display: grid; grid-template-columns: repeat(3,1fr); }
.usage-metrics > div { padding: 0 20px; border-right: 1px solid var(--rade-line-soft); }
.usage-metrics > div:first-child { padding-left: 0; }
.usage-metrics > div:last-child { border-right: 0; }
.usage-metrics span,
.usage-metrics strong { display: block; }
.usage-metrics span { margin-bottom: 7px; color: var(--rade-muted); font-size: 10px; }
.usage-metrics strong { font: 650 17px/1.3 "SFMono-Regular", Consolas, monospace; }
.usage-metrics strong.negative { color: #fb7185; }
.usage-track { height: 5px; margin-top: 20px; overflow: hidden; border-radius: 9px; background: #2a2a32; }
.usage-track i { display: block; height: 100%; background: #6366f1; }
.ugv-card { padding: 22px; }
.locked-content,
.locked-notice { display: flex; align-items: center; gap: 14px; }
.locked-content { min-height: 60px; color: #6e6e79; }
.locked-content svg,
.locked-notice > svg { width: 25px; height: 25px; flex: 0 0 auto; }
.locked-content strong,
.locked-content span,
.locked-notice strong,
.locked-notice span { display: block; }
.locked-content strong { margin-bottom: 6px; color: #b7b7c0; font-size: 12px; }
.locked-content span { font-size: 11px; }
.motion-chain { display: flex; align-items: center; padding: 10px 4px; }
.motion-node { display: flex; align-items: center; gap: 9px; }
.motion-node span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #4f46e5; font-size: 10px; }
.motion-node strong { font-size: 12px; }
.motion-line { width: 42px; height: 1px; margin: 0 12px; background: #484854; }

.upload-card { overflow: hidden; }
.local-isolation {
  padding: 9px 17px;
  border-bottom: 1px solid rgba(129,140,248,.15);
  background: rgba(99,102,241,.06);
  color: #8f96ed;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
}
.code-head { height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #24242c; }
.code-head > span { color: #a1a1aa; font-size: 11px; }
.upload-card pre { max-height: 370px; margin: 0; padding: 19px; overflow: auto; background: #0f0f13; color: #cacad2; font-size: 11px; line-height: 1.75; }
.upload-foot { display: flex; align-items: center; gap: 12px; padding: 12px 17px; border-top: 1px solid #24242c; color: #777783; font-size: 10px; }
.upload-foot code { color: #aaaab5; }
.upload-foot div { display: grid; gap: 4px; min-width: 0; }

.rade-table-shell { overflow: auto; border: 1px solid var(--rade-line); border-radius: 4px; background: var(--rade-panel); }
.rade-table-shell table { min-width: 700px; }
.rade-table-shell th { padding: 12px 15px; background: #18181e; color: #858590; font-size: 10px; font-weight: 600; text-transform: none; }
.rade-table-shell td { padding: 12px 15px; border-color: var(--rade-line-soft); color: #c2c2ca; font-size: 11px; }
.rade-table-shell tr:hover td { background: rgba(255,255,255,.015); }
.rade-table-shell tr.mine td { background: rgba(99,102,241,.065); }
.score-cell { color: #c7d2fe !important; font-weight: 700; }
.rade-empty { padding: 42px 18px; border: 1px solid var(--rade-line); border-radius: 4px; background: var(--rade-panel); color: var(--rade-muted); text-align: center; font-size: 12px; }
.mini-empty { padding: 26px 5px; color: #73737e; text-align: center; font-size: 10px; }
.activity-cards { margin-bottom: 16px; }
.activity-card { min-height: 238px; padding: 20px; }
.activity-head { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--rade-line-soft); }
.activity-head span,
.activity-head strong { display: block; }
.activity-head span { margin-bottom: 4px; color: #8f8f9a; font-size: 10px; }
.activity-head strong { color: #818cf8; font-size: 25px; }
.activity-card.defense .activity-head strong { color: #f472b6; }
.activity-head small { color: #6f6f79; font-size: 9px; }
.activity-list { max-height: 250px; overflow: auto; }
.attack-event {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border-bottom: 1px solid #23232a;
}
.result { color: #9797a1; font: 700 9px/1 monospace; text-transform: uppercase; }
.result.accepted { color: #34d399; }
.attack-event strong,
.attack-event span,
.defense-stat span,
.defense-stat small { display: block; }
.attack-event strong { margin-bottom: 4px; color: #c6c6cd; font-size: 10px; }
.attack-event div span { color: #74747e; font-size: 9px; }
.defense-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 50px; border-bottom: 1px solid #23232a; }
.defense-stat > span { color: #aaaab3; font-size: 10px; }
.defense-stat strong { color: #f9a8d4; }
.defense-stat small { grid-column: 1 / -1; margin-top: -11px; color: #70707b; font-size: 9px; }
.activity-metrics .rade-card { min-height: 190px; padding: 19px; }
.activity-metrics h3 { margin: 0 0 15px; font-size: 12px; }
.metric-bar-row { display: grid; grid-template-columns: 32px minmax(80px,1fr) 180px; align-items: center; gap: 9px; min-height: 31px; }
.metric-bar-row > span { color: #92929d; font-size: 9px; }
.metric-bar-row small { color: #777782; font-size: 9px; }
.metric-bar { height: 5px; overflow: hidden; border-radius: 9px; background: #292931; }
.metric-bar i { display: block; height: 100%; background: #34d399; }

.captures-card { padding: 0 18px; }
.capture-round { border-bottom: 1px solid var(--rade-line-soft); }
.capture-round:last-child { border-bottom: 0; }
.capture-round summary {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #d4d4da;
  font-size: 11px;
  list-style: none;
}
.capture-round summary::-webkit-details-marker { display: none; }
.capture-round summary small { color: #777782; }
.capture-round[open] summary { color: #a5b4fc; }
.capture-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 8px 11px;
  border-top: 1px solid #222229;
  color: inherit;
}
.capture-row:hover { background: rgba(255,255,255,.018); }
.capture-row > div { display: grid; grid-template-columns: 85px minmax(0,1fr); align-items: center; column-gap: 10px; width: calc(100% - 35px); }
.capture-row strong { min-width: 0; overflow: hidden; color: #bbbcc4; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.capture-row small { grid-column: 2; margin-top: 5px; color: #6f6f79; font-size: 9px; }
.file-kind { width: fit-content; padding: 4px 6px; border-radius: 3px; background: rgba(34,211,238,.09); color: #67e8f9; font-size: 8px; font-weight: 750; }
.file-kind.attacker_log { background: rgba(244,114,182,.09); color: #f9a8d4; }
.file-kind.defender_log { background: rgba(52,211,153,.09); color: #6ee7b7; }
.download-icon { color: #888894; }
.download-icon svg { width: 16px; height: 16px; }

.rank { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #26262e; font-weight: 700; }
.rank-1 { background: rgba(251,191,36,.12); color: #fcd34d; }
.team-sub { display: block; margin-top: 4px; color: #777782; font-size: 9px; }
.team-sub b { color: #818cf8; font-size: 8px; }
.chart-card { padding: 15px; overflow-x: auto; }
.trend-chart { min-width: 720px; }
.trend-svg { display: block; width: 100%; max-height: 330px; }
.trend-svg text { fill: #777782; font-size: 9px; }
.trend-svg .chart-grid { stroke: #292931; stroke-width: 1; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; padding: 10px 10px 4px; color: #888893; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; }
.matrix-table .sticky-team { position: sticky; left: 0; z-index: 2; min-width: 145px; background: #15151a; }
.matrix-table .sticky-team strong,
.matrix-table .sticky-team span { display: block; }
.matrix-table .sticky-team span { margin-top: 3px; color: #71717c; font-size: 9px; }
.detail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.detail-head h3 { margin: 0; font-size: 15px; }
.detail-head select { width: auto; min-width: 180px; padding: 8px 10px; border: 1px solid #3b3b45; background: #141419; color: #d2d2d8; font-size: 11px; }
.locked-notice {
  min-height: 92px;
  padding: 20px;
  border: 1px solid rgba(129,140,248,.22);
  border-radius: 4px;
  background: rgba(99,102,241,.055);
  color: #818cf8;
}
.locked-notice strong { margin-bottom: 6px; color: #c7d2fe; font-size: 12px; }
.locked-notice span { color: #858592; font-size: 10px; }
.layer-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.layer-summary-card { padding: 17px; }
.layer-summary-card span,
.layer-summary-card strong,
.layer-summary-card small { display: block; }
.layer-summary-card span { color: #818cf8; font-size: 9px; font-weight: 700; }
.layer-summary-card strong { margin: 11px 0 6px; font-size: 15px; }
.layer-summary-card small { color: #777782; font-size: 9px; }
.models-table { min-width: 900px !important; }
.model-guide { padding: 20px; }
.model-guide h3 { margin: 0 0 9px; font-size: 13px; }
.model-guide p { margin: 0 0 15px; color: #92929d; font-size: 11px; line-height: 1.7; }
.model-guide code { display: block; padding: 11px; border: 1px solid #27272e; border-radius: 3px; background: #0f0f13; color: #bbbcc5; font-size: 10px; }

.notice-list { display: grid; gap: 12px; }
.notice-card {
  width: 100%;
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--rade-line);
  border-radius: 4px;
  background: var(--rade-panel);
  color: inherit;
  text-align: left;
}
.notice-card:hover { border-color: #4a4a56; background: #16161c; }
.notice-card-main { min-width: 0; }
.notice-meta { display: flex; align-items: center; gap: 10px; color: #777782; font-size: 9px; }
.notice-pin { display: inline-flex; align-items: center; gap: 4px; color: #a5b4fc; font-weight: 700; }
.notice-pin svg { width: 11px; height: 11px; }
.notice-card h2 { margin: 11px 0 7px; overflow: hidden; color: #e5e5e9; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.notice-card p { max-width: 880px; margin: 0; overflow: hidden; color: #8d8d98; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notice-arrow { color: #666671; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.pagination button { width: 31px; height: 31px; padding: 0; background: #141419; color: #8c8c97; }
.pagination button.active { border-color: #6366f1; background: rgba(99,102,241,.14); color: #c7d2fe; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(3px);
}
.announcement-modal {
  position: relative;
  width: min(680px,100%);
  max-height: min(760px,calc(100vh - 40px));
  padding: 28px;
  overflow: auto;
  border: 1px solid #3d3d48;
  border-radius: 5px;
  background: #15151a;
  box-shadow: 0 30px 100px rgba(0,0,0,.6);
}
.modal-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: transparent; }
.modal-meta { display: flex; gap: 7px; align-items: center; min-height: 18px; color: #818cf8; font-size: 9px; }
.modal-meta svg { width: 12px; height: 12px; }
.modal-meta time { color: #74747e; }
.announcement-modal h2 { margin: 14px 40px 8px 0; font-size: 20px; }
.modal-author { padding-bottom: 18px; border-bottom: 1px solid #292930; color: #777782; font-size: 10px; }
.modal-content { padding-top: 21px; color: #c0c0c8; font-size: 12px; line-height: 1.85; }

.team-detail-card { display: flex; gap: 18px; min-height: 250px; padding: 24px; }
.team-avatar.large { width: 60px; height: 60px; font-size: 20px; }
.eyebrow { color: #818cf8; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.team-detail-card h2 { margin: 7px 0; font-size: 18px; }
.team-detail-card p { min-height: 40px; margin: 0; color: #888893; font-size: 11px; line-height: 1.6; }
.team-detail-stats { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 25px; }
.team-detail-stats > div { min-width: 85px; padding-right: 18px; }
.team-detail-stats span,
.team-detail-stats strong { display: block; }
.team-detail-stats span { margin-bottom: 6px; color: #74747f; font-size: 9px; }
.team-detail-stats strong { font-size: 15px; }
.members-card { padding: 21px; }
.members-card h3 { margin: 0 0 12px; }
.member-row { min-height: 58px; display: flex; align-items: center; gap: 11px; border-top: 1px solid #292930; }
.member-row > div { min-width: 0; }
.member-row strong,
.member-row div span { display: block; }
.member-row strong { margin-bottom: 4px; font-size: 11px; }
.member-row div span { color: #777782; font-size: 9px; }
.member-role { margin-left: auto; color: #818cf8; font-size: 8px; font-weight: 700; }
.fixed-team-note { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: #777782; font-size: 10px; }
.fixed-team-note svg { width: 14px; height: 14px; color: #818cf8; }
.profile-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; }
.profile-summary { display: flex; flex-direction: column; align-items: center; min-height: 250px; padding: 30px 20px; }
.profile-avatar { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 18px; border: 1px solid #41414d; border-radius: 50%; background: #1d1d24; color: #9999a4; }
.profile-avatar svg { width: 34px; height: 34px; }
.profile-summary h2 { margin: 0 0 6px; font-size: 16px; }
.profile-summary > span:last-child { color: #81818c; font-size: 10px; }
.profile-form { display: grid; gap: 16px; padding: 24px; }
.profile-form h2 { margin: 0; font-size: 15px; }
.profile-form label { gap: 7px; color: #9b9ba5; font-size: 10px; }
.profile-form input { height: 39px; border: 1px solid #393943; background: #0f0f13; }
.profile-form button { width: fit-content; min-width: 80px; }
.form-result { min-height: 16px; margin: 0; color: #6ee7b7; font-size: 10px; }
.competition-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.competition-card { min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; color: inherit; }
.competition-card:hover { border-color: #4c4c59; }
.competition-type { color: #818cf8; font-size: 9px; font-weight: 750; }
.competition-card h2 { margin: 13px 0 9px; font-size: 17px; }
.competition-card p { margin: 0; color: #858590; font-size: 11px; line-height: 1.65; }
.competition-foot { display: flex; justify-content: space-between; color: #777782; font-size: 9px; }
.status-badge { color: #6ee7b7; }
.error-state { min-height: 55vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.error-state strong { font-size: 16px; }
.error-state span { color: #898994; font-size: 11px; }
.error-state button { margin-top: 8px; }

.participant-body .toast {
  z-index: 100;
  right: 22px;
  bottom: 22px;
  padding: 11px 14px;
  border-color: #41414c;
  border-radius: 4px;
  background: #1c1c22;
  color: #e5e5e9;
  font-size: 11px;
}

@media (max-width: 980px) {
  .rade-state-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rade-state-card:last-child { grid-column: span 2; }
  .desktop-nav { margin-left: 22px; }
  .desktop-nav a { padding: 0 8px; font-size: 11px; }
  .account-button > span:not(.avatar):not(.down) { display: none; }
  .agent-status-list { grid-template-columns: 1fr; }
  .layer-summary { grid-template-columns: repeat(2,1fr); }
  .competition-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .floating-header { top: 10px; left: 10px; right: 10px; height: 52px; }
  .header-inner { padding-left: 17px; }
  .desktop-nav,
  .account-dropdown { display: none; }
  .mobile-trigger { display: grid; place-items: center; }
  .mobile-menu {
    position: fixed;
    inset: -10px;
    z-index: 90;
    display: flex;
    justify-content: flex-end;
    background: rgba(0,0,0,.65);
  }
  .mobile-sheet { width: min(310px,85vw); min-height: 100vh; padding: 18px; background: #141419; box-shadow: -20px 0 70px rgba(0,0,0,.5); }
  .mobile-sheet-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #2b2b33; }
  .mobile-sheet-head button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; background: transparent; }
  .mobile-sheet nav { display: grid; padding: 13px 0; }
  .mobile-sheet nav a { padding: 12px 8px; color: #aaaab4; }
  .mobile-sheet nav a.active { color: #a5b4fc; }
  .mobile-account { display: grid; gap: 5px; padding-top: 15px; border-top: 1px solid #2b2b33; }
  .mobile-account strong { padding: 7px 8px; }
  .mobile-account a,
  .mobile-account button { padding: 10px 8px; border: 0; background: transparent; color: #94949f; text-align: left; }
  .rade-container { width: min(100% - 24px,1200px); padding-top: 85px; }
  .rade-state-grid { gap: 10px; }
  .rade-state-card { min-height: 83px; padding: 15px; }
  .rade-state-card strong { font-size: 15px; }
  .rade-two-column,
  .profile-layout { grid-template-columns: 1fr; }
  .team-identity,
  .entrypoint-card { min-height: auto; }
  .usage-metrics > div { padding: 0 10px; }
  .usage-metrics strong { font-size: 13px; }
  .secret-row { grid-template-columns: 95px minmax(0,1fr) auto; }
  .copy-control span { display: none; }
  .metric-bar-row { grid-template-columns: 28px 1fr; }
  .metric-bar-row small { grid-column: 2; }
  .layer-summary,
  .competition-grid { grid-template-columns: 1fr; }
  .team-detail-card { flex-direction: column; }
  .notice-card { padding: 19px; }
  .notice-arrow { display: none; }
}

@media (max-width: 460px) {
  .rade-auth-card { padding: 27px 20px; }
  .rade-state-card:last-child { grid-column: auto; }
  .rade-state-grid { grid-template-columns: 1fr 1fr; }
  .rade-state-card > span { font-size: 9px; }
  .rade-state-card strong { font-size: 13px; }
  .rade-section { margin-top: 28px; }
  .secret-row { grid-template-columns: 1fr auto; padding: 7px 0; }
  .secret-row > span { grid-column: 1 / -1; }
  .secret-row code { font-size: 9px; }
  .agent-status-list { grid-template-columns: 1fr; }
  .entrypoint-row { grid-template-columns: 58px 1fr auto; }
  .usage-card { padding: 17px; }
  .usage-metrics { grid-template-columns: 1fr; gap: 13px; }
  .usage-metrics > div { padding: 0; border-right: 0; }
  .usage-metrics > div:not(:last-child) { padding-bottom: 12px; border-bottom: 1px solid #292930; }
  .capture-row > div { grid-template-columns: 1fr; }
  .capture-row small { grid-column: 1; }
  .file-kind { margin-bottom: 6px; }
  .team-detail-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .notice-meta time { display: none; }
}
