/* maza — styles.
 *
 * The LAYOUT is the Frogs app's style.css and the FTC scoring page (Layout C),
 * in colour scheme F, Atlantic turquoise (Jess, 2026-09-25).
 * The SCORECARD colours are the FTC's, exactly, and must stay so:
 *   eagle #F59E0B · birdie #DC2626 · par outline · bogey #1a1a1a ·
 *   double+ #2563EB · pickup #f9a8d4 · stroke dots #EF9F27 / #d97706.
 * The variable names are the Frogs app's (--green …) so its CSS ports as-is;
 * in maza they hold the turquoise values. */
:root {
    --nav: #0A6170;
    --green: #0B7482;          /* buttons, table headings, titles */
    --green-mid: #5FA7AE;
    --green-pale: #D6EFF0;
    --gold: #E2C9A0;           /* sand accent */
    --dark: #07434D;           /* scoring header, active tab, pad selection */
    --darker: #05323A;
    --tint: #EAF6F6;
    --bg: #FBF7F2;
    --card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --red: #c0392b;
    --red-pale: #fce4e4;
    --radius: 8px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--green); }

.staging-banner { background: #b91c1c; color: #fff; text-align: center; font-weight: 700;
                  font-size: .8rem; padding: 4px; letter-spacing: .04em; }
.navbar { background: var(--nav); color: #fff; display: flex; align-items: center; flex-wrap: wrap;
          padding: 0 1rem; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.nav-brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none;
             font-weight: 700; font-size: 1.2rem; padding: .5rem 0; }
.nav-brand img { width: 38px; height: 38px; background: #FBF7F2; border-radius: 50%; padding: 3px; }
.nav-menu { display: flex; margin-left: auto; flex-wrap: wrap; }
.nav-menu a { color: rgba(255,255,255,.85); text-decoration: none; padding: .75rem .55rem;
              font-size: .88rem; border-bottom: 2px solid transparent; }
.nav-menu a.active { color: #fff; border-bottom-color: var(--gold); }

.container { max-width: 1000px; margin: 0 auto; padding: 1rem .75rem 2rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08);
        padding: 1.1rem; margin-bottom: 1rem; }
.card h2 { font-size: 1.15rem; margin-bottom: .75rem; color: var(--green); }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;
               flex-wrap: wrap; gap: .5rem; }
.page-header h1 { font-size: 1.35rem; color: var(--green); }
.foot { text-align: center; padding: 1.2rem; color: var(--text-muted); font-size: .72rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: var(--green); color: #fff; padding: .5rem .5rem; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: .45rem .5rem; border-bottom: 1px solid var(--border); }
.text-center { text-align: center; } .text-right { text-align: right; } .nowrap { white-space: nowrap; }
.pos-1 { background: #fff8dc; font-weight: 700; } .pos-2 { background: #f5f5f5; font-weight: 600; }
.pos-3 { background: #fdf0e6; font-weight: 600; }
tr.waiting { opacity: .72; }
.money { font-weight: 700; color: var(--dark); white-space: nowrap; }
.muted { color: var(--text-muted); font-size: .82rem; }
.pts { font-weight: 800; }

.form-group { margin-bottom: .8rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: .25rem; font-size: .86rem; }
input:not([type=checkbox]):not([type=radio]), select { width: 100%; padding: .5rem .65rem; border: 1px solid var(--border);
       border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: #fff; }
input:focus, select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 2px var(--green-pale); }
input.narrow { width: 4.5rem !important; text-align: center; }
.form-row { display: flex; gap: .6rem; flex-wrap: wrap; } .form-row .form-group { flex: 1; min-width: 120px; }

.btn { display: inline-block; padding: .55rem 1.1rem; border: none; border-radius: var(--radius); font-size: .92rem;
       font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--green); color: #fff; }
.btn-secondary { background: #6b7280; color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.btn-block { display: block; width: 100%; padding: .75rem; }
.btn[disabled] { background: #d1d5db; color: #6b7280; cursor: not-allowed; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }

.alert { padding: .65rem .9rem; border-radius: var(--radius); margin-bottom: .8rem; font-size: .9rem; }
.alert-success { background: var(--green-pale); color: var(--dark); border: 1px solid var(--green-mid); }
.alert-error { background: var(--red-pale); color: var(--red); border: 1px solid var(--red); }
.alert-warn { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.badge { display: inline-block; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.b-ok { background: var(--green-pale); color: var(--dark); } .b-amber { background: #fef3c7; color: #92400e; }
.b-grey { background: #f3f4f6; color: var(--text-muted); } .b-red { background: #fee2e2; color: #991b1b; }
.prov { display: inline-block; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 999px;
        background: #fef3c7; color: #92400e; margin-left: 5px; vertical-align: 1px; }
.ret { display: inline-block; font-size: .66rem; font-weight: 700; padding: 1px 6px; border-radius: 999px;
       background: #fee2e2; color: #991b1b; margin-left: 5px; }

.round-btns { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.lb-seg { display: flex; gap: 6px; margin-bottom: .8rem; }
.lb-seg a { padding: 7px 18px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff;
            font-size: .9rem; font-weight: 600; color: #4a5a56; text-decoration: none; }
.lb-seg a.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1rem; }
.stat { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: .7rem;
        border-left: 4px solid var(--green); }
.stat b { display: block; font-size: 1.4rem; color: var(--green); }
.sec-label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--text-muted); margin: .8rem 0 .3rem; }

/* ── The scorecard grid — FTC colours ─────────────────────────────────── */
.sc-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.sc-tbl th { background: var(--dark); color: rgba(255,255,255,.85); font-size: 11px; font-weight: 500;
             padding: 5px 2px; text-align: center; }
.sc-tbl th.nm { text-align: left; padding-left: 8px; color: rgba(255,255,255,.7); font-weight: 400; }
.sc-tbl th.cur { background: #d97706; color: #1a1a1a; font-weight: 700; }
.sc-tbl th.sub { background: var(--darker); color: #fff; font-weight: 700; padding-right: 8px; }
.sc-tbl td { border: none; padding: 2px 1px; text-align: center; }
.sc-tbl td.sub { background: var(--tint); color: var(--dark); font-weight: 700; padding-right: 8px; text-align: right; }
.sc-tbl td.nm { text-align: left; font-size: 12px; white-space: nowrap; padding: 4px 6px 4px 8px; }
.sc-tbl td.parc { font-size: 11px; color: #888; background: #f9f9f9; }
.sc-tbl td.act { background: #F6EFE3; }
.sc { width: 22px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 600; margin: 0 auto; }
.s-par { border: 1px solid #ccc; } .s-bir { background: #DC2626; color: #fff; } .s-bog { background: #1a1a1a; color: #fff; }
.s-dbl { background: #2563EB; color: #fff; } .s-eag { background: #F59E0B; color: #1a1a1a; }
.s-pu { background: #f9a8d4; color: #9d174d; } .s-nil { color: #ccc; }
.dotrow { min-height: 6px; display: flex; gap: 1px; justify-content: center; }
.gd { width: 4px; height: 4px; border-radius: 50%; background: #d97706; display: inline-block; margin: 0 1px; }
.gd.neg { background: transparent; border: 1px solid #d97706; width: 5px; height: 5px; }

/* ── The scoring page — FTC Layout C ───────────────────────────────────── */
body.scoring { background: #f0f2f5; }
.ls-wrap { font-family: system-ui, -apple-system, sans-serif; max-width: 480px; margin: 0 auto; min-height: 100vh; }
.ls-hdr { background: var(--dark); color: #fff; padding: 12px 16px 10px; position: sticky; top: 0; z-index: 10; }
.ls-hdr-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ls-hdr-top > div:first-child { min-width: 0; }
.ls-title { font-size: 15px; font-weight: 600; white-space: nowrap; } .ls-sub { font-size: 11px; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-save { font-size: 11px; opacity: .85; text-align: right; max-width: 48%; line-height: 1.25; }
.ls-save.warn { color: #FCD34D; opacity: 1; font-weight: 600; }
.ls-dots { display: flex; gap: 3px; justify-content: center; }
.ls-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.ls-dot.done { background: rgba(255,255,255,.7); } .ls-dot.cur { background: #EF9F27; width: 10px; height: 10px; }
.turn-gap { width: 9px; }
.ls-card { background: #fff; border-radius: 14px; margin: 12px; padding: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.07); }
.ls-hinfo { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px;
            border-bottom: 1px solid #f2f2f2; margin-bottom: 6px; }
.ls-hname { font-size: 22px; font-weight: 700; color: var(--dark); } .ls-hmeta { font-size: 13px; color: #888; }
.ls-prize { font-size: 12px; font-weight: 700; background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D;
            padding: 2px 9px; border-radius: 999px; vertical-align: 4px; margin-left: 8px; }
.ls-prow { padding: 10px 0; border-bottom: 1px solid #f4f4f4; display: flex; align-items: center; gap: 8px; }
.ls-prow:last-child { border-bottom: none; }
.ls-pname { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
            background: none; border: none; font-family: inherit; text-align: left; cursor: pointer; padding: 0; color: inherit; }
.ls-pname .u { text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: #b9c6c1; }
.ls-str { font-size: 13px; font-weight: 600; color: #d97706; display: inline-flex; align-items: center; gap: 2px; }
.ls-sdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #EF9F27; }
.ls-run { text-align: right; margin-right: 8px; min-width: 46px; font-size: 13px; font-weight: 600; color: var(--dark); }
.ls-box { width: 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
          font-size: 26px; font-weight: 700; flex-shrink: 0; border: 2px dashed #ccc; color: #bbb; background: transparent;
          font-family: inherit; cursor: pointer; }
.ls-nav { position: sticky; bottom: 0; background: #fff; border-top: 1px solid #ebebeb; padding: 10px 12px; display: flex; gap: 10px; }
.ls-nbtn { flex: 1; padding: 13px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1.5px solid #e0e0e0;
           background: #fff; color: #333; font-family: inherit; cursor: pointer; }
.ls-nbtn-p { background: var(--dark); color: #fff; border-color: var(--dark); }
.ls-nbtn:disabled { opacity: .3; }
.turnbar { margin: 0 12px 12px; background: var(--darker); color: #fff; border-radius: 10px; padding: 9px 12px;
           font-size: 12px; display: flex; justify-content: space-between; cursor: pointer; }
.sheet { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 9999; align-items: flex-end; justify-content: center; }
.sheet.on { display: flex; }
.sheet-box { background: #fff; border-radius: 16px 16px 0 0; padding: 14px; width: 100%; max-width: 480px; }
@media (min-width: 521px) { .sheet { align-items: center; } .sheet-box { border-radius: 16px; } }
.pad-who { font-size: 18px; font-weight: 600; text-align: center; margin-bottom: 12px; }
.pad-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pad-grid button { padding: 14px 0; border-radius: 8px; font-size: 18px; font-weight: 600; border: 1.5px solid #e0e0e0;
                   background: #f4f4f4; color: #1a1a1a; font-family: inherit; cursor: pointer; }
.pad-grid button.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.pad-grid button.x { color: #9d174d; } .pad-grid button.x.on { background: #f9a8d4; color: #9d174d; border-color: #f472b6; }
.pad-clear { display: block; width: 100%; padding: 9px; border: none; background: none; font-size: 13px; color: #b91c1c; cursor: pointer; }
.pad-cancel { display: block; width: 100%; padding: 11px; border-radius: 10px; border: 1px solid #e0e0e0; background: #fff;
              font-size: 14px; color: #888; cursor: pointer; font-family: inherit; }
.cardcheck { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-top: 10px; border: 1px solid #E0B872;
             background: #FAEEDA; border-radius: 9px; font-size: 13.5px; color: #633806; line-height: 1.45; }
.cardcheck input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.gapbtn { display: block; width: 100%; text-align: left; padding: 11px 12px; margin-bottom: 6px; border: 1px solid #fcd34d;
          background: #fffbeb; border-radius: 9px; font-size: 13.5px; color: #78350f; font-weight: 600; cursor: pointer; }

@media (max-width: 600px) {
    th, td { padding-left: .35rem; padding-right: .35rem; }
    .hide-sm { display: none; }
}

/* Organiser · course card editor (Frogs course_18_edit layout): 9 holes a row */
.course-edit td, .course-edit th { padding: .3rem .2rem; }
table.course-edit input[type=text] { width: 3.3rem; padding: .35rem .2rem; text-align: center; }

/* ── The player's dashboard (mockup B, 2026-09-29) ─────────────────────── */
.me-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .5rem; }
.me-head h2 { margin: 0; }
.me-head a { font-size: .78rem; white-space: nowrap; }
.stand { display: flex; gap: .8rem; align-items: center; }
.stand .big { font-size: 2.3rem; font-weight: 800; color: var(--dark); line-height: 1; min-width: 3.6rem; text-align: center; }
.stand .big small { display: block; font-size: .7rem; font-weight: 600; color: var(--text-muted); letter-spacing: .03em; margin-top: .2rem; }
.stand ul { list-style: none; font-size: .88rem; }
.stand li b { color: var(--dark); }
.mv-up { color: #15803d; font-weight: 700; font-size: .78rem; } .mv-dn { color: var(--red); font-weight: 700; font-size: .78rem; }
.mv-eq { color: var(--text-muted); font-size: .78rem; }
.legend-note { font-size: .74rem; color: var(--text-muted); margin-top: .3rem; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; margin: .2rem 0 .7rem; }
.mini { background: var(--tint); border-radius: 6px; padding: .4rem .2rem; text-align: center; font-size: .72rem; color: var(--text-muted); }
.mini b { display: block; font-size: 1.15rem; color: var(--dark); }
.mini.bird b { color: #DC2626; }
.bars { font-size: .82rem; }
.bars .row { display: grid; grid-template-columns: 4.8rem 1fr 2.6rem; gap: .4rem; align-items: center; margin: .25rem 0; }
.bars .track { background: #eef2f2; border-radius: 4px; height: 10px; position: relative; }
.bars .fill { background: var(--green-mid); height: 10px; border-radius: 4px; }
.bars .tick { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--dark); opacity: .55; }
.bars .v { text-align: right; font-weight: 700; color: var(--dark); }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; font-size: .85rem; margin-top: .6rem; }
.twocol div { background: var(--tint); border-radius: 6px; padding: .45rem .55rem; }
.twocol b { color: var(--dark); }
.next dl { display: grid; grid-template-columns: 5.4rem 1fr; gap: .25rem .5rem; font-size: .88rem; }
.next dt { color: var(--text-muted); } .next dd b { color: var(--dark); }
tr.me td { background: #FFF4D6 !important; }
tr.me td:nth-child(2) { font-weight: 700; }

/* ── The Score panel on the trip page (0.2.2, mockup score_button_mockups.html) ── */
.sp-go { border: 2px solid var(--green); background: var(--tint); }
.sp-go h2, .sp-quiet h2 { color: var(--dark); font-size: 1.15rem; margin-bottom: .2rem; }
.sp-done { border: 2px solid #047857; background: #ECFDF5; }
.sp-done h2 { color: #047857; font-size: 1.1rem; margin-bottom: .3rem; }
.sp-quiet { border-left: 4px solid var(--green-mid); }
.sp-meta { font-size: .88rem; color: #333; margin-bottom: .6rem; }
.sp-go .btn-block { font-size: 1.05rem; padding: .85rem; }
.sp-go ol { margin: .3rem 0 0 1.1rem; font-size: .86rem; }
.sp-go ol li { margin: .25rem 0; }
.sp-ok, .sp-okc { color: #047857; font-weight: 700; }
.sp-ok { margin-bottom: .5rem; }
.sp-small { font-size: .86rem; }
.sp-warn { background: #FEF3C7; border-radius: 6px; padding: .4rem .6rem; font-size: .84rem; margin-top: .6rem; }
[hidden] { display: none !important; }

/* ── Handicap adjustment preview (0.3.0, mockup handicap_adjustment_mockup.html) ── */
.hc-rates { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; font-size: .82rem; margin: .4rem 0 .6rem; }
.hc-rates label { display: flex; flex-direction: column; margin: 0; }
.hc-rates input:not([type=checkbox]) { width: 4.4rem; padding: .3rem .4rem; text-align: center; }   /* beats the general input rule */
.hc-ss { background: #F1F5F9; border-radius: 6px; padding: .4rem .6rem; font-size: .84rem; margin: .4rem 0 .6rem; }
table.hc { font-size: .86rem; }
.hc-cut { color: #B91C1C; font-weight: 700; }
.hc-gain { color: #047857; font-weight: 700; }

/* ── The flight's card, read-only (2026-11-08, mockup flight_card_readonly_mockup.html) ── */
/* ⚠️ Inside .ls-card the scoring pad's own rules make rows inline boxes; a real
   table needs them undone here (seen in the phone test, 2026-11-08). */
table.sc { display: table; position: static; width: 100%; border-collapse: collapse; font-size: .8rem; text-align: center; }
table.sc tr { display: table-row !important; font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }
table.sc th, table.sc td { display: table-cell !important; position: static !important; padding: .22rem .2rem !important; border: none !important; border-bottom: 1px solid #eee !important; text-align: center !important; }
table.sc th { background: var(--dark, #07434D); color: #fff; font-size: .75rem; }
table.sc .hc { font-weight: 400; font-size: .68rem; opacity: .8; }
table.sc td.hn { font-weight: 700; }
table.sc .pt { display: inline-block; min-width: 1.2rem; background: var(--tint, #E6F4F5); border-radius: 4px; font-weight: 700; }
table.sc tr.sub td { background: #F1F5F9; font-weight: 600; }
table.sc tr.tot td { background: var(--green); color: #fff !important; font-size: .9rem; }
.ro { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font-size: .8rem; color: #6b7280; margin: .3rem 0 .5rem; }
.lock { background: #ECFDF5; color: #047857; border-radius: 4px; padding: .05rem .4rem; font-weight: 700; font-size: .78rem; white-space: nowrap; }

/* ── The trip is over (2026-11-08, mockup trip_over_mockup.html) ── */
.champ { text-align: center; border: 2px solid #B8860B; background: linear-gradient(180deg, #FFF8E1, #FFFDF5); }
.champ .cup { font-size: 2.4rem; line-height: 1; }
.champ .ct { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #8A6D1D; font-weight: 700; margin-top: .3rem; }
.champ .cn { font-size: 1.45rem; font-weight: 800; color: var(--darker); margin: .15rem 0; }
.champ .cs { font-size: .86rem; color: #555; }
.champ .cf { font-size: .78rem; margin-top: .4rem; }
.pod { display: flex; justify-content: center; align-items: flex-end; gap: .4rem; margin: .8rem 0 .3rem; }
.pod div { flex: 1; max-width: 7rem; border-radius: 6px 6px 0 0; color: #fff; padding: .35rem .2rem; font-size: .78rem; font-weight: 700; }
.pod .p1 { background: #B8860B; height: 5.2rem; } .pod .p2 { background: #8C8C8C; height: 4.2rem; } .pod .p3 { background: #A0522D; height: 3.4rem; }
.pod small { display: block; font-weight: 400; opacity: .9; }
.fin { border-left: 4px solid #B8860B; }
.fin h2 { font-size: 1.05rem; }
.fin p { font-size: .9rem; }
.tidbits { list-style: none; margin: 0; padding: 0; }
.tidbits li { display: flex; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid #eee; font-size: .88rem; }
.tidbits li:last-child { border-bottom: none; }
.tidbits .ti { font-size: 1.3rem; width: 1.8rem; text-align: center; }

/* Prize holes on the scoring page and the followed card (0.5.4) */
.prizeline { font-size: 12.5px; background: #FEF3C7; color: #92400E; border: 1px solid #FCD34D; border-radius: 8px; padding: 6px 10px; margin: 0 0 8px; }
.prizeline.ls-pl { margin: 0 12px 8px; }
.pzi { font-size: 10px; line-height: 1; margin-top: 1px; }

/* The trip switcher in the bar (0.6.0) */
.tripsw { position: relative; margin-left: .6rem; }
.tripsw summary { list-style: none; cursor: pointer; background: rgba(255,255,255,.14); color: #fff;
                  border-radius: 6px; padding: .22rem .55rem; font-size: .82rem; white-space: nowrap;
                  max-width: 13rem; overflow: hidden; text-overflow: ellipsis; }
.tripsw summary::-webkit-details-marker { display: none; }
.tripsw[open] summary { background: rgba(255,255,255,.26); }
.tripsw-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 200; min-width: 15rem;
               background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: .3rem 0; }
.tripsw-menu a { display: block; padding: .45rem .8rem; color: var(--text); text-decoration: none; font-size: .88rem; }
.tripsw-menu a:hover { background: var(--tint); }
.tripsw-menu a.on { font-weight: 700; color: var(--green); }
.tripsw-menu a.all { border-top: 1px solid var(--border); color: var(--green); font-size: .82rem; }
/* The organiser's list of trips (0.6.0) */
.trip-row { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.trip-row:last-child { border-bottom: 0; }
.trip-row .tn { font-weight: 700; }
.trip-row .td { font-size: .8rem; color: var(--text-muted); }
.trip-row .go { margin-left: auto; }
.chip { display: inline-block; font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .05rem .5rem; vertical-align: middle; }
.chip.up { background: #DBEAFE; color: #1E40AF; } .chip.live { background: #DCFCE7; color: #166534; } .chip.done { background: #e5e7eb; color: #374151; }

/* The new-trip tabs (0.6.1) */
.nt-steps { display: flex; gap: .3rem; margin: 0 0 .8rem; }
.nt-steps button { flex: 1; border: 0; border-radius: 6px; padding: .45rem .3rem; background: #e5e7eb; color: #374151;
                   font-size: .8rem; font-weight: 600; cursor: pointer; }
.nt-steps button.on { background: var(--green); color: #fff; }
.nt-steps button span { color: #b45309; }
.nt-rounds { margin-top: .3rem; }
.nt-round { display: grid; grid-template-columns: 2.2rem 1fr 6.2rem 2.4rem; gap: .3rem .35rem; align-items: center;
            padding: .45rem 0; border-bottom: 1px solid var(--border); }
.nt-round .n { color: var(--green); grid-row: span 2; }
.nt-round .c { grid-column: 2 / 5; }
.nt-round input, .nt-round select { width: 100%; min-width: 0; }
.nt-round .x { padding: .25rem 0; }
.nt-name { margin-top: .8rem; background: var(--tint); border-radius: 6px; padding: .5rem .7rem; font-size: .88rem; }
.nt-name summary { cursor: pointer; }
.nt-plist { columns: 2 14rem; column-gap: 1.2rem; }
.nt-plist label { display: block; break-inside: avoid; padding: .2rem 0; font-weight: 400; }
.nt-new { color: #166534; font-weight: 700; font-size: .7rem; }

/* Before Round 1 and Delete (0.6.2) */
.nt-todo { list-style: none; margin: 0; padding: 0; }
.nt-todo li { padding: .3rem 0; font-size: .92rem; }
.nt-todo li.ok { color: #166534; }
.nt-todo li.no { color: #92400E; }
.nt-danger { border: 1px solid #fecaca; background: #fef2f2; }
.nt-danger summary { cursor: pointer; color: #991b1b; }
.alert-info { background: var(--tint); color: var(--darker); border: 1px solid var(--green-pale); }

/* A player's figures over all trips, and All-time (0.6.3) */
.ps h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin: .8rem 0 .3rem; }
.ps h3 .muted { text-transform: none; letter-spacing: 0; }
.ps-scope { font-size: .8rem; color: var(--text-muted); margin: -.2rem 0 .2rem; }
.ps-kv { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .9rem; font-size: .9rem; }
.ps-kv div { display: flex; justify-content: space-between; gap: .4rem; border-bottom: 1px dotted var(--border); padding: .15rem 0; }
.ps-kv b { color: var(--darker); text-align: right; }
.ps-note { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.ps-bar { display: flex; align-items: center; gap: .45rem; font-size: .85rem; margin: .15rem 0; }
.ps-bar .y { width: 3rem; } .ps-bar .b { height: .6rem; background: var(--green); border-radius: 3px; display: inline-block; min-width: 2px; }
.ps-hcp { width: 100%; height: 70px; }
.ps-all { font-size: .82rem; }
.ps-all td, .ps-all th { white-space: nowrap; padding-left: .3rem; padding-right: .3rem; }
.ps-all td:first-child { white-space: normal; min-width: 6.5rem; }
.ps-all tr.me td { background: var(--tint); font-weight: 700; }
@media (max-width: 420px) { .ps-kv { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .ps-all th:nth-child(8), .ps-all td:nth-child(8) { display: none; } }
