/* viewer design language: quiet control surface.
   sans for UI, mono reserved for data, one accent, hairline borders, real spacing. */
:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --surface: #10131a;
  --surface-2: #151a23;
  --border: #1d2430;
  --text: #e7ebf1;
  --text-2: #9aa6b5;
  --text-3: #5d6a7c;
  --accent: #5b9dff;
  --pending: #d29922;
  --live: #3fb68b;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  background: rgba(10,12,16,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .wordmark { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  color: var(--text-3); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 7px; transition: color .15s, background .15s;
}
.topbar nav a:hover { color: var(--text); background: var(--surface-2); }
.topbar nav a.active { color: var(--text); background: var(--surface-2); }

main { max-width: 680px; margin: 0 auto; padding: 36px 20px 96px; }
.pagehead { margin-bottom: 28px; }
.pagehead h1 { font-size: 22px; font-weight: 650; letter-spacing: -.01em; margin: 0 0 6px; }
.pagehead .sub { color: var(--text-3); font-size: 13.5px; margin: 0; }

.card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface);
  padding: 18px 20px; margin-bottom: 14px;
  transition: border-color .15s, background .15s;
}
a.card:hover { border-color: #2b3547; background: var(--surface-2); }
.card .card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h2 { font-size: 15.5px; font-weight: 600; letter-spacing: -.005em; margin: 0; }
.card .status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.card .status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.card .status.pending { color: var(--pending); } .card .status.pending::before { background: var(--pending); }
.card .status.live { color: var(--live); } .card .status.live::before { background: var(--live); }
.card .meta { color: var(--text-3); font-size: 12.5px; margin-top: 4px; font-family: var(--mono); }
.card .notes { color: var(--text-2); font-size: 13.5px; margin-top: 10px; }
.card .links { margin-top: 12px; display: flex; gap: 18px; font-size: 13.5px; }
.card .links a { color: var(--accent); text-decoration: none; }
.card .links a:hover { text-decoration: underline; }

.empty { color: var(--text-3); font-size: 13.5px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
td, th { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--text-3); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
td.num { font-family: var(--mono); font-size: 13px; }
img.render { width: 100%; border: 1px solid var(--border); border-radius: 12px; }

/* art gallery: the work is the interface */
.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .art-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.art-item { display: block; border: none; padding: 0; background: none; cursor: zoom-in; }
.art-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--surface); }
.art-item .cap { margin-top: 7px; font-size: 12px; color: var(--text-3); padding: 0 2px; }

.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: rgba(5,6,8,.96); padding: 24px; cursor: zoom-out;
}
.lightbox img { max-width: min(92vw, 880px); max-height: 78vh; border-radius: 12px; }
.lightbox .cap { color: var(--text-2); font-size: 13.5px; text-align: center; }
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 20px; cursor: pointer;
  display: grid; place-items: center;
}
.lightbox .lb-nav.prev { left: 12px; } .lightbox .lb-nav.next { right: 12px; }
.lightbox .lb-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--text-3); font-size: 15px; cursor: pointer; padding: 10px; }
@media (max-width: 560px) { .lightbox .lb-nav { display: none; } /* swipe instead */ }

/* screenshot dropdown: tap the card body (not the links) to peek without leaving */
.card.has-shots { cursor: pointer; }
.card .shot-hint { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--text-3); user-select: none; }
.card .shot-hint::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-1px); transition: transform .18s ease; }
.card.open .shot-hint::before { transform: rotate(225deg) translateY(-1px); }
.card .shots { margin-top: 12px; }
.card .shots[hidden] { display: none; }
.card .shots img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--border); }

/* art sections: horizontal rows per series */
.art-section { margin-bottom: 40px; }
.art-section h2 { font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--text-2); margin: 0 0 14px; }
.art-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.art-row .art-item { flex: 0 0 min(66vw, 280px); scroll-snap-align: start; }
@media (min-width: 560px) { .art-row .art-item { flex-basis: 260px; } }

/* approvals strip */
.striphead { margin-top: 0; }
.appr .variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.appr .variant { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--text-2); font-size: 12.5px; text-align: left; }
.appr .variant img { width: 100%; display: block; border-radius: 6px; }
.appr .variant.confirm { border-color: var(--live); color: var(--live); }
.decided { margin-top: 14px; font-size: 12.5px; color: var(--text-3); font-family: var(--mono); }

/* trading winners */
.winners .winner-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.winners .winner { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.winners .wing { font-size: 11px; color: var(--text-3); font-family: var(--mono); letter-spacing: .12em; }
.winners .wname { font-size: 14.5px; font-weight: 600; margin-top: 4px; }
.winners .wret { color: var(--live); font-size: 15px; margin-top: 2px; }
.appr.done .variant.chosen { border-color: var(--live); cursor: default; }
.appr.done .variants { max-width: 200px; }

/* mini sub-tabs: pending | approved */
.minitabs { display: flex; gap: 6px; margin: 14px 0 4px; }
.minitabs button { background: none; border: 1px solid var(--border); border-radius: 999px; color: var(--text-3); font-size: 12px; padding: 4px 12px; cursor: pointer; }
.minitabs button:hover { border-color: #2b3547; color: var(--text-2); }
.minitabs button.active { border-color: var(--accent); color: var(--text); background: var(--surface-2); }

/* music tab: compact cards */
#music-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mtrack { padding: 12px 14px; }
.mtrack h2 { font-size: 14px; }
.mtrack .meta { display: inline; }
.mtrack .mrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mtrack .mrow .links { margin: 0; }
.mact { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); font-size: 12.5px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.mact:hover { border-color: #2b3547; }
.mact.confirm { border-color: var(--live); color: var(--live); }
.mform { display: flex; gap: 6px; flex: 1; min-width: 120px; margin: 0; }
.mform input { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 5px 10px; font-size: 12.5px; outline: none; }
.mform input:focus { border-color: #2b3547; }
.mform button { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); font-size: 12.5px; padding: 5px 10px; cursor: pointer; }
.mcomments { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.mcomments .c { font-size: 12.5px; color: var(--text-2); }
.mcomments .c .when { color: var(--text-3); font-size: 11px; margin-left: 8px; font-family: var(--mono); }

/* wordmark as icon (interim buddy; dedicated copilot-feel dashboard icon in the works - swap when it lands) */
.wordmark-icon { display: inline-flex; align-items: center; }
.wordmark-icon img { width: 27px; height: 27px; border-radius: 6px; display: block; }

/* music card cover thumb */
.mbody{display:flex;gap:10px;align-items:flex-start;margin-top:6px}
.mcover{width:64px;height:64px;border-radius:8px;object-fit:cover;flex:none}
.mtext{flex:1;min-width:0}
.mtrack .links{white-space:nowrap}

/* schedule groups */
.jobgroup{margin-bottom:28px}
.jobgroup-label{font:11px ui-monospace,Menlo,monospace;letter-spacing:2px;text-transform:uppercase;color:#d5af78;border-bottom:1px dashed rgba(213,175,120,.3);padding-bottom:6px;margin:0 0 12px}
