:root {
  color-scheme: dark;
  --bg: #07100e;
  --panel: rgba(17, 31, 27, 0.82);
  --panel-solid: #101e1a;
  --line: rgba(208, 238, 222, 0.13);
  --line-bright: rgba(185, 255, 102, 0.35);
  --text: #f3f8f4;
  --muted: #91a59c;
  --accent: #b9ff66;
  --accent-soft: rgba(185, 255, 102, 0.1);
  --orange: #ff9e58;
  --error: #ff7d74;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 40% -20%, #17342c 0, var(--bg) 46%); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: 0; width: 32rem; height: 32rem; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.ambient-one { right: -15rem; top: 18rem; background: var(--accent); }
.ambient-two { left: -18rem; bottom: -10rem; background: #36b8a0; }
.shell { position: relative; z-index: 1; width: min(1320px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 62px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; letter-spacing: .04em; }
.brand b { color: var(--accent); font-weight: 650; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--accent-soft); }
.brand-mark i { width: 2px; border-radius: 2px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 10px; }.brand-mark i:nth-child(2) { height: 20px; }.brand-mark i:nth-child(3) { height: 14px; }.brand-mark i:nth-child(4) { height: 23px; }
.privacy-pill { display: flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 12px; }
.privacy-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.login-view { min-height: calc(100vh - 166px); display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 9vw; padding: 70px 4vw; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .22em; }
.login-copy h1, .hero-copy h1 { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.08; letter-spacing: -.055em; font-weight: 550; }
.login-copy h1 em { color: var(--accent); font-style: normal; }
.login-copy > p, .hero-copy > p { max-width: 600px; margin: 28px 0; color: var(--muted); line-height: 1.8; }
.feature-row { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-row span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; color: #bed0c6; font-size: 12px; }
.login-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(22, 39, 34, .96), rgba(10, 21, 18, .92)); box-shadow: 0 30px 80px rgba(0, 0, 0, .28); }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 30px; border-radius: 13px; color: var(--accent); background: var(--accent-soft); font-size: 28px; }
.login-card h2 { margin: 0 0 8px; font-size: 24px; font-weight: 600; }.login-card > p { margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.login-card label { display: block; margin-bottom: 9px; color: #bccdc4; font-size: 12px; }
.password-wrap { position: relative; }.password-wrap input { width: 100%; padding: 14px 62px 14px 15px; border: 1px solid var(--line); border-radius: 10px; outline: none; background: #09130f; color: var(--text); }.password-wrap input:focus { border-color: var(--line-bright); box-shadow: 0 0 0 3px var(--accent-soft); }
.password-wrap button { position: absolute; right: 8px; top: 7px; padding: 7px 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.primary-button { width: 100%; margin-top: 18px; padding: 14px 16px; display: flex; justify-content: space-between; border: 0; border-radius: 10px; background: var(--accent); color: #10200d; cursor: pointer; font-weight: 700; }.primary-button:hover { filter: brightness(1.08); }.primary-button:disabled { opacity: .55; cursor: wait; }
.inline-status { min-height: 18px; margin-top: 12px; color: var(--error); font-size: 12px; text-align: center; }

.app-view { flex: 1; padding: 16px 0 22px; }
.app-intro { max-width: 680px; margin: 0 auto 10px; color: var(--muted); text-align: center; line-height: 1.5; font-size: 12px; }
.upload-card, .chart-card, .audio-panel { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); backdrop-filter: blur(18px); }
.upload-card { padding: 10px 14px 0; }
.drop-zone { width: 100%; min-height: 70px; padding: 10px 18px; display: flex; align-items: center; gap: 16px; border: 1px dashed rgba(185, 255, 102, .26); border-radius: 13px; color: var(--text); text-align: left; background: linear-gradient(90deg, rgba(185,255,102,.045), transparent); cursor: pointer; transition: .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.upload-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: 22px; }
.drop-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; }.drop-copy strong { font-size: 15px; }.drop-copy small { color: var(--muted); }
.choose-chip, .outline-button, .secondary-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; color: #d7e6de; background: rgba(255,255,255,.03); font-size: 12px; }
.file-row { min-height: 76px; display: flex; align-items: center; gap: 15px; padding: 12px 16px; }
.file-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font: 700 10px ui-monospace, monospace; }
.file-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }.file-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-copy span { color: var(--muted); font-size: 12px; }
.text-button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 12px; }
.settings-view { padding: 12px 0 28px; }
.settings-header { display: grid; grid-template-columns: 160px 1fr 160px; align-items: center; min-height: 88px; margin-bottom: 12px; text-align: center; }.settings-header > div { grid-column: 2; }.settings-header span { color: var(--accent); font: 10px ui-monospace, monospace; letter-spacing: .16em; }.settings-header h1 { margin: 5px 0 3px; font-size: 24px; font-weight: 580; }.settings-header p { margin: 0; color: var(--muted); font-size: 11px; }
.back-button { justify-self: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: #3b5d50; background: var(--panel); cursor: pointer; font-size: 11px; }.back-button:hover { border-color: var(--line-bright); color: var(--accent); }
.advanced-panel { margin: 0; }.advanced-panel > p { color: var(--muted); font-size: 11px; }
.settings-card { padding: 18px 20px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 10px 36px rgba(42,74,61,.055); }
.settings-card .electrode-levels { max-height: 410px; }
.settings-card .level-section { margin-top: 14px; padding-top: 14px; }
.regenerate-button { min-width: 210px; margin: 4px 0 18px; border-color: var(--line-bright); color: var(--accent); }
.parameter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }.parameter-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 11px; }.parameter-grid input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #09130f; color: var(--text); outline: none; }.parameter-grid input:focus { border-color: var(--line-bright); }
.level-section { margin: 18px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.level-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }.level-heading > div:first-child { display: flex; flex-direction: column; gap: 5px; }.level-heading strong { font-size: 13px; }.level-heading small { color: var(--muted); font-size: 10px; }
.bulk-levels { display: flex; align-items: flex-end; gap: 8px; }.bulk-levels label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 9px; }.bulk-levels input { width: 70px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: #09130f; color: var(--text); }.bulk-levels button { padding: 8px 10px; border: 1px solid var(--line-bright); border-radius: 7px; background: var(--accent-soft); color: var(--accent); cursor: pointer; font-size: 10px; }
.electrode-level-row, .level-columns > div { display: grid; grid-template-columns: 50px 56px 1fr 1fr 70px; align-items: center; gap: 9px; }.level-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 14px 8px; color: #60736a; font-size: 9px; text-transform: uppercase; }.electrode-levels { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 18px; max-height: 420px; overflow-y: auto; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 13, 10, .45); }.electrode-level-row { padding: 7px 8px; border-bottom: 1px solid rgba(208,238,222,.06); transition: opacity .18s ease, background .18s ease; }.electrode-level-row strong { color: var(--accent); font: 10px ui-monospace, monospace; }.electrode-level-row input[type="number"] { width: 100%; padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: #08120f; color: var(--text); outline: none; font-size: 11px; }.electrode-level-row input[type="number"]:focus { border-color: var(--line-bright); }.electrode-level-row.invalid { background: rgba(255,125,116,.08); }.electrode-level-row.invalid input[type="number"] { border-color: rgba(255,125,116,.55); }.electrode-level-row.electrode-off { opacity: .48; background: rgba(117,133,126,.055); }.electrode-level-row.electrode-off strong { color: var(--muted); }.electrode-level-row input[type="number"]:disabled { cursor: not-allowed; }
.electrode-switch { position: relative; display: inline-flex; width: 38px; height: 22px; cursor: pointer; }.electrode-switch input { position: absolute; opacity: 0; pointer-events: none; }.electrode-switch span { width: 38px; height: 22px; border-radius: 99px; background: #bac7c0; box-shadow: inset 0 0 0 1px rgba(29,48,41,.12); transition: .18s ease; }.electrode-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.22); transition: .18s ease; }.electrode-switch input:checked + span { background: var(--accent); }.electrode-switch input:checked + span::after { transform: translateX(16px); }.electrode-switch input:focus-visible + span { outline: 2px solid var(--line-bright); outline-offset: 2px; }.level-range { color: var(--muted); font: 9px ui-monospace, monospace; text-align: right; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.secondary-button { margin: 5px 0 18px; cursor: pointer; }.secondary-button:disabled { opacity: .4; cursor: default; }
.process-status { min-height: 30px; display: flex; align-items: center; gap: 9px; padding: 7px 4px; color: var(--muted); font-size: 11px; }.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #60736a; }.process-status.working .status-dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 1s infinite; }.process-status.error { color: var(--error); }.process-status.error .status-dot { background: var(--error); }.process-status #elapsedText { margin-left: auto; }
@keyframes pulse { 50% { opacity: .35; } }

.result-section { padding-top: 6px; }.section-heading { margin: 0 2px 9px; display: flex; align-items: center; justify-content: space-between; }.section-heading > div { display: flex; align-items: center; gap: 10px; }.step-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--accent); font: 10px ui-monospace, monospace; }.section-heading h2 { margin: 0 0 2px; font-size: 16px; font-weight: 580; }.section-heading p { margin: 0; color: var(--muted); font-size: 10px; }.outline-button { cursor: pointer; }.outline-button:hover, .secondary-button:hover { border-color: var(--line-bright); color: var(--accent); }
.analysis-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.chart-card { padding: 12px; min-width: 0; }.chart-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--muted); font: 10px ui-monospace, monospace; }.chart-meta > span { display: flex; align-items: center; gap: 7px; }.chart-meta > span:nth-child(2) { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chart-action { padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.72); color: var(--text); cursor: pointer; font-size: 10px; }.chart-action:hover { border-color: var(--line-bright); color: var(--accent); }
.canvas-wrap { position: relative; min-height: 210px; }.canvas-wrap canvas { display: block; width: calc(100% - 32px); height: 210px; border-radius: 6px; cursor: crosshair; touch-action: none; }.color-legend { position: absolute; right: 0; top: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; }.color-legend i { flex: 1; width: 7px; border-radius: 99px; background: linear-gradient(to bottom, #efff70, #ff8b45, #cc3557, #33295c, #07110f); }
.chart-timeline { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 0 5px; color: var(--muted); font-size: 10px; }.chart-timeline b { color: var(--text); font: 500 10px ui-monospace, monospace; }
.audio-heading { margin-top: 14px; justify-content: flex-start; }.audio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.audio-panel { padding: 12px 14px; display: grid; grid-template-columns: minmax(175px, .7fr) 1fr; align-items: center; gap: 12px; }.monitor-panel { grid-template-columns: minmax(175px, .7fr) 1fr auto; border-color: rgba(185, 255, 102, .23); background: linear-gradient(135deg, rgba(185,255,102,.07), var(--panel)); }.audio-title { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }.audio-title h3 { margin: 0 0 3px; font-size: 13px; }.audio-title p { margin: 0; color: var(--muted); font-size: 10px; }.audio-badge { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-size: 11px; font-weight: 700; }.audio-badge.original { color: #a9c3b6; background: rgba(169,195,182,.1); }.audio-badge.monitor { color: var(--accent); background: var(--accent-soft); }.audio-panel audio { width: 100%; min-width: 0; height: 32px; color-scheme: dark; }.download-button { margin-top: 0; padding: 8px 10px; display: flex; gap: 12px; justify-content: space-between; border: 1px solid var(--line-bright); border-radius: 8px; color: var(--accent); text-decoration: none; white-space: nowrap; font-size: 11px; }
footer { min-height: 48px; margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; } footer span { color: #becfc6; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1120px); }
  .login-view { grid-template-columns: 1fr; gap: 48px; padding: 54px 0; }
  .login-copy h1 { font-size: 48px; }.login-card { padding: 26px; }
  .topbar { height: 70px; }
  .app-view { padding-top: 20px; }.app-intro { margin-bottom: 14px; }
  .upload-card { padding: 14px; }.drop-zone { min-height: 116px; padding: 18px; flex-direction: column; text-align: center; }.upload-icon { flex-basis: 46px; height: 46px; }.drop-copy { gap: 7px; }.choose-chip { display: none; }
  .settings-view { padding-top: 0; }.settings-header { grid-template-columns: 1fr; align-items: start; min-height: 0; margin-bottom: 16px; text-align: left; }.settings-header > div { grid-column: 1; margin-top: 22px; }.settings-header h1 { font-size: 22px; }.back-button { grid-row: 1; }
  .settings-card { padding: 16px 14px 0; }
  .parameter-grid { grid-template-columns: repeat(2, 1fr); }
  .level-heading { align-items: stretch; flex-direction: column; }.bulk-levels { align-items: flex-end; }.bulk-levels label { flex: 1; }.bulk-levels input { width: 100%; }.electrode-levels { grid-template-columns: 1fr; max-height: 390px; }.level-columns { display: none; }
  .result-section { padding-top: 28px; }.analysis-stack { grid-template-columns: 1fr; }.chart-timeline { grid-column: auto; }
  .canvas-wrap { min-height: 300px; }.canvas-wrap canvas { height: 300px; }
  .audio-heading { margin-top: 32px; }.audio-grid { grid-template-columns: 1fr; }.audio-panel, .monitor-panel { grid-template-columns: 1fr; }.audio-title { margin-bottom: 6px; }.download-button { margin-top: 4px; }
  footer { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
}

@media (max-width: 440px) {
  .privacy-pill { padding: 7px 9px; font-size: 10px; }
  .login-copy h1 { font-size: 40px; }.feature-row span:last-child { display: none; }
  .parameter-grid { grid-template-columns: 1fr 1fr; }
  .section-heading { align-items: flex-end; }.section-heading .outline-button { padding: 8px; }
  .canvas-wrap { min-height: 260px; }.canvas-wrap canvas { height: 260px; width: calc(100% - 28px); }.color-legend { font-size: 8px; }
}

/* Light presentation theme. The plots intentionally keep a dark navy field. */
:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --panel: rgba(255, 255, 255, .96);
  --panel-solid: #ffffff;
  --line: #dfe7e2;
  --line-bright: rgba(24, 119, 83, .38);
  --text: #1d3029;
  --muted: #75857e;
  --accent: #167653;
  --accent-soft: rgba(22, 118, 83, .09);
  --error: #c9403b;
}
html, body { background: var(--bg); }
body { background: radial-gradient(circle at 50% -15%, #ffffff 0, #f5f7f4 47%, #eef3ef 100%); }
.ambient-one { background: #9ed9bd; opacity: .16; }.ambient-two { background: #b7ddd2; opacity: .12; }
.brand-mark { box-shadow: 0 4px 18px rgba(22,118,83,.1); }.privacy-pill { background: rgba(255,255,255,.72); }
.feature-row span { color: #587168; background: rgba(255,255,255,.7); }
.login-card { background: rgba(255,255,255,.96); box-shadow: 0 28px 70px rgba(42,74,61,.12); }
.login-card label { color: #587168; }.password-wrap input, .parameter-grid input, .bulk-levels input, .electrode-level-row input[type="number"] { background: #fbfcfb; color: var(--text); }
.primary-button { background: #1b7d5b; color: #fff; box-shadow: 0 8px 24px rgba(27,125,91,.18); }
.upload-card, .chart-card, .audio-panel { box-shadow: 0 10px 36px rgba(42,74,61,.055); }
.drop-zone { border-color: rgba(22,118,83,.28); background: linear-gradient(90deg, rgba(22,118,83,.045), rgba(255,255,255,.3)); }
.choose-chip, .outline-button, .secondary-button { color: #3b5d50; background: #f9fbf9; }
.advanced-panel summary { color: #3c5c50; }.bulk-levels button { background: #eef8f3; }
.electrode-levels { background: #f8faf8; }.electrode-level-row { border-bottom-color: #e9efeb; }.electrode-level-row input[type="number"] { background: #fff; }
.chart-action { background: #fff; }.color-legend i { background: linear-gradient(to bottom, #ff3a00, #ff9d00, #e5ff2a, #32ff94, #00d5ff, #0045eb, #00005c, #000018); }
.audio-badge.original { color: #49675c; background: #edf3ef; }.monitor-panel { border-color: rgba(22,118,83,.2); background: linear-gradient(135deg, rgba(22,118,83,.055), #fff); }
.audio-panel audio { color-scheme: light; }.download-button { background: #f4faf7; }
footer span { color: #3e5d52; }

@media (max-width: 600px) {
  .chart-meta { flex-wrap: wrap; gap: 8px 12px; }.chart-meta > span:nth-child(2) { margin-left: auto; }.chart-action { order: 3; margin-left: auto; }
  .chart-timeline { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
}

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

/* Deep-blue editorial theme inspired by the supplied mountain poster. */
:root {
  color-scheme: dark;
  --bg: #102e78;
  --panel: rgba(8, 35, 104, .86);
  --panel-solid: #0b2b70;
  --line: rgba(76, 163, 255, .34);
  --line-bright: rgba(83, 187, 255, .78);
  --text: #eef7ff;
  --muted: #8eb7e8;
  --accent: #58b8ff;
  --accent-soft: rgba(64, 157, 255, .16);
  --orange: #ff3f72;
  --error: #ff6b91;
}

html, body { background: var(--bg); }
body {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(115deg, rgba(18, 52, 133, .98) 0%, rgba(14, 43, 116, .98) 58%, rgba(9, 34, 94, .98) 100%);
}
body::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: auto 0 0;
  height: min(54vh, 520px);
  background: url("/assets/mountain-horizon.png") right bottom / auto 100% no-repeat;
  opacity: .22;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  z-index: -3;
  right: -7vw;
  top: 30vh;
  width: 26vw;
  height: 40vh;
  min-width: 240px;
  background: #ed004c;
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
  opacity: .92;
  pointer-events: none;
}

.ambient { filter: none; opacity: .18; }
.ambient-one { width: 34rem; height: 34rem; right: 4vw; top: 16vh; background: radial-gradient(circle, #087dec 0 2px, transparent 3px); background-size: 14px 14px; }
.ambient-two { width: 30rem; height: 30rem; left: -12rem; bottom: -14rem; background: #168ee5; filter: blur(130px); opacity: .12; }
.shell { width: min(1320px, calc(100% - 48px)); }
.topbar { border-bottom: 2px solid rgba(74, 178, 255, .55); }
.brand { position: relative; color: #dff3ff; letter-spacing: .08em; }
.brand::after { content: ""; position: absolute; left: 46px; bottom: -10px; width: 86px; height: 3px; background: #55bfff; }
.brand b { color: #58b8ff; font-family: Impact, "Arial Narrow", ui-sans-serif, sans-serif; font-weight: 600; letter-spacing: .08em; }
.brand-mark { border: 1px solid rgba(80, 190, 255, .82); border-radius: 3px; background: rgba(44, 142, 238, .18); box-shadow: none; }
.brand-mark i { background: #59c4ff; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.settings-entry { width: 100%; min-height: 84px; margin: 14px 0; padding: 18px 20px; display: flex; align-items: center; gap: 16px; border: 1px solid #f24e82; border-left: 5px solid #ff3d7c; border-radius: 4px; color: #fff; background: linear-gradient(110deg, rgba(237,0,76,.25), rgba(32,73,151,.9)); box-shadow: 0 8px 24px rgba(237,0,76,.13); cursor: pointer; text-align: left; transition: border-color .18s, background .18s, transform .18s; }
.settings-entry:hover { border-color: #ff94b5; background: linear-gradient(110deg, rgba(237,0,76,.38), rgba(40,88,177,.95)); transform: translateY(-1px); }
.settings-entry:focus-visible { outline: 3px solid #8fd9ff; outline-offset: 4px; }
.settings-entry-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 4px; color: #fff; background: #ed1457; font-size: 26px; }
.settings-entry-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; }
.settings-entry-copy strong { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.settings-entry-copy small { color: #c4def8; font-size: 12px; line-height: 1.5; }
.settings-entry-action { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-radius: 3px; background: #ed1457; font-size: 13px; font-weight: 650; white-space: nowrap; }
.settings-entry-action b { font-size: 20px; }
.privacy-pill { border-color: rgba(84, 177, 255, .4); border-radius: 3px; color: #b6d8f5; background: rgba(4, 30, 92, .54); }
.privacy-pill span { background: #ed004c; box-shadow: 0 0 12px rgba(237, 0, 76, .85); }

.app-intro { color: #a9caed; letter-spacing: .04em; }
.upload-card, .chart-card, .audio-panel, .settings-card {
  border-color: rgba(75, 162, 255, .4);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(10, 42, 117, .93), rgba(7, 30, 87, .9));
  box-shadow: 0 18px 52px rgba(0, 12, 57, .26);
  backdrop-filter: blur(16px);
}
.drop-zone { border-color: rgba(80, 185, 255, .62); border-radius: 2px; background: linear-gradient(90deg, rgba(33, 126, 225, .22), rgba(8, 37, 103, .14)); }
.drop-zone:hover, .drop-zone.dragging { border-color: #69c6ff; background: rgba(37, 126, 222, .28); box-shadow: inset 0 0 0 1px rgba(96, 194, 255, .24); }
.upload-icon { border-radius: 2px; color: #7ad0ff; background: rgba(57, 157, 255, .2); }
.drop-copy strong { color: #eef8ff; letter-spacing: .04em; }.drop-copy small { color: #89b3df; }
.choose-chip, .outline-button, .secondary-button { border-color: rgba(80, 174, 255, .5); border-radius: 2px; color: #bfe3ff; background: rgba(31, 99, 184, .22); }
.file-symbol { border-radius: 2px; background: #ed004c; color: #fff; }.file-copy span { color: #91b9e5; }.text-button { color: #62c2ff; }

.settings-header span { color: #ed4176; }.settings-header h1 { color: #62baff; font-family: Impact, "Arial Narrow", ui-sans-serif, sans-serif; letter-spacing: .06em; }.settings-header p { color: #8fb8e5; }
.back-button { border-color: rgba(76, 168, 255, .48); border-radius: 2px; color: #a8d7ff; background: rgba(8, 37, 105, .8); }
.parameter-grid label, .bulk-levels label { color: #8fb9e6; }
.password-wrap input, .parameter-grid input, .bulk-levels input, .electrode-level-row input[type="number"] { border-color: rgba(76, 158, 238, .36); border-radius: 2px; background: rgba(3, 25, 77, .78); color: #eff8ff; }
.parameter-grid input:focus, .electrode-level-row input[type="number"]:focus { border-color: #5dbdff; box-shadow: 0 0 0 2px rgba(60, 160, 255, .14); }
.level-section { border-top-color: rgba(71, 156, 239, .28); }.level-heading small { color: #8bb3df; }
.bulk-levels button { border-color: rgba(79, 178, 255, .58); border-radius: 2px; background: rgba(36, 117, 207, .24); color: #7dceff; }
.electrode-levels { border-color: rgba(72, 154, 235, .35); border-radius: 2px; background: rgba(3, 22, 70, .62); }
.electrode-level-row { border-bottom-color: rgba(80, 162, 240, .13); }.electrode-level-row strong { color: #66c1ff; }.level-range { color: #8cb2dc; }
.electrode-switch span { background: #31558e; }.electrode-switch input:checked + span { background: #ed1457; }
.regenerate-button, .primary-button { border: 0; border-radius: 2px; background: #ed004c; color: #fff; box-shadow: 0 9px 26px rgba(237, 0, 76, .28); }
.secondary-button:disabled { background: rgba(66, 102, 162, .38); color: #7f9fc7; box-shadow: none; }
.process-status { color: #8fb8e5; }.status-dot { border-radius: 0; background: #4b8bc9; transform: rotate(45deg); }.process-status.working .status-dot { background: #ed1457; box-shadow: 0 0 14px rgba(237, 20, 87, .85); }

.step-number { border-color: #ed326b; border-radius: 2px; color: #ff5a88; }.section-heading h2 { color: #65bfff; font-family: Impact, "Arial Narrow", ui-sans-serif, sans-serif; letter-spacing: .055em; }.section-heading p { color: #88b2df; }
.chart-meta { color: #85b3e2; }.live-dot { border-radius: 0; background: #ed1457; transform: rotate(45deg); }.chart-action { border-color: rgba(80, 169, 255, .44); border-radius: 2px; color: #a8d8ff; background: rgba(9, 43, 119, .82); }
.chart-timeline { color: #83add9; }.chart-timeline b { color: #d9efff; }
.audio-badge { border-radius: 2px; }.audio-badge.original { color: #8fd4ff; background: rgba(44, 143, 234, .2); }.audio-badge.monitor { color: #fff; background: #ed1457; }
.audio-title p { color: #88b1dc; }.audio-panel audio { color-scheme: dark; }.monitor-panel { border-color: rgba(237, 20, 87, .62); background: linear-gradient(135deg, rgba(30, 68, 151, .96), rgba(12, 36, 96, .94)); }
.download-button { border-color: #ed326b; border-radius: 2px; color: #ff79a1; background: rgba(237, 0, 76, .09); }
footer { border-top-color: rgba(77, 163, 246, .35); color: #7fa9d8; } footer span { color: #9cccf1; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1320px); }
  body::before { height: 34vh; opacity: .14; background-position: 72% bottom; }
  body::after { right: -150px; top: 46vh; width: 280px; height: 230px; opacity: .72; }
  .ambient-one { right: -18rem; top: 20vh; opacity: .12; }
  .brand::after { bottom: -8px; width: 64px; }
  .topbar-actions { gap: 0; }.privacy-pill { display: none; }
  .settings-entry { padding: 16px 12px; gap: 12px; flex-wrap: wrap; }
  .settings-entry-copy strong { font-size: 17px; }
  .settings-entry-copy small { font-size: 11px; }
  .settings-entry-action { width: 100%; justify-content: center; }
}
