/* Plain document pages (privacy) in the site's cream macOS look */
:root { --paper: #fbf7ec; --side: #f3ecdc; --row: #f6f0e2; --rule: #e7dfcc; --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #a1a1a6; --red: #e3262b; --blue: #0a7cff; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; background: var(--paper); color: var(--ink); font: 14px/1.45 -apple-system, "SF Pro Text", "Inter Tight", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.mono { font: 500 11px/1.3 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: .12em; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.menubar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; height: 28px; padding: 0 14px; background: rgba(251, 247, 236, .8); backdrop-filter: blur(18px); box-shadow: 0 .5px 0 rgba(0, 0, 0, .12); font-size: 13px; }
.menubar > span:first-child { display: flex; gap: 18px; }
.menubar .mono { color: var(--ink-2); }

.desk { padding: 28px clamp(10px, 3vw, 40px) 60px; }
.win { max-width: 1040px; margin: 0 auto; background: var(--paper); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 30px 80px -24px rgba(60, 40, 10, .35); }
.titlebar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 44px; padding: 0 16px; background: var(--side); border-bottom: 1px solid var(--rule); }
.lights { display: flex; gap: 8px; }
.l { display: block; width: 12px; height: 12px; border-radius: 50%; }
.l.r { background: #ff5f57; } .l.y { background: #febc2e; } .l.g { background: #28c840; }
.bar-title { font-size: 13px; font-weight: 600; }
.body { padding: clamp(18px, 4vw, 32px); }

/* sign in, as a macOS sheet */
.gate { max-width: 340px; margin: 30px auto 40px; text-align: center; }
.folder { display: block; width: 64px; height: 50px; margin: 0 auto 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 50'%3E%3Cpath d='M2 6a4 4 0 0 1 4-4h16l5 5h31a4 4 0 0 1 4 4v3H2z' fill='%233aa6ec'/%3E%3Crect x='2' y='9' width='60' height='39' rx='5' fill='%2363bdf5'/%3E%3C/svg%3E") center / contain no-repeat; }
.gate h1 { margin: 0 0 4px; font: 700 17px -apple-system, "SF Pro Display", "Inter Tight", system-ui, sans-serif; }
.muted { margin: 0 0 16px; color: var(--ink-2); font-size: 13px; }
.gate input { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 8px; background: #fff; font-size: 16px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), inset 0 1px 1px rgba(0, 0, 0, .05); outline: none; }
.gate input:focus { box-shadow: 0 0 0 3.5px rgba(10, 132, 255, .4), 0 0 0 .5px var(--blue); }
.err { min-height: 1.3em; margin: 8px 0; color: #d70015; font-size: 13px; }
.gate .btn { width: 100%; height: 34px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border: 0; border-radius: 7px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 1px 1px rgba(0, 0, 0, .06); }
.btn:active { filter: brightness(.95); }
.btn.primary { background: linear-gradient(#3b9bff, #0a7cff); color: #fff; box-shadow: 0 0 0 .5px rgba(0, 60, 160, .5); }

/* results */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.kicker { margin: 0 0 6px; color: var(--ink-2); }
.title { margin: 0; font: 200 clamp(44px, 8vw, 76px)/.9 "Inter Tight", system-ui, sans-serif; letter-spacing: -.04em; }
.note { margin: 10px 0 0; color: var(--ink-2); font-size: 13px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; }
.stat { padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1); min-width: 0; }
.stat b { display: block; font: 600 26px/1.1 "Inter Tight", system-ui, sans-serif; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { display: block; margin-top: 4px; font: 500 10.5px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }

.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.list-head .mono { margin: 0; color: var(--ink-2); }
.cut { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.cut input { width: 62px; padding: 5px 8px; border: 0; border-radius: 7px; background: #fff; font-size: 16px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25); }

.scroll { overflow-x: auto; border-radius: 10px; box-shadow: 0 0 0 .5px var(--rule); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { position: sticky; top: 0; text-align: left; padding: 8px 12px; background: var(--paper); border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
td { padding: 8px 12px; vertical-align: middle; }
tbody tr:nth-child(even) td { background: var(--row); }
td:first-child { width: 38px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
td b { font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.in td:first-child { color: var(--red); font-weight: 600; }
tr.cut td { border-bottom: 2px solid var(--red); }
.sub { color: var(--ink-2); font-size: 12px; }

td .bar { display: block; height: 5px; width: 100px; border-radius: 5px; background: var(--rule); }
td .bar i { display: block; height: 100%; border-radius: 5px; background: var(--blue); }
td .bar + .sub { display: block; margin-top: 3px; font-size: 11px; }

@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tools .btn { height: 34px; }
  th.share, td:nth-child(4), th:nth-child(6), td:nth-child(6), th:nth-child(7), td:nth-child(7) { display: none; }
  td .bar { width: 60px; }
}

/* fixed columns: the song name takes whatever width is left */
table { table-layout: fixed; min-width: 560px; }
th:nth-child(1) { width: 46px; }
th:nth-child(2) { width: auto; }
th:nth-child(3) { width: 60px; }
th:nth-child(4) { width: 150px; }
th:nth-child(5) { width: 84px; }
th:nth-child(6), th:nth-child(7) { width: 70px; }
td:nth-child(2) b, td:nth-child(2) .sub { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { table { min-width: 0; } th:nth-child(5) { width: 72px; } }

/* signature wall moderation */
.sig-head { margin-top: 30px; }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sig-cell { display: grid; gap: 4px; padding: 10px; border: 0; border-radius: 10px; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.sig-cell svg { width: 100%; height: 56px; }
.sig-cell path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sig-cell span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--ink-2); }
.sig-cell em { font: 500 10px "IBM Plex Mono", monospace; font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #1a8f3c; }
.sig-cell.off { background: var(--row); }
.sig-cell.off svg { opacity: .3; }
.sig-cell.off em { color: var(--red); }
.sig-cell:disabled { opacity: .5; }
