/* Prototype C: the Finder */
.pc { color-scheme: light; --paper: #fbf7ec; --win: #ffffff; --side: #ecebea; --fl: #1d1d1f; --fl-2: #6e6e73; --fl-3: #a1a1a6; --rule: #e6e4e0; --pink: #ff2d78; --blue: #0a84ff;
  background: var(--paper); color: var(--fl); font-family: -apple-system, "SF Pro Text", "Inter Tight", system-ui, sans-serif; min-height: 100dvh; overflow: hidden; }

/* desktop with one folder */
.desk { position: fixed; inset: 0; display: grid; place-items: center; transition: opacity .35s; }
.desk.away { opacity: 0; pointer-events: none; }
.desk-folder { position: relative; display: grid; justify-items: center; gap: 10px; padding: 14px 18px 10px; border: 0; border-radius: 12px; background: none; transition: background .2s; }
.desk-folder:hover, .desk-folder:focus-visible { background: rgba(10, 132, 255, .1); }
.desk-folder:active .ficon { transform: scale(.96); }
.ficon { position: relative; width: 132px; height: 100px; transition: transform .2s var(--ease); }
.ficon::before { content: ""; position: absolute; left: 0; top: 0; width: 46%; height: 24px; border-radius: 9px 9px 0 0; background: #3aa6ec; clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%); }
.ficon::after { content: ""; position: absolute; left: 0; right: 0; top: 10px; bottom: 0; border-radius: 6px 10px 10px 10px; background: #3fa9f0; }
.ficon i { position: absolute; z-index: 1; left: 0; right: 0; top: 20px; bottom: 0; border-radius: 9px; background: linear-gradient(#7fcbf8, #63bdf5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px -10px rgba(10, 80, 140, .6); }
.fname { font: 900 19px/1 "Inter Tight", system-ui, sans-serif; letter-spacing: .01em; color: #2a2a2a; }
/* the game pointer: a white pixel-art arrow (black pixel outline, grey pixel shading); it steps like a sprite, clicks the folder and throws pixel sparks */
.gp { position: absolute; z-index: 3; left: calc(50% + 34px); top: calc(50% - 26px); width: 38px; height: 58px; pointer-events: none; }
.gp-arrow { display: block; width: 38px; height: 58px; image-rendering: pixelated; animation: gpTap 2.4s steps(1, end) infinite; }
@keyframes gpTap {
  0% { transform: translate(6px, 9px); } 12% { transform: translate(6px, 6px); } 24% { transform: translate(3px, 3px); } 36% { transform: translate(3px, 0); }
  48% { transform: translate(0, -3px); } 60% { transform: translate(0, 0); } 72% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, -3px) scale(.88); } 86% { transform: translate(-3px, -3px); } 100% { transform: translate(6px, 9px); }
}
/* pixel sparks: a 3px square with four arms, popping out from the arrow tip on the click */
.gp-spark { position: absolute; left: -3px; top: -5px; width: 2px; height: 2px; background: #141414; opacity: 0; box-shadow: 2px 0 #141414, -2px 0 #141414, 0 2px #141414, 0 -2px #141414; animation: gpSpark 2.4s steps(1, end) infinite; }
.gp-spark.s2 { --dx: 18px; --dy: -14px; }
.gp-spark.s1 { --dx: -16px; --dy: -12px; }
.gp-spark.s3 { --dx: -18px; --dy: 10px; }
.gp-spark.s4 { --dx: 4px; --dy: -22px; }
@keyframes gpSpark {
  0%, 79% { opacity: 0; transform: translate(0, 0); }
  80% { opacity: 1; transform: translate(calc(var(--dx) * .35), calc(var(--dy) * .35)); }
  86% { opacity: 1; transform: translate(calc(var(--dx) * .7), calc(var(--dy) * .7)); }
  92% { opacity: 1; transform: translate(var(--dx), var(--dy)); }
  97%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
@media (hover: hover) { .desk:hover .gp { opacity: 0; transition: opacity .2s; } }
@media (prefers-reduced-motion: reduce) { .gp-arrow, .gp-spark { animation: none; } }

/* the window */
.win {
  position: fixed; z-index: 10; left: 50%; top: calc(26px + (100dvh - 26px - 92px) / 2); width: min(1040px, calc(100vw - 48px)); height: min(680px, calc(100dvh - 26px - 92px - 24px));
  transform: translate(-50%, -50%); display: grid; grid-template-columns: 210px minmax(0, 1fr);
  background: var(--win); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 30px 80px -20px rgba(60, 40, 10, .35), 0 10px 24px -12px rgba(0, 0, 0, .2);
}
.win.opening { animation: winIn .5s var(--ease) both; }
.win.closing { animation: winIn .3s var(--ease) reverse both; }
@keyframes winIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.18); } }

.sb { display: flex; flex-direction: column; background: var(--side); padding: 16px 10px; overflow-y: auto; border-right: 1px solid var(--rule); }
.sb-all { margin-top: auto; padding: 8px 10px; font-size: 12px; color: var(--fl-2); text-decoration: none; border-radius: 7px; }
.sb-all:hover { background: rgba(0, 0, 0, .05); color: var(--fl); }
.desk-link { position: absolute; left: calc(16px + env(safe-area-inset-left)); top: calc(16px + env(safe-area-inset-top)); padding: 8px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: #6e6e73; text-decoration: none; }
.desk-link:hover { background: rgba(0, 0, 0, .05); color: #1d1d1f; }
.lights { display: flex; gap: 8px; padding: 0 8px 18px; }
.l { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; display: block; }
.l.r { background: #ff5f57; cursor: pointer; } .l.y { background: #febc2e; } .l.g { background: #28c840; }
.sb-h { margin: 6px 10px 6px; font-size: 11px; font-weight: 600; color: var(--fl-3); }
.sb-list { display: grid; gap: 1px; margin-bottom: 18px; }
.sb-i { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 10px; border: 0; border-radius: 7px; background: none; text-align: left; font-size: 14px; color: var(--fl); }
.sb-i svg { flex: 0 0 auto; width: 17px; height: 17px; fill: none; stroke: var(--pink); stroke-width: 1.6; stroke-linejoin: round; }
.sb-i span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-i em { font-style: normal; font-size: 11px; color: var(--fl-3); }
.sb-i em b { font-weight: 600; color: var(--pink); }
.sb-i .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.sb-i:hover { background: rgba(0, 0, 0, .05); }
.sb-i[aria-current="true"] { background: rgba(0, 0, 0, .09); }

.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bar { display: flex; align-items: center; gap: 4px; padding: 12px 16px 6px; }
.nb { width: 30px; height: 28px; border: 0; border-radius: 6px; background: none; font-size: 24px; line-height: 1; color: var(--fl-2); }
.nb:hover:not(:disabled) { background: rgba(0, 0, 0, .05); }
.nb:disabled { color: #d2d2d7; cursor: default; }
.sp { flex: 1; }
.find { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 7px; background: #f2f1ef; }
.find svg { width: 14px; height: 14px; fill: none; stroke: var(--fl-2); stroke-width: 1.8; stroke-linecap: round; }
.find input { width: 130px; border: 0; outline: none; background: none; font-size: 13px; }
.ttl { display: flex; align-items: baseline; gap: 12px; padding: 2px 22px 12px; border-bottom: 1px solid var(--rule); }
.ttl h1 { margin: 0; font: 900 22px/1.15 "Inter Tight", system-ui, sans-serif; letter-spacing: .005em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumb { font-size: 12px; color: var(--fl-3); white-space: nowrap; }
.view { flex: 1; overflow-y: auto; padding: 22px; -webkit-overflow-scrolling: touch; }
.view.enter { animation: vIn .35s var(--ease); }
@keyframes vIn { from { opacity: 0; transform: translateY(6px); } }

/* covers grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 22px; }
.item { display: grid; justify-items: center; gap: 8px; padding: 8px; border: 0; border-radius: 10px; background: none; text-align: center; color: var(--fl); }
.item .cv { position: relative; width: 100%; aspect-ratio: 1; }
.item img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 2px rgba(0, 0, 0, .15), 0 8px 18px -10px rgba(0, 0, 0, .45); transition: transform .25s var(--ease); }
.item:hover img { transform: translateY(-3px); }
.item b { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item small { display: block; margin-top: -4px; font-size: 11px; color: var(--fl-3); }
.item .pk { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pink); color: #fff; font: 700 11px/22px system-ui; box-shadow: 0 0 0 2px #fff; }
.item:focus-visible { outline: 2px solid var(--blue); }

/* inside a cover */
.proj { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.proj-art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.proj-art p { margin: 12px 0 0; font-size: 12px; color: var(--fl-2); }
.rows { display: grid; }
.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; }
.row:nth-child(odd) { background: #f6f5f3; }
.row .tn { font-size: 12px; color: var(--fl-3); font-variant-numeric: tabular-nums; }
.row .pv2 { width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--fl-2); }
.row .pv2 svg { width: 10px; height: 10px; fill: currentColor; }
.row .pv2.playing { background: var(--fl); color: #fff; }
.row .nm { min-width: 0; }
.row .nm b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm span { display: block; font-size: 12px; color: var(--fl-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .ad2 { min-width: 70px; height: 28px; padding: 0 12px; border: 1px solid #d2d2d7; border-radius: 99px; background: #fff; font-size: 12px; font-weight: 600; transition: background .15s, transform .15s var(--ease); }
.row .ad2:active { transform: scale(.95); }
.row.on { background: rgba(255, 45, 120, .09) !important; }
.row.on .ad2 { background: var(--pink); border-color: var(--pink); color: #fff; }
.row.on .nm b { font-weight: 600; }
.empty { color: var(--fl-3); font-size: 14px; }

@media (max-width: 700px) {
  .win { width: calc(100vw - 12px); height: calc(100dvh - 30px - 12px - env(safe-area-inset-bottom)); top: calc(30px + (100dvh - 30px) / 2 - env(safe-area-inset-bottom) / 2); grid-template-columns: 122px minmax(0, 1fr); border-radius: 12px; }
  .sb { padding: 14px 6px; }
  .sb-all { padding: 8px 6px; font-size: 11px; }
  .lights { padding: 0 6px 14px; }
  .sb-h { margin: 4px 6px; }
  .sb-i { padding: 6px 6px; gap: 6px; font-size: 13px; }
  .sb-i svg { width: 15px; height: 15px; }
  #navSet em { display: none; }
  .bar { padding: 10px 10px 4px; }
  .find input { width: 64px; }
  .ttl { padding: 0 14px 10px; flex-direction: column; gap: 0; }
  .ttl h1 { font-size: 19px; max-width: 100%; }
  .view, .setview { padding: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .item { padding: 4px; }
  .item b { font-size: 12px; }
  .proj { grid-template-columns: 1fr; gap: 14px; }
  .proj-art { display: flex; gap: 12px; align-items: center; }
  .proj-art img { width: 88px; flex: 0 0 auto; }
  .proj-art p { margin: 0; }
  .row { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 7px 6px; gap: 8px; }
  .row .ad2 { min-width: 58px; padding: 0 10px; }
}

/* ---------- macOS chrome ---------- */
.menubar {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 26px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(251, 247, 236, .72); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  font-size: 13px; color: #1d1d1f; box-shadow: 0 .5px 0 rgba(0, 0, 0, .12); user-select: none;
}
.mb-l, .mb-r { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.mb-l b { font-weight: 700; }
.mb-r svg { width: 16px; height: 16px; fill: none; stroke: #1d1d1f; stroke-width: 2; stroke-linecap: round; }
.mb-r svg circle { fill: #1d1d1f; stroke: none; }
.batt { position: relative; width: 24px; height: 11px; border: 1.2px solid #1d1d1f; border-radius: 3px; opacity: .85; }
.batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: #1d1d1f; }
.batt i { position: absolute; inset: 1.5px; right: 30%; border-radius: 1px; background: #1d1d1f; }
.desk { top: 26px; }
.desk-link { top: calc(40px + env(safe-area-inset-top)); }


/* ---------- setlist as a Finder list view ---------- */
.setview { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.pc .side { position: static; flex: 1; overflow-y: auto; max-height: none; padding: 0 0 10px; transform: none; background: none; box-shadow: none; border-radius: 0; }
.pc .side::before { display: none; }
.fl-head, .pc .line { display: grid; grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1fr) 56px 30px; align-items: center; gap: 10px; padding: 0 16px; }
.fl-head { position: sticky; top: 0; z-index: 1; height: 28px; background: #fff; border-bottom: 1px solid var(--rule); font-size: 11px; font-weight: 600; color: var(--fl-2); }
.pc .t-list { list-style: none; margin: 0; padding: 0; font: 13px/1.2 -apple-system, "SF Pro Text", "Inter Tight", system-ui, sans-serif; }
.pc .line { min-height: 34px; border: 0; background: #fff; }
.pc .line:nth-child(even) { background: #f5f5f7; }
.pc .line .n { opacity: 1; color: var(--fl-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.pc .line.filled .n { color: var(--fl-2); cursor: grab; }
.pc .line.filled .n::after { content: "⠿"; margin-left: 6px; color: #c7c7cc; }
.pc .line .t { display: flex; align-items: center; gap: 9px; padding: 0; text-transform: none; }
.pc .line .t img { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.pc .line .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .line .ph { color: #c7c7cc; }
.c-alb, .c-yr { color: var(--fl-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .line .rm { width: 22px; height: 22px; opacity: 1; border-radius: 50%; color: var(--fl-3); font-size: 16px; }
.pc .line .rm:hover { background: #e8e8ed; color: #1d1d1f; }
.pc .line.drag { background: #dbeafe !important; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .3); border-radius: 6px; }
.pc .line.new .t { animation: none; }
.pc .line.new { animation: rowIn .5s var(--ease); }
@keyframes rowIn { from { background: #cfe3ff; } }
.status { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--rule); background: #f6f5f3; font-size: 12px; color: var(--fl-2); }
.status b { color: var(--fl); font-weight: 600; }
.st-btns { display: flex; gap: 8px; }

/* macOS push buttons */
.mbtn { height: 26px; padding: 0 14px; border: 0; border-radius: 6px; background: #fff; color: #1d1d1f; font: 500 13px -apple-system, "SF Pro Text", system-ui, sans-serif; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 1px 1px rgba(0, 0, 0, .08); white-space: nowrap; }
.mbtn:active { filter: brightness(.94); }
.mbtn.primary, .pc .send.mbtn { background: linear-gradient(#3b9bff, #0a7cff); color: #fff; box-shadow: 0 0 0 .5px rgba(0, 60, 160, .5), 0 1px 1px rgba(0, 0, 0, .1); }
.pc .send.mbtn[disabled] { background: #f0f0f2; color: #b0b0b5; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); width: auto; margin: 0; padding: 0 14px; font-size: 13px; }
.pc .send.mbtn { width: auto; margin: 0; padding: 0 14px; font-size: 13px; font-weight: 500; border-radius: 6px; }

/* ---------- dialogs as macOS sheets ---------- */
.pc .mac-only { display: inline-flex !important; align-items: center; justify-content: center; }
.pc .modal {
  width: min(380px, calc(100vw - 32px)); border-radius: 14px; color: #1d1d1f;
  background: rgba(246, 246, 246, .9); backdrop-filter: blur(30px) saturate(1.8); -webkit-backdrop-filter: blur(30px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 24px 70px -10px rgba(0, 0, 0, .45);
  font-family: -apple-system, "SF Pro Text", "Inter Tight", system-ui, sans-serif;
}
.pc .modal::backdrop { background: rgba(0, 0, 0, .12); backdrop-filter: none; }
.pc .modal[open] { animation: sheet .3s var(--ease); }
@keyframes sheet { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.pc .modal-in { padding: 22px 20px 16px; text-align: center; }
.pc .modal-in::before {
  content: ""; display: block; width: 64px; height: 50px; margin: 0 auto 12px;
  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;
}
.pc .x { display: none; }
.pc .modal h3 { font: 700 15px/1.3 -apple-system, "SF Pro Display", "Inter Tight", system-ui, sans-serif; letter-spacing: 0; margin: 0 0 4px; }
.pc .muted { margin: 0 0 14px; font-size: 12px; color: #4b4b50; }
.pc .modal label { text-align: left; margin-bottom: 10px; font-size: 12px; font-weight: 500; color: #4b4b50; }
.pc .modal input:not([type="checkbox"]) { margin-top: 4px; padding: 6px 9px; border-radius: 6px; border: 0; background: #fff; font-size: 13px; color: #1d1d1f; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), inset 0 1px 1px rgba(0, 0, 0, .06); }
.pc .modal input:focus { box-shadow: 0 0 0 3.5px rgba(10, 132, 255, .45), 0 0 0 .5px #0a84ff; }
.pc .modal .check { font-size: 12px; color: #1d1d1f; }
.pc .modal .check input { accent-color: #0a84ff; }
.pc .err { color: #d70015; font-size: 12px; }
.pc .mac-btns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pc .mac-btns .mbtn, .pc .mac-btns .send { height: 28px; width: 100%; margin: 0; padding: 0 10px; border-radius: 7px; font: 500 13px -apple-system, system-ui, sans-serif; }
.pc .mac-btns .send { background: linear-gradient(#3b9bff, #0a7cff); color: #fff; box-shadow: 0 0 0 .5px rgba(0, 60, 160, .5); }
.pc .mac-btns.mac-only { display: grid !important; grid-template-columns: 1fr; }
.pc .done-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc .done-actions .send, .pc .done-actions .link { height: 28px; margin: 0; padding: 0 10px; border: 0; border-radius: 7px; font: 500 13px -apple-system, system-ui, sans-serif; text-decoration: none; }
.pc .done-actions .send { order: 2; background: linear-gradient(#3b9bff, #0a7cff); color: #fff; }
.pc .done-actions .link { order: 1; background: #fff; color: #1d1d1f; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2); }
.pc .x-list { text-align: left; gap: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); }
.pc .x-btn { border: 0; border-radius: 0; background: #fff; padding: 9px 12px; grid-template-columns: 30px 1fr auto; gap: 10px; color: #1d1d1f; }
.pc .x-list li + li .x-btn { box-shadow: inset 0 .5px 0 #e5e5ea; }
.pc .x-btn:hover { background: #f2f2f7; }
.pc .x-btn .ic { width: 30px; height: 30px; border-radius: 7px; font-size: 14px; box-shadow: none; display: grid; place-items: center; }
.pc .x-btn b { font-size: 13px; font-weight: 600; }
.pc .x-btn > span:not(.ic) { color: #1d1d1f; }
.pc .x-btn span span { font-size: 11px; color: #6e6e73; }
.pc .x-btn::after { content: "›"; color: #c7c7cc; font-size: 18px; }
.pc details.apple { text-align: left; background: #fff; color: #1d1d1f; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); border-radius: 10px; }
.pc details.apple summary { font-size: 13px; }
.pc details.apple li { border-color: #e5e5ea; font-size: 13px; }
.pc details.apple a { color: #0a7cff; }

/* notifications */
.pc .toast { left: auto; right: 14px; top: 36px; bottom: auto; transform: translateX(120%); opacity: 1; border-radius: 14px; padding: 12px 16px; background: rgba(246, 246, 246, .92); color: #1d1d1f; font: 500 13px -apple-system, system-ui, sans-serif; text-align: left; backdrop-filter: blur(24px); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 12px 30px -8px rgba(0, 0, 0, .3); max-width: 320px; }
.pc .toast.show { transform: none; }

@media (max-width: 700px) {
  .mb-l span, .mb-r svg, .batt { display: none; }
  .mb-l span:nth-child(2), .mb-l span:nth-child(3) { display: inline; }
  .menubar { font-size: 12px; padding: 0 10px; }
  .menubar { height: 30px; }
  .desk { top: 30px; }
  .fl-head, .pc .line { grid-template-columns: 22px minmax(0, 1fr) 24px; padding: 0 8px; gap: 6px; }
  .c-alb, .c-yr { display: none; }
  .pc .line.filled .n::after { display: none; }
  .pc .line .t { gap: 7px; }
  .status { flex-direction: column; align-items: stretch; padding: 8px 10px; }
  .st-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .st-btns .send { grid-column: 1 / -1; order: -1; height: 30px; }
  .st-btns .mbtn { padding: 0 8px; font-size: 12px; }
  .pc .toast { left: 10px; right: 10px; max-width: none; transform: translateY(-160%); }
}

/* phone: My Setlist as its own window over the Finder */
.setwin-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .18); }
.setwin {
  position: fixed; z-index: 41; left: 10px; right: 10px; top: calc(44px + env(safe-area-inset-top)); bottom: calc(10px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 30px 70px -14px rgba(0, 0, 0, .5);
}
.setwin.opening { animation: swIn .4s var(--ease) both; }
.setwin.closing { animation: swIn .26s var(--ease) reverse both; }
@keyframes swIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.sw-bar { position: relative; display: flex; align-items: center; justify-content: center; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--rule); background: #f6f5f3; }
.sw-bar .lights { position: absolute; left: 14px; top: 17px; padding: 0; }
.sw-bar b { font: 700 14px -apple-system, "SF Pro Text", "Inter Tight", system-ui, sans-serif; }
.sw-count { position: absolute; right: 14px; font-size: 12px; color: var(--fl-3); }
.sw-body { flex: 1; min-height: 0; display: flex; }
.sw-body .setview { flex: 1; }
/* with the full phone width, the year column fits again */
.setwin .fl-head, .setwin .line { grid-template-columns: 26px minmax(0, 1fr) 40px 24px !important; padding: 0 12px !important; }
.setwin .c-yr { display: block !important; }
.setwin .pc .line .t img, .setwin .line .t img { width: 26px; height: 26px; }
.setwin .line { min-height: 42px !important; }
.setwin .t-list { font-size: 14px !important; }
.pc .fineprint { color: #6e6e73; text-align: left; }

/* ---------- one button system: same height, padding and type everywhere ---------- */
.pc .mbtn, .pc .send.mbtn, .pc .send.mbtn[disabled] {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; min-width: 76px; margin: 0; padding: 0 16px;
  border-radius: 7px; font: 500 13px/1 -apple-system, "SF Pro Text", "Inter Tight", system-ui, sans-serif; width: auto;
}
.pc .row .ad2 { height: 30px; min-width: 72px; padding: 0 14px; font: 600 12px/1 -apple-system, system-ui, sans-serif; }
.pc .mac-btns { gap: 10px; margin-top: 16px; }
.pc .mac-btns .mbtn, .pc .mac-btns .send, .pc .done-actions .send, .pc .done-actions .link {
  display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; border-radius: 8px;
  font: 500 13px/1 -apple-system, "SF Pro Text", "Inter Tight", system-ui, sans-serif;
}
.pc .done-actions { gap: 10px; margin-top: 4px; }
.pc .modal-in { padding: 24px 22px 18px; }
.pc .x-list { margin-top: 2px; }
.pc .x-btn { padding: 11px 14px; }
.pc .status { padding: 10px 14px; }
.st-btns { gap: 8px; }

/* phones: 16px text boxes stop iOS from zooming the page on focus */
@media (max-width: 700px) {
  .pc input, .pc .modal input:not([type="checkbox"]), .find input { font-size: 16px; }
  .find { padding: 4px 10px; }
  .find input { width: 72px; }
  .pc .modal input:not([type="checkbox"]) { padding: 8px 10px; }
  .st-btns { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
  .st-btns .send { grid-column: auto; order: 0; }
  .pc .st-btns .mbtn, .pc .st-btns .send.mbtn { height: 36px; min-width: 0; padding: 0 10px; font-size: 14px; }
  .pc .row .ad2 { height: 32px; min-width: 64px; padding: 0 12px; }
  .pc .mac-btns .mbtn, .pc .mac-btns .send, .pc .done-actions .send, .pc .done-actions .link { height: 36px; font-size: 14px; }
}

/* ---------- the set video dialog ---------- */
.pc .vid-modal { width: min(400px, calc(100vw - 24px)); }
.pc .vid-in::before { display: none; }
.pc .vid-in { padding-top: 20px; }
.vid-stage { width: min(100%, calc(56dvh * 9 / 16)); aspect-ratio: 9 / 16; margin: 4px auto 0; border-radius: 12px; overflow: hidden; background: #f4f2ed; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 14px 30px -16px rgba(0, 0, 0, .45); }
.vid-stage canvas, .vid-stage video { display: block; width: 100%; height: 100%; object-fit: contain; }
.vid-bar { height: 3px; margin: 12px auto 0; width: min(100%, calc(56dvh * 9 / 16)); border-radius: 3px; background: #e5e5ea; overflow: hidden; }
.vid-bar i { display: block; height: 100%; width: 0; background: #0a7cff; transition: width .25s linear; }
.pc .ic.vd { background: linear-gradient(#ff5b8f, #e3265b); color: #fff; }
.pc .mac-btns .send[disabled] { background: #f0f0f2; color: #b0b0b5; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12); cursor: default; }

/* every text box is at least 16px on every screen, or iOS Safari zooms the page when it is tapped */
.pc input, .pc textarea, .pc select, .pc .find input, .pc .modal input:not([type="checkbox"]) { font-size: 16px !important; }
.pc .find input { width: 140px; }
@media (max-width: 700px) { .pc .find input { width: 76px; } }
.pc .ic.iv { background: linear-gradient(#34c759, #248a3d); color: #fff; }

/* phones: inside a cover (or search), the sidebar steps aside so the song list has room */
@media (max-width: 700px) {
  .win .view.enter { animation-duration: .3s; }
  .win.focus { grid-template-columns: 0 minmax(0, 1fr); }
  .win.focus .sb { visibility: hidden; padding: 0; border: 0; overflow: hidden; }
  .win.focus .bar { padding-left: 12px; }
  .win.focus .nb#back { width: auto; padding: 0 8px 0 2px; font-size: 15px; color: #0a7cff; }
  .win.focus .nb#back::after { content: " Back"; font: 500 15px -apple-system, system-ui, sans-serif; }
  .win.focus .view { padding: 14px 14px 24px; }
  .win.focus .proj-art img { width: 96px; }
  .win.focus .row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding: 9px 8px; }
  .win.focus .row .nm b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.25; }
  .win.focus .row .nm span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
}

/* ---------- cream everywhere: the desktop paper colour runs through every surface ---------- */
.pc { --win: #fbf7ec; --side: #f3ecdc; --rule: #e7dfcc; }
.pc .win { background: var(--paper); }
.pc .find { background: rgba(120, 95, 50, .09); }
.pc .row:nth-child(odd) { background: #f6f0e2; }
.pc .setview, .pc .fl-head, .pc .line { background: var(--paper); }
.pc .line:nth-child(even) { background: #f6f0e2; }
.pc .status { background: var(--side); }
.pc .setwin { background: var(--paper); }
.pc .sw-bar { background: var(--side); }
.pc .modal { background: rgba(251, 247, 236, .94); }
.pc .x-btn:hover { background: #f6f0e2; }
.pc .toast { background: rgba(251, 247, 236, .95); }
.pc .send.mbtn[disabled], .pc .mac-btns .send[disabled] { background: #efe8d8; color: #b3aa98; }


/* ---------- the message wall ---------- */
@media (hover: hover) { .desk { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='44' viewBox='0 0 19 29' shape-rendering='crispEdges'%3E%3Cpath d='M2 3h1v1h-1zM2 4h2v1h-2zM2 5h3v1h-3zM2 6h4v1h-4zM2 7h5v1h-5zM2 8h6v1h-6zM2 9h7v1h-7zM2 10h8v1h-8zM2 11h9v1h-9zM2 12h10v1h-10zM2 13h11v1h-11zM2 14h12v1h-12zM2 15h13v1h-13zM2 16h13v1h-13zM2 17h14v1h-14zM2 18h9v1h-9zM2 19h9v1h-9zM2 20h4v1h-4zM8 20h4v1h-4zM2 21h3v1h-3zM8 21h4v1h-4zM2 22h2v1h-2zM9 22h3v1h-3zM9 23h4v1h-4zM9 24h4v1h-4zM10 25h4v1h-4zM10 26h2v1h-2z' fill='rgba(20,20,20,.22)'/%3E%3Cpath d='M1 5h1v1h-1zM1 6h2v1h-2zM1 7h3v1h-3zM1 8h4v1h-4zM1 9h5v1h-5zM1 10h6v1h-6zM1 11h7v1h-7zM1 12h8v1h-8zM1 13h7v1h-7zM9 13h1v1h-1zM1 14h7v1h-7zM1 15h3v1h-3zM5 15h1v1h-1zM1 16h2v1h-2zM1 17h1v1h-1z' fill='%23ffffff'/%3E%3Cpath d='M8 13h1v1h-1zM4 15h1v1h-1zM6 15h1v1h-1z' fill='%23ececec'/%3E%3Cpath d='M1 4h1v1h-1zM2 5h1v1h-1zM3 6h1v1h-1zM4 7h1v1h-1zM5 8h1v1h-1zM6 9h1v1h-1zM7 10h1v1h-1zM8 11h1v1h-1zM9 12h1v1h-1zM10 13h1v1h-1zM8 14h4v1h-4zM7 15h1v1h-1zM3 16h5v1h-5zM2 17h1v1h-1zM7 17h1v1h-1zM1 18h1v1h-1zM7 18h1v1h-1zM8 19h1v1h-1zM8 20h1v1h-1zM8 21h1v1h-1zM9 22h1v1h-1z' fill='%23c8c8c8'/%3E%3Cpath d='M0 1h1v1h-1zM0 2h2v1h-2zM0 3h3v1h-3zM0 4h1v1h-1zM2 4h2v1h-2zM0 5h1v1h-1zM3 5h2v1h-2zM0 6h1v1h-1zM4 6h2v1h-2zM0 7h1v1h-1zM5 7h2v1h-2zM0 8h1v1h-1zM6 8h2v1h-2zM0 9h1v1h-1zM7 9h2v1h-2zM0 10h1v1h-1zM8 10h2v1h-2zM0 11h1v1h-1zM9 11h2v1h-2zM0 12h1v1h-1zM10 12h2v1h-2zM0 13h1v1h-1zM11 13h2v1h-2zM0 14h1v1h-1zM12 14h1v1h-1zM0 15h1v1h-1zM8 15h6v1h-6zM0 16h1v1h-1zM8 16h1v1h-1zM0 17h1v1h-1zM3 17h4v1h-4zM8 17h1v1h-1zM0 18h1v1h-1zM2 18h2v1h-2zM6 18h1v1h-1zM8 18h2v1h-2zM0 19h3v1h-3zM6 19h2v1h-2zM9 19h1v1h-1zM0 20h2v1h-2zM7 20h1v1h-1zM9 20h1v1h-1zM7 21h1v1h-1zM9 21h2v1h-2zM7 22h2v1h-2zM10 22h1v1h-1zM8 23h4v1h-4zM8 24h2v1h-2z' fill='%23141414'/%3E%3C/svg%3E") 1 1, default; } .desk-folder { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='44' viewBox='0 0 19 29' shape-rendering='crispEdges'%3E%3Cpath d='M2 3h1v1h-1zM2 4h2v1h-2zM2 5h3v1h-3zM2 6h4v1h-4zM2 7h5v1h-5zM2 8h6v1h-6zM2 9h7v1h-7zM2 10h8v1h-8zM2 11h9v1h-9zM2 12h10v1h-10zM2 13h11v1h-11zM2 14h12v1h-12zM2 15h13v1h-13zM2 16h13v1h-13zM2 17h14v1h-14zM2 18h9v1h-9zM2 19h9v1h-9zM2 20h4v1h-4zM8 20h4v1h-4zM2 21h3v1h-3zM8 21h4v1h-4zM2 22h2v1h-2zM9 22h3v1h-3zM9 23h4v1h-4zM9 24h4v1h-4zM10 25h4v1h-4zM10 26h2v1h-2z' fill='rgba(20,20,20,.22)'/%3E%3Cpath d='M1 5h1v1h-1zM1 6h2v1h-2zM1 7h3v1h-3zM1 8h4v1h-4zM1 9h5v1h-5zM1 10h6v1h-6zM1 11h7v1h-7zM1 12h8v1h-8zM1 13h7v1h-7zM9 13h1v1h-1zM1 14h7v1h-7zM1 15h3v1h-3zM5 15h1v1h-1zM1 16h2v1h-2zM1 17h1v1h-1z' fill='%23ffffff'/%3E%3Cpath d='M8 13h1v1h-1zM4 15h1v1h-1zM6 15h1v1h-1z' fill='%23ececec'/%3E%3Cpath d='M1 4h1v1h-1zM2 5h1v1h-1zM3 6h1v1h-1zM4 7h1v1h-1zM5 8h1v1h-1zM6 9h1v1h-1zM7 10h1v1h-1zM8 11h1v1h-1zM9 12h1v1h-1zM10 13h1v1h-1zM8 14h4v1h-4zM7 15h1v1h-1zM3 16h5v1h-5zM2 17h1v1h-1zM7 17h1v1h-1zM1 18h1v1h-1zM7 18h1v1h-1zM8 19h1v1h-1zM8 20h1v1h-1zM8 21h1v1h-1zM9 22h1v1h-1z' fill='%23c8c8c8'/%3E%3Cpath d='M0 1h1v1h-1zM0 2h2v1h-2zM0 3h3v1h-3zM0 4h1v1h-1zM2 4h2v1h-2zM0 5h1v1h-1zM3 5h2v1h-2zM0 6h1v1h-1zM4 6h2v1h-2zM0 7h1v1h-1zM5 7h2v1h-2zM0 8h1v1h-1zM6 8h2v1h-2zM0 9h1v1h-1zM7 9h2v1h-2zM0 10h1v1h-1zM8 10h2v1h-2zM0 11h1v1h-1zM9 11h2v1h-2zM0 12h1v1h-1zM10 12h2v1h-2zM0 13h1v1h-1zM11 13h2v1h-2zM0 14h1v1h-1zM12 14h1v1h-1zM0 15h1v1h-1zM8 15h6v1h-6zM0 16h1v1h-1zM8 16h1v1h-1zM0 17h1v1h-1zM3 17h4v1h-4zM8 17h1v1h-1zM0 18h1v1h-1zM2 18h2v1h-2zM6 18h1v1h-1zM8 18h2v1h-2zM0 19h3v1h-3zM6 19h2v1h-2zM9 19h1v1h-1zM0 20h2v1h-2zM7 20h1v1h-1zM9 20h1v1h-1zM7 21h1v1h-1zM9 21h2v1h-2zM7 22h2v1h-2zM10 22h1v1h-1zM8 23h4v1h-4zM8 24h2v1h-2z' fill='%23141414'/%3E%3C/svg%3E") 1 1, pointer; } }
.desk-folder { z-index: 2; }
.wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; perspective: 1100px; perspective-origin: 50% 45%; }
.wall-stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease); }
/* a full sheet steps back: further away, paler, a little soft; the newest sheet stays crisp on top */
.sig { position: absolute; overflow: visible; transform: translateZ(calc(var(--back, 0) * -150px)); opacity: calc(1 - var(--back, 0) * .2); filter: blur(calc(var(--back, 0) * .4px));
  transition: transform 1.2s var(--ease), opacity 1.2s, filter 1.2s, left .6s var(--ease), top .6s var(--ease); }
.sig path { fill: none; stroke: #1d1d1f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sig.mine path { stroke: #e3262b; stroke-width: 1.9; }
.sig.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: sigDraw 1.4s var(--ease) var(--d, 0ms) forwards; }
@keyframes sigDraw { to { stroke-dashoffset: 0; } }
.wall-cap { position: absolute; z-index: 1; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; white-space: nowrap; font: 500 10.5px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .14em; color: #8a857a; pointer-events: none; padding: 7px 12px; border-radius: 99px; background: rgba(251, 247, 236, .9); }
@media (prefers-reduced-motion: reduce) { .sig.draw path { animation: none; stroke-dashoffset: 0; } .sig { transition: none; } }

/* the handwritten message box in the Save form */
.sigpad { display: grid; gap: 6px; margin-top: 4px; text-align: left; }
.sigpad-h { font-size: 13px; font-weight: 500; color: #1d1d1f; }
.sigpad-h .opt { margin-left: 4px; font-weight: 400; color: #8a857a; }
.sigpad-box { position: relative; height: 150px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), inset 0 1px 1px rgba(0, 0, 0, .05); }
.sigpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.sigpad-ph { position: absolute; left: 14px; top: 12px; font: 400 13px -apple-system, system-ui, sans-serif; color: #b5ae9f; pointer-events: none; transition: opacity .2s; }
.sigpad.has .sigpad-ph { opacity: 0; }
.sigpad-x { position: absolute; right: 6px; top: 6px; height: 22px; padding: 0 8px; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .05); font: 500 11.5px -apple-system, system-ui, sans-serif; color: #6e6e73; opacity: 0; pointer-events: none; transition: opacity .2s; }
.sigpad.has .sigpad-x { opacity: 1; pointer-events: auto; }
.pc .done-actions #doneSign { grid-column: 1 / -1; order: 0; height: 28px; }
@media (max-width: 700px) { .pc .done-actions #doneSign { height: 36px; font-size: 14px; } }
/* phones: a shallower stack, so older sheets stay spread across the screen instead of bunching in the middle */
@media (max-width: 700px) { .sig { transform: translateZ(calc(var(--back, 0) * -60px)); opacity: calc(1 - var(--back, 0) * .17); } }

/* ---------- release dates, About and Get Info ---------- */
.proj-art .rel { display: block; margin-top: 6px; font-weight: 600; color: var(--fl); }
.about { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12.5px; line-height: 1.45; color: var(--fl); }
.about h4 { margin: 0 0 8px; font: 600 10.5px "IBM Plex Mono", monospace; letter-spacing: .12em; color: var(--fl-2); }
.about p, .getinfo .notes p { margin: 0 0 7px; }
.nt-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; background: #fff2d6; color: #8a5a00; font: 600 10px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.nt-src { font-size: 11px; color: var(--fl-3); }
.pc .nt-src a, .ios .nt-src a { color: var(--blue); text-decoration: none; }
.nt-src a:hover { text-decoration: underline; }
.rowr { display: flex; align-items: center; gap: 8px; }
/* the small blue (i) on songs that have notes */
.pc .ib { display: grid; place-items: center; width: 15px; height: 15px; padding: 0 0 0 1px; border: 1.1px solid var(--blue); border-radius: 50%; background: none; color: var(--blue); font: italic 600 9.5px/1 Georgia, "Times New Roman", serif; cursor: pointer; }
.pc .ib:hover { background: rgba(10, 132, 255, .1); }
.getinfo { position: absolute; z-index: 6; right: 16px; top: 52px; width: 300px; max-height: calc(100% - 68px); overflow-y: auto; border-radius: 12px; background: #f6f5f3; color: var(--fl); font-size: 12px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 24px 60px -18px rgba(0, 0, 0, .45); animation: giIn .22s var(--ease); }
.getinfo[hidden] { display: none; }
@keyframes giIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.gi-bar { position: sticky; top: 0; display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; height: 30px; padding: 0 10px; background: #ecebea; border-bottom: 1px solid #ddd; }
.gi-bar .lights { display: flex; gap: 6px; padding: 0; }
.gi-bar .l { width: 11px; height: 11px; }
.gi-bar b { text-align: center; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-head { display: flex; gap: 12px; align-items: center; padding: 14px; }
.gi-head img { width: 54px; height: 54px; border-radius: 4px; object-fit: cover; }
.gi-head b { display: block; font-size: 14px; } .gi-head span { color: var(--fl-2); }
.gi-sec { padding: 10px 14px 12px; border-top: 1px solid #e3e1dd; line-height: 1.45; }
.gi-sec h5 { margin: 0 0 8px; font-size: 11px; font-weight: 700; color: var(--fl-2); }
.gi-sec dl { display: grid; grid-template-columns: 70px 1fr; gap: 4px 10px; margin: 0; }
.gi-sec dt { text-align: right; color: var(--fl-2); } .gi-sec dd { margin: 0; }
.wall-cap:empty { display: none; }
.pc .sigpad + .fineprint { margin-top: 10px; }
