/* Hymdall console. Same family as Obelsk and Ravn: near-black slate, gold for actions, cyan for links and data. */
:root {
  --bg: #090c11; --bg-2: #0d121a; --panel: #111823; --panel-2: #161f2c;
  --line: #1f2a39; --line-2: #2a3749;
  --text: #e7edf5; --muted: #8a97a8; --dim: #5f6c7e;
  --gold: #ffc857; --gold-2: #f0a92e; --accent: #5cc8ff;
  --good: #3ddc97; --warn: #ff9f43; --critical: #ff4d6d;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* agent colours */
  --a0: #ffc857; --a1: #5cc8ff; --a2: #b48cff; --a3: #3ddc97; --a4: #ff9f43; --a5: #ff7eb6; --a6: #7aa7ff; --a7: #4fd1c5;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #142033 0%, transparent 60%), var(--bg);
  background-attachment: fixed; color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 15px; } h3 { font-size: 14px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .dim { color: var(--dim); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 20px 14px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0c1119, #0a0e14); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.wordmark { font-weight: 750; letter-spacing: .28em; font-size: 15px; }
.wordmark small { display: block; font-weight: 500; letter-spacing: .08em; font-size: 10.5px; color: var(--muted); text-transform: lowercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.on { background: linear-gradient(90deg, rgba(255,200,87,.14), rgba(255,200,87,.02)); color: var(--text); box-shadow: inset 2px 0 0 var(--gold); }
.nav svg, .ico { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav .sep { height: 1px; background: var(--line); margin: 12px 6px; }
.nav .count { margin-left: auto; font-size: 11px; color: var(--dim); }
.side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.side-foot .who { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.side-foot .who b { color: var(--text); font-weight: 600; display: block; line-height: 1.2; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; color: var(--gold); flex: none; }
.side-foot form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
.main { padding: 26px 32px 60px; max-width: 1400px; width: 100%; min-width: 0; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.top .sub { color: var(--muted); margin-top: 4px; }
.crumbs { color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.crumbs a { color: var(--muted); }

/* ---------- panels ---------- */
.grid { display: grid; gap: 16px; }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 340px; }
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 40%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0;
}
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-h .hint { color: var(--muted); font-size: 12.5px; }
.stack > * + * { margin-top: 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .k { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.empty svg { width: 38px; height: 38px; stroke: var(--gold); fill: none; stroke-width: 1.5; margin-bottom: 10px; }
.empty h3 { color: var(--text); margin-bottom: 6px; font-size: 15px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650;
  color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, var(--muted)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, var(--muted)) 35%, transparent); white-space: nowrap;
}
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 550;
  background: var(--panel-2); border: 1px solid var(--line-2); color: #c3cedb; white-space: nowrap; }
.c-good { --c: var(--good); } .c-warn { --c: var(--warn); } .c-bad { --c: var(--critical); } .c-gold { --c: var(--gold); } .c-acc { --c: var(--accent); } .c-dim { --c: var(--dim); }

/* ---------- forms ---------- */
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 12px; font: inherit;
}
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,200,87,.15); }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
label.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.field { margin-bottom: 14px; }
.field .help { color: var(--dim); font-size: 12px; margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.money input { padding-left: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 9px; font: inherit; font-weight: 600;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: var(--dim); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: #1a1205; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 40%, transparent); background: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn .ico { width: 15px; height: 15px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 18px; border: 1px solid; }
.flash.ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: color-mix(in srgb, var(--good) 8%, transparent); }
.flash.err { color: var(--critical); border-color: color-mix(in srgb, var(--critical) 35%, transparent); background: color-mix(in srgb, var(--critical) 8%, transparent); }
.flash.warn { color: var(--gold); border-color: rgba(255,200,87,.35); background: rgba(255,200,87,.07); }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(255,255,255,.015); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- budget meter ---------- */
.meter { height: 8px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--good), var(--gold)); transition: width .5s; }
.meter.warn span { background: linear-gradient(90deg, var(--gold), var(--warn)); }
.meter.over span { background: linear-gradient(90deg, var(--warn), var(--critical)); }
.meter-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- clans ---------- */
.clan-card { display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s; }
.clan-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.clan-card .mission { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.clan-card .facts { display: flex; gap: 8px; flex-wrap: wrap; }
.faces { display: flex; }
.face { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 750; color: #0b0f15;
  background: var(--ac); border: 2px solid var(--panel); margin-left: -6px; }
.faces .face:first-child { margin-left: 0; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 9px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--gold); }

/* ---------- agents ---------- */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.agent { position: relative; border-top: 2px solid var(--ac); }
.agent .head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.agent .head .face { width: 34px; height: 34px; font-size: 14px; margin: 0; border: 0; }
.agent .name { font-weight: 650; }
.agent .role { color: var(--muted); font-size: 12.5px; }
.agent .prompt { color: #c3cedb; font-size: 12.5px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px;
  max-height: 92px; overflow: hidden; white-space: pre-wrap; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.agent .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.agent .crown { position: absolute; top: 14px; right: 14px; }

/* ---------- prompt-to-agent ---------- */
.composer { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); padding: 12px; }
.composer textarea { border: 0; background: transparent; padding: 4px; min-height: 64px; box-shadow: none; }
.composer textarea:focus { box-shadow: none; }
.composer .bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.suggest { display: flex; gap: 6px; flex-wrap: wrap; }
.suggest button { background: var(--panel); border: 1px solid var(--line-2); color: var(--muted); border-radius: 99px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.suggest button:hover { color: var(--text); border-color: var(--dim); }

/* ---------- run view ---------- */
.run-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.roster { display: flex; flex-direction: column; gap: 10px; }
.member { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.member .face { width: 34px; height: 34px; font-size: 13px; margin: 0; border: 0; position: relative; }
.member .who { min-width: 0; flex: 1; }
.member .who b { display: block; font-size: 13px; }
.member .who span { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member .spend { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.member.planning, .member.working, .member.reviewing { border-color: color-mix(in srgb, var(--ac) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ac) 25%, transparent), 0 0 24px color-mix(in srgb, var(--ac) 12%, transparent); }
.member.planning .face::after, .member.working .face::after, .member.reviewing .face::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ac); border-right-color: transparent; animation: spin 1s linear infinite; }
.member.done .face::before { content: "✓"; position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; background: var(--good); color: #062014; font-size: 10px; display: grid; place-items: center; }
.member.error, .member.stopped { opacity: .7; }
.member.idle { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .member .face::after { animation: none !important; } }

.flow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.flow .step { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--dim); font-size: 12px; font-weight: 600; }
.flow .step.on { color: var(--gold); border-color: rgba(255,200,87,.5); background: rgba(255,200,87,.07); }
.flow .step.done { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.flow .arrow { color: var(--dim); }

.chat { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 260px); min-height: 360px; overflow-y: auto; padding-right: 4px; scroll-behavior: smooth; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg .face { width: 34px; height: 34px; font-size: 13px; margin: 0; border: 0; }
.msg .face.sys { background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.msg .face.usr { background: var(--accent); }
.msg .bubble { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; padding: 10px 13px; min-width: 0; }
.msg .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.msg .meta b { color: var(--text); font-size: 13px; }
.msg .meta .to { color: var(--dim); }
.msg .meta .cost { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--dim); }
.msg.k-result .bubble { border-color: rgba(255,200,87,.45); background: linear-gradient(180deg, rgba(255,200,87,.06), transparent 60%), var(--bg-2); }
.msg.k-budget .bubble { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.msg.k-error .bubble { border-color: color-mix(in srgb, var(--critical) 45%, transparent); }
.msg.k-task .bubble { border-style: dashed; }
.md { overflow-wrap: anywhere; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md table, .md pre { margin: 0 0 8px; }
.md ul, .md ol { padding-left: 20px; }
.md li + li { margin-top: 2px; }
.md h1, .md h2, .md h3, .md h4 { font-size: 14px; margin: 10px 0 6px; }
.md code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 0 4px; }
.md pre { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; overflow-x: auto; }
.md pre code { border: 0; padding: 0; background: none; }
.md table { border-collapse: collapse; font-size: 12.5px; display: block; overflow-x: auto; }
.md th, .md td { border: 1px solid var(--line-2); padding: 5px 8px; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--text); }
.md em { color: var(--muted); }
.typing { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; padding-left: 44px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.storehouse .md { max-height: 520px; overflow-y: auto; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(3,5,8,.7); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal.wide { max-width: 760px; }
.modal h2 { font-size: 18px; margin-bottom: 4px; }
.modal .sub { color: var(--muted); margin-bottom: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 11px 15px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 12px 30px rgba(0,0,0,.4); animation: rise .2s; max-width: 420px; }
.toast.err { border-color: color-mix(in srgb, var(--critical) 50%, transparent); color: #ffc2cc; }

/* ---------- login ---------- */
.login-body { background: #070a0f; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-art { position: relative; overflow: hidden; display: grid; place-items: center; padding: 48px;
  background: radial-gradient(70% 55% at 50% 42%, rgba(255,200,87,.10), transparent 70%), linear-gradient(180deg, #0b1018, #070a0f); border-right: 1px solid var(--line); }
.login-stage { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.scene { position: relative; width: 340px; height: 330px; margin-bottom: 18px; }
.scene .monolith { position: absolute; z-index: 1; left: 50%; bottom: 72px; transform: translateX(-50%); width: 176px; height: auto; filter: drop-shadow(0 0 36px rgba(255,200,87,.28)); }
.scene-glow { position: absolute; left: 50%; top: 38%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,87,.22), rgba(255,200,87,.05) 45%, transparent 70%); }
.scene-ring { position: absolute; left: 50%; top: 31%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  border: 1px solid rgba(255,200,87,.45); animation: scan 4.5s ease-out infinite; }
.scene-ring.r2 { animation-delay: -2.25s; }
@keyframes scan { from { transform: scale(.55); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.scene-floor { position: absolute; left: -40%; right: -40%; top: 252px; height: 150px; transform: perspective(240px) rotateX(58deg); transform-origin: 50% 0%;
  background-image: linear-gradient(rgba(255,200,87,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,200,87,.16) 1px, transparent 1px);
  background-size: 34px 34px; background-position: center top;
  -webkit-mask-image: radial-gradient(60% 100% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(60% 100% at 50% 0%, #000 30%, transparent 75%); }
.scene-floor::before { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,200,87,.7), transparent); }
@media (prefers-reduced-motion: reduce) { .scene-ring { animation: none; opacity: .35; } .scene-ring.r2 { display: none; } }
.login-art h2 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.login-art p { color: var(--muted); max-width: 440px; margin-top: 12px; line-height: 1.6; }
.login-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.login-points li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9d4e1; padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.02); }
.login-points .dot { width: 7px; height: 7px; border-radius: 50%; }
.login-points .dot.user { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }
.login-points .dot.agent { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.login-points .dot.ext { background: var(--good); box-shadow: 0 0 8px var(--good); }
.login-form { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(60% 50% at 50% 30%, rgba(96,165,250,.05), transparent 70%); }
.login-card { width: 100%; max-width: 400px; padding: 34px 32px 28px; border: 1px solid var(--line-2); border-radius: 18px;
  background: linear-gradient(180deg, rgba(23,31,44,.85), rgba(14,19,28,.85)); box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.login-card .brand { padding: 0 0 26px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.login-card h1 { margin-bottom: 6px; font-size: 24px; }
.login-card .sub { color: var(--muted); margin-bottom: 22px; }
.login-card .btn { width: 100%; padding: 12px; margin-top: 8px; font-size: 14.5px; }
.login-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; line-height: 1.5; }
.login-note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .run-grid { grid-template-columns: 240px minmax(0, 1fr); }
  .run-grid .run-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .run-grid .run-side > * + * { margin-top: 0; }
}
@media (max-width: 1100px) { .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-side { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .run-grid, .run-grid .run-side { grid-template-columns: 1fr; }
  .roster { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .member { min-width: 200px; }
  .chat { max-height: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 14px 16px; }
  .side .brand { padding-bottom: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav .sep { display: none; }
  .side-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
  .side-foot .who { margin: 0; }
  .main { padding: 18px 16px 40px; }
  .g-3, .g-2, .row2 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-card { padding: 28px 22px 22px; }
  td, th { padding: 9px 6px; }
  .hide-sm { display: none; }
}
