/* Chordelo look (owner, 4 Dec 2026: "I really like the new design ... start building this into the app").
   Loaded LAST, so it restyles the shared pieces of every page to the approved mock-up
   (https://claude.ai/artifact/3UgXxgF9SgzpKeNW4Qwmzy): green-to-cyan accent on the same dark ground, Inter + JetBrains Mono,
   framed panes, gradient primary buttons, underline tabs, a line stepper. Behaviour lives in the page scripts; this file is look only.
   The colour swap itself (purple -> Chordelo) was done in place in every file; see cache/chordelo/backup_app_web_1204_1048. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/jbmono-latin.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --panel: #12151b; --panel2: #171b22; --line: #1e222b; --line2: #2a2f3a;
  --accent: #00dcc4; --grad: linear-gradient(135deg, #00f2b8, #00c4e3);
  --acs: rgba(0, 220, 196, .13); --acb: rgba(0, 220, 196, .4); --sub: #a3aabb; --on-accent: #04110f;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}
html, body { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type=range], input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* ---- left menu: the logo, calm items, the accent only on the open page's icon */
.sidebar { background: var(--bg); border-right-color: var(--line); padding: 20px 12px 14px; }
.brand { padding: 0 10px 22px; }
.brand .cd-logo { display: block; height: 30px; width: auto; }
nav a { gap: 12px; color: #c9ceda; }
nav a:hover { background: #171a21; color: var(--text); }
nav a.on { background: var(--panel2); color: #fff; }
nav a.on svg { color: var(--accent); }
.nav-sep { border: 0; border-top: 1px solid var(--line); margin: 10px 8px; }
.side-section { text-transform: none; letter-spacing: 0; font-size: 12px; padding: 20px 10px 8px; }
.acct .avatar, .avatar { background: var(--grad) !important; color: var(--on-accent) !important; }

/* ---- type */
h1 { font-size: 26px; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }

/* ---- buttons: one shape; primary = the logo gradient */
.btn { min-height: 36px; padding: 0 14px; border-radius: 8px; border-color: var(--line2); background: transparent; font-size: 13px; font-weight: 500; justify-content: center; }
.btn:hover { border-color: #3d4456; background: #151920; }
.btn.primary, a.btn.primary { background: var(--grad); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); background: var(--grad); }
.btn.primary:disabled { filter: none; }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.mini.on { color: var(--text); background: var(--acs); border-color: var(--acb); }
.mini.edit { color: var(--accent); border-color: var(--acb); }

/* ---- segmented controls, chips, pills, tabs: the soft accent fill, never a solid block */
.seg { border-radius: 8px; padding: 2px; }
.seg button { border-radius: 6px; padding: 6px 12px; font-size: 13px; }
.seg button.on { background: var(--acs); color: var(--text); box-shadow: inset 0 0 0 1px var(--acb); font-weight: 500; }
.chip { border-radius: 15px; background: transparent; color: var(--sub); }
.chip.on { background: var(--acs); border-color: var(--acb); color: var(--text); }
.pill { background: transparent; color: #c9ceda; }
.tabs { gap: 26px; }
.tabs button { padding: 12px 0 11px; font-weight: 500; font-size: 14px; }
.tabs button:hover { color: var(--text); }
.dz-tabs button[aria-selected="true"] { background: var(--acs); box-shadow: inset 0 0 0 1px var(--acb); }

/* ---- framed panes */
.panel { background: var(--panel); border-color: var(--line); border-radius: 12px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  border-radius: 8px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }

/* ---- the song's journey: a line stepper (number in a ring, done = gradient tick, lines between the steps) */
.journey { gap: 0; align-items: center; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); box-shadow: none; padding: 0; scrollbar-width: none; }
.journey::-webkit-scrollbar { display: none; }
.journey li { display: flex; align-items: center; flex: none; }
.journey li + li::before { content: ""; width: 28px; height: 1px; background: var(--line2); margin: 0 10px; }
.journey li.done + li::before { background: var(--acb); }
.journey button { background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 2px 11px; min-height: 0; font-weight: 500; white-space: nowrap; }
.journey button:hover { color: var(--text); }
.journey button::before { width: 22px; height: 22px; background: transparent; border: 1px solid var(--line2); font: 500 11px var(--mono); }
.journey li.done button::before { background: var(--grad); border-color: transparent; color: var(--on-accent); font-family: var(--font); font-weight: 700; }
.journey li.running button::before { background: var(--acs); border-color: var(--accent); color: var(--accent); }
.journey li.on button { background: transparent; color: var(--text); border-bottom-color: var(--accent); }
.journey li.on:not(.done) button::before { border-color: var(--accent); color: var(--accent); }

/* ---- New reconstruction steps: the same line stepper as the song page */
.steps { gap: 0; align-items: center; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 18px; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps li { flex: none; background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 12px 2px 11px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.steps li::before { background: transparent; border: 1px solid var(--line2); font: 500 11px var(--mono); }
.steps li:not(:last-child)::after { content: ""; width: 28px; height: 1px; background: var(--line2); margin-left: 10px; }
.steps li.done:not(:last-child)::after { background: var(--acb); }
.steps li.on { color: var(--text); border-bottom-color: var(--accent); }
.steps li.on::before { background: transparent; border-color: var(--accent); color: var(--accent); }
.steps li.done::before { background: var(--grad); border-color: transparent; color: var(--on-accent); font-family: var(--font); font-weight: 700; }

/* ---- compact upload: every drop zone is a slim bar, not a big box (owner 4 Dec) */
.drop { padding: 14px 18px; text-align: left; background: var(--panel); border: 1px dashed var(--line2); }
.drop:hover, .drop.over { border-color: var(--acb); background: #10171a; }
.drop-inner { flex-direction: row; align-items: center; gap: 14px; text-align: left; }
.drop-inner svg { width: 20px; height: 20px; padding: 10px; box-sizing: content-box; border-radius: 10px; background: var(--acs); color: var(--accent); flex: none; }
.drop-inner strong { font-size: 14px; font-weight: 600; }

/* ---- scrollbars and selection */
::selection { background: rgba(0, 220, 196, .3); }
* { scrollbar-color: #2a2f3a transparent; }

/* ---- phone top bar (mnav.js copies the sidebar logo) and the share page */
.mbar-logo .cd-logo { display: block; height: 24px; width: auto; }
.cd-logo { object-fit: contain; }

/* ---- Your sounds > Packs (owner 4 Dec): compact upload bar on top, then one tab per source */
.cd-dropbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 4px 0 6px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--panel); cursor: pointer; }
.cd-dropbar:hover, .cd-dropbar.over { border-color: var(--acb); background: #10171a; }
.cd-dico { width: 40px; height: 40px; border-radius: 10px; background: var(--acs); color: var(--accent); display: grid; place-items: center; flex: none; }
.cd-dico svg { width: 20px; height: 20px; }
.cd-dt { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.cd-dt b { font-size: 14px; font-weight: 600; }
.cd-dt b u { color: var(--accent); text-decoration: none; }
.cd-dt span { font-size: 12px; color: var(--muted); }
.cd-dchips { display: flex; gap: 6px; flex-wrap: wrap; }
.cd-dchips .btn svg { width: 15px; height: 15px; }
.cd-ptabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 8px 0 12px; overflow-x: auto; scrollbar-width: none; }
.cd-ptabs::-webkit-scrollbar { display: none; }
.cd-ptabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 11px 0 10px; color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.cd-ptabs button:hover { color: var(--text); }
.cd-ptabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.cd-ptabs .sx-n { font-size: 11px; color: var(--muted); background: var(--panel2); border-radius: 9px; padding: 0 7px; line-height: 18px; }
.cd-pempty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: center; }
.cd-pempty span { font-size: 13px; color: var(--muted); }
.sx-tabs { gap: 26px; }
.sx-tabs button { padding: 12px 0 11px; border-bottom: 2px solid transparent; font-weight: 500; }
@media (max-width: 600px) { .cd-dt { min-width: 0; flex-basis: calc(100% - 60px); } .cd-dchips { width: 100%; } }
.sx-title { font-size: 26px; font-weight: 650; letter-spacing: -.01em; }
@media (max-width: 600px) { .sx-title { font-size: 20px; } }

/* ---- a selected segment / mode / chip = the soft accent fill of the mock-up; solid accent stays for play buttons */
.mx-ab button.on, .ft-ab button.on, .sdo-mode button[aria-selected="true"], button[data-mode][aria-selected="true"], .sdo-chip.on, .nbf-b.on, .ng-tog.on {
  background: var(--acs); color: var(--text); border-color: var(--acb); box-shadow: inset 0 0 0 1px var(--acb); font-weight: 500; }

/* ---- phones: the step row scrolls sideways; chordelo.js keeps the open step in view */
@media (max-width: 700px) {
  .journey li + li::before, .steps li:not(:last-child)::after { width: 16px; margin: 0 8px; }
}

/* a step row with more steps off one side fades on that side (chordelo.js sets cd-fl / cd-fr) */
.journey.cd-fl, .steps.cd-fl { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.journey.cd-fr, .steps.cd-fr { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.journey.cd-fl.cd-fr, .steps.cd-fl.cd-fr { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent); }

/* ---- Packs bar: Google Drive link (owner 4 Dec: "a Google Drive thing that you tap there. You can add the link") */
.cd-dchips .btn.on { background: var(--acs); border-color: var(--acb); color: var(--text); }
.cd-gform { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); cursor: default; }
.cd-gform input { flex: 1 1 260px; min-width: 0; height: 34px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line2); color: var(--text); font-size: 13px; }
.cd-gerr { flex: 1 1 100%; font-size: 12px; color: #ff8a8a; }
@media (max-width: 600px) { .cd-gform input { flex-basis: 100%; } }

/* the song's update line under its title (owner 4 Dec: "a simple line with a percentage and some small text", not a box) */
.nb-top { margin-top: 14px; max-width: 640px; }
.nb-top[hidden] { display: none; }
.nbt-row { display: flex; align-items: baseline; gap: 12px; font-size: 12.5px; line-height: 1.4; color: var(--sub); }
.nbt-txt { flex: 1; min-width: 0; }
.nbt-txt b { color: var(--text); font-weight: 600; }
.nbt-pct { color: var(--text); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.nbt-stop { width: 22px; height: 22px; min-height: 0; flex: none; align-self: center; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--sub); cursor: pointer; }
.nbt-stop svg { width: 13px; height: 13px; stroke-width: 2.2; }
.nbt-stop:hover, .nbt-stop:focus-visible { background: rgba(255, 255, 255, .08); color: var(--text); }
.nbt-line { height: 2px; margin-top: 7px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.nbt-line i { display: block; height: 100%; border-radius: 2px; background: rgba(255, 255, 255, .5); transition: width .6s ease; }

/* hosted sign-in card (Clerk's windows do the rest) */
.ck-auth .ck-btns { display: flex; flex-direction: column; gap: 10px; }

/* "Not in the song yet": a small card in the bottom-right corner (owner 4 Dec: the full-width bar "takes up the whole
   bottom of the screen") */
.nb-applybar { left: auto; right: 16px; width: min(340px, calc(100vw - 20px)); flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; border-color: var(--acb); }
.nb-applybar .nba-txt { flex: 1 1 100%; }
.nb-applybar .nba-txt b { font-size: 13px; }
.nb-applybar .nba-txt span { font-size: 12px; }
.nb-applybar .nba-acts { width: 100%; justify-content: flex-end; }
.nb-applybar .nba-acts .btn { flex: 0 0 auto; min-height: 0; height: 32px; padding: 0 12px; font-size: 13px; }
.nba-on .jstep.on { padding-bottom: 120px; }
@media (max-width: 900px) { .nb-applybar { left: auto; right: 10px; } }

/* confirm with a title + short points (owner 4 Dec: the Start fresh text was "way too long") */
.cf-card { max-width: 400px; }
.cf-t { margin: 0 0 6px; font-size: 17px; font-weight: 650; }
.cf-x { margin: 0 0 12px; color: var(--sub); font-size: 14px; line-height: 1.45; }
.cf-pts { margin: 0 0 4px; padding: 0; list-style: none; display: grid; gap: 7px; }
.cf-pts li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.cf-pts li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
