/* Nyxora visual refinement — based on Impeccable's audit, distill, layout, adapt and polish guidance. */
:root {
  --red: #d71920;
  --red-dark: #b7151c;
  --ink: #1c1b1a;
  --muted: #625e5b;
  --bg: #faf9f7;
  --paper: #ffffff;
  --border: #e5e1dc;
  --light: #f6f4f1;
  --shadow: 0 14px 40px rgba(30, 25, 22, .045);
  --nx-width: 870px;
  --nx-radius: 18px;
}
html { scroll-padding-top: 108px; }
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 15px; line-height: 1.5; }
h1,h2,h3,button,input,select,.logo-mark,.brand-text {font-family:inherit}
:focus-visible {outline: 3px solid var(--red)!important; outline-offset:3px!important}
:where(a,button,input,select,summary,canvas[tabindex]):focus-visible {outline: 3px solid var(--red)!important;outline-offset: 3px!important}
button, input, select {font-family:inherit}
button:disabled {opacity:.6;cursor:not-allowed}
.skip-link {position:fixed; z-index:500; left:16px; top:-100px; background:var(--ink); color:white; padding:12px 18px; border-radius:7px; text-decoration:none; font-weight:700}
.skip-link:focus {top:12px}
[hidden] {display:none!important}
/* Single centered visual axis: navigation, hero, both tools and results. */
.topbar {position:sticky;top:0;z-index:100;background:rgba(250,249,247,.97);border-bottom:1px solid var(--border)}
.header {width:min(100%, calc(var(--nx-width) + 48px)); max-width:none; min-height:76px; padding-inline:24px; gap:24px}
.brand-text {font-size:22px;letter-spacing:-.05em; font-weight:780}
.logo-mark {width:36px;height:36px;border-radius:9px;background:var(--red);font-size:22px}
.header nav {display:flex; margin:0 0 0 auto;gap:6px; flex-wrap:nowrap}
.header nav a {display:inline-flex;justify-content:center;align-items:center; padding:11px 17px;min-height:44px;border-radius:9px;font-size:13px;font-weight:650;color:#504b47;white-space:nowrap;transition:background .16s,color .16s}
.header nav a:hover {background:#f1ece9;color:var(--ink)}
.header nav a.nav-current {background:#fff0f1;color:var(--red)!important}
.hero {display:block;width:min(100%, calc(var(--nx-width) + 48px));max-width:none;padding:64px 24px 38px;margin:auto;}
.hero-copy {max-width:760px}
.hero .eyebrow {margin-bottom:18px; font-size:12px;letter-spacing:.13em; color:var(--red)}
.hero h1 {font-size:clamp(43px, 5.6vw, 67px);line-height:1.07;letter-spacing:-.068em; margin:0 0 17px;white-space:normal; font-weight:790}
.hero-sub {font-size:16px;color:var(--muted);line-height:1.6;max-width:590px;margin:0}
.hero-aside,.hero-qualities {display:none!important} /* Remove repetitive value claim and non-actionable tags. */
#compressor {max-width:none;padding:0 24px}
.workbench {width:min(100%, var(--nx-width));margin-inline:auto;display:flex;flex-direction:column;gap:18px;align-items:stretch}
.upload-panel,.settings-panel,.cutter-shell {width:100%;min-height:0!important;padding:clamp(22px,3.7vw,34px); border:1px solid var(--border); border-radius:var(--nx-radius);box-shadow:var(--shadow);background:var(--paper)}
.panel-header {margin-bottom:24px}
.panel-header .section-label,.cutter-card-top .section-label {font-size:12px;letter-spacing:.12em;color:#615b56}
.panel-header .step {font-size:12px;letter-spacing:.05em}
.upload-zone {min-height:310px!important;padding:30px 24px!important;border-radius:13px!important;background:#fdfcfb!important}
.upload-zone.has-file {min-height:262px!important}
#uploadZone:focus-visible,#cutDrop:focus-visible {border-color:var(--red)!important;outline:3px solid var(--red)!important;outline-offset:3px}
.upload-title {font-size:24px;letter-spacing:-.04em}
.upload-description,.upload-bottom,.sample-action {font-size:13px;line-height:1.5}
.upload-bottom {letter-spacing:0;color:var(--muted)}
.browse-button {min-height:46px;padding:12px 20px;font-size:13px;background:var(--ink);border-color:var(--ink);border-radius:9px}
.browse-button:hover {background:var(--red);border-color:var(--red)}
.continue-button {min-height:52px;border-radius:9px}
.file-ready,.file-meta {font-size:13px}
.settings-heading {font-size:clamp(27px,4vw,35px);line-height:1.15;letter-spacing:-.045em}
.settings-description {font-size:14px;color:var(--muted)}
.settings-panel {scroll-margin-top:102px}
.settings-section {margin-bottom:20px}
.field-heading {margin-bottom:13px}
.field-heading label,.field-heading strong,.field-heading>span {font-size:13px}
.priority-options {grid-template-columns:repeat(2,minmax(0,1fr))}
.priority-option {min-height:116px;padding:17px;gap:12px;border-radius:11px}
.priority-option strong {font-size:15px;letter-spacing:-.01em}
.priority-option small {font-size:12px;line-height:1.45;color:#645c58}
.target-chip {min-height:44px;font-size:13px}
.target-size-value {font-size:20px!important}
.format-option {min-height:82px;border-radius:10px}
.format-option strong {font-size:13px}
.format-option small {font-size:11px}
.format-help,.goal-advice,.format-note,.target-forecast strong {font-size:12px;line-height:1.5}
/* Keep audio settings compact; no redundant advanced settings section. Engine internals unchanged. */
.advanced-panel {display:none!important}
.primary-button {min-height:56px;font-size:15px;border-radius:10px}
.tiny-note {font-size:12px;line-height:1.5}
#progressBox {width:min(100%,var(--nx-width));margin-inline:auto}
.results {width:min(100%,var(--nx-width));margin:54px auto 0}
.results .container {max-width:none;padding:0}
.results-title {font-size:clamp(32px,4vw,48px);line-height:1.1}
.results-grid {border-radius:var(--nx-radius);overflow:hidden}
.result-card {min-width:0}
.result-summary {align-items:center;gap:18px}
.download-control {max-width:320px;min-width:220px}
.download-format-label {font-size:13px}
.download-format-select {min-height:48px;font-size:14px}
.download-main {min-height:51px;font-size:14px}
.download-format-note {font-size:11px;color:var(--muted)}
/* Cutter mirrors the Compressor card — including spacing and file controls. */
#cutter {max-width:none;padding:0 24px; scroll-margin-top:104px}
.cutter-shell {max-width:var(--nx-width);margin-inline:auto;min-width:0}
.cutter-card-top {margin-bottom:22px;gap:18px}
.cutter-card-top h2 {font-size:clamp(28px,4vw,39px);line-height:1.13;letter-spacing:-.05em;margin:11px 0 9px}
.cutter-card-top p {font-size:14px;line-height:1.5;color:var(--muted)}
.cutter-drop {min-height:300px;border:1.5px dashed #d7d1cb;background:#fdfcfb;border-radius:13px;padding:25px;text-align:center}
.cutter-drop:focus-visible {outline:3px solid var(--red);outline-offset:3px}
.cutter-drop strong {font-size:23px;letter-spacing:-.04em}
.cutter-drop span,.cut-sample,.cut-preset-hint,.cut-selection-tip,.cut-wave-time {font-size:12px;line-height:1.55}
.cut-source-line {min-height:68px;padding:14px 16px;gap:12px;background:#f7f6f4;border-radius:10px}
.cut-source-line strong {font-size:15px}
.cut-source-line small {font-size:12px;color:var(--muted)}
.cut-change {min-height:44px;padding:10px 15px;font-size:13px}
.cut-editor-main {padding:clamp(17px,3vw,24px);border-radius:12px}
.cut-wave-header strong {font-size:15px}
.cut-wave-header span {font-size:13px}
.cut-preset-row label,.cut-times label,.cut-adjustments label {font-size:13px;line-height:1.4;color:#514b46}
.cut-preset-row select,.cut-preset-row input,.cut-times input {min-height:46px;font-size:14px;border-radius:9px}
.cut-wave {height:152px;background:#f6f3f0}
.cut-toggle {min-height:45px;font-size:13px}
.cut-checks {font-size:13px}
.cut-adjustments {gap:20px;padding-top:23px}
.cut-adjustments label {font-size:12px}
.cut-actions {grid-template-columns:1fr 1fr 1.2fr;gap:10px;margin-top:18px}
.cut-actions button {min-height:54px;padding:12px 13px;font-size:13px;transform:none!important;transition:background .15s,border-color .15s}
.cut-actions button:hover:not(:disabled){transform:none}
.cut-download-wrap {min-width:0}
.cut-format-menu {left:0;right:0;top:auto;bottom:calc(100% + 10px);min-width:245px;max-width:320px;margin:auto;border-radius:12px;border-color:var(--border);box-shadow:0 17px 42px rgba(30,20,15,.15);animation:none}
.cut-format-option {min-height:56px}
.cut-format-option strong {font-size:13px}
.cut-format-option small {font-size:12px;line-height:1.4}
.cut-format-label {font-size:11px}
.cut-status {font-size:13px}
.cut-status:empty {display:none}
/* Low-priority information stays visually light. */
.lower {margin-top:78px;background:#f2f0ed}
.lower-inner {width:min(100%,calc(var(--nx-width) + 48px));max-width:none;grid-template-columns: .92fr 1fr;gap:52px;padding:52px 24px 60px}
.lower h2 {font-size:clamp(31px,4vw,45px);line-height:1.1;letter-spacing:-.05em}
.lower-intro>p,.feature p {font-size:13px;line-height:1.5;color:var(--muted)}
.feature h3 {font-size:14px}
.footer-inner {width:min(100%,calc(var(--nx-width) + 48px));max-width:none;padding:22px 24px;font-size:12px}
@media(max-width:800px){
 .header,.hero {padding-inline:20px}
 #compressor,#cutter {padding-inline:20px}
 .hero {padding-top:48px;padding-bottom:30px}
 .workbench {gap:14px}
 .upload-panel,.settings-panel,.cutter-shell {padding:23px;min-height:0!important}
 .cutter-drop,.upload-zone {min-height:295px!important}
 .results {margin-top:42px}
 .lower {margin-top:64px}
 .lower-inner {padding:46px 20px;gap:30px;grid-template-columns:1fr}
}
@media(max-width:540px){
 .header {gap:6px;padding-inline:16px;min-height:68px}
 .logo-mark {width:34px;height:34px;font-size:20px}
 .brand-text {font-size:20px}
 .header nav {gap:2px}
 .header nav a,.header nav a:nth-child(2) {display:inline-flex!important;min-height:42px;padding:10px 11px!important;font-size:12px!important}
 .hero {padding:38px 18px 28px}
 .hero h1 {font-size:clamp(39px,10.4vw,54px);letter-spacing:-.06em;line-height:1.08}
 .hero-sub {font-size:14px;max-width:420px}
 #compressor,#cutter {padding:0 14px}
 .upload-panel,.settings-panel,.cutter-shell {padding:18px;border-radius:14px}
 .panel-header {margin-bottom:17px}
 .upload-zone {min-height:275px!important;padding:22px 14px!important}
 .cutter-drop {min-height:265px!important}
 .upload-symbol {height:59px;width:59px;margin-bottom:21px}
 .upload-title {font-size:22px}
 .upload-bottom {gap:8px;flex-wrap:wrap}
 .priority-options {gap:9px}
 .priority-option {padding:13px;min-height:117px}
 .priority-option strong {font-size:13px}
 .priority-option small {font-size:11px}
 .format-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .format-option {min-height:76px}
 .cut-editor-main {padding:15px}
 .cut-preset-row {grid-template-columns:1fr;gap:11px}
 .cut-times {gap:10px}
 .cut-adjustments {grid-template-columns:1fr;gap:16px}
 .cut-wave {height:120px}
 .cut-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .cut-primary {grid-column:1/-1}
 .cut-actions button {font-size:12px;min-height:50px}
 .cut-format-menu {min-width:210px;max-width:300px;left:-12px;right:auto}
 .result-summary {flex-direction:column;align-items:stretch}
 .download-control {width:100%;max-width:none;min-width:0}
 .results-grid {grid-template-columns:1fr}
 .result-card {padding:21px}
 .lower-inner {padding:38px 18px}
 .footer-inner {padding:20px 18px;gap:7px}
}
@media(max-width:360px){.header nav a,.header nav a:nth-child(2){padding-inline:8px!important;font-size:11px!important}.brand-text{font-size:18px}.logo-mark{width:31px;height:31px}.hero h1{font-size:38px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Release pass: keep the extraction step on the same 870px visual axis. */
.video-stage{border:1px solid var(--border);background:var(--paper);border-radius:14px;padding:clamp(17px,3vw,26px);display:grid;gap:16px}
.video-stage-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}
.video-stage-heading h3{font-size:25px;letter-spacing:-.045em;line-height:1.15;margin:7px 0 5px}
.video-stage-file{color:var(--muted);font-size:13px;overflow-wrap:anywhere;margin:0}
.video-stage-preview{display:block;width:100%;max-height:300px;min-height:140px;object-fit:contain;background:#191919;border-radius:9px;outline-offset:3px}
.video-stage-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:10px}
.video-stage-actions button{min-height:50px;font-size:14px;border-radius:9px}
.video-stage-note{font-size:13px;color:var(--muted);line-height:1.55;margin:0}
.video-stage-note.is-error{color:#ab1522}
.video-stage-progress{display:grid;gap:8px}
.video-stage-progress-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.video-stage progress{display:block;width:100%;height:8px;appearance:none;border:0;border-radius:999px;overflow:hidden;background:#eae5e1}
.video-stage progress::-webkit-progress-bar{background:#eae5e1;border-radius:999px}
.video-stage progress::-webkit-progress-value{background:var(--red);border-radius:999px}
.video-stage progress::-moz-progress-bar{background:var(--red);border-radius:999px}
.cut-source-actions{display:flex;align-items:center;flex-shrink:0;gap:7px}
.cut-source-actions .cut-change{min-width:68px}
#cutDrop .cut-sample{display:inline-flex;justify-content:center;align-items:center;min-height:44px;margin:4px 5px;white-space:normal}
#cutVideoBrowse{color:var(--red);border-color:#e3c7c7}
#cutVideoBrowse:hover{background:#fff2f2}
#fileStatus:not(.is-loading){display:none}
.cut-preset-hint{max-width:62ch}
@media (max-width:540px){
 .video-stage{padding:16px;gap:14px}
 .video-stage-heading h3{font-size:22px}
 .video-stage-actions{grid-template-columns:1fr}
 .video-stage-actions button{width:100%}
 .cut-source-line{align-items:flex-start}
 .cut-source-actions{flex-direction:column}
 .cut-source-actions .cut-change{width:100%;min-height:40px}
 #cutDrop .cut-sample{margin:4px auto;display:flex;width:max-content;max-width:100%}
}


/* Shared Nyxora UI: same visual language in Compressor and Cutter. */
.audio-upload-symbol,
.cut-drop-icon.audio-upload-symbol {
  width: 74px; height: 74px; margin: 0 0 25px;
  display: grid; place-items: center;
  background: #fff0f1; color: var(--red);
  border: 1px solid #fbd8dc; border-radius: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.audio-upload-symbol::after { display: none!important; }
.audio-upload-symbol svg {width: 28px; height: 28px;}
:is(.upload-zone:not(.has-file), .cutter-drop):hover .audio-upload-symbol,
:is(.upload-zone:not(.has-file), .cutter-drop):focus-within .audio-upload-symbol {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(215,25,32,.11);
}
.upload-zone:not(.has-file), .cutter-drop {
  min-height: 310px!important;
  border: 1.5px dashed #d7d1cb!important;
  background: #fdfcfb!important;
  border-radius: 13px!important;
  transition: border-color .16s ease, background .16s ease;
}
:is(.upload-zone:not(.has-file),.cutter-drop):hover,
:is(.upload-zone:not(.has-file),.cutter-drop):focus-within {
  border-color: var(--red)!important;
  background: #fffafa!important;
}
/* One precise card style for loaded audio on both tools. No generic > div selector. */
.file-view-top,
.cut-source-line.file-view-top {
  display:flex; align-items:center; flex-direction:row; flex-wrap:nowrap;
  width:100%; min-height:76px;
  padding:14px 16px; gap:12px;
  background:#f7f6f4; border:1px solid #ece8e5;
  border-radius:11px; margin:0 0 22px;
}
.file-view-top>.file-icon,.cut-source-line.file-view-top>.file-icon {
  flex:0 0 44px; width:44px; height:44px;
  border-radius:10px; display:grid;place-items:center;
  background:#fff0f1;color:var(--red);
}
.file-view-top>.file-info,.cut-source-line.file-view-top>.file-info {
  display:flex;flex-direction:column;min-width:0;gap:4px;flex:1 1 auto;
}
.file-info .file-name,.file-info strong {font-size:14px;font-weight:700;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%}
.file-info .file-meta,.file-info small {font-size:12px;color:var(--muted);line-height:1.35}
.file-view-top>.file-actions,.cut-source-line.file-view-top>.file-actions {
  display:flex!important; flex:0 0 auto; flex-direction:row; align-items:center;
  justify-content:flex-end; gap:8px; margin:0;
}
.file-view-top .replace-file,.cut-source-line.file-view-top .replace-file {
  display:inline-flex;min-width:75px;min-height:42px;align-items:center;justify-content:center;
  padding:9px 12px;border:1px solid #dcd7d2;border-radius:9px;
  background:white;color:var(--ink);font-size:12px;font-weight:700;
}
.file-view-top .replace-file:hover {background:#fff4f4;color:var(--red);border-color:#f1c5c8}
.file-view-top .remove-file {width:42px;height:42px;min-width:42px;border:1px solid #e1dcd8;background:white;color:#615c58;border-radius:9px}
.file-view-top .remove-file:hover {background:#fff4f4;color:var(--red);border-color:#f1c5c8}
.file-view-top .remove-file svg {height:17px;width:17px}
/* Existing Compressor uploader wraps the file row; let the row provide its own surface. */
.upload-zone.has-file {min-height:0!important;padding:20px!important}
.upload-zone.has-file .file-view-top {margin-bottom:18px}
.cut-source-line.file-view-top {margin-bottom:22px}
/* Reduce duplicate static copy while retaining quality warnings and actual statuses. */
#outputBadge, .download-format-note, #sourceLink {display:none!important}
.cutter-card-top h2 {font-size:clamp(28px,4vw,36px)}
.cutter-card-top p {margin:0;color:var(--muted)}
.cut-selection-tip {margin:10px 0 5px}
/* No decorative perpetual animation: one subtle hover state across both upload cards. */
@media(max-width:540px){
  .audio-upload-symbol,.cut-drop-icon.audio-upload-symbol {width:60px;height:60px;margin-bottom:20px;border-radius:15px}
  .audio-upload-symbol svg {width:25px;height:25px}
  .file-view-top,.cut-source-line.file-view-top {padding:10px;gap:8px;min-height:66px}
  .file-view-top>.file-icon,.cut-source-line.file-view-top>.file-icon {flex-basis:37px;width:37px;height:37px}
  .file-view-top .replace-file {min-width:64px;padding:7px 8px;min-height:40px}
  .file-view-top .remove-file {width:40px;height:40px;min-width:40px}
}
@media(max-width:375px){
  .file-view-top>.file-actions,.cut-source-line.file-view-top>.file-actions {gap:5px}
  .file-info .file-name,.file-info strong {font-size:12px}
  .file-info .file-meta,.file-info small {font-size:11px}
  .file-view-top .replace-file {min-width:58px;font-size:11px;padding:7px}
}
@media(prefers-reduced-motion:reduce){
 .audio-upload-symbol {transform:none!important;transition:none!important;box-shadow:none!important}
}

/* Show descriptive card header only before media is loaded. */
.cutter-shell.is-editing .cutter-card-top {display:none}
.cut-preset-hint:empty {display:none}
#cutFxHint[hidden] {display:none!important}
