:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --danger: #dc2626;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg);
  background-image: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: transparent;
  backdrop-filter: none;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

body:not(.admin-body) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.admin-body) > .container {
  flex: 1 0 auto;
  width: 100%;
}

body:not(.admin-body) > .site-footer {
  margin-top: auto;
}

.container { max-width: 1200px; margin: 0 auto; padding: 16px; }
.site-footer { border-top: 1px solid var(--border); background: rgba(248, 250, 252, 0.92); }
.site-footer-inner { max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center; }
.site-footer-left { width: 100%; }
.site-footer-links { width: 100%; justify-content: center; }
body[data-layout="wide"] .site-footer-inner { width: 85vw; max-width: none; }
body[data-layout="compact"] .site-footer-inner { max-width: none; padding-left: var(--layout-edge); padding-right: var(--layout-edge); }
.site-footer-text { font-size: 13px; color: var(--text); }
.site-footer-note { margin-top: 6px; font-size: 12px; color: var(--muted); }
.site-footer-links { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer-link { font-size: 13px; color: var(--text); text-decoration: none; }
.site-footer-link:hover { text-decoration: underline; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.page-article .topbar {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: var(--border);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; }
.topbar-menu { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.topbar-menu-link:hover { text-decoration: underline; }
.brand { font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-logo { width: 28px; height: 28px; display: block; object-fit: contain; border-radius: 6px; }
.search { flex: 1; }
.search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--search-radius, 10px);
  background: var(--surface);
  outline: none;
}
.search input:focus { border-color: rgba(37, 99, 235, 0.5); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

.search-box {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--search-radius, 10px);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.50);
}
.search-box:focus-within {
  border-color: rgba(37, 99, 235, 0.60);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  height: 42px;
  padding: 0 14px;
  outline: none;
}
.search-box .btn { white-space: nowrap; }
.search-box .btn {
  border: 0;
  border-left: 1px solid rgba(226, 232, 240, 0.70);
  border-radius: 0;
  height: 42px;
  padding: 0 16px;
  min-width: 96px;
  background: transparent;
}
.search-box .btn::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 6px;
  background-color: currentColor;
  -webkit-mask: url("svg/search.svg") no-repeat center / contain;
  mask: url("svg/search.svg") no-repeat center / contain;
}
.search-engine {
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 1px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 38px;
}
.search-engine:hover { filter: brightness(0.98); }
.search-engine-icon {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  object-fit: cover;
  display: block;
}
.search-engine-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 20;
}
.search-engine-menu.open { display: block; }
.search-engine-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-engine-item:hover { background: rgba(226, 232, 240, 0.6); }
.search-engine-item.active { background: rgba(37, 99, 235, 0.10); color: var(--primary); }
.search-engine-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
.search-engine-item-text { flex: 1 1 auto; min-width: 0; }

.search-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.search-tab {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 1px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 38px;
}
.search-tab:hover { border-color: rgba(255, 255, 255, 0.45); }
.search-tab.active {
  border-color: rgba(37, 99, 235, 0.95);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.10);
}
.search-tab .search-engine-icon {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  object-fit: cover;
}
@media (max-width: 520px) {
  body[data-layout="compact"] .search-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 6px;
  }
  body[data-layout="compact"] .search-tabs::-webkit-scrollbar { display: none; }
  body[data-layout="compact"] .search-tab {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 1px;
    flex: 0 0 32px;
  }
}

.search-engine-modal .modal-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.search-engine-modal .search-engine-item {
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
}
.search-engine-modal .search-engine-item.active {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.10);
}
.search-box.search-box-dark { background: rgba(255, 255, 255, 0.50); border-color: rgba(255, 255, 255, 0.30); }
.search-box.search-box-dark .btn { border-left-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.92); }

.grid {
  display: grid;
  gap: 16px;
}
.grid.journals { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.sites { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); align-items: flex-start; }
.grid.articles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: stretch; }
.grid.plans { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.dashboard-kpis { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.grid.dashboard-stats { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.grid.dashboard-chart { grid-template-columns: 1fr; gap: 12px; }
.grid.dashboard-charts { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 12px; align-items: start; }
.grid.dashboard-ranks { grid-template-columns: 1fr; gap: 12px; }
.dashboard-rank-list { display: flex; flex-direction: column; gap: 10px; }
.dashboard-rank-left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.dashboard-rank-icon { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--border); background: #fff; object-fit: contain; flex: 0 0 auto; }
.dashboard-rank-list .widget-progress-fill { background: rgba(37, 99, 235, 0.85); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.card.ghost { background: transparent; padding: 10px; }
.card.compact { padding: 12px; }
.card.compact .card-title { font-size: 13px; margin: 0; color: var(--muted); }
.card:hover { box-shadow: var(--shadow); }
.card-title { font-size: 16px; font-weight: 650; margin: 0 0 6px 0; color: var(--text); }
.card-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.widget-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.widget-box.widget-box--wc-news { grid-template-columns: 1fr 2fr; align-items: start; }
.widget-box-col { display: flex; flex-direction: column; gap: var(--widget-gap, 12px); min-width: 0; }
.widget-box-col > .widget-card { width: 100%; }
.widget-box--wc-news { --widget-gap: 12px; --widget-side-card-h: 100px; }
.widget-box--wc-news .widget-card--weather,
.widget-box--wc-news .widget-card--calendar { height: var(--widget-side-card-h); }
.widget-box--wc-news .widget-card--news { height: calc(var(--widget-side-card-h) * 2 + var(--widget-gap)); }
.widget-box--wc-news .widget-card--weather .widget-card-body { display: none; }
.widget-box.widget-box--news-ai { grid-template-columns: 3fr 5fr; align-items: start; }
.widget-box.widget-box--wc-news-ai { grid-template-columns: 3fr 3fr 4fr; align-items: start; }
.widget-box--wc-news-ai { --widget-gap: 12px; --widget-side-card-h: 104px; }
.widget-box--wc-news-ai .widget-card--weather,
.widget-box--wc-news-ai .widget-card--calendar { height: var(--widget-side-card-h); }
.widget-box--wc-news-ai .widget-card--news,
.widget-box--wc-news-ai .widget-card--ai { height: calc(var(--widget-side-card-h) * 2 + var(--widget-gap)); }
.widget-box--wc-news-ai .widget-card--weather .widget-card-body { display: none; }
body[data-layout="compact"] .widget-box.widget-box--wc-news { grid-template-columns: 380px minmax(0, 1fr); }
body[data-layout="compact"] .widget-box.widget-box--wc-news-ai { grid-template-columns: 380px minmax(0, 9fr) minmax(0, 11fr); }
@media (max-width: 860px) {
  .widget-box.widget-box--wc-news { grid-template-columns: 1fr; }
  .widget-box.widget-box--news-ai,
  .widget-box.widget-box--wc-news-ai { grid-template-columns: 1fr; }
  body[data-layout="compact"] .widget-box.widget-box--wc-news { grid-template-columns: 1fr; }
  body[data-layout="compact"] .widget-box.widget-box--wc-news-ai { grid-template-columns: 1fr; }
}
.widget-card {
  padding: 14px;
  position: relative;
  overflow: hidden;
  border-color: rgba(226, 232, 240, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
}
body[data-theme="dark"] .widget-card {
  border-color: rgba(148, 163, 184, 0.25);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.62));
}
.widget-card::before {
  content: "";
  position: absolute;
  inset: -70px;
  background: radial-gradient(520px circle at 18% 22%, var(--widget-accent, rgba(37, 99, 235, 0.16)), transparent 55%);
  pointer-events: none;
}
.widget-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px circle at 92% 10%, rgba(255, 255, 255, 0.55), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}
body[data-theme="dark"] .widget-card::after { opacity: 0.18; }
.widget-card--weather { --widget-accent: rgba(37, 99, 235, 0.16); --weather-icon-color: rgba(15, 23, 42, 0.78); }
body[data-theme="dark"] .widget-card--weather { --weather-icon-color: rgba(226, 232, 240, 0.82); }
.widget-card--weather.widget-weather--sunny { --widget-accent: rgba(251, 191, 36, 0.22); --weather-icon-color: rgba(245, 158, 11, 0.95); }
.widget-card--weather.widget-weather--cloudy { --widget-accent: rgba(148, 163, 184, 0.22); --weather-icon-color: rgba(71, 85, 105, 0.92); }
.widget-card--weather.widget-weather--rain { --widget-accent: rgba(59, 130, 246, 0.22); --weather-icon-color: rgba(37, 99, 235, 0.92); }
.widget-card--weather.widget-weather--snow { --widget-accent: rgba(224, 231, 255, 0.36); --weather-icon-color: rgba(59, 130, 246, 0.88); }
.widget-card--weather.widget-weather--thunder { --widget-accent: rgba(168, 85, 247, 0.24); --weather-icon-color: rgba(147, 51, 234, 0.92); }
body[data-theme="dark"] .widget-card--weather.widget-weather--sunny { --weather-icon-color: rgba(253, 224, 71, 0.95); }
body[data-theme="dark"] .widget-card--weather.widget-weather--cloudy { --weather-icon-color: rgba(226, 232, 240, 0.75); }
body[data-theme="dark"] .widget-card--weather.widget-weather--rain { --weather-icon-color: rgba(147, 197, 253, 0.92); }
body[data-theme="dark"] .widget-card--weather.widget-weather--snow { --weather-icon-color: rgba(191, 219, 254, 0.92); }
body[data-theme="dark"] .widget-card--weather.widget-weather--thunder { --weather-icon-color: rgba(233, 213, 255, 0.92); }
.widget-card--weather .widget-card-head { justify-content: space-between; align-items: center; }
.widget-card--weather .widget-card-head-left { align-items: stretch; }
.widget-card--weather .widget-card-icon { width: 50px; height: 50px; flex: 0 0 auto; }
.widget-card--weather .widget-card-icon { color: var(--weather-icon-color); }
.widget-card--weather .widget-card-head-texts { gap: 3px; padding: 8px 0; justify-content: center; }
.widget-card--weather .widget-card-title,
.widget-card--weather .widget-card-sub { font-size: 15px; font-weight: 900; letter-spacing: 0.2px; color: var(--text); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-theme="dark"] .widget-card--weather .widget-card-title,
body[data-theme="dark"] .widget-card--weather .widget-card-sub { color: var(--text); }
.widget-box--wc-news .widget-card--weather,
.widget-box--wc-news-ai .widget-card--weather {
  display: flex;
  align-items: center;
}
.widget-box--wc-news .widget-card--weather .widget-card-head,
.widget-box--wc-news-ai .widget-card--weather .widget-card-head {
  width: 100%;
}
.widget-weather-head-right { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; min-width: 0; max-width: 100%; }
.widget-weather-head-temp { font-size: 32px; font-weight: 950; letter-spacing: 0.2px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.0; }
.widget-weather-head-row { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 4px; min-width: 0; flex: 1 1 auto; max-width: 100%; }
.widget-weather-meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.widget-weather-meta--bottom { justify-content: flex-end; }
.widget-weather-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.72);
  color: rgba(71, 85, 105, 0.92);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
body[data-theme="dark"] .widget-weather-meta-pill {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
  color: rgba(226, 232, 240, 0.72);
}
.widget-weather-meta-pill-item { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.widget-weather-meta-pill-item.is-primary { color: rgba(15, 23, 42, 0.92); font-weight: 850; }
body[data-theme="dark"] .widget-weather-meta-pill-item.is-primary { color: rgba(226, 232, 240, 0.88); }
.widget-weather-meta-pill-sep { margin: 0 8px; opacity: 0.45; }
.widget-weather-meta-pill-arrow { width: 14px; height: 14px; transform: rotate(var(--deg, 0deg)); opacity: 0.92; flex: 0 0 auto; }
.widget-weather-meta-pill-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.widget-weather-meta-item { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 750; color: rgba(71, 85, 105, 0.92); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
body[data-theme="dark"] .widget-weather-meta-item { color: rgba(226, 232, 240, 0.72); }
.widget-weather-meta-sep { font-size: 12px; opacity: 0.5; }
.widget-weather-meta-arrow { width: 14px; height: 14px; transform: rotate(var(--deg, 0deg)); opacity: 0.92; flex: 0 0 auto; }
.widget-weather-meta-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.widget-weather-meta-item.widget-weather-meta-item--cond {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.72);
  color: rgba(15, 23, 42, 0.92);
  font-weight: 850;
}
body[data-theme="dark"] .widget-weather-meta-item.widget-weather-meta-item--cond {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
  color: rgba(226, 232, 240, 0.88);
}
.widget-card--weather .widget-card-head-left { flex: 1 1 auto; }
@media (max-width: 520px) {
  .widget-weather-head-temp { font-size: 28px; }
  .widget-weather-head-right { gap: 8px; }
  .widget-weather-meta { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -ms-overflow-style: none; scrollbar-width: none; }
  .widget-weather-meta::-webkit-scrollbar { display: none; }
  .widget-weather-meta-pill,
  .widget-weather-meta-item { flex: 0 0 auto; }
  .widget-weather-meta-pill-text,
  .widget-weather-meta-text { max-width: 120px; }
}
.widget-weather-meta--bottom .widget-weather-inline-item { padding: 5px 9px; }
.widget-weather-meta-item.is-aqi-1 { color: rgba(22, 163, 74, 0.95); }
.widget-weather-meta-item.is-aqi-2 { color: rgba(77, 124, 15, 0.95); }
.widget-weather-meta-item.is-aqi-3 { color: rgba(161, 98, 7, 0.95); }
.widget-weather-meta-item.is-aqi-4 { color: rgba(194, 65, 12, 0.95); }
.widget-weather-meta-item.is-aqi-5 { color: rgba(185, 28, 28, 0.95); }
.widget-weather-meta-item.is-aqi-6 { color: rgba(126, 34, 206, 0.95); }
body[data-theme="dark"] .widget-weather-meta-item.is-aqi-1 { color: rgba(134, 239, 172, 0.95); }
body[data-theme="dark"] .widget-weather-meta-item.is-aqi-2 { color: rgba(190, 242, 100, 0.95); }
body[data-theme="dark"] .widget-weather-meta-item.is-aqi-3 { color: rgba(253, 224, 71, 0.95); }
body[data-theme="dark"] .widget-weather-meta-item.is-aqi-4 { color: rgba(253, 186, 116, 0.95); }
body[data-theme="dark"] .widget-weather-meta-item.is-aqi-5 { color: rgba(254, 202, 202, 0.95); }
body[data-theme="dark"] .widget-weather-meta-item.is-aqi-6 { color: rgba(233, 213, 255, 0.95); }
.widget-card--calendar { --widget-accent: rgba(34, 197, 94, 0.16); }
.widget-card--calendar.is-holiday { --widget-accent: rgba(239, 68, 68, 0.18); }
.widget-card--calendar .widget-card-head { justify-content: space-between; align-items: stretch; gap: 12px; }
.widget-calendar-head-right { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; min-width: 0; max-width: 100%; }
.widget-calendar-head-topline { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; -ms-overflow-style: none; scrollbar-width: none; }
.widget-calendar-head-topline::-webkit-scrollbar { display: none; }
.widget-calendar-head-metaline { display: flex; align-items: center; justify-content: flex-end; width: 100%; min-width: 0; max-width: 100%; }
.widget-calendar-clock { font-size: 14px; font-weight: 900; letter-spacing: 0.2px; color: var(--text); font-variant-numeric: tabular-nums; opacity: 0.88; white-space: nowrap; line-height: 1.1; }
.widget-card-meta--calendar-head { width: 100%; justify-content: flex-end; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; min-width: 0; -ms-overflow-style: none; scrollbar-width: none; }
.widget-card-meta--calendar-head::-webkit-scrollbar { display: none; }
.widget-card-meta--calendar-head .widget-card-meta-item { white-space: nowrap; }
.widget-calendar-left { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; flex: 1 1 auto; }
.widget-calendar-date { font-size: 14px; font-weight: 900; letter-spacing: 0.2px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.15; }
.widget-calendar-weektime { font-size: 12px; font-weight: 750; letter-spacing: 0.2px; color: rgba(71, 85, 105, 0.92); font-variant-numeric: tabular-nums; line-height: 1.1; }
body[data-theme="dark"] .widget-calendar-weektime { color: rgba(226, 232, 240, 0.72); }
.widget-calendar-holiday { font-size: 12px; color: rgba(71, 85, 105, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
body[data-theme="dark"] .widget-calendar-holiday { color: rgba(226, 232, 240, 0.72); }
.widget-calendar-right { display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 auto; width: 148px; min-width: 132px; }
.widget-progress-item { padding: 0; min-width: 0; }
.widget-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.widget-progress-label { font-size: 12px; font-weight: 750; color: rgba(71, 85, 105, 0.92); }
body[data-theme="dark"] .widget-progress-label { color: rgba(226, 232, 240, 0.72); }
.widget-progress-text { font-size: 12px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; opacity: 0.9; }
.widget-progress-bar { height: 5px; margin-top: 4px; border-radius: 999px; background: rgba(148, 163, 184, 0.25); overflow: hidden; }
body[data-theme="dark"] .widget-progress-bar { background: rgba(148, 163, 184, 0.18); }
.widget-progress-fill { height: 100%; width: 0%; border-radius: 999px; background: rgba(34, 197, 94, 0.85); }
.widget-card--ai { --widget-accent: rgba(168, 85, 247, 0.18); display: flex; flex-direction: column; }
.widget-card--ai .widget-card-body { flex: 1 1 auto; min-height: 0; }
.widget-card--ai .widget-card-body.widget-ai-body { margin-top: 0; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.widget-card--ai.is-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  width: min(980px, 94vw);
  height: min(80vh, 760px);
}
body.navsite-ai-modal-open { overflow: hidden; }
.widget-ai-body { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; padding-top: 46px; }
.widget-ai-log { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 2px; display: flex; flex-direction: column; }
.widget-ai-empty { font-size: 13px; color: var(--muted); line-height: 1.6; margin: auto; text-align: center; padding: 0 12px; }
.widget-ai-msg { display: flex; justify-content: flex-start; }
.widget-ai-msg.is-user { justify-content: flex-end; }
.widget-ai-bubble {
  max-width: min(78%, 540px);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.65);
}
body[data-theme="dark"] .widget-ai-bubble { border-color: rgba(148, 163, 184, 0.18); background: rgba(15, 23, 42, 0.45); }
.widget-ai-msg.is-user .widget-ai-bubble { border-color: rgba(59, 130, 246, 0.26); background: rgba(37, 99, 235, 0.10); }
body[data-theme="dark"] .widget-ai-msg.is-user .widget-ai-bubble { background: rgba(37, 99, 235, 0.18); }
.widget-ai-msg-text { font-size: 13px; color: var(--text); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.widget-ai-msg-meta { margin-top: 6px; font-size: 11px; color: rgba(71, 85, 105, 0.75); text-align: right; font-variant-numeric: tabular-nums; }
body[data-theme="dark"] .widget-ai-msg-meta { color: rgba(226, 232, 240, 0.60); }
.widget-ai-bubble.is-pending { opacity: 0.88; }
.widget-ai-bubble.is-pending .widget-ai-msg-text { animation: widget-ai-pulse 1100ms ease-in-out infinite; }
@keyframes widget-ai-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.widget-ai-form { --widget-ai-control-h: 42px; display: flex; gap: 10px; align-items: stretch; }
.widget-ai-input {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--widget-ai-control-h);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  resize: none;
  max-height: none;
  overflow: auto;
}
.widget-ai-send { flex: 0 0 auto; height: var(--widget-ai-control-h); }
.widget-ai-clear {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.60);
  color: rgba(71, 85, 105, 0.92);
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
}
body[data-theme="dark"] .widget-ai-clear {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.50);
  color: rgba(226, 232, 240, 0.72);
}
.widget-ai-clear:hover { filter: brightness(0.98); }
.widget-ai-fullscreen {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
body[data-theme="dark"] .widget-ai-fullscreen {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
}
.widget-ai-fullscreen:hover { filter: brightness(0.98); }
.widget-ai-fullscreen .svg-icon { width: 16px; height: 16px; }
.widget-card--calendar.is-holiday .widget-progress-fill { background: rgba(239, 68, 68, 0.85); }
.widget-card--calendar .widget-card-body { margin-top: 8px; gap: 6px; }
.widget-card--calendar .widget-card-big { font-size: 22px; line-height: 1.05; }
.widget-card--calendar .widget-card-desc { padding: 3px 8px; }
.widget-card--calendar .widget-calendar { gap: 4px; }
.widget-card--calendar .widget-calendar-week { gap: 3px; }
.widget-card--calendar .widget-calendar-grid { gap: 3px; }
.widget-card--calendar .widget-calendar-cell { height: 24px; border-radius: 7px; font-size: 11px; }
.widget-card-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; min-width: 0; }
.widget-card-head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.widget-card-icon { width: 18px; height: 18px; color: rgba(15, 23, 42, 0.78); flex: 0 0 auto; }
body[data-theme="dark"] .widget-card-icon { color: rgba(226, 232, 240, 0.82); }
.widget-card-head-texts { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.widget-card-title { font-weight: 750; font-size: 13px; letter-spacing: 0.2px; color: var(--text); }
.widget-card-sub { font-size: 12px; color: rgba(71, 85, 105, 0.92); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-theme="dark"] .widget-card-sub { color: rgba(226, 232, 240, 0.72); }
.widget-card--calendar.is-holiday .widget-card-sub {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.12);
  color: rgba(185, 28, 28, 0.95);
}
body[data-theme="dark"] .widget-card--calendar.is-holiday .widget-card-sub {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.18);
  color: rgba(254, 202, 202, 0.92);
}
.widget-card-body { position: relative; z-index: 1; margin-top: 12px; display: grid; gap: 8px; }
.widget-card-big { font-size: 30px; font-weight: 850; letter-spacing: 0.2px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.05; }
.widget-card-desc {
  width: fit-content;
  font-size: 12px;
  color: rgba(71, 85, 105, 0.92);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.72);
}
body[data-theme="dark"] .widget-card-desc {
  color: rgba(226, 232, 240, 0.72);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
}
.widget-card-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.widget-card-meta-item {
  width: fit-content;
  font-size: 12px;
  color: rgba(71, 85, 105, 0.92);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.72);
}
body[data-theme="dark"] .widget-card-meta-item {
  color: rgba(226, 232, 240, 0.72);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
}
.widget-weather-iframe {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.72);
}
body[data-theme="dark"] .widget-weather-iframe {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
}
.widget-weather-iframe iframe { display: block; width: 100%; border: 0; }
.widget-card--weather .widget-weather-iframe--flush {
  margin: 0 -14px -14px;
  width: calc(100% + 28px);
  border: 0;
  background: transparent;
  border-radius: 0 0 var(--radius) var(--radius);
}
.widget-weather-scale { position: relative; width: 100%; }
.widget-weather-scale iframe { position: absolute; inset: 0 auto auto 0; transform-origin: 0 0; }

.widget-card--weather .widget-card-body { margin-top: 10px; gap: 10px; }
.widget-weather-line { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.widget-weather-primary { display: flex; align-items: flex-end; gap: 10px; min-width: 0; flex: 0 0 auto; }
.widget-weather-temp { font-size: 30px; font-weight: 850; letter-spacing: 0.2px; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.0; }
.widget-weather-cond {
  width: fit-content;
  font-size: 12px;
  color: rgba(71, 85, 105, 0.92);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.72);
  margin-bottom: 2px;
}
body[data-theme="dark"] .widget-weather-cond {
  color: rgba(226, 232, 240, 0.72);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
}
.widget-weather-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.widget-weather-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.58);
  color: rgba(15, 23, 42, 0.86);
  min-width: 0;
}
body[data-theme="dark"] .widget-weather-metric {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.36);
  color: rgba(226, 232, 240, 0.86);
}
.widget-weather-metric.is-temp {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(180deg, var(--widget-accent, rgba(37, 99, 235, 0.16)), rgba(248, 250, 252, 0.58));
}
body[data-theme="dark"] .widget-weather-metric.is-temp {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, var(--widget-accent, rgba(37, 99, 235, 0.16)), rgba(15, 23, 42, 0.36));
}
.widget-weather-metric.is-temp .widget-weather-metric-value { font-size: 18px; line-height: 1.05; }
.widget-weather-metric-head { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.widget-weather-metric-icon { width: 14px; height: 14px; opacity: 0.86; flex: 0 0 auto; }
.widget-weather-metric-label { font-size: 11px; font-weight: 800; color: rgba(71, 85, 105, 0.85); white-space: nowrap; }
body[data-theme="dark"] .widget-weather-metric-label { color: rgba(226, 232, 240, 0.62); }
.widget-weather-metric-value {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.widget-weather-metric-value-row { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.widget-weather-metric-arrow { width: 14px; height: 14px; transform: rotate(var(--deg, 0deg)); opacity: 0.92; flex: 0 0 auto; }
.widget-weather-metric-sub {
  font-size: 11px;
  font-weight: 750;
  color: rgba(71, 85, 105, 0.78);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.15;
}
body[data-theme="dark"] .widget-weather-metric-sub { color: rgba(226, 232, 240, 0.60); }

.widget-weather-metric.is-aqi-1 { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.08); }
.widget-weather-metric.is-aqi-2 { border-color: rgba(132, 204, 22, 0.28); background: rgba(132, 204, 22, 0.08); }
.widget-weather-metric.is-aqi-3 { border-color: rgba(234, 179, 8, 0.30); background: rgba(234, 179, 8, 0.10); }
.widget-weather-metric.is-aqi-4 { border-color: rgba(249, 115, 22, 0.30); background: rgba(249, 115, 22, 0.10); }
.widget-weather-metric.is-aqi-5 { border-color: rgba(239, 68, 68, 0.30); background: rgba(239, 68, 68, 0.10); }
.widget-weather-metric.is-aqi-6 { border-color: rgba(168, 85, 247, 0.30); background: rgba(168, 85, 247, 0.10); }
body[data-theme="dark"] .widget-weather-metric.is-aqi-1 { border-color: rgba(34, 197, 94, 0.22); background: rgba(34, 197, 94, 0.10); }
body[data-theme="dark"] .widget-weather-metric.is-aqi-2 { border-color: rgba(132, 204, 22, 0.20); background: rgba(132, 204, 22, 0.10); }
body[data-theme="dark"] .widget-weather-metric.is-aqi-3 { border-color: rgba(234, 179, 8, 0.22); background: rgba(234, 179, 8, 0.12); }
body[data-theme="dark"] .widget-weather-metric.is-aqi-4 { border-color: rgba(249, 115, 22, 0.22); background: rgba(249, 115, 22, 0.12); }
body[data-theme="dark"] .widget-weather-metric.is-aqi-5 { border-color: rgba(239, 68, 68, 0.22); background: rgba(239, 68, 68, 0.12); }
body[data-theme="dark"] .widget-weather-metric.is-aqi-6 { border-color: rgba(168, 85, 247, 0.22); background: rgba(168, 85, 247, 0.12); }
.widget-weather-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.widget-weather-inline::-webkit-scrollbar { display: none; }
.widget-weather-inline-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.62);
  color: rgba(15, 23, 42, 0.86);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
body[data-theme="dark"] .widget-weather-inline-item {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.36);
  color: rgba(226, 232, 240, 0.86);
}
.widget-weather-inline-icon { width: 14px; height: 14px; opacity: 0.86; flex: 0 0 auto; }
.widget-weather-inline-content { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.widget-weather-inline-arrow { width: 14px; height: 14px; transform: rotate(var(--deg, 0deg)); opacity: 0.92; flex: 0 0 auto; }
.widget-weather-inline-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 140px; }
.widget-weather-inline-sub { font-size: 11px; font-weight: 700; color: rgba(71, 85, 105, 0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 160px; }
body[data-theme="dark"] .widget-weather-inline-sub { color: rgba(226, 232, 240, 0.60); }

.widget-weather-inline-item.is-aqi-1 { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.08); }
.widget-weather-inline-item.is-aqi-2 { border-color: rgba(132, 204, 22, 0.28); background: rgba(132, 204, 22, 0.08); }
.widget-weather-inline-item.is-aqi-3 { border-color: rgba(234, 179, 8, 0.30); background: rgba(234, 179, 8, 0.10); }
.widget-weather-inline-item.is-aqi-4 { border-color: rgba(249, 115, 22, 0.30); background: rgba(249, 115, 22, 0.10); }
.widget-weather-inline-item.is-aqi-5 { border-color: rgba(239, 68, 68, 0.30); background: rgba(239, 68, 68, 0.10); }
.widget-weather-inline-item.is-aqi-6 { border-color: rgba(168, 85, 247, 0.30); background: rgba(168, 85, 247, 0.10); }
body[data-theme="dark"] .widget-weather-inline-item.is-aqi-1 { border-color: rgba(34, 197, 94, 0.22); background: rgba(34, 197, 94, 0.10); }
body[data-theme="dark"] .widget-weather-inline-item.is-aqi-2 { border-color: rgba(132, 204, 22, 0.20); background: rgba(132, 204, 22, 0.10); }
body[data-theme="dark"] .widget-weather-inline-item.is-aqi-3 { border-color: rgba(234, 179, 8, 0.22); background: rgba(234, 179, 8, 0.12); }
body[data-theme="dark"] .widget-weather-inline-item.is-aqi-4 { border-color: rgba(249, 115, 22, 0.22); background: rgba(249, 115, 22, 0.12); }
body[data-theme="dark"] .widget-weather-inline-item.is-aqi-5 { border-color: rgba(239, 68, 68, 0.22); background: rgba(239, 68, 68, 0.12); }
body[data-theme="dark"] .widget-weather-inline-item.is-aqi-6 { border-color: rgba(168, 85, 247, 0.22); background: rgba(168, 85, 247, 0.12); }

.widget-weather-forecast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.widget-weather-day {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.58);
}
body[data-theme="dark"] .widget-weather-day {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.36);
}
.widget-weather-day-name { font-size: 11px; font-weight: 850; color: rgba(15, 23, 42, 0.82); }
body[data-theme="dark"] .widget-weather-day-name { color: rgba(226, 232, 240, 0.85); }
.widget-weather-day-desc { font-size: 11px; color: rgba(71, 85, 105, 0.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-theme="dark"] .widget-weather-day-desc { color: rgba(226, 232, 240, 0.62); }
.widget-weather-day-temp { font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: rgba(29, 78, 216, 0.95); }
body[data-theme="dark"] .widget-weather-day-temp { color: rgba(191, 219, 254, 0.92); }

@media (max-width: 520px) {
  .widget-weather-line { flex-wrap: wrap; }
  .widget-weather-primary { flex: 1 1 auto; }
  .widget-weather-temp { font-size: clamp(22px, 7vw, 30px); }
  .widget-weather-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .widget-weather-inline { justify-content: flex-start; }
  .widget-weather-forecast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
  .widget-weather-metrics { grid-template-columns: 1fr; }
  .widget-weather-forecast { grid-template-columns: 1fr; }
}

.widget-calendar { display: grid; gap: 6px; }
.widget-calendar-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.widget-calendar-weekday { font-size: 11px; color: rgba(71, 85, 105, 0.75); text-align: center; }
body[data-theme="dark"] .widget-calendar-weekday { color: rgba(226, 232, 240, 0.55); }
.widget-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.widget-calendar-cell {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border-radius: 8px;
  color: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.58);
  font-variant-numeric: tabular-nums;
}
body[data-theme="dark"] .widget-calendar-cell {
  color: rgba(226, 232, 240, 0.82);
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.36);
}
.widget-calendar-cell.is-out { opacity: 0.0; }
.widget-calendar-cell.is-weekend { color: rgba(220, 38, 38, 0.82); }
body[data-theme="dark"] .widget-calendar-cell.is-weekend { color: rgba(248, 113, 113, 0.88); }
.widget-calendar-cell.is-today {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.10);
  color: rgba(29, 78, 216, 0.98);
  font-weight: 800;
}
body[data-theme="dark"] .widget-calendar-cell.is-today {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.16);
  color: rgba(191, 219, 254, 0.95);
}
.widget-calendar.is-holiday .widget-calendar-cell.is-today {
  border-color: rgba(239, 68, 68, 0.40);
  background: rgba(239, 68, 68, 0.12);
  color: rgba(185, 28, 28, 0.98);
}
body[data-theme="dark"] .widget-calendar.is-holiday .widget-calendar-cell.is-today {
  border-color: rgba(248, 113, 113, 0.40);
  background: rgba(248, 113, 113, 0.16);
  color: rgba(254, 202, 202, 0.98);
}

.widget-card--news { --widget-accent: rgba(59, 130, 246, 0.16); display: flex; flex-direction: column; }
.widget-news-body { gap: 6px; }
.widget-card--news .widget-card-body.widget-news-body { display: flex; flex-direction: column; min-height: 0; }
.widget-card--news .widget-news { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: stretch; }
.widget-news-tabs { display: flex; flex-direction: column; gap: 8px; }
.widget-news-tab {
  width: 100%;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.58);
  color: rgba(15, 23, 42, 0.82);
  font-weight: 850;
  cursor: pointer;
}
body[data-theme="dark"] .widget-news-tab {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.36);
  color: rgba(226, 232, 240, 0.82);
}
.widget-news-tab.is-active {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.10);
  color: rgba(29, 78, 216, 0.98);
}
body[data-theme="dark"] .widget-news-tab.is-active {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.16);
  color: rgba(191, 219, 254, 0.95);
}
.widget-card--news .widget-news-viewport { grid-column: 1; }
.widget-card--news .widget-news-dots { grid-column: 1; }
.widget-news-single-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.widget-news-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.58);
}
body[data-theme="dark"] .widget-news-viewport {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.36);
}
.widget-news-pages { display: flex; width: 100%; transition: transform 260ms ease; will-change: transform; }
.widget-news-page { flex: 0 0 100%; padding: 10px; }
.widget-news-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.widget-news-col { display: grid; gap: 8px; min-width: 0; }
.widget-news-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.widget-news-col-title {
  width: fit-content;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.10);
  color: rgba(29, 78, 216, 0.95);
}
body[data-theme="dark"] .widget-news-col-title {
  border-color: rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.16);
  color: rgba(191, 219, 254, 0.92);
}
.widget-news-col-title.is-top {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.12);
  color: rgba(146, 64, 14, 0.95);
}
body[data-theme="dark"] .widget-news-col-title.is-top {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.16);
  color: rgba(254, 243, 199, 0.95);
}
.widget-news-col:nth-child(1) .widget-news-col-title {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.12);
  color: rgba(146, 64, 14, 0.95);
}
body[data-theme="dark"] .widget-news-col:nth-child(1) .widget-news-col-title {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.16);
  color: rgba(254, 243, 199, 0.95);
}
.widget-news-scroll-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 8px;
  align-items: stretch;
}
.widget-news-scroll {
  min-height: 0;
  overflow: hidden auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.widget-news-scroll::-webkit-scrollbar { width: 0; height: 0; }
.widget-news-slider {
  height: 100%;
  width: 18px;
  margin: 0;
  padding: 0;
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  -moz-appearance: slider-vertical;
  appearance: slider-vertical;
  background: transparent;
  accent-color: rgba(37, 99, 235, 0.65);
}
.widget-news-scroll-wrap[data-scrollable="0"] { grid-template-columns: 1fr 0px; gap: 0; }
.widget-news-scroll-wrap[data-scrollable="0"] .widget-news-slider { opacity: 0; pointer-events: none; width: 0; }
.widget-news-slider::-webkit-slider-runnable-track { border-radius: 999px; background: rgba(148, 163, 184, 0.25); }
body[data-theme="dark"] .widget-news-slider::-webkit-slider-runnable-track { background: rgba(148, 163, 184, 0.18); }
.widget-news-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}
body[data-theme="dark"] .widget-news-slider::-webkit-slider-thumb {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}
.widget-news-slider::-moz-range-track { border-radius: 999px; background: rgba(148, 163, 184, 0.25); }
body[data-theme="dark"] .widget-news-slider::-moz-range-track { background: rgba(148, 163, 184, 0.18); }
.widget-news-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(248, 250, 252, 0.95);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}
body[data-theme="dark"] .widget-news-slider::-moz-range-thumb {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.widget-news-list { display: grid; gap: 3px; min-width: 0; }
.widget-news-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.widget-news-item:hover { background: rgba(226, 232, 240, 0.60); }
body[data-theme="dark"] .widget-news-item:hover { background: rgba(148, 163, 184, 0.12); }
.widget-news-rank {
  height: 22px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(148, 163, 184, 0.40);
  background: rgba(248, 250, 252, 0.75);
  color: rgba(15, 23, 42, 0.78);
}
body[data-theme="dark"] .widget-news-rank {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.45);
  color: rgba(226, 232, 240, 0.82);
}
.widget-news-rank[data-rank="1"] {
  border-color: rgba(245, 158, 11, 0.40);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.20));
  color: rgba(146, 64, 14, 0.98);
}
body[data-theme="dark"] .widget-news-rank[data-rank="1"] {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.26), rgba(245, 158, 11, 0.14));
  color: rgba(254, 243, 199, 0.95);
}
.widget-news-rank[data-rank="2"] {
  border-color: rgba(148, 163, 184, 0.55);
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.85), rgba(148, 163, 184, 0.18));
  color: rgba(51, 65, 85, 0.92);
}
body[data-theme="dark"] .widget-news-rank[data-rank="2"] {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.22), rgba(15, 23, 42, 0.28));
  color: rgba(241, 245, 249, 0.92);
}
.widget-news-rank[data-rank="3"] {
  border-color: rgba(217, 119, 6, 0.42);
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.22), rgba(217, 119, 6, 0.14));
  color: rgba(124, 45, 18, 0.95);
}
body[data-theme="dark"] .widget-news-rank[data-rank="3"] {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(15, 23, 42, 0.26));
  color: rgba(254, 215, 170, 0.94);
}
.widget-news-text { font-size: 12px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget-news-empty,
.widget-news-loading { padding: 10px; color: rgba(71, 85, 105, 0.85); font-size: 13px; }
body[data-theme="dark"] .widget-news-empty,
body[data-theme="dark"] .widget-news-loading { color: rgba(226, 232, 240, 0.68); }
.widget-news-zone { position: absolute; top: 0; bottom: 0; width: 22%; cursor: pointer; }
.widget-news-zone.is-left { left: 0; }
.widget-news-zone.is-right { right: 0; }
.widget-news-zone:hover { background: linear-gradient(90deg, rgba(15, 23, 42, 0.00), rgba(15, 23, 42, 0.05)); }
body[data-theme="dark"] .widget-news-zone:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.00), rgba(255, 255, 255, 0.05)); }
.widget-news-zone.is-left:hover { background: linear-gradient(90deg, rgba(15, 23, 42, 0.07), rgba(15, 23, 42, 0.00)); }
body[data-theme="dark"] .widget-news-zone.is-left:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.00)); }
.widget-news-dots { display: flex; justify-content: center; gap: 8px; }
.widget-news-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(226, 232, 240, 0.65);
  padding: 0;
  cursor: pointer;
}
body[data-theme="dark"] .widget-news-dot {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.18);
}
.widget-news-dot.is-active {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.35);
}
body[data-theme="dark"] .widget-news-dot.is-active {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.35);
}
.widget-card--news .widget-card-body { margin-top: 6px; flex: 1 1 auto; min-height: 0; }
.widget-card--news .widget-card-meta { display: none; }
.widget-card--news .widget-news-badge,
.widget-card--news .widget-news-title,
.widget-card--news .widget-news-nav { display: none; }
.widget-news-badge {
  width: fit-content;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.10);
  color: rgba(29, 78, 216, 0.95);
}
body[data-theme="dark"] .widget-news-badge {
  border-color: rgba(96, 165, 250, 0.25);
  background: rgba(96, 165, 250, 0.16);
  color: rgba(191, 219, 254, 0.92);
}
.widget-news-badge.is-top {
  border-color: rgba(245, 158, 11, 0.30);
  background: rgba(245, 158, 11, 0.14);
  color: rgba(146, 64, 14, 0.95);
}
body[data-theme="dark"] .widget-news-badge.is-top {
  border-color: rgba(251, 191, 36, 0.25);
  background: rgba(251, 191, 36, 0.16);
  color: rgba(254, 243, 199, 0.95);
}
.widget-news-title {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
.widget-news-title:hover { text-decoration: underline; }
.widget-news-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.widget-news-nav-btn { white-space: nowrap; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}
.article-card { position: relative; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.article-card:hover { transform: translateY(-1px); }
.page-article .article-card { cursor: default; }
.page-article .article-card:hover { transform: none; box-shadow: none; }
.article-card-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.article-card-thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: rgba(226, 232, 240, 0.45); }
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-title { font-size: 15px; font-weight: 750; margin: 0; line-height: 1.35; }
.article-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.article-card-pills { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.article-card-meta-right { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.article-card-stats { display: inline-flex; align-items: center; gap: 10px; }
.article-card-stat { display: inline-flex; align-items: center; gap: 6px; }
.article-card-stat-icon { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; background-color: rgba(71, 85, 105, 0.7); -webkit-mask: var(--svg) no-repeat center / contain; mask: var(--svg) no-repeat center / contain; }
.article-card-stat-icon--favorite { --svg: url("svg/heart.svg"); }
.article-card-stat-icon--view { --svg: url("svg/preview.svg"); }
.article-card-stat-num { color: rgba(71, 85, 105, 0.92); }
.pill.article-pill--pinned { border-color: rgba(37, 99, 235, 0.32); background: rgba(37, 99, 235, 0.08); color: rgba(37, 99, 235, 0.95); font-weight: 650; }
.pill.article-pill--template { background: rgba(226, 232, 240, 0.55); }
.pill.article-pill--cat { border-color: rgba(16, 185, 129, 0.28); background: rgba(16, 185, 129, 0.08); color: rgba(5, 150, 105, 0.95); font-weight: 650; }
.article-card-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.article-card-actions { margin-top: auto; display: flex; align-items: center; justify-content: flex-end; }
.article-searchbar { display: flex; gap: 10px; align-items: stretch; }
.article-searchbar .form-control { flex: 1; min-width: 0; }
.article-searchbar .btn { white-space: nowrap; }
.article-category-nav { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.article-category-nav .pill { text-decoration: none; }
.article-category-nav .pill:hover { filter: brightness(0.98); }
.article-category-nav--hero { margin-top: 12px; justify-content: center; }
.article-category-nav--hero .pill { background: #fff; padding: 6px 12px; border-radius: 999px; }
.articles-recent-list { display: flex; flex-direction: column; gap: 6px; }
.articles-recent-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 10px; text-decoration: none; color: var(--text); }
.articles-recent-item:hover { background: rgba(226, 232, 240, 0.55); }
.articles-recent-title { font-size: 13px; line-height: 1.35; }
.articles-recent-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.articles-recent { padding-bottom: 10px; }
.articles-recent .card-title { margin-bottom: 6px; }
.articles-recent a { line-height: 1.35; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.h1 { font-size: 22px; margin: 8px 0 12px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 12px 0; }
.page-head .h1 { margin: 0; }
.page-actions { margin-left: auto; display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.page-subtitle { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 12px 0; }

.form-grid { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 860px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: grid; gap: 6px; min-width: 0; }
.form-label { font-size: 13px; color: rgba(71, 85, 105, 0.92); font-weight: 650; }
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  outline: none;
  font: inherit;
  color: var(--text);
}
.form-control.inline { width: auto; }
.form-control:focus { border-color: rgba(37, 99, 235, 0.5); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.form-control.sm { height: 34px; padding: 8px 10px; font-size: 13px; border-radius: 10px; }
textarea.form-control { resize: vertical; min-height: 160px; line-height: 1.6; }
textarea.form-control.textarea-compact { min-height: auto; }
.form-help { font-size: 12px; color: var(--muted); line-height: 1.6; }
.form-actions { display: flex; align-items: center; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }

.article-form-row-1 { grid-template-columns: 1fr; }
.article-form-row-slug { grid-template-columns: 220px 1fr 2fr; }
.article-form-row-meta { grid-template-columns: 2fr 120px 120px 190px 180px; }
.article-tags-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(226, 232, 240, 0.35); height: 34px; overflow: hidden; }
.article-tags-open { height: 100%; border: 0; background: transparent; padding: 0 10px; cursor: pointer; color: var(--muted); }
.article-tags-divider { width: 1px; align-self: stretch; background: var(--border); }
.article-tags-selected { flex: 1; min-width: 0; padding: 0 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.article-thumb-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: rgba(226, 232, 240, 0.35); height: 34px; overflow: hidden; }
.article-thumb-upload { height: 100%; border: 0; background: transparent; padding: 0 10px; cursor: pointer; color: var(--muted); }
.article-thumb-divider { width: 1px; align-self: stretch; background: var(--border); }
.article-thumb-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 10px; color: var(--text); }
.article-thumb-input:focus { outline: none; }
textarea.article-content-textarea { min-height: 520px; resize: vertical; }
.tag-select-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.tag-select-item { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }

.captcha-advanced-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-start; align-items: flex-end; margin-top: 10px; }
.settings-mini-field { display: flex; flex-direction: column; gap: 6px; }
.settings-mini-row { display: flex; gap: 8px; align-items: center; }
.color-swatch-btn { width: 34px; height: 34px; padding: 0; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.settings-divider { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.color-picker-dialog { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: var(--surface); color: var(--text); width: min(360px, calc(100% - 24px)); }
.color-picker-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.color-picker-input { width: 56px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: transparent; }

.ns-presets-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; align-items: start; }
.ns-admin-two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.ns-admin-two-col > .card { display: flex; flex-direction: column; }
.ns-presets-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.ns-presets-stack { display: grid; gap: 12px; align-items: start; }
.ns-presets-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
}
.ns-presets-settings { background: var(--surface); }
.ns-presets-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px 0; }
.ns-presets-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  resize: none;
  min-height: 220px;
  flex: 1 1 auto;
  outline: none;
  font: inherit;
  color: var(--text);
  line-height: 1.6;
}
.ns-presets-textarea:focus { border-color: rgba(37, 99, 235, 0.5); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.ns-presets-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.ns-presets-kv { display: flex; align-items: center; gap: 10px; }
.ns-presets-color { width: 48px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ns-presets-num { width: 120px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.ns-col-4 { grid-column: span 4; }
.ns-col-6 { grid-column: span 6; }
.ns-col-8 { grid-column: span 8; }
@media (max-width: 980px) {
  .ns-col-4, .ns-col-6, .ns-col-8 { grid-column: span 12; }
  .ns-admin-two-col { grid-template-columns: 1fr; }
  .ns-presets-layout { grid-template-columns: 1fr; }
}

.breadcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 8px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: rgba(71, 85, 105, 0.92); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.65; }
.breadcrumb-current { color: rgba(15, 23, 42, 0.92); font-weight: 650; }

.doc { font-size: 14px; line-height: 1.8; color: var(--text); }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: 20px; margin: 18px 0 10px; }
.doc h3 { font-size: 16px; margin: 16px 0 8px; }
.doc h4 { font-size: 14px; margin: 14px 0 6px; color: rgba(15, 23, 42, 0.92); }
.doc p { margin: 0 0 12px 0; }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.doc ul, .doc ol { padding-left: 20px; margin: 0 0 12px 0; }
.doc li { margin: 4px 0; }
.doc code { padding: 2px 6px; border-radius: 8px; background: rgba(226, 232, 240, 0.6); border: 1px solid rgba(226, 232, 240, 0.95); font-size: 0.92em; }
.doc pre { margin: 12px 0; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(248, 250, 252, 0.92); overflow: auto; }
.doc pre code { padding: 0; border: 0; background: transparent; font-size: 13px; line-height: 1.7; }
.doc blockquote { margin: 12px 0; padding: 10px 12px; border-left: 3px solid rgba(37, 99, 235, 0.55); background: rgba(37, 99, 235, 0.06); border-radius: 10px; color: rgba(30, 41, 59, 0.95); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; }
.doc th, .doc td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
.doc img[style] {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  transform-origin: initial !important;
  z-index: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
}

.article-card { padding: 18px 20px 22px; }
.article-layout { display: flex; gap: 24px; align-items: stretch; }
.article-layout .doc { flex: 1 1 auto; min-width: 0; width: 100%; }
.article-divider { height: 0; border-top: 1px dashed rgba(148, 163, 184, 0.45); margin: 12px 0 18px; }

.article-timeline { position: sticky; top: 12px; align-self: stretch; margin: 0; padding: 6px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; width: 240px; min-width: 220px; display: flex; flex-direction: column; }
.article-timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 12px 0; }
.article-timeline-title { font-size: 14px; font-weight: 750; color: rgba(15, 23, 42, 0.92); letter-spacing: 0.02em; }
.article-timeline-body { position: relative; display: flex; flex-direction: column; gap: 10px; padding-left: 22px; align-self: stretch; flex: 1 1 auto; }
.article-timeline-body::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(148, 163, 184, 0.45); border-radius: 2px; z-index: 1; }
.article-timeline-item { position: relative; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: rgba(71, 85, 105, 0.92); font-size: 13px; line-height: 1.45; background: transparent; border: 0; box-shadow: none; outline: none; z-index: 2; }
.article-timeline-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 18px; height: 18px; border-radius: 999px; border: 2px solid rgba(148, 163, 184, 0.75); background: var(--surface); box-sizing: border-box; z-index: 3; box-shadow: 0 0 0 4px var(--surface); }
.article-timeline-item:hover { text-decoration: none; background: rgba(148, 163, 184, 0.12); }
.article-timeline-item:focus-visible { outline: none; background: rgba(148, 163, 184, 0.18); }
.article-timeline-item.is-active { color: rgba(15, 23, 42, 0.95); font-weight: 650; background: rgba(37, 99, 235, 0.08); }
.article-timeline-item.is-active::before { border-color: rgba(37, 99, 235, 0.85); background: rgba(37, 99, 235, 0.16); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px rgba(37, 99, 235, 0.12); }
.article-timeline-item.is-active::after { content: ""; position: absolute; left: -20px; top: 11px; width: 10px; height: 10px; background-color: rgba(37, 99, 235, 0.95); -webkit-mask: url("svg/checkmark.svg") no-repeat center / contain; mask: url("svg/checkmark.svg") no-repeat center / contain; }
.article-timeline-item[data-level="2"] { margin-left: 10px; }
.article-timeline-item[data-level="3"] { margin-left: 18px; }
.article-timeline.is-collapsed .article-timeline-body { display: none; }

.article-head { padding: 2px 0 6px 0; }
.article-title { margin: 0 0 8px 0; font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.article-meta { display: grid; gap: 6px; }
.article-meta-line { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.article-meta-label { font-size: 12px; color: var(--muted); min-width: 40px; }
.article-meta-value { font-size: 13px; color: rgba(71, 85, 105, 0.92); }
.article-meta-value .pill { margin-right: 6px; }
.article-meta-tags { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.article-meta-tag { color: rgba(71, 85, 105, 0.92); text-decoration: none; }
.article-meta-tag:hover { text-decoration: underline; }
.article-meta-link { color: rgba(71, 85, 105, 0.92); text-decoration: none; }
.article-meta-link:hover { text-decoration: underline; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.article-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.article-meta-icon { width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; background-color: rgba(71, 85, 105, 0.7); -webkit-mask: var(--svg) no-repeat center / contain; mask: var(--svg) no-repeat center / contain; }
.article-meta-icon--category { --svg: url("svg/tag.svg"); }
.article-meta-icon--tag { --svg: url("svg/tags.svg"); }
.article-meta-icon--time { --svg: url("svg/clock.svg"); }
.article-meta-icon--favorite { --svg: url("svg/heart.svg"); }
.article-meta-icon--views { --svg: url("svg/preview.svg"); }
@media (max-width: 640px) { .article-title { font-size: 22px; } }
@media (max-width: 900px) {
  .article-layout { flex-direction: column; }
  .article-timeline { position: static; width: 100%; }
}

.doc img { cursor: zoom-in; max-width: 100%; height: auto; border-radius: 10px; }
.doc iframe { display: block; width: 100% !important; max-width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; border-radius: 12px; }
.doc video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: #000; border-radius: 12px; }
.doc .doc-embed { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--border); background: rgba(15, 23, 42, 0.04); padding: 16px; }
.doc .doc-embed-body { text-align: center; max-width: 360px; }
.doc .doc-embed-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.doc .doc-embed-desc { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.doc .doc-embed-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.doc .doc-embed-action,
.doc .doc-embed-load { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); font-size: 12px; text-decoration: none; color: var(--text); background: rgba(255, 255, 255, 0.9); }
.doc .doc-embed-load { background: rgba(15, 23, 42, 0.08); }

.sidenav a[data-level="2"] { padding-left: 22px; }
.sidenav a[data-level="3"] { padding-left: 32px; }
.section { margin: 18px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-head h2 { margin: 0; font-size: 18px; }
.section-desc { font-size: 12px; line-height: 1.2; }
.section-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.section-more-link:hover { text-decoration: underline; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.dashboard-head .h1 { margin: 0; }
.dashboard-range { display: flex; gap: 8px; flex-wrap: wrap; }
.dashboard .section { margin: 14px 0; }
.dashboard .section-head { margin-bottom: 8px; }
.dashboard .section-head h2 { font-size: 16px; }
.dashboard-tab-head { align-items: center; }
.dashboard-tabs { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.dashboard-tab { padding: 10px 12px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative; height: 38px; }
.dashboard-tabs > .dashboard-tab + .dashboard-tab::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); opacity: 0.95; }
.dashboard-tab.is-active { background: rgba(37, 99, 235, 0.10); color: var(--primary); }
.dashboard-tab-body { margin-top: 6px; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.dashboard-tab-panel { display: none; }
.dashboard-tab-panel.is-active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.dashboard-tab-hint { font-size: 12px; margin-bottom: 4px; }
.grid.dashboard-viz-row { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.grid.dashboard-viz-row > .card { height: 320px; }
@media (max-width: 860px) {
  .grid.dashboard-viz-row { grid-template-columns: 1fr; }
  .grid.dashboard-viz-row > .card { height: auto; }
}
.dashboard-viz-card { position: relative; display: flex; flex-direction: column; padding: 10px; }
.dashboard-viz-card .dashboard-tab-body { flex: 1 1 auto; min-height: 0; }
.dashboard-chart-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.dashboard-legend-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.75); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; user-select: none; }
body[data-theme="dark"] .dashboard-legend-item { background: rgba(15, 23, 42, 0.35); }
.dashboard-legend-item.is-off .dashboard-legend-text { text-decoration: line-through; opacity: 0.72; }
.dashboard-legend-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.dashboard-chart-canvas-wrap { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.dashboard-chart-canvas { width: 100%; display: block; }
.dashboard-chart-fallback { margin-top: 10px; }
.dashboard-chart-tooltip {
  position: absolute;
  left: var(--x, 0);
  top: var(--y, 0);
  z-index: 20;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.12);
  padding: 10px 12px;
  min-width: 180px;
  max-width: 260px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text);
}
body[data-theme="dark"] .dashboard-chart-tooltip {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
.dashboard-tooltip-title { font-weight: 800; margin-bottom: 6px; }
.dashboard-tooltip-line { display: flex; align-items: center; gap: 8px; }
.dashboard-tooltip-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; opacity: 0.9; background: rgba(148, 163, 184, 0.85); }
.dashboard-rank-card { padding: 10px; }
.dashboard-rank-scroll { margin-top: 8px; overflow: auto; max-height: calc(100% - 26px); }
.dashboard-rank-list { display: flex; flex-direction: column; gap: 8px; }
.dashboard-rank-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) minmax(54px, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.dashboard-rank-name {
  font-size: 13px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.90);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-theme="dark"] .dashboard-rank-name { color: rgba(226, 232, 240, 0.88); }
.dashboard-rank-value {
  font-size: 13px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.85);
  min-width: 28px;
  text-align: right;
}
body[data-theme="dark"] .dashboard-rank-value { color: rgba(226, 232, 240, 0.85); }
.dashboard-rank-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  overflow: hidden;
}
body[data-theme="dark"] .dashboard-rank-bar { background: rgba(148, 163, 184, 0.16); }
.dashboard-rank-bar-fill { height: 100%; border-radius: 999px; background: rgba(37, 99, 235, 0.85); width: var(--pct, 0%); }
.wide-anchor-nav { display: none; }
body[data-layout="compact"] .wide-anchor-nav {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
body[data-layout="compact"] .wide-anchor-nav.is-visible { display: flex; }
body[data-layout="compact"] .wide-anchor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10);
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: none;
}
body[data-layout="compact"] .wide-anchor-nav .journal-anchor-short { display: inline; }
body[data-layout="compact"] .wide-anchor-nav .journal-anchor-full,
body[data-layout="compact"] .wide-anchor-nav .journal-anchor-pill { display: none; }
body[data-layout="compact"] .wide-anchor-link.is-active {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
}
body[data-layout="compact"] .wide-anchor-link.is-past { border-color: var(--border); }
body[data-theme="dark"][data-layout="compact"] .wide-anchor-link {
  background: rgba(15, 23, 42, 0.70);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}
body[data-theme="dark"][data-layout="compact"] .wide-anchor-link.is-active { background: rgba(15, 23, 42, 0.70); }
.kpi-value { font-size: 26px; font-weight: 750; margin-top: 6px; line-height: 1.1; }
.stat-value { font-size: 20px; font-weight: 750; margin-top: 6px; line-height: 1.1; }
.kpi-sub { margin-top: 6px; font-size: 12px; }
.dashboard-chart-wrap { margin-top: 8px; overflow: hidden; }
.dashboard-chart-wrap svg { width: 100%; height: auto; display: block; }

.site-head { display: flex; gap: 10px; align-items: center; }
.favicon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
  object-fit: contain;
}
.site-meta { min-width: 0; }
.site-domain { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card { position: relative; cursor: pointer; }
.site-card:hover { transform: translateY(-1px); }
.site-card-link { position:absolute; inset:0; z-index:1; border-radius: var(--radius); }
.site-jump {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 16px;
  height: 16px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.75);
  color: rgba(71, 85, 105, 0.45);
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  font-size: 12px;
}
.site-jump:hover { color: rgba(71, 85, 105, 0.7); text-decoration: none; filter: brightness(0.98); }
.bookmark-head-right { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.bookmark-tools {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.bookmark-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  user-select: none;
  min-height: 38px;
}
.bookmark-tool-link:hover { background: rgba(226, 232, 240, 0.60); text-decoration: none; }
.bookmark-tool-link.active { background: rgba(37, 99, 235, 0.10); color: var(--primary); }
.bookmark-tool-icon { font-size: 16px; line-height: 1; width: 16px; text-align: center; }
.bookmark-tool-text { font-size: 13px; }

.card.bookmark-card { padding: 10px 12px; }
.card.bookmark-card .bookmark-head-right { flex-wrap: nowrap; min-width: 0; }
.card.bookmark-card .bookmark-tools { gap: 6px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -ms-overflow-style: none; scrollbar-width: none; }
.card.bookmark-card .bookmark-tools::-webkit-scrollbar { display: none; }
.card.bookmark-card .bookmark-tool-link { padding: 0; border-radius: 0; min-height: 0; gap: 5px; white-space: nowrap; }
.card.bookmark-card .bookmark-tool-icon { font-size: 14px; width: 14px; }
.card.bookmark-card .bookmark-tool-text { font-size: 11px; line-height: 1; white-space: nowrap; }
.card.bookmark-card #bookmark-bar { margin-top: 6px; }
.card.bookmark-card .bookmark-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 8px; }
.card.bookmark-card .bookmark-item { width: 40px; height: 40px; border-radius: 12px; }
body[data-bookmarks="1"] .card.bookmark-card .card-title { white-space: nowrap; }
@media (max-width: 520px) {
  body[data-bookmarks="1"] .card.bookmark-card .row { gap: 8px; }
  body[data-bookmarks="1"] .card.bookmark-card .bookmark-head-right { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 6px; }
  body[data-bookmarks="1"] .card.bookmark-card .bookmark-tool-text { font-size: 10px; }
}
@media (max-width: 420px) {
  body[data-bookmarks="1"] .card.bookmark-card .bookmark-tool-text { font-size: 10px; }
}
body[data-bookmarks="0"] .card.bookmark-card { display: none !important; }

.account-page { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; }
.license-required { max-width: 780px; margin: 0 auto; padding: 36px 0; }
.license-required-kv { display: grid; gap: 10px; }
.license-required-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.account-flash.ok { border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.06); }
.account-flash.ok .muted { color: #14532d; }
.account-flash.err { border-color: rgba(220, 38, 38, 0.35); background: rgba(220, 38, 38, 0.06); }
.account-flash.err .muted { color: #991b1b; }
.wrap-person { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.wrap-person > .information { padding: 10px 12px; border-bottom: 0; }
.wrap-person > main { padding: 10px 12px 12px; }
.wrap-person .information { display: flex; align-items: center; gap: 12px; }
.wrap-person .head { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: rgba(226, 232, 240, 0.35); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; position: relative; cursor: pointer; }
.account-avatar { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: var(--muted); }
.navsite-avatar-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.35); opacity: 0; transition: opacity 0.15s ease; pointer-events: none; color: #fff; }
.navsite-avatar-wrap:hover .navsite-avatar-overlay { opacity: 1; }
.navsite-avatar-wrap.is-uploading .navsite-avatar-overlay { opacity: 1; }
.navsite-avatar-overlay .svg-icon { filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25)); }
.wrap-person .name { flex: 1; min-width: 0; }
.wrap-person .name .text-gray-400 { color: rgba(71, 85, 105, 0.75); }
.account-logout-form { margin: 0; }
.account-logout { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 16px; line-height: 1; }
.account-logout:hover { filter: brightness(0.98); }
.account-settings { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.account-settings li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px; border-radius: 12px; background: rgba(226, 232, 240, 0.25); border: 1px solid rgba(226, 232, 240, 0.5); }
.account-settings li.customizer-group { flex-direction: column; align-items: stretch; }
.customizer-group-rows { margin-top: 12px; display: grid; gap: 0; }
.customizer-group-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(226, 232, 240, 0.75); }
.customizer-group-row:first-child { border-top: 0; padding-top: 0; }
.customizer-group-row:last-child { padding-bottom: 0; }
.customizer-group-row-left { min-width: 0; }
.customizer-group-row-right { flex: 1 1 auto; min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; }
.customizer-group-row-right .customizer-range { width: min(190px, 48vw); flex: 1 1 140px; min-width: 110px; }
.customizer-range-value { flex: 0 0 auto; min-width: 56px; text-align: right; font-variant-numeric: tabular-nums; color: rgba(71, 85, 105, 0.75); font-size: 12px; }

@media (max-width: 420px) {
  .customizer-group-row { flex-wrap: wrap; }
  .customizer-group-row-right { width: 100%; justify-content: space-between; }
  .customizer-group-row-right .customizer-range { width: auto; flex: 1 1 auto; }
}
.account-settings .left { min-width: 0; }
.account-settings .title { font-weight: 650; }
.account-settings .detail { margin-top: 4px; color: rgba(71, 85, 105, 0.75); font-size: 12px; line-height: 1.4; }
.account-settings .right { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.customizer-group .title { font-weight: 400; font-size: 13px; }
.customizer-group .detail { font-weight: 400; font-size: 12px; }
.customizer-fold-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: transparent; border: 0; padding: 0; cursor: pointer; color: inherit; text-align: left; }
.customizer-fold-chevron { opacity: 0.75; transition: transform 0.15s ease; }
.customizer-fold-head.is-open .customizer-fold-chevron { transform: rotate(180deg); }
.customizer-tiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
@media (min-width: 520px) {
  .customizer-tiles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.customizer-tile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 10px; border-radius: 12px; border: 1px solid rgba(226, 232, 240, 0.8); background: rgba(248, 250, 252, 0.85); gap: 10px; cursor: pointer; user-select: none; }
.customizer-tile:hover { filter: brightness(0.98); }
.customizer-tile .tile-title { font-size: 13px; font-weight: 400; color: var(--muted); }
.el-switch.compact .el-switch__label { display: none; }
.account-danger { color: var(--danger); font-size: 18px; text-decoration: none; }
.account-danger:hover { text-decoration: none; filter: brightness(0.98); }
.account-more { border: 0; padding: 0; margin: 0; }
.account-more-title { cursor: pointer; font-weight: 650; color: var(--text); }

.user-drawer-action-combo {
  display: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  height: 56px;
  width: clamp(120px, 22vw, 168px);
  background: rgba(226, 232, 240, 0.18);
  flex: 0 0 auto;
}
.user-drawer-action-combo.has-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.user-drawer-action-combo:not(.has-admin) { display: block; }
.user-drawer-action-combo-right {
  height: 100%;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.user-drawer-action-combo.has-admin .user-drawer-action-combo-right { border-left: 0; }
.user-drawer-action-combo .btn {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  padding: 0 8px;
  font-size: 12px;
  background: transparent;
}
.user-drawer-action-combo-right .btn + .btn { border-top: 0; }
.user-drawer-action-combo-right .btn:not(.danger) { background: rgba(148, 163, 184, 0.10); }
.user-drawer-action-combo-right .btn:not(.danger):hover { filter: brightness(0.98); }
.user-drawer-action-combo .user-drawer-admin {
  height: 100%;
  font-weight: 650;
  white-space: nowrap;
  padding: 0;
  background: rgba(37, 99, 235, 0.14);
  color: rgba(30, 64, 175, 0.95);
  display: grid;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  line-height: 1;
}
.user-drawer-action-combo .user-drawer-admin:hover { filter: brightness(0.98); }
.user-drawer-action-combo .user-drawer-admin-top,
.user-drawer-action-combo .user-drawer-admin-bottom { display: block; }
.user-drawer-action-combo .btn.danger {
  background: rgba(220, 38, 38, 0.12);
  color: rgba(153, 27, 27, 0.95);
}
.user-drawer-action-combo .btn.danger:hover { filter: brightness(0.98); }

.user-drawer-panels {
  margin: 10px -12px 0;
  display: block;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
}
.user-drawer-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}
.user-drawer-panel + .user-drawer-panel { border-top: 1px solid rgba(226, 232, 240, 0.85); }
.user-drawer-panel-title {
  cursor: pointer;
  font-weight: 650;
  color: var(--text);
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.user-drawer-panel-title::-webkit-details-marker { display: none; }
.user-drawer-panel-title::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: rgba(71, 85, 105, 0.85);
  -webkit-mask: url("svg/chevron-down.svg") no-repeat center / contain;
  mask: url("svg/chevron-down.svg") no-repeat center / contain;
  transition: transform 160ms ease;
  flex: 0 0 auto;
}
.user-drawer-panel:hover { background: rgba(226, 232, 240, 0.18); }
.user-drawer-panel[open] { background: rgba(226, 232, 240, 0.14); }
.user-drawer-panel[open] > .user-drawer-panel-title::after { transform: rotate(180deg); }
.user-drawer-panel-body { padding: 0 12px 12px; border-top: 0; }
.user-drawer-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.user-drawer-table th,
.user-drawer-table td { padding: 8px 10px; vertical-align: top; border-bottom: 1px solid rgba(226, 232, 240, 0.85); }
.user-drawer-table thead th { color: rgba(71, 85, 105, 0.85); font-size: 12px; font-weight: 650; }
.user-drawer-table td.muted { color: rgba(71, 85, 105, 0.75); }

.user-drawer-flash-wrap { margin-top: 12px; }
.user-drawer-flash-card { padding: 12px; }
.user-drawer-auth-wrap { margin-top: 12px; }
.user-drawer-auth-pane { margin-top: 12px; }
.user-drawer-field { margin-bottom: 10px; }
.user-drawer-field:last-child { margin-bottom: 0; }
.user-drawer-combo-input {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 0;
  outline: none;
  background: transparent;
  min-width: 0;
  font: inherit;
  color: var(--text);
}
.user-drawer-combo-suffix {
  flex: 0 0 auto;
  padding: 10px 12px;
  color: var(--muted);
  white-space: nowrap;
}
.user-drawer-combo-select {
  flex: 0 0 150px;
  padding: 10px 12px;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--text);
  cursor: pointer;
}
.user-drawer-captcha { display: grid; gap: 6px; }
.user-drawer-captcha-label { margin-bottom: 0; }
.user-drawer-captcha-img { width: 120px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; flex: 0 0 auto; display: block; }
.user-drawer-captcha-img.w-96 { width: 96px; }
.user-drawer-captcha-input { flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); outline: none; font: inherit; color: var(--text); }
.user-drawer-captcha-combo { height: 40px; }
.user-drawer-captcha-combo .user-drawer-captcha-input { height: 100%; border: 0; border-radius: 0; background: transparent; }
.user-drawer-captcha-combo .user-drawer-captcha-img { height: 100%; border: 0; border-radius: 0; background: transparent; }
.user-drawer-captcha-combo.is-img-left .user-drawer-captcha-img { border-right: 1px solid var(--border); }
.user-drawer-captcha-combo:not(.is-img-left) .user-drawer-captcha-img { border-left: 1px solid var(--border); }
.user-drawer-btn-block { width: 100%; }
.user-drawer-hint { margin-bottom: 12px; }
.user-drawer-code-combo { margin-top: 6px; }
.btn.user-drawer-code-btn {
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--border);
  background: transparent;
  padding: 10px 12px;
  white-space: nowrap;
}

.user-drawer-input-combo {
  width: 100%;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(248, 250, 252, 0.6);
}
.user-drawer-input-combo select {
  max-width: 180px;
  min-width: 120px;
  cursor: pointer;
}
.user-drawer-captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (max-width: 520px) {
  .user-drawer-combo-select { flex: 0 0 132px; }
  .user-drawer-input-combo select { max-width: 160px; min-width: 104px; }
}
@media (max-width: 420px) {
  .user-drawer-captcha-row { flex-direction: column; align-items: stretch; }
  .user-drawer-captcha-img { width: 100%; max-width: 220px; }
  .user-drawer-combo-select { flex: 0 0 120px; }
  .user-drawer-input-combo select { max-width: 140px; min-width: 92px; }
}

.user-sub-flash { margin-bottom: 10px; }
.user-sub-icon-img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: none; }
.user-sub-icon-img.is-visible { display: block; }
.user-sub-icon-ph { font-size: 12px; }
.user-sub-action-row { display: flex; align-items: stretch; gap: 10px; margin-top: 10px; }
.user-sub-captcha-wrap { flex: 1 1 auto; min-width: 0; }
.user-sub-submit-btn { height: 40px; padding: 0 14px; white-space: nowrap; flex: 0 0 auto; }
.user-sub-submit-btn.is-busy { opacity: 0.7; pointer-events: none; }
.user-sub-list-title { margin-top: 14px; font-weight: 650; }
.user-sub-list-wrap { margin-top: 8px; }
.user-submissions-scroller { overflow: auto; }
.user-submissions-table th { text-align: left; }
.user-submissions-table th:nth-child(1) { width: 54px; }
.user-submissions-table th:nth-child(3) { width: 150px; }
.user-submissions-table th:nth-child(4) { width: 160px; }
.user-submissions-ico { width: 28px; height: 28px; border-radius: 10px; border: 1px solid var(--border); background: rgba(226, 232, 240, 0.22); object-fit: contain; padding: 4px; display: block; }
body[data-theme="dark"] .user-submissions-ico { background: rgba(148, 163, 184, 0.10); }
.user-submissions-name-cell { min-width: 0; }
.user-submissions-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-submissions-url { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-submissions-time { font-size: 12px; }
.user-submissions-status-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.user-submissions-cancel { font-size: 12px; text-decoration: underline; }
.user-submissions-dash { font-size: 12px; }
.user-ticket-compose-row { display: flex; gap: 10px; margin-top: 10px; }
.user-ticket-subject { flex: 1 1 auto; min-width: 0; }
.user-ticket-priority { flex: 0 0 auto; min-width: 120px; }
@media (max-width: 420px) {
  .user-sub-action-row { flex-direction: column; }
  .user-sub-submit-btn { width: 100%; }
  .user-ticket-compose-row { flex-direction: column; }
  .user-ticket-priority { width: 100%; min-width: 0; }
}
.user-ticket-message { margin-top: 10px; }
.user-ticket-submit { margin-top: 10px; }
.user-ticket-list-wrap { margin-top: 8px; display: grid; gap: 10px; }
.user-ticket-reply-wrap { margin-top: 10px; display: grid; gap: 10px; }

@media (max-width: 520px) {
  .user-drawer-input-combo select { min-width: 96px; max-width: 140px; }
  .user-sub-name-url-row { flex-direction: column; }
  .user-sub-action-row { flex-direction: column; }
  .user-sub-submit-btn { width: 100%; }
  .user-ticket-compose-row { flex-direction: column; }
  .user-ticket-priority { width: 100%; min-width: 0; }
}
@media (max-width: 360px) {
  .user-drawer-input-combo select { min-width: 84px; max-width: 120px; }
}

.user-sub-grid { display: grid; gap: 10px; margin-top: 10px; }
.user-sub-name-url-row { display: flex; gap: 10px; min-width: 0; }
.user-sub-name-url-row .user-inline-input { flex: 1 1 auto; min-width: 0; }
.user-sub-url-combo {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.user-sub-url-combo .user-sub-icon-preview {
  width: 44px;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--border);
  background: rgba(226,232,240,0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.user-sub-url-combo .user-inline-input {
  border: 0;
  border-radius: 0;
  background: transparent;
  flex: 1 1 auto;
  min-width: 0;
}
.user-sub-desc-row { min-width: 0; }
.user-sub-desc-row .user-inline-textarea { width: 100%; }
.user-sub-icon-preview {
  width: 44px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(226,232,240,0.25);
  overflow: hidden;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-inline-field { display: flex; gap: 10px; align-items: center; }
.user-inline-label { width: 52px; color: rgba(71, 85, 105, 0.85); font-size: 13px; flex: 0 0 auto; }
.user-inline-input,
.user-inline-textarea {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  outline: none;
  resize: none;
}
.user-inline-textarea { line-height: 1.5; }
@media (max-width: 520px) {
  .user-sub-name-url-row { flex-direction: column; }
}

.user-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1;
  color: rgba(71, 85, 105, 0.85);
}
.user-status-pill.ok { border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.08); color: #14532d; }
.user-status-pill.warn { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.10); color: #7c2d12; }
.user-status-pill.err { border-color: rgba(220, 38, 38, 0.35); background: rgba(220, 38, 38, 0.08); color: #991b1b; }

.user-pill-group {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
}
.user-pill-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1;
  color: rgba(71, 85, 105, 0.85);
}
.user-pill-seg + .user-pill-seg { border-left: 1px solid rgba(148, 163, 184, 0.30); }
.user-pill-seg.pri-normal { background: rgba(22, 163, 74, 0.10); color: #14532d; }
.user-pill-seg.pri-low { background: rgba(245, 158, 11, 0.12); color: #7c2d12; }
.user-pill-seg.pri-high { background: rgba(220, 38, 38, 0.10); color: #991b1b; }
.user-pill-seg.st-open { background: rgba(22, 163, 74, 0.08); color: #14532d; }
.user-pill-seg.st-pending { background: rgba(245, 158, 11, 0.10); color: #7c2d12; }
.user-pill-seg.st-closed { background: rgba(148, 163, 184, 0.16); color: rgba(71, 85, 105, 0.92); }
.user-money { font-weight: 650; font-variant-numeric: tabular-nums; }

.user-ticket-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.85);
  overflow: hidden;
}
.user-ticket-summary {
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
}
.user-ticket-summary::-webkit-details-marker { display: none; }
.user-ticket-summary::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: rgba(71, 85, 105, 0.85);
  -webkit-mask: url("svg/chevron-down.svg") no-repeat center / contain;
  mask: url("svg/chevron-down.svg") no-repeat center / contain;
  transition: transform 160ms ease;
  flex: 0 0 auto;
  margin-top: 2px;
}
.user-ticket-item[open] > .user-ticket-summary::after { transform: rotate(180deg); }
.user-ticket-body { padding: 0 12px 12px; border-top: 1px solid rgba(226, 232, 240, 0.85); }
.user-ticket-thread { display: grid; gap: 10px; margin-top: 10px; }
.user-ticket-msg { display: flex; }
.user-ticket-msg.me { justify-content: flex-end; }
.user-ticket-msg.admin { justify-content: flex-start; }
.user-ticket-bubble {
  max-width: 92%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(226, 232, 240, 0.22);
}
.user-ticket-msg.me .user-ticket-bubble { background: rgba(22, 163, 74, 0.06); border-color: rgba(22, 163, 74, 0.22); }
.user-ticket-msg.admin .user-ticket-bubble { background: rgba(37, 99, 235, 0.06); border-color: rgba(37, 99, 235, 0.22); }
.user-ticket-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: rgba(71, 85, 105, 0.85); }
.user-ticket-text { margin-top: 6px; white-space: pre-wrap; }

.user-submission-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.85);
  overflow: hidden;
}
.user-submission-row {
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.user-submission-summary {
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
}
.user-submission-summary::-webkit-details-marker { display: none; }
.user-submission-summary::after {
  content: "";
  width: 16px;
  height: 16px;
  background-color: rgba(71, 85, 105, 0.85);
  -webkit-mask: url("svg/chevron-down.svg") no-repeat center / contain;
  mask: url("svg/chevron-down.svg") no-repeat center / contain;
  transition: transform 160ms ease;
  flex: 0 0 auto;
  margin-top: 2px;
}
.user-submission-item[open] > .user-submission-summary::after { transform: rotate(180deg); }
.user-submission-body { padding: 0 12px 12px; border-top: 1px solid rgba(226, 232, 240, 0.85); }

.bookmark-panel-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.bookmark-panel-add { margin-top: 10px; }
.bookmark-panel-bar { margin-top: 12px; }
.bookmark-panel-add .customizer-input { padding: 10px 12px; min-width: 240px; }
.bookmark-panel-add .btn { padding: 10px 12px; }
.bookmark-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.85);
  color: rgba(71, 85, 105, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}
.bookmark-btn:hover { filter: brightness(0.98); }
.bookmark-btn.on {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
}
.bookmark-btn.inline { position: static; }
.site-card .bookmark-btn { position: absolute; top: 10px; right: 10px; }
.card.bookmarkable { position: relative; }
.card.bookmarkable > .bookmark-btn { position: absolute; top: 10px; right: 10px; }
.bookmark-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 10px;
}
.bookmark-grid.editing { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.bookmark-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}
.bookmark-item:hover { text-decoration: none; box-shadow: 0 8px 22px rgba(15, 23, 42, 0.10); border-color: rgba(148, 163, 184, 0.65); }
.bookmark-item.edit {
  width: 56px;
  height: 56px;
  cursor: grab;
  overflow: visible;
}
.bookmark-item.edit.manage { cursor: default; }
.bookmark-item.dragging { opacity: 0.55; cursor: grabbing; }
.bookmark-item.placeholder {
  border-style: dashed;
  background: rgba(226, 232, 240, 0.25);
}
.bookmark-del {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(45%, -45%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.95);
  color: rgba(71, 85, 105, 0.9);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  z-index: 5;
}
.bookmark-del:hover { filter: brightness(0.98); }
.bookmark-icon {
  width: 100%;
  height: 100%;
  padding: 8px;
  box-sizing: border-box;
  border-radius: inherit;
  background: transparent;
  object-fit: contain;
}
.bookmark-item.edit .bookmark-icon { padding: 10px; }
.bookmark-add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bookmark-add-row.inline { gap: 8px; flex-wrap: nowrap; }
.bookmark-add-row.inline input { min-width: 280px; width: min(520px, 52vw); padding: 8px 10px; border-radius: 999px; }
.bookmark-add-row.inline .btn { padding: 8px 10px; border-radius: 999px; }
.bookmark-add-row.inline .btn.primary { background: rgba(37, 99, 235, 0.92); border-color: rgba(37, 99, 235, 0.8); color: #fff; }
.bookmark-add-row input {
  flex: 1;
  min-width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 13px;
  z-index: 9999;
  pointer-events: none;
  max-width: calc(100vw - 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.btn.sm { padding: 8px 10px; font-size: 13px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:hover { filter: brightness(0.98); text-decoration: none; }
.btn-reset { margin: 0; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.btn-reset:disabled { opacity: .45; cursor: not-allowed; }
.review-action.review-action--approve { color: #16a34a; }
.review-action.review-action--reject { color: var(--danger); }
.review-action.review-action--pending { color: var(--primary); }
.review-action:disabled { color: var(--muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
}
.badge--primary { background: rgba(37, 99, 235, 0.10); border-color: rgba(37, 99, 235, 0.25); color: var(--primary); }
.badge--ok { background: rgba(22, 163, 74, 0.10); border-color: rgba(22, 163, 74, 0.25); color: #16a34a; }
.badge--warn { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.28); color: #b45309; }
.badge--danger { background: rgba(220, 38, 38, 0.10); border-color: rgba(220, 38, 38, 0.25); color: var(--danger); }
.badge--muted { background: rgba(71, 85, 105, 0.10); border-color: rgba(71, 85, 105, 0.22); color: var(--muted); }

.alert {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
}
.alert--success { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.22); color: #14532d; }
.alert--danger { background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.20); color: #991b1b; }
.alert--info { background: rgba(37, 99, 235, 0.07); border-color: rgba(37, 99, 235, 0.20); color: rgba(30, 41, 59, 0.95); }

.switch {
  appearance: none;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.6);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background 120ms ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transition: transform 120ms ease;
}
.switch:checked {
  background: rgba(34, 197, 94, 0.9);
}
.switch:checked::after {
  transform: translateX(20px);
}

.nav-module { display: flex; align-items: center; gap: 10px; }
.nav-auth { display: flex; align-items: center; gap: 10px; }
.sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sign:hover { text-decoration: underline; }
.dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 8px; }
.journal__wrap { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); cursor: pointer; user-select: none; max-width: 180px; }
.journal__wrap:hover .journal__name { text-decoration: underline; }
.journal__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.el-icon-arrow-down, .el-icon-arrow-up, .el-icon-refresh { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--muted); }
.el-icon-arrow-down::before { content: ""; }
.el-icon-arrow-up::before { content: ""; }
.journal__wrap .el-icon-arrow-up { display: none; }
.journal__wrap.open .el-icon-arrow-down { display: none; }
.journal__wrap.open .el-icon-arrow-up { display: inline-flex; }
.el-icon-refresh::before { content: ""; }
.el-icon-refresh:hover { color: var(--text); }

.mr-px-4 { margin-right: 4px; }
.ml-px-4 { margin-left: 4px; }
.pointer { cursor: pointer; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 auto; min-width: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.my-8 { margin-top: 8px; margin-bottom: 8px; }
.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-2 { margin-top: 2px; }
.mr-px-6 { margin-right: 6px; }
.py-6 { padding-top: 6px; padding-bottom: 6px; }
.min-w-0 { min-width: 0; }
.max-w-900 { max-width: 900px; }
.ml-auto { margin-left: auto; }
.overflow-auto { overflow: auto; }
.max-h-220 { max-height: 220px; }
.min-w-150 { min-width: 150px; }
.min-w-180 { min-width: 180px; }
.min-w-200 { min-width: 200px; }
.min-w-240 { min-width: 240px; }
.min-w-220 { min-width: 220px; }
.min-w-320 { min-width: 320px; }
.min-w-260 { min-width: 260px; }
.min-w-280 { min-width: 280px; }
.min-w-360 { min-width: 360px; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.font-650 { font-weight: 650; }
.font-750 { font-weight: 750; }
.mw-260 { max-width: 260px; }
.mw-320 { max-width: 320px; }
.mw-520 { max-width: 520px; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-prewrap { white-space: pre-wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.word-break-all { word-break: break-all; }
.is-hidden { display: none !important; }
.is-disabled { opacity: .5; pointer-events: none; }
.spin { animation: ns-spin 1s linear infinite; }
@keyframes ns-spin { to { transform: rotate(360deg); } }
.form-reset { margin: 0; }
.spacer-10 { height: 10px; }
.spacer-12 { height: 12px; }
.w-full { width: 100%; }
.w-44 { width: 44px; }
.w-62 { width: 62px; }
.w-64 { width: 64px; }
.w-70 { width: 70px; }
.w-78 { width: 78px; }
.w-80 { width: 80px; }
.w-86 { width: 86px; }
.w-90 { width: 90px; }
.w-92 { width: 92px; }
.w-96 { width: 96px; }
.w-100 { width: 100px; }
.w-112 { width: 112px; }
.w-120 { width: 120px; }
.w-140 { width: 140px; }
.w-160 { width: 160px; }
.w-180 { width: 180px; }
.w-200 { width: 200px; }
.w-220 { width: 220px; }
.w-240 { width: 240px; }
.w-260 { width: 260px; }
.h-full { height: 100%; }
.text-sm { font-size: 12px; }
.text-gray-400 { color: rgba(71, 85, 105, 0.75); }
.text-red-500 { color: var(--danger); }
.text-success { color: #14532d; }
.text-danger { color: #991b1b; }
.iconfont { display: inline-flex; align-items: center; justify-content: center; }
.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: var(--svg) no-repeat center / contain;
  mask: var(--svg) no-repeat center / contain;
}
.svg-icon.svg-12 { width: 12px; height: 12px; }
.svg-icon.svg-16 { width: 16px; height: 16px; }
.svg-icon.svg-18 { width: 18px; height: 18px; }
.svg-icon.svg-22 { width: 22px; height: 22px; }
.icon-12, .icon-14, .icon-16, .icon-18, .icon-22, .icon-24, .icon-32 { display: block; flex: 0 0 auto; }
.icon-12 { width: 12px; height: 12px; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-22 { width: 22px; height: 22px; }
.icon-24 { width: 24px; height: 24px; }
.icon-32 { width: 32px; height: 32px; }
.svg-icon.svg-inline {
  background-color: transparent;
  -webkit-mask: none;
  mask: none;
  line-height: 0;
}
.svg-icon.svg-inline > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.svg-icon.svg-inline > svg path,
.svg-icon.svg-inline > svg circle,
.svg-icon.svg-inline > svg rect,
.svg-icon.svg-inline > svg polygon {
  fill: currentColor;
}

.iconfont.icon-tuichu, .el-icon-remove, .el-icon-arrow-down, .el-icon-arrow-up, .el-icon-refresh {
  background-color: currentColor;
  -webkit-mask: var(--svg) no-repeat center / contain;
  mask: var(--svg) no-repeat center / contain;
}
.iconfont.icon-tuichu { width: 18px; height: 18px; --svg: url("svg/exit.svg"); }
.iconfont.icon-tuichu::before { content: ""; }
.el-icon-remove { width: 18px; height: 18px; --svg: url("svg/trash.svg"); }
.el-icon-remove::before { content: ""; }
.el-icon-arrow-down { --svg: url("svg/chevron-down.svg"); }
.el-icon-arrow-up { --svg: url("svg/chevron-up.svg"); }
.el-icon-refresh { --svg: url("svg/clockwise.svg"); }
.el-icon-arrow-down::before, .el-icon-arrow-up::before, .el-icon-refresh::before { content: ""; }

.el-switch { position: relative; display: inline-flex; align-items: center; }
.el-switch__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.el-switch__core, .el-switch__label { pointer-events: none; }
.el-switch__core { height: 20px; border-radius: 999px; background: rgba(148, 163, 184, 0.6); border: 1px solid var(--border); position: relative; transition: background 120ms ease; }
.el-switch__core::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; transition: transform 120ms ease; }
.el-switch__label { font-size: 12px; color: var(--muted); margin: 0 8px; }
.el-switch.is-checked .el-switch__core { background: rgba(34, 197, 94, 0.9); }
.el-switch.is-checked .el-switch__core::after { transform: translateX(18px); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(226, 232, 240, 0.75);
  border-radius: 4px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.10);
  padding: 10px 0;
}
body[data-theme="dark"] .dropdown-menu {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.25);
}
.nav-module .dropdown-menu {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  max-height: 360px;
  overflow: auto;
  left: var(--journal-menu-offset, 0px);
  right: auto;
  min-width: calc(var(--journal-text-width, 0px) + 40px);
  width: max-content;
  max-width: none;
  padding: 8px 0;
}
.nav-module .dropdown-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}
.nav-module .dropdown-item { justify-content: flex-start; }
.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 20px;
  height: 36px;
  border-radius: 0;
  color: var(--text);
  font-size: 14px;
}
.dropdown-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-item:hover { background: #ecf5ff; color: #66b1ff; text-decoration: none; }
.dropdown-item.active { color: #409eff; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  color: var(--muted);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

body[data-layout="compact"] .topbar-inner { padding: 10px 12px; }
body[data-layout="compact"][data-full-hero="1"] .topbar { display: none; }
body[data-layout="compact"] .page-search-panel { display: none; }
body[data-layout="compact"] { --layout-edge: clamp(14px, 6vw, 68px); }
body[data-layout="compact"] .topbar-inner { padding-left: var(--layout-edge); padding-right: var(--layout-edge); }
body[data-layout="compact"] .topbar-inner { max-width: none; }
body[data-layout="compact"] .container { max-width: none; padding: 14px var(--layout-edge); }
body[data-layout="compact"] .grid { gap: 14px; }
body[data-layout="compact"] .layout { gap: 14px; }
body[data-layout="compact"][data-sidenav="0"] .layout { grid-template-columns: 1fr; }
body[data-layout="compact"][data-sidenav="0"] .layout .sidenav { display: none; }
body[data-layout="compact"] .section { margin: 14px 0; }
@media (max-width: 520px) {
  .container { padding: 12px; }
  body[data-layout="compact"] { --layout-edge: 12px; }
  body[data-layout="compact"] .topbar-inner { padding-left: var(--layout-edge); padding-right: var(--layout-edge); }
  body[data-layout="compact"] .container { padding: 12px var(--layout-edge); }
  body[data-layout="compact"] .section { margin: 10px 0; }
  .search-hero { padding: 12px; border-radius: 14px; margin-bottom: 12px; }
}

body[data-layout="compact"][data-full-hero="0"] .topbar { background: rgba(248, 250, 252, 0.92); border-bottom-color: var(--border); }
body[data-layout="compact"][data-full-hero="0"] .topbar-menu-link,
body[data-layout="compact"][data-full-hero="0"] .brand { color: var(--text); }
body[data-layout="compact"][data-full-hero="0"] .topbar-menu-link:hover { text-decoration: underline; }
body[data-layout="compact"][data-full-hero="0"] .topbar-right .btn { background: rgba(255, 255, 255, 0.92); border-color: var(--border); color: var(--text); }
body[data-layout="compact"][data-full-hero="0"] .topbar-right .muted { color: var(--muted); }
body[data-layout="compact"][data-full-hero="0"] .topbar-right .journal__wrap { color: var(--muted); }
body[data-layout="compact"][data-full-hero="0"] .topbar-right .sign { color: var(--muted); }
body[data-layout="compact"][data-full-hero="0"] .topbar-right .el-icon-arrow-down,
body[data-layout="compact"][data-full-hero="0"] .topbar-right .el-icon-arrow-up,
body[data-layout="compact"][data-full-hero="0"] .topbar-right .el-icon-refresh { color: var(--muted); }
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar {
  background: rgba(248, 250, 252, 0.92);
  border-bottom-color: var(--border);
}
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-menu-link,
body.page-article[data-layout="compact"][data-full-hero="0"] .brand {
  color: var(--text);
}
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-right .btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--border);
  color: var(--text);
}
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-right .muted,
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-right .journal__wrap,
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-right .sign,
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-right .el-icon-arrow-down,
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-right .el-icon-arrow-up,
body.page-article[data-layout="compact"][data-full-hero="0"] .topbar-right .el-icon-refresh {
  color: var(--muted);
}

body[data-layout="wide"] .topbar-inner { width: 85vw; max-width: none; }
body[data-layout="wide"] .container { width: 85vw; max-width: none; }
.admin-body .topbar-inner { max-width: 1200px; padding: 12px 16px; }
.admin-body .topbar { display: block; }

.search-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 0 16px;
  min-height: 220px;
  display: flex;
  align-items: center;
}
body[data-layout="compact"] .search-hero { display: none; }
.search-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
  overflow: hidden;
}
.search-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}
.search-hero-fx canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.search-hero.has-slider .search-hero-bg { opacity: 1; }
.search-hero-bg-layer {
  position: absolute;
  inset: 0;
  background: var(--search-wallpaper-color, #0b1220);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--search-wallpaper-blur, 0px));
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.search-hero-bg-layer.a { background-image: var(--search-wallpaper-image-a, none); }
.search-hero-bg-layer.b { background-image: var(--search-wallpaper-image-b, none); }
.search-hero[data-slide-layer="a"] .search-hero-bg-layer.a { opacity: 1; }
.search-hero[data-slide-layer="b"] .search-hero-bg-layer.b { opacity: 1; }
.search-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--search-wallpaper-color, #0b1220);
  background-image: var(--search-wallpaper-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--search-wallpaper-blur, 0px));
  transform: scale(1.06);
  border-radius: inherit;
}
.search-hero.has-slider::before { background: transparent; background-image: none; filter: none; transform: none; }
.search-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 6, 23, var(--search-wallpaper-mask, 0));
  border-radius: inherit;
}
.search-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.search-hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  gap: 8px;
}
.search-hero.has-slider .search-hero-indicators { display: flex; }
.search-hero-indicator {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
  padding: 0;
  cursor: pointer;
}
.search-hero-indicator.active {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.86);
}
.search-hero-indicator:hover { filter: brightness(1.08); }
.search-hero-tools { display: flex; align-items: center; justify-content: flex-start; }
.search-hero #page-search-host { width: min(760px, 100%); margin: 0 auto; }
.search-hero .search { width: 100%; }
.hero-text {
  grid-column: 1 / -1;
  display: none;
  text-align: center;
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(15, 23, 42, 0.74);
  white-space: pre-line;
  max-width: min(860px, 100%);
  margin-left: auto;
  margin-right: auto;
}
body[data-theme="dark"] .hero-text { color: rgba(226, 232, 240, 0.86); }
.full-hero .hero-text {
  color: rgba(255, 255, 255, 0.86);
  margin-top: 0;
  margin-bottom: 6px;
}
@media (max-width: 520px) {
  .hero-text {
    font-size: clamp(13px, 3.6vw, 16px) !important;
    line-height: 1.6;
    text-align: left;
    white-space: normal !important;
    overflow-wrap: anywhere;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.full-hero { display: none; }
body[data-layout="compact"] .full-hero { display: block; }
body[data-simple="1"] .container { display: none; }
body[data-simple="1"] .full-hero-top { display: none; }
body[data-simple="1"] .full-hero-search { align-items: center; justify-content: center; padding-top: 0; }
body[data-simple="1"] .site-footer { display: none; }
.simple-exit {
  position: fixed;
  right: 26px;
  bottom: 18px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.35);
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  z-index: 9999;
  display: none;
}
body[data-simple="1"] .simple-exit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  top: 18px;
  right: 18px;
  bottom: auto;
}
.simple-exit:hover { filter: brightness(1.06); }
.simple-exit-text { font-size: 12px; font-weight: 650; }
.full-hero {
  position: relative;
  padding: 18px 16px 18px;
  height: var(--search-module-height, 280px);
  min-height: 280px;
  overflow: hidden;
}
.full-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.full-hero-fx canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.full-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.full-hero.has-slider .full-hero-bg { opacity: 1; }
.full-hero-bg-layer {
  position: absolute;
  inset: 0;
  background: var(--search-wallpaper-color, transparent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--search-wallpaper-blur, 0px));
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.full-hero-bg-layer.a { background-image: var(--search-wallpaper-image-a, none); }
.full-hero-bg-layer.b { background-image: var(--search-wallpaper-image-b, none); }
.full-hero[data-slide-layer="a"] .full-hero-bg-layer.a { opacity: 1; }
.full-hero[data-slide-layer="b"] .full-hero-bg-layer.b { opacity: 1; }
.full-hero-indicators {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2;
  display: none;
  gap: 8px;
}
.full-hero.has-slider .full-hero-indicators { display: flex; }
.full-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--search-wallpaper-color, transparent);
  background-image: var(--search-wallpaper-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--search-wallpaper-blur, 0px));
  transform: scale(1.06);
}
.full-hero.has-slider::before { background: transparent; background-image: none; filter: none; transform: none; }
.full-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(2, 6, 23, var(--search-wallpaper-mask, 0));
}
.page-site-detail .search-hero::before { background-image: none !important; }
.page-site-detail .search-hero-bg-layer { background-image: none !important; }
.full-hero-inner { max-width: 1200px; margin: 0 auto; height: 100%; display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
body[data-layout="wide"] .full-hero-inner { width: 85vw; max-width: none; }
body[data-layout="compact"] .full-hero-inner { max-width: none; padding: 0 var(--layout-edge); }

body[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #0f172a;
  --border: rgba(148, 163, 184, 0.22);
  --text: rgba(248, 250, 252, 0.92);
  --muted: rgba(226, 232, 240, 0.70);
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
body[data-theme="dark"] .topbar { background: rgba(2, 6, 23, 0.72); }
body[data-theme="dark"] .search-engine { background: rgba(2, 6, 23, 0.35); }
body[data-theme="dark"] .search-engine-item:hover { background: rgba(148, 163, 184, 0.14); }
body[data-theme="dark"] .card { background: rgba(15, 23, 42, 0.88); }

.floating-toolbox {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.floating-toolbox-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.floating-toolbox-btn.is-hidden { display: none; }
body[data-theme="dark"] .floating-toolbox-btn { background: rgba(15, 23, 42, 0.88); }
.floating-toolbox-btn:hover { filter: brightness(0.98); }
.floating-toolbox-link {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}
body[data-theme="dark"] .floating-toolbox-link { background: rgba(15, 23, 42, 0.88); }
.floating-toolbox-link:hover { filter: brightness(0.98); text-decoration: none; }
.full-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.full-hero-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.full-hero-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.92); font-size: 13px; text-decoration: none; border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.full-hero-link:hover { text-decoration: underline; }
.full-hero-logo { width: auto; height: 22px; display: block; object-fit: contain; border-radius: 6px; }
.full-hero-menu { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.full-hero-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  text-decoration: none;
}
.full-hero-menu-link:hover { text-decoration: underline; }
.full-hero-clock { color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.full-hero-right .btn { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.92); }
.full-hero-right .muted { color: rgba(255, 255, 255, 0.75); }
.full-hero-right .journal__wrap { color: rgba(255, 255, 255, 0.92); }
.full-hero-right .sign { color: rgba(255, 255, 255, 0.92); }
.full-hero-right .el-icon-arrow-down, .full-hero-right .el-icon-arrow-up, .full-hero-right .el-icon-refresh { color: rgba(255, 255, 255, 0.75); }
.full-hero-right .dropdown-menu { background: rgba(255, 255, 255, 0.5); border-color: rgba(226, 232, 240, 0.75); }
.full-hero-right .dropdown-item { color: var(--text); }
.full-hero-right .dropdown-item:hover { background: #ecf5ff; color: #66b1ff; }
.full-hero-search {
  width: min(700px, calc(100% - 32px));
  margin: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.full-hero-search .search { width: 100%; }
.full-hero-search .search-box {
  width: 100%;
  gap: 0;
  border-radius: var(--search-radius, 10px);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.50);
}
.full-hero-search .search-box:focus-within {
  border-color: rgba(37, 99, 235, 0.60);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.full-hero-search .search-box input {
  border: 0;
  border-radius: 0;
  background: transparent;
  height: 42px;
  padding: 0 14px;
}
.full-hero-search .search-box .btn {
  border: 0;
  border-left: 1px solid rgba(226, 232, 240, 0.70);
  border-radius: 0;
  height: 42px;
  padding: 0 16px;
  min-width: 96px;
  background: transparent;
}
.full-hero-search .search-box.search-box-dark { background: rgba(255, 255, 255, 0.50); border-color: rgba(255, 255, 255, 0.30); }
.full-hero-search .search-box.search-box-dark input { background: transparent; }
.full-hero-search .search-box.search-box-dark .btn { border-left-color: rgba(255, 255, 255, 0.22); }
.full-hero-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.full-hero-tools-left { font-size: 13px; color: rgba(255, 255, 255, 0.75); }

.page-search-panel {
  width: 100%;
  padding: 14px 16px 0;
}
.container > .page-search-panel { padding: 0 0 14px; }
.page-search-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
body[data-layout="wide"] .page-search-panel-inner { width: 85vw; max-width: none; }
.page-search-panel-tools { display: flex; align-items: center; justify-content: flex-start; }
.page-search-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body[data-theme="dark"] .page-search-theme-toggle { background: rgba(15, 23, 42, 0.88); }
.page-search-theme-toggle:hover { filter: brightness(0.98); }
.page-search-panel .search { width: 100%; }

.customizer-tab {
  position: fixed;
  right: 0;
  top: 45vh;
  transform: translateY(-50%);
  z-index: 9998;
  border-radius: 12px 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-right: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.customizer-tab.hide { display: none; }
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.30);
  z-index: 9997;
  display: none;
}

.nav-drawer-toggle {
  position: fixed;
  left: 3px;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  z-index: 9996;
  display: none;
  align-items: center;
  justify-content: center;
}
.nav-drawer-toggle img {
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.92;
  filter: grayscale(1) invert(1) brightness(0.82) drop-shadow(0 1px 1px rgba(2, 6, 23, 0.55));
}
.nav-drawer-toggle:hover img { filter: grayscale(1) invert(1) brightness(0.92) drop-shadow(0 1px 1px rgba(2, 6, 23, 0.55)); }
body.nav-drawer-open { overflow: hidden; }
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.30);
  z-index: 9995;
  display: none;
  touch-action: none;
}
.nav-drawer-backdrop.is-open { display: block; }
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: min(360px, 92vw);
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 9996;
  transform: translateX(-100%);
  transition: transform 160ms ease;
  display: flex;
  flex-direction: column;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.nav-drawer-brand { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); text-decoration: none; }
.nav-drawer-brand:hover { text-decoration: none; }
.nav-drawer-brand-logo { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; flex: 0 0 auto; }
.nav-drawer-brand-text { font-weight: 800; letter-spacing: 0.2px; }
.nav-drawer-nav { flex: 1 1 auto; min-width: 0; }
.nav-drawer-nav .nav-module { width: 100%; }
.nav-drawer-clock { flex: 0 0 auto; }
.nav-drawer-close { margin-left: auto; }
.nav-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.nav-drawer-clock { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); white-space: nowrap; }
.nav-drawer-divider { height: 1px; background: var(--border); margin: 0; }
.nav-drawer-body { padding: 10px 12px 12px; overflow: auto; display: grid; gap: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.nav-drawer-section { display: grid; gap: 6px; }
.nav-drawer-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.nav-drawer-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(248, 250, 252, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-drawer-menu a:hover { filter: brightness(0.98); text-decoration: none; }
body[data-theme="dark"] .nav-drawer-menu a { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.35); }
.nav-drawer-anchors { display: grid; }
.nav-drawer-anchors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
  background: transparent;
}
.nav-drawer-anchors-grid { border-top: 0; }
.nav-drawer-anchor-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  text-decoration: none;
  color: var(--text);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nav-drawer-anchor-spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}
.nav-drawer-anchor-link:hover { filter: brightness(0.98); text-decoration: none; }
.nav-drawer-anchor-link.is-end-col { border-right: 0; }
.nav-drawer-anchor-link.is-last-row { border-bottom: 0; }
.nav-drawer-anchor-spacer.is-end-col { border-right: 0; }
.nav-drawer-anchor-spacer.is-last-row { border-bottom: 0; }
.nav-drawer-anchor-link .journal-anchor-short { display: none; }
.nav-drawer-anchor-link .journal-anchor-pill { display: none; }
.nav-drawer-anchor-link .journal-anchor-full { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 860px) {
  .nav-drawer-toggle { display: inline-flex; }
  .topbar { display: none; }
  .full-hero-top { display: none; }
  .wide-anchor-nav { display: none !important; }
  .layout--journal > .sidenav { display: none !important; }
  .floating-toolbox { transform: scale(0.6); transform-origin: bottom right; }
}

.customizer-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(435px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 160ms ease;
  display: flex;
  flex-direction: column;
}
.customizer-drawer.open { transform: translateX(0); }
.customizer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.customizer-title { font-weight: 700; }
.customizer-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.customizer-head-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  color: var(--text);
  cursor: pointer;
}
.customizer-head-action:hover { filter: brightness(0.98); }
.customizer-head-action-text { font-size: 12px; font-weight: 650; }
.customizer-body { padding: 12px 14px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.customizer-sec { border-bottom: 1px solid rgba(226, 232, 240, 0.8); padding-bottom: 12px; margin-bottom: 12px; }
.customizer-sec-title { cursor: pointer; font-weight: 650; color: var(--text); }
.customizer-options { display: grid; gap: 10px; margin-top: 10px; }

@supports (height: 100dvh) {
  .nav-drawer,
  .customizer-drawer { height: 100dvh; }
}
.customizer-opt {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.85);
  cursor: pointer;
}
.customizer-opt.active {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
}
.customizer-fields { margin-top: 10px; display: grid; gap: 12px; }
.customizer-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.customizer-label { font-size: 13px; color: var(--muted); white-space: nowrap; }
.customizer-control { display: inline-flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }
.customizer-range { width: min(240px, 48vw); }
.customizer-select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  min-width: 0;
}
.customizer-row-2col { display: flex; align-items: center; justify-content: stretch; gap: 10px; }
.customizer-row-2col .customizer-row-col { flex: 1 1 0; min-width: 0; }
.customizer-row-2col .customizer-select { width: 100%; }
.customizer-row-label { font-size: 12px; color: rgba(71, 85, 105, 0.75); margin-bottom: 6px; }
.customizer-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.customizer-color { width: 44px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: transparent; }
.customizer-file { max-width: 100%; }
.customizer-input { flex: 1; min-width: 220px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.customizer-wall-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(226, 232, 240, 0.8); display: grid; gap: 10px; }
.customizer-wall-head { display: flex; align-items: center; justify-content: space-between; }
.customizer-wall-tabs { display: flex; gap: 10px; }
.customizer-wall-tab { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; }
.customizer-wall-panes { min-width: 0; }
.customizer-wall-pane { min-width: 0; }
.customizer-wall-pager { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.customizer-wall-pager-info { font-size: 12px; color: rgba(71, 85, 105, 0.75); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 10px; }
.customizer-wall-pager-all { color: var(--primary); text-decoration: none; font-weight: 650; }
.customizer-wall-pager-all:hover { text-decoration: underline; }
.customizer-wall-actions { margin-top: 10px; display: flex; gap: 10px; }
.customizer-wall-actions .btn { flex: 1 1 0; }
.image-group { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 460px) {
  .image-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.image {
  height: 120px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.image.active { border-color: rgba(37, 99, 235, 0.55); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10); }
.image__setting {
  position: absolute;
  inset: auto 10px 10px 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.image:hover .image__setting { opacity: 1; transform: translateY(0); }

.vip-columns { display: none; gap: 10px; flex-wrap: nowrap; overflow: auto; padding-bottom: 4px; margin: 10px 0 14px; }
body[data-layout="compact"] .vip-columns { display: flex; }
.vip-column {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.vip-column:hover { filter: brightness(0.98); text-decoration: none; }

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}
.admin-sidebar { position: sticky; top: 76px; height: fit-content; }
.admin-nav { display: grid; gap: 10px; }
.admin-nav-item { width: 100%; justify-content: flex-start; }
.admin-nav-group { display: grid; gap: 8px; }
.admin-nav-group-title { font-size: 12px; color: var(--muted); font-weight: 750; padding: 0 2px; }
.admin-nav-sub { display: grid; gap: 8px; }
.admin-nav-sub-item { padding-left: 14px; }
.admin-main { min-width: 0; }
.ds-related-row { display: grid; gap: 10px; align-items: center; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1280px) { .ds-related-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ds-related-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ds-related-row { grid-template-columns: 1fr; } }
.ds-related-field { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ds-related-textarea { flex: 1 1 auto; width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ds-pick-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ds-pick-toolbar-one { flex-wrap: nowrap; }
.ds-pick-toolbar-one .ds-pick-left { flex: 1 1 auto; min-width: 0; }
.ds-pick-toolbar-one .ds-pick-right { flex: 0 0 auto; }
.ds-pick-toolbar-one .ds-pick-input { width: 420px; max-width: 100%; min-width: 220px; }
@media (max-width: 860px) { .ds-pick-toolbar-one { flex-wrap: wrap; } }
.ds-pick-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-pick-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ds-pick-input { width: min(520px, 100%); padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ds-pick-select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ds-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
@media (min-width: 1200px) { .ds-site-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1680px) { .ds-site-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ds-site-card { width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 10px; cursor: pointer; display: flex; align-items: center; min-width: 0; gap: 10px; }
.ds-site-card:hover { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow); }
.ds-site-card.selected { border-color: rgba(37, 99, 235, 0.85); background: rgba(37, 99, 235, 0.06); }
.ds-site-card.disabled { opacity: 0.55; cursor: not-allowed; }
.ds-site-head { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; }
.ds-site-icon { width: 28px; height: 28px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); object-fit: contain; flex: 0 0 auto; padding: 4px; }
.ds-site-meta { min-width: 0; flex: 1 1 auto; display: grid; gap: 2px; }
.ds-site-title { font-size: 13px; font-weight: 750; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-site-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-site-badge { font-size: 12px; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); padding: 3px 8px; border-radius: 999px; flex: 0 0 auto; }
.admin-main table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-main table th,
.admin-main table td { padding: 6px 10px; vertical-align: middle; }
.admin-main table thead th { border-bottom: 1px solid var(--border); }
.admin-main table tbody td { border-bottom: 1px solid var(--border); }
.admin-main table tbody tr:hover td { background: rgba(37, 99, 235, 0.04); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.admin-table th,
.admin-table td { padding: 10px 12px; vertical-align: middle; }
.admin-table thead th { border-bottom: 1px solid var(--border); color: var(--muted); font-weight: 650; }
.admin-table tbody td { border-bottom: 1px solid var(--border); }
.admin-table tbody tr:hover td { background: rgba(37, 99, 235, 0.04); }
.table-scroll { overflow: auto; }
.col-check { width: 46px; }
.admin-toolbar .seg .users-level-select { min-width: 120px; }
.admin-toolbar .seg .users-search-input { width: 220px; }
.admin-toolbar .seg .tools-search-input { width: 220px; }
.admin-toolbar .seg .columns-search-input { width: 240px; }
.admin-toolbar .seg .journals-search-input { width: 240px; }
.admin-toolbar .seg .orders-search-input { width: 220px; }
.admin-tools-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; overflow: auto; padding: 10px 0; }
.admin-tools-toolbar { scrollbar-width: none; -ms-overflow-style: none; }
.admin-tools-toolbar::-webkit-scrollbar { display: none; }
.admin-tools-ctl { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); height: 34px; }
.admin-tools-ctl.select { min-width: 0; width: 132px; max-width: 132px; }
.admin-tools-ctl.per { min-width: 0; width: 72px; max-width: 72px; text-align: center; }
.admin-tools-sep { width: 1px; height: 20px; background: var(--border); opacity: 0.85; flex: 0 0 auto; }
.admin-tools-sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.tools-device-box { border: 1px solid var(--border); border-radius: 12px; overflow: auto; max-height: 220px; background: var(--surface); }
.admin-tools-site { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.55); width: 100%; min-width: 0; cursor: pointer; }
.admin-tools-site-check { flex: 0 0 auto; padding-top: 1px; }
body[data-theme="dark"] .admin-tools-site { background: rgba(15, 23, 42, 0.35); }
.admin-tools-site:hover { border-color: rgba(37, 99, 235, 0.45); box-shadow: var(--shadow); }
.admin-tools-site.selected { border-color: rgba(37, 99, 235, 0.85); background: rgba(37, 99, 235, 0.06); }
.admin-tools-site input[type="checkbox"] { accent-color: var(--primary); }
.admin-tools-site.todo { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.18); }
.admin-tools-site.done { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.22); }
.admin-tools-site.error { background: rgba(244, 63, 94, 0.10); border-color: rgba(244, 63, 94, 0.28); }
.admin-tools-site-name { font-size: 12px; font-weight: 750; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
.admin-tools-site.disabled { opacity: 0.55; }
.admin-tools-spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid rgba(148, 163, 184, 0.5); border-top-color: rgba(37, 99, 235, 0.95); animation: adminToolsSpin 0.8s linear infinite; }
@keyframes adminToolsSpin { to { transform: rotate(360deg); } }

#tools-batch-modal { align-items: center; justify-content: center; }
#tools-batch-modal.is-open { display: flex; }
#tools-batch-modal .modal-content.tools-batch-content { width: min(65vw, calc(100vw - 24px)); height: min(65vh, calc(100vh - 24px)); margin: 0; padding: 14px; max-width: none; max-height: none; overflow: hidden; display: flex; flex-direction: column; }
.tools-batch-layout { flex: 1 1 auto; min-height: 0; }
.tools-batch-pane { min-height: 0; }
.tools-batch-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.tools-batch-pane { border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.55); padding: 12px; min-height: 520px; }
body[data-theme="dark"] .tools-batch-pane { background: rgba(15, 23, 42, 0.35); }
.tools-batch-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tools-batch-list { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.tools-batch-items { flex: 1 1 auto; overflow: auto; min-height: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.tools-batch-item { padding: 10px 12px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr auto; gap: 10px; cursor: pointer; }
.tools-batch-item:last-child { border-bottom: 0; }
.tools-batch-item:hover { background: rgba(37, 99, 235, 0.04); }
.tools-batch-item.active { background: rgba(37, 99, 235, 0.08); }
.tools-batch-name { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tools-batch-sub { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tools-batch-tag { font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; background: rgba(255,255,255,0.65); }
body[data-theme="dark"] .tools-batch-tag { background: rgba(15, 23, 42, 0.35); }
.tools-batch-tag.done { border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.08); color: #14532d; }
.tools-batch-tag.wait { border-color: rgba(148, 163, 184, 0.35); }
.tools-batch-tag.run { border-color: rgba(37, 99, 235, 0.35); background: rgba(37, 99, 235, 0.08); color: rgba(37, 99, 235, 0.95); }
.tools-batch-tag.fail { border-color: rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.08); color: #991b1b; }
.tools-batch-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.tools-batch-detail { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.tools-batch-detail-meta { font-size: 12px; color: var(--muted); }
.tools-batch-detail-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.tools-batch-detail-body .data-textarea { min-height: 360px; }
.tools-batch-footer { display:flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.admin-action {
  color: var(--primary);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}
.admin-action:hover { text-decoration: underline; }
.admin-action.danger { color: var(--danger); }

#user-edit-modal .modal-content {
  width: 75vw !important;
  max-width: 75vw !important;
  height: 75vh !important;
  max-height: 75vh !important;
}
#user-edit-modal .modal-body {
  overflow: auto;
  padding: 10px 12px;
}
#user-edit-modal .modal-header {
  border-bottom: 1px solid var(--border);
}
@media (max-width: 980px) {
  #user-edit-modal .modal-content {
    width: 92vw !important;
    max-width: 92vw !important;
    height: 86vh !important;
    max-height: 86vh !important;
  }
}
.ns-section + .ns-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ns-user-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px 10px;
  align-items: end;
}
@media (min-width: 1200px) {
  .ns-user-grid {
    grid-template-columns: repeat(9, minmax(80px, 1fr));
  }
}
@media (max-width: 980px) {
  .ns-user-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}
@media (max-width: 640px) {
  .ns-user-grid {
    grid-template-columns: 1fr;
  }
}
.ns-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.ns-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ns-security-meta { height: 34px; display: flex; align-items: center; }
.ns-input {
  height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  min-width: 0;
  font: inherit;
  color: var(--text);
}
.ns-input--xs {
  width: 72px;
  padding: 6px 8px;
}
.ns-span-2 {
  grid-column: span 2;
}
@media (max-width: 980px) {
  .ns-span-2 {
    grid-column: auto;
  }
}
.ns-input:focus {
  outline: none;
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}
.ns-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ns-actions-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ns-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  border: 1px solid transparent;
  white-space: nowrap;
}
.ns-badge--ok {
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.30);
  color: #16a34a;
}
.ns-badge--warn {
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.30);
  color: var(--primary);
}
.ns-badge--danger {
  background: rgba(220,38,38,.10);
  border-color: rgba(220,38,38,.30);
  color: var(--danger);
}
.ns-badge--muted {
  background: rgba(148,163,184,.14);
  border-color: rgba(148,163,184,.22);
  color: var(--muted);
}
.ns-btn-outline-danger {
  border: 1px solid rgba(220,38,38,.35) !important;
  color: var(--danger) !important;
  background: rgba(220,38,38,.06) !important;
}
.ns-btn-outline-danger:hover {
  background: rgba(220,38,38,.10) !important;
}
.btn.disabled,
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(30%);
}
.ns-op-links {
  height: 34px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}
.ns-op-link {
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
}
.ns-op-link.ns-op-save { color: var(--primary); }
.ns-op-link.ns-op-cycle--freeze { color: var(--primary); }
.ns-op-link.ns-op-cycle--ban { color: var(--danger); }
.ns-op-link.ns-op-cycle--clear { color: #16a34a; }
.ns-op-link.ns-op-delete { color: var(--danger); }
.ns-op-link.disabled,
.ns-op-link[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}
.ns-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ns-tab {
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}
.ns-tab:hover {
  background: rgba(148,163,184,.15);
}
.ns-tab[aria-selected="true"] {
  color: var(--primary);
  background: rgba(37,99,235,.10);
}
.ns-pill {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(148,163,184,.20);
  color: var(--muted);
  font-weight: 650;
}
.ns-tab[aria-selected="true"] .ns-pill {
  background: rgba(37,99,235,.20);
  color: var(--primary);
}
.ns-panel {
  display: none;
}
.ns-panel.is-active {
  display: block;
}
.ns-site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
  align-items: start;
}
.ns-site-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  user-select: none;
}
.ns-site-item:hover {
  border-color: rgba(37,99,235,.35);
  box-shadow: 0 0 0 3px rgba(37,99,235,.08);
}
.ns-site-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(148,163,184,.20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.ns-site-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ns-site-fallback {
  font-weight: 800;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .5px;
}
.ns-site-name {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ns-kind-row {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  height: 18px;
}
.ns-kind-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(148,163,184,.20);
  color: var(--muted);
}
.ns-kind-dot.is-on {
  background: rgba(37,99,235,.16);
  color: var(--primary);
}
.ns-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 70px);
  gap: 6px;
  align-items: start;
  justify-content: start;
}
.ns-mini-card {
  display: grid;
  grid-template-columns: 44px 24px;
  grid-template-rows: 22px 22px auto;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.ns-mini-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ns-mini-cell.icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  border-right: 1px solid var(--border);
  background: var(--surface);
  align-items: stretch;
  justify-content: stretch;
}
.ns-mini-cell.fav {
  grid-column: 2;
  grid-row: 1;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: stretch;
  justify-content: stretch;
}
.ns-mini-cell.like {
  grid-column: 2;
  grid-row: 2;
  align-items: stretch;
  justify-content: stretch;
}
.ns-mini-name {
  grid-column: 1 / span 2;
  grid-row: 3;
  border-top: 1px solid var(--border);
  padding: 3px 5px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ns-mini-icon {
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  display: block;
}
.ns-mini-fallback {
  font-weight: 800;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .5px;
}
.ns-mini-action {
  width: 100%;
  height: 100%;
  display: block;
  color: rgba(71, 85, 105, 0.65);
}
.ns-mini-action.fav.is-on { color: #f59e0b; }
.ns-mini-action.like.is-on { color: #ef4444; }
.ns-meta {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(37,99,235,.35);
  background: rgba(37,99,235,.05);
  border-radius: 10px;
  margin: 6px 0 10px 0;
}
.ns-meta strong {
  font-weight: 900;
  color: var(--text);
}
.ns-login-day-0 { background: rgba(37,99,235,.04); }
.ns-login-day-1 { background: rgba(22,163,74,.04); }
.ns-login-day-2 { background: rgba(245,158,11,.04); }
.ns-login-day-3 { background: rgba(239,68,68,.04); }

.admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-articles-table .admin-actions,
.admin-articles-meta-table .admin-actions { gap: 4px; }
.admin-articles-table th,
.admin-articles-table td { padding: 10px 12px; vertical-align: middle; }
.admin-articles-title { font-weight: 750; line-height: 1.25; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-articles-slug { font-size: 12px; }
.admin-articles-published { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; gap: 2px; }
.admin-articles-published-time { font-size: 12px; color: var(--muted); }
.admin-articles-table { table-layout: fixed; }
.admin-articles-table td { overflow: hidden; text-overflow: ellipsis; }
.admin-articles-table td:not(:nth-child(2)) { white-space: nowrap; }
.admin-articles-meta-table { table-layout: fixed; width: 100%; }
.admin-articles-meta-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-articles-meta-table td:first-child { white-space: normal; }

.admin-toolbar .seg .articles-search-input { width: 240px; }
.admin-toolbar .seg .reviews-search-input { width: 240px; }
.admin-toolbar .seg .guides-search-input { width: 240px; }
.articles-meta-row { grid-template-columns: 1fr 1fr; gap: 12px; }
.articles-meta-row .table-scroll { min-width: 0; }
.articles-meta-form-row { grid-template-columns: 140px 140px; gap: 10px; }
.admin-meta-modal-row { gap: 10px; }
.admin-articles-meta-table.meta-categories th:nth-child(1) { width: 40%; }
.admin-articles-meta-table.meta-categories th:nth-child(2) { width: 28%; }
.admin-articles-meta-table.meta-categories th:nth-child(3) { width: 44px; }
.admin-articles-meta-table.meta-categories th:nth-child(4) { width: 44px; }
.admin-articles-meta-table.meta-categories th:nth-child(5) { width: 80px; }
.admin-articles-meta-table.meta-categories th:nth-child(6) { width: 56px; }
.admin-articles-meta-table.meta-categories th:nth-child(7) { width: 72px; }
.admin-articles-meta-table.meta-tags th:nth-child(1) { width: 46%; }
.admin-articles-meta-table.meta-tags th:nth-child(2) { width: 30%; }
.admin-articles-meta-table.meta-tags th:nth-child(3) { width: 80px; }
.admin-articles-meta-table.meta-tags th:nth-child(4) { width: 56px; }
.admin-articles-meta-table.meta-tags th:nth-child(5) { width: 72px; }
.admin-articles-table th:nth-child(1) { width: 40px; }
.admin-articles-table th:nth-child(2) { width: 280px; }
.admin-articles-table th:nth-child(3) { width: 160px; }
.admin-articles-table th:nth-child(4) { width: 140px; }
.admin-articles-table th:nth-child(5) { width: 160px; }
.admin-articles-table th:nth-child(6) { width: 64px; }
.admin-articles-table th:nth-child(7) { width: 64px; }
.admin-articles-table th:nth-child(8) { width: 112px; }
.admin-articles-table th:nth-child(9) { width: 140px; }

input.no-spin::-webkit-outer-spin-button,
input.no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input.no-spin {
  appearance: textfield;
  -moz-appearance: textfield;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10050;
  overflow: auto;
  padding: calc(12px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
}
.modal.is-open { display: block; }
.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  max-width: 520px;
  margin: 12px auto;
  max-height: calc(100vh - 24px);
  overflow: auto;
  box-sizing: border-box;
}
@supports (height: 100dvh) {
  .modal-content { max-height: calc(100dvh - 24px); }
}
.modal-content.modal--lg { max-width: 860px; width: min(860px, calc(100vw - 24px)); margin: 7vh auto; }
.modal-content.modal--xl { max-width: none; width: min(1280px, 85vw); margin: 7vh auto; }
.modal-content.modal--wide { max-width: 980px; width: min(980px, calc(100vw - 24px)); margin: 7vh auto; }
.modal-content.modal--1120 { max-width: 1120px; width: min(1120px, 96vw); margin: 7vh auto; }
.modal-content.modal--720 { max-width: 720px; width: min(720px, 92vw); margin: 7vh auto; }
.modal-content.modal--picker { margin: 5vh auto; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-content.modal--picker .modal-header { flex: 0 0 auto; }
.modal-content.modal--picker .modal-body { flex: 1 1 auto; overflow: auto; }
@media (max-width: 960px) {
  .modal-content.modal--lg,
  .modal-content.modal--xl,
  .modal-content.modal--wide,
  .modal-content.modal--1120 { width: calc(100vw - 24px); margin: 12px auto; }
}
.bg-picker-open { overflow: hidden; }
.bg-picker-modal { padding: 0; }
.bg-picker-modal .bg-picker-content {
  width: min(1280px, 85vw);
  height: 85vh;
  max-width: none;
  margin: 7vh auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bg-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
}
.bg-picker-modal .data-tabs.bg-picker-tabs {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow: auto hidden;
  scrollbar-width: none;
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  height: 30px;
  align-items: center;
}
.bg-picker-modal .data-tabs.bg-picker-tabs::-webkit-scrollbar { display: none; }
.bg-picker-modal .data-tabs.bg-picker-tabs .data-tab { white-space: nowrap; }
.bg-picker-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; }
.bg-picker-pager { display: flex; align-items: center; gap: 6px; }
.bg-picker-info { min-width: 54px; text-align: center; }
.bg-picker-modal .bg-picker-head .btn,
.bg-picker-modal .bg-picker-head .data-tab {
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
  border-radius: 9px;
}
.bg-picker-actions,
.bg-picker-pager { height: 30px; }
.bg-picker-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 8px 8px 10px;
  display: grid;
  grid-template-rows: 1fr;
  gap: 8px;
}
.bg-picker-grid.image-group {
  margin-top: 0;
  min-height: 0;
  overflow: hidden;
  align-content: start;
  grid-template-columns: repeat(auto-fit, minmax(var(--bg-picker-min, 160px), 1fr));
}
.bg-picker-grid .image {
  height: auto;
  aspect-ratio: 4 / 3;
}
@supports not (aspect-ratio: 1 / 1) {
  .bg-picker-grid .image::before {
    content: "";
    display: block;
    padding-top: 75%;
  }
}
.bg-picker-head > .btn { margin-left: auto; }
.bg-picker-info { color: rgba(71, 85, 105, 0.75); font-size: 12px; font-variant-numeric: tabular-nums; }
.bg-picker-loading,
.bg-picker-empty {
  padding: 10px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
  background: rgba(248, 250, 252, 0.55);
}
body[data-theme="dark"] .bg-picker-loading,
body[data-theme="dark"] .bg-picker-empty { background: rgba(15, 23, 42, 0.35); border-color: rgba(148, 163, 184, 0.22); }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-close {
  font-size: 22px;
  line-height: 1;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.modal-body { margin-bottom: 12px; }
.modal-footer { text-align: right; }
.stardock-forbidden-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.data-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.data-tab {
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.92);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}
.data-tab.active {
  background: rgba(37, 99, 235, 0.10);
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--primary);
}
.data-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.data-textarea-wrap { margin-top: 14px; }
.data-textarea {
  width: 100%;
  min-height: 320px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-sizing: border-box;
  resize: none;
  font: inherit;
}

@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-nav-item { justify-content: center; }
}

.layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 260px 1fr;
}
.layout.layout--right { grid-template-columns: 1fr 320px; }
body[data-sidenav="0"] .layout { grid-template-columns: 1fr; }
body[data-sidenav="0"] .sidenav { display: none; }
body[data-layout="compact"] .layout--journal { grid-template-columns: 1fr; }
body[data-layout="compact"] .layout--journal > .sidenav { display: none; }
.sidenav { position: sticky; top: 76px; align-self: start; }
.articles-sidenav { top: 76px; }
.sidenav a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text); }
.sidenav a:hover { background: rgba(226, 232, 240, 0.6); text-decoration: none; }
.sidenav a.active { background: rgba(37, 99, 235, 0.10); color: var(--primary); }
.journal-anchor--sidenav .journal-anchor-short { display: none; }
.journal-anchor--sidenav .journal-anchor-full { flex: 1 1 auto; min-width: 0; }
.journal-anchor--sidenav .journal-anchor-pill { flex: 0 0 auto; }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidenav { position: static; }
}


/* Compact Site Card Overrides */
.site-card {
  padding: 12px;
}

.site-card .favicon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.site-card .site-head {
  gap: 8px;
}

.site-card .card-title {
  font-size: 14px;
  margin: 0;
  line-height: 1.4;
}

.site-card .card-desc {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px; /* 2 lines * 1.5 * 12px = 36px */
}

.site-card .bookmark-btn {
  width: 24px;
  height: 24px;
  top: 8px;
  right: 8px;
  background: rgba(248, 250, 252, 0.5);
  transition: background 0.2s;
}

.site-card .bookmark-btn:hover {
  background: rgba(248, 250, 252, 0.95);
}

.site-card .bookmark-btn .svg-icon {
  width: 14px;
  height: 14px;
  --svg: url('svg/star.svg'); /* Ensure svg is set if not inline */
}

.site-jump {
  width: 20px;
  height: 20px;
  right: 6px;
  bottom: 6px;
  background: rgba(248, 250, 252, 0.5);
  transition: background 0.2s;
}

.site-jump:hover {
  background: rgba(248, 250, 252, 0.95);
}

.site-jump .svg-icon {
  width: 12px;
  height: 12px;
}

.svg-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px}
.svg-picker-item{border:1px solid var(--border);background:rgba(248,250,252,.92);border-radius:12px;padding:10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.svg-picker-item:hover{filter:brightness(.98)}
.svg-picker-name{font-size:12px;color:var(--muted);width:100%;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.svg-picker-icon{width:22px;height:22px}
.svg-picker-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.svg-picker-search{flex:1;min-width:240px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.image-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}
.image-picker-item{border:1px solid var(--border);background:rgba(248,250,252,.92);border-radius:12px;cursor:pointer;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:8px;overflow:hidden;position:relative}
.image-picker-item:hover{filter:brightness(.98)}
.image-picker-thumb{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:rgba(148,163,184,.10)}
.image-picker-name{font-size:12px;color:var(--muted);padding:0 10px 10px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.image-picker-item.is-selected{outline:2px solid rgba(34,197,94,.55)}
.image-picker-selected{display:flex;flex-direction:column;gap:10px}
.image-picker-selected-item{display:flex;gap:10px;align-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:10px}
.image-picker-selected-thumb{width:80px;height:50px;border-radius:10px;object-fit:cover;display:block;flex:0 0 auto;border:1px solid var(--border);background:rgba(148,163,184,.10)}
.image-picker-selected-url{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.image-picker-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px}
.image-picker-preview-item{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface)}
.image-picker-preview-thumb{width:100%;aspect-ratio:16/10;object-fit:cover;display:block;background:rgba(148,163,184,.10)}
.fx-select{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);min-width: 220px}
.menu-list{display:flex;flex-direction:column;gap:10px}
.menu-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.menu-row input{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.menu-row select{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.menu-panel{display:block}
.article-picker-card{cursor:pointer;outline:2px solid transparent}
.article-picker-card.is-selected{outline:2px solid rgba(37,99,235,0.55)}
.article-picker-item{padding:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.article-picker-left{display:grid;gap:4px;min-width:0}
.article-picker-title{font-weight:650;color:var(--text)}

.allowed-columns-grid{margin-top:10px;display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 720px){.allowed-columns-grid{grid-template-columns:1fr}}
.allowed-columns-item{text-align:left;padding:10px 12px;border-radius:10px;border:1px solid rgba(226,232,240,.85);background:rgba(248,250,252,.7);cursor:pointer;min-width:0}
.allowed-columns-item.is-selected{border-color:rgba(37,99,235,.6);background:rgba(37,99,235,.12)}

.submission-icon-box{width:44px;height:44px;border-radius:14px;border:1px solid var(--border);background:rgba(226,232,240,.25);overflow:hidden;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.submission-icon-img{width:100%;height:100%;object-fit:contain;padding:6px}
.submission-title{font-weight:700;font-size:16px;line-height:1.25}
.submission-meta{display:grid;gap:8px;justify-items:end}
.card.submission-note{background:rgba(226,232,240,.18)}
.card.submission-columns-wrap{background:rgba(226,232,240,.25)}
.submission-columns-grid{display:grid;gap:8px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width: 960px){.submission-columns-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 520px){.submission-columns-grid{grid-template-columns:1fr}}
.submission-col-option{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border:1px solid rgba(226,232,240,.85);border-radius:10px;background:rgba(248,250,252,.7)}
.submission-col-option.is-preferred{border-color:rgba(34,197,94,.6);background:rgba(34,197,94,.08);box-shadow:0 0 0 1px rgba(34,197,94,.2)}
.submission-action-grid{display:grid;grid-template-columns:1fr 1fr auto;grid-template-rows:auto 220px;column-gap:12px;row-gap:6px;align-items:start}
@media (max-width: 860px){.submission-action-grid{grid-template-columns:1fr;grid-template-rows:auto auto auto 220px 220px auto;row-gap:10px}}
.submission-action-textarea{height:220px;resize:vertical}
.submission-action-buttons{display:grid;gap:20px;align-content:start;justify-items:start}
@media (max-width: 860px){.submission-action-buttons{grid-auto-flow:column;justify-content:flex-start}}
.submission-action-btn{width:100px;height:100px}

.card.toolbox-mini-card { margin: 0; width: 96px; height: 96px; max-width: 100%; flex: 0 0 auto; position: relative; box-sizing: border-box; padding: 10px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 10px; }
.card.toolbox-mini-card.is-active { outline: 2px solid rgba(34, 197, 94, 0.55); }
.toolbox-mini-card-delete { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }


/* Compact Site Card V4 - Fixed Size 200x65 */
.site-card {
  height: 65px;
  padding: 8px 10px; /* Reduced vertical padding */
  display: flex;
  align-items: center; /* Vertically center content */
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.site-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 100%;
}

.site-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px; /* Tighter gap */
  position: relative;
  z-index: 2;
  justify-content: center;
  height: 100%;
}

.site-card .site-head {
  gap: 8px;
  align-items: center;
}

.site-card .favicon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}

.site-card .card-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-card .card-desc {
  font-size: 12px;
  margin: 0;
  line-height: 1.3;
  height: 16px; /* Fixed height for 1 line */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  display: block; /* Override webkit-box */
}

.site-card .card-desc:empty {
  display: none;
}

.site-card .bookmark-btn,
.site-jump {
  position: static;
  width: 20px; /* Smaller buttons */
  height: 20px;
  background: transparent;
  border-radius: 4px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: all 0.2s;
  padding: 0;
}

.site-card .bookmark-btn:hover,
.site-jump:hover {
  background: rgba(226, 232, 240, 0.6);
  color: var(--primary);
  border-color: rgba(226, 232, 240, 0.8);
  filter: none;
}

.site-card .bookmark-btn .svg-icon,
.site-jump .svg-icon {
  width: 12px;
  height: 12px;
}


/* Site Detail Page - Unified Card Layout */
.site-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: none;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-detail-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

@media (min-width: 768px) {
  .site-detail-card {
    grid-template-columns: 360px 1fr;
    height: 360px;
  }
}

/* Preview Section */
.site-detail-card .site-preview-section {
  position: relative;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-detail-card .site-preview-section {
    border-bottom: 0;
    border-right: 1px solid var(--border);
    height: 360px;
  }
}

.site-detail-card .site-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.site-detail-card .site-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  gap: 8px;
}

.site-detail-card .site-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 2;
}

.site-detail-card .site-preview-section:hover .site-preview-overlay {
  opacity: 1;
}

.site-detail-card .preview-btn {
  background: white;
  color: var(--text);
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(10px);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: none;
  cursor: pointer;
}

.site-detail-card .site-preview-section:hover .preview-btn {
  transform: translateY(0);
}

/* Info Section */
.site-detail-card .site-info-section {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.site-detail-card .site-header-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.site-detail-card .site-favicon {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  background: var(--bg);
  padding: 10px;
  object-fit: contain;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .site-detail-card .site-favicon { width: 72px; height: 72px; padding: 8px; }
}

.site-detail-card .site-title-block {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-detail-card .site-title-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.site-detail-card .site-title-text {
  min-width: 0;
  flex: 1 1 auto;
}

.site-detail-card .site-act-btn.site-rating-score,
.site-detail-card .site-act-btn.site-rating-count { cursor: default; }
.site-detail-card .site-act-btn.site-rating-score:hover,
.site-detail-card .site-act-btn.site-rating-count:hover { background: transparent; color: var(--muted); }
.site-detail-card .site-act-btn.site-rating-score .site-rating-stars { display: inline-flex; gap: 1px; line-height: 1; }
.site-detail-card .site-act-btn.site-rating-count { font-size: 12px; color: var(--muted); }
.site-detail-card .site-act-btn.site-metric-seg { cursor: default; font-size: 12px; }
.site-detail-card .site-act-btn.site-metric-seg:hover { background: transparent; color: var(--muted); }

.site-detail-card .site-meta-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.site-detail-card .site-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-detail-card .site-action-group {
  display: inline-flex;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(248, 250, 252, 0.72);
  flex: 0 1 auto;
  max-width: 100%;
  scrollbar-width: none;
}
.site-detail-card .site-action-group::-webkit-scrollbar { display: none; }
body[data-theme="dark"] .site-detail-card .site-action-group {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
}

.site-detail-card .site-act-btn {
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.site-detail-card .site-act-btn + .site-act-btn { border-left: 1px solid rgba(226, 232, 240, 0.85); }
body[data-theme="dark"] .site-detail-card .site-act-btn + .site-act-btn { border-left-color: rgba(148, 163, 184, 0.25); }
.site-detail-card .site-act-btn:hover { background: rgba(37, 99, 235, 0.06); color: var(--primary); }
.site-detail-card .site-act-btn.active { color: #f59e0b; }
.site-detail-card .site-act-btn.active:hover { background: rgba(245, 158, 11, 0.12); }

.site-detail-card .site-act-num {
  font-size: 12px;
  font-weight: 850;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.site-detail-card .site-name {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 2px 0;
  line-height: 1.15;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.site-detail-card .site-name-text { min-width: 0; }

.site-detail-card .site-description {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.site-detail-card .site-desc-tail { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }

.site-detail-card .site-domain-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.site-metrics-inline {
  margin-top: 0;
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.site-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.72);
  font-size: 12px;
  color: var(--muted);
  line-height: 1;
}
body[data-theme="dark"] .site-metric {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
}
.site-metric-label { font-weight: 800; color: rgba(71, 85, 105, 0.82); }
body[data-theme="dark"] .site-metric-label { color: rgba(226, 232, 240, 0.72); }
.site-metric-value {
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-metric-tail-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}

.site-metric-action-btn {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.75);
  border-radius: 8px;
  color: rgba(71, 85, 105, 0.9);
  cursor: pointer;
  padding: 0;
}
body[data-theme="dark"] .site-metric-action-btn {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
  color: rgba(226, 232, 240, 0.72);
}
.site-metric-action-btn:hover { background: rgba(37, 99, 235, 0.08); color: var(--primary); }

 

/* Stats Grid */
.site-detail-card .site-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.site-detail-card .stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-detail-card .stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-detail-card .stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-detail-card .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.site-detail-card .status-dot.success { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2); }
.site-detail-card .status-dot.error { background: #ef4444; }
.site-detail-card .status-dot.loading { background: #eab308; animation: pulse 1.5s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Actions */
.site-detail-card .site-actions {
  margin-top: 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  align-items: center;
  height: auto;
  flex-direction: row;
  justify-content: flex-start;
  position: static;
}

.site-detail-card .site-actions .btn-visit,
.site-detail-card .site-actions .site-copy-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
}

.site-detail-card .site-actions .btn-visit {
  gap: 8px;
  box-shadow: none;
  transform: none;
}

.site-detail-card .site-actions .btn-visit:hover {
  transform: none;
  box-shadow: none;
}

.site-detail-card .site-actions .btn-visit .svg-icon { width: 14px !important; height: 14px !important; }

.site-detail-card .site-actions .site-copy-btn { padding: 0 14px; }

.sd-detail-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.65);
  padding: 12px;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-theme="dark"] .sd-detail-card {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.40);
}
.sd-detail-title { font-weight: 750; color: var(--text); font-size: 13px; }
.sd-detail-body {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-detail-card .btn-visit {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.site-detail-card .btn-visit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.site-detail-card .btn-bookmark {
  background: white;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.site-detail-card .btn-bookmark:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

/* Fullscreen Modal */
.fs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 0;
}
body.fs-open .fs-modal {
  inset: auto;
  top: var(--navsite-topbar-h, 0px);
  right: 0;
  bottom: 0;
  left: 0;
}

.fs-modal.active {
  opacity: 1;
  visibility: visible;
}

.fs-modal-content {
  position: relative;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
body.fs-open .fs-modal-content { width: 100%; height: 100%; }

.fs-modal.active .fs-modal-content {
  transform: scale(1);
}

.fs-view {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  user-select: none;
  touch-action: none;
  background: rgba(0, 0, 0, 0.15);
}

.fs-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-user-drag: none;
}

.fs-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  color: white;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
}

.fs-close-btn:hover { opacity: 1; }

/* Site Detail - Sections (reference-like layout) */
.sd-page { display: grid; gap: 14px; width: 100%; max-width: none; margin: 0; }
.sd-crumb { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-crumb-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.sd-crumb-link:hover { text-decoration: underline; }
.sd-crumb-sep { color: rgba(148, 163, 184, 0.9); }
.sd-crumb-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.sd-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.75);
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.sd-tag:hover { filter: brightness(0.98); text-decoration: none; }

.sd-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}
.sd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sd-section-title { margin: 0; font-size: 16px; font-weight: 750; color: var(--text); }
.sd-section-sub { font-size: 12px; color: var(--muted); }

.sd-chart-card { border: 1px solid rgba(226, 232, 240, 0.85); border-radius: 14px; background: rgba(248, 250, 252, 0.65); padding: 14px; }
body[data-theme="dark"] .sd-chart-card { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.36); }
.sd-chart-tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.sd-chart-tab { text-decoration: none; color: var(--muted); border: 1px solid rgba(226, 232, 240, 0.85); background: rgba(248, 250, 252, 0.72); padding: 6px 10px; border-radius: 999px; font-size: 12px; }
body[data-theme="dark"] .sd-chart-tab { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.40); }
.sd-chart-tab.active { color: var(--text); border-color: rgba(37, 99, 235, 0.65); background: rgba(37, 99, 235, 0.10); }
.sd-chart-legend { display: flex; gap: 14px; justify-content: center; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.sd-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.sd-legend-swatch { width: 22px; height: 10px; border-radius: 999px; display: inline-block; }
.sd-legend-swatch.pc { background: #4f6ef7; }
.sd-legend-swatch.mobile { background: #59c36a; }
.sd-legend-swatch.total { background: #f59e0b; position: relative; }
.sd-chart-canvas { width: 100%; height: 320px; display: block; }

.rv-star { font-size: 14px; color: rgba(148, 163, 184, 0.85); }
.rv-star.on { color: #f59e0b; }
.rv-star.half { background: linear-gradient(90deg, #f59e0b 50%, rgba(148, 163, 184, 0.85) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.sd-review-card { border: 1px solid rgba(226, 232, 240, 0.85); border-radius: 14px; background: rgba(248, 250, 252, 0.65); padding: 16px; }
body[data-theme="dark"] .sd-review-card { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.36); }
.sd-review-form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-review-form-label { font-size: 13px; font-weight: 750; color: var(--text); }
.rv-stars-input { display: inline-flex; gap: 2px; cursor: pointer; user-select: none; touch-action: none; }
.rv-stars-input .rv-star { font-size: 22px; color: rgba(148, 163, 184, 0.85); }
.rv-stars-input .rv-star.on { color: #f59e0b; }
.rv-star-value { font-weight: 850; color: var(--text); font-variant-numeric: tabular-nums; }
.sd-review-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); resize: vertical; }

.sd-review-list { margin-top: 12px; display: grid; gap: 12px; }
.sd-review-item { border: 1px solid rgba(226, 232, 240, 0.85); border-radius: 14px; background: rgba(248, 250, 252, 0.6); padding: 14px; display: grid; gap: 10px; }
body[data-theme="dark"] .sd-review-item { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.36); }
.sd-review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sd-review-author { font-weight: 750; color: var(--text); }
.sd-review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-review-stars { display: inline-flex; gap: 1px; }
.sd-review-content { color: var(--muted); line-height: 1.8; font-size: 13px; }
.sd-review-badge { font-size: 12px; color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.35); background: rgba(239, 68, 68, 0.06); padding: 3px 8px; border-radius: 999px; }
.sd-review-replies { display: grid; gap: 8px; padding-top: 6px; }
.sd-reply-item { border-left: 2px solid rgba(148, 163, 184, 0.35); padding-left: 10px; }
.sd-reply-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sd-reply-author { font-weight: 650; color: var(--text); }
.sd-reply-content { margin-top: 4px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.sd-review-reply-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); resize: vertical; }

.sd-kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.sd-kpi { border: 1px solid rgba(226, 232, 240, 0.85); border-radius: 12px; background: rgba(248, 250, 252, 0.65); padding: 12px; }
body[data-theme="dark"] .sd-kpi { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.40); }
.sd-kpi-label { font-size: 12px; color: var(--muted); }
.sd-kpi-value { margin-top: 6px; font-size: 18px; font-weight: 850; font-variant-numeric: tabular-nums; color: var(--text); }

.sd-section-grid { display: grid; gap: 12px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .sd-section-grid { grid-template-columns: 1fr 1fr; } }

.sd-eval-text { font-size: 13px; color: var(--muted); line-height: 1.7; }
.sd-eval-meta { font-size: 12px; color: var(--muted); line-height: 1.6; }
.sd-eval-links { display: flex; gap: 10px; flex-wrap: wrap; }
.sd-eval-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(248, 250, 252, 0.9); color: var(--text); text-decoration: none; font-size: 13px; }
body[data-theme="dark"] .sd-eval-link { background: rgba(15, 23, 42, 0.55); }
.sd-eval-link:hover { filter: brightness(0.98); text-decoration: none; }

.sd-disclaimer-panel { position: relative; border: 1px dashed rgba(148, 163, 184, 0.65); border-radius: 14px; padding: 16px 14px 14px; background: rgba(248, 250, 252, 0.55); }
body[data-theme="dark"] .sd-disclaimer-panel { border-color: rgba(148, 163, 184, 0.35); background: rgba(15, 23, 42, 0.28); }
.sd-disclaimer-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--text); border: 1px solid rgba(226, 232, 240, 0.85); background: linear-gradient(90deg, rgba(253, 186, 116, 0.85), rgba(236, 72, 153, 0.25)); }
body[data-theme="dark"] .sd-disclaimer-badge { border-color: rgba(148, 163, 184, 0.25); background: linear-gradient(90deg, rgba(253, 186, 116, 0.35), rgba(236, 72, 153, 0.18)); }
.sd-disclaimer-body { display: grid; gap: 8px; }
.sd-disclaimer-item { font-size: 13px; color: var(--muted); line-height: 1.7; }

.sd-disclaimer { border: 1px solid rgba(226, 232, 240, 0.85); border-radius: 12px; background: rgba(248, 250, 252, 0.65); overflow: hidden; }
body[data-theme="dark"] .sd-disclaimer { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.40); }
.sd-disclaimer-summary { cursor: pointer; padding: 12px; font-weight: 650; color: var(--text); list-style: none; }
.sd-disclaimer-summary::-webkit-details-marker { display: none; }
.sd-disclaimer-body { padding: 0 12px 12px; border-top: 1px solid rgba(226, 232, 240, 0.85); }
body[data-theme="dark"] .sd-disclaimer-body { border-top-color: rgba(148, 163, 184, 0.22); }
.sd-disclaimer-text { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.sd-disclaimer-meta { margin-top: 10px; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }

.sd-related-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sd-related-card { border: 1px solid rgba(226, 232, 240, 0.85); border-radius: 12px; background: rgba(248, 250, 252, 0.6); padding: 12px; text-decoration: none; color: inherit; display: grid; gap: 10px; }
body[data-theme="dark"] .sd-related-card { border-color: rgba(148, 163, 184, 0.25); background: rgba(15, 23, 42, 0.36); }
.sd-related-card:hover { box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.sd-related-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sd-related-icon { width: 28px; height: 28px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); object-fit: contain; flex: 0 0 auto; padding: 4px; }
.sd-related-meta { min-width: 0; display: grid; gap: 2px; }
.sd-related-title { font-size: 13px; font-weight: 750; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-related-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-related-desc { font-size: 12px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

