:root {
  --ink: #20211e;
  --ink-2: #34362f;
  --paper: #f4f0e7;
  --paper-2: #ebe5da;
  --acid: #d9ff63;
  --coral: #ff765f;
  --muted: #737268;
  --line: rgba(32, 33, 30, 0.14);
  --white: #fffefa;
  --shadow: 0 24px 70px rgba(27, 28, 25, 0.13);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); }
.brand-panel { position: relative; overflow: hidden; min-height: 100vh; padding: 42px 7vw; background: var(--ink); color: var(--white); display: flex; flex-direction: column; }
.brand-panel::after { content: ""; position: absolute; width: 430px; height: 430px; right: -180px; bottom: -170px; border: 90px solid var(--coral); border-radius: 50%; opacity: .92; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; font-size: 21px; font-weight: 750; letter-spacing: -.03em; }
.wordmark-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--acid); color: var(--ink); font-size: 22px; font-weight: 900; }
.brand-copy { margin: auto 0; max-width: 720px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 16px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-copy .eyebrow { color: var(--acid); }
.brand-copy h1 { margin: 0; font-size: clamp(48px, 6.4vw, 96px); line-height: .96; letter-spacing: -.065em; font-weight: 760; }
.lead { max-width: 580px; margin: 30px 0 0; color: rgba(255,255,250,.72); font-size: clamp(17px, 1.4vw, 22px); line-height: 1.55; }
.prototype-note { position: relative; z-index: 1; margin: auto 0 0; color: rgba(255,255,250,.48); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.sound-line { position: absolute; left: 7vw; right: 5vw; bottom: 85px; display: flex; align-items: center; gap: clamp(7px, 1vw, 15px); height: 62px; opacity: .26; }
.sound-line i { width: 3px; height: 12px; background: var(--white); border-radius: 5px; }
.sound-line i:nth-child(2n) { height: 28px; }
.sound-line i:nth-child(3n) { height: 48px; }
.sound-line i:nth-child(5n) { height: 62px; background: var(--acid); }

.auth-panel { padding: 40px 8vw; display: grid; place-items: center; background: var(--paper); }
.auth-card { width: min(100%, 470px); }
.mobile-wordmark { display: none; text-decoration: none; font-weight: 780; letter-spacing: -.04em; }
.mobile-wordmark span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 7px; border-radius: 9px; background: var(--ink); color: var(--acid); }
.auth-card h2 { margin: 0 0 8px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.055em; line-height: 1.05; }
.muted { margin: 0; color: var(--muted); line-height: 1.55; }
.muted.small { font-size: 13px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; margin: 34px 0 26px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.45); }
.segmented button { min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.segmented button[aria-selected="true"] { background: var(--ink); color: var(--white); box-shadow: 0 7px 18px rgba(32,33,30,.15); }
.form-stack { display: grid; gap: 18px; }
.form-stack label > span:first-child { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 750; }
.form-stack input:not([type="checkbox"]) { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: var(--white); color: var(--ink); transition: border .16s, box-shadow .16s; }
.form-stack input:not([type="checkbox"]):focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217,255,99,.7); }
.form-stack textarea, .form-stack select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: var(--white); color: var(--ink); resize: vertical; }
.form-stack textarea:focus, .form-stack select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217,255,99,.7); }
.form-stack label em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 500; }
.form-stack small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.check-row { display: grid !important; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.check-row > span { margin: 0 !important; font-weight: 500 !important; }
.text-button { padding: 0; border: 0; background: transparent; text-decoration: underline; cursor: pointer; }
.primary-button { min-height: 52px; padding: 0 20px; border: 0; border-radius: 13px; background: var(--ink); color: var(--white); cursor: pointer; font-weight: 760; display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; box-shadow: 0 8px 18px rgba(32,33,30,.14); transition: transform .15s, background .15s; }
.primary-button:hover { background: var(--ink-2); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .55; transform: none; }
.primary-button.compact { min-height: 44px; border-radius: 999px; padding: 0 20px; }
.support-line { margin-top: 22px; color: var(--muted); text-align: center; font-size: 12px; }
.support-line a { color: var(--ink); font-weight: 700; }
.message { padding: 12px 14px; border-radius: 12px; background: rgba(217,255,99,.35); color: var(--ink); font-size: 13px; line-height: 1.45; }
.message[data-kind="error"] { background: rgba(255,118,95,.16); color: #8a3022; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); background: var(--paper); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 30px 22px 22px; background: var(--ink); color: var(--white); display: flex; flex-direction: column; }
.sidebar-brand { margin: 0 8px 42px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-link { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; min-height: 48px; padding: 0 13px; border-radius: 12px; color: rgba(255,255,250,.62); text-decoration: none; font-size: 14px; font-weight: 670; }
.nav-link > span { color: var(--acid); font-size: 19px; }
.nav-link.active { background: rgba(255,255,255,.09); color: var(--white); }
.nav-link em { padding: 3px 6px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,250,.36); font-size: 9px; font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.nav-link.disabled { cursor: default; }
.sidebar-bottom { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.profile-button { width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; align-items: center; padding: 7px; border: 0; border-radius: 12px; background: transparent; color: var(--white); text-align: left; cursor: pointer; }
.profile-button:hover { background: rgba(255,255,255,.07); }
.profile-button strong, .profile-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-button strong { font-size: 13px; }
.profile-button small { margin-top: 3px; color: rgba(255,255,250,.45); font-size: 10px; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 13px; background: var(--coral); color: var(--ink); font-weight: 850; }
.quiet-button { margin: 9px 8px 0; padding: 5px 0; border: 0; background: transparent; color: rgba(255,255,250,.45); cursor: pointer; font-size: 11px; }
.workspace { min-width: 0; padding: 55px clamp(28px, 5vw, 80px); }
.workspace-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.workspace-head h1 { margin: 0; font-size: clamp(40px, 5vw, 70px); letter-spacing: -.06em; line-height: .95; }
.head-actions, .detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.notification-button { position: relative; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.5); color: var(--ink); cursor: pointer; font-size: 9px; }
.notification-button > span { position: absolute; right: -5px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 10px; font-weight: 850; }
.library-search { position: relative; display: block; width: min(100%, 460px); margin: 38px 0 26px; }
.library-search input { width: 100%; height: 48px; padding: 0 46px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); outline: 0; }
.library-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(217,255,99,.55); }
.library-search > span:last-child { position: absolute; right: 17px; top: 10px; color: var(--muted); font-size: 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.song-card { min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(255,254,250,.72); text-align: left; cursor: pointer; box-shadow: 0 9px 30px rgba(32,33,30,.05); transition: transform .18s, box-shadow .18s; }
.song-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(32,33,30,.1); }
.song-cover { position: relative; height: 150px; padding: 18px; overflow: hidden; background: var(--ink); color: var(--white); }
.song-cover::before { content: ""; position: absolute; width: 150px; height: 150px; right: -35px; top: -34px; border: 35px solid var(--acid); border-radius: 50%; opacity: .82; }
.song-cover::after { content: "♫"; position: absolute; left: 18px; bottom: 12px; color: var(--acid); font-size: 45px; font-weight: 800; }
.song-cover small { position: relative; z-index: 1; padding: 5px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,250,.7); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.song-card-copy { padding: 17px 18px 19px; }
.song-card h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; letter-spacing: -.035em; }
.song-card p { margin: 5px 0 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.song-stats { display: flex; gap: 10px; color: var(--muted); font-size: 10px; }
.empty-state .primary-button { margin-top: 26px; }
.song-detail { padding-bottom: 80px; }
.detail-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 38px; }
.back-button, .quiet-outline { min-height: 39px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 700; }
.danger-outline { min-height: 39px; padding: 0 14px; border: 1px solid rgba(160,45,28,.35); border-radius: 999px; background: transparent; color: #9b3526; cursor: pointer; font-size: 12px; font-weight: 750; }
.back-button { padding-left: 0; border-color: transparent; }
.song-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.song-heading h2 { max-width: 900px; margin: 0; font-size: clamp(42px, 6vw, 82px); line-height: .95; letter-spacing: -.065em; }
.song-artist { margin: 12px 0 0; color: var(--muted); font-size: 19px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: start; gap: 24px; }
.audio-column { min-width: 0; display: grid; gap: 20px; }
.player-card, .track-section, .lyrics-card { border: 1px solid var(--line); border-radius: 20px; background: rgba(255,254,250,.72); box-shadow: 0 8px 24px rgba(32,33,30,.04); }
.player-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) 52px; align-items: center; gap: 16px; padding: 18px; background: var(--ink); color: var(--white); }
.mini-record { position: relative; width: 64px; height: 64px; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 3px, #363833 4px 6px); }
.mini-record::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: var(--coral); }
.mini-record span { position: absolute; z-index: 1; inset: 29px; border-radius: 50%; background: var(--ink); }
.now-playing { min-width: 0; }
.now-playing .eyebrow { margin-bottom: 5px; color: var(--acid); }
.now-playing strong, .now-playing small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing small { margin-top: 4px; color: rgba(255,255,250,.45); font-size: 10px; }
.player-toggle { width: 50px; height: 50px; border: 0; border-radius: 50%; background: var(--acid); color: var(--ink); cursor: pointer; font-size: 18px; }
.player-toggle:disabled { opacity: .25; cursor: default; }
.player-progress { grid-column: 1 / -1; display: grid; grid-template-columns: 35px minmax(0, 1fr) 35px; align-items: center; gap: 9px; color: rgba(255,255,250,.5); font-size: 9px; }
.player-progress input { width: 100%; accent-color: var(--acid); }
.track-section, .lyrics-card { padding: 21px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-head .eyebrow { margin-bottom: 5px; }
.section-head h3 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.section-head > small { color: var(--muted); font-size: 10px; }
.track-list { display: grid; gap: 8px; }
.track-empty { padding: 17px; border: 1px dashed var(--line); border-radius: 13px; color: var(--muted); font-size: 12px; text-align: center; }
.track-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 54px; padding: 7px 8px; border-radius: 13px; background: var(--paper); }
.track-play, .track-action { width: 37px; height: 37px; border: 0; border-radius: 11px; background: var(--white); cursor: pointer; }
.track-action { width: 32px; height: 32px; background: transparent; color: var(--muted); }
.track-action.preferred { color: #9c7600; background: #fff1a8; }
.track-copy { min-width: 0; }
.track-copy strong, .track-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-copy strong { font-size: 12px; }
.track-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.lyrics-card { position: sticky; top: 28px; min-height: 400px; }
.lyrics-text { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 16px/1.9 Georgia, serif; color: var(--ink); }
.lyrics-empty { margin: 70px 10px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.song-dialog { width: min(94vw, 620px); }
.song-mode { margin: 0 0 22px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.file-drop { position: relative; display: grid; place-items: center; min-height: 130px; padding: 25px; border: 1px dashed rgba(32,33,30,.35); border-radius: 16px; background: rgba(255,255,255,.35); text-align: center; cursor: pointer; }
.file-drop > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.file-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop strong { font-size: 13px; }
.file-drop small { margin-top: 6px; }
.empty-state { min-height: calc(100vh - 210px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px 20px; }
.empty-state h2 { margin: 8px 0 15px; font-size: clamp(26px, 3vw, 42px); line-height: 1.08; letter-spacing: -.045em; }
.empty-state > p:last-child { max-width: 460px; margin: 0; color: var(--muted); line-height: 1.6; }
.record-art { position: relative; width: 150px; height: 150px; margin-bottom: 34px; border-radius: 50%; background: repeating-radial-gradient(circle, var(--ink) 0 4px, #2b2d28 5px 8px); box-shadow: 0 20px 35px rgba(32,33,30,.2); }
.record-art::after { content: ""; position: absolute; inset: 38px; border-radius: 50%; background: var(--acid); }
.record-art span { position: absolute; z-index: 1; inset: 68px; border-radius: 50%; background: var(--ink); }
.mobile-header, .bottom-nav { display: none; }

.people-section { margin-top: 42px; }
.people-section:first-child { margin-top: 34px; }
.people-section .section-head h2 { font-size: clamp(28px, 3vw, 42px); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 13px; }
.person-card, .invitation-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.72); box-shadow: 0 8px 24px rgba(32,33,30,.04); }
.person-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer; }
.person-card .avatar { width: 44px; height: 44px; }
.person-copy strong, .person-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.person-card > span:last-child { color: var(--muted); }
.invitation-card strong, .invitation-card p { display: block; }
.invitation-card p { margin: 7px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.card-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.card-actions button { min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.card-actions .accept { border-color: transparent; background: var(--ink); color: var(--white); }
.panel-empty { margin-top: 35px; padding: 55px 25px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; }
.panel-empty h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.04em; }
.panel-empty p, .archive-note, .relationship-heading > p:last-child { color: var(--muted); line-height: 1.55; }
.archive-note { margin: 30px 0 22px; padding: 15px 17px; border-left: 3px solid var(--acid); background: rgba(255,255,255,.4); font-size: 13px; }
.relationship-heading { margin-bottom: 34px; }
.relationship-heading h2 { margin: 0; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.06em; }
.relationship-song-list { display: grid; gap: 11px; }
.relationship-song { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,254,250,.72); }
.relationship-song button { cursor: pointer; }
.relationship-song strong, .relationship-song small { display: block; }
.relationship-song small { margin-top: 4px; color: var(--muted); }
.notification-list { display: grid; gap: 9px; max-height: min(60vh, 520px); margin-bottom: 18px; overflow: auto; }
.notification-item { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.45); }
.notification-item.unread { border-left: 4px solid var(--coral); }
.notification-item strong, .notification-item small { display: block; }
.notification-item p { margin: 6px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.notification-item small { color: var(--muted); font-size: 9px; }
.material-checks { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.material-checks legend { padding: 0 7px; font-size: 12px; font-weight: 750; }
.material-checks > div { display: grid; gap: 9px; }
.material-checks label { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: center; font-size: 12px; }
.material-checks input { width: 18px; height: 18px; accent-color: var(--ink); }
.danger-zone { margin-top: 12px; padding: 18px; border: 1px solid rgba(160,45,28,.25); border-radius: 15px; background: rgba(255,118,95,.07); }
.danger-zone > p { margin: 6px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.danger-button { width: 100%; min-height: 42px; margin-top: 11px; border: 0; border-radius: 11px; background: #9b3526; color: white; cursor: pointer; font-weight: 750; }

.dialog-card { width: min(92vw, 470px); padding: 26px; border: 0; border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.dialog-card::backdrop { background: rgba(18,19,17,.65); backdrop-filter: blur(6px); }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dialog-head h2 { margin: 0; font-size: 34px; letter-spacing: -.05em; }
.icon-button { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; font-size: 24px; line-height: 1; }
.terms-dialog { width: min(92vw, 600px); }
.terms-copy { color: var(--muted); line-height: 1.65; font-size: 14px; }
.toast { position: fixed; z-index: 60; right: 24px; bottom: 24px; padding: 13px 17px; border-radius: 999px; background: var(--ink); color: var(--white); box-shadow: var(--shadow); font-size: 13px; font-weight: 700; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .auth-panel { min-height: 100vh; padding: 28px 22px; align-items: start; }
  .auth-card { margin-top: max(4vh, 24px); }
  .mobile-wordmark { display: inline-flex; align-items: center; margin-bottom: 62px; }
  .app-shell { display: block; padding: 74px 0 82px; }
  .sidebar { display: none; }
  .mobile-header { position: fixed; z-index: 20; inset: 0 0 auto; height: 68px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: rgba(244,240,231,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(15px); }
  .mobile-header .mobile-wordmark { display: inline-flex; margin: 0; }
  .mobile-header .avatar { cursor: pointer; }
  .workspace { padding: 28px 20px; }
  .workspace-head { align-items: center; }
  .workspace-head h1 { font-size: 42px; }
  .workspace-head .eyebrow { display: none; }
  .primary-button.compact { width: 44px; padding: 0; overflow: hidden; font-size: 0; }
  .primary-button.compact::first-letter { font-size: 22px; }
  .head-actions { gap: 6px; }
  .detail-actions { justify-content: flex-start; width: 100%; }
  .detail-topline { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
  .empty-state { min-height: calc(100vh - 220px); }
  .library-search { margin: 25px 0 18px; }
  .song-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .song-cover { height: 112px; padding: 12px; }
  .song-cover::after { left: 12px; bottom: 7px; font-size: 34px; }
  .song-card-copy { padding: 13px; }
  .song-card h3 { font-size: 16px; }
  .song-card p { margin-bottom: 10px; font-size: 11px; }
  .song-stats { display: block; font-size: 9px; }
  .song-stats span + span { margin-left: 5px; }
  .detail-topline { margin-bottom: 28px; }
  .song-heading { align-items: center; }
  .song-heading h2 { font-size: 46px; }
  .song-artist { font-size: 15px; }
  .detail-grid { grid-template-columns: 1fr; }
  .lyrics-card { position: static; min-height: 260px; }
  .player-card { grid-template-columns: 52px minmax(0, 1fr) 46px; gap: 11px; padding: 14px; }
  .mini-record { width: 52px; height: 52px; }
  .mini-record::after { inset: 18px; }
  .mini-record span { inset: 24px; }
  .player-toggle { width: 44px; height: 44px; }
  .track-section, .lyrics-card { padding: 17px; }
  .two-fields { grid-template-columns: 1fr; }
  .record-art { width: 120px; height: 120px; }
  .record-art::after { inset: 31px; }
  .record-art span { inset: 55px; }
  .bottom-nav { position: fixed; z-index: 20; inset: auto 0 0; height: 74px; padding: 8px 20px max(8px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(32,33,30,.96); backdrop-filter: blur(15px); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,250,.42); text-decoration: none; }
  .bottom-nav a span { font-size: 20px; }
  .bottom-nav a small { font-size: 10px; }
  .bottom-nav a.active { color: var(--acid); }
  .people-grid { grid-template-columns: 1fr; }
  .relationship-song { grid-template-columns: minmax(0, 1fr) auto; }
  .relationship-song .danger-outline { grid-column: 1 / -1; justify-self: start; }
  .toast { right: 16px; bottom: 90px; }
}

@media (max-width: 480px) {
  .auth-panel { padding: 20px 17px 34px; }
  .auth-card { margin-top: 2vh; }
  .mobile-wordmark { margin-bottom: 42px; }
  .auth-card h2 { font-size: 36px; }
  .segmented { margin-top: 27px; }
  .dialog-card { padding: 22px 18px; border-radius: 18px; }
  .song-grid { grid-template-columns: 1fr 1fr; }
}

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