/* Additional neutral dark-grey style. */
body[data-theme="dark-grey"] {
  --bg-top: #1e232a;
  --bg-bottom: #12161c;
  --surface: #252c35;
  --surface-2: #2a313b;
  --text: #e9edf3;
  --muted: #aab4c2;
  --line: #3a4556;
  --accent: #8ea8ff;
  --accent-soft: #c2d2ff;
  --field-bg: #1a212b;
  --output-bg: #141b24;
  --brand-sign-bg: rgba(21, 28, 39, 0.9);
  --brand-sign-border: rgba(122, 139, 167, 0.62);
  --brand-sign-title: #ecf3ff;
  --brand-sign-meta: #d2dcef;
  --brand-sign-separator: var(--accent);
  color: var(--text);
  background:
    radial-gradient(1200px 720px at -10% -20%, rgba(122, 136, 160, 0.26) 0, transparent 62%),
    radial-gradient(980px 660px at 110% -10%, rgba(96, 114, 146, 0.18) 0, transparent 58%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

body[data-theme="dark-grey"] .brand-header {
  background: linear-gradient(180deg, rgba(45, 53, 66, 0.9), rgba(24, 30, 39, 0.95));
  box-shadow: 0 10px 28px rgba(2, 6, 12, 0.45);
}

body[data-theme="dark-grey"] header code {
  color: #e1e8f2;
  background: rgba(21, 28, 38, 0.85);
  border: 1px solid #47566c;
}

body[data-theme="dark-grey"] .panel {
  background: linear-gradient(180deg, rgba(40, 48, 60, 0.95), rgba(28, 35, 45, 0.96));
  box-shadow: 0 8px 24px rgba(3, 8, 16, 0.45);
}

body[data-theme="dark-grey"] .panel::after {
  background: radial-gradient(circle at 45% 35%, rgba(156, 172, 196, 0.16), rgba(156, 172, 196, 0.02) 72%);
}

body[data-theme="dark-grey"] .panel::before {
  background: radial-gradient(circle at 60% 40%, rgba(182, 194, 214, 0.11), rgba(182, 194, 214, 0.01) 72%);
}

body[data-theme="dark-grey"] .hover-info {
  border: 1px solid rgba(159, 177, 207, 0.62);
  color: #d4dff0;
}

body[data-theme="dark-grey"] .hover-info-tip {
  border: 1px solid rgba(122, 139, 167, 0.58);
  background: rgba(21, 28, 39, 0.97);
  color: #e1e8f5;
  box-shadow: 0 10px 20px rgba(3, 8, 16, 0.52);
}

body[data-theme="dark-grey"] .pipeline-organizer {
  border-top: 1px solid rgba(120, 136, 161, 0.35);
}

body[data-theme="dark-grey"] .lambda-row {
  border: 1px solid rgba(116, 132, 157, 0.46);
  background: rgba(19, 26, 36, 0.72);
  outline: 1px solid rgba(96, 112, 138, 0.36);
}

body[data-theme="dark-grey"] .lambda-row .lambda-input {
  border: 1px solid rgba(116, 132, 157, 0.45);
  background: #161e28;
  color: #d8e3f4;
}

body[data-theme="dark-grey"] .lambda-row:fullscreen,
body[data-theme="dark-grey"] .lambda-row:-webkit-full-screen,
body[data-theme="dark-grey"] .lambda-row.lambda-force-fullscreen,
body[data-theme="dark-grey"] .lambda-row.lambda-native-fullscreen {
  outline: 2px solid rgba(142, 166, 209, 0.55);
}

body[data-theme="dark-grey"] input::placeholder,
body[data-theme="dark-grey"] textarea::placeholder {
  color: #8895a8;
}

body[data-theme="dark-grey"] .numbered-textarea-shell .line-numbers {
  border-right: 1px solid rgba(91, 106, 131, 0.55);
  color: #9aa8bf;
  background: rgba(20, 27, 37, 0.95);
}

body[data-theme="dark-grey"] button {
  border: 1px solid #5a6b87;
  background: linear-gradient(180deg, #465570, #2f3a4f);
}

body[data-theme="dark-grey"] button.secondary {
  background: rgba(22, 29, 41, 0.9);
  border-color: #657896;
}

body[data-theme="dark-grey"] .out {
  color: #dce6f8;
}

body[data-theme="dark-grey"] .output-mode-btn {
  background: rgba(22, 29, 41, 0.9);
}

body[data-theme="dark-grey"] .output-mode-btn:hover {
  border-color: rgba(166, 188, 228, 0.74);
  background: rgba(126, 146, 181, 0.26);
}

body[data-theme="dark-grey"] .output-mode-btn.is-active {
  border-color: rgba(188, 205, 239, 0.84);
  background: rgba(135, 154, 187, 0.42);
}

body[data-theme="dark-grey"] .copy-json-btn,
body[data-theme="dark-grey"] .fullscreen-json-btn {
  background: rgba(20, 27, 38, 0.93);
}

body[data-theme="dark-grey"] .copy-json-btn:hover,
body[data-theme="dark-grey"] .fullscreen-json-btn:hover,
body[data-theme="dark-grey"] .fullscreen-json-btn.is-active {
  background: rgba(52, 65, 84, 0.97);
}

body[data-theme="dark-grey"] .footer-brand-mark {
  border: 1px solid #52637e;
}

body[data-theme="dark-grey"] footer code {
  color: #dce6f5;
  background: rgba(21, 28, 39, 0.84);
  border: 1px solid #4d5f7b;
}

body[data-theme="dark-grey"] .theme-select {
  background: rgba(22, 29, 41, 0.9);
  color: #e1e8f2;
  border: 1px solid #657896;
}

body[data-theme="dark-grey"] .theme-select:hover {
  border-color: var(--accent);
}

body[data-theme="dark-grey"] .theme-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(142, 168, 255, 0.22);
}

body[data-theme="dark-grey"] .theme-demo-card {
  border-color: rgba(142, 157, 181, 0.32);
  background: rgba(20, 27, 38, 0.55);
}

body[data-theme="dark-grey"] .k3-badge {
  background: rgba(142, 168, 255, 0.18);
  color: #dce7ff;
  border-color: rgba(142, 168, 255, 0.42);
}

body[data-theme="dark-grey"] .k3-tag {
  background: rgba(22, 29, 41, 0.9);
  color: #dfe8f8;
  border-color: #657896;
}

body[data-theme="dark-grey"] .k3-table th {
  background: #364253;
  color: #e9edf5;
  border-bottom: 1px solid rgba(167, 184, 214, 0.2);
}

body[data-theme="dark-grey"] .k3-table td {
  border-bottom: 1px solid rgba(167, 184, 214, 0.12);
}

body[data-theme="dark-grey"] .k3-table tbody tr:hover td {
  background: rgba(61, 74, 95, 0.45);
}

body[data-theme="dark-grey"] .k3-demo-chart,
body[data-theme="dark-grey"] .k3-mini-graph {
  border-color: rgba(141, 160, 192, 0.45);
  background: rgba(18, 25, 35, 0.75);
}

body[data-theme="dark-grey"] .k3-chart-axis {
  stroke: rgba(192, 205, 230, 0.4);
}

body[data-theme="dark-grey"] .k3-series-legend,
body[data-theme="dark-grey"] .k3-graph-legend {
  color: #c3cde0;
}
