:root {
  color-scheme: light;
  --bg: #f5f8fb;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-strong: rgba(255, 255, 255, 0.96);
  --ink: #142236;
  --muted: #68778a;
  --line: rgba(99, 125, 156, 0.22);
  --brand: #216ca9;
  --brand-deep: #185083;
  --mint: #0bb798;
  --mint-soft: #e5fbf5;
  --rose: #e85d73;
  --gold: #bd8517;
  --gold-soft: #fff7d9;
  --shadow: 0 30px 90px rgba(27, 55, 90, 0.18);
  --shadow-card: 0 18px 42px rgba(27, 55, 90, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e8f3f8;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 13%, rgba(74, 173, 244, 0.2), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(26, 190, 162, 0.22), transparent 28%),
    linear-gradient(135deg, #edf7ff 0%, #f7fbff 45%, #e8f8f4 100%);
  overflow-x: hidden;
}

body.dark-mode {
  --bg: #07111d;
  --paper: rgba(17, 27, 43, 0.86);
  --paper-strong: rgba(22, 34, 53, 0.96);
  --ink: #edf6ff;
  --muted: #9fb0c5;
  --line: rgba(161, 184, 210, 0.2);
  --brand: #72c7ff;
  --brand-deep: #9ad8ff;
  --mint: #2ee0bd;
  --mint-soft: rgba(28, 94, 80, 0.4);
  --rose: #ff8092;
  --gold: #ffd166;
  --gold-soft: rgba(122, 88, 17, 0.4);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(45, 123, 201, 0.25), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(26, 190, 162, 0.14), transparent 30%),
    linear-gradient(135deg, #07111d 0%, #101b2d 48%, #061a1a 100%);
}

body.dark-mode .page-bg {
  background:
    linear-gradient(100deg, rgba(255,255,255,0.04), transparent 24%, rgba(255,255,255,0.07) 56%, transparent 75%),
    radial-gradient(circle at 50% 34%, rgba(69, 137, 203, 0.12), transparent 36%);
}

body.dark-mode .brand-pill,
body.dark-mode .soft-btn,
body.dark-mode .stats-card,
body.dark-mode .console-card,
body.dark-mode .glass-panel,
body.dark-mode .result-box,
body.dark-mode .channel-card,
body.dark-mode .input-wrap,
body.dark-mode textarea,
body.dark-mode .ghost-btn,
body.dark-mode .clear-btn,
body.dark-mode .online-pill,
body.dark-mode .buy-cdk,
body.dark-mode .api-doc-btn,
body.dark-mode .theme-toggle,
body.dark-mode .lang-switch,
body.dark-mode .modal,
body.dark-mode .record-card,
body.dark-mode .result-link input {
  background-color: rgba(17, 27, 43, 0.82);
  color: var(--ink);
  border-color: var(--line);
}

body.dark-mode h1,
body.dark-mode .tab.active,
body.dark-mode .ghost-btn,
body.dark-mode .api-doc-btn,
body.dark-mode .buy-cdk,
body.dark-mode .theme-toggle {
  color: #91d7ff;
}

body.dark-mode .hero p,
body.dark-mode .section-head span,
body.dark-mode .section-head small,
body.dark-mode .channel-card em,
body.dark-mode .panel-foot,
body.dark-mode .empty-result,
body.dark-mode .record-meta,
body.dark-mode .modal p,
body.dark-mode .modal li {
  color: var(--muted);
}

body.dark-mode .tabs {
  background: linear-gradient(180deg, rgba(20, 33, 52, 0.78), rgba(12, 24, 38, 0.72));
}

body.dark-mode .tab {
  background: rgba(14, 24, 39, 0.78);
  color: #a9b8cb;
}

body.dark-mode .tab.active,
body.dark-mode .channel-card.active {
  background: linear-gradient(135deg, rgba(28, 45, 69, 0.95), rgba(13, 45, 61, 0.82));
}

body.dark-mode .input-wrap span {
  background: rgba(24, 63, 91, 0.62);
  color: #9bdcff;
}

body.dark-mode input,
body.dark-mode textarea {
  color: var(--ink);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #76889f;
}

body.dark-mode .heatmap,
body.dark-mode .records-empty,
body.dark-mode .mail-hint {
  background: rgba(12, 22, 36, 0.74);
  color: var(--muted);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.25), transparent 24%, rgba(255,255,255,0.44) 56%, transparent 75%),
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.86), transparent 36%);
  filter: blur(0.2px);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  margin: 28px auto 72px;
}

.hero {
  text-align: center;
  padding: 3px 0 16px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(82, 111, 142, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 28px rgba(31, 78, 123, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: #1f3650;
  font-size: 14px;
  font-weight: 700;
}

.brand-pill span {
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, #02b690, #1484a6);
  font-size: 12px;
}

h1 {
  margin: 22px 0 10px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.04;
  color: #165b96;
  letter-spacing: -0.055em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero p {
  margin: 0 auto;
  max-width: 760px;
  color: #516073;
  font-size: 16px;
  font-weight: 650;
}

.helper-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.soft-btn,
.ghost-btn,
.clear-btn,
.primary-action,
.primary-link,
.api-doc-btn,
.buy-cdk,
.tab {
  border: 1px solid var(--line);
  text-decoration: none;
  transition: 0.18s ease;
}

.soft-btn {
  padding: 10px 19px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 24px rgba(31, 78, 123, 0.09), inset 0 1px 0 rgba(255,255,255,0.94);
  color: #1c617c;
  font-weight: 800;
}

.soft-btn.gold {
  color: #8a6413;
  background: rgba(255, 251, 232, 0.9);
}

.soft-btn:hover,
.ghost-btn:hover,
.api-doc-btn:hover,
.buy-cdk:hover,
.tab:hover,
.clear-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(31, 78, 123, 0.12);
}

.stats-card {
  width: min(100%, 980px);
  margin: 0 auto 22px;
  padding: 12px 16px 14px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 12px;
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.metrics {
  display: flex;
  justify-content: center;
  gap: 27px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.metrics div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.metrics strong {
  font-size: 18px;
}

.metrics em {
  color: #526174;
  font-style: normal;
}

.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: inline-block;
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.88);
}

.dot.done { color: var(--mint); background: #bff2e8; }
.dot.wait { color: #d6a319; background: #fff5c4; }
.dot.run { color: #4096c4; background: #dff4ff; }
.dot.fail { color: var(--rose); background: #ffe0e5; }

.heatmap {
  display: grid;
  grid-template-columns: repeat(48, minmax(7px, 1fr));
  gap: 4px;
  width: 100%;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.88);
}

.heat-cell {
  aspect-ratio: 1;
  min-height: 10px;
  border-radius: 3px;
  background: #13b99c;
  opacity: 0.9;
}

.heat-cell.failed { background: #ea6576; }
.heat-cell.processing { background: #58a9ca; }
.heat-cell.queued { background: #e5b431; }
.heat-cell.blank { background: rgba(155, 173, 193, 0.35); }

.console-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.tabs {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(232,243,249,0.42));
}

.tab {
  min-width: 190px;
  padding: 13px 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  color: #526174;
  font-weight: 850;
}

.tab.active {
  background: rgba(255,255,255,0.98);
  color: #216ca9;
  box-shadow: 0 12px 26px rgba(31,78,123,0.1), inset 0 1px 0 #fff;
}

.tab span {
  margin-left: 8px;
  color: #8a98aa;
}

.view {
  display: none;
  padding: 22px;
}

.view.active {
  display: block;
}

.channel-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  background: rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.channel-box legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px 22px;
  border: 1px solid rgba(89, 124, 161, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 12px 28px rgba(42, 73, 107, 0.08);
  cursor: pointer;
}

.channel-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.channel-card.active {
  border-color: rgba(33, 108, 169, 0.46);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(235, 247, 255, 0.82));
}

.channel-card.disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

.badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
  color: #0a8c75;
  background: conic-gradient(from 0deg, #eafff8, #fff9dc, #eafff8);
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.75);
}

.badge.br { color: #168d6d; }
.badge.nl, .badge.kr { color: #7f8b9d; }

.channel-card strong,
.channel-card em {
  display: block;
}

.channel-card strong {
  margin-bottom: 4px;
  font-size: 18px;
}

.channel-card em {
  color: #68778a;
  font-style: normal;
  font-size: 14px;
}

.glass-panel,
.result-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(98, 124, 154, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.9);
}

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

.section-head strong {
  font-size: 17px;
}

.section-head span,
.section-head small {
  color: #778397;
  font-size: 13px;
  font-weight: 700;
}

.section-head small {
  margin-left: 6px;
  color: #c24c5d;
}

.input-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(88, 116, 148, 0.24);
  border-radius: 17px;
  background: rgba(255,255,255,0.72);
}

.input-wrap span {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0 19px;
  color: #216ca9;
  background: rgba(233, 246, 255, 0.84);
  border-right: 1px solid var(--line);
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 0;
  color: var(--ink);
  background: transparent;
  outline: none;
}

.input-wrap input {
  height: 58px;
  padding: 0 18px;
  font-weight: 750;
}

textarea {
  display: block;
  min-height: 170px;
  resize: vertical;
  padding: 20px;
  border: 1px solid rgba(88, 116, 148, 0.24);
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  line-height: 1.6;
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #68778a;
  font-size: 14px;
}

.panel-foot.compact {
  justify-content: space-between;
}

.ghost-btn,
.clear-btn,
.api-doc-btn,
.buy-cdk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.76);
  color: #216ca9;
  font-weight: 850;
}

.ghost-btn.right {
  margin-left: auto;
}

.remaining {
  color: #00856e;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(229, 251, 245, 0.82);
}

.mail-hint {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #617083;
  background: rgba(236, 241, 247, 0.92);
  font-weight: 750;
}

.mail-hint.ok {
  color: #007762;
  background: var(--mint-soft);
}

.empty-result {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #627083;
}

.empty-result strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-result p {
  margin: 4px 0 0;
  color: #8894a3;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.job-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  color: #526174;
  font-weight: 850;
}

.job-line b {
  color: #216ca9;
}

.progress-track {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216, 227, 238, 0.88);
}

.progress-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #08b592, #2994ce);
  transition: width 0.25s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #68778a;
  font-size: 14px;
  font-weight: 800;
}

.result-error {
  margin-top: 14px;
  padding: 12px 14px;
  color: #a12e43;
  border: 1px solid rgba(232,93,115,0.28);
  border-radius: 14px;
  background: rgba(255, 239, 242, 0.88);
}

.qr-box {
  width: min(260px, 80vw);
  margin: 18px auto 8px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(31, 78, 123, 0.12);
}

.qr-box img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.result-link {
  display: block;
  margin-top: 16px;
}

.result-link span {
  display: block;
  margin-bottom: 8px;
  color: #526174;
  font-weight: 850;
}

.result-link input {
  height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(88, 116, 148, 0.24);
  border-radius: 14px;
  background: rgba(255,255,255,0.82);
}

.result-actions,
.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.primary-link,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, #0aa887, #236fb0);
  box-shadow: 0 16px 30px rgba(23, 112, 151, 0.22);
  font-weight: 950;
}

.primary-action {
  min-width: 180px;
}

.primary-action:disabled,
.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.clear-btn {
  color: #617083;
}

.message {
  min-height: 22px;
  margin-top: 14px;
  color: #617083;
  font-weight: 760;
}

.message.success { color: #00836d; }
.message.error { color: #be4357; }
.message.working { color: #216ca9; }

.records-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.records-body {
  display: grid;
  gap: 12px;
}

.records-empty {
  padding: 38px 16px;
  border-radius: 20px;
  color: #778397;
  background: rgba(255,255,255,0.6);
  text-align: center;
}

.record-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(88, 116, 148, 0.2);
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 10px 24px rgba(31, 78, 123, 0.08);
}

.record-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #68778a;
  font-size: 13px;
}

.record-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(234, 241, 248, 0.8);
}

.floating-tools {
  position: fixed;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.online-pill {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  color: #526174;
  box-shadow: var(--shadow-card);
  font-weight: 800;
}

.online-pill strong {
  color: #0b8e76;
}

.buy-cdk {
  color: #216ca9;
}

.api-doc-btn {
  color: #216ca9;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.76);
  color: #216ca9;
  font-weight: 850;
  transition: 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(31, 78, 123, 0.12);
}

body.dark-mode .theme-toggle {
  background: rgba(255,255,255,0.08);
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.76);
  box-shadow: var(--shadow-card);
}

.lang-switch button {
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  background: transparent;
  color: #617083;
  font-weight: 850;
}

.lang-switch .active {
  color: white;
  background: linear-gradient(135deg, #0aa887, #236fb0);
}

.modal {
  width: min(840px, calc(100% - 28px));
  max-height: min(86vh, 800px);
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 36px 120px rgba(19, 45, 76, 0.32);
  color: var(--ink);
}

.modal::backdrop {
  background: rgba(26, 42, 62, 0.32);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(231, 239, 247, 0.92);
  color: #536276;
  font-size: 24px;
}

.modal h2 {
  margin: 0 0 12px;
  color: #165b96;
  font-size: 26px;
}

.modal h3 {
  margin: 22px 0 8px;
}

.modal p,
.modal li {
  color: #526174;
  line-height: 1.75;
}

.modal code,
.modal pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.modal pre {
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #102337;
  color: #def7ff;
  line-height: 1.6;
}

.api-grid {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 12px;
}

.api-grid th,
.api-grid td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(88, 116, 148, 0.16);
  text-align: left;
}

.api-grid th {
  background: rgba(229, 242, 251, 0.78);
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 22px, 1100px);
    margin-top: 18px;
  }

  .channel-box {
    grid-template-columns: 1fr;
  }

  .tabs {
    overflow-x: auto;
  }

  .tab {
    min-width: 150px;
  }

  .floating-tools {
    position: static;
    width: min(100% - 22px, 1100px);
    margin: -46px auto 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .metrics {
    gap: 12px;
  }

  .metrics div {
    min-width: 42%;
    justify-content: center;
  }

  .heatmap {
    grid-template-columns: repeat(24, minmax(8px, 1fr));
  }

  .view {
    padding: 14px;
  }

  .panel-foot.compact {
    justify-content: flex-start;
  }

  .ghost-btn.right {
    margin-left: 0;
  }
}

/* Unified dark mode overrides: keep this block at the end so it wins the cascade. */
body.dark-mode {
  color-scheme: dark;
  --ink: #eef6ff;
  --muted: #a7b5c8;
  --line: rgba(150, 174, 204, 0.22);
  --brand: #8bd5ff;
  --brand-deep: #b4e4ff;
  --mint: #2ee6c2;
  --rose: #ff8095;
  --gold: #ffd56b;
  color: var(--ink) !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(39, 113, 186, 0.28), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(21, 181, 148, 0.16), transparent 32%),
    linear-gradient(135deg, #07111d 0%, #0d1728 48%, #061a1a 100%) !important;
}

body.dark-mode .page-bg {
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.04), transparent 24%, rgba(255, 255, 255, 0.06) 56%, transparent 75%),
    radial-gradient(circle at 50% 34%, rgba(69, 137, 203, 0.12), transparent 38%) !important;
}

body.dark-mode .brand-pill,
body.dark-mode .stats-card,
body.dark-mode .console-card,
body.dark-mode .channel-box,
body.dark-mode .glass-panel,
body.dark-mode .result-box,
body.dark-mode .record-card,
body.dark-mode .records-empty,
body.dark-mode .modal {
  border-color: var(--line) !important;
  background: linear-gradient(145deg, rgba(20, 33, 53, 0.9), rgba(10, 21, 35, 0.78)) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  color: var(--ink) !important;
}

body.dark-mode .tabs {
  border-color: var(--line) !important;
  background: linear-gradient(180deg, rgba(24, 38, 59, 0.92), rgba(11, 22, 37, 0.82)) !important;
}

body.dark-mode .tab,
body.dark-mode .soft-btn,
body.dark-mode .ghost-btn,
body.dark-mode .clear-btn,
body.dark-mode .api-doc-btn,
body.dark-mode .buy-cdk,
body.dark-mode .theme-toggle,
body.dark-mode .online-pill,
body.dark-mode .lang-switch {
  border-color: var(--line) !important;
  background: rgba(24, 39, 61, 0.88) !important;
  color: #dcecff !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.dark-mode .tab.active,
body.dark-mode .lang-switch .active,
body.dark-mode .primary-action,
body.dark-mode .primary-link {
  border-color: rgba(75, 193, 235, 0.36) !important;
  background: linear-gradient(135deg, #0ba98b, #247bc5) !important;
  color: #ffffff !important;
}

body.dark-mode .soft-btn.gold {
  background: rgba(68, 51, 18, 0.78) !important;
  color: #ffe09a !important;
  border-color: rgba(255, 209, 102, 0.28) !important;
}

body.dark-mode .channel-card {
  border-color: var(--line) !important;
  background: rgba(18, 31, 49, 0.82) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
  color: var(--ink) !important;
}

body.dark-mode .channel-card.active {
  border-color: rgba(105, 209, 255, 0.55) !important;
  background: linear-gradient(135deg, rgba(25, 47, 72, 0.98), rgba(12, 55, 66, 0.82)) !important;
}

body.dark-mode .channel-card.disabled {
  opacity: 0.38;
}

body.dark-mode .input-wrap,
body.dark-mode textarea,
body.dark-mode .result-link input {
  border-color: var(--line) !important;
  background: rgba(9, 18, 31, 0.72) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.dark-mode .input-wrap span {
  border-color: var(--line) !important;
  background: rgba(25, 72, 102, 0.52) !important;
  color: #9cddff !important;
}

body.dark-mode input,
body.dark-mode textarea {
  color: var(--ink) !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #75879e !important;
}

body.dark-mode h1,
body.dark-mode .modal h2 {
  color: #9bdcff !important;
  text-shadow: none !important;
}

body.dark-mode .hero p,
body.dark-mode .section-head span,
body.dark-mode .section-head small,
body.dark-mode .channel-card em,
body.dark-mode .panel-foot,
body.dark-mode .empty-result,
body.dark-mode .empty-result p,
body.dark-mode .record-meta,
body.dark-mode .progress-meta,
body.dark-mode .modal p,
body.dark-mode .modal li {
  color: var(--muted) !important;
}

body.dark-mode .heatmap {
  background: rgba(8, 17, 29, 0.72) !important;
  box-shadow: inset 0 0 0 1px var(--line) !important;
}

body.dark-mode .mail-hint,
body.dark-mode .record-meta span {
  background: rgba(32, 48, 70, 0.86) !important;
  color: var(--muted) !important;
}

body.dark-mode .mail-hint.ok,
body.dark-mode .remaining {
  background: rgba(16, 93, 78, 0.42) !important;
  color: #80f4d5 !important;
}

body.dark-mode .progress-track {
  background: rgba(68, 85, 105, 0.42) !important;
}

body.dark-mode .modal-close {
  background: rgba(35, 51, 74, 0.95) !important;
  color: #dcecff !important;
}

body.dark-mode .api-grid th {
  background: rgba(32, 63, 91, 0.78) !important;
}

body.dark-mode .api-grid td,
body.dark-mode .api-grid th {
  border-color: var(--line) !important;
}
