:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18362d;background:#f5f3ec;font-synthesis:none;--green:#123e32;--muted:#69756d;--line:#dedfd3;--gold:#e9ba5f}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:1px solid transparent;border-radius:9px;padding:11px 17px;font-size:14px;font-weight:650;line-height:1.3;background:var(--green);color:white}button:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:white;color:var(--green);border-color:var(--line)}button.ghost{background:transparent;color:var(--green);padding:8px 10px}button.danger{background:#a33c30}button.small{padding:8px 12px;font-size:13px}a{color:inherit;text-decoration:none}:focus-visible{outline:3px solid #bc8732;outline-offset:3px}.top{background:var(--green);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:23px max(24px,calc((100vw - 1100px)/2));gap:20px}.brand{font-size:17px;letter-spacing:2px;font-weight:800;display:flex;align-items:center;gap:8px}.brand-light{font-weight:400;letter-spacing:1px}.chip{display:grid;place-items:center;border:2px dashed #e9ba5f;border-radius:50%;height:34px;width:34px;color:var(--gold);font-size:22px;margin-right:4px}.top-note{color:#c4d3c8;font-size:10px;font-weight:650;letter-spacing:2px}main{max-width:1100px;padding:44px 24px 60px;margin:auto;min-height:75vh}h1{font-size:clamp(31px,5vw,47px);line-height:1.12;letter-spacing:-1.8px;margin:12px 0 16px}h2{font-size:20px;letter-spacing:-.4px;margin:0}h3{margin:0;font-size:18px}p{line-height:1.65}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;font-weight:750;color:var(--muted)}.muted{color:var(--muted)}.hero{display:grid;grid-template-columns:1.2fr 1fr;gap:65px;padding:27px 0 40px;align-items:center}.hero p{max-width:420px;font-size:17px;color:var(--muted)}.hero .steps{display:flex;gap:20px;margin-top:30px;font-size:12px;color:var(--muted)}.steps span b{display:block;font-size:20px;color:var(--green);margin-bottom:6px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px;box-shadow:0 8px 25px #23382c06}.panel h2{margin-bottom:21px}label{display:block;font-size:13px;font-weight:650;margin-bottom:7px}input,select{border:1px solid #ccd3c8;background:#fff;color:var(--green);width:100%;padding:12px;border-radius:8px;min-height:45px}input::placeholder{color:#92998f}.field{margin:0 0 18px}.field-row{display:grid;grid-template-columns:1fr 120px;gap:13px}.wide{width:100%}.divider{height:1px;background:var(--line);margin:24px 0}.recent{display:grid;gap:10px}.recent a{display:flex;align-items:center;justify-content:space-between;background:white;padding:18px 20px;border:1px solid var(--line);border-radius:10px}.recent small{color:var(--muted);display:block;margin-top:5px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:29px 0 17px}.title-row{display:flex;align-items:start;justify-content:space-between;gap:18px}.title-row h1{font-size:36px;margin:9px 0 10px}.title-row .buttons{margin-top:12px;display:flex;gap:9px;flex-wrap:wrap}.status{font-size:11px;border:1px solid #c4d7cc;background:#e8f0e9;color:#1d6040;padding:5px 9px;border-radius:20px;text-transform:uppercase;letter-spacing:1px;font-weight:750;display:inline-flex;gap:6px;align-items:center}.status.live:before{content:'';display:inline-block;width:6px;height:6px;background:#348350;border-radius:50%}.sync{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:27px 0 12px}.stat{padding:23px;border:1px solid var(--line);border-radius:12px;background:#fff}.stat.emphasis{background:var(--green);color:#fff;border-color:var(--green)}.stat-label{font-size:12px;color:var(--muted)}.stat.emphasis .stat-label{color:#c9d7cf}.stat-value{font-size:29px;font-weight:700;letter-spacing:-1px;margin-top:8px}.stat small{display:block;font-size:11px;margin-top:6px;opacity:.75}.help{font-size:13px;color:var(--muted);margin:12px 0 24px}.players{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.player{padding:22px;background:white;border:1px solid var(--line);border-radius:13px}.player.inactive{background:#eeefe7}.player-top{display:flex;align-items:center;gap:12px}.avatar{height:39px;width:39px;border-radius:50%;display:grid;place-items:center;background:#eef1e4;color:#375342;font-weight:750;flex-shrink:0}.player-top h3{overflow-wrap:anywhere}.player-top small{color:var(--muted);font-size:11px}.player-totals{display:flex;justify-content:space-between;margin:22px 0 16px;gap:12px;font-size:12px;color:var(--muted)}.player-totals b{display:block;color:var(--green);font-size:18px;margin-top:5px}.net-row{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:13px;font-size:11px;color:var(--muted);gap:8px}.net-row b{font-size:16px;white-space:nowrap}.positive{color:#267647!important}.negative{color:#a23e33!important}.player-buttons{display:flex;gap:7px;margin-top:18px;flex-wrap:wrap}.leave{margin-top:9px;font-size:12px!important;width:100%}.empty{border:1px dashed #c7cebf;padding:40px 20px;border-radius:13px;text-align:center;color:var(--muted);grid-column:1/-1}.empty h3{color:var(--green);margin-bottom:6px}.settlement{margin-top:32px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:25px}.settlement h2{margin-bottom:7px}.settlement p{font-size:14px;color:var(--muted);margin:7px 0 17px}.transfer{display:flex;align-items:center;justify-content:space-between;padding:18px 0;border-top:1px solid var(--line);gap:16px}.transfer b{white-space:nowrap}.arrow{color:#8b997f;margin:0 12px}.warning{background:#fbefd4;color:#795919;border:1px solid #ead4a1;padding:16px 18px;border-radius:10px;font-size:13px;line-height:1.5}.history{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.event{display:grid;grid-template-columns:38px 1fr auto auto;gap:13px;align-items:center;padding:16px 20px;border-bottom:1px solid #edf0e7}.event:last-child{border-bottom:0}.event-icon{background:#eff1e8;color:#31583e;height:34px;width:34px;display:grid;place-items:center;border-radius:8px;font-size:18px}.event p{margin:0;font-size:13px}.event small{font-size:11px;color:var(--muted);display:block;margin-top:4px}.event .value{font-size:15px;font-weight:700;white-space:nowrap}.event.voided{opacity:.55}.event.voided .value{text-decoration:line-through}.ledger-title{display:flex;justify-content:space-between;align-items:center}.recorder{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:20px 0}.recorder input{max-width:200px;min-height:32px;padding:7px 9px;font-size:12px}.recorder label{margin:0;font-size:12px;font-weight:400}dialog{border:1px solid var(--line);border-radius:16px;padding:28px;width:min(450px,calc(100% - 28px));box-shadow:0 30px 90px #0003;color:var(--green)}dialog::backdrop{background:#09271fcc;backdrop-filter:blur(3px)}dialog h2{font-size:25px;margin:0 0 10px}dialog p{font-size:14px;color:var(--muted);margin:0 0 23px}dialog .actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.form-error{font-size:13px;color:#a23e33;line-height:1.5;margin-top:14px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:10;max-width:calc(100% - 32px);background:#123e32;color:white;border-radius:10px;padding:13px 22px;font-size:14px;box-shadow:0 8px 24px #0002;display:none}footer{text-align:center;color:#8a9387;font-size:11px;padding:15px 20px 35px;letter-spacing:.3px}.loading{text-align:center;padding:60px}.connection{font-size:13px;color:#a23e33;padding:10px 0}.summary-slim{display:flex;gap:10px;align-items:center}@media(max-width:900px){.players{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:30px}.stat-value{font-size:25px}}@media(max-width:620px){.top{padding:17px 20px}.brand{font-size:14px;letter-spacing:1px}.top-note{display:none}main{padding:27px 17px 40px}.hero{grid-template-columns:1fr;gap:18px;padding:3px 0 25px}.hero h1{font-size:40px}.hero p{font-size:15px}.hero .steps{margin-top:22px;justify-content:space-between}.panel{padding:21px}.title-row{display:block}.title-row h1{font-size:32px}.title-row .buttons{margin:15px 0}.summary{gap:8px;margin-top:22px}.stat{padding:15px 11px}.stat-value{font-size:20px;letter-spacing:-.6px}.stat-label{font-size:10px}.stat small{font-size:10px}.players{grid-template-columns:1fr}.player{padding:21px}.player-buttons button{flex:1}.event{grid-template-columns:30px 1fr auto;gap:10px;padding:14px}.event .undo{grid-column:2/-1;justify-self:end;padding:3px 6px;font-size:11px}.event-icon{width:30px;height:30px}.section-head h2{font-size:19px}.settlement{padding:21px}.transfer{font-size:14px}.arrow{margin:0 5px}.recorder{flex-wrap:wrap}.sync{font-size:11px}.summary-slim{flex-wrap:wrap}}

.onboarding{max-width:480px;margin:35px auto}.onboarding h1{font-size:35px}.profile-button{background:transparent;color:#fff;border:1px solid #608274;padding:8px 12px;font-size:12px;max-width:180px;overflow-wrap:anywhere}.top-note{margin-left:auto}.recorder strong{color:var(--green)}@media(max-width:620px){.profile-button{max-width:130px;padding:7px 9px}.onboarding{margin:15px auto}.brand-light{display:none}}

.players-dialog{padding:0;max-height:calc(100dvh - 24px);width:min(480px,calc(100% - 28px));height:var(--sheet-height,640px)}.players-dialog #dialog-form,.players-dialog #dialog-content{height:100%;min-height:0}.players-dialog #dialog-content{display:flex;flex-direction:column}.players-sheet-heading{padding:8px 16px 8px;flex-shrink:0}.players-sheet-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.players-sheet-title h2{font-size:21px;margin:0}.players-sheet-title button{font-size:25px;min-width:44px;min-height:44px;padding:0}.players-sheet-columns,.new-player{display:grid;grid-template-columns:minmax(0,1fr) 88px 44px;gap:8px;align-items:center}.players-sheet-columns{font-size:12px;color:var(--muted);padding-top:5px}.players-sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 16px;scroll-padding:8px}.new-player{margin-bottom:8px}.new-player input{font-size:16px;min-width:0;height:48px;padding:10px}.new-player input:focus-visible{outline-offset:-3px}.remove-player{font-size:23px!important;width:44px;min-height:48px;padding:0!important}.players-sheet-body #add-another{min-height:44px;margin-top:0;padding:8px 0}.players-sheet-footer{flex-shrink:0;padding:10px 16px max(10px,env(safe-area-inset-bottom));background:white;border-top:1px solid var(--line)}.players-sheet-footer .form-error{margin:0}.players-sheet-footer .form-error:not(:empty){margin-bottom:8px}.players-sheet-footer button[type=submit]{min-height:48px}@media(max-width:620px){.players-dialog{position:fixed;left:0;top:var(--sheet-top,12px);margin:0;width:100%;max-width:none;max-height:none;border-radius:16px 16px 0 0;border-bottom:0}}

.player-pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.player-pill{display:inline-flex;align-items:center;gap:10px;min-height:48px;max-width:100%;padding:9px 13px;border:1px solid #c8d3c5;border-radius:24px;background:white;color:var(--green);text-align:left}.pill-name{min-width:0;overflow-wrap:anywhere}.pill-amount{font-size:12px;font-weight:550;white-space:nowrap;color:var(--muted)}.player-pill.left{background:#eeefe7;color:#58695e}.player-pill.suggested{border-style:dashed;background:transparent;color:#617260;gap:8px}.pill-plus{font-size:20px;line-height:1;color:var(--green)}.suggestions:not(:empty){margin-top:10px}.player-pills .empty{width:100%;padding:16px;font-size:13px}.player-pills .empty h3{font-size:16px}.player-dialog{max-height:calc(100dvh - 24px);overflow-y:auto}.player-detail-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:18px}.player-detail-totals span{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.player-detail-totals strong{font-size:18px;overflow-wrap:anywhere}.player-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.player-detail-actions button{min-height:48px}.player-detail-actions button:last-child{grid-column:1/-1}.player-detail-history{margin-top:22px}.player-detail-history h3{font-size:14px;margin-bottom:8px}.player-detail-history>div{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid var(--line);font-size:13px;gap:12px}.player-detail-history small{display:block;font-size:11px;color:var(--muted);margin-top:3px}@media(max-width:620px){.player-dialog{padding:21px}.player-pill{padding:9px 12px}.player-detail-totals strong{font-size:16px}}

/* Compact table view: retain 44px touch targets while reducing visual chrome. */
.table-back{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;border:1px solid #608274;border-radius:9px;color:white;font-size:13px;font-weight:650;white-space:nowrap}.table-back[hidden]{display:none}.has-table .top{padding-top:8px;padding-bottom:8px;gap:10px}.has-table .top-note{display:none}.has-table .table-back{margin-left:auto}.has-table .profile-button{min-height:44px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-view{padding-top:16px}.table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.table-heading h1{font-size:26px;letter-spacing:-.8px;margin:0;min-width:0;overflow-wrap:anywhere}.table-heading .status{flex-shrink:0;padding:4px 8px;font-size:10px}.table-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}.table-tools .buttons{display:flex;align-items:center;gap:4px}.table-tools button{min-height:44px}.refresh-button{min-width:44px;font-size:22px;padding:6px!important}.table-view .connection:empty{display:none}.table-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:8px 0 0;background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.table-summary>div{padding:11px 12px;border-right:1px solid var(--line);min-width:0}.table-summary>div:last-child{border:0}.table-summary dt{font-size:11px;color:var(--muted)}.table-summary dd{font-size:20px;font-weight:750;letter-spacing:-.5px;line-height:1.25;margin:4px 0 0;overflow-wrap:anywhere}.table-summary .emphasis{background:var(--green);color:#fff}.table-summary .emphasis dt{color:#c9d7cf}.table-view .section-head{margin:18px 0 10px;gap:10px}.table-view .section-head h2{font-size:18px}.table-view .section-head button{min-height:44px;padding:9px 12px}.table-view .event{padding:12px 14px}.table-view .settlement{margin-top:20px;padding:18px}.table-view .transfer{padding:12px 0}.table-view .help{margin:8px 0 12px}.table-view .event .undo{min-height:44px;min-width:44px}
@media(max-width:620px){.has-table .top{padding:8px 12px;gap:8px}.has-table .brand{font-size:12px;letter-spacing:.8px;gap:4px}.has-table .chip{height:28px;width:28px;font-size:18px;margin-right:0}.has-table .profile-button{max-width:105px;padding:7px 9px}.has-table .table-back{font-size:12px;padding:0 9px}.table-view{padding:14px 14px 32px}.table-heading h1{font-size:23px}.table-summary>div{padding:10px}.table-summary dd{font-size:18px}.table-view .section-head{margin-top:14px}}
@media(max-width:360px){.has-table .brand{font-size:11px}.has-table .profile-button{max-width:90px}.has-table .table-back{padding:0 7px}.table-summary>div{padding:9px 7px}.table-summary dd{font-size:16px}}

/* One flowing pill list, compact history actions, and persistent action undo. */
.top-share{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:transparent;color:#fff;border:1px solid #608274;border-radius:9px;width:44px;min-height:44px;padding:0}.top-share[hidden]{display:none}.table-live{display:flex;align-items:center;gap:3px;flex-shrink:0}.table-live .refresh-button{width:44px;height:44px;line-height:1}.has-table .brand-light{display:none}.has-table #profile-control{min-width:0}.has-table .profile-button{max-width:110px}.has-table .top{gap:8px}.table-heading{gap:8px}.player-pills #suggested-players{display:contents}.player-pill{gap:8px;padding:6px 11px 6px 7px}.pill-avatar{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:28px;height:28px;border-radius:50%;background:#e9eee7;color:var(--green);font-size:11px;line-height:1;font-weight:750}.pill-avatar.pill-plus{font-size:21px;font-weight:550}.table-view .event{grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:start;padding:10px}.table-view .event-icon{width:28px;height:28px;margin-top:7px}.table-view .event .value{align-self:center;font-size:13px}.table-view .event .undo{grid-column:auto;justify-self:end;padding:0;width:44px;height:44px;font-size:23px;line-height:1;align-self:center}.table-view .event p{font-size:12px;overflow-wrap:anywhere}.table-view .event small{font-size:10px;overflow-wrap:anywhere}.table-view .event.has-undo{grid-template-columns:28px minmax(0,1fr) auto 44px}#notice{align-items:center;gap:10px;padding:8px 10px 8px 15px;bottom:max(16px,env(safe-area-inset-bottom));width:max-content;max-width:calc(100% - 24px)}#notice>span{min-width:0}#notice button{min-width:44px;min-height:44px;flex-shrink:0;background:transparent;color:white;padding:7px;font-size:14px}#notice .notice-undo{color:#f4d17f;text-decoration:underline}#notice .notice-dismiss{font-size:22px;padding:0}
@media(max-width:620px){.has-table .profile-button{max-width:90px}.has-table .top{gap:6px}.table-heading h1{font-size:21px}.player-pill{padding:6px 10px 6px 7px}.has-table .table-back{padding:0 7px}}@media(max-width:360px){.has-table .profile-button{max-width:76px}.table-view .event{gap:5px}.table-view .event .value{font-size:12px}}

/* Overview keeps the two actions and recent participants close at hand. */
.has-overview .top-note,.has-overview footer{display:none}.has-overview .top{padding-top:8px;padding-bottom:8px}.has-overview .profile-button{min-height:44px}.overview{padding-top:20px}.overview-actions{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:10px;align-items:start}.overview-actions button{min-height:48px}.overview-actions .form-error:empty{display:none}.overview .section-head{margin:22px 0 12px}.recent .recent-table{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:10px 12px;padding:15px 16px}.recent-table>strong{font-size:16px;overflow-wrap:anywhere}.recent-participants{display:flex;gap:5px;flex-wrap:wrap;grid-column:1;min-width:0}.recent-participants:empty{display:none}.recent-participants .pill-avatar{width:30px;height:30px;font-size:11px}.recent-arrow{grid-column:2;grid-row:1/3;align-self:center;justify-self:end}.overview .empty{padding:20px}

/* Closing and results reuse the mobile sheet and existing initials. */
.close-game-action{margin-top:18px}.close-game-action button{min-height:48px}.game-results{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.result-row{display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:10px 13px;border:0;border-radius:0;border-bottom:1px solid var(--line);background:white;color:var(--green);text-align:left}.result-row:last-child{border-bottom:0}.result-player{flex:1;min-width:0;overflow-wrap:anywhere}.result-player small{display:block;margin-top:3px;font-size:11px;font-weight:450;color:var(--muted)}.result-row>strong{font-size:16px;white-space:nowrap}.close-game-dialog .close-help{margin:3px 0 7px;font-size:12px}.close-columns,.close-game-dialog .final-cash-out{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:12px;align-items:center}.close-columns{font-size:12px;color:var(--muted)}.final-cash-out label{display:flex;align-items:center;gap:8px;margin:0;min-width:0;overflow-wrap:anywhere;font-size:14px}.close-total{font-size:13px;font-weight:650;margin-bottom:8px}.table-view .transfer{font-size:14px}

/* Clubs share the compact overview and table layout. */
.club-actions{margin-top:16px}.club-actions button{min-height:48px}.club-player{font-size:14px;font-weight:650}.game-club-link{display:inline-flex;align-items:center;min-height:32px;font-size:12px;color:var(--muted);margin-bottom:2px}.has-overview .top{gap:8px}.has-overview .brand-light{display:none}.has-overview .table-back{margin-left:auto}.has-overview .profile-button{max-width:105px}.has-overview .top-note{display:none}.has-overview .table-heading h1{font-size:25px}.overview .section-head button{min-height:44px}.overview .form-error:empty{display:none}textarea{font:inherit;touch-action:manipulation;width:100%;padding:12px;border:1px solid #ccd3c8;border-radius:8px;color:var(--green);font-size:16px;resize:vertical}.recent-table small{font-weight:450;font-size:12px}@media(max-width:620px){.has-overview .top{padding:8px 12px;gap:6px}.has-overview .brand{font-size:12px;letter-spacing:.8px;gap:4px}.has-overview .chip{width:28px;height:28px;font-size:18px;margin-right:0}.has-overview .profile-button{max-width:90px}.has-overview .table-back{font-size:12px;padding:0 7px}}

#profile-control{position:relative}.profile-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:220px;padding:12px;background:white;color:var(--green);border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #0002}.profile-menu[hidden]{display:none}.profile-menu button{width:100%;text-align:left;background:transparent;color:var(--green);min-height:44px;padding:8px;margin-bottom:8px}.profile-menu label{display:block;font-size:13px;margin:4px 0 8px}.profile-menu select{width:100%;min-height:44px;font:inherit;color:var(--green);background:white;border:1px solid var(--line);border-radius:8px;padding:8px}

.onboarding select{width:100%;min-height:48px;padding:12px;border:1px solid var(--line);border-radius:9px;background:white;color:var(--green)}#cancel-player{margin-top:12px}
