:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #fbfbfd;
  --surface: #f5f5f7;
  --white: #fff;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --line: rgba(29, 29, 31, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
  color-scheme: light;
  color: var(--ink);
  font-family: "SF Pro SC", "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 72%, rgba(0, 113, 227, 0.045), transparent 29%),
    radial-gradient(circle at 82% 27%, rgba(0, 113, 227, 0.09), transparent 33%),
    var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .54; transform: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .72); outline-offset: 3px; }

.admin-site-header {
  position: relative;
  z-index: 5;
  height: 64px;
  border-bottom: 1px solid rgba(29, 29, 31, .08);
  background: rgba(251, 251, 253, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.admin-header-inner {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  align-items: center;
  margin: auto;
}
.admin-brand { display: inline-flex; align-items: center; flex: none; }
.admin-brand img { display: block; width: 105px; max-height: 32px; object-fit: contain; }
.admin-header-divider { width: 1px; height: 18px; margin: 0 20px; background: var(--line); }
.admin-header-name { color: var(--muted); font-size: 13px; font-weight: 600; }
.admin-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 9px 0 9px 12px;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease;
}
.admin-back span { color: var(--blue); font-size: 17px; line-height: 1; transition: transform 180ms ease; }
.admin-back:hover { color: var(--blue); }
.admin-back:hover span { transform: translate(2px, -2px); }

.admin-shell { width: min(1180px, calc(100% - 48px)); margin: auto; }
.admin-auth {
  display: grid;
  min-height: calc(100svh - 64px);
  grid-template-columns: minmax(0, 1fr) minmax(420px, .94fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding: 52px 0 72px;
}
.admin-intro { position: relative; max-width: 565px; }
.admin-intro::before {
  position: absolute;
  z-index: -1;
  top: -80px;
  left: -86px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(0, 113, 227, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}
.admin-eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.admin-intro h1 {
  margin: 0;
  font-size: clamp(3.05rem, 5vw, 4.9rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.admin-intro h1 span, .admin-workspace h2 span { color: var(--blue); }
.admin-intro-lead {
  max-width: 430px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.75vw, 19px);
  line-height: 1.8;
}
.admin-flow { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 48px; }
.admin-flow span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(0, 113, 227, .14);
  border-radius: 999px;
  color: #405065;
  background: rgba(255, 255, 255, .78);
  font-size: 12px;
  font-weight: 600;
}
.admin-flow b { color: var(--blue); font-size: 11px; }
.admin-intro-note { margin: 26px 0 0; color: #929299; font-size: 12px; letter-spacing: .04em; }

.admin-auth-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(0, 113, 227, .12);
  border-radius: 32px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 32px 90px rgba(38, 76, 125, .11), 0 8px 22px rgba(38, 76, 125, .035);
}
.admin-card-topline {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #79bcff 58%, transparent);
}
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-lock-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  color: var(--blue);
  background: rgba(0, 113, 227, .085);
}
.admin-lock-icon svg { width: 24px; height: 24px; }
.admin-card-badge {
  padding: 6px 11px;
  border: 1px solid rgba(0, 113, 227, .12);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(0, 113, 227, .055);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}
.admin-auth-card h2 { margin: 29px 0 3px; font-size: clamp(29px, 3.3vw, 39px); font-weight: 650; letter-spacing: -.04em; }
.admin-card-lead { margin: 0 0 32px; color: var(--muted); font-size: 14px; }
.admin-login-form { display: grid; }
.admin-login-form label { margin-bottom: 10px; font-size: 14px; font-weight: 650; }
.admin-input-wrap { display: flex; height: 56px; align-items: center; border: 1px solid #d8dde5; border-radius: 14px; background: #fbfcff; transition: border-color 180ms ease, box-shadow 180ms ease; }
.admin-input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .09); }
.admin-input-wrap input { width: 100%; min-width: 0; height: 100%; padding: 0 16px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 15px; }
.admin-input-wrap input::placeholder { color: #969da8; }
.admin-toggle-password { flex: none; height: 36px; margin-right: 9px; padding: 0 9px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 600; }
.admin-toggle-password:hover { color: var(--blue); background: rgba(0, 113, 227, .07); }
.admin-primary-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(0, 113, 227, .16);
  font-size: 15px;
  font-weight: 650;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.admin-primary-button span:last-child { font-size: 22px; font-weight: 400; line-height: 1; }
.admin-primary-button:hover:not(:disabled) { background: var(--blue-hover); box-shadow: 0 14px 26px rgba(0, 113, 227, .22); transform: translateY(-2px); }
.admin-challenge { margin-top: 29px; padding-top: 24px; border-top: 1px solid var(--line); animation: admin-enter 260ms ease both; }
.admin-challenge-heading { display: flex; align-items: center; gap: 12px; }
.admin-challenge-heading span { color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.admin-challenge-heading strong { font-size: 15px; }
.admin-challenge p { margin: 7px 0 18px; color: var(--muted); font-size: 13px; }
.admin-challenge [data-admin-turnstile] { display: flex; min-height: 72px; align-items: center; }
.admin-status { margin: 15px 0 0; padding: 10px 13px; border-radius: 10px; color: #a23b35; background: #fff4f2; font-size: 13px; line-height: 1.5; }
.admin-status:empty { display: none; }
.admin-status.is-success { color: #197246; background: #eef9f2; }
.admin-status.is-neutral { color: #365e8f; background: #eef5fd; }
.admin-card-footnote { margin: 30px 0 0; padding-top: 19px; border-top: 1px solid var(--line); color: #888e98; font-size: 12px; }
.admin-card-footnote span { margin-right: 5px; color: var(--blue); }

.admin-workspace { max-width: 1080px; margin: 0 auto; padding: clamp(55px, 7vw, 90px) 0 100px; animation: admin-enter 340ms ease both; }
.admin-workspace-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.admin-workspace-header .admin-eyebrow { margin-bottom: 12px; }
.admin-workspace h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.7rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.14; }
.admin-workspace-header p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.admin-logout { display: inline-flex; flex: none; align-items: center; gap: 10px; min-height: 40px; padding: 0 17px; border: 1px solid #d7dce3; border-radius: 999px; color: #475263; background: rgba(255, 255, 255, .86); font-size: 13px; transition: border-color 180ms ease, color 180ms ease, background 180ms ease; }
.admin-logout:hover { border-color: rgba(0, 113, 227, .25); color: var(--blue); background: var(--white); }
.admin-tabs { display: flex; gap: 8px; margin-top: 43px; padding: 6px; border: 1px solid rgba(0, 113, 227, .09); border-radius: 18px; background: rgba(0, 113, 227, .045); }
.admin-tabs button { flex: 1; min-height: 46px; padding: 7px 16px; border: 0; border-radius: 13px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 600; transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease; }
.admin-tabs button:hover { color: var(--blue); }
.admin-tabs button.is-active { color: var(--blue); background: var(--white); box-shadow: 0 3px 14px rgba(0, 54, 112, .08); }
.admin-tabs [data-admin-count] { margin-left: 5px; color: #8f9ba9; font-size: 12px; }
.admin-workspace-status { margin: 21px 3px 0; color: #a23b35; font-size: 13px; }
.admin-workspace-status:empty { display: none; }
.admin-workspace-status.is-success { color: #197246; }
.admin-workspace-status.is-neutral { color: #58708b; }
.admin-panel { min-height: 160px; margin-top: 22px; }
.admin-help { margin: 4px 3px 19px; color: var(--muted); font-size: 14px; }
.admin-empty { margin: 0; padding: 58px 24px; border: 1px dashed rgba(0, 113, 227, .25); border-radius: 24px; color: var(--muted); background: rgba(255, 255, 255, .72); text-align: center; }
.admin-comment { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: start; gap: 22px; margin-top: 13px; padding: 23px 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 8px 26px rgba(29, 29, 31, .035); }
.admin-comment h3 { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.admin-comment time, .admin-decision { display: block; margin-top: 6px; color: #85858b; font-size: 12px; }
.admin-comment-content { margin: 0; color: #3b4049; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-comment-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-comment-actions button { min-width: 62px; min-height: 34px; padding: 5px 10px; border: 1px solid #dce2ea; border-radius: 999px; color: #596577; background: #fff; font-size: 12px; font-weight: 600; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.admin-comment-actions button:hover:not(:disabled) { transform: translateY(-1px); }
.admin-comment-actions button:first-child { border-color: var(--blue); color: #fff; background: var(--blue); }
.admin-comment-actions button:first-child:hover:not(:disabled) { background: var(--blue-hover); }
.admin-comment-actions button:nth-child(2):hover:not(:disabled) { border-color: #dba7a7; color: #a23b35; background: #fff5f3; }
.admin-comment-actions button:nth-child(3):hover:not(:disabled) { border-color: #b6c0cd; background: #f5f7fa; }
.admin-decision { margin-top: 2px; white-space: nowrap; }
.admin-more { display: block; min-height: 44px; margin: 24px auto 0; padding: 0 24px; border: 1px solid #cad8ea; border-radius: 999px; color: var(--blue); background: var(--white); font-size: 13px; font-weight: 650; }
.admin-more:hover { background: rgba(0, 113, 227, .055); }

@keyframes admin-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 880px) {
  .admin-auth { grid-template-columns: 1fr; max-width: 590px; gap: 34px; margin: auto; padding-top: 56px; }
  .admin-intro { max-width: 590px; }
  .admin-intro h1 { font-size: clamp(3.15rem, 8vw, 4.6rem); }
  .admin-intro-lead { margin-top: 19px; }
  .admin-flow { margin-top: 26px; }
  .admin-intro-note { display: none; }
  .admin-auth-card { max-width: none; }
}
@media (max-width: 620px) {
  .admin-header-inner, .admin-shell { width: calc(100% - 32px); }
  .admin-header-divider, .admin-header-name { display: none; }
  .admin-back { font-size: 12px; }
  .admin-auth { gap: 29px; padding: 44px 0 72px; }
  .admin-eyebrow { margin-bottom: 15px; }
  .admin-intro h1 { font-size: clamp(2.4rem, 9.5vw, 4rem); }
  .admin-intro-lead { font-size: 15px; line-height: 1.7; }
  .admin-flow { gap: 6px; }
  .admin-flow span { min-height: 34px; padding-inline: 9px; font-size: 11px; }
  .admin-auth-card { padding: 27px 22px; border-radius: 26px; }
  .admin-auth-card h2 { margin-top: 24px; }
  .admin-workspace { padding-top: 54px; }
  .admin-workspace-header { flex-wrap: wrap; align-items: start; }
  .admin-workspace-header p:last-child { font-size: 14px; }
  .admin-logout { padding-inline: 11px; font-size: 12px; }
  .admin-tabs { margin-top: 31px; }
  .admin-tabs button { padding-inline: 8px; font-size: 12px; }
  .admin-comment { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .admin-comment time { margin-top: 2px; }
  .admin-comment-actions { margin-top: 2px; }
  .admin-decision { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
