/* ============================================================
   花野 · huaye.raccoon-kingdom.cn
   iOS 26 "Liquid Glass" 设计语言
   ============================================================ */

/* ---------- 字体（Apple 系统字体栈） ---------- */
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Menlo", "Monaco", "Consolas", monospace;

  /* 尺寸 */
  --sidebar-w: 264px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  /* 过渡 */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 亮色主题 ---------- */
:root {
  color-scheme: light;

  --bg-base: #eef1f8;
  --text-1: #0b1220;
  --text-2: #3c4658;
  --text-3: #7a8496;

  --glass-bg: rgba(255, 255, 255, 0.52);
  --glass-bg-strong: rgba(255, 255, 255, 0.66);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-border-soft: rgba(255, 255, 255, 0.35);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --glass-shadow: 0 20px 50px -20px rgba(30, 45, 80, 0.35);

  --accent: #0a84ff;
  --accent-2: #5ac8fa;
  --accent-grad: linear-gradient(135deg, #0a84ff 0%, #5ac8fa 100%);

  --card-hover: rgba(255, 255, 255, 0.72);
  --hairline: rgba(15, 23, 42, 0.08);
}

/* ---------- 暗色主题 ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg-base: #0b0d14;
    --text-1: #f2f5fb;
    --text-2: #b8c1d4;
    --text-3: #7c8599;

    --glass-bg: rgba(24, 28, 40, 0.46);
    --glass-bg-strong: rgba(24, 28, 40, 0.62);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-soft: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.10);
    --glass-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);

    --card-hover: rgba(32, 38, 54, 0.68);
    --hairline: rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-base: #0b0d14;
  --text-1: #f2f5fb;
  --text-2: #b8c1d4;
  --text-3: #7c8599;
  --glass-bg: rgba(24, 28, 40, 0.46);
  --glass-bg-strong: rgba(24, 28, 40, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-soft: rgba(255, 255, 255, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.10);
  --glass-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --card-hover: rgba(32, 38, 54, 0.68);
  --hairline: rgba(255, 255, 255, 0.08);
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
::selection { background: rgba(10, 132, 255, 0.22); }

/* ---------- 液态玻璃背景 ---------- */
.bg {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(90, 200, 250, 0.35), transparent 60%),
    radial-gradient(1000px 700px at -10% 20%, rgba(90, 120, 255, 0.28), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(255, 140, 190, 0.30), transparent 55%),
    var(--bg-base);
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: float 22s var(--ease) infinite;
}
@media (prefers-color-scheme: dark) {
  .blob { mix-blend-mode: normal; opacity: 0.28; }
}
.blob-1 { width: 46vw; height: 46vw; top: -12vw; left: -10vw;
  background: radial-gradient(circle at 30% 30%, #7cc6ff, #3a7bff); }
.blob-2 { width: 40vw; height: 40vw; bottom: -14vw; right: -8vw;
  background: radial-gradient(circle at 60% 40%, #ff9ecf, #b06bff); animation-delay: -6s; }
.blob-3 { width: 30vw; height: 30vw; top: 40%; left: 55%;
  background: radial-gradient(circle at 50% 50%, #6ff0d0, #35c4a6); animation-delay: -12s; }
.blob-4 { width: 26vw; height: 26vw; top: 6%; left: 42%;
  background: radial-gradient(circle at 50% 50%, #ffd98a, #ff9d5c); animation-delay: -3s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, 3vh) scale(1.08); }
  66% { transform: translate(-3vw, -2vh) scale(0.94); }
}
.bg-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ---------- 玻璃材质 ---------- */
.glass {
  background:
    linear-gradient(180deg, var(--glass-highlight), transparent 40%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  position: relative;
}
.glass-soft {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border-soft);
}

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex; flex-direction: column;
  margin: 12px 0 12px 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.side-top {
  display: flex; align-items: center; gap: 14px;
  padding: 26px 22px 18px;
}
.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar {
  width: 56px; height: 56px; border-radius: 18px;
  object-fit: cover;
  display: block;
  background: var(--accent-grad);
  box-shadow: 0 10px 24px -8px rgba(10, 132, 255, 0.7);
  -webkit-user-drag: none; user-select: none; pointer-events: auto; cursor: pointer;
}
.status-dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #34c759; border: 3px solid var(--bg-base);
}
.name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.tagline { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }

.nav {
  flex: 1; overflow-y: auto;
  padding: 6px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--text-2);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  border: 1px solid transparent;
  user-select: none;
}
.nav-item:hover { color: var(--text-1); background: rgba(255,255,255,0.28); }
.nav-item.active {
  color: var(--text-1);
  background: var(--card-hover);
  border-color: var(--glass-border-soft);
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.25);
}
.nav-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 17px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(10,132,255,0.16), rgba(90,200,250,0.16));
}
.nav-item.active .nav-icon {
  background: var(--accent-grad);
  box-shadow: 0 6px 14px -4px rgba(10,132,255,0.6);
}
.nav-item.active .nav-icon svg, .nav-item.active .nav-icon { filter: none; }
.nav-count {
  margin-left: auto; font-size: 11.5px; color: var(--text-3);
  background: rgba(0,0,0,0.05); padding: 1px 8px; border-radius: 20px;
}
:root[data-theme="dark"] .nav-count { background: rgba(255,255,255,0.08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-count { background: rgba(255,255,255,0.08); }
}

.side-bottom {
  padding: 14px 16px 18px;
  display: flex; gap: 10px; align-items: center;
}
.lang-switch {
  flex: 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px; border-radius: 20px;
  cursor: pointer; user-select: none;
  position: relative;
}
.lang-opt {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600;
  padding: 5px 0; z-index: 2;
  color: var(--text-3); transition: color 0.25s;
}
.lang-opt.on { color: var(--text-1); }
.lang-thumb {
  position: absolute; top: 5px; bottom: 5px; width: 46%;
  border-radius: 16px;
  background: var(--accent-grad);
  box-shadow: 0 6px 14px -6px rgba(10,132,255,0.8);
  transition: transform 0.35s var(--spring);
  left: 5px;
}
.lang-switch[data-lang="en"] .lang-thumb { transform: translateX(100%); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center; cursor: pointer;
  font-size: 16px; color: var(--text-2);
  flex-shrink: 0;
}
.theme-toggle .icon-sun, .theme-toggle .icon-moon { position: absolute; transition: opacity .25s, transform .25s; }
.theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(90deg); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0); }

/* ---------- 主内容 ---------- */
.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 40px 40px 20px;
  max-width: 1180px;
  width: 100%;
}
.main-inner { min-height: 70vh; }

.footer {
  text-align: center; padding: 34px 0 20px;
  color: var(--text-3); font-size: 13px;
}

.menu-btn, .sidebar-overlay { display: none; }

/* ---------- 卡片与列表 ---------- */
.page-head { margin-bottom: 30px; }
.page-head h2 {
  font-size: 34px; font-weight: 700; letter-spacing: -0.03em;
}
.page-head p { color: var(--text-3); margin-top: 8px; font-size: 15px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.3s var(--spring), background 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  box-shadow: 0 26px 54px -26px rgba(20, 40, 90, 0.5);
}
.card .cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  cursor: pointer; width: fit-content;
}
.card .cat:hover { text-decoration: underline; opacity: 0.8; }
.card h3 { font-size: 17.5px; font-weight: 650; line-height: 1.35; }
.card .abstract { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.card .meta { display: flex; align-items: center; gap: 8px; margin-top: auto; color: var(--text-3); font-size: 12.5px; }
.card .pdf-tag {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px;
  background: rgba(255, 59, 48, 0.12); color: #ff3b30;
  font-size: 12px; font-weight: 600;
}
:root[data-theme="dark"] .card .pdf-tag { color: #ff6961; background: rgba(255, 59, 48, 0.16); }

/* 列表（横向） */
.list { display: flex; flex-direction: column; gap: 14px; }
.list-item {
  display: flex; align-items: baseline; gap: 20px;
  padding: 18px 22px; border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform 0.28s var(--spring), background 0.28s, box-shadow 0.28s;
}
.list-item:hover { transform: translateX(4px); background: var(--card-hover); }
.list-item .date { flex-shrink: 0; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.list-item .body { flex: 1; }
.list-item h3 { font-size: 16.5px; font-weight: 620; }
.list-item .abstract { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.list-item .pdf-tag { margin-left: 12px; }

/* 论文/调研 —— 标题 + 摘要 + PDF */
.paper-item {
  padding: 22px; border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.paper-item h3 { font-size: 18px; font-weight: 650; }
.paper-item .paper-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.paper-item .chip {
  font-size: 12px; color: var(--text-2);
  background: rgba(0,0,0,0.045); padding: 3px 10px; border-radius: 16px;
}
:root[data-theme="dark"] .paper-item .chip { background: rgba(255,255,255,0.07); }
.paper-item .abstract { color: var(--text-2); font-size: 14.5px; line-height: 1.7; }
.paper-item .pdf-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px;
  padding: 9px 18px; border-radius: 14px;
  background: var(--accent-grad); color: #fff;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 22px -8px rgba(10,132,255,0.7);
  transition: transform 0.25s var(--spring);
}
.paper-item .pdf-btn:hover { transform: translateY(-2px); }

/* ---------- 文章详情 ---------- */
.article {
  max-width: 720px; margin: 0 auto;
  padding: 8px 4px 60px;
}
.article .art-head { margin-bottom: 34px; }
.article .art-cat {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.article h1 {
  font-size: 34px; font-weight: 720; letter-spacing: -0.03em; line-height: 1.2;
}
.article .art-note {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 13px; font-weight: 500; line-height: 1.5;
  color: #9a6b00;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.14), rgba(255, 214, 10, 0.10));
  border: 1px solid rgba(255, 179, 0, 0.28);
}
:root[data-theme="dark"] .article .art-note { color: #f5c518; }

/* 获奖信息（卡片 / 列表 / 正文内，标题下方；多条分行显示） */
.note-list {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 2px;
}
.note-item {
  align-self: flex-start;
  max-width: 100%;
  padding: 4px 11px; border-radius: 10px;
  font-size: 12.5px; font-weight: 500; line-height: 1.45;
  color: #9a6b00;
  background: linear-gradient(135deg, rgba(255, 179, 0, 0.14), rgba(255, 214, 10, 0.10));
  border: 1px solid rgba(255, 179, 0, 0.28);
}
:root[data-theme="dark"] .note-item { color: #f5c518; }
.paper-item .note-list { margin-bottom: 4px; }
.list-item .note-list { margin-top: 4px; }
.article .note-list { margin-top: 4px; }
.article .note-item { font-size: 13.5px; padding: 6px 14px; border-radius: 12px; }
.article .art-meta { margin-top: 14px; color: var(--text-3); font-size: 14px; display: flex; gap: 14px; align-items: center; }
.article .art-body { font-size: 16.5px; line-height: 1.85; color: var(--text-1); }
.article .art-body > * { margin: 0 0 1.1em; }
.article .art-body h2 {
  font-size: 24px; font-weight: 680; margin: 1.6em 0 0.7em; letter-spacing: -0.02em;
}
.article .art-body h3 { font-size: 19px; font-weight: 650; margin: 1.4em 0 0.5em; }
.article .art-body h4 { font-size: 16px; font-weight: 650; margin: 1.2em 0 0.4em; }
.article .art-body p { color: var(--text-1); }
.article .art-body a { border-bottom: 1px solid rgba(10,132,255,0.35); }
.article .art-body ul, .article .art-body ol { padding-left: 1.4em; }
.article .art-body li { margin: 0.35em 0; }
.article .art-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 18px; margin: 1.4em 0;
  color: var(--text-2);
  background: rgba(10,132,255,0.05);
  border-radius: 0 12px 12px 0;
}
.article .art-body code {
  font-family: var(--font-mono); font-size: 0.86em;
  background: rgba(0,0,0,0.06); padding: 2px 6px; border-radius: 6px;
}
:root[data-theme="dark"] .article .art-body code { background: rgba(255,255,255,0.1); }
.article .art-body pre {
  background: rgba(0,0,0,0.06); padding: 18px; border-radius: 14px;
  overflow-x: auto; font-size: 14px; line-height: 1.6;
}
:root[data-theme="dark"] .article .art-body pre { background: rgba(255,255,255,0.07); }
.article .art-body pre code { background: none; padding: 0; }
.article .art-body img { max-width: 100%; border-radius: 16px; }
.article .art-body hr { border: none; height: 1px; background: var(--hairline); margin: 2em 0; }
.article .art-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.article .art-body th, .article .art-body td { border: 1px solid var(--hairline); padding: 8px 12px; text-align: left; }
.article .art-body th { background: rgba(0,0,0,0.03); }
:root[data-theme="dark"] .article .art-body th { background: rgba(255,255,255,0.05); }

/* ---------- 首页 ---------- */
.hero { padding: 40px 8px 10px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
}
.hero-text { min-width: 0; }
.hero .hi { font-size: 15px; color: var(--text-3); }
.hero h1 {
  font-size: clamp(40px, 7vw, 62px); font-weight: 750;
  letter-spacing: -0.04em; line-height: 1.05; margin: 12px 0 18px;
  background: linear-gradient(120deg, var(--text-1) 30%, #4b5878 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .intro { font-size: 18px; color: var(--text-2); max-width: 560px; line-height: 1.8; }
.hero .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .link-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 16px;
  color: var(--text-1); font-size: 14.5px; font-weight: 550;
  transition: transform 0.25s var(--spring), background 0.25s;
}
.hero .link-btn:hover { transform: translateY(-3px); background: var(--card-hover); }
.hero-motto {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  padding: 6px;
}
.hero-motto img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  display: block;
  -webkit-user-drag: none; user-select: none; pointer-events: none;
}
.pin-badge {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 8px;
  margin-right: 8px;
  color: #fff; font-size: 13px;
  background: var(--accent-grad);
  box-shadow: 0 6px 14px -4px rgba(10,132,255,0.6);
}

.section-title {
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  margin: 46px 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.section-title .more { font-size: 13px; color: var(--accent); font-weight: 500; margin-left: auto; cursor: pointer; }

/* 空状态 */
.empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
.empty .em { font-size: 42px; margin-bottom: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-110%);
    transition: transform 0.35s var(--ease);
    margin: 0; border-radius: 0 24px 24px 0;
    width: min(82vw, 300px);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(0,0,0,0.35);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .sidebar-overlay.show { opacity: 1; pointer-events: auto; }
  .menu-btn {
    display: grid; place-items: center;
    position: fixed; top: 16px; left: 16px; z-index: 30;
    width: 46px; height: 46px; border-radius: 16px;
    font-size: 20px; color: var(--text-1);
    cursor: pointer;
  }
  .main { margin-left: 0; padding: 76px 18px 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-motto { order: -1; }
}

/* ============================================================
   管理后台（头像 5 连击 → 密码 → 编辑器）
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 12px; border: none;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: rgba(0,0,0,0.06); color: var(--text-1);
  transition: transform 0.2s var(--spring), background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-danger { background: rgba(255,59,48,0.12); color: #ff3b30; }
:root[data-theme="dark"] .btn { background: rgba(255,255,255,0.08); color: var(--text-1); }
:root[data-theme="dark"] .btn-danger { background: rgba(255,59,48,0.2); color: #ff6961; }

.admin-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px);
}
.admin-modal[hidden] { display: none; }
.admin-card {
  width: min(360px, 90vw); padding: 26px; border-radius: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.admin-card h3 { font-size: 19px; font-weight: 700; }
.admin-sub { color: var(--text-3); font-size: 13px; margin-top: -8px; }
.admin-card input {
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--text-3);
  background: transparent; color: var(--text-1); font-size: 15px;
}
.admin-err { color: #ff3b30; font-size: 13px; min-height: 16px; }
.admin-actions { display: flex; gap: 10px; justify-content: flex-end; }

.admin-panel {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bg-base); overflow-y: auto;
}
.admin-panel[hidden] { display: none; }
.admin-inner { max-width: 900px; margin: 0 auto; padding: 28px; min-height: 100vh; }
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.admin-head h2 { font-size: 24px; font-weight: 720; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-list { display: flex; flex-direction: column; gap: 18px; }
.admin-group-title {
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.admin-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-radius: 12px; cursor: pointer;
  background: rgba(0,0,0,0.035); margin-bottom: 6px;
  transition: background 0.2s;
}
.admin-item:hover { background: var(--card-hover); }
:root[data-theme="dark"] .admin-item { background: rgba(255,255,255,0.05); }
.ai-title { font-size: 15px; font-weight: 550; }
.ai-date { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.admin-editor { display: flex; flex-direction: column; gap: 14px; }
.admin-field { display: flex; flex-direction: column; gap: 6px; }
.admin-field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.admin-field input, .admin-field textarea {
  padding: 11px 14px; border-radius: 12px; border: 1px solid var(--text-3);
  background: transparent; color: var(--text-1); font-size: 15px;
  font-family: inherit; width: 100%;
}
.admin-field textarea { resize: vertical; }
.admin-md {
  min-height: 320px; line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
}
.admin-hint { color: var(--text-3); font-size: 12.5px; }
.admin-panel .admin-actions { justify-content: flex-start; }
@media (max-width: 720px) {
  .admin-inner { padding: 18px; }
  .admin-head h2 { font-size: 20px; }
}
