:root {
  --bg: #f4efe5;
  --bg-ink: #171b21;
  --paper: rgba(255, 255, 255, 0.66);
  --paper-2: rgba(255, 255, 255, 0.84);
  --panel-line: rgba(23, 27, 33, 0.08);
  --panel-line-strong: rgba(23, 27, 33, 0.14);
  --ink: #191f27;
  --muted: #5d6775;
  --muted-2: #7a8390;
  --accent: #0f8a79;
  --accent-2: #ef6b3a;
  --accent-3: #1a6cff;
  --danger: #b0283c;
  --success: #1f8a4d;
  --warning: #b46d00;
  --shadow-sm: 0 8px 24px rgba(19, 24, 31, 0.07);
  --shadow: 0 18px 56px rgba(19, 24, 31, 0.12);
  --shadow-lg: 0 28px 90px rgba(19, 24, 31, 0.18);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --max-w: 100%;
  --font-sans: "Avenir Next", "Trebuchet MS", "Segoe UI Variable", "Noto Sans", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  max-width: 100%;
}

html {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 760px at -5% -10%, rgba(15, 138, 121, 0.14), transparent 72%),
    radial-gradient(980px 640px at 110% -5%, rgba(239, 107, 58, 0.16), transparent 70%),
    linear-gradient(180deg, #f5f1e7 0%, #efe9dc 36%, #ebe5da 100%);
  padding: 20px;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
}

body::before {
  opacity: 0.2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.8) 0 1px, transparent 1.2px),
    radial-gradient(circle at 60% 10%, rgba(255,255,255,0.45) 0 1px, transparent 1.2px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.55) 0 1px, transparent 1.2px);
  background-size: 26px 26px, 34px 34px, 30px 30px;
}

body::after {
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(255,255,255,0));
}

.bg-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.35;
  will-change: transform;
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-a {
  width: 380px;
  height: 380px;
  top: -110px;
  left: -90px;
  background: radial-gradient(circle at 35% 35%, rgba(15, 138, 121, 0.55), rgba(15, 138, 121, 0.08));
}

.orb-b {
  width: 420px;
  height: 420px;
  top: 10%;
  right: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(239, 107, 58, 0.5), rgba(239, 107, 58, 0.08));
  animation-delay: -6s;
}

.orb-c {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: 42%;
  background: radial-gradient(circle at 40% 40%, rgba(26, 108, 255, 0.36), rgba(26, 108, 255, 0.05));
  animation-delay: -10s;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 27, 33, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 27, 33, 0.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0));
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code,
input[type="text"],
input[type="url"],
input[type="password"],
textarea {
  font-family: var(--font-mono);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), 100%);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.shell.narrow {
  width: min(900px, 100%);
}

.shell.wide {
  width: min(1240px, 100%);
}

.home-shell {
  gap: 20px;
}

body[data-page="home"] .shell,
body[data-page="note"] .shell {
  width: 100%;
  max-width: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-motion .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.2,.8,.2,1);
}

.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-frame {
  width: 100%;
}

.page-main {
  min-width: 0;
}

.banner-rail {
  display: none;
}

.banner-rail-inner {
  display: grid;
  gap: 10px;
}

.banner-slot {
  position: relative;
  width: 468px;
  height: 60px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.5);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.banner-slot.has-banner {
  background: rgba(255,255,255,0.72);
}

.banner-slot-link,
.banner-slot-image {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-slot-image {
  object-fit: cover;
  background: rgba(255,255,255,0.85);
}

.banner-slot-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(23,27,33,0.72);
}

.banner-slot-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--muted);
  border: 1px dashed rgba(23,27,33,0.14);
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(23,27,33,0.03),
      rgba(23,27,33,0.03) 8px,
      rgba(255,255,255,0.16) 8px,
      rgba(255,255,255,0.16) 16px
    );
}

.banner-slot-placeholder span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.banner-slot-placeholder small {
  font-size: 10px;
  color: var(--muted-2);
}

.banner-admin-section {
  display: grid;
  gap: 12px;
}

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

.banner-admin-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(23,27,33,0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
  padding: 12px;
  min-width: 0;
}

.banner-admin-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.banner-admin-meta strong {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.banner-admin-preview {
  width: 100%;
  min-height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.7);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.banner-admin-preview img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}

.banner-admin-placeholder {
  width: 100%;
  min-height: 60px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--muted);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(23,27,33,0.03),
      rgba(23,27,33,0.03) 8px,
      rgba(255,255,255,0.16) 8px,
      rgba(255,255,255,0.16) 16px
    );
}

.hero {
  position: relative;
  display: grid;
  gap: 16px;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(140deg, rgba(255,255,255,0.7), rgba(255,255,255,0.55) 48%, rgba(255,255,255,0.48)),
    radial-gradient(700px 240px at 110% -10%, rgba(15,138,121,0.12), transparent 70%),
    radial-gradient(600px 220px at -10% 110%, rgba(239,107,58,0.12), transparent 70%);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px) saturate(120%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.45);
  mix-blend-mode: overlay;
}

.hero::after {
  background: linear-gradient(125deg, rgba(255,255,255,0.25), transparent 32%, transparent 68%, rgba(255,255,255,0.18));
  opacity: 0.8;
}

.hero-main {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.hero.compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.hero.split {
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--accent) 70%, #0c3a35);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 11px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 54px);
  text-wrap: balance;
}

.hero.compact h1 {
  font-size: clamp(26px, 4vw, 38px);
}

.hero .sub {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.hero .sub code {
  font-size: 0.9em;
  background: rgba(23,27,33,0.06);
  padding: 1px 4px;
  border-radius: 6px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(23,27,33,0.08);
  box-shadow: 0 4px 14px rgba(18,22,29,0.06);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.chip-muted,
.chip.chip-muted {
  background: rgba(255,255,255,0.62);
  color: var(--muted);
  font-weight: 600;
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.stat-tile {
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.76), rgba(255,255,255,0.56));
  border: 1px solid rgba(23,27,33,0.08);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 4px;
}

.stat-tile span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.stat-tile strong {
  font-size: 16px;
  line-height: 1.1;
}

.stat-tile small {
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.tab {
  appearance: none;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.16s ease, color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.tab:hover,
.tab:focus-visible {
  color: var(--ink);
  background: rgba(255,255,255,0.44);
  outline: none;
}

.tab.is-active {
  color: #fff;
  background: linear-gradient(130deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, #001820) 100%);
  box-shadow: 0 10px 24px rgba(15,138,121,0.28);
  transform: translateY(-1px);
}

.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.68), rgba(255,255,255,0.52));
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.38);
  pointer-events: none;
}

.panel-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-header-actions .btn {
  white-space: nowrap;
}

.panel-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.panel-sub {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 72ch;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #16342f;
  background: rgba(15,138,121,0.12);
  border: 1px solid rgba(15,138,121,0.22);
  white-space: nowrap;
}

.badge-accent {
  color: #4e210f;
  background: rgba(239,107,58,0.12);
  border-color: rgba(239,107,58,0.22);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 14px;
  align-items: start;
}

.workspace.workspace-links {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
}

.workspace.workspace-single {
  grid-template-columns: minmax(0, 1fr);
}

.catalog-links-pane,
.catalog-link-form-pane {
  min-width: 0;
}

.catalog-search-field {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.catalog-search-field > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.workspace.workspace-links > .catalog-links-pane {
  grid-column: 1 / -1;
}

.catalog-link-launch-pane {
  display: grid;
  gap: 10px;
  align-content: start;
}

.catalog-link-launch-pane .btn {
  width: 100%;
  justify-content: center;
}

.catalog-link-compose-wrap {
  position: fixed;
  inset: 0;
  z-index: 220;
  padding: 12px;
  background: rgba(2, 8, 8, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: auto;
  min-width: 0;
}

.catalog-link-compose-wrap.is-open {
  display: grid;
  align-items: start;
  justify-items: center;
}

.catalog-link-compose-wrap .form-card {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
}

.catalog-link-modal-card {
  box-shadow:
    0 0 0 1px rgba(34, 247, 166, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.46) !important;
}

body.has-modal-open {
  overflow: hidden;
}

.catalog-link-modal-card .panel-header.compact {
  position: sticky;
  top: -14px;
  z-index: 2;
  background: inherit;
  padding-top: 4px;
}

.panel-header.compact {
  gap: 10px;
  margin-bottom: 2px;
}

.panel-header.compact .panel-title {
  margin: 0;
  font-size: 18px;
}

.panel-header.compact .panel-sub {
  margin: 2px 0 0;
  font-size: 13px;
}

.admin-shell {
  gap: 14px;
}

.admin-tabs {
  margin-top: 2px;
}

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

.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.admin-card {
  display: grid;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid rgba(23,27,33,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.62), rgba(255,255,255,0.5));
  box-shadow: var(--shadow-sm);
  padding: 12px;
}

.admin-kv {
  display: grid;
  gap: 8px;
}

.admin-kv > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.07);
  background: rgba(255,255,255,0.5);
}

.admin-kv > div > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-kv > div > strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
  word-break: break-word;
}

.admin-actions-wrap {
  align-items: flex-start;
}

.inline-form {
  margin: 0;
}

.admin-list-controls {
  display: grid;
  gap: 10px;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.admin-filter-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-bulk-form {
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.admin-bulk-form select {
  min-width: 180px;
  max-width: 260px;
}

.bulk-check-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.42);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bulk-check-wrap input[type="checkbox"] {
  margin: 0;
  width: 14px;
  height: 14px;
}

.bulk-check-wrap span {
  line-height: 1;
}

.file-list li.is-filtered-out {
  display: none !important;
}

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

.tool-card {
  border-radius: 18px;
  border: 1px solid rgba(23,27,33,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(255,255,255,0.56));
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.tool-card-wide {
  grid-column: 1 / -1;
}

.tool-card-head h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.tool-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.form-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(23,27,33,0.06);
  background: rgba(255,255,255,0.54);
}

.side-card {
  border-radius: 18px;
  border: 1px solid rgba(23,27,33,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(255,255,255,0.52));
  padding: 14px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 10px;
}

.side-card-dark {
  color: #eaf0f4;
  background:
    linear-gradient(160deg, rgba(24, 30, 38, 0.92), rgba(24, 30, 38, 0.78)),
    radial-gradient(220px 150px at 100% 0%, rgba(15,138,121,0.26), transparent 70%);
  border-color: rgba(255,255,255,0.08);
}

.side-card h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.side-card-dark h3 {
  color: rgba(234,240,244,0.72);
}

.side-card p,
.side-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.side-card-dark p,
.side-card-dark li,
.side-card-dark .small-note {
  color: rgba(234,240,244,0.84);
}

.side-card code {
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 1px 4px;
}

.mini-steps,
.mini-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.mini-list.compact {
  gap: 4px;
}

.mini-list.compact strong {
  color: var(--ink);
}

.small-note {
  font-size: 12px;
  color: var(--muted-2);
}

.stack {
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  gap: 12px;
}

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

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
}

.inline-field input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.pwgen-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: end;
}

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

.strength-wrap {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.58);
}

.strength-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strength-label span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.strength-label strong {
  font-size: 12px;
  color: var(--ink);
  font-weight: 800;
}

.strength-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(23,27,33,0.08);
  overflow: hidden;
}

.strength-bar > div {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #db4f5c, #f29b38, #10a07c, #2f74ff);
  transition: width 0.15s linear;
}

.qr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pgp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.pgp-panel {
  border-radius: 14px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.54);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.pgp-panel h4 {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.tool-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.compact-stack {
  gap: 8px;
  align-content: start;
}

.field-label {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
}

.image-preview {
  border-radius: 14px;
  border: 1px solid rgba(23,27,33,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.72), rgba(255,255,255,0.56));
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 10px;
}

.image-preview-compact {
  min-height: 140px;
}

.image-preview img,
.image-preview canvas {
  display: block;
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(19,24,31,0.08);
}

.image-preview-compact canvas,
.image-preview-compact img {
  max-height: 180px;
}

.qr-output-wrap {
  border-radius: 14px;
  border: 1px solid rgba(23,27,33,0.08);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.72), rgba(255,255,255,0.56));
  padding: 14px;
}

.qr-output {
  display: grid;
  place-items: center;
  min-height: 180px;
}

.qr-output svg,
.qr-output img,
.qr-output canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(19,24,31,0.1);
  background: #fff;
}

label {
  display: grid;
  gap: 7px;
}

label > span {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.14);
  background: rgba(255,255,255,0.86);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

textarea {
  resize: vertical;
  min-height: 72px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.note-output {
  min-height: 280px;
  margin-top: 12px;
  white-space: pre-wrap;
  background: rgba(255,255,255,0.9);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(23,27,33,0.2);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.dropzone:focus-visible,
a:focus-visible {
  outline: none;
  border-color: rgba(15,138,121,0.45);
  box-shadow: 0 0 0 4px rgba(15,138,121,0.12);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.6);
  padding: 10px 12px;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.check > span {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.check-copy {
  display: grid;
  gap: 2px;
}

.check-copy > span {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.check-copy > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.check.check-strong {
  align-items: flex-start;
  border-color: rgba(239,107,58,0.2);
  background:
    linear-gradient(160deg, rgba(239,107,58,0.08), rgba(255,255,255,0.6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.check.check-strong input {
  margin-top: 2px;
  accent-color: var(--accent-2);
}

.captcha-box {
  align-self: end;
  min-height: 44px;
  border-radius: 12px;
  border: 1px dashed rgba(23,27,33,0.16);
  background: rgba(255,255,255,0.58);
  padding: 8px 10px;
  display: grid;
  gap: 2px;
}

.captcha-box > span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-weight: 700;
}

.captcha-box > strong {
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
}

.captcha-box > small {
  font-size: 11px;
  color: var(--muted);
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(19,24,31,0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(19,24,31,0.1);
}

.btn.primary {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 86%, #0a1317), color-mix(in srgb, var(--accent-3) 50%, var(--accent) 50%));
  box-shadow: 0 12px 26px rgba(15,138,121,0.22);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 16px 32px rgba(15,138,121,0.28);
}

.btn[disabled],
.btn.is-busy {
  opacity: 0.75;
  cursor: progress;
  transform: none;
}

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 20px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(23,27,33,0.08);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,255,255,0.56));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.dropzone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(15,138,121,0.38), rgba(239,107,58,0.22), rgba(26,108,255,0.24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

.dropzone:hover {
  transform: translateY(-1px);
}

.dropzone.is-dragover {
  border-color: rgba(15,138,121,0.24);
  background: linear-gradient(160deg, rgba(246,255,253,0.92), rgba(241,252,249,0.76));
  box-shadow: 0 18px 36px rgba(15,138,121,0.14);
  transform: translateY(-2px) scale(1.002);
}

.dropzone-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-3) 45%));
  box-shadow: 0 12px 22px rgba(15,138,121,0.22);
}

.dropzone-title {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.dropzone-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dropzone-hints {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.dropzone-hints span {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(23,27,33,0.06);
}

.file-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.56);
  color: var(--muted);
  font-size: 13px;
}

.file-summary strong {
  color: var(--ink);
  font-weight: 800;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.64);
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(19,24,31,0.04);
}

.file-list li.empty-row {
  border-style: dashed;
  background: rgba(255,255,255,0.42);
  color: var(--muted);
}

.file-row-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.file-list .name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.file-list .meta {
  font-size: 12px;
  color: var(--muted);
}

.file-list .meta strong {
  color: var(--ink);
  font-weight: 700;
}

.catalog-premium-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4d2b00;
  background: linear-gradient(135deg, rgba(255, 212, 97, 0.92), rgba(255, 170, 66, 0.92));
  border: 1px solid rgba(255, 180, 60, 0.55);
  vertical-align: middle;
}

.file-list li.catalog-link-premium {
  border-color: rgba(255, 191, 66, 0.35);
  background:
    linear-gradient(160deg, rgba(255, 246, 214, 0.35), rgba(255,255,255,0.66));
  box-shadow:
    0 0 0 1px rgba(255, 196, 82, 0.14) inset,
    0 6px 16px rgba(255, 180, 60, 0.08);
}

.file-remove {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(176,40,60,0.16);
  background: rgba(176,40,60,0.06);
  color: var(--danger);
  font-weight: 900;
  cursor: pointer;
  transition: background-color 0.14s ease, transform 0.14s ease;
}

.file-remove:hover,
.file-remove:focus-visible {
  background: rgba(176,40,60,0.12);
  transform: translateY(-1px);
  outline: none;
}

.card-list li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(23,27,33,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(247,247,247,0.62));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.progress-wrap {
  display: grid;
  gap: 6px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(23,27,33,0.08);
  overflow: hidden;
  border: 1px solid rgba(23,27,33,0.05);
}

.progress > div {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent-3) 45%, var(--accent) 55%));
  box-shadow: 0 0 24px rgba(15,138,121,0.28);
  transition: width 0.12s linear;
}

.result {
  border-radius: 14px;
  border: 1px solid rgba(15,138,121,0.2);
  background: linear-gradient(160deg, rgba(15,138,121,0.07), rgba(255,255,255,0.6));
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.result-title {
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink);
}

.result-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.result-row > input {
  flex: 1;
  min-width: 0;
}

.notice {
  border-radius: 14px;
  border: 1px solid rgba(23,27,33,0.1);
  background: rgba(255,255,255,0.7);
  padding: 10px 12px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.notice-soft {
  background: rgba(255,255,255,0.55);
  border-color: rgba(23,27,33,0.07);
  color: var(--muted);
  margin-bottom: 10px;
}

.notice.error {
  border-color: rgba(176,40,60,0.22);
  background: rgba(176,40,60,0.07);
  color: var(--danger);
}

.notice.success {
  border-color: rgba(31,138,77,0.22);
  background: rgba(31,138,77,0.07);
  color: var(--success);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.meta-grid > div {
  border-radius: 14px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.6);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.meta-grid .label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.meta-grid strong {
  font-size: 14px;
  line-height: 1.2;
}

.description {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.56);
  white-space: pre-wrap;
  color: var(--muted);
}

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

.feature-card {
  border-radius: 16px;
  border: 1px solid rgba(23,27,33,0.08);
  background: linear-gradient(160deg, rgba(255,255,255,0.74), rgba(255,255,255,0.54));
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.prose h2 {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  line-height: 1.55;
}

.top-gap {
  margin-top: 12px;
}

.hidden,
[hidden] {
  display: none !important;
}

.captcha-trap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.toast-stack {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  border-radius: 14px;
  padding: 11px 12px;
  border: 1px solid rgba(23,27,33,0.08);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 16px 34px rgba(19,24,31,0.14);
  backdrop-filter: blur(12px);
  transform: translateY(-6px) scale(0.985);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 6px;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(26,108,255,0.12);
}

.toast.success::before {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(31,138,77,0.12);
}

.toast.error::before {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(176,40,60,0.12);
}

.toast.warning::before {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(180,109,0,0.12);
}

.toast-body {
  min-width: 0;
}

.toast-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.toast-text {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.toast-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(23,27,33,0.06);
  color: var(--ink);
  outline: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

@keyframes orbFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 10px, 0) scale(1.03);
  }
}

@media (max-width: 980px) {
  .hero-main {
    grid-template-columns: 1fr;
  }

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

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

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

  .admin-bulk-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-bulk-form select {
    max-width: none;
  }

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

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

  .tool-split {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 900px) {
  .shell.wide {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px;
  }

  .shell {
    gap: 14px;
  }

  .hero,
  .panel {
    padding: 14px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .tabs,
  .grid.two,
  .about-grid,
  .tool-options {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .result-row {
    flex-direction: column;
    align-items: stretch;
  }

  .inline-field {
    grid-template-columns: 1fr;
  }

  .pwgen-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .card-list li {
    grid-template-columns: 1fr;
  }

  .thumb {
    width: 100%;
    height: 180px;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .bg-scene {
    opacity: 0.75;
  }
}

@media (min-width: 1500px) {
  .page-frame-with-rails {
    --banner-rail-w: 468px;
    --banner-gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: var(--banner-rail-w) minmax(0, 1fr) var(--banner-rail-w);
    gap: var(--banner-gap);
    align-items: start;
  }

  .page-frame-with-rails .page-main .shell {
    width: 100%;
    max-width: none;
  }

  .page-frame-with-rails .banner-rail {
    display: block;
    position: sticky;
    top: 14px;
    align-self: start;
  }
}

/* ===== Cyber Terminal Theme Override ===== */
:root {
  --bg: #070b0b;
  --bg-ink: #d5ffe3;
  --paper: rgba(9, 14, 14, 0.9);
  --paper-2: rgba(8, 12, 12, 0.96);
  --panel-line: rgba(105, 255, 170, 0.18);
  --panel-line-strong: rgba(105, 255, 170, 0.34);
  --ink: #d7ffe7;
  --muted: #83b39c;
  --muted-2: #6b9684;
  --accent: #00e08b;
  --accent-2: #38f8ff;
  --accent-3: #b2ff35;
  --danger: #ff5476;
  --success: #00e08b;
  --warning: #ffc13d;
  --shadow-sm: 0 0 0 1px rgba(0, 224, 139, 0.05), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow: 0 0 0 1px rgba(56, 248, 255, 0.08), 0 22px 54px rgba(0, 0, 0, 0.46);
  --shadow-lg: 0 0 0 1px rgba(56, 248, 255, 0.1), 0 30px 90px rgba(0, 0, 0, 0.6);
  --font-sans: "JetBrains Mono", "IBM Plex Mono", "Fira Code", "Consolas", "Menlo", "Courier New", monospace;
  --font-display: "JetBrains Mono", "IBM Plex Mono", "Consolas", "Menlo", monospace;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "Consolas", "Menlo", monospace;
}

html {
  color-scheme: dark;
}

body {
  color: var(--ink);
  background:
    radial-gradient(820px 420px at 8% 0%, rgba(0, 224, 139, 0.13), transparent 70%),
    radial-gradient(760px 420px at 92% 6%, rgba(56, 248, 255, 0.11), transparent 70%),
    radial-gradient(900px 520px at 50% 110%, rgba(178, 255, 53, 0.06), transparent 70%),
    linear-gradient(180deg, #060808 0%, #050707 55%, #070909 100%);
}

body::before {
  opacity: 1;
  background:
    linear-gradient(rgba(0, 224, 139, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 248, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px;
}

body::after {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.012) 0px,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.5;
}

.bg-scene {
  opacity: 0.9;
}

.bg-orb {
  filter: blur(42px);
  opacity: 0.25;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(0, 224, 139, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 248, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1));
}

a {
  color: #9ef8d0;
}

.shell {
  gap: 16px;
}

.hero,
.panel,
.tool-card,
.form-card,
.side-card,
.pgp-panel,
.qr-output-wrap,
.image-preview,
.banner-admin-card,
.banner-slot,
.meta-grid > div,
.result,
.strength-wrap,
.captcha-box,
.banner-admin-preview,
.banner-slot-placeholder,
.notice,
.toast {
  border-color: rgba(105, 255, 170, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(9, 14, 14, 0.92), rgba(6, 10, 10, 0.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(56, 248, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.42) !important;
}

.hero,
.panel,
.tool-card,
.banner-admin-card,
.side-card,
.form-card,
.pgp-panel {
  position: relative;
  overflow: hidden;
}

.hero::after,
.panel::after,
.tool-card::after,
.banner-admin-card::after,
.side-card::after,
.form-card::after,
.pgp-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(0, 224, 139, 0.05), transparent 30% 70%, rgba(56, 248, 255, 0.03)),
    linear-gradient(90deg, transparent 0 98%, rgba(56, 248, 255, 0.08) 98%),
    linear-gradient(180deg, transparent 0 98%, rgba(0, 224, 139, 0.08) 98%);
  opacity: 0.8;
}

.hero {
  border-radius: 16px;
  border: 1px solid rgba(105, 255, 170, 0.18);
  background:
    linear-gradient(180deg, rgba(5, 9, 9, 0.96), rgba(7, 12, 12, 0.94)) !important;
  backdrop-filter: none;
}

.hero::before {
  border-color: rgba(56, 248, 255, 0.12);
}

.hero h1 {
  color: #f1fff8;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 10px rgba(56, 248, 255, 0.15),
    0 0 24px rgba(0, 224, 139, 0.08);
}

.hero h1::before {
  content: "> ";
  color: var(--accent);
  opacity: 0.95;
}

.eyebrow {
  color: #7af7be;
  letter-spacing: 0.14em;
}

.hero .sub,
.panel-sub,
.tool-card-head p,
.side-card p,
.side-card li,
.small-note,
.notice-soft,
.meta,
.dropzone-sub {
  color: var(--muted) !important;
}

.chip,
.badge {
  color: #d7fff0;
  background: rgba(0, 224, 139, 0.08) !important;
  border: 1px solid rgba(0, 224, 139, 0.2) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.01);
}

.chip-muted {
  background: rgba(56, 248, 255, 0.06) !important;
  border-color: rgba(56, 248, 255, 0.2) !important;
}

.badge-accent {
  color: #d5faff !important;
  background: rgba(56, 248, 255, 0.09) !important;
  border-color: rgba(56, 248, 255, 0.26) !important;
}

.stat-tile {
  background:
    linear-gradient(180deg, rgba(9, 14, 14, 0.95), rgba(7, 11, 11, 0.95)) !important;
  border: 1px solid rgba(105, 255, 170, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.stat-tile strong {
  color: #e9fff5;
}

.tabs {
  background: rgba(7, 11, 11, 0.88);
  border: 1px solid rgba(56, 248, 255, 0.12);
  backdrop-filter: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.01),
    0 12px 28px rgba(0, 0, 0, 0.35);
}

.tab {
  color: #8fbba7;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
}

.tab:hover,
.tab:focus-visible {
  color: #d4ffee;
  background: rgba(56, 248, 255, 0.05);
  border-color: rgba(56, 248, 255, 0.12);
}

.tab.is-active {
  color: #02140e;
  background:
    linear-gradient(135deg, rgba(0, 224, 139, 0.98), rgba(178, 255, 53, 0.88));
  box-shadow:
    0 0 0 1px rgba(178, 255, 53, 0.22),
    0 0 22px rgba(0, 224, 139, 0.22);
  text-shadow: none;
}

.panel {
  border-radius: 16px;
  border: 1px solid rgba(105, 255, 170, 0.16);
  background: rgba(8, 12, 12, 0.94) !important;
}

.panel::before {
  border-color: rgba(255,255,255,0.02);
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 26%);
}

.panel-title,
.tool-card-head h3,
.pgp-panel h4,
.side-card h3,
.banner-admin-meta strong {
  color: #edfff7;
}

.panel-title {
  letter-spacing: -0.02em;
}

label > span,
.field-label {
  color: #94c8af;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 11px;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="email"],
select,
textarea {
  background: rgba(2, 8, 7, 0.92);
  color: #dcfff1;
  border: 1px solid rgba(105, 255, 170, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.01),
    inset 0 0 0 1px rgba(56,248,255,0.02);
}

input::placeholder,
textarea::placeholder {
  color: #6f9a87;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.dropzone:focus-visible {
  outline: 2px solid rgba(56, 248, 255, 0.5);
  outline-offset: 2px;
  border-color: rgba(56, 248, 255, 0.35);
  box-shadow:
    0 0 0 2px rgba(56,248,255,0.08),
    0 0 28px rgba(56,248,255,0.08);
}

.check {
  background: rgba(4, 10, 9, 0.85);
  border: 1px solid rgba(105, 255, 170, 0.12);
}

.check > span,
.check-copy > span {
  color: #d9ffed;
}

.check-copy small {
  color: var(--muted);
}

.btn {
  color: #d7fff0;
  border: 1px solid rgba(105, 255, 170, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 13, 13, 0.98), rgba(5, 9, 9, 0.98));
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.01),
    0 6px 18px rgba(0, 0, 0, 0.36);
}

.btn:hover,
.btn:focus-visible {
  color: #f0fff8;
  border-color: rgba(56, 248, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(9, 16, 15, 0.98), rgba(6, 11, 10, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(56,248,255,0.05),
    0 0 18px rgba(56,248,255,0.08),
    0 10px 24px rgba(0,0,0,0.4);
}

.btn.primary {
  color: #02120c;
  border-color: rgba(0,224,139,0.35);
  background:
    linear-gradient(135deg, rgba(0, 224, 139, 0.96), rgba(178, 255, 53, 0.88));
  box-shadow:
    0 0 0 1px rgba(0,224,139,0.12),
    0 0 26px rgba(0,224,139,0.16);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  color: #010f0a;
  border-color: rgba(178,255,53,0.45);
  background:
    linear-gradient(135deg, rgba(56, 248, 255, 0.95), rgba(0, 224, 139, 0.92));
  box-shadow:
    0 0 0 1px rgba(56,248,255,0.14),
    0 0 30px rgba(56,248,255,0.18);
}

.btn[disabled],
.btn.is-busy {
  color: #6d9788;
  background: rgba(9, 12, 12, 0.95);
  border-color: rgba(105, 255, 170, 0.08);
  box-shadow: none;
}

.dropzone {
  background:
    linear-gradient(180deg, rgba(5, 10, 10, 0.94), rgba(7, 11, 11, 0.94)) !important;
  border: 1px dashed rgba(56, 248, 255, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.01),
    0 0 0 1px rgba(56,248,255,0.03);
}

.dropzone::before {
  background:
    linear-gradient(90deg, transparent, rgba(56,248,255,0.06), transparent);
  opacity: 0.9;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: rgba(0, 224, 139, 0.48);
  background:
    linear-gradient(180deg, rgba(5, 11, 10, 0.97), rgba(6, 12, 11, 0.97)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,224,139,0.06),
    0 0 30px rgba(0,224,139,0.08);
}

.dropzone-icon {
  background: rgba(0, 224, 139, 0.12);
  color: #9bffd0;
  border: 1px solid rgba(0, 224, 139, 0.2);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.01), 0 0 18px rgba(0,224,139,0.08);
}

.dropzone-title {
  color: #f0fff9;
}

.dropzone-hints span {
  color: #98cab3;
  background: rgba(0,224,139,0.05);
  border: 1px solid rgba(0,224,139,0.12);
}

.file-list li,
.meta-grid > div,
.file-summary,
.banner-admin-preview,
.banner-admin-placeholder,
.qr-output-wrap,
.strength-wrap,
.result {
  background:
    linear-gradient(180deg, rgba(5, 10, 10, 0.88), rgba(6, 11, 11, 0.88)) !important;
}

.file-list li.empty-row {
  border-style: dashed;
}

.name,
.result-title,
.meta-grid strong,
.strength-label strong {
  color: #e9fff5;
}

.file-remove {
  background: rgba(255, 84, 118, 0.07);
  border: 1px solid rgba(255, 84, 118, 0.18);
  color: #ff9fb1;
}

.file-remove:hover,
.file-remove:focus-visible {
  background: rgba(255, 84, 118, 0.12);
  color: #ffd7de;
}

.progress {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(56,248,255,0.08);
}

.progress > div {
  background:
    linear-gradient(90deg, rgba(0, 224, 139, 0.95), rgba(56, 248, 255, 0.9));
  box-shadow: 0 0 18px rgba(0,224,139,0.15);
}

.thumb {
  background: rgba(6, 10, 10, 0.94);
  border: 1px solid rgba(56, 248, 255, 0.12);
  color: #86b49f;
}

.thumb img {
  filter: saturate(0.95) contrast(1.04);
}

.description {
  color: #b5ebd0;
  border-left-color: rgba(56, 248, 255, 0.32);
}

.notice {
  color: #d0ffe7;
  border: 1px solid rgba(56, 248, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(5, 10, 10, 0.88), rgba(7, 12, 12, 0.88)) !important;
}

.notice-soft {
  color: var(--muted);
}

.notice.error {
  color: #ffd1da;
  border-color: rgba(255, 84, 118, 0.28);
  background: rgba(63, 9, 21, 0.35) !important;
}

.notice.success {
  color: #caffea;
  border-color: rgba(0, 224, 139, 0.26);
  background: rgba(4, 45, 28, 0.33) !important;
}

.side-card-dark {
  background:
    linear-gradient(180deg, rgba(4, 8, 8, 0.96), rgba(8, 13, 13, 0.94)),
    radial-gradient(220px 160px at 100% 0%, rgba(56, 248, 255, 0.08), transparent 70%) !important;
  border-color: rgba(56, 248, 255, 0.16);
}

.side-card-dark h3 {
  color: #8ce7c0;
}

.side-card-dark p,
.side-card-dark li,
.side-card-dark .small-note {
  color: #a6d8c2 !important;
}

.qr-output svg,
.qr-output img,
.qr-output canvas,
.image-preview img,
.image-preview canvas {
  background: #07100d;
  border: 1px solid rgba(56,248,255,0.12);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.01),
    0 10px 24px rgba(0,0,0,0.35);
}

.banner-slot {
  border: 1px solid rgba(56,248,255,0.14);
  background: rgba(6, 10, 10, 0.88) !important;
}

.banner-slot-badge {
  color: #03140e;
  background: rgba(0, 224, 139, 0.95);
}

.banner-slot-placeholder {
  color: #8ab9a4;
  border-color: rgba(56,248,255,0.12) !important;
}

.banner-admin-card {
  border-radius: 12px;
}

.banner-admin-meta {
  color: var(--muted);
}

.banner-admin-preview {
  border-color: rgba(56, 248, 255, 0.12);
}

.banner-admin-placeholder {
  color: #7fae99;
}

.toast {
  border: 1px solid rgba(56,248,255,0.16);
  background:
    linear-gradient(180deg, rgba(8, 12, 12, 0.96), rgba(5, 9, 9, 0.96)) !important;
  backdrop-filter: none;
}

.toast::before {
  background: rgba(56, 248, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(56,248,255,0.08);
}

.toast.success::before {
  background: rgba(0, 224, 139, 0.95);
  box-shadow: 0 0 0 4px rgba(0,224,139,0.08);
}

.toast.error::before {
  background: rgba(255, 84, 118, 0.95);
  box-shadow: 0 0 0 4px rgba(255,84,118,0.08);
}

.toast.warning::before {
  background: rgba(255, 193, 61, 0.95);
  box-shadow: 0 0 0 4px rgba(255,193,61,0.08);
}

.toast-title {
  color: #ecfff7;
}

.toast-text,
.toast-close {
  color: var(--muted);
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(56,248,255,0.07);
  color: #defdf1;
}

.about-grid .feature-card {
  border: 1px solid rgba(105, 255, 170, 0.12);
  background:
    linear-gradient(180deg, rgba(6, 10, 10, 0.9), rgba(8, 12, 12, 0.9)) !important;
}

.about-grid .feature-card h3 {
  color: #ecfff7;
}

.prose p {
  color: var(--muted);
}

.result-row input[readonly],
textarea[readonly] {
  background: rgba(4, 8, 8, 0.94);
}

::selection {
  color: #04110c;
  background: rgba(0, 224, 139, 0.9);
}

@supports selector(::-webkit-scrollbar) {
  *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  *::-webkit-scrollbar-track {
    background: rgba(6, 10, 10, 0.9);
  }

  *::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 224, 139, 0.35), rgba(56, 248, 255, 0.32));
    border-radius: 999px;
    border: 2px solid rgba(6, 10, 10, 0.95);
  }

  *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0, 224, 139, 0.55), rgba(56, 248, 255, 0.48));
  }
}

@media (max-width: 760px) {
  body {
    padding: 10px;
  }

  .hero,
  .panel {
    border-radius: 14px;
  }

  .hero h1::before {
    content: "";
  }
}

/* ===== Terminal / Cyberpunk Theme Override (v2) ===== */
:root {
  --bg: #030707;
  --bg-2: #060b09;
  --panel: rgba(5, 11, 10, 0.9);
  --ink: #d8fff0;
  --muted: #79b7a1;
  --line: rgba(53, 246, 168, 0.18);
  --accent: #22f7a6;
  --accent-2: #46d7ff;
  --danger: #ff587a;
  --success: #24f4a3;
  --warning: #ffc247;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
  --radius: 12px;
  --radius-sm: 10px;
  --sans: "IBM Plex Mono", "JetBrains Mono", "Fira Code", "Consolas", "Menlo", monospace;
  --mono: "IBM Plex Mono", "JetBrains Mono", "Fira Code", "Consolas", "Menlo", monospace;
}

html,
body {
  color-scheme: dark;
}

body {
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(34, 247, 166, 0.14), transparent 72%),
    radial-gradient(760px 420px at 88% 12%, rgba(70, 215, 255, 0.13), transparent 70%),
    radial-gradient(620px 360px at 50% 100%, rgba(255, 194, 71, 0.07), transparent 70%),
    linear-gradient(180deg, #040807 0%, #030707 38%, #030505 100%) !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
}

body::before {
  background:
    linear-gradient(rgba(34, 247, 166, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 215, 255, 0.025) 1px, transparent 1px),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 3px
    ) !important;
  background-size: 32px 32px, 32px 32px, 100% 3px !important;
  opacity: 0.95;
  filter: none !important;
}

body::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(0,0,0,0.38) 100%),
    radial-gradient(circle at 25% 5%, rgba(34,247,166,0.08), transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(70,215,255,0.08), transparent 50%) !important;
  opacity: 1;
}

body.js-motion::before {
  animation: termGridDrift 18s linear infinite;
}

.bg-scene,
.bg-grid,
.bg-orb {
  filter: none !important;
  opacity: 0.45;
}

.page-frame,
.page-frame-with-rails {
  gap: 14px;
}

.page-main {
  min-width: 0;
}

.shell,
.shell.narrow,
.shell.wide {
  width: 100% !important;
  max-width: none !important;
}

.hero,
.panel {
  position: relative;
  border-radius: var(--radius) !important;
  border: 1px solid rgba(53, 246, 168, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(6, 13, 12, 0.95), rgba(4, 9, 8, 0.95)) !important;
  box-shadow:
    0 0 0 1px rgba(70, 215, 255, 0.05) inset,
    0 0 0 1px rgba(34, 247, 166, 0.03),
    0 18px 55px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(34, 247, 166, 0.06) !important;
  backdrop-filter: none !important;
}

.hero::before,
.panel::before {
  background:
    linear-gradient(90deg, rgba(34, 247, 166, 0.18), rgba(70, 215, 255, 0.16), transparent 70%) !important;
  height: 1px !important;
  opacity: 0.9;
}

.hero::after,
.panel::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 194, 71, 0.2), transparent);
  pointer-events: none;
}

.hero {
  padding: 20px 20px 18px !important;
}

.hero h1 {
  color: #ebfff8 !important;
  font-family: var(--mono) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-shadow:
    0 0 18px rgba(34, 247, 166, 0.12),
    0 0 30px rgba(70, 215, 255, 0.08);
}

.hero h1::before {
  color: rgba(34, 247, 166, 0.7) !important;
  letter-spacing: 0.16em !important;
}

.eyebrow,
.badge,
.badge-accent,
.chip,
.chip-muted,
.banner-slot-badge {
  font-family: var(--mono) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  color: rgba(70, 215, 255, 0.85) !important;
}

.hero .sub,
.panel-sub,
.notice-soft,
.small-note,
.meta,
.file-list .meta,
.prose p,
.dropzone-sub,
.banner-admin-meta,
.toast-text {
  color: #86b8a7 !important;
}

.stat-tile,
.side-card,
.side-card-dark,
.tool-card,
.feature-card,
.pgp-panel,
.form-card {
  border: 1px solid rgba(53, 246, 168, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(6, 11, 10, 0.9), rgba(5, 9, 9, 0.9)) !important;
  box-shadow:
    0 0 0 1px rgba(70, 215, 255, 0.04) inset,
    0 10px 28px rgba(0,0,0,0.3) !important;
  border-radius: 12px !important;
}

.side-card-dark {
  background:
    linear-gradient(180deg, rgba(4, 8, 8, 0.94), rgba(4, 6, 6, 0.94)) !important;
}

.tabs {
  gap: 10px !important;
}

.tab {
  border-radius: 10px !important;
  border: 1px solid rgba(70, 215, 255, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(7, 12, 11, 0.88), rgba(5, 9, 8, 0.88)) !important;
  color: #9ec7bb !important;
  box-shadow: 0 0 0 1px rgba(34,247,166,0.02) inset;
}

.tab:hover,
.tab:focus-visible {
  color: #e7fff8 !important;
  border-color: rgba(34, 247, 166, 0.24) !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.05) inset,
    0 0 22px rgba(34,247,166,0.05) !important;
}

.tab.is-active {
  color: #05100d !important;
  border-color: rgba(34, 247, 166, 0.75) !important;
  background:
    linear-gradient(135deg, rgba(34,247,166,0.95), rgba(70,215,255,0.9)) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.2) inset,
    0 0 26px rgba(34,247,166,0.18) !important;
}

.panel-title,
.prose h2,
.tool-card-head h3,
.banner-admin-section h2 {
  color: #ebfff8 !important;
  font-family: var(--mono) !important;
}

.panel-title::before {
  color: rgba(34, 247, 166, 0.6) !important;
}

label > span,
.field-label {
  color: #9ac7ba !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"],
select,
textarea {
  border-radius: 10px !important;
  border: 1px solid rgba(70, 215, 255, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(3, 7, 6, 0.96), rgba(4, 8, 8, 0.96)) !important;
  color: #dcfff2 !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.02) inset,
    0 8px 20px rgba(0,0,0,0.18) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(135, 184, 168, 0.62) !important;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
.dropzone:focus-visible {
  outline: 2px solid rgba(34, 247, 166, 0.34) !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(34,247,166,0.06) !important;
}

.check {
  border-radius: 10px !important;
  border: 1px solid rgba(53, 246, 168, 0.12) !important;
  background: rgba(6, 11, 10, 0.75) !important;
}

.check input[type="checkbox"] {
  accent-color: #22f7a6;
}

.btn {
  position: relative;
  border-radius: 10px !important;
  border: 1px solid rgba(70, 215, 255, 0.15) !important;
  background:
    linear-gradient(180deg, rgba(7, 12, 11, 0.95), rgba(4, 8, 8, 0.95)) !important;
  color: #dcfff3 !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.03) inset,
    0 8px 20px rgba(0,0,0,0.25) !important;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.btn:hover,
.btn:focus-visible {
  border-color: rgba(34, 247, 166, 0.28) !important;
  color: #f1fff9 !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.06) inset,
    0 0 22px rgba(34,247,166,0.07),
    0 10px 24px rgba(0,0,0,0.28) !important;
}

.btn.primary {
  color: #05110d !important;
  border-color: rgba(34, 247, 166, 0.7) !important;
  background:
    linear-gradient(135deg, rgba(34,247,166,0.96), rgba(70,215,255,0.88)) !important;
  text-shadow: none;
}

.btn.primary::after {
  border-color: rgba(255,255,255,0.22);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 0 30px rgba(34,247,166,0.22),
    0 14px 30px rgba(0,0,0,0.32) !important;
}

.btn[disabled],
.btn.is-busy {
  color: rgba(181, 206, 196, 0.6) !important;
  background: rgba(8, 12, 12, 0.9) !important;
  border-color: rgba(70, 215, 255, 0.08) !important;
  box-shadow: none !important;
}

.dropzone {
  border-radius: 12px !important;
  border: 1px dashed rgba(70, 215, 255, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(6, 11, 10, 0.82), rgba(4, 8, 8, 0.82)) !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.03) inset,
    inset 0 0 34px rgba(34,247,166,0.02);
}

.dropzone::before {
  background:
    linear-gradient(90deg, transparent, rgba(34, 247, 166, 0.22), transparent) !important;
  opacity: 0.8;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: rgba(34, 247, 166, 0.38) !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.08) inset,
    0 0 24px rgba(34,247,166,0.06),
    inset 0 0 34px rgba(70,215,255,0.03) !important;
}

.dropzone-title {
  color: #eefff8 !important;
  font-family: var(--mono) !important;
}

.dropzone-icon {
  background: linear-gradient(135deg, rgba(34,247,166,0.96), rgba(70,215,255,0.92)) !important;
  color: #04110c !important;
  box-shadow: 0 0 22px rgba(34,247,166,0.18) !important;
}

.dropzone-hints span,
.chip,
.chip-muted {
  border-radius: 999px !important;
  border: 1px solid rgba(70, 215, 255, 0.12) !important;
  background: rgba(7, 12, 11, 0.8) !important;
  color: #a4c7bc !important;
}

.file-list li,
.meta-grid > div,
.result,
.notice,
.captcha-box,
.qr-output,
.qr-output-wrap,
.image-preview,
.banner-admin-card,
.banner-admin-preview {
  border-radius: 10px !important;
  border: 1px solid rgba(53, 246, 168, 0.12) !important;
  background:
    linear-gradient(180deg, rgba(7, 12, 11, 0.84), rgba(4, 8, 8, 0.84)) !important;
}

.result {
  border-color: rgba(34, 247, 166, 0.2) !important;
  box-shadow: 0 0 0 1px rgba(34,247,166,0.03) inset;
}

.notice {
  color: #d6fff0 !important;
}

.notice.error {
  border-color: rgba(255, 88, 122, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(23, 8, 11, 0.88), rgba(16, 6, 8, 0.88)) !important;
  color: #ff9bb3 !important;
}

.notice.success {
  border-color: rgba(36, 244, 163, 0.22) !important;
  background:
    linear-gradient(180deg, rgba(6, 18, 14, 0.88), rgba(5, 13, 10, 0.88)) !important;
  color: #8fffd0 !important;
}

.notice-soft {
  border: 1px solid rgba(70, 215, 255, 0.12) !important;
  background: rgba(6, 10, 10, 0.78) !important;
}

.meta-grid .label,
.result-title {
  color: rgba(70, 215, 255, 0.78) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-grid strong,
.file-list .name,
.name {
  color: #ebfff8 !important;
}

.thumb {
  border: 1px solid rgba(70, 215, 255, 0.12) !important;
  background: linear-gradient(180deg, rgba(5, 8, 8, 0.95), rgba(4, 6, 6, 0.95)) !important;
}

.thumb img {
  image-rendering: auto;
}

.progress {
  border: 1px solid rgba(70, 215, 255, 0.1);
  background: rgba(5, 8, 8, 0.92) !important;
}

.progress > div {
  background:
    linear-gradient(90deg, rgba(34,247,166,0.92), rgba(70,215,255,0.92), rgba(255,194,71,0.9)) !important;
  box-shadow: 0 0 18px rgba(34,247,166,0.12);
}

.description {
  border-left-color: rgba(34, 247, 166, 0.42) !important;
  color: #b9d8cd !important;
}

.toast {
  border-radius: 10px !important;
  border-color: rgba(70, 215, 255, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(5, 9, 9, 0.96), rgba(3, 6, 6, 0.96)) !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.04) inset,
    0 18px 34px rgba(0,0,0,0.35) !important;
}

.toast-title {
  color: #ebfff7 !important;
}

.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(34,247,166,0.08) !important;
}

.banner-rail {
  padding-top: 2px;
}

.banner-rail-inner {
  gap: 10px !important;
}

.banner-slot {
  border-radius: 8px !important;
  border: 1px solid rgba(53, 246, 168, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(7, 11, 11, 0.88), rgba(5, 8, 8, 0.88)) !important;
  box-shadow:
    0 0 0 1px rgba(70,215,255,0.03) inset,
    0 8px 20px rgba(0,0,0,0.24) !important;
}

.banner-slot.has-banner:hover {
  border-color: rgba(34, 247, 166, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.04) inset,
    0 0 24px rgba(34,247,166,0.07) !important;
}

.banner-slot-placeholder {
  color: #7fae99 !important;
}

.banner-admin-card {
  box-shadow: 0 0 0 1px rgba(70,215,255,0.03) inset;
}

.banner-admin-preview img {
  border-radius: 8px;
}

.banner-admin-placeholder {
  color: #77b99f !important;
}

.tool-card-head,
.panel-header {
  border-bottom: 1px solid rgba(53, 246, 168, 0.08);
}

.tool-card-head h3,
.tool-card h3,
.pgp-panel h3 {
  color: #eafff8 !important;
}

.small-note code,
.hero .sub code {
  color: #afffe0 !important;
  background: rgba(34,247,166,0.07) !important;
  border: 1px solid rgba(34,247,166,0.12) !important;
  border-radius: 6px;
  padding: 1px 4px;
}

.tool-options,
.tool-split,
.inline-field {
  border-color: rgba(53, 246, 168, 0.08) !important;
}

.image-preview {
  min-height: 220px;
}

.image-preview canvas,
.image-preview img {
  border-radius: 10px;
}

.qr-output canvas,
.qr-output img {
  filter: drop-shadow(0 0 14px rgba(34,247,166,0.08));
}

.file-remove {
  border-color: rgba(255, 88, 122, 0.14) !important;
  color: #ffadc0 !important;
}

.file-remove:hover,
.file-remove:focus-visible {
  border-color: rgba(255, 88, 122, 0.28) !important;
  background: rgba(255, 88, 122, 0.08) !important;
}

a {
  color: #a7fff0;
}

a:hover,
a:focus-visible {
  color: #eafffb;
}

::selection {
  background: rgba(34, 247, 166, 0.9) !important;
  color: #02110a !important;
}

@keyframes termGridDrift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 0 32px, 32px 0, 0 6px;
  }
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: clamp(28px, 6vw, 48px) !important;
  }

  .hero-stats {
    gap: 10px !important;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll !important;
  }

  .hero,
  .panel {
    border-radius: 12px !important;
    padding: 14px !important;
  }

  .tabs {
    gap: 8px !important;
  }

  .tab {
    min-height: 46px;
    font-size: 13px !important;
  }

  .dropzone {
    padding: 18px 12px !important;
  }

  .meta-grid {
    grid-template-columns: 1fr !important;
  }

  .file-list li,
  .result-row {
    gap: 8px !important;
  }
}

.theme-switcher {
  position: fixed;
  top: auto;
  bottom: 12px;
  right: 12px;
  z-index: 120;
  pointer-events: none;
}

.theme-switcher-inner {
  pointer-events: auto;
  display: grid;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(53, 246, 168, 0.14);
  background:
    linear-gradient(180deg, rgba(5, 10, 10, 0.92), rgba(4, 7, 7, 0.92));
  box-shadow:
    0 0 0 1px rgba(70, 215, 255, 0.04) inset,
    0 18px 32px rgba(0,0,0,0.34);
  padding: 8px;
  min-width: 258px;
}

.theme-switcher-label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(70, 215, 255, 0.78);
  padding: 2px 4px 0;
}

.theme-switcher-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme-switcher-btn {
  appearance: none;
  border: 1px solid rgba(70, 215, 255, 0.12);
  background: linear-gradient(180deg, rgba(7, 12, 11, 0.95), rgba(4, 8, 8, 0.95));
  color: #c6efe0;
  border-radius: 10px;
  padding: 8px 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.theme-switcher-btn:hover,
.theme-switcher-btn:focus-visible {
  border-color: rgba(34, 247, 166, 0.24);
  box-shadow:
    0 0 0 1px rgba(34,247,166,0.05) inset,
    0 0 18px rgba(34,247,166,0.08);
  transform: translateY(-1px);
  outline: none;
}

.theme-switcher-btn.is-active {
  color: #02110a;
  border-color: rgba(34, 247, 166, 0.6);
  background: linear-gradient(135deg, rgba(34,247,166,0.94), rgba(70,215,255,0.9));
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15) inset,
    0 0 24px rgba(34,247,166,0.16);
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

.theme-dot-green {
  background: linear-gradient(135deg, #22f7a6, #46d7ff);
}

.theme-dot-amber {
  background: linear-gradient(135deg, #ffc247, #ff5a5f);
}

html[data-theme="cyber-amber"] body {
  background:
    radial-gradient(900px 480px at 12% 0%, rgba(255, 165, 58, 0.13), transparent 72%),
    radial-gradient(760px 420px at 88% 12%, rgba(255, 88, 122, 0.12), transparent 70%),
    radial-gradient(620px 360px at 50% 100%, rgba(255, 210, 94, 0.08), transparent 70%),
    linear-gradient(180deg, #090504 0%, #080403 40%, #070303 100%) !important;
}

html[data-theme="cyber-amber"] body::before {
  background:
    linear-gradient(rgba(255, 171, 66, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 95, 114, 0.025) 1px, transparent 1px),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 3px
    ) !important;
  background-size: 32px 32px, 32px 32px, 100% 3px !important;
}

html[data-theme="cyber-amber"] body::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 44%, rgba(0,0,0,0.42) 100%),
    radial-gradient(circle at 25% 5%, rgba(255,194,71,0.08), transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(255,88,122,0.08), transparent 50%) !important;
}

html[data-theme="cyber-amber"] .hero,
html[data-theme="cyber-amber"] .panel {
  border-color: rgba(255, 165, 58, 0.16) !important;
  background: linear-gradient(180deg, rgba(14, 8, 7, 0.95), rgba(10, 6, 6, 0.95)) !important;
  box-shadow:
    0 0 0 1px rgba(255, 88, 122, 0.05) inset,
    0 18px 55px rgba(0, 0, 0, 0.52),
    0 0 36px rgba(255, 165, 58, 0.06) !important;
}

html[data-theme="cyber-amber"] .hero::before,
html[data-theme="cyber-amber"] .panel::before {
  background: linear-gradient(90deg, rgba(255, 194, 71, 0.22), rgba(255, 88, 122, 0.18), transparent 72%) !important;
}

html[data-theme="cyber-amber"] .hero::after,
html[data-theme="cyber-amber"] .panel::after {
  background: linear-gradient(90deg, transparent, rgba(255, 88, 122, 0.2), transparent) !important;
}

html[data-theme="cyber-amber"] .hero h1 {
  text-shadow:
    0 0 18px rgba(255, 165, 58, 0.12),
    0 0 30px rgba(255, 88, 122, 0.08) !important;
}

html[data-theme="cyber-amber"] .hero h1::before {
  color: rgba(255, 194, 71, 0.72) !important;
}

html[data-theme="cyber-amber"] .eyebrow,
html[data-theme="cyber-amber"] .meta-grid .label,
html[data-theme="cyber-amber"] .result-title,
html[data-theme="cyber-amber"] .theme-switcher-label {
  color: rgba(255, 194, 71, 0.82) !important;
}

html[data-theme="cyber-amber"] .tab {
  border-color: rgba(255, 88, 122, 0.12) !important;
  background: linear-gradient(180deg, rgba(12, 8, 8, 0.9), rgba(9, 6, 6, 0.9)) !important;
}

html[data-theme="cyber-amber"] .tab:hover,
html[data-theme="cyber-amber"] .tab:focus-visible {
  border-color: rgba(255, 165, 58, 0.24) !important;
  box-shadow:
    0 0 0 1px rgba(255,165,58,0.05) inset,
    0 0 22px rgba(255,165,58,0.06) !important;
}

html[data-theme="cyber-amber"] .tab.is-active {
  color: #120704 !important;
  border-color: rgba(255, 194, 71, 0.62) !important;
  background: linear-gradient(135deg, rgba(255,194,71,0.95), rgba(255,88,122,0.9)) !important;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.16) inset,
    0 0 26px rgba(255, 165, 58, 0.16) !important;
}

html[data-theme="cyber-amber"] input[type="text"],
html[data-theme="cyber-amber"] input[type="url"],
html[data-theme="cyber-amber"] input[type="password"],
html[data-theme="cyber-amber"] input[type="number"],
html[data-theme="cyber-amber"] select,
html[data-theme="cyber-amber"] textarea,
html[data-theme="cyber-amber"] .check,
html[data-theme="cyber-amber"] .file-list li,
html[data-theme="cyber-amber"] .meta-grid > div,
html[data-theme="cyber-amber"] .result,
html[data-theme="cyber-amber"] .notice,
html[data-theme="cyber-amber"] .captcha-box,
html[data-theme="cyber-amber"] .qr-output,
html[data-theme="cyber-amber"] .qr-output-wrap,
html[data-theme="cyber-amber"] .image-preview,
html[data-theme="cyber-amber"] .banner-admin-card,
html[data-theme="cyber-amber"] .banner-admin-preview {
  border-color: rgba(255, 165, 58, 0.14) !important;
  background: linear-gradient(180deg, rgba(12, 8, 8, 0.9), rgba(8, 6, 6, 0.9)) !important;
  box-shadow:
    0 0 0 1px rgba(255,88,122,0.03) inset,
    0 8px 20px rgba(0,0,0,0.2) !important;
}

html[data-theme="cyber-amber"] input:focus-visible,
html[data-theme="cyber-amber"] select:focus-visible,
html[data-theme="cyber-amber"] textarea:focus-visible,
html[data-theme="cyber-amber"] button:focus-visible,
html[data-theme="cyber-amber"] .dropzone:focus-visible {
  outline-color: rgba(255, 165, 58, 0.34) !important;
  box-shadow: 0 0 0 4px rgba(255,165,58,0.06) !important;
}

html[data-theme="cyber-amber"] .btn {
  border-color: rgba(255, 88, 122, 0.14) !important;
  background: linear-gradient(180deg, rgba(12, 8, 8, 0.95), rgba(8, 6, 6, 0.95)) !important;
  box-shadow:
    0 0 0 1px rgba(255,165,58,0.03) inset,
    0 8px 20px rgba(0,0,0,0.25) !important;
}

html[data-theme="cyber-amber"] .btn:hover,
html[data-theme="cyber-amber"] .btn:focus-visible {
  border-color: rgba(255, 165, 58, 0.26) !important;
  box-shadow:
    0 0 0 1px rgba(255,165,58,0.06) inset,
    0 0 22px rgba(255,165,58,0.08),
    0 10px 24px rgba(0,0,0,0.28) !important;
}

html[data-theme="cyber-amber"] .btn.primary {
  color: #170803 !important;
  border-color: rgba(255, 194, 71, 0.66) !important;
  background: linear-gradient(135deg, rgba(255,194,71,0.95), rgba(255,88,122,0.88)) !important;
}

html[data-theme="cyber-amber"] .dropzone {
  border-color: rgba(255, 88, 122, 0.2) !important;
  background: linear-gradient(180deg, rgba(12, 8, 8, 0.84), rgba(8, 6, 6, 0.84)) !important;
  box-shadow:
    0 0 0 1px rgba(255,165,58,0.03) inset,
    inset 0 0 34px rgba(255,165,58,0.02) !important;
}

html[data-theme="cyber-amber"] .dropzone::before {
  background: linear-gradient(90deg, transparent, rgba(255, 194, 71, 0.22), transparent) !important;
}

html[data-theme="cyber-amber"] .dropzone:hover,
html[data-theme="cyber-amber"] .dropzone.is-dragover {
  border-color: rgba(255, 165, 58, 0.34) !important;
  box-shadow:
    0 0 0 1px rgba(255,165,58,0.08) inset,
    0 0 24px rgba(255,165,58,0.06),
    inset 0 0 34px rgba(255,88,122,0.03) !important;
}

html[data-theme="cyber-amber"] .dropzone-icon,
html[data-theme="cyber-amber"] .theme-switcher-btn.is-active {
  background: linear-gradient(135deg, rgba(255,194,71,0.95), rgba(255,88,122,0.9)) !important;
  box-shadow: 0 0 22px rgba(255,165,58,0.18) !important;
}

html[data-theme="cyber-amber"] .dropzone-icon {
  color: #170803 !important;
}

html[data-theme="cyber-amber"] .dropzone-hints span,
html[data-theme="cyber-amber"] .chip,
html[data-theme="cyber-amber"] .chip-muted {
  border-color: rgba(255, 88, 122, 0.12) !important;
  background: rgba(12, 8, 8, 0.8) !important;
}

html[data-theme="cyber-amber"] .notice.error {
  border-color: rgba(255, 88, 122, 0.25) !important;
  background: linear-gradient(180deg, rgba(26, 8, 10, 0.9), rgba(16, 6, 7, 0.9)) !important;
}

html[data-theme="cyber-amber"] .notice.success {
  border-color: rgba(255, 165, 58, 0.24) !important;
  background: linear-gradient(180deg, rgba(24, 14, 6, 0.88), rgba(16, 10, 5, 0.88)) !important;
  color: #ffd9a0 !important;
}

html[data-theme="cyber-amber"] .progress {
  border-color: rgba(255, 88, 122, 0.1) !important;
}

html[data-theme="cyber-amber"] .progress > div {
  background: linear-gradient(90deg, rgba(255,194,71,0.94), rgba(255,88,122,0.92), rgba(255,235,132,0.9)) !important;
  box-shadow: 0 0 18px rgba(255,165,58,0.12) !important;
}

html[data-theme="cyber-amber"] .banner-slot {
  border-color: rgba(255, 165, 58, 0.14) !important;
  background: linear-gradient(180deg, rgba(12, 8, 8, 0.88), rgba(8, 6, 6, 0.88)) !important;
  box-shadow:
    0 0 0 1px rgba(255,88,122,0.03) inset,
    0 8px 20px rgba(0,0,0,0.24) !important;
}

html[data-theme="cyber-amber"] .banner-slot.has-banner:hover {
  border-color: rgba(255, 165, 58, 0.28) !important;
  box-shadow:
    0 0 0 1px rgba(255,165,58,0.04) inset,
    0 0 24px rgba(255,165,58,0.07) !important;
}

html[data-theme="cyber-amber"] .toast {
  border-color: rgba(255, 88, 122, 0.16) !important;
  background: linear-gradient(180deg, rgba(11, 8, 8, 0.96), rgba(7, 5, 5, 0.96)) !important;
  box-shadow:
    0 0 0 1px rgba(255,165,58,0.04) inset,
    0 18px 34px rgba(0,0,0,0.36) !important;
}

html[data-theme="cyber-amber"] .toast::before {
  background: rgba(255, 194, 71, 0.96) !important;
  box-shadow: 0 0 0 4px rgba(255,194,71,0.08) !important;
}

html[data-theme="cyber-amber"] .toast.success::before {
  background: rgba(255, 165, 58, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(255,165,58,0.08) !important;
}

html[data-theme="cyber-amber"] .toast.error::before {
  background: rgba(255, 88, 122, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(255,88,122,0.08) !important;
}

html[data-theme="cyber-amber"] .toast.warning::before {
  background: rgba(255, 194, 71, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(255,194,71,0.08) !important;
}

html[data-theme="cyber-amber"] .small-note code,
html[data-theme="cyber-amber"] .hero .sub code {
  color: #ffd9a0 !important;
  background: rgba(255,194,71,0.07) !important;
  border-color: rgba(255,194,71,0.12) !important;
}

html[data-theme="cyber-amber"] ::selection {
  background: rgba(255, 194, 71, 0.9) !important;
  color: #170803 !important;
}

@media (max-width: 900px) {
  .theme-switcher {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .theme-switcher-inner {
    min-width: 0;
  }

  .theme-switcher-row {
    grid-template-columns: 1fr;
  }

  .theme-switcher-btn {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Admin UI readability override (separate from public cyber style) */
body[data-page="admin"] {
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(44, 198, 255, 0.07), transparent 70%),
    radial-gradient(860px 380px at 100% 0%, rgba(30, 255, 175, 0.05), transparent 68%),
    #0a0f14 !important;
  color: #e9f2f7 !important;
}

body[data-page="admin"] .bg-scene {
  opacity: 0.12;
  filter: saturate(0.55);
}

body[data-page="admin"] .bg-grid {
  opacity: 0.18;
}

body[data-page="admin"] .hero {
  background:
    linear-gradient(180deg, rgba(14, 20, 27, 0.96), rgba(10, 15, 21, 0.94)) !important;
  border: 1px solid rgba(84, 106, 128, 0.22) !important;
  box-shadow:
    0 0 0 1px rgba(44, 198, 255, 0.03) inset,
    0 18px 36px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: none !important;
}

body[data-page="admin"] .hero::after {
  opacity: 0.22;
}

body[data-page="admin"] .hero h1,
body[data-page="admin"] .panel-title {
  color: #f3fbff !important;
  letter-spacing: -0.01em;
}

body[data-page="admin"] .hero .sub,
body[data-page="admin"] .panel-sub,
body[data-page="admin"] .small-note {
  color: #a9bccb !important;
}

body[data-page="admin"] .eyebrow {
  color: #65dfff !important;
}

body[data-page="admin"] .tabs {
  background: rgba(10, 16, 22, 0.92) !important;
  border: 1px solid rgba(84, 106, 128, 0.2) !important;
  box-shadow:
    0 0 0 1px rgba(44, 198, 255, 0.03) inset,
    0 10px 22px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: none !important;
}

body[data-page="admin"] .admin-tabs {
  position: sticky;
  top: 10px;
  z-index: 20;
}

body[data-page="admin"] .tab {
  color: #b5c7d4 !important;
  background: rgba(14, 20, 27, 0.72) !important;
  border: 1px solid rgba(84, 106, 128, 0.14) !important;
}

body[data-page="admin"] .tab:hover,
body[data-page="admin"] .tab:focus-visible {
  color: #eff8ff !important;
  background: rgba(20, 28, 37, 0.95) !important;
}

body[data-page="admin"] .tab.is-active {
  color: #061216 !important;
  background: linear-gradient(135deg, #3af0cf, #56d7ff) !important;
  border-color: transparent !important;
  box-shadow:
    0 10px 24px rgba(46, 232, 198, 0.18),
    0 0 0 1px rgba(255,255,255,0.08) inset !important;
}

body[data-page="admin"] .panel {
  background:
    linear-gradient(180deg, rgba(10, 15, 21, 0.97), rgba(9, 14, 20, 0.96)) !important;
  border: 1px solid rgba(84, 106, 128, 0.22) !important;
  box-shadow:
    0 0 0 1px rgba(44, 198, 255, 0.025) inset,
    0 14px 28px rgba(0, 0, 0, 0.24) !important;
  backdrop-filter: none !important;
}

body[data-page="admin"] .panel::before {
  border-color: rgba(255,255,255,0.03) !important;
}

body[data-page="admin"] .badge {
  color: #b8fbff !important;
  background: rgba(35, 154, 168, 0.12) !important;
  border-color: rgba(67, 207, 225, 0.22) !important;
}

body[data-page="admin"] .meta-grid > div,
body[data-page="admin"] .admin-card,
body[data-page="admin"] .banner-admin-card {
  background:
    linear-gradient(180deg, rgba(15, 21, 28, 0.96), rgba(12, 18, 24, 0.96)) !important;
  border: 1px solid rgba(84, 106, 128, 0.18) !important;
  box-shadow:
    0 0 0 1px rgba(44, 198, 255, 0.02) inset,
    0 10px 22px rgba(0, 0, 0, 0.22) !important;
}

body[data-page="admin"] .meta-grid .label {
  color: #86a3b7 !important;
  letter-spacing: 0.06em;
}

body[data-page="admin"] .meta-grid strong {
  color: #eef8ff !important;
}

body[data-page="admin"] .admin-kv > div {
  border-color: rgba(84, 106, 128, 0.16) !important;
  background: rgba(17, 24, 31, 0.92) !important;
}

body[data-page="admin"] .admin-kv > div > span {
  color: #9db5c5 !important;
}

body[data-page="admin"] .admin-kv > div > strong {
  color: #ecf8ff !important;
}

body[data-page="admin"] .notice,
body[data-page="admin"] .notice.notice-soft {
  color: #d8e7f2 !important;
  background: rgba(17, 24, 31, 0.88) !important;
  border: 1px solid rgba(84, 106, 128, 0.16) !important;
  box-shadow: none !important;
}

body[data-page="admin"] .notice.success {
  border-color: rgba(58, 240, 207, 0.28) !important;
  background: rgba(10, 35, 31, 0.78) !important;
  color: #b6fff1 !important;
}

body[data-page="admin"] label > span,
body[data-page="admin"] .field-label {
  color: #b7cbd9 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em !important;
  font-weight: 700 !important;
}

body[data-page="admin"] input[type="text"],
body[data-page="admin"] input[type="url"],
body[data-page="admin"] input[type="password"],
body[data-page="admin"] input[type="number"],
body[data-page="admin"] select,
body[data-page="admin"] textarea {
  background: rgba(13, 19, 25, 0.96) !important;
  color: #edf8ff !important;
  border: 1px solid rgba(84, 106, 128, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.015) !important;
}

body[data-page="admin"] input::placeholder,
body[data-page="admin"] textarea::placeholder {
  color: #6f889a !important;
}

body[data-page="admin"] .check {
  background: rgba(14, 20, 27, 0.86) !important;
  border: 1px solid rgba(84, 106, 128, 0.16) !important;
}

body[data-page="admin"] .check > span,
body[data-page="admin"] .check-copy > span {
  color: #e8f4fb !important;
}

body[data-page="admin"] .check-copy > small {
  color: #9cb1c1 !important;
}

body[data-page="admin"] .btn {
  background: rgba(14, 20, 27, 0.95) !important;
  color: #e4f2fb !important;
  border: 1px solid rgba(84, 106, 128, 0.18) !important;
  box-shadow: 0 8px 16px rgba(0,0,0,0.16) !important;
}

body[data-page="admin"] .btn:hover,
body[data-page="admin"] .btn:focus-visible {
  border-color: rgba(94, 186, 210, 0.28) !important;
  box-shadow: 0 12px 20px rgba(0,0,0,0.2) !important;
}

body[data-page="admin"] .btn.primary {
  color: #071318 !important;
  background: linear-gradient(135deg, #3af0cf, #4ecfff) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 20px rgba(32, 203, 219, 0.18) !important;
}

body[data-page="admin"] .file-list li {
  background: rgba(14, 20, 27, 0.94) !important;
  border: 1px solid rgba(84, 106, 128, 0.16) !important;
  box-shadow: none !important;
  align-items: start;
}

body[data-page="admin"] .file-list li.empty-row {
  background: rgba(14, 20, 27, 0.62) !important;
  border-style: dashed !important;
}

body[data-page="admin"] .file-list .name {
  color: #edf8ff !important;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

body[data-page="admin"] .file-list .meta,
body[data-page="admin"] .file-list .meta a,
body[data-page="admin"] .file-list .meta code {
  color: #9fb6c5 !important;
}

body[data-page="admin"] .file-list .meta a {
  text-decoration: underline;
  text-decoration-color: rgba(120, 212, 235, 0.3);
  word-break: break-all;
}

body[data-page="admin"] .file-list .meta code {
  display: inline-block;
  white-space: normal;
  word-break: break-all;
  background: rgba(10, 14, 19, 0.8) !important;
  border: 1px solid rgba(84,106,128,0.12);
  border-radius: 8px;
  padding: 2px 6px;
}

body[data-page="admin"] .file-actions {
  gap: 6px;
  justify-content: flex-start;
}

body[data-page="admin"] .file-actions form {
  margin: 0;
}

body[data-page="admin"] .bulk-check-wrap {
  background: rgba(10, 16, 21, 0.92) !important;
  border: 1px solid rgba(84, 106, 128, 0.16) !important;
  color: #a8becd !important;
}

body[data-page="admin"] .admin-filter-grid label,
body[data-page="admin"] .admin-bulk-form {
  background: rgba(12, 18, 24, 0.7);
  border: 1px solid rgba(84,106,128,0.1);
  border-radius: 12px;
  padding: 10px;
}

body[data-page="admin"] .admin-filter-grid label {
  gap: 6px;
}

body[data-page="admin"] .admin-bulk-form {
  gap: 8px;
}

body[data-page="admin"] .banner-admin-preview {
  background: rgba(11, 17, 22, 0.95) !important;
  border-color: rgba(84, 106, 128, 0.16) !important;
}

body[data-page="admin"] .banner-admin-placeholder {
  color: #93aabb !important;
}

body[data-page="admin"] .catalog-premium-pill {
  color: #261700 !important;
  background: linear-gradient(135deg, #ffd470, #ffb34a) !important;
  border-color: rgba(255, 190, 70, 0.4) !important;
}

body[data-page="admin"] .file-list li.catalog-link-premium {
  border-color: rgba(255, 201, 92, 0.25) !important;
  background:
    linear-gradient(180deg, rgba(26, 22, 12, 0.78), rgba(15, 19, 24, 0.95)) !important;
  box-shadow: 0 0 0 1px rgba(255,201,92,0.04) inset !important;
}

@media (max-width: 1180px) {
  body[data-page="admin"] .file-list li {
    grid-template-columns: 1fr;
  }

  body[data-page="admin"] .file-actions {
    width: 100%;
    padding-top: 6px;
    border-top: 1px dashed rgba(84,106,128,0.12);
  }
}

/* Gate page + mobile hardening */
.gate-shell {
  padding-top: 42px;
  padding-bottom: 42px;
}

.gate-panel .notice {
  margin-bottom: 12px;
}

.gate-form {
  gap: 12px;
}

.gate-grid {
  align-items: stretch;
}

.gate-panel .captcha-box strong {
  line-height: 1.35;
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 16px;
    gap: 12px;
  }

  .panel {
    padding: 14px;
  }

  .panel-header {
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  .panel-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .workspace,
  .workspace.workspace-links,
  .tools-grid,
  .admin-split,
  .banner-admin-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .catalog-links-pane,
  .catalog-link-form-pane {
    min-width: 0;
  }

  .catalog-link-compose-wrap {
    padding: 14px 10px 12px;
    align-items: start;
  }

  .catalog-link-compose-wrap .form-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .result-row {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .result-row > .btn,
  .result-row > button,
  .result-row > select {
    flex: 0 0 auto;
  }

  .admin-filter-grid,
  .admin-filter-grid-wide {
    grid-template-columns: 1fr !important;
  }

  .admin-bulk-form {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .admin-bulk-form > * {
    min-width: 0;
  }

  .admin-bulk-form select,
  .admin-bulk-form .btn {
    width: 100%;
  }

  .admin-tabs {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 760px) {
  body {
    padding: 10px;
  }

  .shell,
  .shell.narrow,
  .shell.wide {
    width: 100%;
    gap: 12px;
  }

  .tabs,
  .tabs[data-tabs],
  .admin-tabs {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .tabs .tab,
  .admin-tabs .tab {
    flex: 0 0 auto;
    min-width: 132px;
    white-space: nowrap;
    padding: 10px 12px;
  }

  .theme-switcher {
    position: static;
    margin: 6px auto 0;
    width: 100%;
  }

  .theme-switcher-inner {
    width: 100%;
  }

  .theme-switcher-row {
    width: 100%;
    flex-wrap: wrap;
  }

  .theme-switcher-btn {
    flex: 1 1 160px;
    justify-content: center;
  }

  .catalog-link-compose-wrap {
    padding-top: 10px;
  }

  .catalog-link-modal-card .panel-header.compact {
    top: -10px;
  }

  .hero-main {
    grid-template-columns: 1fr !important;
  }

  .hero-stats {
    grid-template-columns: 1fr !important;
  }

  .meta-grid {
    grid-template-columns: 1fr !important;
  }

  .grid.two {
    grid-template-columns: 1fr !important;
  }

  .inline-field {
    flex-wrap: wrap;
    gap: 8px;
  }

  .inline-field > * {
    width: 100%;
    min-width: 0;
  }

  .file-list li {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .file-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .file-actions .btn,
  .file-actions button {
    flex: 1 1 120px;
  }

  .file-list .name,
  .file-row-main .name {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .file-list .meta,
  .file-list .meta code {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .admin-message-details pre {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 280px;
    overflow: auto;
  }

  .result-row input[readonly],
  .result-row > input,
  .result-row textarea,
  code {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .gate-shell {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .bg-orb {
    filter: blur(24px) !important;
    opacity: 0.45 !important;
  }

  .orb-c {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(24px, 9vw, 32px);
    line-height: 1.08;
  }

  .panel-title {
    font-size: 20px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .result-row > .btn,
  .result-row > button,
  .file-actions .btn,
  .file-actions button {
    width: 100%;
    flex: 1 1 100%;
  }

  .tabs .tab,
  .admin-tabs .tab {
    min-width: 118px;
    font-size: 12px;
    padding: 10px 10px;
  }

  .theme-switcher-label {
    width: 100%;
  }

  .theme-switcher-btn {
    flex: 1 1 100%;
  }

  .tool-options {
    grid-template-columns: 1fr !important;
  }

  .catalog-link-compose-wrap {
    padding: 8px 8px 10px;
  }

  .catalog-link-compose-wrap .form-card {
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  .catalog-link-modal-card .panel-header.compact {
    top: -8px;
  }

  .captcha-box strong {
    font-size: 14px;
  }

  .toast-stack {
    left: 10px;
    right: 10px;
    width: auto;
  }
}
