/* Visual idea: the passenger service unit above a seat row — dark cabin navy panels,
   the amber call light, and seat-fabric blue. One accent (amber) means "act here". */
:root {
  color-scheme: light;
  --bg: #e9edf1;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --ink: #17212b;
  --ink-soft: #52606d;
  --line: #cfd7df;
  --navy: #1d3047;
  --navy-ink: #e9eef4;
  --seat: #3b5a80;
  --amber: #f0a202;
  --amber-ink: #2a1d00;
  --red: #c2362b;
  --green: #2f8a4f;
  --radius-panel: 14px;
  --radius-ctl: 8px;
  --sign: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1824;
    --surface: #162433;
    --surface-2: #1c2d3f;
    --ink: #e6ecf2;
    --ink-soft: #9fb0c1;
    --line: #2b3f55;
    --navy: #0a131d;
    --navy-ink: #dde6ef;
    --seat: #5b7fa8;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--body);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.hidden { display: none !important; }
h1, h2 { font-family: var(--sign); font-stretch: condensed; letter-spacing: 0.01em; line-height: 1.15; margin: 0 0 0.5rem; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 0.75rem; }
.hint { color: var(--ink-soft); font-size: 0.9rem; }
.lead { color: var(--ink-soft); max-width: 60ch; }
.error { color: var(--red); min-height: 1.5em; margin: 0.5rem 0 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---- header: the PSU panel */
.psu {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1.25rem;
  padding: calc(0.6rem + env(safe-area-inset-top, 0px)) 1.25rem 0.6rem;
  background: var(--navy); color: var(--navy-ink);
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; }
.brandName { font-family: var(--sign); font-stretch: condensed; font-size: 1.5rem; font-weight: 700; }
.callLight {
  width: 14px; height: 14px; border-radius: 50%;
  background: #4a5868; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.callLight.on { background: var(--amber); box-shadow: 0 0 10px 2px rgba(240,162,2,0.7); }
.tabs { display: flex; gap: 0.25rem; }
.tab {
  font: inherit; color: var(--navy-ink); background: transparent; border: 0; cursor: pointer;
  padding: 0.35rem 0.75rem; border-radius: var(--radius-ctl); opacity: 0.75;
}
.tab[aria-current="page"] { opacity: 1; background: rgba(255,255,255,0.1); }
.tab:hover { opacity: 1; }
.conn { margin-left: auto; font-size: 0.85rem; opacity: 0.85; white-space: nowrap; }
.conn.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 0.4rem; }
.conn.bad { color: #ffb4ab; }

main { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

/* ---- controls */
.btn {
  font: 600 1rem var(--body); cursor: pointer;
  padding: 0.6rem 1.1rem; border-radius: var(--radius-ctl); border: 0;
  background: var(--amber); color: var(--amber-ink);
}
.btn:disabled { cursor: not-allowed; background: var(--line); color: var(--ink-soft); }
.btn.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
input {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 0.55rem 0.7rem; width: 100%;
}
label { display: block; font-weight: 600; margin: 0.75rem 0 0.3rem; }

/* ---- join */
.join { max-width: 460px; margin: 3rem auto; }
.join .btn { margin-top: 1rem; }

/* ---- lobby layout */
.lobby { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.mainCol, .rightCol { display: grid; gap: 1.25rem; min-width: 0; grid-template-columns: minmax(0, 1fr); }
.rightCol { position: sticky; top: 4.5rem; }
@media (max-width: 860px) {
  .psu { gap: 0.75rem; padding-left: 0.9rem; padding-right: 0.9rem; }
  .lobby { grid-template-columns: minmax(0, 1fr); }
  .rightCol { position: static; }
}
.block { background: var(--surface); border-radius: var(--radius-panel); padding: 1rem 1.1rem 1.2rem; border: 1px solid var(--line); }

/* ---- the aircraft: 18 positions along the aisle */
.planeScroll { overflow-x: auto; padding-bottom: 0.25rem; }
.plane {
  --cols: 18;
  position: relative; min-width: 680px;
  display: grid; grid-template-columns: 1.2fr 2fr repeat(15, 1fr) 2fr; grid-template-rows: 48px 26px 48px;
  gap: 3px; padding: 10px 26px 10px 10px;
  background: var(--surface-2); border: 2px solid var(--seat);
  border-radius: 90px 22px 22px 90px;
}
.plane .seat { background: color-mix(in srgb, var(--seat) 22%, transparent); border-radius: 5px; }
.plane .seat.biz { background: color-mix(in srgb, var(--seat) 40%, transparent); }
.plane .room { background: transparent; border: 1px dashed var(--line); border-radius: 5px; font-size: 0.7rem; color: var(--ink-soft); display: grid; place-items: center; }
.plane .aisle { grid-row: 2; display: grid; place-items: center; font-size: 0.7rem; color: var(--ink-soft); }
.station {
  font: 700 0.95rem var(--sign); font-stretch: condensed; cursor: pointer;
  border: 2px solid var(--seat); border-radius: 8px; background: var(--surface); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  padding: 0 2px; overflow: hidden; z-index: 1;
}
.station small { font: 400 0.68rem var(--body); color: var(--ink-soft); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.station.mine { border-color: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 35%, transparent); }
.station.taken { cursor: default; background: color-mix(in srgb, var(--seat) 15%, var(--surface)); }
.station.free small { color: var(--seat); }

/* ---- characters */
.characters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.9rem; }
.char {
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  background: var(--surface-2); border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.char img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.char .cBody { padding: 0.55rem 0.7rem 0.75rem; }
.char .cName { font: 700 1.05rem var(--sign); font-stretch: condensed; }
.char .cSuit { font-size: 0.85rem; color: var(--ink-soft); }
.char .cPassive { font-size: 0.82rem; margin-top: 0.3rem; }
.char .cOwner { font-size: 0.82rem; font-weight: 600; color: var(--seat); margin-top: 0.35rem; }
.char.mine { border-color: var(--amber); }
.char.taken:not(.mine) { opacity: 0.55; cursor: default; }
.char.taken:not(.mine) img { filter: grayscale(0.8); }

/* ---- members, chat */
.members { list-style: none; margin: 0 0 1rem; padding: 0; }
.members li { display: flex; gap: 0.5rem; align-items: baseline; padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.members .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; align-self: center; }
.members .dot.on { background: var(--green); }
.members .who { flex: 1; }
.members .meta { font-size: 0.82rem; color: var(--ink-soft); }
.members .you { font-size: 0.75rem; color: var(--amber-ink); background: var(--amber); border-radius: 4px; padding: 0 0.3rem; }
.takeoff { margin: 1rem 0; }
.roomActions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.members .crewTag { font-size: 0.75rem; color: var(--seat); font-weight: 600; }

/* ---- briefing steps: a short checklist, the current step lit amber */
.steps { list-style: none; margin: 0 0 0.9rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.4rem; counter-reset: step; }
.steps li {
  counter-increment: step; font-size: 0.88rem; line-height: 1.25; padding: 0.5rem 0.6rem 0.55rem;
  border-radius: var(--radius-ctl); background: var(--surface-2); color: var(--ink-soft); border-top: 3px solid var(--line);
}
.steps li::before { content: counter(step); display: block; font: 700 1.1rem var(--sign); }
.steps li.done { border-top-color: var(--green); color: var(--ink); }
.steps li.now { border-top-color: var(--amber); color: var(--ink); background: color-mix(in srgb, var(--amber) 14%, var(--surface)); }
@media (max-width: 560px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stepAction { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.stepAction p { margin: 0; }

/* ---- the senior's station assignment */
.assign { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.assign label { margin: 0 0 0.25rem; font-family: var(--sign); font-stretch: condensed; font-size: 1rem; }
select {
  font: inherit; color: var(--ink); background: var(--surface); width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 0.5rem 0.6rem;
}
.station.empty { border-style: dashed; color: var(--ink-soft); cursor: default; }
.chat li.sys { color: var(--ink-soft); font-size: 0.86rem; }
.problems { margin: 0.6rem 0; padding-left: 1.1rem; font-size: 0.88rem; color: var(--ink-soft); }
.chat { list-style: none; margin: 0 0 0.6rem; padding: 0; max-height: 260px; overflow-y: auto; font-size: 0.92rem; }
.chat li { padding: 0.15rem 0; }
.chat b { margin-right: 0.35rem; }
.chatForm { display: flex; gap: 0.5rem; }

/* ---- reference */
.refBar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.refBar input { max-width: 280px; }
.segmented { display: flex; flex-wrap: wrap; gap: 0.25rem; background: var(--surface); padding: 0.25rem; border-radius: 10px; border: 1px solid var(--line); }
.segmented button { font: inherit; font-size: 0.92rem; border: 0; background: transparent; color: var(--ink-soft); padding: 0.35rem 0.7rem; border-radius: 7px; cursor: pointer; }
.segmented button[aria-selected="true"] { background: var(--navy); color: var(--navy-ink); }
.refGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.95rem;
  display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.92rem;
}
.card.critical { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.card .cardHead { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; color: var(--ink-soft); }
.card .cardTitle { font: 700 1.05rem var(--sign); font-stretch: condensed; }
.card .quote { font-style: italic; }
.card .cost { display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }
.pip {
  display: inline-grid; place-items: center; min-width: 1.8rem; height: 1.8rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.95rem;
}
.pip.any { background: #8a96a3; border-color: #8a96a3; }
.card .label { font-weight: 600; }
.card .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag { font-size: 0.75rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.tag.manual { background: color-mix(in srgb, var(--amber) 25%, transparent); color: var(--ink); }
.deckList { margin: 0; padding-left: 1.1rem; }
.deckList li { margin: 0.15rem 0; }

@media (prefers-reduced-motion: no-preference) {
  .callLight.on { animation: blink 1.6s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.45; } }
}

/* ================= flight screen ================= */
.gameScreen { display: grid; gap: 1rem; }
.gTopBar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; justify-content: space-between; }
.gTop { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.chip { font: 700 1rem var(--sign); font-stretch: condensed; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.chip.round.red { border-color: var(--red); color: var(--red); }
.chip.round.yellow { border-color: var(--amber); }
.chip.round.green { border-color: var(--green); }
.chip.turn { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.orderMeter { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.orderMeter .bar { width: 140px; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.orderMeter .fill { display: block; height: 100%; background: var(--green); }
.gEvents { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 100%; }
.event { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.35rem 0.7rem; max-width: 420px; font-size: 0.9rem; }
.event summary { cursor: pointer; font-weight: 600; }
.event p { margin: 0.4rem 0 0; }

/* the aircraft */
.gBoard {
  min-width: 900px; display: grid; gap: 3px; padding: 8px 18px 8px 8px;
  grid-template-columns: repeat(18, minmax(0, 1fr)); grid-template-rows: 58px 62px 58px auto;
  background: var(--surface-2); border: 2px solid var(--seat); border-radius: 70px 18px 18px 70px;
}
.gSeat, .gAisle {
  font: inherit; color: var(--ink); cursor: pointer; border: 1px solid transparent; border-radius: 6px; padding: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; overflow: hidden;
}
.gSeat { background: color-mix(in srgb, var(--seat) 18%, transparent); }
.gSeat.business { background: color-mix(in srgb, var(--seat) 34%, transparent); }
.gSeat .seatId { font-size: 0.62rem; color: var(--ink-soft); white-space: nowrap; }
.gSeat .shelf { font-size: 0.7rem; line-height: 1; }
.gAisle { background: transparent; flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px; position: relative; }
.gAisle .posNo { position: absolute; top: 1px; left: 3px; font-size: 0.6rem; color: var(--ink-soft); }
.gAisle.mine { background: color-mix(in srgb, var(--amber) 12%, transparent); }
.gSeat.sel, .gAisle.sel { border-color: var(--amber); }
.gSeat.selCall { box-shadow: inset 0 0 0 2px var(--amber); }
.gZone { grid-row: 4; font-size: 0.7rem; color: var(--ink-soft); text-align: center; display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; align-items: center; }
.ztok { font-size: 0.68rem; padding: 0 0.35rem; border-radius: 999px; }
.ztok.bad { background: color-mix(in srgb, var(--red) 25%, transparent); color: var(--ink); }
.ztok.good { background: color-mix(in srgb, var(--green) 25%, transparent); color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 2px; font-size: 0.95rem; padding: 0 0.25rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); line-height: 1.3; }
.badge small { font-size: 0.65rem; color: var(--ink-soft); }
.badge.urgent { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 25%, var(--surface)); }
.badge.crit { border-color: var(--red); }
.badge.locked { opacity: 0.6; }
.token { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #11161c; font: 700 0.72rem var(--body); box-shadow: 0 0 0 2px var(--surface); }
.token.active { box-shadow: 0 0 0 3px var(--amber); }
.trolley { font-size: 1rem; line-height: 1; }
.trolley small { font-size: 0.6rem; font-weight: 700; }
.garb { font-size: 0.75rem; }

/* below the aircraft */
.gMain { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 960px) { .gMain { grid-template-columns: minmax(0, 1fr); } }
.gSide { display: grid; gap: 1rem; min-width: 0; }
.gPos .row, .gPhase .row, .gPult .row { display: flex; gap: 0.4rem; align-items: center; margin: 0.4rem 0; }
.row.wrap { flex-wrap: wrap; }
.btn.small { font-size: 0.85rem; padding: 0.35rem 0.65rem; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.btn.small.primary { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.btn.small.danger { color: var(--red); border-color: var(--red); background: transparent; }
.btn.small:disabled { opacity: 0.5; }
.seatBox { border-top: 1px solid var(--line); padding-top: 0.6rem; margin-top: 0.6rem; }
.seatHead { font: 700 0.95rem var(--sign); font-stretch: condensed; color: var(--ink-soft); margin-bottom: 0.3rem; }
.call { background: var(--surface-2); border-radius: 10px; padding: 0.6rem 0.75rem; margin: 0.3rem 0; }
.call p { margin: 0.35rem 0; }
.callHead { font: 600 0.95rem var(--body); color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; text-align: left; }
.callHead.sel { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.cost { display: flex; gap: 0.3rem; align-items: center; flex-wrap: wrap; }
.shelfRow { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.4rem; }
.itemChip { display: inline-flex; gap: 0.3rem; align-items: center; padding: 0.15rem 0.45rem; border-radius: 999px; background: var(--surface-2); font-size: 0.85rem; }
.gCrew { list-style: none; margin: 0; padding: 0; }
.gCrew li { display: flex; gap: 0.5rem; align-items: center; padding: 0.35rem 0.3rem; border-radius: 8px; }
.gCrew li.active { background: color-mix(in srgb, var(--amber) 14%, transparent); }
.gCrew .you { color: var(--amber); font-size: 0.8rem; }
.gLog { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; font-size: 0.85rem; }
.gLog li { padding: 0.12rem 0; }
.gLog li.gm { color: var(--amber); }

/* my hand */
.gHand { position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.18); }
.handHead { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.handHead h2 { margin: 0; }
.hcards { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.6rem 0.1rem; }
.hcard {
  flex: none; width: 170px; min-height: 120px; cursor: pointer; border-radius: 10px; padding: 0.5rem 0.6rem;
  background: var(--surface-2); border: 2px solid var(--line); display: flex; flex-direction: column; gap: 0.25rem;
}
.hcard.sel { border-color: var(--amber); transform: translateY(-4px); }
.hcard.garbage { cursor: default; opacity: 0.6; border-style: dashed; }
.hsuit { font-size: 1.3rem; line-height: 1; }
.hname { font: 700 0.95rem var(--sign); font-stretch: condensed; }
.htext { font-size: 0.78rem; color: var(--ink-soft); }
.hfx { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; }
.hfx select { font-size: 0.78rem; padding: 0.2rem; }
.handFoot { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.88rem; }
.goals { margin: 0; padding-left: 1rem; }

/* phases */
.gPhase { border-color: var(--amber); }
.goalCard { background: var(--surface-2); border-radius: 10px; padding: 0.6rem 0.8rem; max-width: 360px; }
.claimRow { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.winner { font: 700 1.3rem var(--sign); font-stretch: condensed; color: var(--green); }
.report { white-space: pre-wrap; font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); padding: 0.75rem; border-radius: 10px; overflow-x: auto; }
.reports .reportItem { border-bottom: 1px solid var(--line); padding: 0.35rem 0; font-size: 0.88rem; }
.reports summary { cursor: pointer; }
.gPult summary { cursor: pointer; font: 700 1.1rem var(--sign); font-stretch: condensed; }

.toast {
  position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  background: var(--navy); color: var(--navy-ink); padding: 0.6rem 1rem; border-radius: 10px; max-width: min(92vw, 520px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.toast.error { background: var(--red); color: #fff; }
.event .orig summary { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.simNote { background: color-mix(in srgb, var(--amber) 12%, transparent); border-radius: 8px; padding: 0.4rem 0.55rem; font-size: 0.88rem; }

/* ================= playtest notes and the help page ================= */
.noteBtn {
  font: 600 0.9rem var(--body); cursor: pointer; white-space: nowrap;
  background: var(--amber); color: var(--amber-ink); border: 0; border-radius: var(--radius-ctl); padding: 0.35rem 0.75rem;
}
.psu .count { display: inline-block; min-width: 1.3rem; padding: 0 0.3rem; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: 0.75rem; font-weight: 700; text-align: center; }
@media (max-width: 720px) {
  .psu { flex-wrap: wrap; row-gap: 0.4rem; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
}
.noteDialog {
  border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 1.1rem 1.2rem; width: min(560px, 94vw);
  background: var(--surface); color: var(--ink);
}
.noteDialog::backdrop { background: rgba(10, 18, 28, 0.55); }
.noteDialog textarea, .noteDialog select {
  font: inherit; color: var(--ink); background: var(--surface-2); width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius-ctl); padding: 0.55rem 0.7rem;
}
.noteDialog .row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.notesBar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0.5rem 0; }
.check { display: inline-flex; gap: 0.35rem; align-items: center; margin: 0; font-weight: 400; cursor: pointer; }
.check input { width: auto; }
.notesList { list-style: none; margin: 0; padding: 0; }
.note { border-top: 1px solid var(--line); padding: 0.7rem 0; }
.note.done { opacity: 0.6; }
.noteHead { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.noteHead .check { margin-left: auto; font-size: 0.88rem; }
.noteText { margin: 0.35rem 0 0.2rem; white-space: pre-wrap; }
.tag.kind-bug { background: color-mix(in srgb, var(--red) 25%, transparent); color: var(--ink); }
.tag.kind-balance { background: color-mix(in srgb, var(--amber) 25%, transparent); color: var(--ink); }
.help { max-width: 820px; margin: 0 auto; }
.help h2 { margin-top: 1.4rem; }
.help ul { padding-left: 1.2rem; }
.help li { margin: 0.3rem 0; }
.help code { font-size: 0.9em; background: var(--surface-2); padding: 0 0.3rem; border-radius: 4px; }
.crewRow { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.members li { flex-wrap: wrap; }
.botCtl { display: flex; gap: 0.35rem; width: 100%; padding-left: 1rem; margin-top: 0.25rem; }
.botCtl select { font-size: 0.82rem; padding: 0.2rem 0.3rem; width: auto; flex: 1; }
