:root {
  color-scheme: light;
  font: 16px/1.45 Arial, Helvetica, sans-serif;
  --ink: #151412;
  --paper: #f0e9de;
  --panel: #e9e1d6;
  --line: #cfc4b5;
  --accent: #aa251c;
  --hot: #e43b31;
  --muted: #5e5750;
  --surface: #f6eee3;
  --control-bg: #fffaf128;
  --control-border: #a59c91;
  --search-bg: #f3eae093;
  --row-hover: #e5dace66;
  --tinted: #eadbd0;
  --error: #8a1c17;
  --download-ink: #7e1f16;
  --action: var(--accent);
  --action-hover: #881a13;
  --header: 66px;
  --player: 88px;
  --gutter: clamp(18px, 2.4vw, 48px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper) url("/static/paper.webp"); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
button, .button-link { cursor: pointer; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 3px; }
button:disabled, input:disabled { opacity: .45; cursor: default; }
button, .button-link, input, select {
  min-width: 0;
  border: 1px solid var(--control-border);
  border-radius: 4px;
  background: var(--control-bg);
  padding: 9px 13px;
}
button:hover:not(:disabled), .button-link:hover { border-color: var(--accent); }
.primary { color: #fff9ee; background: var(--action); font-weight: 700; border-color: transparent; }
.primary:hover:not(:disabled) { background: var(--action-hover); }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
p { color: var(--muted); }
h1, h2, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.6rem, 3.4vw, 4rem); letter-spacing: -.073em; line-height: 1.04; margin: 0 0 19px; font-weight: 850; }
h2 { font-size: 1.37rem; line-height: 1.12; letter-spacing: -.035em; margin: 24px 0 13px; }
small { color: var(--muted); }
header {
  position: sticky; top: 0; z-index: 5;
  min-height: var(--header); padding: 0 clamp(18px, 3.1vw, 54px);
  display: flex; align-items: center; gap: clamp(10px, 1.55vw, 29px);
  color: #f9f2e8; background: #131212; border-bottom: 1px solid #35302c;
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 900; text-transform: uppercase; text-decoration: none; letter-spacing: -.045em; font-size: clamp(.94rem, 1.37vw, 1.52rem); }
.brand i { width: 24px; height: 24px; transform: skew(-28deg); background: repeating-linear-gradient(90deg,var(--hot) 0 4px,transparent 4px 8px); }
.brand-label { white-space: nowrap; border-left: 1px solid #524940; padding-left: clamp(10px,1.55vw,26px); }
nav { display: flex; gap: clamp(4px,.8vw,12px); margin-inline: auto; align-items: stretch; }
nav button, #menu-toggle, #account-menu button { color: inherit; background: transparent; border-color: transparent; }
nav button { min-height: calc(var(--header) - 10px); border-radius: 0; padding: 8px clamp(4px,.62vw,11px); font-size: clamp(.77rem, 1vw, 1.02rem); white-space: nowrap; }
nav button[aria-current="page"] { border-bottom: 2px solid var(--hot); font-weight: 700; }
#account-menu { margin-left: auto; position: relative; flex-shrink: 0; }
#account-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff7ed; font-size: .88rem; cursor: pointer; }
#account-avatar::-webkit-details-marker { display: none; }
#account-menu > div { position: absolute; right: 0; top: 52px; min-width: 150px; padding: 5px; border: 1px solid #524940; border-radius: 4px; background: #171616; }
#account-menu button { width: 100%; text-align: left; }
#menu-toggle { display: none; }
main { padding: 0 var(--gutter) calc(var(--player) + 30px); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(258px, 23.35%); gap: clamp(17px, 1.65vw, 30px); }
.workspace-content { min-width: 0; padding-top: clamp(20px, 2.1vw, 36px); }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(14px, 1.25vw, 22px); }
.catalog-heading h1 { margin: 0; }
#search { width: min(36%, 365px); min-height: 40px; padding-left: 36px; background-color: var(--search-bg); }
.catalog-heading::after { content: ""; pointer-events: none; }
.catalog-heading { position: relative; }
.catalog-heading::after { position: absolute; right: calc(min(36%, 365px) - 24px); top: calc(50% - 8px); width: 12px; height: 12px; border: 2px solid #665e56; border-radius: 50%; }
.weekly { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); height: clamp(185px, 14.05vw, 265px); background: #171615; color: #fff7ec; overflow: hidden; }
.weekly-art { background: #24211e url("/static/weekly.webp") center / cover no-repeat; }
.weekly-copy { align-self: center; padding: 14px clamp(12px, 1.4vw, 24px) 14px clamp(18px, 3.15vw, 54px); }
.weekly-copy h2 { margin: 0; font-size: clamp(1.65rem, 2.32vw, 2.65rem); letter-spacing: -.065em; }
.weekly-copy p { color: #dfd6cb; margin: 13px 0 20px; }
.weekly-copy button { display: inline-flex; align-items: center; gap: 16px; border-radius: 0; padding: 10px 17px; white-space: nowrap; }
.weekly-copy button span { font-size: 1.3em; line-height: 1; }
.catalog-tools { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; margin-top: 12px; border-bottom: 1px solid #c1b7aa; }
.facet-buttons, .catalog-controls { display: flex; align-items: center; gap: clamp(1px,.65vw,12px); }
.facet-buttons button { padding: 11px 9px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; }
.facet-buttons button[aria-pressed="true"] { border-bottom-color: var(--accent); font-weight: 700; }
.catalog-controls label { padding-inline: 7px 0; display: inline-flex; align-items: center; gap: 3px; margin: 0; white-space: nowrap; font-size: clamp(.72rem, .9vw, .95rem); }
.catalog-controls label + label { border-left: 1px solid var(--line); }
.catalog-controls select, .catalog-controls input { border: 0; font-size: inherit; max-width: clamp(95px, 12vw, 230px); padding: 5px 3px; background: transparent; }
.catalog-controls input { width: 62px; }
.catalog-context { min-height: 29px; padding-block: 3px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.catalog-context button { padding: 2px 6px; font-size: inherit; border-color: transparent; text-decoration: underline; text-underline-offset: 2px; }
#release-search { padding: 4px 8px; color: var(--ink); }
#layout-toggle { margin-left: auto; }
.facet-options { padding: 10px; border-bottom: 1px solid var(--line); }
.facet-options > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.facet-options button { padding: 4px 8px; font-size: .85rem; }
.track-gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 21px clamp(13px,2.05vw,37px); }
.track-card { text-align: left; display: block; width: 100%; border: 0; padding: 0; background: transparent; }
.track-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 7px; border: 2px solid transparent; }
.track-card[aria-pressed="true"] img, .track-card:hover img { border-color: var(--accent); }
.track-card strong, .track-card small { display: block; overflow-wrap: anywhere; line-height: 1.25; }
.track-card strong { font-size: clamp(.94rem,1.22vw,1.28rem); letter-spacing: -.03em; margin-top: 4px; }
.track-card small { font-size: clamp(.81rem,.98vw,1.03rem); margin-top: 4px; }
.metadata-flag { color: #8c1c16; font-size: .73rem; }
.sidebar { position: sticky; top: var(--header); height: calc(100dvh - var(--header) - var(--player)); align-self: start; overflow: auto; display: flex; flex-direction: column; padding: clamp(19px,2.15vw,39px) 0 9px clamp(16px,1.55vw,28px); border-left: 1px solid #c5baaa; scrollbar-width: thin; }
.detail-heading { display: grid; grid-template-columns: minmax(55px,34%) minmax(0,1fr); gap: clamp(10px,1.12vw,20px); align-items: start; }
#detail-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-heading h2 { margin: 4px 0 2px; font-size: clamp(1.2rem,1.68vw,1.8rem); }
.detail-heading p { margin: 3px 0; }
#detail-artist { color: var(--ink); }
#detail-meta { font-size: .84rem; }
.detail-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: clamp(13px,1.6vw,27px); }
.detail-actions > * { padding-inline: 5px; font-size: clamp(.75rem,.97vw,1rem); }
.presence { margin-top: clamp(15px,1.9vw,34px); border-block: 1px solid #c5baaa; padding: 12px 0 14px; }
.presence h2 { margin: 0 0 9px; font-size: 1.25rem; }
.presence ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 110px; overflow: auto; }
.presence li { display: flex; align-items: center; gap: 12px; font-size: .91rem; padding-left: 8px; }
.presence li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4f9f49; }
.community { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 176px; padding-top: 12px; }
#chat-messages { flex: 1 1 140px; min-height: 85px; overflow-y: auto; margin: 0; padding: 0 4px 8px 0; list-style: none; scrollbar-width: thin; }
#chat-messages li { display: flex; gap: 9px; margin-bottom: 12px; font-size: .82rem; }
#chat-messages li > div { flex: 1; min-width: 0; }
#chat-messages time, .chat-empty { color: var(--muted); }
#chat-messages p { margin: 2px 0 0; padding: 7px 9px; background: var(--chat-bubble, #d7cbbd67); border-radius: 7px; color: var(--ink); white-space: pre-wrap; }
.chat-avatar { flex: none; border-radius: 50%; background: #272220; color: white; width: 29px; height: 29px; display: grid; place-items: center; font-size: .72rem; }
#chat-form { display: flex; gap: 8px; margin-top: auto; }
#chat-form input { flex: 1; font-size: .88rem; }
#chat-status { margin: 2px 0; font-size: .83rem; }
#player { position: fixed; inset: auto 0 0; z-index: 6; min-height: var(--player); padding: 10px var(--gutter); display: grid; grid-template-columns: minmax(155px,17%) auto minmax(80px,1fr) auto minmax(80px,15%); gap: clamp(8px,1.6vw,28px); align-items: center; background: #131212; color: #f8f1e6; }
.now-playing { display: flex; gap: 11px; align-items: center; overflow: hidden; }
.now-playing img { width: min(5vw,58px); aspect-ratio: 1; object-fit: cover; flex: none; }
.now-playing div { min-width: 0; }
.now-playing strong, .now-playing span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-playing span { color: #d0c5b7; font-size: .83rem; }
.transport { display: flex; align-items: center; gap: 6px; border-inline: 1px solid #514843; padding-inline: 12px; }
.transport button { border: 0; background: transparent; color: #eee4d9; min-width: 32px; padding: 5px; }
.transport #track-toggle { border-radius: 50%; width: 42px; height: 42px; background: #f1e8dc; color: #151412; }
.timeline { min-width: 0; position: relative; height: 53px; }
.timeline canvas { display: block; width: 100%; height: 100%; }
#seek { position: absolute; inset: 0; margin: 0; width: 100%; opacity: 0; cursor: pointer; }
#seek:focus-visible { opacity: .75; }
#playback-time { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: .9rem; }
.volume { display: flex; gap: 10px; align-items: center; margin: 0; font-size: .8rem; }
input[type="range"] { min-width: 0; accent-color: #fff4e5; }
.volume input { width: 100%; }
#login { display: grid; align-items: center; justify-items: center; min-height: 78vh; padding: 26px 0; }
.panel, dialog { width: min(100%,48rem); border: 1px solid var(--line); background: var(--surface); padding: clamp(16px,2vw,30px); }
#login-form { max-width: 445px; border-top: 4px solid var(--accent); }
#login-form h1 { margin: 8px 0 20px; }
.identity { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
label { display: grid; gap: 5px; margin-bottom: 13px; }
.table-shell { overflow-x: auto; }
table { width: 100%; min-width: 600px; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 11px 7px; }
th { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
td small, .downloaded { display: block; }
tr:hover td { background: var(--row-hover); }
.play { color: #8f1d15; padding: 5px 10px; }
.download { text-underline-offset: 3px; color: var(--download-ink); }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 16px; }
.rejected, #status { color: var(--error); }
progress { width: 100%; margin-top: 14px; accent-color: var(--accent); }
.user-form { margin-bottom: 14px; }
.screen-reader { position: absolute; height: 1px; width: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,225px),1fr)); gap: 17px; }
.track-list { padding: 0; list-style: none; }
.track-list li { display: flex; align-items: center; gap: 10px; min-height: 43px; padding: 7px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.track-list li time { margin-left: auto; color: var(--muted); }
.stat-items { max-height: 510px; overflow: auto; }
.stat-items li { padding: 0; }
.stat-items button { width: 100%; border: 0; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 7px; }
.recommendation-label { flex: 1; min-width: 0; }
.recommendation-label small { display: block; }
dialog { max-width: min(560px, calc(100vw - 28px)); color: var(--ink); }
dialog::backdrop { background: #17120d99; }
dialog h2 { margin-top: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 1350px) { .brand-label { display: none; } }
@media (max-width: 1080px) {
  .catalog-tools { flex-wrap: wrap; }
  .catalog-controls { padding-bottom: 5px; }
  .weekly-copy { padding-inline: 14px; }
  .weekly { grid-template-columns: minmax(0,1.48fr) minmax(0,1fr); }
  .track-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 950px) {
  header { flex-wrap: wrap; gap: 8px; padding-block: 9px; min-height: 60px; }
  .brand { margin-right: auto; }
  #menu-toggle { display: inline-flex; }
  #menu-toggle[aria-expanded="false"] + nav { display: none; }
  #navigation { order: 4; width: 100%; display: grid; grid-template-columns: repeat(3,1fr); }
  #navigation button { text-align: left; min-height: 40px; font-size: .88rem; }
  .workspace { grid-template-columns: minmax(0,1fr) minmax(220px,30%); }
}
@media (max-width: 700px) {
  :root { --player: 105px; }
  .workspace { display: flex; flex-direction: column; }
  .sidebar { position: static; height: auto; overflow: visible; border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; }
  .detail-heading { grid-template-columns: 65px minmax(0,1fr); }
  .community { min-height: 180px; max-height: 350px; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 9px; }
  .catalog-heading::after { display: none; }
  #search { width: 100%; padding-left: 12px; }
  .weekly { height: auto; min-height: 152px; }
  .weekly-copy h2 { font-size: 1.35rem; }
  .weekly-copy p { margin: 6px 0 9px; font-size: .85rem; }
  .weekly-copy button { gap: 7px; padding: 6px 8px; font-size: .8rem; }
  .track-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #player { grid-template-columns: minmax(0,1fr) auto auto; grid-template-areas: "info transport time" "wave wave wave"; gap: 3px 8px; }
  .now-playing { grid-area: info; font-size: .84rem; }
  .now-playing img { width: 36px; }
  .now-playing span, #playback-time { font-size: .72rem; }
  .transport { grid-area: transport; padding-inline: 3px; }
  .transport button { min-width: 24px; }
  .transport #track-toggle { width: 32px; height: 32px; }
  #playback-time { grid-area: time; }
  .timeline { grid-area: wave; height: 33px; }
  .volume { display: none; }
}

.upload-dates { position: relative; font-size: .79rem; color: var(--muted); }
.upload-dates summary { cursor: pointer; width: fit-content; }
.upload-dates > div { position: absolute; left: 0; top: 100%; z-index: 2; display: flex; gap: 8px; width: max-content; flex-direction: column; padding: 8px; background: var(--surface); border: 1px solid var(--line); }
.upload-dates label { margin: 0; display: flex; align-items: center; gap: 6px; }
.upload-dates input { padding: 3px 5px; }
.member-summary li { justify-content: space-between; }
.member-summary small { display: block; }
.member-summary button { white-space: nowrap; }

.activity-filters { display: flex; flex-wrap: wrap; gap: 8px 13px; }
.activity-filters label { margin: 0; }
#events time { font-size: .82rem; text-align: right; min-width: 105px; }
.member-summary li > div:last-child { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.member-summary button { padding: 4px 7px; font-size: .84rem; }

#detail-play::before { content: ""; display: inline-block; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; margin-right: 8px; }
.transport button { font-size: 0; display: grid; place-content: center; }
.transport button::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.transport #track-previous::before { transform: rotate(180deg); }
.transport #track-stop::before { width: 10px; height: 10px; border: 0; background: currentColor; border-radius: 1px; }
.transport #track-toggle[data-playing="true"]::before { width: 8px; height: 11px; border: 0; border-inline: 3px solid currentColor; }
@media (max-width: 700px) {
  .catalog-controls { flex-wrap: wrap; max-width: 100%; }
  .catalog-context { flex-wrap: wrap; }
  .upload-dates > div { right: 0; left: auto; }
}

.profile-only { grid-template-columns: minmax(0, 1fr); }
.check-label { display: flex; align-items: center; }
.check-label input { accent-color: var(--accent); }
.quota-summary { padding: 7px 9px; border-left: 2px solid #59784c; color: var(--ink); font-size: .84rem; }
.quota-summary.quota-locked { border-color: var(--accent); background: var(--tinted); }


.device-list li { align-items: center; flex-wrap: wrap; }
.device-list li > div { flex: 1; min-width: min(100%, 15rem); }
.device-list small { display: block; }
#pending-heading { scroll-margin-top: calc(var(--header) + 16px); }
#open-location-map { margin-top: 10px; font-size: .84rem; padding: 5px 8px; }
#location-map { max-width: min(900px, calc(100vw - 28px)); width: 100%; }
.dialog-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.dialog-top h2 { margin: 0; }
#world-map { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
#map-people li { justify-content: space-between; }
#map-people small { display: block; }


.catalog-tools { position: relative; }
.facet-options { position: absolute; z-index: 8; width: min(24rem, 88vw); padding: 12px;
  border: 1px solid var(--line); background: var(--paper); box-shadow: 0 10px 26px #231a1830; }
.facet-options input { width: 100%; }
.facet-options > div { display: block; max-height: 15rem; overflow: auto; }
.facet-options > div button { display: flex; justify-content: space-between; width: 100%;
  padding: 7px 9px; text-align: left; border: 0; border-bottom: 1px solid var(--line); }
.track-gallery { align-items: start; grid-template-columns: repeat(auto-fill,minmax(min(100%,145px),1fr)); }
.track-card img, #detail-cover { object-fit: contain; }
#volume { appearance: none; height: 6px; border-radius: 9px;
  background: linear-gradient(to right,#fff1df 0 var(--volume-level),#625e5a var(--volume-level) 100%); }
#volume::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px;
  background: #fff1df; border-radius: 50%; }
#volume::-moz-range-thumb { width: 12px; height: 12px; background: #fff1df; border: 0; border-radius: 50%; }
#volume-value { min-width: 3.3em; text-align: right; font-variant-numeric: tabular-nums; }

.comparison-dialog { width: min(52rem, 92vw); }
.comparison-tracks { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1rem; }
.comparison-tracks section { padding: 12px; border: 1px solid var(--line); }
.comparison-tracks audio { width: 100%; }
.comparison-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.year-range, #active-filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.year-range input { width: 5rem; }
.rating-controls { display: flex; flex-wrap: wrap; gap: .2rem; }
.rating-controls button { padding: .15rem .35rem; font-size: 1rem; color: var(--accent); }

#catalog-columns { position: relative; }
#catalog-columns summary { cursor: pointer; }
#column-options { position: absolute; z-index: 9; padding: 9px; min-width: 9rem; background: var(--paper); border: 1px solid var(--line); }
#column-options label { display: flex; align-items: center; gap: .35rem; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #181719;
  --panel: #232124;
  --surface: #232124;
  --line: #494346;
  --ink: #f5ede3;
  --muted: #c7bdb5;
  --accent: #ef8278;
  --control-bg: #2c292d;
  --control-border: #777075;
  --search-bg: var(--control-bg);
  --row-hover: #262327;
  --tinted: #342627;
  --error: #ffaaa0;
  --download-ink: var(--ink);
  --action: #b33830;
  --action-hover: #942b24;
  --chat-bubble: #2e2a2d;
}
:root[data-theme="dark"] body { background-image: none; }
:root[data-theme="dark"] input::placeholder { color: var(--muted); opacity: 1; }
:root[data-theme="dark"] input::file-selector-button { color: var(--ink); background: var(--panel); border: 1px solid var(--control-border); border-radius: 3px; }
:root[data-theme="dark"] .play, :root[data-theme="dark"] .metadata-flag { color: var(--accent); }
:root[data-theme="dark"] #account-avatar { background: var(--action); }
#track-table.hide-col-3 tr:not(:has(.empty)) > :nth-child(3) { display: none; }
#track-table.hide-col-4 tr:not(:has(.empty)) > :nth-child(4) { display: none; }
#track-table.hide-col-5 tr:not(:has(.empty)) > :nth-child(5) { display: none; }
#track-table.hide-col-6 tr:not(:has(.empty)) > :nth-child(6) { display: none; }
#track-table.hide-col-7 tr:not(:has(.empty)) > :nth-child(7) { display: none; }

@media (max-width: 700px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #catalog { width: 100%; min-width: 0; }
  #track-table { overflow-x: visible; }
  #track-table table, #track-table tbody { display: block; width: 100%; min-width: 0; }
  #track-table thead { display: none; }
  #track-table tbody tr {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 4px 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  #track-table td { min-width: 0; padding: 0; border: 0; }
  #track-table tr:hover td { background: transparent; }
  #track-table .track-play { grid-area: 1 / 1 / 3 / 2; align-self: center; }
  #track-table .track-play button { width: 44px; min-height: 44px; }
  #track-table .track-name { grid-area: 1 / 2 / 2 / 4; }
  #track-table .track-name strong,
  #track-table .track-name small { white-space: normal; word-break: normal; overflow-wrap: anywhere; }
  #track-table .track-genre { grid-area: 2 / 2; font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
  #track-table .track-download { grid-area: 2 / 3; text-align: right; font-size: .85rem; }
  #track-table .track-download a { display: inline-block; padding-block: 5px; }
  #track-table .downloaded { max-width: 10em; font-size: .72rem; }
  #track-table tbody td:is(.track-year, .track-duration, .track-added, .track-uploader) { display: none; }
  #track-table .empty { grid-column: 1 / -1; }
}

@media (max-width: 700px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #track-table tbody { display: grid; gap: 8px; }
  #track-table tbody tr {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
  }
  #track-table .track-name strong { display: block; line-height: 1.25; }
  #track-table .track-name small { margin-top: 3px; color: var(--muted); }
  #track-table .track-play button { border-radius: 50%; padding: 0; }
  #track-table .track-download a { font-weight: 700; }
}

#mobile-filters { display: none; }
@media (max-width: 950px) {
  #navigation { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 10px; }
  #navigation button { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 700px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  :root { --gutter: clamp(12px, 3.8vw, 22px); --player: 108px; }
  header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; padding: 6px var(--gutter); }
  .brand { margin: 0; gap: 8px; white-space: normal; font-size: clamp(.78rem, 3.4vw, 1rem); line-height: 1.1; }
  .brand i { width: 17px; height: 18px; flex: none; }
  #menu-toggle { display: inline-flex; min-height: 44px; align-items: center; padding: 6px 8px; font-size: .92rem; }
  #account-avatar { width: 44px; height: 44px; }
  #menu-toggle[aria-expanded="false"] + nav { display: none; }
  #navigation { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: min(65dvh,24rem); overflow: auto; }
  main { padding-bottom: calc(var(--player) + env(safe-area-inset-bottom, 0px) + 26px); }
  .workspace { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; }
  .workspace-content { padding-top: 17px; }
  .workspace h1 { font-size: clamp(1.75rem, 7vw, 2.45rem); letter-spacing: -.045em; }
  .workspace h2 { font-size: 1.2rem; }
  .sidebar { width: 100%; min-width: 0; position: static; height: auto; overflow: visible;
    border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; }
  .catalog-heading { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
  .catalog-heading::after { display: none; }
  #search { width: 100%; min-height: 46px; padding: 10px 12px; background: var(--panel); }
  .weekly { position: relative; display: grid; grid-template-columns: minmax(0,1fr); min-height: 0; height: auto; border-radius: 10px; }
  .weekly-art { position: absolute; inset: 0; opacity: .3; }
  .weekly-copy { position: relative; padding: 14px; background: linear-gradient(90deg,#151414eD 10%,#15141460); }
  .weekly-copy h2 { font-size: 1.13rem; margin: 0; }
  .weekly-copy p { margin: 4px 0 9px; }
  .weekly-copy button { min-height: 44px; }
  #mobile-filters { display: block; min-height: 44px; margin: 10px 0 0; background: var(--panel); }
  #mobile-filters[aria-expanded="false"] + #filters { display: none; }
  #filters { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; padding: 10px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--panel); }
  .facet-buttons, .catalog-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .facet-buttons button { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; }
  .catalog-controls label { display: grid; gap: 3px; padding: 0; min-width: 0; font-size: .85rem; }
  .catalog-controls label + label { border-left: 0; }
  .catalog-controls select, .catalog-controls input { max-width: 100%; width: 100%; min-height: 44px;
    padding: 5px; border: 1px solid var(--line); border-radius: 5px; }
  #column-options { max-width: 80vw; }
  .facet-options { position: relative; width: 100%; margin-top: 6px; box-shadow: none; }
  .facet-options button, #column-options label { min-height: 44px; }
  .year-range { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .year-range button { grid-column: 1 / -1; }
  .catalog-context { flex-wrap: wrap; padding-block: 8px; }
  #active-filters { order: 1; flex-basis: 100%; }
  #active-filters:empty { display: none; }
  .catalog-context button, .catalog-context summary, .catalog-controls summary { min-height: 44px; align-content: center; }
  .upload-dates > div { position: static; max-width: 100%; background: var(--panel); }
  .upload-dates label { display: grid; }
  .track-gallery { gap: 12px; grid-template-columns: repeat(auto-fill,minmax(min(100%,128px),1fr)); }
  .track-card img { margin: 0; border-radius: 8px; background: var(--panel); }
  .track-card strong { font-size: .94rem; line-height: 1.3; }
  .track-card small { font-size: .83rem; }
  .track-list li, .dialog-actions, .pagination { flex-wrap: wrap; }
  .track-list li > div { min-width: 0; }
  #events time { min-width: 0; text-align: start; }
  .panel, dialog { max-width: calc(100vw - 2 * var(--gutter)); padding: 14px; border-radius: 8px; }
  dialog { max-height: 88dvh; overflow-y: auto; }
  input:not([type="checkbox"]):not([type="range"]), select, textarea { font-size: 16px; max-width: 100%; }
  .panel button, dialog button, .pagination button, .detail-actions button, #chat-form button { min-height: 44px; }
  #chat-form input { min-width: 0; }
  #player { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "info transport" "wave time";
    gap: 2px 10px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom,0px)); }
  .now-playing { grid-area: info; gap: 7px; font-size: .88rem; }
  .now-playing img { width: 36px; border-radius: 4px; }
  .now-playing strong { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; line-height: 1.15; }
  .transport { grid-area: transport; border: 0; padding: 0; gap: 1px; }
  .transport button, .transport #track-toggle { min-width: 44px; min-height: 44px; }
  #playback-time { grid-area: time; font-size: .75rem; }
  .timeline { grid-area: wave; height: 37px; }
  .volume { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  :root { --player: 66px; }
  #player { grid-template-columns: minmax(130px,1fr) auto minmax(100px,1.5fr) auto;
    grid-template-areas: "info transport wave time"; }
  .weekly-art { opacity: .45; }
  #track-table tbody { display: grid; width: 100%; gap: 8px; }
  #track-table table { min-width: 0; }
}

.track-title-button {
  display: inline; padding: 0; background: transparent; border: 0; color: inherit;
  font: inherit; text-align: start; overflow-wrap: anywhere;
}
.track-title-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.track-title-button[aria-pressed="true"] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) {
  #release-search, #detail-release-search, .pending-release-search { min-height: 44px; }
}
#mobile-track-dialog .dialog-top { justify-content: flex-end; margin-bottom: 12px; }
#mobile-track-dialog .detail-heading { grid-template-columns: minmax(0,92px) minmax(0,1fr); }
#mobile-track-dialog #detail-title { margin: 0; font-size: 1.25rem; }
#mobile-track-dialog .detail-actions button { font-size: .95rem; }

.play {
  display: inline-grid; place-items: center; min-width: 36px; min-height: 36px;
  color: var(--accent); font-size: 0;
}
.play::before {
  content: ""; display: block; width: 0; height: 0;
  border-block: 6px solid transparent; border-inline-start: 9px solid currentColor;
}
@media (max-width: 700px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #recommendation-tracks li {
    display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 4px 10px;
    margin-block: 8px; padding: 12px; border: 1px solid var(--line);
    border-radius: 8px; background: var(--panel);
  }
  #recommendation-tracks .play { grid-area: 1 / 1 / 3 / 2; min-height: 44px; border-radius: 50%; }
  #recommendation-tracks .recommendation-label { grid-area: 1 / 2 / 2 / 4; }
  #recommendation-tracks li > span { grid-area: 2 / 2; color: var(--muted); font-size: .82rem; }
  #recommendation-tracks li > a { grid-area: 2 / 3; font-size: .85rem; }
  #recommendation-tracks li:only-child:not(:has(.play)) { display: block; }
}

.quality-led {
  --quality-dot: #777674;
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  display: inline-grid; place-items: center; vertical-align: middle; background: transparent;
}
.quality-led::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--quality-dot);
  box-shadow: 0 0 0 1px #09090960;
}
:is(.quality-led, .guide-quality-dot)[data-state="green"] { --quality-dot: #32945a; }
:is(.quality-led, .guide-quality-dot)[data-state="amber"] { --quality-dot: #d18125; }
:is(.quality-led, .guide-quality-dot)[data-state="red"] { --quality-dot: #d8473f; }
.quality-card { position: relative; min-width: 0; }
.quality-card > .quality-led { position: absolute; inset-block-start: 5px; inset-inline-end: 5px; background: #161616e0; }
#quality-spectrum { display: block; width: 100%; height: auto; margin-block: 12px; border-radius: 6px; }
@media (pointer: coarse) { .quality-led { width: 44px; height: 44px; } }

#quality-batch { margin-block: .4rem .8rem; }
#batch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .5rem; }
#batch-actions label { display: inline-flex; gap: .35rem; align-items: center; }
#batch-status:empty { display: none; }
#batch-status { margin-block: .4rem .2rem; font-size: .86rem; }
#batch-progress { display: block; width: min(100%, 24rem); }
.track-play input[data-batch-track] { display: block; margin: 0 auto .25rem; }
#quality-dialog, #rating-dialog { width: min(36rem, calc(100vw - 2rem)); }
#quality-measurements { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin-block: .75rem; }
#quality-measurements div { border-top: 1px solid #b5a89b; padding-top: .35rem; }
#quality-measurements dt { font-size: .78rem; }
#quality-measurements dd { font-weight: 650; margin: .2rem 0 0; }
#quality-explanation { line-height: 1.45; font-size: .87rem; }
#quality-result { font-weight: 700; }
#quality-result[data-state="green"] { color: #246c44; }
#quality-result[data-state="amber"] { color: #875114; }
#quality-result[data-state="red"] { color: #9e2824; }
.track-vote { font-size: .79rem; border: 0; min-height: 28px; padding: .15rem .35rem; color: #922c22; background: transparent; }
#tracks .track-vote { font-size: 1rem; font-weight: 650; min-height: 32px; padding: .15rem .45rem; }
#tracks .track-vote-symbol { font-size: 1.3em; line-height: 1; vertical-align: -.06em; }
@media (pointer: coarse) { #tracks .track-vote { min-height: 44px; } }
.track-vote:hover, .track-vote:focus-visible { text-decoration: underline; }
.voter-preview { position: fixed; z-index: 10; pointer-events: none; white-space: pre-line; background: #191716; color: #fff3e9; padding: .5rem .65rem; border-radius: .3rem; font-size: .8rem; max-width: min(18rem, calc(100vw - 1rem)); }
@media (pointer: coarse) { .track-vote { min-height: 44px; min-width: 44px; } }
.map-coordinates { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

.track-download .downloaded { display: inline-block; margin-inline-start: .5em; color: #246c44; font-weight: 750; }
:root[data-theme="dark"] .track-download .downloaded, :root[data-theme="dark"] #quality-result[data-state="green"] { color: #8bd5a7; }
:root[data-theme="dark"] #quality-result[data-state="amber"] { color: #f0b878; }
:root[data-theme="dark"] #quality-result[data-state="red"], :root[data-theme="dark"] .track-vote { color: #f5a199; }

.password-row { display: flex; align-items: stretch; gap: .4rem; }
.password-row input { flex: 1; min-width: 0; }
.password-row button { flex: none; align-self: stretch; padding-inline: .65rem; }
.password-feedback { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .8rem; margin-block: -.1rem .5rem; }
.password-strength-bar { width: 4rem; height: .32rem; border-radius: 1rem; background: var(--line); }
.password-strength-bar::before { content: ""; display: block; height: 100%; border-radius: inherit; }
.password-strength-bar[data-level="weak"]::before { width: 33%; background: #c5473b; }
.password-strength-bar[data-level="normal"]::before { width: 66%; background: #b96c28; }
.password-strength-bar[data-level="strong"]::before { width: 100%; background: #32895d; }

.guide-intro { max-width: 62ch; margin-block: 0 1.25rem; }
.guide-lessons { display: grid; gap: .75rem; }
.guide-lesson { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 0 clamp(.75rem, 2vw, 1.5rem); }
.guide-lesson summary { cursor: pointer; margin-inline: clamp(-1.5rem, -2vw, -.75rem); padding: .9rem clamp(.75rem, 2vw, 1.5rem); font-size: 1.08rem; font-weight: 750; }
.guide-lesson[open] summary { border-bottom: 1px solid var(--line); }
.guide-lesson summary::marker { color: var(--accent); }
.guide-figure { margin: 1.15rem 0 1.4rem; }
.guide-photo { position: relative; width: fit-content; max-width: 100%; outline: 1px solid var(--line); border-radius: 5px; }
.guide-photo img { display: block; border-radius: inherit; max-width: 100%; height: auto; }
.guide-photo-corregir { max-width: min(100%, 34rem); }
.guide-pin, .guide-number { display: grid; place-items: center; border-radius: 50%; font-weight: 800; background: #922920; color: #fff9f1; width: 1.4rem; height: 1.4rem; font-size: .75rem; flex: none; }
.guide-pin { position: absolute; top: var(--y); left: var(--x); box-shadow: 0 0 0 2px #fff2e4; pointer-events: none; }
.guide-pin-left { left: clamp(24px, var(--x), 100%); transform: translate(-110%, -50%); }
.guide-pin-right { left: min(var(--x), calc(100% - 27px)); transform: translate(10%, -50%); }
.guide-pin::after { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-block: 5px solid transparent; }
.guide-pin-left::after { left: calc(100% - 1px); border-left: 8px solid #922920; }
.guide-pin-right::after { right: calc(100% - 1px); border-right: 8px solid #922920; }
.guide-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .55rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.guide-callouts li { display: flex; align-items: flex-start; gap: .6rem; border: 1px solid var(--control-border); border-radius: .65rem; padding: .65rem .75rem; background: var(--paper); }
.guide-callouts p { margin: .15rem 0 0; font-size: .9rem; }
.guide-note { margin: 1.1rem 0; padding: .7rem .85rem; border-inline-start: 3px solid var(--accent); background: var(--paper); }
.guide-caption { font-size: .85rem; }
@media (max-width: 550px) {
  .guide-pin { width: 1.1rem; height: 1.1rem; font-size: .65rem; }
  .guide-pin-left { left: clamp(19px, var(--x), 100%); }
}

.guide-biblioteca-1 { --x: 64.5%; --y: 4.3%; }
.guide-biblioteca-2 { --x: 52.3%; --y: 52%; }
.guide-biblioteca-3 { --x: 27.8%; --y: 73.4%; }
.guide-biblioteca-4 { --x: 57.1%; --y: 94.5%; }
.guide-subir-1 { --x: 3.9%; --y: 39.2%; }
.guide-subir-2 { --x: 28.5%; --y: 67%; }
.guide-lote-1 { --x: 67.8%; --y: 71.8%; }
.guide-pendientes-1 { --x: 49.9%; --y: 24.7%; }
.guide-pendientes-2 { --x: 88.9%; --y: 24.7%; }
.guide-corregir-1 { --x: 5.3%; --y: 27.8%; }
.guide-corregir-2 { --x: 5.3%; --y: 70.5%; }
.guide-corregir-3 { --x: 5.3%; --y: 80.9%; }
.guide-corregir-4 { --x: 68.4%; --y: 93.5%; }
.guide-preferencias-1 { --x: 3.9%; --y: 86.7%; }

.track-release-search { color: var(--accent); display: inline-block; margin-inline-start: .35rem; text-underline-offset: .15em; }
#metadata-tracks li { flex-wrap: wrap; }
#metadata-tracks li > span { overflow-wrap: anywhere; }
#edit-release-tools { margin-block-end: .8rem; }
#edit-release-tools p { margin-block: .35rem 0; font-size: .86rem; }
@media (pointer: coarse) {
  .track-release-search { display: inline-flex; align-items: center; min-height: 44px; }
}

.guide-quality-dot {
  --quality-dot: #777674;
  flex: 0 0 .75rem;
  height: .75rem;
  margin-top: .35em;
  border-radius: 50%;
  background: var(--quality-dot);
}
.guide-calidad-led { --x: 41.3%; --y: 62.2%; }
.guide-calidad-resultado { --x: 5.3%; --y: 25.1%; }
.guide-calidad-espectro { --x: 5.3%; --y: 65.2%; }

.guide-access-steps li + li { margin-block-start: .65rem; }
.guide-estrellas-1 { --x: 26.4%; --y: 47.4%; }
.guide-estrellas-2 { --x: 5.3%; --y: 77.7%; }
.guide-globo-1 { --x: 35%; --y: 81.1%; }
.guide-globo-2 { --x: 3.3%; --y: 90%; }
.guide-ciudad-3 { --x: 3.9%; --y: 38.3%; }
.guide-ciudad-4 { --x: 21.9%; --y: 80%; }
.guide-aprobar-1 { --x: 6.1%; --y: 15.9%; }
.guide-aprobar-2 { --x: 23.3%; --y: 58.9%; }

.guide-portadas-5 { --x: 91.6%; --y: 25.3%; }
.guide-portadas-6 { --x: 87.2%; --y: 11.1%; }
.guide-portadas-7 { --x: 13.3%; --y: 25.3%; }

.metadata-audit { margin-block: 1rem 1.4rem; }
#metadata-audit-results li { flex-wrap: wrap; }
.metadata-audit-issues { flex-basis: 100%; margin: 0; overflow-wrap: anywhere; }
