:root{--bg:#f5f5f1;--paper:#fff;--ink:#17211c;--muted:#777e78;--line:#e5e7e1;--green:#183b2e;--green-2:#2f624b;--green-soft:#edf4ef;--brass:#b89b65;--red:#ad5a50;--red-soft:#fbefed;--shadow:0 8px 24px rgba(23,33,28,.045)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}.app-shell{min-height:100vh}.sidebar{width:240px;background:#10251d;color:#e8ece7;position:fixed;inset:0 auto 0 0;padding:28px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;color:#f2eee3;text-decoration:none;letter-spacing:1.9px;font-size:14px;font-weight:600;margin:0 8px 50px}.brand i{font-family:'Playfair Display',serif;color:#c2a873;font-style:normal}.brand-mark{color:#c2a873;font-size:22px}.side-label,.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#828b83}.side-label{padding:0 10px 12px;color:#89958d}.nav-item{width:100%;border:0;background:transparent;color:#b9c2bc;padding:12px 10px;display:flex;gap:12px;align-items:center;border-radius:7px;text-align:left;font:500 13px inherit;cursor:pointer;margin-bottom:5px}.nav-item span{font-size:17px;width:19px;text-align:center}.nav-item.active,.nav-item:hover{background:#1a392d;color:#f4f1e8}.side-bottom{margin-top:auto}.user-chip{display:flex;align-items:center;gap:10px;border-top:1px solid #2b4037;padding:18px 4px 0;font-size:12px}.user-chip small,.game-summary small{display:block;color:#939b94;font-size:11px;margin-top:4px}.more{margin-left:auto;font-size:20px}.avatar{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#d9e4dc;color:#27503d;font-size:10px;font-weight:700;font-style:normal;flex:none}.avatar.small{width:27px;height:27px}.alt1{background:#e9ded3;color:#795d49}.alt2{background:#dce4ef;color:#526780}.alt3{background:#f0e1e0;color:#925953}.alt4{background:#e7e1ef;color:#695881}.alt5{background:#e9e8d7;color:#777747}.alt6{background:#d8e8e7;color:#477a75}.main{margin-left:240px;max-width:1500px;padding:0 42px 44px}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:34px}.breadcrumbs{color:#737a74;font-size:12px}.profile-button{border:0;background:none;display:flex;align-items:center;gap:8px;color:#424943;font:500 12px inherit}.mobile-brand{display:none}.page{display:none;animation:show .18s ease}.page.active{display:block}@keyframes show{from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin:0 0 29px}.page-heading h1{font:500 33px 'Playfair Display',Georgia,serif;margin:7px 0 6px;letter-spacing:-.3px}.subhead{color:var(--muted);margin:0;font-size:13px}.button{border:1px solid transparent;border-radius:6px;padding:10px 15px;font:600 12px 'DM Sans',sans-serif;cursor:pointer;transition:.15s ease}.button.primary{background:var(--green);color:white}.button.primary:hover{background:#25513d}.button.secondary{border-color:#d9ded8;background:#fff;color:#344139}.button.secondary:hover{border-color:#aeb9b0;background:#fbfcfa}.button span{font-size:15px;vertical-align:-1px;margin-right:4px}.group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,350px));gap:17px}.group-card{background:var(--paper);border:1px solid var(--line);border-radius:9px;padding:22px;text-align:left;box-shadow:var(--shadow)}.group-card.feature{cursor:pointer;transition:.18s}.group-card.feature:hover{border-color:#b8c4ba;transform:translateY(-2px)}.group-card-top{display:flex;justify-content:space-between;align-items:center}.group-icon{width:37px;height:37px;border-radius:8px;background:#eff4f0;color:var(--green);display:grid;place-items:center;font-size:20px}.status-dot{font-size:9px;color:#4c725d;font-weight:700;letter-spacing:1px}.group-card h2{font:500 20px 'Playfair Display',Georgia,serif;margin:17px 0 5px}.group-card p{margin:0;color:var(--muted);font-size:12px}.group-stats{display:flex;gap:54px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:21px;padding:14px 0}.group-stats small,.metric small,.game-summary-strip small,.settle-summary small{display:block;font-size:9px;letter-spacing:1px;color:#808780;font-weight:700;margin-bottom:7px}.group-stats strong{font-size:17px;font-weight:600}.card-footer{display:flex;justify-content:space-between;margin-top:15px;color:#858b85;font-size:11px}.arrow{color:var(--green-2);font-weight:600}.create-card{min-height:211px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-style:dashed;cursor:pointer;color:#35463b}.create-card:hover{border-color:#8ba18f;background:#fbfcfa}.plus-ring{height:34px;width:34px;border:1px solid #d6ded8;color:var(--green-2);border-radius:50%;display:grid;place-items:center;font-size:19px}.create-card small{color:#8a918b;font-size:11px}.hint-box{display:flex;align-items:center;gap:13px;padding:16px 18px;background:#eef2ed;border:1px solid #e3e9e2;border-radius:7px;margin-top:27px;max-width:630px}.hint-icon{display:grid;place-items:center;width:27px;height:27px;background:#dce8df;color:var(--green-2);border-radius:50%;font-weight:700}.hint-box b{font-size:12px}.hint-box p{font-size:11px;color:#6f7871;margin:4px 0 0;line-height:1.5}.back-link,.text-action{border:0;background:none;color:var(--green-2);font:600 11px 'DM Sans',sans-serif;cursor:pointer;padding:0}.back-link{display:block;margin-bottom:15px;color:#767e77}.group-heading{align-items:flex-end}.heading-actions{display:flex;gap:9px}.tiny-edit{border:0;background:none;color:#9b9f98;font-size:13px;vertical-align:middle;cursor:pointer}.bullet{margin:0 5px;color:#b1b4ae}.metric-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:34px}.metric{background:#fff;border:1px solid var(--line);border-radius:7px;padding:17px 19px;box-shadow:var(--shadow)}.metric strong{display:block;font-size:21px;font-weight:600;margin:0 0 5px}.metric span{font-size:10px;color:#89908a}.metric .metric-date{font-size:16px;margin-bottom:8px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin:25px 0 13px}.section-head h2{font:500 21px 'Playfair Display',Georgia,serif;margin:4px 0 0}.section-head select{border:1px solid var(--line);background:#fff;border-radius:5px;padding:8px 10px;font:11px 'DM Sans',sans-serif;color:#49534b}.panel{background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.table-head,.player-row,.ledger-row{display:grid;grid-template-columns:minmax(200px,2fr) 1fr 1fr 1fr 1.1fr;align-items:center;column-gap:15px;padding:0 18px}.table-head{height:39px;color:#858b85;font-size:9px;letter-spacing:1px;font-weight:700;border-bottom:1px solid var(--line)}.player-row{min-height:54px;border-bottom:1px solid #eff0ec;font-size:12px;color:#566058}.player-row:last-child{border-bottom:0}.player-row>b{text-align:right;font-size:13px}.table-head span:last-child{text-align:right}.rank{width:22px;height:22px;border:1px solid #e6e8e3;border-radius:50%;display:grid;place-items:center;font-size:10px;color:#666f68}.rank.first{border-color:#c4b083;background:#fbf8f0;color:#8e7441}.player-name{display:flex;gap:10px;align-items:center;color:#303a33;font-weight:600}.player-name em{font-style:normal;color:#809181;font-size:8px;letter-spacing:.5px;font-weight:700}.positive{color:#367650!important}.negative{color:var(--red)!important}.recent-head{margin-top:29px}.recent-list{overflow:hidden}.recent-game{display:flex;align-items:center;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #eff0ec;padding:12px 17px;gap:14px;cursor:pointer;font:inherit}.recent-game:last-child{border-bottom:0}.recent-game:hover{background:#fbfcfa}.date-tile{width:37px;height:39px;background:#f2f4f0;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#45584a}.date-tile b{font-size:14px}.date-tile small{font-size:8px;font-weight:700;letter-spacing:.7px}.game-summary{flex:1}.game-summary b{font-size:12px;color:#374038}.game-summary small{color:#858c86}.game-net{text-align:right}.game-net small{display:block;color:#929892;font-size:8px;letter-spacing:.8px;margin-bottom:3px}.game-net b{font-size:13px}.chevron{color:#a0a69f;font-size:22px}.settle-callout{display:flex;align-items:center;gap:14px;padding:16px 18px;margin-top:19px;border:1px solid #dfe5de;border-radius:8px;background:#f8faf7}.settle-callout>div:nth-child(2){flex:1}.settle-symbol{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#e8eee8;color:#42634d;font-size:18px}.settle-callout b{font-size:12px}.settle-callout p{color:#858d86;font-size:11px;margin:4px 0 0}.app-footer{display:flex;justify-content:space-between;margin-top:48px;padding-top:15px;border-top:1px solid var(--line);font-size:9px;color:#9a9f99}.app-footer span:first-child{letter-spacing:1px;color:#778178;font-weight:700}.game-summary-strip{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);background:#fff;border-radius:8px;margin-bottom:32px}.game-summary-strip>div{padding:15px 19px;border-right:1px solid var(--line)}.game-summary-strip>div:last-child{border:0}.game-summary-strip b{font-size:17px}.complete-pill{font-size:10px;color:#4e795b}.complete-pill:first-letter{font-size:12px}.section-note{font-size:11px;color:#858c86;margin:7px 0 0}.small-button{padding:8px 11px}.session-table .table-head,.ledger-row{grid-template-columns:minmax(200px,2fr) 1.15fr 1fr 1fr}.ledger-row{min-height:54px;border-bottom:1px solid #eff0ec;color:#4c554e;font-size:12px}.ledger-row:last-of-type{border-bottom:0}.ledger-row>b{text-align:right;font-size:13px}.ledger-row>span:nth-child(n+2){text-align:left}.ledger-row .player-name{font-size:12px}.ledger-row .player-name small,.ledger-row>span small{font-weight:400;color:#959b95;font-size:10px}.ledger-total{display:grid;grid-template-columns:minmax(200px,2fr) 1.15fr 1fr 1fr;padding:14px 18px;background:#f8f9f6;border-top:1px solid var(--line);font-size:11px}.ledger-total b:last-child{text-align:right;color:var(--green-2)}.session-footnote{font-size:10px;color:#919891;margin:8px 0 25px}.payouts{padding:3px 17px}.payout-row{display:grid;grid-template-columns:30px minmax(75px,1fr) auto 30px minmax(75px,1fr) 75px;align-items:center;gap:9px;min-height:58px;border-bottom:1px solid #eff0ec;font-size:11px}.payout-row:last-child{border-bottom:0}.payout-row .avatar{width:26px;height:26px}.payout-row strong{text-align:right;font-size:13px}.pays-arrow{font-size:10px;color:#929991}.settle-summary{display:flex;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:21px;margin:24px 0 14px}.settle-symbol.large{width:46px;height:46px;font-size:22px}.settle-summary h2{font:500 23px 'Playfair Display',Georgia,serif;margin:0 0 3px}.settle-summary p{font-size:11px;color:#7f8780;margin:0}.settle-panel{margin-bottom:20px}.settle-page-note{font-size:11px;color:#858c86;margin:12px 0 20px}.optional{font-size:10px;color:#989f98;font-weight:400}.modal-backdrop{position:fixed;inset:0;background:rgba(12,24,18,.46);display:none;align-items:center;justify-content:center;padding:20px;z-index:10}.modal-backdrop.open{display:flex}.modal{width:min(100%,420px);background:#fff;border-radius:10px;padding:27px;position:relative;box-shadow:0 20px 70px #09130e44}.modal-close{position:absolute;right:16px;top:13px;border:0;background:none;font-size:24px;color:#7f8881;cursor:pointer}.modal h2{font:500 24px 'Playfair Display',Georgia,serif;margin:7px 0}.modal>p{color:#7c847d;font-size:12px;margin:0 0 21px;line-height:1.5}.modal label{display:block;font-size:11px;font-weight:600;margin:13px 0;color:#4d574f}.modal input,.modal select{display:block;margin-top:6px;width:100%;padding:11px 12px;border:1px solid #dfe3dd;border-radius:5px;background:#fff;font:12px 'DM Sans',sans-serif;color:#27322b}.modal input:focus,.modal select:focus{outline:2px solid #d8e4d9;border-color:#8ba28c}.full{width:100%;margin-top:10px}.member-list>div{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #eff0ec;font-size:12px}.member-list>div small{margin-left:auto;color:#848b85;font-size:10px}.member-list .button{margin-top:17px}.mobile-nav{display:none}
@media(max-width:900px){.sidebar{width:205px}.main{margin-left:205px;padding:0 26px 36px}.table-head,.player-row{grid-template-columns:35px minmax(150px,2fr) .7fr .9fr 1fr}.table-head span:first-child{grid-column:1}.player-row .rank{grid-column:1}.player-row .player-name{grid-column:2}.table-head span:nth-child(2){grid-column:2}.table-head span:nth-child(3){grid-column:3}.table-head span:nth-child(4){grid-column:4}.table-head span:nth-child(5){grid-column:5}.metric-row{gap:8px}.metric{padding:15px}.session-table .table-head,.ledger-row,.ledger-total{grid-template-columns:minmax(160px,2fr) 1fr 1fr 1fr}}
@media(max-width:650px){body{font-size:13px}.sidebar{display:none}.main{margin:0;padding:0 16px 93px}.topbar{height:57px;margin-bottom:24px}.mobile-brand{display:flex;align-items:center;gap:8px;border:0;background:none;padding:0;color:#183b2e;font:700 12px 'DM Sans',sans-serif;letter-spacing:1.2px}.mobile-brand span{color:#907b51;font-size:18px}.breadcrumbs{display:none}.profile-button{font-size:0;padding:0}.profile-button .avatar{font-size:10px}.profile-button span:last-child{display:none}.page-heading{align-items:flex-start;gap:13px;margin-bottom:23px}.page-heading h1{font-size:28px}.page-heading>.button{align-self:center;white-space:nowrap;padding:9px 11px;font-size:11px}.subhead{font-size:11px;line-height:1.5}.eyebrow{font-size:9px}.group-grid{grid-template-columns:1fr}.group-card{padding:18px}.group-card.feature{min-height:0}.group-stats{gap:38px}.create-card{min-height:142px}.hint-box{margin-top:17px;padding:13px}.group-heading{display:block}.group-heading .heading-actions{margin-top:16px}.heading-actions .button{flex:1}.metric-row{grid-template-columns:1fr 1fr;margin-bottom:28px}.metric{padding:13px}.metric:last-child{grid-column:span 2}.metric strong{font-size:18px}.metric .metric-date{font-size:15px}.section-head{margin-top:22px}.section-head h2{font-size:19px}.panel{border-radius:7px}.table-head,.player-row{grid-template-columns:27px minmax(104px,1fr) 60px minmax(64px,.8fr);gap:7px;padding:0 10px}.table-head{font-size:8px;height:34px}.table-head span:nth-child(3){display:none}.table-head span:nth-child(4){display:none}.table-head span:first-child{grid-column:1}.table-head span:nth-child(2){grid-column:2}.table-head span:last-child{grid-column:4}.player-row{min-height:52px;font-size:10px}.player-row .rank{grid-column:1;width:21px;height:21px}.player-row .player-name{grid-column:2;gap:6px;font-size:10px;white-space:nowrap}.player-row .player-name .avatar{width:25px;height:25px;font-size:8px}.player-row>span:nth-child(3),.player-row>span:nth-child(4){display:none}.player-row>b{grid-column:4;font-size:11px}.player-name em{font-size:7px}.recent-game{padding:11px 10px;gap:9px}.date-tile{width:34px;height:36px}.game-summary b{font-size:11px}.game-summary small{font-size:9px;line-height:1.3}.game-net small{font-size:7px}.game-net b{font-size:11px}.settle-callout{align-items:flex-start;flex-wrap:wrap;padding:13px}.settle-callout>div:nth-child(2){width:calc(100% - 52px);flex:auto}.settle-callout .button{margin-left:47px}.app-footer{font-size:8px;gap:15px}.app-footer span:last-child{text-align:right}.game-summary-strip{grid-template-columns:1fr 1fr}.game-summary-strip>div{padding:12px;border-bottom:1px solid var(--line)}.game-summary-strip>div:nth-child(2){border-right:0}.game-summary-strip>div:nth-child(3),.game-summary-strip>div:nth-child(4){border-bottom:0}.game-summary-strip b{font-size:15px}.section-note{font-size:10px;max-width:250px;line-height:1.4}.session-table .table-head,.ledger-row,.ledger-total{grid-template-columns:minmax(112px,1.6fr) .72fr .65fr .8fr;gap:5px;padding:0 8px}.session-table .table-head{font-size:7px}.ledger-row{font-size:10px;min-height:53px}.ledger-row .player-name{font-size:10px;gap:5px}.ledger-row .player-name .avatar{width:23px;height:23px;font-size:8px}.ledger-row>span small{font-size:8px;display:block}.ledger-row>b{font-size:10px}.ledger-total{font-size:9px;padding:12px 8px}.small-button{padding:8px;font-size:10px;white-space:nowrap}.payout-row{grid-template-columns:26px minmax(48px,1fr) auto 26px minmax(48px,1fr) 46px;gap:5px;font-size:9px;min-height:53px}.payout-row .avatar{width:23px;height:23px;font-size:8px}.payout-row strong{font-size:11px}.pays-arrow{font-size:8px}.settle-summary{padding:15px;gap:12px}.settle-summary h2{font-size:20px}.settle-summary p{font-size:10px}.heading-actions{width:100%}.back-link{margin-bottom:12px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:66px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);z-index:7;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -6px 18px #14251b0a}.mobile-nav button{border:0;background:none;color:#8a928b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:500 9px 'DM Sans',sans-serif}.mobile-nav button span{font-size:17px}.mobile-nav button.selected{color:var(--green);font-weight:700}.modal{padding:23px}.settle-panel{padding:0 8px}}
 .settle-panel .payout-row,.session-payouts .payout-row{grid-template-columns:28px minmax(72px,1fr) auto 28px minmax(72px,1fr) 62px 58px}.record-payment{border:1px solid #d9e2da;border-radius:5px;color:#315a40;background:#f4f8f4;padding:6px 8px;font:600 10px 'DM Sans',sans-serif;cursor:pointer}.record-payment:hover{background:#eaf2eb}.paid-label{justify-self:end;color:#728678;font-size:10px;font-weight:600}.paid-row{background:#fbfcfa}.payment-log-row{display:flex;align-items:center;gap:11px;padding:13px 16px;border-bottom:1px solid #eff0ec;font-size:11px}.payment-log-row:last-child{border-bottom:0}.payment-log-row>span:nth-child(2){flex:1}.payment-log-row small{display:block;color:#89918a;font-size:9px;margin-top:4px}.payment-log-row strong{font-size:12px;color:#42684c}.log-check{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#e8f1e9;color:#3a6b48}.empty-log{padding:18px;color:#909790;font-size:11px;text-align:center}
@media(max-width:650px){.settle-panel .payout-row,.session-payouts .payout-row{grid-template-columns:23px minmax(55px,1fr) auto 23px minmax(55px,1fr) 48px 51px}.settle-panel .record-payment,.session-payouts .record-payment{font-size:9px;padding:5px}.settle-panel .paid-label,.session-payouts .paid-label{font-size:9px}}

/* Dark green, mobile-first responsive website theme */
:root{--bg:#0a1510;--paper:#12221a;--ink:#f1eee4;--muted:#a0aaa1;--line:#2c4034;--green:#183a2b;--green-2:#c0a570;--green-soft:#1a2c22;--brass:#c0a570;--red:#d8897e;--red-soft:#38231f;--shadow:0 10px 28px rgba(0,0,0,.16)}
body{background:radial-gradient(ellipse at 72% -12%,#1a3528 0%,#0a1510 52%);color:var(--ink)}
.sidebar{background:#08120d;border-right:1px solid #203328}.brand{color:#eee9dc}.brand-mark{color:#c0a570}.nav-item{color:#aeb9b0}.nav-item.active,.nav-item:hover{background:#183427;color:#f1eee4}.side-label{color:#7e8d82}.user-chip{border-color:#253a2d}.topbar{border-color:var(--line)}.breadcrumbs,.profile-button{color:#bdc5bd}
.page-heading h1,.group-card h2,.section-head h2,.modal h2,.settle-summary h2{color:#f0ecdf}.subhead,.metric span,.group-card p,.card-footer,.section-note,.session-footnote,.settle-page-note{color:#a0aaa1}
.eyebrow,.side-label{color:#a9a18b}.button.primary{background:#b69a66;color:#151a14}.button.primary:hover{background:#c9ad79}.button.secondary{background:#16271e;border-color:#35483b;color:#e2e3d9}.button.secondary:hover{background:#1b3125;border-color:#69775f}.text-action,.back-link,.arrow{color:#c0a570}
.group-card,.metric,.panel,.game-summary-strip,.settle-summary{background:linear-gradient(145deg,#14251c,#101e17);border-color:#304437;box-shadow:var(--shadow)}.group-card.feature:hover{border-color:#8d7952;background:#17291f}.group-icon,.date-tile{background:#1e3427;color:#d2bd8c}.status-dot{color:#a5c0a8}.group-stats{border-color:#2c4034}.group-stats small,.metric small,.game-summary-strip small,.settle-summary small,.game-net small{color:#9da79c}.metric-row .metric{background:linear-gradient(145deg,#15271e,#102018)}
.hint-box,.settle-callout{background:#14251c;border-color:#304437}.hint-icon,.settle-symbol{background:#233b2c;color:#d1b578}.hint-box p,.settle-callout p{color:#a4aea5}.table-head{color:#a0a89e;border-color:#2d4135}.player-row,.ledger-row,.recent-game,.payout-row,.payment-log-row{border-color:#293d31;color:#c0c8bf}.player-row:last-child,.ledger-row:last-of-type{border-color:#293d31}.player-name,.ledger-row .player-name,.game-summary b,.member-list>div,.payout-row b{color:#eceae1}.player-row{border-color:#293d31}.rank{border-color:#3b5042;color:#bbc3ba}.rank.first{background:#322c1e;border-color:#88754f;color:#dfc58b}.positive{color:#a7cba8!important}.negative{color:#e08d82!important}.game-summary small,.game-net small,.payment-log-row small{color:#98a39a}.game-summary-strip>div{border-color:#304437}.complete-pill{color:#b4d1b5}.ledger-total{background:#18291f;border-color:#304437;color:#e5e5db}.ledger-total b:last-child{color:#b2d3b2}.settle-summary{border-color:#435141}.settle-summary p{color:#a3ada4}.record-payment{background:#1a3023;border-color:#49644e;color:#c1d3bc}.record-payment:hover{background:#24412e}.paid-row{background:#14251b}.paid-label{color:#a8c0a8}.log-check{background:#233b2c;color:#afd0b0}.empty-log{color:#9ba69d}.app-footer{border-color:#2b4034;color:#858f86}.app-footer span:first-child{color:#c0a570}
.modal{background:#12221a;border:1px solid #35483b;color:#f1eee4}.modal-close{color:#c0c9c0}.modal>p,.modal label{color:#aeb8ae}.modal input,.modal select{background:#0c1912;border-color:#3b5042;color:#f0eee5}.modal input::placeholder{color:#78857a}.modal input:focus,.modal select:focus{outline-color:#3c5b43;border-color:#758862}.member-list>div{border-color:#2b4034}.mobile-nav{background:#0b1811;border-color:#2d4034;box-shadow:0 -7px 22px #0005}.mobile-nav button{color:#9ba79d}.mobile-nav button.selected{color:#d1b477}.mobile-brand{color:#ede9dd}.mobile-brand span{color:#c0a570}.avatar{background:#d9e4dc;color:#27503d}.avatar.alt1{background:#e9ded3;color:#795d49}.avatar.alt2{background:#dce4ef;color:#526780}.avatar.alt3{background:#f0e1e0;color:#925953}.avatar.alt4{background:#e7e1ef;color:#695881}.avatar.alt5{background:#e9e8d7;color:#777747}.avatar.alt6{background:#d8e8e7;color:#477a75}

[hidden]{display:none!important}
.connection-banner{padding:10px 13px;margin:-18px 0 20px;border:1px solid #314a39;border-radius:6px;background:#182b20;color:#d7e0d5;font-size:11px}
.connection-banner.loading{color:#d2d6c8}
.connection-banner.error{border-color:#754942;background:#38231f;color:#f2c7bf}
.empty-groups{margin:16px 0;padding:17px;border:1px dashed #506253;border-radius:7px;color:#a9b3a9;font-size:12px}
.empty-log{line-height:1.6}
.form-help,.account-note{display:block;color:#8e978f;font-size:10px;line-height:1.5;margin-top:7px}
.account-note{margin-top:17px;padding-top:12px;border-top:1px solid var(--line)}
.form-error{color:#d7867a;font-size:11px;line-height:1.5;margin-top:10px}
.form-error:empty{display:none}
.inline-form{display:flex;align-items:flex-end;gap:10px;margin:14px 0 10px}
.inline-form label{flex:1}
.player-choice{display:flex!important;align-items:center;gap:10px;margin:0!important;padding:11px 4px;border-bottom:1px solid var(--line);color:var(--ink)!important}
.player-choice input{width:auto!important;margin:0!important}
.player-choice span{display:flex;flex-direction:column;gap:3px}
.player-choice small{color:#89918a;font-size:9px}
.player-picker{max-height:270px;overflow:auto}
.game-actions{display:flex;gap:9px;margin:14px 0 24px}
.game-actions .button{flex:1}
@media(max-width:650px){
  .connection-banner{margin:-12px 0 16px}
  .inline-form{align-items:stretch;flex-direction:column;gap:2px}
  .inline-form .button{width:100%}
  .game-actions{gap:7px}
  .game-actions .button{padding:9px 8px;font-size:10px}
}


.profile-picker{position:relative;flex-shrink:0}.profile-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;min-width:144px;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:var(--shadow)}.profile-menu button{display:block;width:100%;padding:10px 12px;text-align:left;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-weight:600;cursor:pointer}.profile-menu button:hover,.profile-menu button:focus-visible{background:var(--green-soft);color:var(--green)}.profile-menu button:disabled{cursor:wait;opacity:.65}

/* Signed-out app welcome */
.landing{display:grid;justify-items:center;min-height:100vh;min-height:100svh;background:radial-gradient(ellipse at 50% 38%,#1b392b,#0c1b14 72%);color:#f5eedf;text-align:center}
.welcome{width:min(100%,420px);display:flex;flex-direction:column;justify-content:center;gap:36px;box-sizing:border-box;padding:28px 24px calc(28px + env(safe-area-inset-bottom,0px))}
.welcome-mark{display:grid;place-items:center;margin:0 auto 20px;width:60px;height:60px;border:1px solid #bba57788;border-radius:18px;background:#ccb67a12;color:#e4ca8f;font-size:31px;line-height:1}
.welcome-intro h1{margin:0;color:#f5eedf;font:600 clamp(38px,10vw,52px)/1.12 'Playfair Display',Georgia,serif;letter-spacing:-.055em}
.welcome-intro h1 em{font-style:normal;color:#e0c88d}
.welcome-intro p{margin:14px auto 0;max-width:255px;color:#c5d0c7;font-size:15px;line-height:1.55}
.welcome-button{display:block;width:100%;min-height:52px;padding:10px 14px;border:1px solid #e9d6a6;border-radius:12px;background:#e4ca8f;color:#152219;font:700 15px 'DM Sans',sans-serif;cursor:pointer}
.welcome-button:hover{background:#f2dca7}.welcome-button:focus-visible{outline:2px solid #e4ca8f;outline-offset:5px}
.landing-error{margin:12px 0 0;color:#ffbbaa;font-size:13px}
@media(max-width:520px){.welcome{justify-content:space-between}.welcome-intro{margin:auto 0}.welcome-actions{margin-top:2px}}

.account-modal{width:min(100%,360px);border-radius:18px;padding:24px;max-height:calc(100dvh - 40px);overflow:auto}
.account-modal h2{margin:0 40px 20px 0}
.account-modal .modal-close{display:grid;place-items:center;top:9px;right:9px;width:44px;height:44px}
.account-modal label{font-size:13px;margin:0 0 13px}
.account-modal input{font-size:16px;min-height:48px;border-radius:8px}
.account-modal .button{min-height:48px;font-size:14px}
.account-modal .form-error:empty{display:none}
.account-modal .text-button{min-height:44px;margin-inline:auto}

.member-list .member-action{margin:0 0 0 4px;min-height:36px;padding:5px 9px;font-size:12px}

 .member-search{position:relative;flex:1;min-width:0}.member-search label{margin-bottom:0}
.member-name-field{position:relative}.member-name-field input{font-size:16px;padding-right:40px}
.member-name-mark{position:absolute;inset-inline-end:12px;top:50%;transform:translateY(-50%);font-size:19px;font-weight:700;pointer-events:none}
.member-name-mark[data-state="match"]{color:#82df9f}.member-name-mark[data-state="missing"]{color:#ff817c}
.player-search-status:not(.visible){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.player-search-status.visible{display:block;color:#aeb8ae;font-size:11px;margin:5px 0 0}

/* Compact group home; the session and settlement screens retain the full ledger. */
.group-home{max-width:760px;margin-inline:auto}
.group-back,.group-link{border:0;background:transparent;color:#d9be85;cursor:pointer;font:600 13px 'DM Sans',sans-serif;display:inline-flex;align-items:center;gap:6px;padding:0 2px;min-height:40px;text-align:left}
.group-back span,.group-link span{font-size:21px;line-height:1}
.group-back:hover,.group-link:hover{color:#f0daa6}
.group-home :is(button,select):focus-visible{outline:2px solid #ddc48a;outline-offset:3px}
.group-home-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:5px 0 24px;border-bottom:1px solid #334137}
.group-home-identity{min-width:0}
.group-home-header h1{font:500 clamp(32px,6vw,47px)/1.1 'Playfair Display',Georgia,serif;color:#f4eee0;letter-spacing:-.035em;margin:0;overflow-wrap:anywhere}
.group-home-header p{font-size:13px;line-height:1.4;color:#b5c0b7;margin:8px 0 0}
.group-home-actions{display:flex;gap:8px;flex-shrink:0}
.group-home-actions .button{min-height:44px;padding:8px 14px;border-radius:10px;font-size:13px;white-space:nowrap}
.group-home-section{margin-top:24px}
.group-home-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;margin-bottom:6px}
.group-home-section h2{font:500 23px 'Playfair Display',Georgia,serif;color:#f0ebdf;margin:0}
.group-home-section select{min-height:38px;border:1px solid #3c4f42;border-radius:8px;background:#14241b;color:#e7e6db;font:600 12px 'DM Sans',sans-serif;padding:5px 8px}
.group-home-card{border:1px solid #35463b;border-radius:13px;background:#122219;overflow:hidden}
.group-empty{padding:22px 15px;color:#b5c0b7;font-size:14px}
.group-standing-head{display:flex;justify-content:space-between;padding:10px 14px;border-bottom:1px solid #35463b;color:#b5c0b7;font-size:11px}
.group-standing{min-height:50px;display:grid;align-items:center;grid-template-columns:23px minmax(0,1fr) auto;gap:8px;padding:8px 14px;border-bottom:1px solid #35463b;color:#f0ebdf;font-size:14px}
.group-standing:last-child,.group-recent-game:last-child{border-bottom:0}
.group-rank{color:#c9b17c;font-size:12px}
.group-standing-name{min-width:0;display:flex;align-items:center;gap:8px;font-weight:600}
.group-standing-name>span{overflow-wrap:anywhere}.group-standing .avatar{flex:none;width:28px;height:28px;font-size:10px}
.group-standing>b{font-variant-numeric:tabular-nums}
.group-recent-game{width:100%;min-height:60px;display:flex;align-items:center;gap:10px;text-align:left;border:0;border-bottom:1px solid #35463b;background:transparent;color:#f0ebdf;padding:8px 14px;font:inherit;cursor:pointer}
.group-recent-game:hover{background:#1b3024}
.group-recent-name{display:grid;min-width:0;flex:1;gap:3px}.group-recent-name b{font-size:14px;overflow-wrap:anywhere}.group-recent-name small,.group-game-status{color:#b5c0b7;font-size:11px}
.group-chevron{color:#d9be85;font-size:20px}.group-settle{margin-top:12px}
@media(max-width:650px){.group-home-header{display:block;padding-bottom:17px}.group-home-actions{margin-top:15px}.group-home-actions .primary{flex:1}.group-home-section{margin-top:14px}.group-settle{display:none}body:has(#page-group.active) .app-footer{display:none}}

/* Shared River & Rail pickers */
.rr-picker{position:relative;display:block;width:100%;min-width:0}
.group-home-section-head>.rr-picker{width:auto;flex-shrink:0}
.rr-picker-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 12px;border:1px solid #41574a;border-radius:9px;background:#13251b;color:#efebde;font:600 14px 'DM Sans',sans-serif;text-align:left;cursor:pointer}
.rr-picker-trigger::after{content:"";width:7px;height:7px;border:solid #d9bd83;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 4px;flex:none}
.rr-picker-trigger[aria-expanded="true"]{border-color:#bda16d}
.rr-picker-trigger:disabled{opacity:.55;cursor:default}
.rr-picker-panel{position:absolute;z-index:30;right:0;top:calc(100% + 6px);width:max-content;min-width:100%;max-width:min(78vw,340px);padding:5px;border:1px solid #536050;border-radius:10px;background:#14261c;box-shadow:0 14px 35px #0009}
.rr-picker-panel:not(.rr-calendar){max-height:220px;overflow:auto}
.rr-picker-option{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;background:transparent;border-radius:6px;color:#efebde;text-align:left;min-height:42px;width:100%;padding:7px 9px;font:600 13px 'DM Sans',sans-serif;cursor:pointer}
.rr-picker-option[aria-pressed="true"]{background:#2a3b28;color:#eed499}
.rr-picker-option[aria-pressed="true"]::after{content:"✓";color:#eed499}
.rr-picker-option:hover,.rr-calendar-day:hover,.rr-calendar-nav:hover{background:#263c2d}
.rr-picker :is(button):focus-visible{outline:2px solid #e0c58a;outline-offset:-2px}
.rr-calendar{position:relative;top:auto;margin-top:6px;width:100%;max-width:100%;padding:8px;box-shadow:none}
.rr-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:4px;color:#e4c78c;font-size:13px}
.rr-calendar-nav,.rr-calendar-day{min-height:37px;min-width:0;border:0;border-radius:6px;background:transparent;color:#eee8d9;cursor:pointer;font:600 12px 'DM Sans',sans-serif}
.rr-calendar-nav{min-width:42px;font-size:20px;color:#dec388}
.rr-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center;align-items:center}
.rr-calendar-grid>span{padding:6px 0;color:#b8c8bc;font-size:11px}
.rr-calendar-day[aria-current="date"]{box-shadow:inset 0 0 0 1px #baa16b}
.rr-calendar-day[aria-pressed="true"]{background:#ddc188;color:#132218}
#game-modal{overflow:auto}#game-modal .modal{margin:auto}
#game-date-picker{margin:-7px 0 10px}

.session-state{display:inline-flex;border:1px solid #786c49;border-radius:100px;padding:5px 9px;color:#e4c78c;font-size:12px;white-space:nowrap}
.session-state[data-state="completed"]{color:#a8dbb0;border-color:#4c7255}
.session-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.82fr) minmax(0,.88fr) minmax(0,.85fr);gap:6px;align-items:center;min-height:46px;padding:8px 13px;border-bottom:1px solid #334538;color:#eae7dc;font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
.session-columns>:first-child{text-align:left;overflow-wrap:anywhere}
.session-labels{min-height:35px;color:#bac7bd;font-size:11px}.session-totals{border-bottom:0;background:#182b20}
.session-actions{display:flex;gap:8px;margin-top:12px}.session-actions .button{flex:1;min-height:44px;border-radius:9px}
.session-complete{margin-top:10px}.session-warning{color:#eab29d;font-size:13px}
@media(max-width:650px){.session-home .group-home-header{display:flex;align-items:flex-start}.session-state{font-size:10px}.session-columns{padding-inline:8px;gap:4px;font-size:11px}.session-labels{font-size:10px}body:has(#page-game.active) .app-footer{display:none}}
.rr-confirm{max-width:calc(100% - 40px);color:#f0ebdf;margin:auto;border-radius:14px}
.rr-confirm::backdrop{background:#07120ccb}
.rr-confirm form{display:flex;gap:8px}.rr-confirm form button{flex:1;min-height:42px}
.player-choice input{accent-color:#d3b77e;min-width:18px;min-height:18px}
.modal input[type="number"]{appearance:textfield}
.modal input[type="number"]::-webkit-inner-spin-button,.modal input[type="number"]::-webkit-outer-spin-button{appearance:none;margin:0}

/* A calendar affordance, not the chevron used by option menus. */
#game-date-trigger::after{
  width:20px;height:20px;margin:0 0 0 auto;border:0;transform:none;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dfc38a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M7.5 3.5v4m9-4v4m-13 3h17m-12 4h.01m3.49 0h.01m3.49 0h.01m-7 3h.01m3.49 0h.01'/%3E%3C/svg%3E");
}
#game-date-trigger:hover{border-color:#bda16d;background-color:#192d21}
#game-date-picker .rr-calendar{margin-top:7px;border-color:#675e45;background:#14261c;box-shadow:0 10px 24px #08110c60}

/* Table-name availability at verified sign-in. */
.account-modal .account-name-label{margin-bottom:6px}
.account-modal #profile-submit{margin-top:13px}
.account-name-status{font-size:12px;line-height:1.45;color:#aeb8ae;margin-top:6px}
.account-name-status:empty{margin:0}
.account-name-status[data-state="taken"],#account-name-mark[data-state="taken"]{color:#ff9b94}
.account-name-status[data-state="available"]{color:#a3e6b4}
#account-name-mark[data-state="available"]{color:#d5c395}

/* Game-level first buy-in minimum. */
.modal .minimum-buy-in-toggle{display:flex;align-items:center;gap:9px;margin:14px 0;min-height:34px;cursor:pointer}
.modal .minimum-buy-in-toggle input{width:17px;height:17px;margin:0;accent-color:#d1b477;cursor:pointer}
.modal #new-game-minimum-field[hidden],.buy-in-minimum-hint[hidden]{display:none}
.buy-in-minimum-hint{margin:6px 0 12px;color:#cbb992;font-size:12px;line-height:1.4}

.session-complete:disabled,.session-complete:disabled:hover{opacity:.55;cursor:not-allowed;text-decoration:none}

.session-state[data-state="cancelled"]{color:#ffb9b7;border-color:#975852}
.session-cancel.button,.rr-confirm .button[data-danger="true"]{background:#a52d34;border-color:#c55156;color:#fff}
.session-cancel.button:hover,.rr-confirm .button[data-danger="true"]:hover{background:#bb3941;border-color:#da6b71;color:#fff}
.session-cancel.button{width:100%;min-height:56px;margin-top:14px;font-size:15px;font-weight:700}
.session-cancel.button[hidden],#session-players-section[hidden]{display:none}
.session-cancel.button:disabled{opacity:.6;cursor:wait}
