html[data-theme="chiaro"]{color-scheme:light;--bg:#f7fbfc;--surface:#fff;--surface2:#eaf6f7;--ink:#102b3b;--muted:#526c7a;--line:#d7e8ed;--accent:#087f91;--accentText:#fff;--header:#fff;--headerInk:#102b3b;--nav:#fff;--glow:#3bb7bd20;--cash:#e8f8f5}
html[data-theme="vetro"]{color-scheme:dark;--bg:#083946;--surface:#114957e8;--surface2:#1a5866;--ink:#f6fcfe;--muted:#c0dce2;--line:#ffffff38;--accent:#5cdce2;--accentText:#063341;--header:#06313e;--headerInk:#fff;--nav:#0b3a47ed;--glow:#80eaf442;--cash:#175d65}
html[data-theme="notte"]{color-scheme:dark;--bg:#071625;--surface:#0d2535;--surface2:#143446;--ink:#f5f9fb;--muted:#b9cdd5;--line:#255065;--accent:#41c6cf;--accentText:#062331;--header:#071827;--headerInk:#fff;--nav:#0a1c2b;--glow:#09b9bf22;--cash:#103d47}
html[data-theme]{background:var(--bg);color:var(--ink)}
html[data-theme] body{min-height:100dvh;background:var(--bg);color:var(--ink)}
html[data-theme="vetro"] body{background:radial-gradient(circle at 85% 0%,#177386 0%,transparent 38%),linear-gradient(165deg,#083946,#062d39 80%);background-attachment:fixed}
html[data-theme="notte"] body{background:radial-gradient(circle at 90% 5%,#10334a 0%,transparent 35%),#071625;background-attachment:fixed}
html[data-theme] header{background:var(--header);color:var(--headerInk);border-bottom:1px solid var(--line);box-shadow:0 8px 32px #00192412}
html[data-theme="vetro"] header{background:#06313edb;backdrop-filter:blur(18px)}
html[data-theme] header p{color:var(--muted)}
html[data-theme] a{color:var(--accent)}
html[data-theme] header a{color:var(--headerInk)}
html[data-theme] .bottom{background:var(--nav);border-color:var(--line);backdrop-filter:blur(18px)}
html[data-theme] .bottom button{color:var(--muted)}
html[data-theme] .bottom button.active{color:var(--accent)}
html[data-theme] .home-title{letter-spacing:-.025em}
html[data-theme] .home-card{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 30px var(--glow),inset 0 1px #ffffff26;transition:transform .18s ease,box-shadow .18s ease}
html[data-theme] .home-card:active{transform:scale(.975)}
html[data-theme="vetro"] .home-card{background:linear-gradient(145deg,#ffffff25,#ffffff0c);backdrop-filter:blur(20px);box-shadow:0 16px 34px #001f2e48,inset 0 1px #ffffff40}
html[data-theme="notte"] .home-card{background:linear-gradient(145deg,#102d40,#0a1d2c);border-color:#1b5269;box-shadow:0 12px 28px #00101966,inset 0 1px #3fb0bd20}
html[data-theme] .home-card strong{color:var(--ink);letter-spacing:-.02em}
html[data-theme] .home-card span:last-child{color:var(--muted);font-size:14px}
html[data-theme] .home-grid-two .home-card{min-height:155px;padding:15px;gap:6px}
html[data-theme] .home-grid-two .home-card strong{font-size:17px}
html[data-theme] .home-grid-two .home-card span:last-child{font-size:13px}
html[data-theme] .home-card .symbol.icon3d{width:68px;height:68px;flex:none;display:block;background-color:transparent;border:0;border-radius:0;box-shadow:none;background-image:url('/home-icons-3d.png');background-size:400% 200%;background-repeat:no-repeat}
html[data-theme] .home-grid-two .home-card .symbol.icon3d{width:62px;height:62px}
.icon3d-turni{background-position:0% 0%}.icon3d-prodotti{background-position:33.333% 0%}.icon3d-fornitori{background-position:66.667% 0%}.icon3d-cassa{background-position:100% 0%}
.icon3d-ordini{background-position:0% 100%}.icon3d-spese{background-position:33.333% 100%}.icon3d-bilancio_asd{background-position:66.667% 100%}.icon3d-bilancio_runts{background-position:100% 100%}
html[data-theme] .stat,html[data-theme] .row,html[data-theme] .history,html[data-theme] .cash-form,html[data-theme] .cash-entry,html[data-theme] .order-row,html[data-theme] .order-history,html[data-theme] .shift-calendar,html[data-theme] .shift-summary,html[data-theme] .weekly-list,html[data-theme] .panel,html[data-theme] .staff-switch,html[data-theme] .view-banner,html[data-theme] .category-group{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme] .stat strong,html[data-theme] .qty,html[data-theme] .cash-entry strong{color:var(--accent)}
html[data-theme] .muted,html[data-theme] .meta,html[data-theme] .stat span,html[data-theme] .qty small,html[data-theme] small,html[data-theme] .staff-switch p{color:var(--muted)}
html[data-theme] .cash-home-balance,html[data-theme] .cash-current,html[data-theme] .treasury-balance,html[data-theme] .bank-section .treasury-balance{background:var(--cash);border-color:var(--line);color:var(--ink)}
html[data-theme] .cash-home-balance strong,html[data-theme] .cash-current strong{color:var(--ink)}
html[data-theme] .cash-home-balance small,html[data-theme] .cash-current small{color:var(--muted)}
html[data-theme] .weekly-alert,html[data-theme] .notice{background:var(--surface2);border-color:var(--line);color:var(--ink)}
html[data-theme] .weekly-alert strong,html[data-theme] .weekly-alert .weekly-close{color:var(--accent)}
html[data-theme] .primary,html[data-theme] button:not(.stat):not(.secondary):not(.danger):not(.chip):not(.iconbtn):not(.home-card):not(.shift-badge):not(.shift-day-add):not(.shift-person):not(.weekly-close):not([data-view]){background:var(--accent);color:var(--accentText);border-color:var(--accent)}
html[data-theme] .secondary,html[data-theme] .iconbtn,html[data-theme] .chip,html[data-theme] .home-move-controls button{background:var(--surface2);color:var(--ink);border-color:var(--line)}
html[data-theme] .chip.active{background:var(--accent);color:var(--accentText)}
html[data-theme] input,html[data-theme] select,html[data-theme] textarea{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] input::placeholder,html[data-theme] textarea::placeholder{color:var(--muted);opacity:.85}
html[data-theme] dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
html[data-theme] .suggestions,html[data-theme] .suggestions button{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .suggestions button:hover,html[data-theme] .suggestions button:focus{background:var(--surface2)}
html[data-theme] .shift-weekdays span,html[data-theme] .shift-month-controls span{color:var(--muted)}
html[data-theme] .shift-day{border-color:var(--line)}
html[data-theme] .shift-day.outside{background:var(--surface2)}
html[data-theme] .shift-day-add{color:var(--ink)}
html[data-theme] .shift-day.today{background:var(--cash)}
html[data-theme] .shift-person{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .shift-person.selected{border-color:var(--person-color)}
html[data-theme] .shift-total,html[data-theme] .doc,html[data-theme] .entry,html[data-theme] th,html[data-theme] td{border-color:var(--line)}
html[data-theme] th,html[data-theme] .review,html[data-theme] .warning{background:var(--surface2)}
html[data-theme] .view-banner{background:var(--cash)}
html[data-theme] .view-banner span{color:var(--muted)}
html[data-theme] .card,html[data-theme] .category-group,html[data-theme] .suggestions,html[data-theme] #editor form,html[data-theme] #editor h2,html[data-theme] #editor .actions{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .row .meta,html[data-theme] .category-group h4 span,html[data-theme] .doc small,html[data-theme] .group-month,html[data-theme] .empty{color:var(--muted)}
html[data-theme] .category-group h4{color:var(--ink)}
html[data-theme] .button{background:var(--accent);color:var(--accentText)}
html[data-theme] .button.secondary,html[data-theme] button.secondary{background:var(--surface2);color:var(--ink)}
html[data-theme] .thumb{background:var(--surface2);color:var(--accent)}
html[data-theme] .brand-footer{color:var(--muted)}
html[data-theme] .brand-footer a{color:var(--accent)}
html[data-theme="notte"] .home-card{border-top-color:#29a7b8}
html[data-theme="chiaro"] .home-card{box-shadow:0 10px 24px #0d647417}
html[data-theme="chiaro"] .bottom{box-shadow:0 -4px 24px #17435b0b}
@media(max-width:520px){html[data-theme] .home-grid-two .home-card span:last-child{display:none}html[data-theme] .home-grid-two .home-card{min-height:138px}html[data-theme] .home-grid-two .home-card .symbol.icon3d{width:62px;height:62px}}
@media print{html[data-theme],html[data-theme] body{background:#fff!important;color:#111!important}html[data-theme] .panel,html[data-theme] .row{background:#fff!important;color:#111!important;border-color:#ccc!important}}

/* Developer forms follow the same surface palette as the rest of the app. */
html[data-theme] .developer-page section,html[data-theme] .developer-page .message{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme] .developer-page h2,html[data-theme] .developer-page label{color:var(--ink)}
html[data-theme] .developer-page .venue,html[data-theme] .developer-page .user{border-color:var(--line)}
html[data-theme] .developer-page .user button{background:var(--surface2);color:var(--ink)}

html[data-theme] .home-card .symbol.icon3d-tornei{background-image:url('/tournaments-3d.png');background-size:contain;background-position:center}

.tournament-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}.tournament-games .home-card{display:flex;align-items:center;justify-content:center;flex-direction:column;padding:18px;gap:12px;min-height:180px}.tournament-games .game-icon{display:block;width:112px;height:112px;max-width:100%;background-image:url('/tournament-games-3d.png');background-size:200% 200%;background-repeat:no-repeat}.game-icon-freccette{background-position:0 0}.game-icon-biliardo{background-position:100% 0}.game-icon-scopa{background-position:0 100%}.game-icon-pinnacola{background-position:100% 100%}

.dart-setup,.dart-controls{padding:18px;border-radius:18px}.dart-setup textarea{width:100%;font:inherit;padding:12px;border-radius:10px}.dart-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.dart-player{padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);min-width:0}.dart-player strong{display:block;overflow-wrap:anywhere}.dart-player b{display:block;font-size:48px;line-height:1.2;margin:8px 0}.dart-player span{font-size:12px;color:var(--muted)}.dart-player.dart-active{border:2px solid var(--accent);background:var(--cash)}.dart-checkout{color:var(--accent);font-weight:700}.dart-score-input{display:block;text-align:center;font-size:40px;padding:10px;border:1px solid var(--line);border-radius:12px;margin:12px 0}.dart-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.dart-keypad button{min-height:54px;font-size:23px}.dart-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.dart-hit-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.dart-hit-grid button{min-height:44px;padding:10px 3px}.dart-confirm{width:100%;margin-top:10px}.dart-double-label{display:flex;align-items:center;gap:8px;font-size:13px}.dart-double-label input{width:22px;height:22px;flex:none}.dart-history{margin-top:18px;padding:14px;border-radius:14px}.dart-status{min-height:24px;font-weight:650}#dartBoard{display:block;width:min(100%,360px);margin:auto;touch-action:manipulation}#dartBoard [data-dart-hit]{cursor:pointer}#dartBoard [data-dart-hit]:active{opacity:.6}
.dart-name-row{display:flex;gap:10px;align-items:end;margin-bottom:12px}.dart-name-row .field{flex:1;min-width:0;margin:0}.dart-name-row input{width:100%}.dart-name-row button{margin-bottom:1px;min-height:44px}.dart-setup .choice{display:flex;gap:10px;align-items:center;margin:18px 0}.dart-setup .choice input{width:20px;height:20px}.dart-setup>button.primary{display:block;width:100%;margin-top:18px}.cricket-marks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-top:12px}.cricket-marks span{color:var(--ink)}.cricket-marks b{display:inline;font-size:18px;margin:0}
html[data-theme] body.scoreboard-page>header{padding:7px 12px;position:relative;min-height:46px;display:flex;align-items:center;gap:9px}body.scoreboard-page>header p{display:none}body.scoreboard-page>header h1{font-size:13px;line-height:1.2;margin:0;max-height:32px;overflow:hidden}body.scoreboard-page>header .venue-logo.gargano-logo{width:48px;height:30px;float:none;margin:0;flex:none}body.scoreboard-page .wrap{padding:8px 10px 80px}body.scoreboard-page .page-back{padding:6px 10px;margin-bottom:5px;font-size:12px}body.scoreboard-page .section-title h2{font-size:15px}body.scoreboard-page .section-title button{font-size:12px;padding:7px 9px}body.scoreboard-page .dart-players{margin:6px 0;gap:7px;position:sticky;top:0;z-index:2;background:var(--bg);padding:3px 0}body.scoreboard-page .dart-player{padding:7px 9px;position:relative}body.scoreboard-page .dart-player strong{font-size:12px;line-height:1.25;min-height:30px;margin-right:32px}body.scoreboard-page .dart-player b{font-size:34px;margin:2px 0;line-height:1.05}body.scoreboard-page .dart-player span{font-size:10px}body.scoreboard-page .dart-controls{padding:9px}body.scoreboard-page .dart-controls p{margin:6px 0;font-size:12px}body.scoreboard-page .dart-controls .tools{margin:5px 0;gap:6px}body.scoreboard-page .dart-controls .tools button{padding:8px 10px;font-size:12px}body.scoreboard-page .dart-score-input{font-size:28px;margin:6px 0;padding:5px}body.scoreboard-page .dart-keypad{gap:5px;margin:7px 0}body.scoreboard-page .dart-keypad button{min-height:38px;font-size:18px;padding:6px}body.scoreboard-page .dart-quick{gap:5px}body.scoreboard-page .dart-quick button{padding:7px 3px;font-size:12px}body.scoreboard-page .dart-controls .field{margin:4px 0;font-size:11px}body.scoreboard-page .dart-controls select{padding:5px;font-size:12px}body.scoreboard-page .dart-double-label{font-size:10px}body.scoreboard-page .dart-confirm{padding:9px;margin-top:5px}body.scoreboard-page #dartBoard{width:min(100%,240px)}body.scoreboard-page .dart-hit-grid{gap:4px}body.scoreboard-page .dart-hit-grid button{min-height:30px;padding:5px;font-size:12px}.dart-avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;position:absolute;top:7px;right:7px}.dart-initials{display:grid;place-items:center;background:var(--surface2);color:var(--ink)!important;font-weight:700}.dart-photo-upload{position:relative;border:1px solid var(--line);border-radius:9px;padding:11px 8px;white-space:nowrap;font-size:12px;cursor:pointer}.dart-photo-upload input{position:absolute;inset:0;width:100%;opacity:0;cursor:pointer}body.scoreboard-page .dart-player .cricket-marks b{font-size:15px;display:inline}body.scoreboard-page .dart-status{margin:5px 0;min-height:15px;font-size:12px}
body.scoreboard-page .bottom{display:none}body.scoreboard-page .wrap{padding-bottom:130px}body.scoreboard-page .dart-mode-bar{position:fixed;left:0;right:0;bottom:0;z-index:5;background:var(--nav);padding:8px 12px calc(8px + env(safe-area-inset-bottom));margin:0!important;display:flex;justify-content:center;border-top:1px solid var(--line)}body.scoreboard-page .dart-mode-bar button{flex:1;max-width:280px;min-height:40px}body.scoreboard-page .dart-confirm{position:fixed;left:12px;right:12px;bottom:calc(62px + env(safe-area-inset-bottom));width:calc(100% - 24px);z-index:5;min-height:44px;margin:0;box-shadow:0 0 0 7px var(--bg)}body.scoreboard-page #dartBoard{width:min(100%,390px)}.dart-manual{margin-top:7px}.dart-manual summary{font-size:12px;color:var(--muted);padding:7px;cursor:pointer}body.scoreboard-page .dart-leg-info{font-size:11px;margin:5px 0;display:flex;align-items:center;justify-content:space-between;gap:6px}body.scoreboard-page .dart-leg-info button{padding:5px 7px;font-size:10px}body.scoreboard-page .dart-controls .dart-mode-bar button{font-size:13px}body.scoreboard-page .dart-controls .pair{margin-bottom:12px}

html[data-theme] .home-card .symbol.icon3d-frigoriferi{background-image:url('/fridges-3d.png');background-size:contain;background-position:center}
.fridge-reorder{display:flex;flex-wrap:wrap;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.fridge-reorder .field{flex:1;min-width:180px}.stock-alert{border:2px solid var(--accent)}

.low-stock-dialog{width:min(620px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid #719da3;border-radius:20px;padding:18px;background:var(--surface);color:var(--ink)}.low-stock-dialog::backdrop{background:#001820aa}.low-stock-dialog input,.low-stock-dialog select{width:100%;box-sizing:border-box}.stats button.stat{font:inherit;text-align:left;cursor:pointer;color:inherit}

html[data-theme] .price-grid{background:var(--surface2);color:var(--ink);border:1px solid var(--line)}html[data-theme] .price-grid .price-title,html[data-theme] .price-grid label{color:var(--ink)}html[data-theme] .price-grid .muted{color:var(--muted)}

[data-open-cash]{cursor:pointer}[data-open-cash]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.tournament-dialog textarea{width:100%;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--ink);font:inherit;font-size:16px;resize:vertical}.tournament-entry h3{margin:0;overflow-wrap:anywhere}.tournament-status{font-size:14px;font-weight:700;color:var(--ink);padding:7px 9px;border:1px solid var(--line);border-radius:9px}.tournament-entry .section-title{flex-wrap:wrap}.tournament-notes{white-space:pre-wrap;overflow-wrap:anywhere}.tournament-entry li{padding:4px 0}

html[data-theme] .home-card .symbol.icon3d-listino{background-image:url('/pricelist.svg');background-size:contain;background-position:center}

.tournament-games .game-icon-biliardino{background-image:url('/biliardino-icon.png');background-size:contain;background-position:center;background-repeat:no-repeat}

.tournament-games .game-icon-biliardo{background-image:url("/biliardo-icon.png");background-size:contain;background-position:center}.game-guide{max-width:850px;margin:auto}.game-guide .panel{padding:20px;margin:16px 0}.game-guide h3{margin-top:0}.guide-links{display:grid;gap:12px}.guide-links a{display:block;padding:14px;border:1px solid #d6dee5;border-radius:12px;text-decoration:none;overflow-wrap:anywhere}.guide-links a span{display:block;font-size:13px;margin-top:5px;color:var(--muted,#64748b)}.game-guide details{margin:14px 0}.game-guide summary{cursor:pointer;font-weight:700;padding:8px 0}.guide-example{border-left:4px solid #168a88;padding:10px 14px;background:rgba(22,138,136,.07);border-radius:4px}.game-guide li{margin:9px 0}.game-guide p{line-height:1.6}

.icon3d-forniture{background-position:33.333% 0%}

.icon3d-esposti{background-position:33.333% 0%}

.foosball-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.foosball-team{padding:18px;border:2px solid #477783;border-radius:18px;background:var(--surface,#fff);min-width:0;text-align:center}.foosball-team:nth-child(2){border-color:#b6863a}.foosball-member{display:flex;justify-content:center;align-items:center;gap:10px;margin:10px 0;overflow-wrap:anywhere}.foosball-member img,.foosball-avatar{width:56px;height:56px;flex-shrink:0;object-fit:cover;border-radius:50%}.foosball-avatar{display:grid;place-items:center;background:#174b57;color:white;font-size:20px}.foosball-member strong{min-width:0}.foosball-team output{display:block;font-size:clamp(52px,12vw,100px);font-weight:800;font-variant-numeric:tabular-nums;line-height:1.2;margin:16px 0}.foosball-team .tools{justify-content:center}.foosball-team form{text-align:left;margin:18px 0}.foosball-winner{box-shadow:0 0 0 3px #e7b64e}.foosball-pick{padding:8px 0}.foosball-pick input{max-width:100%}#foosballSetup fieldset{border:1px solid #78949d;border-radius:12px;margin:14px 0;padding:14px}#foosballSetup legend{font-weight:700}#app:fullscreen{background:var(--page,#073641);padding:24px;overflow:auto}#app:fullscreen .foosball-board{max-width:1400px;margin:20px auto}#app:fullscreen .foosball-team output{font-size:clamp(80px,18vw,230px)}@media(max-width:540px){.foosball-board{gap:8px}.foosball-team{padding:10px}.foosball-member{flex-direction:column;font-size:14px}.foosball-team button{width:100%}.foosball-team .field{font-size:14px}.foosball-team input,.foosball-team select{width:100%}}

.foosball-board.foosball-multi{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}

.daily-grid{border-collapse:collapse;min-width:640px;width:100%;font-size:14px}.daily-grid th,.daily-grid td{border:1px solid var(--line,#426675);padding:10px;text-align:center}.daily-grid tbody th{position:sticky;left:0;background:var(--surface,#124653);z-index:1}.daily-grid button{font-size:14px;width:100%;min-height:64px}.daily-grid input[type=checkbox]{width:24px;height:24px}.daily-grid .daily-lost{background:#793d1e;color:white;opacity:1}.daily-grid button:disabled{color:inherit;opacity:1}

.daily-pairs-round{margin:16px 0;border:1px solid var(--line,#477783);border-radius:18px;overflow:hidden;background:var(--surface,#124653);color:var(--ink,#f3fdff)}.daily-pairs-round summary{padding:16px;font-weight:700;cursor:pointer;font-size:17px}.daily-pair-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px;padding:0 14px 14px}.daily-pair-card{padding:16px;border:1px solid var(--line,#477783);border-left:4px solid var(--accent,#53d7dd);border-radius:14px;background:var(--surface2,#185563);min-width:0}.daily-pair-heading{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:14px;color:var(--muted,#b8d5da)}.daily-pair-card strong{display:block;font-size:21px;line-height:1.45;overflow-wrap:anywhere}.daily-pair-plus{color:var(--accent,#53d7dd);padding:0 3px}.daily-pair-card small{display:block;font-size:14px;margin-top:9px}.daily-pair-result{font-weight:700}.daily-history-label{font-weight:650;margin:22px 0 12px}.daily-grid button small{display:block;font-size:14px;line-height:1.4}.daily-grid-pair{display:block;font-size:16px;line-height:1.4;min-width:130px;max-width:240px;white-space:normal;overflow-wrap:anywhere;margin:6px 0}.daily-grid button .daily-pair-plus{color:inherit}

html,body{touch-action:pan-x pan-y}button,a,input,select,textarea{touch-action:manipulation}input,select,textarea{font-size:16px!important}.daily-grid{font-size:16px}.daily-grid thead th{white-space:nowrap}.daily-grid .daily-drink-column{min-width:75px;width:85px;font-size:14px;white-space:normal}.daily-grid input[type=checkbox]{width:18px;height:18px;margin:0}.daily-date-field{max-width:210px}.daily-date-field input{min-width:0;max-width:100%;box-sizing:border-box;height:46px;padding:8px 10px!important}.daily-manual-pair{border:1px solid var(--line,#477783);border-radius:14px;margin:18px 0;padding:12px;min-width:0}.daily-manual-pair legend{font-weight:700;font-size:16px}.daily-draw-animation{width:min(400px,calc(100vw - 32px));padding:32px 24px;text-align:center;border:1px solid var(--line,#477783);border-radius:24px;background:var(--surface,#124653);color:var(--ink,#f3fdff)}.daily-draw-animation::backdrop{background:#00131dd9;backdrop-filter:blur(8px)}.daily-draw-animation [data-draw-name]{font-size:28px;font-weight:700;min-height:40px;overflow-wrap:anywhere}.daily-draw-orbit{font-size:56px;color:var(--accent,#53d7dd);animation:daily-orbit 1.2s ease-in-out infinite}@keyframes daily-orbit{0%{transform:rotate(0) scale(.8)}50%{transform:rotate(180deg) scale(1.15)}100%{transform:rotate(360deg) scale(.8)}}@media(prefers-reduced-motion:reduce){.daily-draw-orbit{animation:none}}

html[data-theme] .daily-grid button,html[data-theme] .daily-grid button:disabled{background:#ecf8fa!important;color:#102e3a!important;border:1px solid #a5d4dd!important;opacity:1!important;-webkit-text-fill-color:#102e3a!important;box-shadow:none!important}html[data-theme] .daily-grid button strong,html[data-theme] .daily-grid button small,html[data-theme] .daily-grid button span{color:#102e3a!important;-webkit-text-fill-color:#102e3a!important;opacity:1!important}html[data-theme] .daily-grid button.daily-lost{background:#fff0dc!important;color:#60300e!important;border-color:#dcb47e!important}html[data-theme] .daily-pair-card{background:#ecf8fa!important;color:#102e3a!important;border-color:#a5d4dd!important;box-shadow:none!important}html[data-theme] .daily-pair-card strong,html[data-theme] .daily-pair-card small,html[data-theme] .daily-pair-heading,html[data-theme] .daily-pair-heading span,html[data-theme] .daily-pair-plus{color:#102e3a!important;-webkit-text-fill-color:#102e3a!important;opacity:1!important}.daily-pair-heading{font-weight:700;font-size:16px}.daily-grid-pair{font-size:18px;line-height:1.5}.daily-retired th small{display:block;font-size:14px;font-weight:400;margin-top:6px}.daily-substitution-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-top:1px solid var(--line,#477783)}.daily-substitution-row small{display:block;font-size:14px;color:var(--muted,#b8d5da);margin-top:5px}.daily-substitution-row b{white-space:nowrap;font-size:20px}

html[data-theme] .home-card .symbol.icon3d-presenti{background-image:url('/profile-icon.svg');background-size:contain;background-position:center}.presence-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--cash);color:var(--ink);margin:18px 0}.presence-summary strong{font-size:30px}.presence-person{padding:20px;margin:16px 0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink)}.presence-person h3{font-size:21px;margin:0 0 5px}.presence-person small{display:block;font-size:14px;color:var(--muted)}.presence-total{font-size:26px;white-space:nowrap}.presence-breakdown{display:flex;flex-wrap:wrap;gap:12px 24px;margin:18px 0;font-size:16px}.presence-breakdown b{margin-left:6px}.presence-person details{margin-top:18px}.presence-person summary{font-weight:650;cursor:pointer;padding:8px 0}.presence-line{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid var(--line);font-size:16px}.presence-line>div,.presence-line>strong{flex:1;min-width:0;overflow-wrap:anywhere}.presence-line>b{white-space:nowrap}.presence-line button{width:40px;min-height:40px;padding:0;font-size:22px}.presence-dialog{width:min(540px,calc(100vw - 24px));max-height:90dvh;padding:0;border-radius:22px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}.presence-dialog::backdrop{background:#00131cbf;backdrop-filter:blur(5px)}.presence-dialog .modal{padding:22px;width:100%;box-sizing:border-box}.presence-dialog input,.presence-dialog select{box-sizing:border-box;width:100%;font-size:16px;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--surface2);color:var(--ink)}.presence-dialog [hidden]{display:none!important}

.presence-summary small{display:block;font-size:14px;line-height:1.6;margin-top:8px;color:var(--muted)}.presence-payment-box{padding:14px;border:1px solid var(--line);background:var(--surface2);border-radius:14px;margin:16px 0;color:var(--ink)}.presence-payment-status{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.presence-payment-status .choice{display:flex;align-items:center;gap:9px;margin:0;font-size:16px}.presence-payment-status input{width:22px;height:22px;accent-color:var(--accent)}.presence-payment-box p{margin:12px 0;font-size:16px}.presence-drinks{margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:14px}.presence-dialog .choice{display:flex;align-items:center;gap:10px}.presence-dialog .choice input{width:22px;height:22px;padding:0}.presence-payment-line b{color:var(--accent)}

/* Compact readable tournament grid, with a dedicated tablet view. */
.daily-table-wrap{width:100%;min-width:0}.daily-table-scroll{overflow:auto}.daily-table-toolbar{display:none}.daily-grid{min-width:540px;width:100%;table-layout:fixed;font-size:14px;line-height:1.2}.daily-grid th,.daily-grid td{padding:3px 5px;vertical-align:middle;overflow-wrap:anywhere}.daily-grid th:first-child{width:19%;text-align:left}.daily-grid .daily-drink-column{min-width:0;width:10%;white-space:normal}.daily-grid button{min-height:30px;height:auto;padding:4px 5px;font-size:14px;line-height:1.15;border-radius:8px;white-space:normal}.daily-grid button[data-select-player]{width:auto;display:inline-block;margin:1px 2px;max-width:100%}.daily-grid td>strong{display:block;font-size:14px;line-height:1.15;margin:1px 0}.daily-grid-pair{min-width:0;max-width:none;font-size:14px;line-height:1.15;margin:2px 0}.daily-grid button small{font-size:14px;line-height:1.15}.daily-grid .daily-retired th small{font-size:14px;margin:2px 0}.daily-grid input[type=checkbox]{width:18px;height:18px}.daily-history-label{display:flex;justify-content:space-between;gap:8px;align-items:center;margin:12px 0 8px}.daily-history-label button{font-size:14px;padding:8px 10px}.daily-table-expanded{position:fixed;inset:0;z-index:10000;background:var(--bg,#083946);padding:8px;display:flex;flex-direction:column;gap:6px}.daily-table-expanded .daily-table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex:none;font-size:14px}.daily-table-toolbar button{padding:6px 10px;font-size:14px}.daily-table-expanded .daily-table-scroll{flex:1;min-height:0}.daily-table-expanded .daily-grid thead th{position:sticky;top:0;z-index:3;background:var(--surface,#114957)}.daily-table-expanded .daily-grid tbody th{z-index:2}@media(min-width:700px){.daily-grid{min-width:0}.daily-grid td button[data-select-player]{padding:5px 3px;font-size:14px}.daily-table-expanded .daily-grid th,.daily-table-expanded .daily-grid td{padding:2px 4px}}

/* Distinguish playable cells and keep errors visible in the full-screen table. */
.daily-control-hint{font-size:14px;line-height:1.3;margin:3px 0 7px;flex:none;color:var(--ink,#f3fdff)}
[data-daily-inline-error]:not([hidden]){display:block;margin:0;padding:8px 12px;border:1px solid #df8657;border-radius:8px;background:#fff0e4;color:#702800;font-weight:700;flex:none}
html[data-theme] .daily-grid button[data-select-player]:not(:disabled),html[data-theme] .daily-grid button[data-select-pair]:not(:disabled){background:#53d7dd!important;border:2px solid #167886!important;font-weight:700}
html[data-theme] .daily-grid button[data-select-player]:disabled,html[data-theme] .daily-grid button[data-select-pair]:disabled{background:#dde8eb!important;border-color:#9dafb6!important;color:#556872!important;-webkit-text-fill-color:#556872!important}
html[data-theme] .daily-grid button.daily-lost:not(:disabled){background:#ffcc7c!important;border-color:#a56512!important}
.daily-grid input[type=checkbox]{width:26px;height:26px;cursor:pointer;accent-color:#078a95}.daily-grid input[type=checkbox]:disabled{cursor:default}

/* Compact presence overview, unpaid first and settled accounts last. */
.presence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.presence-grid .presence-person{min-width:0;margin:0;padding:12px;border-radius:14px}
.presence-grid .section-title{gap:6px;align-items:start}
.presence-grid .presence-person h3{font-size:18px;line-height:1.2;overflow-wrap:anywhere}
.presence-grid .presence-person small{font-size:12px;line-height:1.3}
.presence-card-balance{text-align:right}.presence-grid .presence-total{font-size:22px}
.presence-grid .presence-payment-box{padding:8px;margin:8px 0;border-radius:9px}
.presence-grid .presence-payment-status .choice{font-size:14px;gap:5px}
.presence-grid button{padding:8px 9px;font-size:14px;min-height:36px}
.presence-grid [data-presence-entry]{width:100%;font-size:13px}
.presence-grid details{margin-top:6px}.presence-grid summary{font-size:13px;padding:6px 0}
.presence-grid .presence-drinks{padding:6px 8px;margin:6px 0}
.presence-grid .presence-breakdown{font-size:14px;margin:8px 0;gap:5px}
.presence-grid .presence-line{font-size:14px;gap:6px;padding:8px 0;flex-wrap:wrap}
.presence-settled{border-color:#50a484!important}.presence-settled .presence-card-balance small{color:var(--ink);font-weight:700}
.presence-summary{padding:12px;margin:10px 0}.presence-summary strong{font-size:24px}
@media(min-width:800px){.presence-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1100px){.presence-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:480px){.presence-grid .section-title{display:block}.presence-card-balance{text-align:left;margin-top:6px}.presence-grid .presence-total{font-size:21px}.presence-grid .presence-person{padding:10px}.presence-grid .presence-payment-status{gap:7px}}

.tablet-permission-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;margin:8px 0 20px}.tablet-permission{display:flex!important;align-items:center;gap:8px;font-size:15px}.tablet-permission input{width:22px!important;height:22px!important;flex:none}.tablet-permission-form button{grid-column:1/-1}

html[data-theme] .shift-day.weekend{background:var(--surface2);color:var(--ink)}
html[data-theme] .shift-day.weekend.today{background:var(--cash)}

.fridge-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.fridge-quick-row{display:flex;align-items:center;gap:8px;padding:14px 0;border-bottom:1px solid var(--line)}.fridge-quick-row .info{flex:1;min-width:0}.fridge-quick-row .info strong{overflow-wrap:anywhere}.fridge-quick-row .qty{font-size:24px;font-weight:700;flex:none}.fridge-quick-row button{min-width:44px;min-height:44px;padding:8px}.fridge-more{font-size:22px}#fridgeQuickList{margin:16px 0}#fridgeAddProduct{width:100%;margin-top:16px}#fridgeMovement summary,#fridgeRefillList summary{padding:8px 0;cursor:pointer}

.fridge-quick-row .qty .fridge-max{display:block;font-size:12px;font-weight:400;white-space:nowrap;color:var(--muted)}

.fridge-quick-row .fridge-count{font:inherit;color:inherit;border:0;background:transparent;min-width:44px;padding:4px;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:5px}

.presence-controls{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}.presence-controls input{flex:1;min-width:150px}.presence-controls select{width:auto}.presence-quick{display:block}.presence-quick .presence-person{margin:0;padding:16px 0;border:0;border-radius:0;border-bottom:1px solid var(--line);background:transparent}.presence-quick .presence-person h3{margin:0}.presence-quick-actions{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}.presence-quick-actions button{min-height:44px}.presence-quick [hidden]{display:none!important}

.presence-quick-actions select{width:auto;min-width:150px;flex:1;min-height:44px}

.presence-quick .section-title{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.presence-quick .section-title>div:first-child{flex:1;min-width:100px}.presence-quick select[data-presence-price]{width:145px;min-height:44px}.presence-quick .presence-card-balance{flex:none}

.presence-price-buttons{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:160px}.presence-price-buttons .presence-price-chip{font-size:14px;padding:8px 10px;min-height:44px;min-width:60px;border-radius:10px;white-space:nowrap}.presence-quick .section-title>div:first-child{flex:0 1 120px}.presence-quick .presence-price-buttons{flex:1 1 180px}

.presence-multipliers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0}.presence-multipliers button{min-height:44px;padding:10px 4px;font-size:16px;border-radius:10px}

.presence-person-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.65fr);gap:14px;align-items:start}.presence-person-info{min-width:0}.presence-person-info h3{margin:0 0 3px}.presence-person-info .presence-card-balance{margin-top:12px;text-align:left}.presence-person-info .presence-quick-actions{margin:10px 0}.presence-person-info>small{display:block}.presence-person-info details{margin-top:12px}.presence-person-layout>.presence-price-buttons{min-width:0;align-content:start}.presence-person-info .presence-line{flex-wrap:wrap}.presence-person-info .presence-breakdown{flex-wrap:wrap}

.presence-price-buttons .presence-mod{background:#f4ce54;color:#362900}.presence-price-buttons .presence-cancel{background:#c83b40;color:#fff}.presence-price-buttons .presence-taken{background:#8052bc;color:#fff}

html .presence-price-buttons button.presence-mod{background:#f4ce54!important;color:#362900!important;-webkit-text-fill-color:#362900!important;border-color:#b38b18!important}html .presence-price-buttons button.presence-cancel{background:#c83b40!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#a32930!important}html .presence-price-buttons button.presence-taken{background:#8052bc!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#643a9b!important}

.daily-remaining-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0;max-height:55dvh;overflow:auto}.daily-remaining-buttons button{min-height:44px;padding:10px 4px;border-radius:10px;font-size:18px}

.daily-player-options{display:grid;gap:6px;margin:10px 0;max-height:27dvh;overflow:auto}.daily-player-options button{text-align:left;min-height:44px}.daily-player-options small{display:block;font-size:12px}.daily-player-options [hidden]{display:none!important}

.presence-cons-actions{display:flex;gap:6px;grid-column:1/-1}.presence-cons-actions .presence-price-chip{flex:1;min-width:0}

.cash-history-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.cash-history-range .field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0}.cash-history-range input[type=date]{display:block;width:100%;min-width:0;max-width:100%;min-height:46px;box-sizing:border-box}.cash-history-range input::-webkit-date-and-time-value{text-align:left;min-width:0}@media(max-width:380px){.cash-history-range{grid-template-columns:minmax(0,1fr)}}

.daily-player-options{display:grid;grid-template-columns:1fr;gap:8px}.daily-player-options [data-choice]{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;width:100%;white-space:normal;overflow-wrap:anywhere}.daily-player-options [data-choice] small{display:block;font-weight:400;opacity:.75;font-size:.9em}.daily-player-options [data-choice][hidden]{display:none}

.daily-name-suggestions{max-height:240px;overflow:auto;margin:6px 0 10px}.daily-name-suggestions[hidden]{display:none}
