:root {
  --bg: #f4efe6;
  --bg-strong: #eadfcf;
  --ink: #1a1714;
  --muted: #66584b;
  --line: rgba(26, 23, 20, 0.12);
  --card: rgba(255, 250, 242, 0.92);
  --accent: #c74f2b;
  --accent-soft: rgba(199, 79, 43, 0.14);
  --ok: #1f7a4d;
  --idle: #7a6d60;
  --shadow: 0 18px 60px rgba(66, 42, 18, 0.12);
  --font-main: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --text-xs: 11px;
  --text-sm: 12px;
  --text-md: 14px;
  --text-lg: 16px;
  --num-md: 22px;
  --num-lg: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(199, 79, 43, 0.2), transparent 32%),
    radial-gradient(circle at 88% 2%, rgba(44, 93, 125, 0.18), transparent 30%),
    radial-gradient(circle at 70% 44%, rgba(240, 161, 95, 0.12), transparent 28%),
    linear-gradient(180deg, #f7f1e7 0%, #f0e5d6 100%);
}

body.pending-auth .page-shell {
  visibility: hidden;
}

.site-home {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 143, 31, 0.18), transparent 30%),
    radial-gradient(circle at 86% 4%, rgba(34, 119, 238, 0.16), transparent 34%),
    linear-gradient(135deg, #fff7ea 0%, #f6efe5 45%, #edf3fb 100%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 60px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 50px rgba(50, 54, 68, 0.08);
  backdrop-filter: blur(18px);
}

.site-brand,
.site-nav-actions,
.site-hero-actions,
.site-proof-row {
  display: flex;
  align-items: center;
}

.site-brand {
  gap: 10px;
  color: #181b22;
  font-size: 18px;
  font-weight: 880;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff8f1f, #f04d22);
  box-shadow: 0 12px 24px rgba(240, 77, 34, 0.28);
  font-size: 15px;
  font-weight: 900;
}

.site-nav-actions {
  gap: 10px;
}

.site-nav-link,
.site-nav-button,
.site-primary-button,
.site-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 780;
  text-decoration: none;
}

.site-nav-link,
.site-secondary-button {
  color: #4d5667;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(40, 47, 62, 0.08);
}

.site-nav-button,
.site-primary-button {
  color: #fff;
  background: linear-gradient(135deg, #ff8f1f, #f05223);
  box-shadow: 0 16px 34px rgba(240, 82, 35, 0.28);
}

.site-hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 248, 236, 0.58)),
    radial-gradient(circle at 74% 24%, rgba(34, 119, 238, 0.12), transparent 34%);
  box-shadow: 0 28px 90px rgba(50, 54, 68, 0.12);
  backdrop-filter: blur(20px);
}

.site-kicker {
  margin: 0 0 12px;
  color: #f05223;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-hero-copy h1 {
  margin: 0;
  max-width: 660px;
  color: #171a21;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.96;
  font-weight: 920;
  letter-spacing: -0.08em;
}

.site-subtitle {
  max-width: 620px;
  margin: 22px 0 0;
  color: #5d6575;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 640;
}

.site-hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.site-proof-row {
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.site-proof-row span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #263043;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(40, 47, 62, 0.08);
  font-size: 13px;
  font-weight: 760;
}

.site-dashboard-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 226, 0.72));
  box-shadow: 0 24px 70px rgba(50, 54, 68, 0.14);
}

.site-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1c2330;
}

.site-card-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #20c58b;
  box-shadow: 0 0 0 7px rgba(32, 197, 139, 0.12);
}

.site-card-top strong {
  flex: 1;
  font-size: 17px;
  font-weight: 860;
}

.site-card-top em {
  color: #0b8c67;
  font-style: normal;
  font-size: 13px;
  font-weight: 820;
}

.site-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.site-metric-grid article {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(32, 38, 50, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.site-metric-grid small,
.site-metric-grid i {
  color: #788090;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.site-metric-grid b {
  color: #111722;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.site-chart-panel {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border: 1px solid rgba(32, 38, 50, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(34, 119, 238, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(32, 38, 50, 0.06) 0 1px, transparent 1px 34px);
}

.site-chart-line {
  position: absolute;
  inset: 32px 24px;
  border-bottom: 5px solid #2277ee;
  border-radius: 999px;
  transform: skewY(-9deg);
  box-shadow: 48px -16px 0 -2px #20c58b, 116px -2px 0 -2px #ff8f1f, 210px -34px 0 -2px #2277ee;
}

.site-alert-pill {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 10px 13px;
  border-radius: 999px;
  color: #b42318;
  background: rgba(255, 241, 238, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.18);
  font-size: 13px;
  font-weight: 820;
}

.site-feature-grid,
.site-split-section,
.site-pricing {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.site-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-feature-grid article,
.site-split-section,
.site-pricing {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 50px rgba(50, 54, 68, 0.08);
}

.site-feature-grid article {
  padding: 22px;
}

.site-feature-grid span {
  color: #f05223;
  font-size: 13px;
  font-weight: 900;
}

.site-feature-grid h2,
.site-split-section h2,
.site-pricing h2 {
  margin: 8px 0 10px;
  color: #171a21;
  font-size: 24px;
  font-weight: 880;
  letter-spacing: -0.05em;
}

.site-feature-grid p,
.site-split-section p,
.site-pricing p,
.site-split-section li {
  color: #606879;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 630;
}

.site-split-section,
.site-pricing {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  padding: 26px;
}

.site-split-section ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-split-section li {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.site-pricing article {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffaf2, #fff1de);
}

.site-pricing strong {
  color: #111722;
  font-size: 46px;
  font-weight: 920;
  letter-spacing: -0.07em;
}

.site-pricing span {
  color: #5f6878;
  font-size: 15px;
  font-weight: 760;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 440px) minmax(260px, 300px);
  gap: 20px;
  align-items: start;
  margin-bottom: 26px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.9), rgba(255, 250, 242, 0.62)),
    radial-gradient(circle at 8% 18%, rgba(199, 79, 43, 0.16), transparent 35%),
    radial-gradient(circle at 76% 18%, rgba(44, 93, 125, 0.12), transparent 30%);
  box-shadow: 0 24px 80px rgba(66, 42, 18, 0.14);
  backdrop-filter: blur(18px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 18px auto auto 42%;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 79, 43, 0.14), transparent 64%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 190px;
  height: 92px;
  border-radius: 28px;
  border: 1px solid rgba(199, 79, 43, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 251, 245, 0.14)),
    repeating-linear-gradient(135deg, rgba(199, 79, 43, 0.08) 0 1px, transparent 1px 12px);
  opacity: 0.75;
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 1;
  min-width: 280px;
  max-width: 680px;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-capabilities span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 11px;
  border: 1px solid rgba(199, 79, 43, 0.2);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.88), rgba(255, 255, 255, 0.46));
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 650;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(66, 42, 18, 0.06);
}

.hero-bulletin {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 15px 16px;
  border-radius: 22px;
  border: 1px solid rgba(26, 23, 20, 0.1);
  background: rgba(255, 251, 245, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.bulletin-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-xs);
  font-weight: 700;
}

h1,
h2,
h3,
strong {
  font-family: var(--font-main);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 760;
}

.subtitle,
.panel-head p,
.target-footer p,
.target-head p,
.meta,
.event-row p,
time {
  color: var(--muted);
}

.subtitle {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.78;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}

.account-strip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.hidden {
  display: none !important;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #cd5b35, #ad3e1d);
  color: #fffaf3;
  font-size: var(--text-md);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 24px rgba(173, 62, 29, 0.2);
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: linear-gradient(135deg, #cd5b35, #ad3e1d);
  color: #fffaf3;
  font-size: var(--text-md);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 24px rgba(173, 62, 29, 0.2);
}

.targets-grid {
  display: grid;
  gap: 16px;
}

.overview-layout {
  margin-bottom: 20px;
}

.overview-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(255, 251, 245, 0.78)),
    radial-gradient(circle at top right, rgba(44, 93, 125, 0.08), transparent 30%);
}

.alerts-list {
  display: grid;
  gap: 6px;
}

.announcement-row {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.08);
}

.announcement-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.announcement-row strong,
.announcement-row p {
  margin: 0;
}

.announcement-row strong {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 800;
}

.announcement-row p {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.alert-row {
  display: grid;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.alert-row p,
.alert-row time,
.alert-row strong {
  margin: 0;
}

.alert-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.alert-text {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}

.alert-subtext {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
}

.alert-row time {
  font-size: var(--text-xs);
  white-space: nowrap;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.console-side {
  display: grid;
  gap: 14px;
}

.target-form {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr auto;
  gap: 12px;
}

.target-form.compact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.batch-form {
  display: grid;
  gap: 10px;
}

.batch-form textarea {
  min-height: 118px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 251, 245, 0.92);
  color: var(--ink);
  font-size: 14px;
  resize: vertical;
}

.target-form input,
.live-page-form-grid input,
.live-page-deliver-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 251, 245, 0.92);
  color: var(--ink);
  font-size: 14px;
}

.target-form input:focus,
.live-page-form-grid input:focus,
.live-page-deliver-form input:focus {
  outline: 2px solid rgba(199, 79, 43, 0.22);
  border-color: rgba(199, 79, 43, 0.35);
}

.live-page-shop {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(199, 79, 43, 0.2);
  background:
    radial-gradient(circle at top right, rgba(199, 79, 43, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(199, 79, 43, 0.1), rgba(255, 251, 245, 0.78));
}

.live-page-shop-head,
.live-page-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.live-page-shop h3,
.live-page-shop p {
  margin: 0;
}

.live-page-shop .eyebrow {
  margin-bottom: 8px;
  font-size: var(--text-xs);
}

.live-page-shop h3 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.live-page-shop p {
  margin-top: 7px;
  max-width: 680px;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.55;
}

.live-page-order-form,
.delivery-card-grid,
.live-page-admin-list,
.live-page-admin-card {
  display: grid;
  gap: 12px;
}

.product-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.product-option {
  display: grid;
  gap: 8px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.product-option input {
  width: auto;
  margin: 0;
}

.product-option span {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
}

.product-option strong {
  color: var(--accent);
  font-size: var(--num-md);
  font-weight: 650;
}

.live-page-form-grid,
.live-page-deliver-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px;
}

.live-page-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.delivery-card,
.live-page-admin-card {
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.delivery-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.delivery-card span,
.delivery-card p,
.delivery-card small {
  color: var(--muted);
  font-size: var(--text-xs);
}

.delivery-card strong {
  display: block;
  margin: 4px 0;
  font-size: var(--text-lg);
  font-weight: 650;
}

.delivery-card p {
  margin: 0;
}

.panel,
.target-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel {
  border-radius: 28px;
  padding: 20px;
  margin-bottom: 20px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 13px;
  margin-bottom: 16px;
}

.console-panel {
  overflow: hidden;
}

.console-summary {
  cursor: pointer;
  list-style: none;
}

.console-summary::-webkit-details-marker {
  display: none;
}

.console-summary span {
  display: grid;
  gap: 4px;
}

.console-summary strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(26, 23, 20, 0.06);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.console-panel[open] .console-summary strong {
  background: rgba(199, 79, 43, 0.12);
  color: var(--accent);
}

.panel-head h2,
.target-head h3 {
  margin: 0;
}

.overview-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.summary-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 650;
}

.summary-inline strong {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(199, 79, 43, 0.1);
  color: var(--ink);
  font-size: var(--text-md);
  font-weight: 760;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(980px, 100%);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 28px;
  display: grid;
  gap: 24px;
}

.admin-page .auth-shell {
  display: block;
  min-height: 100vh;
  padding: 0;
}

.admin-page .auth-panel,
.admin-page .admin-panel {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
}

.admin-page .admin-grid,
.admin-page .admin-panel > .billing-card,
.admin-page .billing-actions {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.88);
}

.auth-form h2 {
  margin: 0;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 14px;
}

.auth-footnote,
.billing-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 251, 245, 0.88);
}

.auth-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.billing-panel,
.success-panel {
  max-width: 760px;
}

.admin-panel {
  width: min(1240px, 100%);
  overflow: hidden;
}

.admin-watchboard {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.admin-side-nav {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 22px;
  min-height: 520px;
  padding: 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(38, 48, 58, 0.92), rgba(31, 30, 28, 0.92)),
    radial-gradient(circle at 30% 8%, rgba(240, 161, 95, 0.28), transparent 38%);
  color: #fff8ef;
  box-shadow: 0 22px 70px rgba(66, 42, 18, 0.16);
}

.side-brand {
  display: grid;
  gap: 10px;
}

.side-brand span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0a15f, #c74f2b);
  color: #fff;
  font-weight: 800;
}

.side-brand strong {
  color: #fff8ef;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.admin-side-nav nav {
  display: grid;
  gap: 10px;
}

.admin-side-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 14px;
  padding: 0 12px;
  color: rgba(255, 248, 239, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.admin-side-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.admin-watchboard-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: center;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(255, 250, 242, 0.62)),
    radial-gradient(circle at 10% 20%, rgba(199, 79, 43, 0.16), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(44, 93, 125, 0.14), transparent 30%);
  box-shadow: 0 22px 70px rgba(66, 42, 18, 0.13);
}

.admin-hero::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -54px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 79, 43, 0.16), transparent 64%);
  pointer-events: none;
}

.admin-hero > * {
  position: relative;
  z-index: 1;
}

.admin-hero-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(26, 23, 20, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 251, 245, 0.48)),
    repeating-linear-gradient(135deg, rgba(199, 79, 43, 0.07) 0 1px, transparent 1px 12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-hero-card span {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-hero-card strong {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.admin-hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 250, 242, 0.92)),
    var(--card);
  box-shadow: 0 18px 48px rgba(66, 42, 18, 0.1);
}

.admin-stat::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(199, 79, 43, 0.14), transparent 68%);
}

.admin-stat span {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.admin-stat strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
  font-weight: 690;
  letter-spacing: -0.04em;
}

.admin-stat p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.admin-ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.admin-ops-card {
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 250, 242, 0.9)),
    var(--card);
  box-shadow: 0 18px 48px rgba(66, 42, 18, 0.1);
}

.admin-trend-panel {
  grid-row: span 2;
}

.admin-ops-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-ops-head span {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-ops-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.admin-ops-head p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.admin-trend-chart {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  gap: 12px;
  min-height: 260px;
}

.admin-chart-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.admin-chart-meta strong {
  color: var(--accent);
  font-size: 28px;
  font-weight: 720;
}

.admin-chart-bars {
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 190px;
  padding: 16px 14px 10px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(26, 23, 20, 0.07) 1px, transparent 1px) 0 0 / 100% 25%,
    rgba(26, 23, 20, 0.035);
}

.admin-trend-bar {
  flex: 1;
  display: flex;
  align-items: end;
  min-width: 4px;
  height: 100%;
}

.admin-trend-bar i {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #f0a15f, #c74f2b);
  box-shadow: 0 10px 20px rgba(199, 79, 43, 0.18);
}

.admin-chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.admin-chart-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: 22px;
  background: rgba(26, 23, 20, 0.04);
  color: var(--muted);
  font-size: var(--text-sm);
}

.admin-alert-list,
.admin-live-list {
  display: grid;
  gap: 10px;
}

.admin-alert-row,
.admin-live-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.72);
  border: 1px solid rgba(26, 23, 20, 0.08);
}

.admin-alert-row strong,
.admin-live-row strong {
  font-size: 14px;
}

.admin-alert-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.45;
}

.admin-alert-row time {
  font-size: 11px;
}

.admin-live-title,
.admin-live-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-live-title span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(199, 79, 43, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
}

.admin-live-metrics {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 780;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-block {
  display: grid;
  gap: 16px;
}

.admin-block-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.admin-block-head h2,
.admin-block-head p {
  margin: 0;
}

.admin-form {
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.admin-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.packs-list {
  display: grid;
  gap: 12px;
}

.pack-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.82);
}

.pack-card.is-active {
  background: linear-gradient(180deg, rgba(31, 122, 77, 0.08), rgba(255, 251, 245, 0.9));
}

.pack-card.is-expired {
  opacity: 0.8;
}

.pack-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-static-home {
  --admin-blue: #2277ee;
  --admin-orange: #ff7b22;
  --admin-green: #22b98f;
  --admin-amber: #ffb323;
  --admin-red: #ff4e43;
  --admin-purple: #4f6df5;
  --admin-muted: #8b909a;
  --admin-line: rgba(28, 33, 42, 0.08);
  --admin-shadow: 0 18px 42px rgba(36, 45, 63, 0.1);
  color: #191b20;
}

.admin-static-frame {
  width: 100%;
  min-height: 100vh;
  padding: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.54)),
    radial-gradient(circle at 0% 0%, rgba(255, 126, 34, 0.12), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(47, 128, 237, 0.14), transparent 38%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 28px 80px rgba(51, 63, 84, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.admin-static-dashboard {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 26px;
  min-height: 100vh;
  padding: 24px 26px 24px 18px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 44px rgba(55, 74, 106, 0.06);
  backdrop-filter: blur(20px);
}

.admin-static-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 22px 10px;
}

.admin-static-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-left: 18px;
  border-radius: 13px;
  background: linear-gradient(145deg, #ff9b34, #ff6a1c);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 111, 32, 0.28);
}

.admin-static-logo svg {
  width: 25px;
  height: 25px;
}

.admin-static-nav {
  display: grid;
  gap: 14px;
}

.admin-static-nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 48px;
  padding: 0 18px;
  border-radius: 18px;
  color: #8b8f98;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.admin-static-nav a.active {
  color: #ff7a22;
  background: linear-gradient(90deg, rgba(255, 125, 34, 0.17), rgba(255, 170, 74, 0.08));
}

.admin-static-nav svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.admin-static-main {
  min-width: 0;
}

.admin-console-page {
  display: none;
  gap: 20px;
}

.admin-console-page.is-active {
  display: grid;
}

.admin-page-head {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.admin-page-head p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 14px;
  font-weight: 650;
}

.admin-static-topbar,
.admin-static-title-row,
.admin-static-filters,
.admin-static-filter,
.admin-static-refresh {
  display: flex;
  align-items: center;
}

.admin-static-topbar {
  justify-content: space-between;
  gap: 18px;
}

.admin-static-title-row {
  gap: 22px;
}

.admin-static-title-row h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.admin-static-refresh {
  gap: 10px;
  color: #8e95a0;
  font-size: 15px;
  font-weight: 650;
}

.admin-static-refresh i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #23c395;
  box-shadow: 0 0 0 5px rgba(35, 195, 149, 0.12);
}

.admin-static-filters {
  gap: 18px;
}

.admin-static-filter {
  gap: 12px;
  min-width: 142px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: #6f7480;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(42, 52, 70, 0.04);
}

.admin-static-filter select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #6f7480;
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.admin-static-filter span {
  margin-left: auto;
}

.admin-static-filter svg {
  width: 18px;
  height: 18px;
}

.admin-static-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.admin-static-metric-card {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  padding: 26px 24px 18px;
  border-radius: 17px;
  border: 1px solid var(--admin-line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  box-shadow: var(--admin-shadow);
}

.admin-static-metric-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.admin-static-metric-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 780;
}

.admin-static-metric-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.admin-static-metric-icon svg {
  width: 24px;
  height: 24px;
}

.admin-static-metric-icon.blue {
  color: var(--admin-blue);
  background: rgba(34, 119, 238, 0.12);
}

.admin-static-metric-icon.orange {
  color: #ff6746;
  background: rgba(255, 103, 70, 0.12);
}

.admin-static-metric-icon.green {
  color: var(--admin-green);
  background: rgba(34, 185, 143, 0.12);
}

.admin-static-metric-icon.amber {
  color: var(--admin-amber);
  background: rgba(255, 179, 35, 0.16);
}

.admin-static-metric-icon.purple {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: var(--admin-purple);
  background: rgba(79, 109, 245, 0.12);
}

.admin-static-metric-value {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 860;
}

.admin-static-metric-change {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8c929d;
  font-size: 14px;
  font-weight: 650;
}

.admin-static-metric-change b {
  color: var(--admin-green);
}

.admin-static-metric-change b.warn {
  color: #ff6a35;
}

.admin-static-spark {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 24px;
  height: 76px;
}

.admin-static-spark svg,
.admin-static-trend svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.admin-static-ai-card {
  background:
    linear-gradient(145deg, rgba(249, 251, 255, 0.96), rgba(244, 248, 255, 0.82)),
    radial-gradient(circle at 70% 20%, rgba(79, 109, 245, 0.12), transparent 34%);
}

.admin-static-ai-state {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 28px;
  font-size: 31px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.admin-static-ai-state i,
.admin-static-live-meta i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--admin-green);
  box-shadow: 0 0 0 6px rgba(34, 185, 143, 0.12);
}

.admin-static-ai-meta {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.admin-static-ai-meta div {
  display: flex;
  justify-content: space-between;
  color: #747b86;
  font-size: 16px;
  font-weight: 720;
}

.admin-static-ai-meta strong {
  color: #191b20;
  font-weight: 850;
}

.admin-static-lower {
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(300px, 0.68fr) minmax(285px, 0.56fr);
  gap: 16px;
  min-height: 356px;
}

.admin-static-panel {
  min-width: 0;
  border-radius: 17px;
  border: 1px solid var(--admin-line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--admin-shadow);
}

.admin-static-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 12px;
  gap: 12px;
}

.admin-static-panel-head h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 820;
  letter-spacing: -0.03em;
}

.admin-static-tabs {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.admin-static-tabs span,
.admin-static-tabs button {
  min-width: 58px;
  padding: 8px 13px;
  border-right: 1px solid var(--admin-line);
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: #8b9098;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.admin-static-tabs span:last-child,
.admin-static-tabs button:last-child {
  border-right: 0;
}

.admin-static-tabs .active {
  color: var(--admin-blue);
  background: rgba(34, 119, 238, 0.08);
}

.admin-static-trend {
  position: relative;
  height: 292px;
  padding: 14px 26px 24px 18px;
}

.admin-static-trend-tooltip {
  position: absolute;
  left: 45%;
  top: 116px;
  display: grid;
  gap: 13px;
  width: 150px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 30px rgba(42, 78, 135, 0.16);
  backdrop-filter: blur(14px);
}

.admin-static-trend-tooltip span {
  color: #647086;
  font-size: 16px;
  font-weight: 720;
}

.admin-static-trend-tooltip b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.admin-static-trend-tooltip i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--admin-blue);
}

.admin-static-trend-note {
  position: absolute;
  right: 24px;
  bottom: 14px;
  max-width: 260px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 179, 35, 0.14);
  color: #996211;
  font-size: 12px;
  font-weight: 750;
}

.admin-static-link {
  color: #9aa0a8;
  font-size: 14px;
  font-weight: 700;
}

.admin-static-alerts,
.admin-static-live-list {
  display: grid;
  gap: 12px;
  padding: 10px 14px 18px;
}

.admin-static-alert-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  border-radius: 13px;
}

.admin-static-alert-row.red {
  background: rgba(255, 78, 67, 0.08);
}

.admin-static-alert-row.orange {
  background: rgba(255, 123, 34, 0.08);
}

.admin-static-alert-row.amber {
  background: rgba(255, 179, 35, 0.11);
}

.admin-static-alert-row.blue {
  background: rgba(34, 119, 238, 0.08);
}

.admin-static-alert-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
}

.admin-static-alert-icon svg {
  width: 22px;
  height: 22px;
}

.admin-static-alert-row.red .admin-static-alert-icon {
  background: var(--admin-red);
}

.admin-static-alert-row.orange .admin-static-alert-icon {
  background: var(--admin-orange);
}

.admin-static-alert-row.amber .admin-static-alert-icon {
  background: var(--admin-amber);
}

.admin-static-alert-row.blue .admin-static-alert-icon {
  background: var(--admin-blue);
}

.admin-static-alert-row strong,
.admin-static-live-row h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 820;
}

.admin-static-alert-row p,
.admin-static-live-row p {
  margin: 0;
  color: #8c929d;
  font-size: 14px;
  font-weight: 650;
}

.admin-static-alert-row time {
  color: #7e8490;
  font-size: 14px;
  font-weight: 720;
}

.admin-static-live-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(150px, auto);
  gap: 13px;
  align-items: center;
  min-height: 70px;
}

.admin-static-thumb {
  position: relative;
  overflow: hidden;
  width: 74px;
  height: 58px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.admin-static-thumb::after {
  content: none;
}

.admin-static-thumb.has-shot {
  background-size: cover;
  background-position: center;
}

.admin-static-thumb.has-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.42));
}

.admin-static-thumb.t1 {
  background: linear-gradient(135deg, #caa88a, #4f342a);
}

.admin-static-thumb.t2 {
  background: linear-gradient(135deg, #2b3347, #b99b82);
}

.admin-static-thumb.t3 {
  background: linear-gradient(135deg, #d6d6d0, #20242e);
}

.admin-static-thumb.t4 {
  background: linear-gradient(135deg, #efe4d5, #8a7458);
}

.admin-static-live-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--admin-green);
  font-size: 13px;
  font-weight: 750;
}

.admin-static-viewer {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7f8690;
  font-size: 14px;
  font-weight: 720;
}

.admin-static-live-metrics {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 12px;
  justify-content: end;
  color: #68707c;
  font-size: 13px;
  font-weight: 760;
  white-space: nowrap;
}

.admin-static-empty {
  display: grid;
  place-items: center;
  min-height: 90px;
  color: var(--admin-muted);
  font-size: 14px;
}

.admin-full-list {
  display: grid;
  gap: 14px;
}

.admin-full-live-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(360px, auto) minmax(250px, auto);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(36, 45, 63, 0.07);
}

.admin-full-live-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 820;
}

.admin-full-live-card p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 650;
}

.admin-full-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 10px;
  color: #6f7480;
  font-size: 14px;
  font-weight: 760;
}

.admin-full-metrics span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--admin-line);
}

.admin-live-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 143, 31, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf2, #fff2df);
  color: var(--admin-orange);
  font-size: 13px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(255, 143, 31, 0.13);
}

.admin-live-home-link:hover {
  border-color: rgba(255, 143, 31, 0.45);
  transform: translateY(-1px);
}

.admin-live-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.admin-target-collector {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.admin-target-collector span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 760;
}

.admin-target-collector select {
  min-height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  color: #283040;
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 760;
}

.collector-node-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.collector-node-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(36, 45, 63, 0.08);
}

.collector-node-card.online {
  border-color: rgba(31, 188, 130, 0.36);
  box-shadow: 0 16px 34px rgba(31, 188, 130, 0.12);
}

.collector-node-card.offline {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 16px 34px rgba(239, 68, 68, 0.1);
}

.collector-node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.collector-node-head strong {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
  font-weight: 860;
  letter-spacing: -0.03em;
}

.collector-node-head p,
.collector-node-detail p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.collector-node-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7b8190;
  background: rgba(144, 151, 164, 0.12);
  font-size: 13px;
  font-weight: 820;
}

.collector-node-card.online .collector-node-status {
  color: #08795a;
  background: rgba(31, 188, 130, 0.14);
}

.collector-node-card.offline .collector-node-status {
  color: #b42318;
  background: rgba(239, 68, 68, 0.12);
}

.collector-node-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.collector-node-metrics span {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 700;
}

.collector-node-metrics b {
  color: #202632;
  font-size: 18px;
  font-weight: 850;
}

.collector-node-detail {
  display: grid;
  gap: 5px;
}

.collector-node-error {
  color: #b42318 !important;
}

@media (max-width: 1420px) {
  .admin-static-dashboard {
    grid-template-columns: 1fr;
  }

  .admin-static-sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .admin-static-nav {
    grid-template-columns: repeat(7, max-content);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .admin-static-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-static-nav a {
    white-space: nowrap;
  }

  .admin-static-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-static-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding: 12px 0 36px;
  }

  .site-nav {
    align-items: flex-start;
    padding: 12px;
    border-radius: 20px;
  }

  .site-brand {
    font-size: 16px;
  }

  .site-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .site-nav-actions {
    gap: 7px;
  }

  .site-nav-link,
  .site-nav-button,
  .site-primary-button,
  .site-secondary-button {
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .site-hero-section,
  .site-split-section,
  .site-pricing,
  .site-feature-grid {
    grid-template-columns: 1fr;
  }

  .site-hero-section {
    gap: 20px;
    padding: 22px;
    border-radius: 26px;
  }

  .site-hero-copy h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .site-subtitle {
    font-size: 15px;
  }

  .site-dashboard-card {
    padding: 14px;
    border-radius: 24px;
  }

  .site-metric-grid {
    grid-template-columns: 1fr;
  }

  .site-feature-grid article,
  .site-split-section,
  .site-pricing {
    border-radius: 22px;
  }

  .admin-static-frame {
    padding: 8px;
    border-radius: 24px;
  }

  .admin-static-dashboard {
    gap: 14px;
    min-height: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .admin-static-sidebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 4px 0 2px;
  }

  .admin-static-logo {
    width: 38px;
    height: 38px;
    margin-left: 0;
    border-radius: 12px;
  }

  .admin-static-nav {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 0 2px 6px;
  }

  .admin-static-nav a {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 13px;
  }

  .admin-static-nav svg {
    width: 16px;
    height: 16px;
  }

  .admin-static-main {
    gap: 14px;
  }

  .admin-static-topbar,
  .admin-static-title-row {
    display: grid;
    gap: 12px;
  }

  .admin-static-title-row {
    gap: 8px;
  }

  .admin-static-title-row h1 {
    font-size: 21px;
  }

  .admin-static-refresh {
    gap: 8px;
    font-size: 12px;
  }

  .admin-static-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-static-filter {
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .admin-static-metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-static-metric-card {
    min-height: 168px;
    padding: 18px 18px 14px;
    border-radius: 16px;
  }

  .admin-static-metric-head {
    margin-bottom: 12px;
  }

  .admin-static-metric-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .admin-static-metric-icon.purple {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .admin-static-metric-head h2 {
    font-size: 15px;
  }

  .admin-static-metric-value {
    margin-bottom: 12px;
    font-size: 34px;
  }

  .admin-static-metric-change,
  .admin-static-ai-meta div {
    font-size: 13px;
  }

  .admin-static-spark {
    right: 16px;
    bottom: 8px;
    left: 54%;
    height: 54px;
  }

  .admin-static-ai-state {
    margin: 10px 0 16px;
    font-size: 27px;
  }

  .admin-static-ai-meta {
    gap: 10px;
  }

  .admin-static-lower {
    gap: 12px;
  }

  .admin-static-panel {
    border-radius: 16px;
  }

  .admin-static-panel-head {
    display: grid;
    gap: 10px;
    padding: 16px 16px 8px;
  }

  .admin-static-panel-head h2 {
    font-size: 18px;
  }

  .admin-static-tabs {
    width: 100%;
  }

  .admin-static-tabs span {
    flex: 1;
    min-width: 0;
    padding: 7px 8px;
    font-size: 12px;
  }

  .admin-static-tabs button {
    flex: 1;
    min-width: 0;
    padding: 7px 8px;
    font-size: 12px;
  }

  .admin-static-trend {
    height: 240px;
    padding: 8px 12px 18px 8px;
    overflow: hidden;
  }

  .admin-static-trend-tooltip {
    left: 44%;
    top: 88px;
    width: 126px;
    padding: 12px;
  }

  .admin-static-trend-tooltip span {
    font-size: 13px;
  }

  .admin-static-trend-tooltip b {
    font-size: 12px;
  }

  .admin-static-trend-note {
    position: static;
    max-width: none;
    margin: 8px 6px 0;
    border-radius: 12px;
  }

  .admin-static-alerts,
  .admin-static-live-list {
    padding: 8px 10px 14px;
  }

  .admin-static-alert-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 62px;
  }

  .admin-static-alert-row time {
    grid-column: 2;
    font-size: 12px;
  }

  .admin-static-alert-icon {
    width: 36px;
    height: 36px;
  }

  .admin-static-live-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    min-height: 64px;
  }

  .admin-static-thumb {
    width: 58px;
    height: 48px;
  }

  .admin-static-viewer {
    grid-column: 2;
    justify-content: flex-start;
    font-size: 13px;
  }

  .admin-static-alert-row strong,
  .admin-static-live-row h3 {
    font-size: 14px;
  }

  .admin-static-alert-row p,
  .admin-static-live-row p,
  .admin-static-link {
    font-size: 12px;
  }

  .admin-full-live-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .admin-full-metrics {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-live-actions {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }

  .admin-target-collector {
    width: 100%;
  }

  .admin-live-home-link {
    justify-self: stretch;
  }

  .collector-node-grid {
    grid-template-columns: 1fr;
  }

  .collector-node-metrics {
    grid-template-columns: 1fr;
  }
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: var(--muted);
  font-size: 14px;
}

.pack-grid strong {
  color: var(--ink);
  font-size: 14px;
}

.billing-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.billing-price strong {
  font-size: 42px;
}

.billing-price span,
.billing-meta {
  color: var(--muted);
}

.billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

.member-plan-card,
.plan-stats,
.plan-packs {
  display: grid;
  gap: 14px;
}

.billing-status-head strong {
  font-size: 20px;
}

.plan-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-stat {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.plan-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.plan-stat strong {
  font-size: 28px;
  color: var(--ink);
}

.plan-packs summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.member-packs-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.targets-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(10px);
  animation: rise 0.55s ease both;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 250, 242, 0.94)),
    var(--card);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 54px rgba(66, 42, 18, 0.12);
}

.target-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: rgba(122, 109, 96, 0.28);
}

.target-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(44, 93, 125, 0.1), transparent 66%);
  pointer-events: none;
}

.target-card.is-live {
  background:
    radial-gradient(circle at top right, rgba(199, 79, 43, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(199, 79, 43, 0.08), rgba(255, 250, 242, 0.97)),
    var(--card);
}

.target-card.is-live::before {
  background: linear-gradient(180deg, #d85731, #f0a15f);
}

.target-card.is-idle {
  opacity: 0.94;
}

.target-head,
.target-metrics,
.event-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.target-head {
  position: relative;
  z-index: 1;
  align-items: center;
  padding-left: 4px;
  min-height: 38px;
}

.ai-status-line {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 10px;
  position: relative;
  z-index: 1;
  background: rgba(44, 93, 125, 0.09);
  color: #2c5d7d;
  font-size: var(--text-xs);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.ai-status-line.warn {
  background: rgba(199, 79, 43, 0.12);
  color: var(--accent);
}

.ai-status-line.ok {
  background: rgba(31, 122, 77, 0.1);
  color: var(--ok);
}

.target-head p {
  margin: 3px 0 0;
  font-size: var(--text-xs);
  line-height: 1.15;
}

.target-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.title-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  min-width: 0;
}

.title-row h3 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(14px, 1.45vw, 17px);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.mini-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(26, 23, 20, 0.06);
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgba(199, 79, 43, 0.18);
  background: rgba(199, 79, 43, 0.12);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
}

.is-idle .badge {
  border-color: rgba(122, 109, 96, 0.18);
  background: rgba(122, 109, 96, 0.12);
  color: var(--idle);
}

.target-metrics div {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 13px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 251, 245, 0.44));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.target-metrics span {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  margin-bottom: 7px;
  font-weight: 700;
}

.target-metrics strong {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.trend-box {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(26, 23, 20, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 251, 245, 0.62));
}

.trend-head,
.trend-stats,
.detail-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trend-head span,
.trend-stats span,
.detail-chart-head span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.trend-stats {
  flex-wrap: wrap;
}

.health-chip {
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(122, 109, 96, 0.12);
  color: var(--idle);
  font-size: var(--text-xs);
}

.health-chip.ok {
  background: rgba(31, 122, 77, 0.12);
  color: var(--ok);
}

.health-chip.warn {
  background: rgba(199, 79, 43, 0.14);
  color: var(--accent);
}

.sparkline-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 6px;
  min-height: 86px;
}

.sparkline-plot {
  position: relative;
  display: grid;
  grid-template-rows: 64px 16px;
  min-width: 0;
}

.sparkline {
  width: 100%;
  height: 64px;
  overflow: hidden;
}

.sparkline-grid {
  stroke: rgba(26, 23, 20, 0.1);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.sparkline-time-grid {
  stroke: rgba(26, 23, 20, 0.08);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}

.sparkline-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 0 6px;
  color: rgba(102, 88, 75, 0.78);
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.sparkline-current-label {
  position: absolute;
  right: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 250, 242, 0.86);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(66, 42, 18, 0.08);
}

.sparkline-time-axis {
  position: relative;
  height: 16px;
  margin-top: 1px;
  color: rgba(102, 88, 75, 0.72);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}

.sparkline-time-axis span {
  position: absolute;
  top: 3px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.sparkline-time-axis .axis-note,
.comparison-time-axis .axis-note {
  right: 0;
  left: auto !important;
  transform: none;
  color: rgba(102, 88, 75, 0.68);
  font-size: 10px;
  font-weight: 650;
}

.sparkline-legend {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(102, 88, 75, 0.7);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.sparkline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sparkline-legend i {
  display: inline-block;
  width: 11px;
  height: 5px;
  border-radius: 999px;
}

.sparkline-legend .line {
  background: var(--accent);
}

.sparkline-legend .bar {
  background: rgba(232, 139, 43, 0.48);
}

.sparkline-comment-bar {
  fill: rgba(232, 139, 43, 0.28);
  stroke: rgba(232, 139, 43, 0.34);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.sparkline-comment-labels {
  position: absolute;
  inset: 0 0 16px;
  pointer-events: none;
}

.sparkline-comment-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: rgba(174, 86, 22, 0.88);
  font-family: var(--font-main);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 250, 242, 0.95),
    1px 0 0 rgba(255, 250, 242, 0.85),
    -1px 0 0 rgba(255, 250, 242, 0.85),
    0 -1px 0 rgba(255, 250, 242, 0.85);
}

.sparkline-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sparkline-dot {
  fill: #fffaf3;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.sparkline-empty {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(26, 23, 20, 0.04);
}

.alert-digest {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(199, 79, 43, 0.16);
  background: linear-gradient(180deg, rgba(199, 79, 43, 0.09), rgba(199, 79, 43, 0.055));
}

.alert-digest.is-quiet {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(31, 122, 77, 0.07), rgba(31, 122, 77, 0.045));
}

.alert-digest span {
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 700;
}

.alert-digest strong {
  min-width: 0;
  font-size: var(--text-sm);
  color: var(--ink);
}

.alert-digest-list {
  display: grid;
  gap: 5px;
}

.alert-digest-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
}

.target-footer p {
  margin: 0;
  line-height: 1.5;
  font-size: var(--text-md);
}

.target-section {
  display: grid;
  gap: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-head h3 {
  margin: 0;
}

.section-meta {
  color: var(--muted);
  font-size: 13px;
}

.paused-section {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.paused-section summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.paused-section summary::-webkit-details-marker {
  display: none;
}

.paused-grid {
  margin-top: 14px;
}

.target-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.target-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 23, 20, 0.07);
}

.target-actions .ghost-button,
.target-actions .ghost-link {
  background: rgba(255, 251, 245, 0.66);
}

.ghost-button,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 251, 245, 0.74);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.ghost-button:hover,
.ghost-link:hover {
  background: rgba(199, 79, 43, 0.08);
  border-color: rgba(199, 79, 43, 0.25);
  transform: translateY(-1px);
}

.buy-page-button {
  border-color: rgba(173, 62, 29, 0.36);
  background: linear-gradient(135deg, #cd5b35, #ad3e1d);
  color: #fffaf3;
  box-shadow: 0 10px 18px rgba(173, 62, 29, 0.18);
}

.buy-page-button:hover {
  border-color: rgba(173, 62, 29, 0.48);
  background: linear-gradient(135deg, #d8663e, #b74422);
}

.danger-button {
  color: var(--ink);
}

.switch-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 7px 10px;
  background: rgba(255, 251, 245, 0.74);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.switch-button:hover {
  border-color: rgba(199, 79, 43, 0.25);
  transform: translateY(-1px);
}

.switch-button.is-on {
  border-color: rgba(31, 122, 77, 0.2);
  background: rgba(31, 122, 77, 0.1);
  color: var(--ok);
}

.switch-button.is-off {
  border-color: rgba(122, 109, 96, 0.18);
  background: rgba(122, 109, 96, 0.12);
  color: var(--idle);
}

.small-text {
  font-size: 12px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-row {
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.8);
}

.event-row strong,
.event-row p,
.event-row time {
  margin: 0;
}

.event-stats {
  display: flex;
  gap: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.empty-state,
.error-text {
  color: var(--accent);
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(26, 23, 20, 0.34);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  width: min(1240px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 250, 242, 0.98);
  box-shadow: 0 28px 90px rgba(26, 23, 20, 0.22);
  padding: 28px;
  font-family: var(--font-main);
}

.modal-card h2,
.modal-card h3,
.modal-card strong {
  font-family: inherit;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.92);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.detail-shell {
  display: grid;
  gap: 16px;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-right: 42px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 128, 104, 0.18);
}

.detail-head h2,
.detail-head p {
  margin: 0;
}

.detail-head h2 {
  max-width: 760px;
  margin-top: 4px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.detail-head p:not(.eyebrow) {
  color: var(--muted);
}

.detail-head-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.detail-head-actions .badge,
.detail-head-actions .health-chip {
  height: 32px;
  white-space: nowrap;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.6fr);
  gap: 12px;
}

.detail-status-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(122, 109, 96, 0.08);
}

.detail-status-card.ok {
  background: rgba(31, 122, 77, 0.08);
  border-color: rgba(31, 122, 77, 0.18);
}

.detail-status-card.warn {
  background: rgba(199, 79, 43, 0.09);
  border-color: rgba(199, 79, 43, 0.2);
}

.detail-status-card span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 800;
}

.detail-status-card strong {
  font-size: var(--num-md);
  font-weight: 680;
}

.detail-status-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-stats div {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.detail-stats span,
.sample-row span,
.sample-row time {
  color: var(--muted);
  font-size: var(--text-sm);
}

.detail-stats strong {
  font-size: var(--num-md);
  letter-spacing: -0.02em;
  font-weight: 650;
}

.key-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.key-metric-card {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: start;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.key-metric-card.ok {
  border-color: rgba(31, 122, 77, 0.18);
  background: rgba(31, 122, 77, 0.07);
}

.key-metric-card.warn {
  border-color: rgba(199, 79, 43, 0.2);
  background: rgba(199, 79, 43, 0.08);
}

.key-metric-card span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.key-metric-card strong {
  font-size: var(--num-md);
  letter-spacing: -0.02em;
  font-weight: 650;
}

.key-metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.detail-chart {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.72);
}

.detail-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.detail-chart-head strong {
  font-size: var(--text-md);
  font-weight: 800;
}

.detail-chart-head span {
  color: var(--muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.comment-insight-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(199, 79, 43, 0.16);
  background:
    linear-gradient(135deg, rgba(255, 247, 235, 0.9), rgba(255, 255, 255, 0.68)),
    rgba(255, 251, 245, 0.76);
}

.comment-insight-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.comment-insight-stats div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.comment-insight-stats span,
.comment-row time,
.comment-user-row span,
.comment-user-row small {
  color: var(--muted);
  font-size: var(--text-sm);
}

.comment-insight-stats strong {
  font-size: var(--num-md);
  font-weight: 650;
}

.comment-insight-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 14px;
  align-items: stretch;
}

.comment-insight-body h3 {
  margin: 0;
  font-size: var(--text-md);
}

.comment-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}

.comment-section-head span {
  color: var(--muted);
  font-size: var(--text-xs);
  white-space: nowrap;
}

.comment-insight-column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.comment-list,
.comment-user-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 300px;
  max-height: 300px;
  overflow: auto;
  padding-right: 2px;
}

.comment-row,
.comment-user-row {
  display: grid;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
}

.comment-row-head,
.comment-user-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.comment-row-head {
  display: grid;
  gap: 10px;
}

.comment-row strong,
.comment-user-row strong,
.comment-user-row a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-user-row a {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 750;
  text-decoration: none;
}

.comment-user-row a:hover {
  color: #c74f2b;
}

.comment-user-row small {
  display: block;
  grid-column: 1 / -1;
}

.comment-row p {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-sm);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comment-tags span,
.tag-cloud span,
.tag-cloud button {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(199, 79, 43, 0.09);
  color: #9d3c20;
  font-size: var(--text-xs);
  font-weight: 750;
}

.tag-cloud button {
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.tag-cloud button:hover,
.tag-cloud button.is-active {
  border-color: rgba(199, 79, 43, 0.26);
  background: rgba(199, 79, 43, 0.16);
  color: #7f2d17;
}

.tag-cloud {
  margin-bottom: 10px;
  min-height: 26px;
}

.comment-user-row.is-hidden-by-tag {
  display: none;
}

.health-panel {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(122, 109, 96, 0.08);
  margin-bottom: 18px;
}

.health-panel.ok {
  background: rgba(31, 122, 77, 0.08);
  border-color: rgba(31, 122, 77, 0.18);
}

.health-panel.warn {
  background: rgba(199, 79, 43, 0.09);
  border-color: rgba(199, 79, 43, 0.2);
}

.health-panel span {
  display: block;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: 5px;
}

.health-panel strong {
  font-size: var(--num-md);
  font-weight: 650;
}

.health-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-chart .sparkline {
  height: 126px;
}

.detail-chart .sparkline-wrap {
  min-height: 132px;
}

.comparison-chart {
  display: grid;
  gap: 10px;
}

.comparison-chart-body {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  padding-bottom: 18px;
}

.comparison-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 0 34px;
  color: rgba(102, 88, 75, 0.78);
  font-size: var(--text-xs);
  font-weight: 800;
  line-height: 1;
}

.comparison-sparkline {
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.comparison-time-axis {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 42px;
  height: 16px;
  color: rgba(102, 88, 75, 0.72);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.comparison-time-axis span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.comparison-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
  vector-effect: non-scaling-stroke;
}

.comparison-line.trend-a,
.comparison-legend i.trend-a {
  stroke: #c74f2b;
  background: #c74f2b;
}

.comparison-line.trend-b,
.comparison-legend i.trend-b {
  stroke: #2c5d7d;
  background: #2c5d7d;
}

.comparison-line.trend-c,
.comparison-legend i.trend-c {
  stroke: #1f7a4d;
  background: #1f7a4d;
}

.comparison-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 650;
}

.comparison-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comparison-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.comparison-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.detail-columns h3 {
  margin: 0 0 10px;
  font-size: var(--text-md);
  font-weight: 800;
}

.detail-list-panel {
  min-width: 0;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 245, 0.68);
}

.sample-list {
  display: grid;
  gap: 7px;
  max-height: 280px;
  overflow: auto;
  padding-right: 2px;
}

.sample-row {
  display: grid;
  grid-template-columns: 76px 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.sample-row strong {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.45;
  word-break: break-word;
}

.timeline-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(199, 79, 43, 0.16);
  background: rgba(199, 79, 43, 0.07);
}

.timeline-row time {
  color: var(--muted);
  font-size: var(--text-sm);
}

.timeline-row strong,
.timeline-row p {
  margin: 0;
}

.timeline-row strong {
  font-size: var(--text-sm);
  font-weight: 650;
}

.timeline-row p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.quiet-text {
  color: var(--muted);
}

@media (max-width: 980px) {
  .detail-hero-grid,
  .detail-chart-grid,
  .comment-insight-body,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .detail-stats,
  .key-metrics-grid,
  .comment-insight-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-list,
  .comment-user-list {
    min-height: 240px;
    max-height: 240px;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 22px;
  }

  .hero,
  .panel-head,
  .target-head,
  .event-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    display: flex;
    gap: 16px;
    flex-direction: column;
    padding: 20px;
    border-radius: 26px;
  }

  .hero::after {
    display: none;
  }

  .hero-bulletin {
    width: 100%;
    min-width: 0;
  }

  .hero-capabilities {
    gap: 6px;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .account-strip,
  .hero-links {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .account-strip,
  .hero-links {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .target-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .targets-grid {
    grid-template-columns: 1fr;
  }

  .target-metrics div {
    min-width: 0;
    padding-top: 10px;
  }

  .target-metrics span {
    margin-bottom: 6px;
    font-size: var(--text-xs);
  }

  .target-metrics strong {
    font-size: 18px;
    line-height: 1.1;
  }

  .trend-stats span {
    font-size: var(--text-xs);
  }

  .console-grid {
    grid-template-columns: 1fr;
  }

  .target-form {
    grid-template-columns: 1fr;
  }

  .target-form.compact {
    grid-template-columns: 1fr;
  }

  .live-page-shop-head,
  .live-page-admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-summary {
    align-items: flex-start;
  }

  .product-options,
  .live-page-form-grid,
  .live-page-deliver-form {
    grid-template-columns: 1fr;
  }

  .overview-meta {
    align-items: flex-start;
  }

  .summary-inline {
    text-align: left;
    justify-content: flex-start;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }

  .admin-hero {
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 26px;
  }

  .admin-watchboard {
    grid-template-columns: 1fr;
  }

  .admin-side-nav {
    position: static;
    min-height: auto;
  }

  .admin-side-nav nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ops-layout {
    grid-template-columns: 1fr;
  }

  .admin-trend-panel {
    grid-row: auto;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .plan-stats,
  .pack-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 18px;
    border-radius: 24px;
    width: min(100%, 760px);
  }

  .detail-head,
  .detail-columns {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .detail-head {
    padding-right: 0;
  }

  .detail-head-actions {
    justify-content: flex-start;
  }

  .health-panel {
    grid-template-columns: 1fr;
  }

  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .key-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-insight-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-insight-body {
    grid-template-columns: 1fr;
  }

  .sample-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .sample-row strong {
    grid-column: 1 / -1;
  }
}
