/* goradius-proxy console — design tokens (deep-teal bands, bright green pill CTAs, white cards) */

/* Self-hosted fonts (no CDN): Pretendard v1.3.9 (SIL OFL 1.1), Lucide icon font v0.454.0 (ISC).
   Licenses: /static/fonts/LICENSE-Pretendard.txt, /static/fonts/LICENSE-Lucide.txt */
@font-face {
  font-family: "Pretendard Variable";
  src: url("/static/fonts/PretendardVariable.woff2") format("woff2-variations"), url("/static/fonts/PretendardVariable.woff2") format("woff2");
  font-weight: 45 920; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "lucide";
  src: url("/static/fonts/lucide.woff2") format("woff2");
  font-weight: normal; font-style: normal; font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
  font-family: "lucide" !important; speak: never; font-style: normal; font-weight: normal; font-variant: normal;
  text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.icon-shield-check:before { content: "\e1ff"; }
.icon-layout-dashboard:before { content: "\e1c1"; }
.icon-history:before { content: "\e1f5"; }
.icon-users:before { content: "\e1a4"; }
.icon-shield-off:before { content: "\e15e"; }
.icon-user-cog:before { content: "\e346"; }
.icon-settings:before { content: "\e158"; }
.icon-log-out:before { content: "\e112"; }
.icon-download:before { content: "\e0b6"; }
:root {
  /* brand */
  --brand-green: #00ed64;
  --brand-green-pressed: #00c454;
  --brand-green-dark: #00684a;
  --brand-green-mid: #00a35c;
  --brand-green-soft: #e3fcf7;
  --brand-teal-deep: #001e2b;
  --brand-teal: #023430;
  --brand-teal-mid: #0c3b47;
  /* surface */
  --canvas: #ffffff;
  --canvas-dark: #112733;
  --surface: #f9fbfa;
  --surface-soft: #f5f7f6;
  --surface-feature: #e3fcf7;
  --hairline: #e8edeb;
  --hairline-soft: #f0f3f2;
  --hairline-strong: #c1c7c6;
  --hairline-dark: #3d4f58;
  /* text */
  --ink: #001e2b;
  --charcoal: #1c2d38;
  --slate: #3d4f58;
  --steel: #5c6c75;
  --stone: #889397;
  --muted: #b8c4c2;
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.72);
  /* semantic */
  --warning-bg: #fef7db;
  --warning-text: #944f01;
  --warning-border: #ffec9e;
  --danger: #db3030;
  --danger-bg: #ffeae5;
  --danger-border: #ffcdc7;
  /* shape */
  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-full: 9999px;
  /* elevation */
  --e1: 0 1px 2px rgba(0, 30, 43, 0.04);
  --e2: 0 4px 12px rgba(0, 30, 43, 0.08);
  --e3: 0 12px 24px -4px rgba(0, 30, 43, 0.12);
  /* type */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --ease: 160ms ease;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-green-dark); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand-green-dark); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; margin: 0; }
h1 { font-size: 28px; line-height: 1.3; letter-spacing: -0.3px; }
h2 { font-size: 18px; line-height: 1.4; }
p { margin: 0 0 12px; }
strong { font-weight: 600; }
.muted { color: var(--steel); }
.small { font-size: 14px; }
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--brand-green-dark); margin: 0 0 8px;
}

/* ---------- shell: dark-teal sidebar (desktop) / top bar (mobile) ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 264px; flex-shrink: 0; background: var(--brand-teal-deep); color: var(--on-dark);
  padding: 24px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-weight: 600; font-size: 16px; padding: 0 8px; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: var(--r-md); background: var(--brand-green);
  display: inline-flex; align-items: center; justify-content: center; color: var(--brand-teal-deep);
  font-size: 15px; font-weight: 700;
}
.menu { display: flex; flex-direction: column; flex: 1; margin-top: 28px; }
.menu-toggle { display: none; }
#menu-open { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.nav { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: block; padding: 10px 12px; border-radius: var(--r-md); color: var(--on-dark-muted);
  font-size: 14px; font-weight: 500; transition: background var(--ease), color var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--on-dark); text-decoration: none; }
.nav a.active { background: rgba(0, 237, 100, 0.12); color: var(--brand-green); box-shadow: inset 3px 0 0 var(--brand-green); }
.nav-section {
  font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--stone); margin: 4px 12px 8px;
}
.nav-user { margin-top: auto; border-top: 1px solid var(--hairline-dark); padding: 16px 8px 0; }
.nav-email { font-size: 13px; color: var(--on-dark-muted); word-break: break-all; margin-bottom: 10px; }
/* sits just above the line over the signed-in user; takes over pushing the block to the bottom */
.nav-version { margin-top: auto; padding: 0 8px 10px; font-size: 11px; color: var(--stone); letter-spacing: 0.3px; }
.nav-version + .nav-user { margin-top: 0; }
.nav-version span { font-family: var(--mono); color: var(--on-dark-muted); }

.content { flex: 1; min-width: 0; padding: 40px 48px 64px; }
.page { max-width: 1120px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; }

/* ---------- cards ---------- */
.card {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 20px;
}
.card > h2 { margin-bottom: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head p { margin: 2px 0 0; }

/* ---------- hero band ---------- */
.hero {
  background: radial-gradient(120% 140% at 100% 0%, var(--brand-teal-mid) 0%, var(--brand-teal-deep) 55%);
  color: var(--on-dark); border-radius: var(--r-xl); padding: 40px; margin-bottom: 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px; align-items: center;
}
.hero h1 { color: var(--on-dark); font-size: 36px; line-height: 1.2; letter-spacing: -0.5px; font-weight: 600; }
.hero .eyebrow { color: var(--brand-green); }
.hero-lead { color: var(--on-dark-muted); font-size: 16px; margin: 12px 0 24px; }
.hero-id { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-muted); font-size: 14px; margin-bottom: 20px; }
.hero-id code { font-family: var(--mono); color: var(--on-dark); background: rgba(255, 255, 255, 0.08); padding: 2px 8px; border-radius: var(--r-sm); }
.hero-status { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; color: var(--on-dark-muted); font-size: 14px; }
.hero-status strong { color: var(--on-dark); }

/* terminal-style mockup: shows what to type into the VPN password field */
.mockup {
  background: var(--canvas-dark); border: 1px solid var(--hairline-dark); border-radius: var(--r-lg);
  box-shadow: var(--e3); overflow: hidden; font-size: 14px; line-height: 1.6;
}
.mockup-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--hairline-dark); }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-dark); }
.mockup-body { padding: 16px 18px; color: var(--on-dark); }
.mockup-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; padding: 2px 0; }
.mockup-val { font-family: var(--mono); word-break: break-all; }
.mockup-key { color: var(--stone); min-width: 84px; font-size: 13px; }
.mockup-pw { color: var(--on-dark-muted); }
.mockup-code { color: var(--brand-green); font-weight: 600; }
.mockup-note { color: var(--stone); font-family: var(--font); font-size: 13px; margin-top: 12px; }

/* ---------- buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 9px 22px; border-radius: var(--r-full);
  border: 1px solid var(--hairline-strong); background: transparent; color: var(--ink);
  font: 600 14px/1.3 var(--font); cursor: pointer; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover { text-decoration: none; background: var(--surface-soft); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-green); border-color: var(--brand-green); color: var(--brand-teal-deep); }
.btn-primary:hover { background: var(--brand-green-pressed); border-color: var(--brand-green-pressed); }
.btn-lg { min-height: 48px; padding: 12px 28px; font-size: 15px; }
.btn-sm { min-height: 32px; padding: 6px 14px; font-size: 13px; }
.btn-danger { color: var(--danger); border-color: var(--danger-border); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-on-dark { color: var(--on-dark); border-color: var(--hairline-dark); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.06); }
.btn-link { border: none; background: none; min-height: 0; padding: 0; color: var(--brand-green-dark); font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; }
.sidebar .btn-link { color: var(--on-dark-muted); font-size: 13px; }
.sidebar .btn-link:hover { color: var(--on-dark); }
.btn-google { gap: 10px; }
.btn-google svg { width: 18px; height: 18px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }

/* ---------- banners / flash ---------- */
.banner, .flash {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md);
  border: 1px solid var(--hairline); background: var(--surface); font-size: 14px; margin: 0 0 16px;
}
.banner::before, .flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; background: var(--steel); }
.banner-warn { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
.banner-warn::before { background: #e8a000; }
.flash { background: var(--brand-green-soft); border-color: #c0fae6; color: var(--brand-green-dark); }
.flash::before { background: var(--brand-green-mid); }
.flash-error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.flash-error::before { background: var(--danger); }
.hero .flash { margin: 0 0 20px; }
.error-message { color: var(--danger); margin-top: 12px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 20px; }
.stat-label { font-size: 13px; color: var(--steel); font-weight: 500; }
.stat-value { font-size: 32px; font-weight: 600; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat-accent { border-top: 3px solid var(--brand-green); }
.stat-danger .stat-value { color: var(--danger); }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hairline-soft); font-size: 14px; }
.kv:first-of-type { border-top: none; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.4;
  padding: 3px 10px; border-radius: var(--r-full); background: var(--surface-soft); color: var(--slate);
  border: 1px solid var(--hairline); white-space: nowrap;
}
.badge-ok { background: var(--brand-green-soft); border-color: #c0fae6; color: var(--brand-green-dark); }
.badge-fail { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.badge-warn { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
.badge-dark { background: var(--brand-teal-deep); border-color: var(--brand-teal-deep); color: var(--brand-green); }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.form-section { border-top: 1px solid var(--hairline); padding-top: 20px; }
.form-section > h2 { margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--charcoal); }
.field .hint { font-weight: 400; font-size: 13px; color: var(--steel); }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], select {
  font: 400 15px/1.4 var(--font); color: var(--ink); background: var(--canvas);
  height: 44px; padding: 0 14px; border: 1px solid var(--hairline-strong); border-radius: var(--r-md);
  width: 100%; transition: border-color var(--ease), box-shadow var(--ease);
}
input:focus, select:focus { outline: none; border-color: var(--brand-green-dark); box-shadow: 0 0 0 1px var(--brand-green-dark); }
input::placeholder { color: var(--stone); }
.field-error { color: var(--danger); font-size: 13px; font-weight: 500; }
.choice-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--hairline-strong);
  border-radius: var(--r-lg); cursor: pointer; transition: border-color var(--ease), background var(--ease);
}
.choice:has(input:checked) { border: 2px solid var(--brand-green); background: var(--surface-feature); padding: 15px; }
.choice input { margin-top: 4px; accent-color: var(--brand-green-dark); width: 18px; height: 18px; }
.choice-title { font-weight: 600; font-size: 15px; display: block; }
.choice-desc { color: var(--steel); font-size: 13px; display: block; margin-top: 2px; font-weight: 400; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 160px; }
.toolbar .btn { flex: 0 0 auto; }

/* ---------- pill tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.tabs a {
  padding: 7px 16px; border-radius: var(--r-full); border: 1px solid var(--hairline);
  color: var(--steel); font-size: 14px; font-weight: 500; background: var(--canvas);
}
.tabs a:hover { text-decoration: none; border-color: var(--hairline-strong); color: var(--ink); }
.tabs a.active { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }

/* ---------- tables (stack into cards on mobile via data-label) ---------- */
.table-wrap { border: 1px solid var(--hairline); border-radius: var(--r-md); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--canvas); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); font-size: 14px; vertical-align: middle; }
th { background: var(--surface); color: var(--steel); font-weight: 600; font-size: 12px; letter-spacing: 0.4px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface); }
td.num, .mono { font-family: var(--mono); font-size: 13px; }
td.nowrap { white-space: nowrap; }
td.cell-actions { text-align: right; white-space: nowrap; }
td.cell-actions form { display: inline-block; margin: 0 0 0 6px; }
.empty { text-align: center; padding: 32px 16px; color: var(--steel); background: var(--surface); border-radius: var(--r-md); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; font-size: 14px; color: var(--steel); }

/* ---------- auth pages (login / error) ---------- */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: radial-gradient(90% 70% at 85% 0%, var(--brand-teal-mid) 0%, var(--brand-teal-deep) 60%);
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--canvas); border-radius: var(--r-xl);
  padding: 40px 36px; box-shadow: var(--e3);
}
.auth-card .brand { color: var(--ink); padding: 0; margin-bottom: 28px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .btn { width: 100%; margin-top: 20px; }
.auth-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--steel); }

/* ---------- countdown ---------- */
.countdown { font-variant-numeric: tabular-nums; }

/* ================= responsive ================= */
@media (max-width: 1023px) {
  .content { padding: 32px 24px 56px; }
  .hero { grid-template-columns: 1fr; padding: 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .shell { flex-direction: column; }
  .sidebar { width: auto; height: auto; position: sticky; top: 0; z-index: 10; padding: 0 16px; }
  .sidebar-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
  .brand { padding: 0; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    margin-right: -10px; border-radius: var(--r-md); cursor: pointer; color: var(--on-dark);
  }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu { display: none; margin: 0; padding: 4px 0 16px; border-top: 1px solid var(--hairline-dark); }
  #menu-open:checked ~ .menu { display: flex; }
  .nav a { padding: 12px; font-size: 15px; }
  .nav-user { margin-top: 8px; padding: 12px 12px 0; }

  .content { padding: 20px 16px 48px; }
  h1 { font-size: 24px; }
  .page-head { margin-bottom: 16px; }
  .card { padding: 20px 16px; border-radius: var(--r-lg); }
  .hero { padding: 28px 20px; border-radius: var(--r-lg); gap: 24px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 15px; }
  .hero .actions .btn, .hero .actions form { width: 100%; }
  .hero .actions .btn { min-height: 48px; }
  .stats { gap: 12px; }
  .stat { padding: 16px; }
  .stat-value { font-size: 26px; }
  .form-grid, .choice-group { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; min-height: 48px; }
  .toolbar input, .toolbar select, .toolbar .btn { flex: 1 1 100%; }
  .toolbar .btn { min-height: 44px; }
  .tabs a { padding: 10px 16px; }

  /* tables become stacked cards */
  .table-wrap { border: none; border-radius: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { border: 1px solid var(--hairline); border-radius: var(--r-lg); margin-bottom: 10px; padding: 6px 0; background: var(--canvas); }
  tbody tr:hover td { background: transparent; }
  td { display: flex; justify-content: space-between; gap: 16px; border-bottom: none; padding: 7px 16px; text-align: right; word-break: break-word; }
  td::before { content: attr(data-label); color: var(--steel); font: 500 13px/1.5 var(--font); text-align: left; flex-shrink: 0; }
  td[data-label=""]::before { content: none; }
  td.cell-actions { justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--hairline-soft); margin-top: 4px; }
  td.cell-actions:empty { display: none; }   /* e.g. a fixed admin: no button, no empty strip */
  td.cell-actions form { margin: 0 0 0 6px; }
  td.cell-actions .btn { min-height: 40px; }
  .auth-card { padding: 32px 24px; }
}

@media (max-width: 479px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 22px; }
  .hero h1 { font-size: 26px; }
}
.banner-gap { margin-top: 16px; }

/* status pill (upstream health) */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; border: 1px solid var(--hairline); background: var(--surface); color: var(--slate); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); }
.status-ok { background: var(--brand-green-soft); border-color: #c0fae6; color: var(--brand-green-dark); }
.status-ok .status-dot { background: var(--brand-green-mid); box-shadow: 0 0 0 3px rgba(0, 163, 92, 0.18); }
.status-fail { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.status-fail .status-dot { background: var(--danger); }


/* notification bell (admin system warnings) */
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: relative; }
.top-actions { display: flex; align-items: center; gap: 4px; }
.notice { position: relative; }
.notice summary {
  list-style: none; cursor: pointer; position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-md); color: var(--on-dark-muted);
}
.notice summary::-webkit-details-marker { display: none; }
.notice summary:hover, .notice[open] summary { background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.notice summary svg { width: 20px; height: 20px; }
.notice-count {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full);
  background: var(--brand-green); color: var(--brand-teal-deep); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--brand-teal-deep);
}
.notice-panel {
  position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 340px; max-width: calc(100vw - 32px);
  background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: 0 16px 48px -8px rgba(0, 30, 43, 0.16); padding: 8px;
}
.notice-head { font-size: 12px; font-weight: 600; letter-spacing: 0.6px; color: var(--steel); padding: 8px 10px; }
.notice-item {
  margin: 0; padding: 10px 12px 10px 28px; border-radius: var(--r-md); font-size: 13px; line-height: 1.5; position: relative;
  background: var(--warning-bg); color: var(--warning-text);
}
.notice-item + .notice-item { margin-top: 6px; }
.notice-item::before { content: ""; position: absolute; left: 12px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: #e8a000; }
.notice-empty { margin: 0; padding: 14px 10px; font-size: 13px; color: var(--steel); }
@media (max-width: 767px) {
  .notice { position: static; }
  .notice-panel { left: auto; right: 0; top: 56px; }
}

/* info button + tooltip (hover, keyboard focus, or tap via app.js) */
.info { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.info-btn {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--canvas);
  color: var(--steel); font: 700 11px/1 var(--font); font-style: italic; cursor: help; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.info-btn:hover, .info-btn:focus-visible, .info.open .info-btn { border-color: var(--warning-text); color: var(--warning-text); background: var(--warning-bg); }
.info-tip {
  position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: 280px; max-width: calc(100vw - 48px); padding: 10px 12px; border-radius: var(--r-md);
  background: var(--brand-teal-deep); color: var(--on-dark); font-size: 13px; font-weight: 400; line-height: 1.5;
  box-shadow: 0 12px 24px -4px rgba(0, 30, 43, 0.24); visibility: hidden; opacity: 0; transition: opacity var(--ease);
  pointer-events: none; white-space: normal; text-align: left;   /* not inherited from table cells */
}
.info-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--brand-teal-deep);
}
.info:hover .info-tip, .info-btn:focus-visible + .info-tip, .info.open .info-tip { visibility: visible; opacity: 1; }
/* A badge that is itself the info button (e.g. 고정 on the admins list) */
.info-badge { margin-left: 0; }
.info-btn.badge { width: auto; height: auto; padding: 3px 10px; border-radius: var(--r-full); font: 600 12px/1.4 var(--font); font-style: normal; }
.info-btn.badge-dark { background: var(--brand-teal-deep); border-color: var(--brand-teal-deep); color: var(--brand-green); }
.info-badge .info-btn.badge-dark:hover, .info-badge .info-btn.badge-dark:focus-visible, .info-badge.open .info-btn.badge-dark {
  background: var(--brand-teal-deep); border-color: var(--brand-green); color: var(--brand-green);
}
.table-wrap:has(.info-badge) { overflow: visible; }   /* narrow table; let the tooltip leave the box */
@media (max-width: 767px) {
  .info { position: static; }
  .choice { position: relative; }
  tr:has(.info-badge) { position: relative; }
  .info-tip { left: 12px; right: 12px; width: auto; max-width: none; transform: none; bottom: calc(100% + 6px); }
  .info-tip::after { left: 50%; }
}

/* nav icons (Lucide icon font) */
.nav a { display: flex; align-items: center; gap: 10px; }
.nav a i, .nav-user .btn-link i { font-size: 18px; line-height: 1; width: 20px; text-align: center; flex-shrink: 0; opacity: 0.85; }
.nav a.active i { opacity: 1; }
.nav-user .btn-link { gap: 8px; }

/* brand: Korean logo + product name */
/* The logo's wordmark sits in the lower ~70% of the image (the bird rises above it), so the
   product name is centred on the wordmark band, not on the image: shifted down by 10% of --logo-h. */
.brand { --logo-h: 22px; gap: 10px; min-width: 0; }
.brand-logo { display: block; height: var(--logo-h); width: auto; flex-shrink: 0; }
.brand-name {
  font-size: 13px; font-weight: 600; padding-left: 10px; border-left: 1px solid var(--hairline-dark);
  line-height: 1.2; white-space: nowrap; margin-top: calc(var(--logo-h) * 0.2);
}
.sidebar .brand { padding: 0 4px; }
.auth-card .brand { --logo-h: 30px; }
.auth-card .brand-name { font-size: 14px; padding-left: 12px; }
.auth-card .brand-name { color: var(--slate); border-left-color: var(--hairline); }
@media (max-width: 767px) { .brand { --logo-h: 22px; } .brand-name { font-size: 13px; padding-left: 10px; } }

/* Google sign-in button per Google branding guidelines (light theme) */
.btn-gsi {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 24px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--r-full);
  background: #ffffff; border: 1px solid #747775; color: #1f1f1f;
  font: 500 15px/20px var(--font); letter-spacing: 0.25px; text-decoration: none;
  transition: background var(--ease), box-shadow var(--ease);
}
.btn-gsi:hover { text-decoration: none; background: #f8faff; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15); }
.btn-gsi:active { background: #eef3fd; }
.btn-gsi:focus-visible { outline: 2px solid #4285f4; outline-offset: 2px; }
.btn-gsi svg { width: 20px; height: 20px; flex-shrink: 0; }

/* visually hidden, still announced by screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-card .brand { margin-bottom: 0; }
.auth-card .btn-gsi { margin-top: 28px; }

/* Mailed approval link page */
.auth-card .brand + h1 { margin-top: 28px; font-size: 22px; }
.account-chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--brand-green-soft);
  color: var(--brand-green-dark); border: 1px solid #c0f0de; font-weight: 700; font-size: 0.95em; }
.account-chip { white-space: nowrap; line-height: 1.5; }
.time-chip { font-variant-numeric: tabular-nums; margin-right: 2px; }
.auth-card p:has(.account-chip) { line-height: 2; }
/* Korean text wraps between words, never inside one (long tokens such as emails still break) */
body { word-break: keep-all; overflow-wrap: break-word; }

/* Desktop tables keep each cell on one line (the wrapper scrolls sideways if needed);
   the mobile card layout below 768px wraps normally. */
@media (min-width: 768px) { td { white-space: nowrap; } }
/* Several items in one table cell (text + badges, badge + reason) stay together; mobile cards
   put a cell's value on the right, so the group is right-aligned there. Badges never squeeze. */
.cell-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.badge { flex-shrink: 0; white-space: nowrap; }
.history-reason { color: var(--steel); font-size: 13px; }
@media (max-width: 767px) {
  .cell-group { justify-content: flex-end; }
  .history-reason { order: -1; text-align: right; }   /* reason, then the badge at the card's right edge */
}

/* Modal confirm dialog (<dialog>, opened by app.js) */
.modal {
  width: min(420px, calc(100vw - 32px)); padding: 24px; border: none; border-radius: var(--r-lg);
  background: var(--canvas); color: var(--ink); box-shadow: 0 24px 48px -12px rgba(0, 30, 43, 0.35);
}
.modal::backdrop { background: rgba(0, 30, 43, 0.55); }
.modal h2 { font-size: 18px; margin: 0 0 10px; }
.modal p { margin: 0 0 8px; color: var(--slate); }
.modal-warn { color: var(--danger) !important; font-weight: 600; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
