
:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#0e0e12;color:#f6f3ef;--muted:#b9b4bd;--line:#333039;--gold:#e7c58c}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}[hidden]{display:none!important}.preview{padding:9px 22px;text-align:center;font-size:12px;letter-spacing:.04em;background:#28221a;color:#e8cfa4}.shell{max-width:1200px;margin:auto;padding:0 32px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px 0;border-bottom:1px solid var(--line)}.brand{font-family:Georgia,serif;font-size:27px}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;color:var(--gold);font-weight:700;margin:0 0 9px}.muted{color:var(--muted);font-size:14px;line-height:1.6}h1{font-family:Georgia,serif;font-size:clamp(32px,5vw,48px);font-weight:400;letter-spacing:-.025em;margin:10px 0 16px}h2{font-size:21px;font-weight:600;margin:0 0 12px}h3{font-size:16px;margin:0 0 8px}p{line-height:1.6}.intro{padding:42px 0 25px;max-width:710px}.badge{display:inline-block;padding:5px 10px;border:1px solid #685537;border-radius:100px;font-size:11px;color:var(--gold)}.btn{border:1px solid #655b49;background:var(--gold);color:#211c15;border-radius:8px;padding:11px 17px;font-weight:650}.secondary{background:transparent;color:#eee;border-color:#49444f}.small{font-size:12px;padding:8px 12px}.grid{display:grid;grid-template-columns:1.5fr 1fr;gap:20px}.panel{background:#17161d;border:1px solid var(--line);border-radius:14px;padding:25px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.stack{display:grid;gap:16px}.divider{height:1px;background:var(--line);margin:22px 0}.login{max-width:460px;margin:42px auto}.login label{display:block;margin:20px 0 8px;font-size:14px}input,select{width:100%;border:1px solid #514954;border-radius:8px;background:#100f15;color:#fff;padding:12px}.login .btn{width:100%;margin-top:22px}.tabs{display:flex;gap:8px;margin-bottom:28px;flex-wrap:wrap}.tabs button{border:1px solid var(--line);border-radius:100px;background:transparent;color:var(--muted);padding:10px 18px}.tabs button[aria-pressed=true]{background:#e7c58c;color:#211c15;border-color:#e7c58c}.notice{border-left:3px solid var(--gold);padding:10px 16px;background:#211e22;color:#d9d1c8;font-size:14px}.upload{border:1px dashed #706250;border-radius:10px;padding:26px 18px;text-align:center;margin:20px 0}.upload input{font-size:13px;margin:15px 0;background:#111016}.actions{display:flex;gap:10px;flex-wrap:wrap}.status{margin:18px 0;padding:12px 16px;border-radius:8px;background:#242128;color:#e9dbbd}.error{background:#341f27;color:#ffb9c5}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:var(--muted);font-weight:500}td,th{padding:12px 8px;border-bottom:1px solid var(--line)}td{overflow-wrap:anywhere}ul{padding-left:20px;line-height:1.8}.stat{font-family:Georgia,serif;font-size:36px;color:var(--gold)}footer{margin:38px 0;padding:20px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.account{font-size:13px;text-align:right}.view-label{color:var(--muted);font-size:12px;margin-bottom:10px}@media(max-width:720px){.shell{padding:0 18px}.grid{grid-template-columns:1fr}.panel{padding:20px}header{padding:22px 0}.brand{font-size:22px}.intro{padding:28px 0 20px}.account span{display:block;margin-bottom:8px}.login{margin-top:28px}}
.grid{align-items:start}.stack{align-content:start}.intro{padding:22px 0 12px}h1{font-size:34px;margin:7px 0 10px}dialog{max-width:440px;width:calc(100% - 36px);border:1px solid var(--gold);border-radius:14px;padding:28px;background:#211d26;color:#fff;box-shadow:0 20px 90px #0009}dialog::backdrop{background:#0009}dialog[data-error="true"]{border-color:#ef829a}.account{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.account select{width:auto;max-width:240px}.account .view-label{margin:0}.admin-content{max-width:1000px}.event-entry{padding:16px 0;border-bottom:1px solid var(--line)}@media(max-width:720px){header{align-items:flex-start;flex-direction:column}.account{justify-content:flex-start}.row{flex-wrap:wrap}.row>div{flex:1;min-width:180px}.tabs button{border-radius:8px;text-align:left}.account select{max-width:210px}}#event-editor{max-width:850px;max-height:90vh;overflow:auto}#event-editor label{display:block;margin:14px 0 7px}#event-editor .divider{display:none}.event-entry .actions{margin-top:12px}dialog form{margin:0}.ledger-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px}.task-button{border:1px solid #665740;border-radius:10px;background:#211d26;color:#fff;text-align:left;padding:20px}.task-button strong,.task-button span{display:block}.task-button span{font-size:13px;color:var(--muted);margin-top:10px;line-height:1.5}#ledger-window{max-width:950px;max-height:90vh;overflow:auto}.modal-heading{border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:18px}#ledger-window label{display:block;margin:15px 0 7px}#ledger-progress{color:var(--gold)}@media(max-width:720px){.ledger-actions{grid-template-columns:1fr}#ledger-window{padding:18px}.modal-heading>div{min-width:0}table{font-size:12px}}a{color:var(--gold)}a.btn{text-decoration:none;display:inline-block}#player-history a{font-weight:650}#player-event-screen{min-height:65vh}#player-event-screen>.btn{margin:5px}
#branch-nav{gap:14px;align-items:stretch;margin-bottom:8px}
.branch-mark{display:inline-flex;align-items:center;justify-content:center;gap:.28em;padding:16px 20px;min-height:54px;background:#121117;border:1px solid #38343f;border-radius:8px;color:#fff;text-decoration:none;font-size:17px;font-weight:800;line-height:1.3;transition:background .15s,border-color .15s;white-space:nowrap}
.branch-mark strong{color:var(--branch-accent);font-weight:inherit}
.branch-mark:hover{background:#211e27;border-color:var(--branch-accent)}
.branch-ledger{--branch-accent:#75d4d1;font-family:Georgia,serif;letter-spacing:.035em;border-bottom:3px double var(--branch-accent)}
.branch-poker{--branch-accent:#ec239e;font-family:Arial,sans-serif;letter-spacing:-.035em;border-bottom:3px solid var(--branch-accent)}
.branch-consig{--branch-accent:#e7c58c;font-size:15px;letter-spacing:.07em;border-top:2px solid var(--branch-accent)}
@media(max-width:560px){#branch-nav{display:grid;grid-template-columns:1fr}.branch-mark{width:100%;padding:14px 12px}}

label{display:block;margin:16px 0 8px} .account-list{margin-top:20px} .account-list button{margin-top:10px} dialog{max-height:90vh;overflow:auto} .login .actions .btn{margin-top:8px} .account-form{max-width:650px} .form-actions{margin-top:24px} #feedback p{white-space:pre-wrap}

input[type="checkbox"]{width:auto;display:block;margin:8px 0 18px;accent-color:var(--gold)} button:disabled{cursor:not-allowed}
#editor:has(.stack){max-width:740px}#editor .stack{margin:18px 0}#editor h3{margin-top:20px}#editor .panel{padding:16px}#editor .panel button{margin-top:14px}#editor .form-actions{margin-right:8px}
.poker-panel{margin-top:20px}.playing-cards{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.playing-card{background:#fff;color:#111;min-width:46px;padding:12px 8px;border-radius:6px;font-size:23px;font-weight:800;text-align:center}.playing-card.red{color:#b91546}#poker-screen{padding-top:20px}#poker-content .actions{margin:12px 0}
#editor.wide{max-width:1000px}.table-scroll{overflow-x:auto;margin:15px 0 25px}#stats-section select{max-width:650px}#editor.wide h3{margin-top:20px}

body.poker-embedded{min-height:0;background:#151024}.poker-embedded .shell{max-width:none;margin:0;padding:12px}.poker-embedded .shell>header,.poker-embedded footer,.poker-embedded #staging-status,.poker-embedded #branch-nav,.poker-embedded #player,.poker-embedded #admin{display:none!important}.poker-embedded .shell>main{margin:0}.poker-embedded .btn{background:#ff58d0;color:#180b24}.poker-embedded .btn.secondary{background:#242038;color:#82eaff;border-color:#655586}.poker-embedded #embedded-player-home h2{color:#ff8ce1}.poker-embedded .event-entry{border-color:#655586}.poker-embedded dialog{max-height:85vh}.poker-embedded #login{max-width:500px;margin:auto}

.playing-card{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex-shrink:0;line-height:1.2}.playing-cards{max-width:100%}.poker-panel,.live-hand{min-width:0}
/* Account and Consigliere workspace, aligned with the HQ navigation. */
body:not(.poker-embedded) .account-shell{--gold:#75ddff;--line:#393141;--muted:#bcb6c9;max-width:1200px;padding:0 28px 36px;width:100%;font-family:Arial,Helvetica,sans-serif}
body:not(.poker-embedded) .account-shell .account-toolbar{padding:16px 0;border-bottom:1px solid #332d3c;min-height:66px;flex-direction:row;align-items:center}
.account-shell .account-toolbar .brand{font:700 14px Arial,Helvetica,sans-serif;color:#bcb4c9}.account-toolbar>div>.eyebrow{display:none}.account-shell .account label{margin:0;font-size:12px;color:#aaa2b6}.account-shell .account select{padding:8px 12px;font-size:13px}
body:has(#site-account-bar button) .account-toolbar #logout,body:has(#site-account-bar button) .account-toolbar #account-name{display:none}
body:not(.poker-embedded) .account-shell .intro{max-width:none;padding:30px 0 22px}.account-shell .intro h1{font:800 clamp(28px,4vw,42px)/1.12 Arial,Helvetica,sans-serif;letter-spacing:-.035em;margin:8px 0 10px;overflow-wrap:anywhere}.account-shell .intro h1 em{font-style:normal;color:#c380ff}.account-shell .intro p:last-child{margin-bottom:0}.account-shell .eyebrow{color:#6bddff;font-size:10px;letter-spacing:.16em}
.account-shell .account-shortcuts,.account-shell .admin-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 24px}
body .account-shell .hub-tile{position:relative;display:flex;align-items:center;gap:15px;width:100%;min-height:100px;text-align:left;text-decoration:none;box-sizing:border-box;padding:18px;border:1px solid #51455d;border-radius:11px;background:linear-gradient(115deg,#1b1624,#11151c)!important;color:#fff!important;box-shadow:inset 0 1px #ffffff0c;overflow:hidden}
body .account-shell .hub-tile:hover{border-color:#9a70bd;background:linear-gradient(115deg,#2b1d37,#171b26)!important}
body .account-shell .hub-tile[aria-pressed=true]{border-color:#d348d4;box-shadow:inset 3px 0 #e243ce;background:linear-gradient(110deg,#321341,#171522)!important}
.account-shell .hub-icon{color:#72dcff;flex:0 0 32px;width:32px;height:36px}.account-shell .hub-icon svg{width:32px;height:36px}.account-shell .hub-label{min-width:0}.account-shell .hub-label strong{display:block;font-size:17px;font-weight:800;line-height:1.25}.account-shell .hub-label small{display:block;font-size:12px;font-weight:400;line-height:1.45;color:#beb6cc;margin-top:5px}.account-shell .hub-arrow{margin-left:auto;color:#cfc4df;font-size:25px;font-weight:400}.account-shortcuts>:nth-child(2) .hub-icon,#tab-poker .hub-icon{color:#f14acd}.account-shortcuts>:nth-child(3) .hub-icon,#tab-accounts .hub-icon{color:#ad7cff}
.account-shell .account-overview{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.account-shell .panel{background:linear-gradient(120deg,#19151f,#11141c);border-color:#403647;border-radius:12px;padding:22px}.account-shell h2{font-size:20px;font-weight:750}.account-shell .profile-summary p{margin:8px 0;overflow-wrap:anywhere}.account-shell #verification{color:#7bdfdd}.account-shell #profile-role{display:inline-block;border:1px solid #514262;border-radius:6px;padding:3px 8px;font-size:12px}.account-shell .account-history summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer}.account-history summary::-webkit-details-marker{display:none}.account-history summary .eyebrow{display:block;margin-bottom:7px}.account-history summary strong{font-size:20px}.account-history summary>span:last-child{color:#ae7ef4;font-size:25px}.account-history[open] summary{margin-bottom:20px}.account-shell #ledger-history>p{font-size:12px}
body:not(.poker-embedded) .account-shell .btn:not(.secondary){background:linear-gradient(115deg,#ac26df,#d729b1)!important;color:#fff!important;border-color:#d860dd!important}.account-shell .btn.secondary{background:#221b30;color:#84e5ff;border-color:#59436a}.account-shell .btn{font-size:13px;padding:11px 15px;min-height:42px}.account-shell input,.account-shell select{background:#100e18;border-color:#514158}.account-shell input:focus,.account-shell select:focus{border-color:#6bcefa}.account-shell .task-button{background:#191522;border-color:#584066}.account-shell .task-button strong{color:#eee}.account-shell .task-button:hover{border-color:#d94dd1}.account-shell .notice{border-color:#b072ef;background:#20182b;color:#d6cede}
.account-shell #event-list,.account-shell #poker-list,.account-shell #accounts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.account-shell #event-list .event-entry,.account-shell #poker-list .event-entry,.account-shell #accounts .event-entry,.account-shell #ledger-history .event-entry{background:#121019;border:1px solid #37303f;border-radius:10px;padding:17px;min-width:0}.account-shell .event-entry h3,.account-shell #ledger-history .event-entry>a{font-size:16px;font-weight:700;color:#edf5ff;line-height:1.4}.account-shell .event-entry p{font-size:13px;margin:8px 0;color:#bdb5c9}.account-shell .event-entry .btn{margin-top:7px}.account-shell #ledger-history{display:grid;gap:12px}.account-shell .row h2{margin:0}.account-shell .account-form{max-width:none}
@media(max-width:760px){body:not(.poker-embedded) .account-shell{padding:0 16px 26px}.account-shell .account-shortcuts,.account-shell .admin-shortcuts{grid-template-columns:1fr;gap:10px}.account-shell .account-overview,.account-shell #event-list,.account-shell #poker-list,.account-shell #accounts{grid-template-columns:1fr}body .account-shell .hub-tile{min-height:88px;padding:18px}.account-shell .hub-label strong{font-size:20px}.account-shell .hub-icon{flex-basis:36px}.account-shell .panel{padding:18px}body:not(.poker-embedded) .account-shell .account-toolbar{gap:10px;flex-wrap:wrap}.account-shell .account{gap:8px}.account-shell .account-toolbar .brand{font-size:12px}.account-shell .account-toolbar label{display:none}.account-shell .account-toolbar select{max-width:190px}.account-shell .intro h1 em{display:block}.account-shell .intro{padding:24px 0 20px}.account-shell .login{margin:24px auto}.account-shell .login h1{font:800 30px Arial,Helvetica,sans-serif}}
.account-shell #event-list .event-entry .admin-event-date,.account-shell #poker-list .event-entry .admin-event-date{font-size:14px;font-weight:700;color:#7edfff;margin:9px 0;line-height:1.5}
/* Poker operations: focused tasks and compact navigation. */
.poker-admin-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.poker-admin-pane{min-width:0}.poker-admin-pane[data-section=players]{display:grid;grid-template-columns:1fr 1fr;gap:14px}.poker-admin-pane[data-section=players]>input,.poker-admin-pane[data-section=players]>section:not([data-player-name]){grid-column:1/-1}.poker-admin-pane .poker-panel{margin:0 0 14px}.poker-admin-pane[data-section=settings]{padding:24px;border:1px solid #514060;border-radius:12px;background:#171320}.poker-admin-pane .actions{gap:10px}.poker-admin-workspace>h1{font:800 clamp(25px,5vw,38px)/1.2 Arial,sans-serif;color:#f4eeff}.poker-admin-pane .event-entry{padding:16px;border:1px solid #514060;border-radius:10px;margin-top:12px}.poker-admin-pane .event-entry h3{color:#86e5ff}.poker-admin-pane input[type=search]{grid-column:1/-1}.poker-admin-filters{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}.poker-admin-filters input{flex:1;min-width:180px}
/* Dialogs are constrained to the viewport, never the long page underneath. */
body:has(dialog[open]){overflow:hidden}dialog{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px);width:min(560px,calc(100% - 24px));padding:20px;border-color:#b36bd5;background:#18131f;overscroll-behavior:contain}#editor[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 32px)}#editor>.row{flex:none;margin-bottom:14px;align-items:center;flex-wrap:nowrap}#editor-title{font-size:21px;line-height:1.25;overflow-wrap:anywhere}#editor-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:4px 4px 8px}#editor-body button[type=submit],#editor-body>button:last-child{position:sticky;bottom:0;display:block;width:100%;min-height:48px;box-shadow:0 -8px 18px #18131f;background:#c12bd8;color:white;border-color:#ee62e1}dialog input:not([type=checkbox]),dialog select{font-size:16px}dialog input[type=checkbox]{width:24px;height:24px}#feedback{overflow:auto}#feedback-close{position:sticky;bottom:0;min-height:48px;width:100%}
@media(max-width:700px){.poker-admin-nav{grid-template-columns:1fr 1fr;gap:8px}.poker-admin-nav .hub-tile{padding:12px!important;min-height:90px!important;gap:8px!important}.poker-admin-nav .hub-label strong{font-size:16px}.poker-admin-nav .hub-icon{flex-basis:22px;width:22px;font-size:22px}.poker-admin-nav .hub-arrow{display:none}.poker-admin-pane[data-section=players]{grid-template-columns:1fr}dialog,#editor[open]{max-height:calc(100dvh - 24px);padding:16px}.poker-admin-pane .actions>.btn{flex:1;min-width:130px}#editor>.row>h2{flex:1;min-width:0}}

.poker-admin-pane[data-section=players]>.actions{grid-column:1/-1}.poker-admin-filters button[aria-pressed=true]{border-color:#f14acd;background:#36163d;color:#fff}
