:root {
  --bg: #f4f6f3;
  --card: #ffffff;
  --ink: #15201a;
  --muted: #66736b;
  --line: #dfe5df;
  --brand: #0f7a4a;
  --brand-ink: #ffffff;
  --brand-soft: #e3f3ea;
  --danger: #c4372b;
  --warn-bg: #fff4d6;
  --warn-ink: #7a5300;
  --pitch: #1f8a52;
  --pitch-line: rgba(255, 255, 255, .45);
  --gGK: #e0a100;
  --gD: #2d6cdf;
  --gM: #17a35c;
  --gA: #d9453b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .04);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1411; --card: #18201b; --ink: #e8efe9; --muted: #93a198; --line: #2a352e;
    --brand: #2bb673; --brand-ink: #06140c; --brand-soft: #173325; --warn-bg: #3a2f10; --warn-ink: #ffd88a;
    --pitch: #176b41; --shadow: none; color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h3 { font-size: 1.02rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .4rem; }
h3 small { font-weight: 400; }
h4 { margin: .8rem 0 .3rem; font-size: .95rem; }
code { background: var(--brand-soft); padding: 0 .3em; border-radius: 4px; }
svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#app { min-height: 100vh; padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
#app.is-live { padding-bottom: 24px; }
main { max-width: 680px; margin: 0 auto; padding: 12px 16px 24px; }

header.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header.top h1 { font-size: 1.2rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; }
.icon:active { background: var(--line); }

nav.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex;
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
nav.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: .72rem; color: var(--muted); }
nav.tabs a.on { color: var(--brand); font-weight: 600; }

.card { background: var(--card); border-radius: var(--radius); padding: 14px; margin: 12px 0; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero { text-align: center; padding: 28px 12px 8px; }
.hero h2 { font-size: 1.4rem; margin-bottom: .4rem; }
.hero p { color: var(--muted); margin: 0 0 1rem; }
.sect { margin: 18px 0 8px; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; justify-content: center; }
.warn { background: var(--warn-bg); color: var(--warn-ink); padding: 8px 12px; border-radius: 10px; }
.ok { color: var(--brand); font-weight: 600; }
.danger { color: var(--danger) !important; }

.row { display: flex; align-items: center; gap: 8px; }
.row.end { justify-content: flex-end; margin-top: 8px; }
.row.between { justify-content: space-between; }
.row.gap { gap: 8px; margin-top: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.grid2 > * { min-width: 0; }
/* iPhone date/time pickers have their own minimum width and height; make them match other fields */
input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; line-height: 1.4; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }

label { display: block; font-size: .82rem; color: var(--muted); margin: 10px 0 4px; }
label > input, label > select { margin-top: 4px; color: var(--ink); }
html, body { max-width: 100%; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); min-height: 44px;
  font-size: 16px; /* under 16px makes iPhone zoom in on focus and stay zoomed */
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: .95rem; }
label.check input { width: 20px; min-height: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 34px; padding: 0 10px; font-size: .85rem; }
.btn.block { display: flex; width: 100%; margin: 12px 0; }
.btn.big { min-height: 56px; font-size: 1.1rem; }
.btn.round { width: 52px; height: 52px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: .5; }
.link { background: none; border: 0; color: var(--brand); padding: 8px; cursor: pointer; font-weight: 600; }

.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 8px 6px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--muted); cursor: pointer; min-height: 38px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.seg.small button { padding: 5px 6px; font-size: .78rem; min-height: 32px; }

.chip { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--bg); border: 1px solid var(--line); color: var(--muted); text-transform: capitalize; }
.chip.g-GK { background: var(--gGK); color: #fff; border-color: transparent; }
.chip.g-D { background: var(--gD); color: #fff; border-color: transparent; }
.chip.g-M { background: var(--gM); color: #fff; border-color: transparent; }
.chip.g-A { background: var(--gA); color: #fff; border-color: transparent; }
.chip.live { background: var(--danger); color: #fff; border-color: transparent; animation: pulse 1.4s infinite; }
.chip.m-competitive { color: var(--gA); }
.chip.m-balanced { color: var(--gD); }
.chip.m-development { color: var(--gM); }

.list { display: flex; flex-direction: column; gap: 6px; }
.list.dim { opacity: .6; }
.prow, .gamerow, .brow, .hrow {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; min-height: 56px; width: 100%; text-align: left; cursor: pointer;
}
.pmain { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmain b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmain .sub { display: flex; gap: 6px; align-items: center; }
.pside { text-align: right; font-size: .9rem; white-space: nowrap; }
.pside small { color: var(--muted); display: block; }
.badge { display: inline-grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.num { display: inline-block; min-width: 1.6em; color: var(--muted); font-weight: 700; margin-right: 4px; }
.gdate { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.gdate small { color: var(--muted); font-size: .75rem; }

.stars { display: inline-flex; gap: 2px; }
.stars i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.stars i.f { background: var(--brand); }
.stars i.h { background: linear-gradient(90deg, var(--brand) 50%, var(--line) 50%); }

.rate { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.rate:first-of-type { border-top: 0; }
.rate small { display: block; color: var(--muted); font-size: .78rem; }
.dots { display: flex; gap: 4px; }
.dots button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; color: var(--muted); cursor: pointer; }
.dots button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.fits { display: flex; flex-direction: column; gap: 8px; }
.fit { display: grid; grid-template-columns: 40px 1fr 32px; gap: 8px; align-items: center; }
.meter { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.pref { display: grid; grid-template-columns: 80px 1fr; gap: 8px; align-items: center; padding: 4px 0; font-size: .9rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stats div { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.stats b { display: block; font-size: 1.2rem; }
.stats small { color: var(--muted); font-size: .75rem; }
.stats.big b { font-size: 1.5rem; }
.stats.big { margin-top: 12px; }

.gbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--bg); min-width: 80px; }
.gbar span { display: block; }
.gbar .g-GK { background: var(--gGK); } .gbar .g-D { background: var(--gD); } .gbar .g-M { background: var(--gM); } .gbar .g-A { background: var(--gA); }
.legend { display: flex; gap: 12px; font-size: .75rem; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.legend .g-GK::before { background: var(--gGK); } .legend .g-D::before { background: var(--gD); } .legend .g-M::before { background: var(--gM); } .legend .g-A::before { background: var(--gA); }

.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl td, .tbl th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.tbl .r { text-align: right; width: 40px; }
.tbl .wide { width: 55%; }
.scroll { overflow-x: auto; }

.notes { list-style: none; padding: 0; margin: 10px 0 0; }
.notes li { padding: 6px 0; border-top: 1px solid var(--line); }
.notes small { color: var(--muted); margin-right: 6px; }
ul.plain { list-style: none; padding: 0; margin: 4px 0; }
ul.plain li { padding: 4px 0; }

/* Game setup */
.availlist { display: flex; flex-direction: column; gap: 4px; }
.avail { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.avail .pmain { cursor: pointer; }
.avail.outp .pmain { opacity: .45; text-decoration: line-through; }
.tick { width: 34px; height: 34px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); font-weight: 900; color: var(--brand-ink); cursor: pointer; }
.avail.in .tick { background: var(--brand); border-color: var(--brand); }
.mini { border: 1px solid var(--line); background: transparent; border-radius: 8px; font-size: .72rem; padding: 4px 8px; color: var(--muted); cursor: pointer; }
.mini.on { background: var(--gGK); color: #fff; border-color: var(--gGK); }
.custom { background: var(--bg); padding: 8px 10px; border-radius: 10px; margin-top: 8px; }
.custom label { margin: 0; }

.halfhd { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; }
.segcard { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.segt { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); }
.chg { padding: 2px 0; }
.chg.on { color: var(--gM); } .chg.off { color: var(--danger); } .chg.mv { color: var(--gD); }
.chg small, .ll small { color: var(--muted); font-size: .75rem; }
.ll { padding: 2px 0; }

.ai h3 svg { color: var(--brand); }
.aiout { background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-top: 10px; font-size: .92rem; }
.aiout ul { margin: 4px 0; padding-left: 20px; }

/* Pitch */
.pitch {
  position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; margin: 0 auto;
  background: repeating-linear-gradient(180deg, var(--pitch) 0 10%, color-mix(in srgb, var(--pitch) 88%, #000) 10% 20%);
  border-radius: 16px; overflow: hidden;
}
.pitch-lines i { position: absolute; border: 2px solid var(--pitch-line); }
.pitch-lines .half { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch-lines .circle { left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-lines .box { left: 28%; right: 28%; height: 11%; }
.pitch-lines .box.top { top: -2px; border-top: 0; }
.pitch-lines .box.bot { bottom: -2px; border-bottom: 0; }
.spot {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  border: 0; background: none; color: #fff; padding: 0; cursor: pointer; width: 76px;
}
.spot .dot {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: #fff; color: #123; border: 3px solid var(--gM); box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.spot.g-GK .dot { border-color: var(--gGK); } .spot.g-D .dot { border-color: var(--gD); } .spot.g-A .dot { border-color: var(--gA); }
.spot .lbl { font-size: .78rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); white-space: nowrap; margin-top: 2px; }
.spot .pos { font-size: .62rem; opacity: .85; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.spot.sel .dot { background: #ffd23f; transform: scale(1.12); }
.spot.open .dot { background: rgba(255, 255, 255, .3); color: #fff; border-style: dashed; }
.spot.extra .dot { border-style: dotted; }

/* Live */
.live { padding-top: 8px; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.scoreboard.final { grid-template-columns: 1fr auto 1fr; text-align: center; margin-top: 12px; }
.scoreboard.final b { font-size: 2rem; }
.scoreboard .side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.scoreboard .side b { font-size: 2rem; font-variant-numeric: tabular-nums; }
.sbtn { width: 44px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.sbtn.minus { height: 28px; font-size: 1rem; color: var(--muted); }
.clock { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.clock #clk { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.clock small { color: var(--muted); }
.clock.over #clk { color: var(--danger); }
.subcard { border: 2px solid var(--line); }
.subcard.due { border-color: var(--danger); animation: pulse 1s infinite; }
.cd { font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; color: var(--brand); }
.subcard.due .cd { color: var(--danger); }
.banner { padding: 10px 12px; border-radius: 12px; margin: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.banner.ok { background: var(--brand-soft); color: var(--brand); }
.banner.bad { background: var(--warn-bg); color: var(--warn-ink); }
.banner.info { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.selbar { position: sticky; top: 4px; z-index: 5; background: var(--ink); color: var(--bg); padding: 10px 12px; border-radius: 12px; margin: 8px 0; }
.selbar .muted { color: inherit; opacity: .75; display: block; }
.selbar .btn { color: var(--ink); }
.brow.sel { outline: 3px solid #ffd23f; }
.brow.out { opacity: .7; cursor: default; }
.fieldmins { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8rem; color: var(--muted); margin: 8px 2px; }
.fieldmins b { color: var(--ink); }
.foot { margin-top: 16px; }
.foot .btn { flex: 1; }
.events { list-style: none; padding: 0; margin: 0; }
.events li { padding: 6px 0; border-top: 1px solid var(--line); }

.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--card); border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); max-width: 680px; margin: 0 auto; }

/* History */
.hrow { display: grid; grid-template-columns: 1fr 52px; grid-template-areas: "name nums" "bar bar"; gap: 6px 10px; }
.hname { grid-area: name; display: flex; flex-direction: column; }
.hnums { grid-area: nums; text-align: right; }
.hnums small { display: block; color: var(--muted); font-size: .7rem; }
.hnums b.low { color: var(--danger); }
.hbar { grid-area: bar; display: flex; flex-direction: column; gap: 3px; }
.hbar small { font-size: .72rem; }

.syncstate::before { content: "●"; margin-right: 6px; }
.s-idle::before { color: var(--brand); } .s-syncing::before { color: var(--gGK); } .s-error::before { color: var(--danger); } .s-offline::before, .s-off::before { color: var(--muted); }

#toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes pulse { 50% { opacity: .7; } }
@media (min-width: 700px) { .pitch { max-width: 460px; } }

/* ---- v2: simpler layout ---- */
label.btn { display: inline-flex; margin: 0; font-size: 1rem; color: var(--ink); }
label.btn.primary { color: var(--brand-ink); }
.hero label.btn { margin-top: 4px; }

/* Home: next game card */
.nextup { background: var(--brand); color: var(--brand-ink); border-radius: 18px; padding: 16px; margin: 12px 0; }
.nextup.is-live { background: var(--danger); color: #fff; }
.nextup small { font-weight: 700; letter-spacing: .05em; opacity: .85; font-size: .75rem; }
.nextup h2 { font-size: 1.5rem; margin: 4px 0 2px; }
.nextup p { margin: 0 0 12px; opacity: .9; }
.nextup .btn { background: rgba(255, 255, 255, .18); color: inherit; border-color: rgba(255, 255, 255, .35); }
.nextup .btn.big { background: #fff; color: var(--brand); border-color: #fff; }
.nextup.is-live .btn.big { color: var(--danger); }

/* Folding sections */
.fold { padding: 0; }
.foldhd { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 0; background: none; text-align: left; cursor: pointer; min-height: 52px; }
.foldhd b { font-size: 1.02rem; }
.foldhd small { flex: 1; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); font-weight: 800; color: var(--muted); }
.foldbody { padding: 0 14px 14px; }
.count { font-size: 1.1rem; color: var(--brand); }
h3 .grow { flex: 1; }
.ovr { font-size: 1.1rem; color: var(--brand); }

/* Bottom dock with the main action */
main.has-dock { padding-bottom: 96px; }
.dock {
  position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 15;
  display: flex; padding: 10px 16px; background: linear-gradient(transparent, var(--bg) 30%);
}
.dock .btn { max-width: 648px; margin: 0 auto; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }

/* Ratings */
.area { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 12px 0 2px; font-weight: 700; }
.rate b { font-weight: 600; font-size: .95rem; }
.dots button { width: 42px; height: 40px; }

/* Live: compact bench grid */
.bench { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bchip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px; min-height: 58px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-align: left; cursor: pointer;
}
.bchip b { font-size: .95rem; }
.bchip small { font-size: .72rem; }
.bchip.sel { outline: 3px solid #ffd23f; }
.live .pitch { max-height: 42vh; aspect-ratio: 4 / 5; margin-top: 10px; }
.live .scoreboard { padding: 6px 10px; }
.live .clock #clk { font-size: 2.3rem; }
.live .subcard, .live .selbar { margin: 8px 0; }
.selbar { position: static; }

/* Wider screens (iPad / laptop): side-by-side */
@media (min-width: 820px) {
  main { max-width: 1040px; }
  .live .livegrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .live .pitch { max-height: 70vh; }
  .bench { grid-template-columns: 1fr 1fr 1fr; }
  .dock .btn { max-width: 1008px; }
}
/* Phone in landscape: keep the pitch from eating the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .live .livegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .live .pitch { max-height: 80vh; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.rhythm { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 8px 10px; font-size: .88rem; font-weight: 600; margin: 8px 0; }
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stats.four b { font-size: 1.25rem; }
.events li { display: flex; align-items: center; gap: 8px; }
.events li .grow { flex: 1; }
.addev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 80px; gap: 8px; align-items: end; }
.addgoal { margin-top: 10px; }
.addgoal summary { cursor: pointer; list-style: none; padding: 8px 0; }
.addgoal summary::-webkit-details-marker { display: none; }
.chip.plain-case { text-transform: none; }
.whenwhere { margin: 12px 2px 0; font-weight: 600; color: var(--muted); }
.gamerow .sub small { color: var(--muted); }
/* Drag and drop */
[data-drag] { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; opacity: .9; }
.drag-ghost.spot .dot { transform: scale(1.15); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.dragging { opacity: .35; }
.drop-over .dot, .bchip.drop-over, .bench .bchip.drop-over { outline: 3px solid #ffd23f; outline-offset: 2px; }
.startbench { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.startbench .bchip { min-height: 44px; flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; }
.lockhint { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
