/* BETTER listening — programming planner.
   Sits on top of site.css (the website's own styles), so fonts, colours,
   buttons and the menu match the public site exactly. Nothing here is bold:
   only one weight of Aktiv exists. */

.wrap { max-width: 1240px; }

.p-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button, .season-tabs button {
  background: var(--grey-dark); border: 1px solid var(--line); color: var(--grey);
  font-size: 13px; padding: 8px 18px; border-radius: 99px; transition: all .15s ease;
}
.filters button:hover, .season-tabs button:hover { color: var(--white); }
.filters button.on, .season-tabs button.on { background: var(--white); color: var(--black); border-color: var(--white); }

.mono { font-family: "BB Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--grey); }

/* ---------- Status colours (one place) ---------- */
.st { display: inline-block; font-family: "BB Mono", monospace; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
      padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--grey); white-space: nowrap; }
.st-idea      { color: #8a8a8a; }
.st-contacted { color: #e8c872; border-color: #4d4224; }
.st-talks     { color: #8fc2ff; border-color: #24405f; }
.st-accepted  { color: #7bff9e; border-color: #2e5c3a; }
.st-booked    { color: var(--black); background: var(--white); border-color: var(--white); }
.st-declined, .st-later { color: #5c5c5c; border-color: #222; }

/* ---------- Stat row (click to filter by status) ---------- */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 10px;
  min-width: 112px; text-align: left; color: var(--white); transition: border-color .15s ease;
}
.stat:hover { border-color: #555; }
.stat.on { border-color: var(--white); }
.stat b { display: block; font-family: "AGPX", monospace; font-size: 24px; font-weight: 400; line-height: 1.1; }
.stat span { font-family: "BB Mono", monospace; font-size: 9.5px; color: var(--grey); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
input, select, textarea {
  font-family: "Aktiv", sans-serif; font-size: 14px; color: var(--white);
  background: var(--grey-dark); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 13px; outline: none; transition: border-color .15s ease;
}
input:focus, select:focus, textarea:focus { border-color: #666; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.toolbar input[type=search] { flex: 1 1 240px; min-width: 0; border-radius: 99px; padding-left: 18px; }
.toolbar select { border-radius: 99px; font-size: 13px; color: var(--grey); }
.toolbar .btn { margin-left: auto; }
textarea { width: 100%; resize: vertical; min-height: 70px; line-height: 1.5; }

/* ---------- Roster list ---------- */
.roster { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.row {
  display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(140px, 1fr) minmax(200px, 1.6fr) 96px 110px;
  gap: 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #1c1c1c;
  cursor: pointer; transition: background .12s ease;
}
.row:last-child { border-bottom: none; }
.row:hover { background: #171717; }
.row:focus-visible { outline: 2px solid var(--white); outline-offset: -2px; }
.row .nm { font-size: 16px; line-height: 1.25; }
.row .sub { font-family: "BB Mono", monospace; font-size: 9.5px; color: var(--grey); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.row .idea { font-size: 13px; color: #9a9a9a; line-height: 1.4; }
.row .idea em { color: #666; font-style: normal; }
.row .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.row .fee { font-size: 13px; color: var(--grey); text-align: right; }
.row .right { text-align: right; }
.row.dead .nm { color: #666; }
.empty { padding: 50px 20px; text-align: center; color: var(--grey); font-size: 14px; }
.empty img { height: 90px; margin: 0 auto 18px; opacity: .8; }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .row .idea, .row .fee { display: none; }
  .row .tags { grid-column: 1 / -1; order: 3; }
}

.tag {
  display: inline-block; font-size: 11.5px; color: #bdbdbd; background: #1b1b1b; border: 1px solid #262626;
  padding: 2px 9px; border-radius: 99px; white-space: nowrap;
}
.tag.age { font-family: "BB Mono", monospace; font-size: 9.5px; letter-spacing: .06em; color: #8fc2ff; border-color: #1f3349; }
.tag.season { font-family: "BB Mono", monospace; font-size: 9.5px; letter-spacing: .06em; color: var(--black); background: var(--white); border-color: var(--white); text-transform: uppercase; }
.tag.missing { color: #555; border-style: dashed; background: none; }

/* ---------- Drawer (artist editor) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 140; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); z-index: 150;
  background: #0d0d0d; border-left: 1px solid var(--line); overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease; padding: 26px 26px 120px;
}
.drawer.open { transform: none; box-shadow: -30px 0 80px rgba(0,0,0,.6); }
.d-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.x { background: none; border: 1px solid var(--line); color: var(--grey); border-radius: 99px; width: 34px; height: 34px; font-size: 16px; }
.x:hover { color: var(--white); border-color: var(--white); }
.d-name { font-family: "AGPX", monospace; font-size: 28px; line-height: 1.15; background: none; border: none; border-bottom: 1px solid var(--line); border-radius: 0; padding: 4px 0 10px; width: 100%; }
.d-name:focus { border-color: var(--white); }

.f-sec { margin-top: 26px; }
.f-sec > h3 { font-family: "BB Mono", monospace; font-size: 10px; color: var(--grey); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #1c1c1c; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: "BB Mono", monospace; font-size: 9.5px; color: #777; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field select { width: 100%; }
.hint { font-size: 12px; color: #666; margin-top: 6px; line-height: 1.45; }

.pick { display: flex; gap: 6px; flex-wrap: wrap; }
.pick button {
  background: none; border: 1px solid var(--line); color: var(--grey); border-radius: 99px;
  font-size: 12.5px; padding: 6px 13px; transition: all .12s ease;
}
.pick button:hover { color: var(--white); border-color: #555; }
.pick button.on { background: var(--white); color: var(--black); border-color: var(--white); }
.pick.ages button { font-family: "BB Mono", monospace; font-size: 10.5px; letter-spacing: .05em; }
.pick .add-own { border-style: dashed; }
.own-in { display: flex; gap: 6px; margin-top: 8px; }
.own-in input { flex: 1; border-radius: 99px; font-size: 13px; padding: 7px 14px; }

.d-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid #1c1c1c; flex-wrap: wrap; }
.btn-danger { background: none; border: 1px solid #3a1f1f; color: #d77; }
.btn-danger:hover { border-color: #d77; }
.booked-list { display: flex; flex-direction: column; gap: 8px; }
.booked-list .b { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }

/* ---------- Seasons ---------- */
.season-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.season-tabs .new { border-style: dashed; }
.s-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .s-grid { grid-template-columns: 1fr; } }
.s-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.s-meta h2 { font-family: "AGPX", monospace; font-size: 26px; line-height: 1.15; }
.s-meta .when { font-family: "BB Mono", monospace; font-size: 10px; color: var(--grey); letter-spacing: .08em; text-transform: uppercase; margin-top: 6px; }
.s-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.month { font-family: "BB Mono", monospace; font-size: 10px; color: var(--grey); letter-spacing: .1em; text-transform: uppercase; margin: 22px 0 10px; }
.month:first-child { margin-top: 0; }
.sess {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px;
}
.sess .date { text-align: center; border-right: 1px solid #1e1e1e; padding-right: 14px; }
.sess .date b { display: block; font-family: "AGPX", monospace; font-size: 24px; font-weight: 400; line-height: 1; }
.sess .date span { font-family: "BB Mono", monospace; font-size: 9px; color: var(--grey); letter-spacing: .08em; }
.sess .t { font-size: 15.5px; line-height: 1.3; }
.sess .meta { font-family: "BB Mono", monospace; font-size: 9.5px; color: var(--grey); letter-spacing: .07em; text-transform: uppercase; margin-top: 4px; }
.sess .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.sess .acts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sess .acts .lnk { background: none; border: none; color: var(--grey); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.sess .acts .lnk:hover { color: var(--white); }
.sess.undated .date b { font-size: 16px; color: #666; }
@media (max-width: 620px) {
  .sess { grid-template-columns: 52px 1fr; }
  .sess .acts { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; align-items: center; }
}

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.panel h3 { font-family: "BB Mono", monospace; font-size: 10px; color: var(--grey); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.panel .big { font-family: "AGPX", monospace; font-size: 26px; line-height: 1.1; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div span { display: block; font-family: "BB Mono", monospace; font-size: 9px; color: var(--grey); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 112px 1fr 22px; gap: 10px; align-items: center; font-size: 12.5px; color: #bdbdbd; }
.bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .trk { display: block; height: 8px; background: #1c1c1c; border-radius: 99px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--white); border-radius: 99px; }
.bar .n { font-family: "BB Mono", monospace; font-size: 10px; color: var(--grey); text-align: right; }
.bar.gap .lbl { color: #e8c872; }
.bar.gap .n { color: #e8c872; }
.gap-note { font-size: 12.5px; color: #e8c872; margin-top: 12px; line-height: 1.45; }
.ok-note { font-size: 12.5px; color: #7bff9e; margin-top: 12px; }

.sug { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #1c1c1c; }
.sug:first-of-type { border-top: none; padding-top: 0; }
.sug .nm { font-size: 14px; }
.sug .why { font-size: 11.5px; color: #7d7d7d; margin-top: 2px; }

/* ---------- Modal ---------- */
dialog {
  background: #0f0f0f; color: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); margin: auto;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
dialog::backdrop { background: rgba(0,0,0,.65); }
dialog h2 { font-family: "AGPX", monospace; font-size: 24px; line-height: 1.15; margin-bottom: 6px; }
dialog .m-sub { color: var(--grey); font-size: 13.5px; margin-bottom: 18px; }
dialog .m-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
dialog textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; min-height: 260px; }
.artist-pick { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.artist-pick label { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #1a1a1a; cursor: pointer; font-size: 14px; }
.artist-pick label:hover { background: #171717; }
.artist-pick label:last-child { border-bottom: none; }
.artist-pick input { width: auto; accent-color: #fff; }
.artist-pick .sub { margin-left: auto; font-family: "BB Mono", monospace; font-size: 9px; color: var(--grey); letter-spacing: .06em; text-transform: uppercase; }

#toast { z-index: 300; }

/* ---------- Team site additions ---------- */
:root { color-scheme: dark; }
.corner-logo, .menu-root { top: calc(20px + env(safe-area-inset-top, 0px)); }
.d-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.s-col, .sess-main { min-width: 0; }
.filters-row { margin-top: -8px; }
.filters-row select { flex: 0 1 auto; }
.toolbar .btn { margin-left: auto; }
.filters-row .gate-link { margin: 0; }

/* Live connection dot */
.live { display: inline-flex; align-items: center; gap: 7px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #444; display: inline-block; transition: background .3s ease; }
.live i.on { background: #7bff9e; box-shadow: 0 0 0 3px rgba(123,255,158,.15); }

/* Sign-in gate */
body.signed-out .app-only { display: none !important; }
body:not(.signed-out) .gate { display: none; }
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.gate-box { width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; }
.gate-logo { height: 26px; width: auto; margin-bottom: 26px; }
.gate-box .title { margin-bottom: 8px; }
.gate-box input { width: 100%; }
.gate-box .btn { margin-top: 6px; padding: 13px 24px; }
.gate-msg { font-size: 13px; color: #e8c872; min-height: 1em; line-height: 1.45; }
.gate-msg.ok { color: #7bff9e; }
.gate-link { background: none; border: none; color: var(--grey); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; padding: 4px 0; }
.gate-link:hover { color: var(--white); }
body.signed-out .corner-logo { display: none; }

/* Desire stars */
.stars { color: #e8c872; letter-spacing: 1px; font-size: 13px; white-space: nowrap; }
.stars i { color: #333; font-style: normal; }
.star-pick { display: flex; gap: 2px; }
.star-pick button { background: none; border: none; font-size: 24px; line-height: 1; color: #333; padding: 2px; transition: color .1s ease, transform .1s ease; }
.star-pick button.on { color: #e8c872; }
.star-pick button:hover { transform: scale(1.12); }
.star-pick button:focus-visible { outline: 1px solid var(--white); border-radius: 4px; }

/* Chips for who / level / live / choice */
.tag.who { color: #e2b8ff; border-color: #3a2650; }
.tag.level { color: #ffd0a8; border-color: #4d3524; }
.tag.live-tag { color: var(--black); background: #7bff9e; border-color: #7bff9e; font-family: "BB Mono", monospace; font-size: 9.5px; letter-spacing: .06em; }
.tag.choice { font-family: "BB Mono", monospace; font-size: 9.5px; letter-spacing: .06em; color: #8fc2ff; border-color: #1f3349; text-transform: uppercase; }

.row { grid-template-columns: minmax(180px, 1.3fr) minmax(140px, 1fr) minmax(200px, 1.6fr) 80px 110px; }
.row .rate { text-align: right; }
@media (max-width: 900px) { .row .rate { display: none; } }
.f-grid .full-pick { grid-column: 1 / -1; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr auto; } }

/* ---------- Mix panel (roster) ---------- */
:root { --seg1: #ffffff; --seg2: #8a8a8a; --seg3: #4a4a4a; --seg4: #2a2a2a; }
.mix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 820px) { .mix { grid-template-columns: 1fr; } }
.mix-head { grid-column: 1 / -1; font-family: "BB Mono", monospace; font-size: 10px; color: var(--grey); letter-spacing: .1em; text-transform: uppercase; }
.mix-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.mix-card h3 { font-family: "BB Mono", monospace; font-size: 9.5px; color: var(--grey); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.mix-big { font-family: "AGPX", monospace; font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mix-big small { font-family: "Aktiv", sans-serif; font-size: 13px; color: var(--grey); margin-left: 6px; }
.mix-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #1c1c1c; margin: 12px 0 10px; }
.mix-bar span { display: block; height: 100%; }
.mix-bar span + span { border-left: 2px solid var(--panel); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #bdbdbd; }
.mix-legend span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mix-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.mix-legend em { font-style: normal; color: #666; margin-left: 4px; }
.mix-card .hint { margin-top: 8px; }

/* Season bars show count and share */
.bar { grid-template-columns: 112px 1fr 64px; }
.bar .n { white-space: nowrap; }

/* One-tap fashion season names */
.preset-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.preset-row button { background: none; border: 1px solid var(--line); color: var(--grey); border-radius: 99px; font-family: "BB Mono", monospace; font-size: 11px; letter-spacing: .06em; padding: 7px 14px; }
.preset-row button:hover, .preset-row button.on { color: var(--black); background: var(--white); border-color: var(--white); }
