/* Tunody: one stylesheet. Same dark palette and Manrope as flexmusiclabs.com so the two look related. */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #181b22;
  --panel-2: #1e222b;
  --line: #2a2f3a;
  --text: #e9ebf0;
  --muted: #a4abb8;
  --faint: #8a92a1;
  --orange: #ff9614;
  --green: #3cd25a;
  --blue: #4696ff;
  --danger: #ff6b6b;
  --radius: 14px;
  --wrap: 1040px;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ab3ff; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(15, 17, 21, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--sans); padding: 14px 20px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: linear-gradient(#5aa4ff, #2f7fea); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--panel); }
.btn-ghost:hover { color: var(--text); border-color: #3a4150; }
.btn-small { padding: 9px 13px; font-size: 0.9rem; border-radius: 8px; }
.btn-danger { border-color: #5a2a2a; color: #ffb3b3; background: #241618; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.btn:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Sections */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { font: 700 0.8rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 660px; }
.hero { padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(60, 210, 90, 0.12), transparent 70%); pointer-events: none; }
.hero .wave { width: 100%; max-width: 420px; height: 8px; border-radius: 99px; margin: 24px 0 28px; background: linear-gradient(90deg, var(--orange), var(--green), var(--blue)); }
.hero .wrap { position: relative; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--panel-2); border: 1px solid var(--line); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* The Create page */
.create-page { padding: 24px 0 64px; }
.create-page section { padding: 0; border: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
label, .label { font-weight: 700; font-size: 0.95rem; }
select, input[type="range"] { width: 100%; }
input[type="text"] { width: 100%; font: 500 1rem var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; }
select { font: 500 1rem var(--sans); color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; }
input[type="range"] { accent-color: var(--blue); }
.length-out { font-weight: 800; font-variant-numeric: tabular-nums; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--blue); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 14px; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--blue); background: var(--panel-2); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.notice.bad { border-left-color: var(--danger); }
.songs { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.song { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.song h3 { margin: 0 0 2px; }
.song .meta { color: var(--muted); font-size: 0.93rem; margin-bottom: 12px; }
.song audio { width: 100%; margin: 4px 0 12px; }
.state { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.dots { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--green); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dots { animation: none; border-top-color: var(--green); } }
.hidden { display: none !important; }

/* Terms and privacy */
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 0.5em; }

/* The Create page: a tool screen in the family of ComposerFlex and PianoFlex (flat dark panels with a thin border in the
   group's colour, a coloured title, small type, numbers in a monospace face, a message line and a hint line at the foot).
   Wide screens: the form on the left, the songs on the right, the page itself does not scroll. Narrow screens: one column. */
.single { max-width: 640px; }
.song { scroll-margin-top: 64px; }   /* scrolled into view, a card stops below the sticky header */
select:disabled, input:disabled { opacity: 0.45; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-size: 0.78rem; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

body.app { --mono: "Cascadia Mono", Consolas, "SFMono-Regular", ui-monospace, monospace; font-size: 14px; line-height: 1.4; }
body.app .site-header .wrap { min-height: 42px; padding: 0 14px; max-width: none; }
body.app .brand { font-size: 1.05rem; } body.app .brand img { width: 24px; height: 24px; }
body.app .nav a { padding: 5px 10px; font-size: 0.85rem; }
body.app .site-footer { padding: 6px 0; font-size: 0.75rem; }
body.app .site-footer .wrap { max-width: none; padding: 0 14px; gap: 4px 20px; }
.create-page { padding: 8px 0 0; }
.create-page .wrap { max-width: none; padding: 0 14px; }
.app-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 6px; }
.app-top h1 { font-size: 1rem; margin: 0; letter-spacing: 0.03em; }
.top-extra { display: flex; align-items: center; gap: 12px; }
.count { color: var(--muted); font: 0.78rem var(--mono); }
.btn-small { padding: 4px 10px; font-size: 0.78rem; border-radius: 4px; }

.app-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.config { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.pane, .library { background: #13161c; border: 1px solid var(--g, var(--line)); border-radius: 4px; padding: 8px 10px 10px; }
.pane h2, .library h2 { margin: 0 0 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--g, var(--text)); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pane-song { --g: var(--orange); }
.pane-feel { --g: var(--green); }
.library { --g: var(--blue); }
.row { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 6px; }
.row:last-child { margin-bottom: 0; }
label, .label { font-weight: 600; font-size: 0.8rem; color: var(--muted); }
select, input[type="text"] { width: 100%; font: 500 0.82rem var(--sans); color: var(--text); background: #1b1f27; border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; min-height: 26px; }
select:focus-visible, input:focus-visible { outline: 1px solid var(--blue); outline-offset: 0; }
.help { margin: 0 0 6px 86px; color: var(--faint); font-size: 0.75rem; line-height: 1.35; min-height: 2.7em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.ctl { min-width: 0; }
.ctl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.num { font: 0.8rem var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.ctl input[type="range"] { width: 100%; margin: 2px 0 0; height: 16px; accent-color: var(--blue); }
.ctl-random { --g: var(--blue); }
.ends { display: flex; justify-content: space-between; color: var(--faint); font-size: 0.7rem; }
.check { display: flex; gap: 6px; align-items: center; }
.check input { margin: 0; width: 14px; height: 14px; accent-color: var(--blue); }
.ctl-random .check span { font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.create-row .btn-create { width: 100%; padding: 8px 14px; font-size: 0.9rem; border-radius: 4px; background: linear-gradient(#35c455, #229a3d); }
.create-row .btn-create:hover { filter: brightness(1.08); }
.notice { margin: 6px 0 0; padding: 0; border: 0; background: none; color: #ffd24a; font-size: 0.8rem; min-height: 1.2em; }
.notice.bad { color: #ff8a8a; }
.hint { margin: 2px 0 0; color: var(--faint); font-size: 0.75rem; min-height: 1.3em; }

.library { display: flex; flex-direction: column; min-height: 0; }
.songs { list-style: none; padding: 0; margin: 0; display: block; flex: 1; min-height: 0; }
.song { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 3px 12px; background: none; border: 0; border-top: 1px solid #232831; border-radius: 0; padding: 6px 4px; }
.song:first-child { border-top: 0; }
.song h3 { margin: 0; font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .meta { grid-column: 1; margin: 0; color: var(--faint); font: 0.72rem var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .btn-row { gap: 6px; flex-wrap: wrap; justify-content: flex-start; margin: 1px 0 2px; }
.song .btn-row .btn { padding: 3px 9px; font-size: 0.74rem; }
.song .state { grid-column: 1; margin: 0; font-size: 0.8rem; }
.song audio { grid-column: 1 / -1; width: 100%; height: 30px; margin: 4px 0 2px; }
.song.creating { box-shadow: inset 3px 0 0 var(--green); background: rgba(60, 210, 90, 0.05); padding-left: 10px; }
.song .muted { grid-column: 1; margin: 0; font-size: 0.75rem; color: var(--faint); }

@media (min-width: 900px) {
  body.app { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  body.app main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .create-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .create-page .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; width: 100%; }
  .app-grid { flex: 1; min-height: 0; grid-template-columns: minmax(460px, 38%) minmax(0, 1fr); }
  .app-grid.hidden { display: none !important; }
  .config { overflow-y: auto; }
  .library .songs { overflow-y: auto; }
  .single { margin-top: 20px; }
}
@media (max-width: 899px) {
  .help { margin-left: 0; min-height: 0; }
  .create-page { padding-bottom: 24px; }
}
@media (max-width: 420px) {
  .grid2 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 70px minmax(0, 1fr); }
}
.song.playing { box-shadow: inset 3px 0 0 var(--blue); background: rgba(70, 150, 255, 0.07); padding-left: 10px; }
.song.playing .btn-primary { background: #1f3f78; border-color: #2f5aa8; }
@media (min-width: 1700px) and (min-height: 900px) { html:has(> body.app) { font-size: 18px; } }   /* a large screen: the same layout, a little bigger */
@media (max-width: 899px) { .app-top { flex-wrap: wrap; } }

/* The comparison page */
.cmp .lead { max-width: 720px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 26px; }
.why > div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; color: var(--muted); font-size: 0.95rem; }
.why strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 1.05rem; }
.table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cmp-table thead th { background: var(--bg); font-size: 1rem; border-bottom: 2px solid var(--line); }
.cmp-table thead .c-tunody { color: var(--green); } .cmp-table thead .c-composer { color: var(--orange); } .cmp-table thead .c-piano { color: var(--blue); }
.cmp-table tbody th[scope="row"] { width: 15%; color: var(--text); font-weight: 700; }
.cmp-table td { width: 28%; color: var(--muted); }
.cmp-table td.no { color: var(--faint); }
.cmp-table td.across { color: var(--text); }
.cmp-table tr.grp th { background: var(--panel); color: var(--muted); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) {
  .why { grid-template-columns: 1fr; }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: auto !important; }
  .cmp-table thead { display: none; }
  .cmp-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .cmp-table tr.grp { border: 0; padding: 0; margin-top: 14px; }
  .cmp-table th, .cmp-table td { border: 0; padding: 3px 12px; }
  .cmp-table td::before { content: attr(data-label); display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
  .cmp-table td[data-label="Tunody"]::before { color: var(--green); } .cmp-table td[data-label="ComposerFlex"]::before { color: var(--orange); } .cmp-table td[data-label="PianoFlex"]::before { color: var(--blue); }
  .cmp-table td.across::before { display: none; }
}
.cmp > .small { margin-top: 16px; }
.lock-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 1px solid var(--blue); border-radius: 4px; background: #101a2b; padding: 8px 10px; font-size: 0.82rem; }
.locked .pane { opacity: 0.8; }
/* the end words sit beside the track, as in the programs; words in the normal face, only figures in the monospace one */
.srow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; color: var(--faint); font-size: 0.72rem; }
.srow input[type="range"] { margin: 0; }
.count { font: 0.8rem var(--sans); font-variant-numeric: tabular-nums; }
.song .meta { font: 0.76rem var(--sans); font-variant-numeric: tabular-nums; }
.create-row { margin-top: 0; }
.config .notice { margin: 0; }
.config .hint { margin: 0; }
.pane-help { --g: var(--line); }
.pane-help h2 { color: var(--muted); }
.pane-help .hint { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.5; min-height: 3em; }
@media (min-width: 900px) { .pane-help { flex: 1; min-height: 70px; } }

/* Key, tempo and scale: three small controls on one line */
.pane-music { --g: var(--orange); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
.grid3 .ctl-h { min-height: 18px; }
.grid3 .ctl-h .check span { font-weight: 600; font-size: 0.75rem; color: var(--muted); }
input[type="number"] { width: 100%; font: 500 0.82rem var(--sans); color: var(--text); background: #1b1f27; border: 1px solid var(--line); border-radius: 3px; padding: 4px 8px; min-height: 26px; font-variant-numeric: tabular-nums; }
input[type="number"]:focus-visible { outline: 1px solid var(--blue); outline-offset: 0; }
@media (max-width: 420px) { .grid3 { grid-template-columns: 1fr; } }

/* The Account page: a few plain panels, the page scrolls like any other */
.acct { display: grid; gap: 10px; max-width: 640px; }
.acct .line { margin: 0 0 8px; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.acct .line .label { color: var(--faint); }
.acct .btn-row .btn { padding: 5px 12px; font-size: 0.8rem; }
.pane-danger { --g: #ff8a80; }
@media (min-width: 900px) {
  body.flow { height: auto; min-height: 100vh; overflow: visible; display: flex; flex-direction: column; }
  body.flow main { display: block; flex: 1; }
  body.flow .create-page { display: block; padding-bottom: 28px; }
  body.flow .create-page .wrap { display: block; }
}

/* The Edit title window */
.dlg { background: #13161c; color: var(--text); border: 1px solid var(--blue); border-radius: 4px; padding: 12px 14px 14px; width: min(420px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(8, 9, 12, 0.72); }
.dlg h2 { margin: 0 0 4px; font-size: 0.9rem; color: var(--blue); }
.dlg .help { margin: 0 0 8px; min-height: 0; }
.dlg label { display: block; margin: 0 0 4px; }
.dlg .edit-count { margin: 4px 0 8px; color: var(--faint); font-size: 0.72rem; text-align: right; font-variant-numeric: tabular-nums; }
.dlg .notice { margin: 0 0 8px; }
.dlg .dlg-q { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.45; color: var(--text); }
.dlg .btn-row { flex-wrap: wrap; }

/* Drop-down lists drawn in the page (site/js/dropdown.js): dark from the first frame, not the browser's own list window */
.dd { position: relative; min-width: 0; }
.dd-native { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd-btn { position: relative; display: block; width: 100%; min-height: 26px; padding: 4px 26px 4px 8px; text-align: left; font: 500 0.82rem var(--sans); color: var(--text); background: #1b1f27; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-btn::after { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.dd-btn:hover:not(:disabled) { border-color: #3a4150; }
.dd-btn:focus-visible { outline: 1px solid var(--blue); outline-offset: 0; }
.dd-btn:disabled { opacity: 0.45; cursor: default; }
.dd-list { position: fixed; z-index: 1000; overflow-y: auto; padding: 3px 0; background: #1b1f27; color: var(--text); border: 1px solid #3a4150; border-radius: 4px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); font: 500 0.82rem var(--sans); color-scheme: dark; }
.dd-list[hidden] { display: none; }
.dd-head { padding: 7px 10px 2px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); }
.dd-opt { padding: 4px 10px 4px 16px; cursor: pointer; }
.dd-opt.active { background: #2a3140; }
.dd-opt[aria-selected="true"] { color: #8fc2ff; font-weight: 700; }

/* Found in the hands-on pass at 390 px: the menu wrapped (Account alone on a second line), "Sign out" broke in two, and a long
   title or details line was cut off with dots. A phone gets a tighter menu and lines that wrap. */
.btn { white-space: nowrap; }
@media (max-width: 480px) {
  .site-header .wrap { gap: 2px 12px; min-height: 0; padding-top: 6px; padding-bottom: 6px; }
  .nav { gap: 0; flex-wrap: nowrap; margin: 0 -6px; }
  .nav a, body.app .nav a { padding: 6px 7px; font-size: 0.8rem; }
}
@media (max-width: 899px) {
  .song h3 { white-space: normal; overflow-wrap: anywhere; }
  .song .meta { white-space: normal; }
}
@media (max-width: 359px) { .nav { margin: 0 -4px; } .nav a, body.app .nav a { padding: 6px 4px; font-size: 0.74rem; } }

/* The "new" dot before the title of a finished song that has not been listened to yet */
.song h3 .new { display: inline-block; margin-right: 7px; vertical-align: middle; position: relative; line-height: 0; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(60, 210, 90, 0.28); vertical-align: middle; }
@media (forced-colors: active) { .new-dot { background: Highlight; box-shadow: none; border: 1px solid Highlight; } }

/* The Info window */
.dlg-info { width: min(480px, calc(100vw - 32px)); }
.info-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 6px 0 10px; font-size: 0.82rem; }
.info-list dt { color: var(--muted); font-weight: 600; }
.info-list dd { margin: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.copyable { font: 0.8rem var(--mono); background: #1b1f27; border: 1px solid var(--line); border-radius: 3px; padding: 2px 6px; user-select: all; overflow-wrap: anywhere; }
.copyable:focus-visible { outline: 1px solid var(--blue); }
.info-list .btn { padding: 2px 8px; font-size: 0.72rem; }
@media (max-width: 420px) { .info-list { grid-template-columns: 1fr; gap: 0; } .info-list dd { margin-bottom: 6px; } }
.info-note { margin: 0 0 10px; color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
