:root {
  --ink: #f8fbff;
  --muted: rgba(242, 246, 255, 0.72);
  --dim: rgba(222, 232, 247, 0.46);
  --line: rgba(116, 206, 255, 0.28);
  --panel: rgba(16, 16, 22, 0.84);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --cyan: #63dcff;
  --mint: #9cf8ff;
  --rose: #c8b7ff;
  --gold: #f9d48b;
  --danger: #ff6b91;
  --neon-border: linear-gradient(120deg, rgba(223, 216, 255, 0.95), rgba(110, 221, 255, 0.7) 48%, rgba(0, 145, 255, 0.95));
  --neon-border-soft: linear-gradient(120deg, rgba(223, 216, 255, 0.5), rgba(110, 221, 255, 0.34) 48%, rgba(0, 145, 255, 0.58));
  --button-glow-border:
    radial-gradient(circle at 12% 48%, rgba(200, 183, 255, 0.98) 0 16%, transparent 34%),
    radial-gradient(circle at 38% 18%, rgba(99, 220, 255, 0.98) 0 18%, transparent 36%),
    radial-gradient(circle at 74% 70%, rgba(0, 145, 255, 0.96) 0 17%, transparent 36%),
    radial-gradient(circle at 104% 34%, rgba(142, 246, 196, 0.9) 0 18%, transparent 36%),
    linear-gradient(90deg, rgba(200, 183, 255, 0.48), rgba(99, 220, 255, 0.58), rgba(0, 145, 255, 0.46));
  --surface-fill: linear-gradient(145deg, rgba(29, 29, 36, 0.92), rgba(12, 13, 18, 0.9));
  --surface-fill-soft: linear-gradient(145deg, rgba(29, 29, 36, 0.76), rgba(10, 11, 16, 0.72));
  --neon-shadow: 0 0 24px rgba(79, 195, 255, 0.18), 0 0 52px rgba(162, 132, 255, 0.08);
  --radius-panel: 24px;
  --radius-card: 20px;
  --radius-inner: 16px;
  --radius-control: 999px;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 0%, rgba(187, 174, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(0, 146, 255, 0.22), transparent 32%),
    radial-gradient(circle at 52% 92%, rgba(99, 220, 255, 0.09), transparent 34%),
    #020204;
  background-attachment: fixed;
}

@keyframes buttonBorderSweep {
  0% {
    background-position:
      0% 48%,
      38% 18%,
      86% 78%,
      118% 34%,
      0 0;
  }

  50% {
    background-position:
      58% 18%,
      4% 88%,
      54% 32%,
      74% 96%,
      0 0;
  }

  100% {
    background-position:
      108% 64%,
      64% 82%,
      6% 26%,
      26% 18%,
      0 0;
  }
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  line-height: 1;
  text-align: center;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none !important;
}

.admin-app {
  width: min(1400px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.admin-top,
.panel,
.login-card,
.section-tabs {
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  background:
    var(--surface-fill) padding-box,
    var(--neon-border-soft) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--neon-shadow),
    0 24px 80px rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(22px) saturate(1.16);
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.96), transparent 15%),
    linear-gradient(135deg, var(--rose), var(--cyan) 54%, #008fff);
  box-shadow: 0 0 26px rgba(99, 220, 255, 0.42);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small,
.eyebrow,
.panel-head span,
.session-pill,
.import-drop span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.top-actions,
.toolbar,
.batch-bar,
.panel-head,
.section-head,
.section-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ghost-button,
.primary-button,
.tab-button,
.batch-bar button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 18px;
  color: rgba(248, 251, 255, 0.82);
  background:
    linear-gradient(90deg, rgba(29, 29, 35, 0.94), rgba(14, 15, 20, 0.92)) padding-box,
    var(--neon-border-soft) border-box;
  box-shadow: 0 0 18px rgba(77, 193, 255, 0.08);
  text-decoration: none;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  line-height: 1;
  overflow: hidden;
  position: relative;
  text-align: center;
  white-space: nowrap;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.ghost-button::before,
.primary-button::before,
.tab-button::before,
.batch-bar button::before,
.row-actions button::before,
.file-picker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 2.5px;
  background: var(--button-glow-border);
  background-position:
    0% 48%,
    38% 18%,
    86% 78%,
    118% 34%,
    0 0;
  background-size:
    170% 170%,
    160% 160%,
    180% 180%,
    165% 165%,
    100% 100%;
  filter: drop-shadow(0 0 10px rgba(99, 220, 255, 0.7));
  opacity: 0;
  pointer-events: none;
  animation: buttonBorderSweep 4.8s ease-in-out infinite alternate;
  transition: opacity 160ms ease;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.ghost-button:hover::before,
.primary-button:hover::before,
.tab-button:hover::before,
.batch-bar button:hover::before,
.row-actions button:hover::before,
.file-picker:hover::before,
.file-input:focus-visible + .file-picker::before {
  opacity: 1;
  animation-play-state: running;
}

button:disabled::before {
  opacity: 0 !important;
  animation-play-state: paused !important;
}

.primary-button,
.tab-button.active {
  background:
    linear-gradient(90deg, rgba(36, 36, 43, 0.96), rgba(17, 18, 24, 0.95)) padding-box,
    var(--neon-border) border-box;
  color: var(--ink);
  box-shadow:
    0 0 18px rgba(99, 220, 255, 0.28),
    0 0 42px rgba(162, 132, 255, 0.14);
}

.ghost-button:hover,
.primary-button:hover,
.tab-button:hover,
.batch-bar button:hover,
.row-actions button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 20px rgba(99, 220, 255, 0.3),
    0 0 44px rgba(162, 132, 255, 0.14);
}

.danger-button {
  --button-glow-border:
    radial-gradient(circle at 12% 48%, rgba(255, 221, 232, 0.98) 0 16%, transparent 34%),
    radial-gradient(circle at 38% 18%, rgba(255, 107, 145, 0.98) 0 18%, transparent 36%),
    radial-gradient(circle at 74% 70%, rgba(249, 212, 139, 0.92) 0 17%, transparent 36%),
    radial-gradient(circle at 104% 34%, rgba(255, 143, 189, 0.88) 0 18%, transparent 36%),
    linear-gradient(90deg, rgba(255, 221, 232, 0.46), rgba(255, 107, 145, 0.56), rgba(249, 212, 139, 0.42));
  background:
    linear-gradient(90deg, rgba(35, 17, 24, 0.96), rgba(18, 12, 17, 0.95)) padding-box,
    linear-gradient(120deg, rgba(255, 199, 216, 0.78), rgba(255, 107, 145, 0.92)) border-box !important;
}

.session-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 12px;
  background:
    linear-gradient(90deg, rgba(29, 29, 35, 0.9), rgba(12, 13, 18, 0.88)) padding-box,
    var(--neon-border-soft) border-box;
}

.login-view {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(420px, calc(100vw - 40px));
  display: grid;
  gap: 16px;
  padding: 24px;
}

h1,
h2 {
  margin: 0;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

input,
select {
  min-height: 38px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 15px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(18, 18, 24, 0.94), rgba(10, 11, 16, 0.92)) padding-box,
    linear-gradient(120deg, rgba(223, 216, 255, 0.28), rgba(99, 220, 255, 0.24), rgba(0, 145, 255, 0.36)) border-box;
  outline: none;
}

select {
  color-scheme: dark;
}

select option {
  color: var(--ink);
  background: #11131a;
}

select option:checked,
select option:hover {
  color: #ffffff;
  background: #213142;
}

input:focus,
select:focus {
  box-shadow:
    0 0 0 1px rgba(99, 220, 255, 0.18),
    0 0 24px rgba(99, 220, 255, 0.18);
}

input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--cyan);
}

input[type="color"] {
  padding: 4px;
}

.dashboard-view {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.section-tabs {
  justify-content: flex-start;
  padding: 8px;
}

.workspace-section {
  display: grid;
  gap: 16px;
}

.section-head {
  justify-content: space-between;
  margin-top: 6px;
}

.head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auto-refresh {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 12px;
  color: rgba(248, 251, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(22, 22, 29, 0.92), rgba(10, 11, 16, 0.92)) padding-box,
    var(--neon-border-soft) border-box;
  font-size: 12px;
  font-weight: 850;
}

.dashboard-livebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 12px 14px;
  background:
    var(--surface-fill-soft) padding-box,
    var(--neon-border-soft) border-box;
  box-shadow: var(--neon-shadow);
  backdrop-filter: blur(18px);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.live-status strong,
.live-status small {
  display: block;
}

.live-status small {
  margin-top: 2px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 760;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(142, 246, 196, 0.36);
  animation: livePulse 1.8s ease-out infinite;
}

.refresh-meter {
  display: grid;
  grid-template-columns: auto minmax(140px, 220px);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.refresh-meter div {
  height: 9px;
  border-radius: var(--radius-control);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.refresh-meter i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint), var(--rose));
  transition: width 220ms linear;
}

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

.metric-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(31, 31, 38, 0.88), rgba(11, 12, 17, 0.86)) padding-box,
    var(--neon-border-soft) border-box;
  box-shadow: 0 0 22px rgba(99, 220, 255, 0.08);
}

.metric-card::after {
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 3px;
  content: "";
  border-radius: var(--radius-control);
  background: linear-gradient(90deg, var(--cyan), var(--mint), var(--rose));
  opacity: 0.68;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.dashboard-grid,
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 16px;
}

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

.wide-panel {
  grid-column: 1 / -1;
}

.panel {
  padding: 16px;
}

.panel-head,
.section-head {
  justify-content: space-between;
}

.bar-list,
.tag-cloud,
.preview-cache {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--cyan), #008fff);
  box-shadow: 0 0 16px rgba(99, 220, 255, 0.34);
  transition: width 380ms ease;
}

.visual-panel {
  min-height: 290px;
}

.donut-layout {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.category-donut {
  width: 172px;
  aspect-ratio: 1;
  border: 1px solid rgba(99, 220, 255, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(16, 24, 38, 0.96) 0 48%, transparent 49%),
    conic-gradient(var(--cyan) 0deg, var(--mint) 160deg, var(--rose) 260deg, var(--gold) 360deg);
  box-shadow:
    inset 0 0 40px rgba(255, 255, 255, 0.07),
    0 0 32px rgba(99, 220, 255, 0.14),
    0 18px 48px rgba(0, 0, 0, 0.34);
  transition: background 420ms ease;
}

.sparkline {
  width: 100%;
  min-height: 126px;
  margin-top: 10px;
  overflow: visible;
}

.sparkline path.area {
  fill: rgba(103, 232, 255, 0.12);
}

.sparkline path.line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(103, 232, 255, 0.34));
}

.micro-grid,
.quality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stat-tile,
.quality-card,
.rank-item {
  border: 1px solid transparent;
  border-radius: var(--radius-inner);
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(24, 24, 31, 0.88), rgba(9, 10, 15, 0.82)) padding-box,
    linear-gradient(120deg, rgba(223, 216, 255, 0.28), rgba(99, 220, 255, 0.18), rgba(0, 145, 255, 0.32)) border-box;
}

.stat-tile span,
.quality-card span,
.rank-item small {
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
}

.stat-tile strong,
.quality-card strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.quality-card.warn strong {
  color: var(--gold);
}

.quality-card.good strong {
  color: var(--mint);
}

.rank-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.rank-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-score {
  min-width: 58px;
  border-radius: var(--radius-control);
  padding: 5px 9px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(26, 26, 33, 0.94), rgba(12, 13, 18, 0.92)) padding-box,
    var(--neon-border-soft) border-box;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.analytics-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.analytics-columns small {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.distribution-list {
  display: grid;
  gap: 8px;
}

.distribution-list.compact {
  margin-top: 10px;
}

.distribution-item {
  display: grid;
  grid-template-columns: minmax(70px, 0.62fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.distribution-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-table-wrap {
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
}

.visitor-table {
  min-width: 920px;
}

.visitor-table code {
  border: 1px solid rgba(99, 220, 255, 0.24);
  border-radius: 999px;
  padding: 4px 7px;
  color: var(--mint);
  background: rgba(99, 220, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 10px rgba(142, 246, 196, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 246, 196, 0);
  }
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
}

.tag-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 10px;
  color: rgba(248, 251, 255, 0.78);
  background:
    linear-gradient(90deg, rgba(25, 25, 31, 0.92), rgba(12, 13, 18, 0.88)) padding-box,
    linear-gradient(120deg, rgba(223, 216, 255, 0.28), rgba(99, 220, 255, 0.24), rgba(0, 145, 255, 0.32)) border-box;
  font-size: 12px;
  font-weight: 800;
}

.toolbar,
.batch-bar {
  flex-wrap: wrap;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 10px;
  background:
    var(--surface-fill-soft) padding-box,
    var(--neon-border-soft) border-box;
  box-shadow: 0 0 22px rgba(99, 220, 255, 0.08);
}

.toolbar input {
  max-width: 360px;
}

.toolbar select {
  max-width: 180px;
}

.local-upload-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 0.55fr) minmax(150px, 0.4fr) auto;
  align-items: center;
  gap: 12px;
}

.local-upload-panel strong,
.local-upload-panel span {
  display: block;
}

.local-upload-panel span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.batch-bar {
  color: var(--muted);
  font-size: 13px;
}

.check-inline {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.table-panel {
  overflow: auto;
}

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

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 9px;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.data-table td {
  color: rgba(248, 251, 255, 0.82);
  font-size: 13px;
}

.data-table .empty-cell {
  padding: 28px 18px;
  color: var(--dim);
  text-align: center;
  font-weight: 850;
}

.site-name {
  display: grid;
  gap: 3px;
}

.site-name small {
  color: var(--dim);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  line-height: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(25, 25, 31, 0.94), rgba(12, 13, 18, 0.92)) padding-box,
    var(--neon-border-soft) border-box;
}

.editor-panel {
  align-self: start;
}

.stack-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.form-card {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(99, 220, 255, 0.22);
  border-radius: var(--radius-inner);
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.form-card legend {
  padding: 0 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.form-card small {
  color: var(--dim);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.5;
}

.permission-panel {
  display: grid;
  gap: 12px;
}

.permission-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  justify-content: start;
}

.permission-site-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.permission-site {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(99, 220, 255, 0.18);
  border-radius: var(--radius-inner);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.035);
}

.permission-site .site-name {
  min-width: 0;
}

.permission-site .site-name strong,
.permission-site .site-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.import-panel {
  display: grid;
  gap: 14px;
}

.bookmark-converter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 12px;
  background:
    var(--surface-fill-soft) padding-box,
    var(--neon-border-soft) border-box;
  box-shadow: 0 0 22px rgba(99, 220, 255, 0.08);
}

.bookmark-converter strong,
.bookmark-converter span {
  display: block;
}

.bookmark-converter span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.import-drop {
  position: relative;
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 170px;
  border: 1px dashed rgba(99, 220, 255, 0.5);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 50% 0%, rgba(99, 220, 255, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.035);
  text-align: center;
}

.file-input {
  position: absolute;
  width: 1px !important;
  min-height: 1px;
  height: 1px;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.file-picker {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 24px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(36, 36, 43, 0.96), rgba(17, 18, 24, 0.95)) padding-box,
    var(--neon-border) border-box;
  box-shadow:
    0 0 18px rgba(99, 220, 255, 0.26),
    0 0 42px rgba(162, 132, 255, 0.12);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  isolation: isolate;
  line-height: 1;
  overflow: hidden;
  position: relative;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.file-picker:hover,
.file-input:focus-visible + .file-picker {
  transform: translateY(-1px);
  box-shadow:
    0 0 24px rgba(99, 220, 255, 0.34),
    0 0 54px rgba(162, 132, 255, 0.18);
}

#excelFileName {
  max-width: min(520px, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-error,
.toast {
  color: var(--rose);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 5;
  max-width: 360px;
  border: 1px solid transparent;
  border-radius: var(--radius-panel);
  padding: 12px 14px;
  background:
    var(--surface-fill) padding-box,
    var(--neon-border-soft) border-box;
  color: var(--ink);
  box-shadow:
    var(--neon-shadow),
    0 18px 44px rgba(0, 0, 0, 0.42);
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .admin-app {
    width: min(100vw - 24px, 760px);
  }

  .admin-top,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .dashboard-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-livebar,
  .donut-layout {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .category-donut {
    width: min(220px, 70vw);
    justify-self: center;
  }

  .micro-grid,
  .quality-grid,
  .analytics-columns,
  .bookmark-converter,
  .local-upload-panel,
  .permission-toolbar,
  .permission-site {
    grid-template-columns: 1fr;
  }
}
