:root {
  --ink: #172033;
  --muted: #5c6b80;
  --line: #d5dce6;
  --paper: #eef1f4;
  --card: #f7f8fa;
  --cobalt: #1e4fd7;
  --cobalt-deep: #163a9e;
  --danger: #9d2c2c;
  --ok: #1d6b45;
  --shadow: 0 24px 60px rgba(23, 32, 51, 0.08);
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cobalt-deep); }

.gate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 1fr);
}
.gate-aside {
  background: #101828;
  color: #f4f7fb;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.aside-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-lockup img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; background: #fff; }
.mark {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-weight: 720;
  letter-spacing: -0.04em;
  font-size: 28px;
}
.langs { display: flex; gap: 6px; flex: 0 0 auto; }
.langs button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #f4f7fb;
  padding: 6px 12px;
}
.langs button.on { background: #f4f7fb; color: #101828; }
.auth-links { margin: 14px 0 0; }
.auth-links + .auth-links { margin-top: 6px; }
.gate-aside h1 {
  font-weight: 560;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 48px 0 16px;
}
.gate-aside p { color: #c5d0e0; max-width: 28em; line-height: 1.7; }
.gate-main { display: grid; place-items: center; padding: 32px 20px; }
.card {
  width: min(440px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.card h2 { margin: 0 0 6px; font-size: 22px; }
.sub { color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
label { display: block; font-size: 13px; margin: 12px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid #c5ceda;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(30, 79, 215, 0.15); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.primary, .ghost, .texty {
  border-radius: 10px;
  padding: 11px 14px;
  border: 1px solid transparent;
}
.primary { background: var(--cobalt); color: white; }
.primary:hover { background: var(--cobalt-deep); }
.ghost { background: white; border-color: var(--line); }
.texty { background: transparent; color: var(--cobalt-deep); padding: 0; border: 0; }
.captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}
canvas.captcha-board {
  height: 44px;
  width: 128px;
  border-radius: 10px;
  border: 1px dashed #b7c2d2;
  background: #fff;
  cursor: pointer;
}
.note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.error { color: var(--danger); background: #fdecec; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.ok { color: var(--ok); }

.shell { min-height: 100vh; }
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 248, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brandline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px 0;
}
.brandline strong {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.brandline .brand-lockup img { width: 28px; height: 28px; border-radius: 8px; }
.brandline .mark { font-size: 20px; }
.top .langs { margin-left: 16px; }
.top .langs button { border-color: var(--line); color: var(--ink); }
.top .langs button.on { background: var(--ink); color: #fff; }
.who { color: var(--muted); font-size: 13px; margin-left: auto; }
.nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 4px;
  padding: 10px 14px 12px;
  scrollbar-width: thin;
}
.nav button {
  flex: 1 0 auto;
  white-space: nowrap;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: clamp(12px, 1.05vw, 14px);
}
.nav button.active { background: var(--ink); color: white; }
.stage { width: min(1080px, calc(100% - 36px)); margin: 28px auto 80px; }
.stage h2 { font-size: 28px; margin: 0 0 8px; }
.panel {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 0;
  margin-top: 8px;
}
.panel h3 { margin: 0 0 10px; font-size: 16px; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.guide p { line-height: 1.75; }
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.drawer {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: min(380px, calc(100vw - 28px));
  max-height: min(70vh, 560px);
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}
@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; }
  .gate-aside { padding: 28px 22px; }
  .gate-aside h1 { font-size: 32px; margin-top: 24px; }
}
