/* Two complete, explicitly chosen play worlds; accounting state stays independent. */
:root,[data-theme="arena"]{
 color-scheme:dark;--bg:#10141f;--paper:#191f2d;--ink:#eaf0fa;--muted:#a2adc1;--green:#91e1f2;--tint:#242e42;--line:#303b51;--warm:#302e23;--orange:#e7cd88;--red:#ffa5ac;
 --sidebar:#141a27;--topbar:#141a27;--banner:#1d2836;--accent-hover:#b0eafa;--on-accent:#112230;--active-bg:#213345;--active-line:#4d788d;--icon-tile:#26354b;--blue-bg:#223849;--blue-ink:#a2def6;--sand-bg:#373426;--sand-ink:#e8db98;--badge-bg:#293444;--badge-ink:#b4c3d7;--neutral-bg:#252b39;--danger-bg:#3c2936;--goal-bg:#252e38;--goal-line:#404b51;--goal-icon:#e3ee86;--goal-muted:#bbc4b6;--track:#3c4551;--progress:#deea84;--note-bg:#1d2634;--note-line:#354355;--note-ink:#b7c8dc;--field:#131a27;--toast-bg:#d7edf4;--icon-fill:#364e63;--secondary:#e3ee86;--radius:12px;--selection:#335976;--goal-text:#eff3db;--tab-active:#233a4c;
}
[data-theme="cloud"]{
 color-scheme:light;--bg:#fcf7fd;--paper:#fffafe;--ink:#594363;--muted:#886b92;--green:#a83f7e;--tint:#f5e5f2;--line:#ecdcee;--warm:#fff5e1;--orange:#95652c;--red:#b4415e;
 --sidebar:#f4effc;--topbar:#fffafd;--banner:#f8eefa;--accent-hover:#92336d;--on-accent:#fff9fd;--active-bg:#eaf4fc;--active-line:#a9cce0;--icon-tile:#fae2f0;--blue-bg:#e1f1fd;--blue-ink:#456e8b;--sand-bg:#fff1d8;--sand-ink:#89652f;--badge-bg:#f1e7f8;--badge-ink:#7c538f;--neutral-bg:#f0edf6;--danger-bg:#fdeaf0;--goal-bg:#eaf5fe;--goal-line:#cee2f0;--goal-icon:#cfac57;--goal-muted:#627d96;--track:#cedfed;--progress:#d18dbb;--note-bg:#fff5e8;--note-line:#f0e0cb;--note-ink:#897044;--field:#fdf8fe;--toast-bg:#704565;--icon-fill:#f7cbe2;--secondary:#85bddf;--radius:18px;--selection:#f2c8e3;--goal-text:#426985;--tab-active:#f9dfee;
}
[data-theme="arena"][data-mode="day"]{color-scheme:light;--bg:#f4f6fa;--paper:#ffffff;--ink:#26364a;--muted:#67778b;--green:#356b94;--tint:#eaf1f8;--line:#e0e6ee;--sidebar:#edf1f7;--topbar:#ffffff;--banner:#eef3f9;--accent-hover:#285779;--on-accent:#ffffff;--active-bg:#e7f1f9;--active-line:#a9c6dc;--icon-tile:#e7eff8;--blue-bg:#e6f1f9;--blue-ink:#396b8f;--sand-bg:#f7f0dc;--sand-ink:#856625;--badge-bg:#eaf0f6;--badge-ink:#5e7185;--neutral-bg:#f0f3f6;--danger-bg:#fcebed;--red:#af4350;--goal-bg:#edf3f9;--goal-line:#d7e3ee;--goal-icon:#849fb5;--goal-muted:#5a7389;--track:#d7e1ec;--progress:#668da9;--note-bg:#f2f4f7;--note-line:#e0e6ee;--note-ink:#627386;--field:#f8fafd;--toast-bg:#29485e;--icon-fill:#c5d9eb;--secondary:#52748d;--selection:#cfdfed;--goal-text:#345d7d;--tab-active:#deebf6;--radius:10px}
[data-theme="cloud"][data-mode="night"]{color-scheme:dark;--bg:#1c1822;--paper:#27212f;--ink:#f0e9f4;--muted:#b9a6c3;--green:#e7aed0;--tint:#3a2c40;--line:#48394f;--sidebar:#231c2c;--topbar:#231d2a;--banner:#302538;--accent-hover:#f1c9e4;--on-accent:#382135;--active-bg:#2b3749;--active-line:#526982;--icon-tile:#493145;--blue-bg:#2d3d50;--blue-ink:#b2d7f4;--sand-bg:#443b2c;--sand-ink:#e8cc95;--badge-bg:#3b3047;--badge-ink:#cfb6dd;--neutral-bg:#332b3c;--danger-bg:#4e2b3b;--red:#ffafc2;--goal-bg:#283549;--goal-line:#43536b;--goal-icon:#dfc58e;--goal-muted:#b1c4db;--track:#43556b;--progress:#b28ba8;--note-bg:#373026;--note-line:#4b4034;--note-ink:#d6c0a0;--field:#211b29;--toast-bg:#edc9e3;--icon-fill:#69435f;--secondary:#b2d7f4;--selection:#67465f;--goal-text:#d0e3f5;--tab-active:#53354c;--radius:13px}
[data-mode="day"]{color-scheme:light}[data-mode="night"]{color-scheme:dark}
body{background:var(--bg);accent-color:var(--green);caret-color:var(--green);font-size:13px}::selection{background:var(--selection);color:var(--ink)}*{scrollbar-width:thin;scrollbar-color:var(--line) var(--bg)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}input,select,textarea{accent-color:var(--green)}input[type="date"],input[type="datetime-local"]{color-scheme:inherit}a{text-underline-offset:4px}svg{width:16px;height:16px}.themed-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0;vertical-align:middle}.themed-icon svg{width:18px;height:18px;overflow:visible}.icon-spark{fill:var(--secondary);stroke:currentColor;stroke-width:1.1}
.sidebar{width:190px;padding:24px 15px 15px;background:var(--sidebar)}.workspace{margin-left:190px;width:calc(100% - 190px)}.brand{font-size:18px;letter-spacing:0;gap:8px;white-space:nowrap}.brand img{width:30px;height:30px}.brand-sub{font-size:10px;letter-spacing:1px;margin:10px 0 28px 38px;color:var(--muted)}.nav-label{font-size:10px;margin:0 10px 10px;letter-spacing:.5px}.nav{gap:5px}.nav button{min-height:39px;padding:9px 12px;font-size:12px;gap:10px;border-radius:7px}.nav .themed-icon svg{width:19px;height:19px}.nav button.active{background:var(--tint);color:var(--green)}.nav-count{background:var(--paper);color:var(--green);font-size:10px}.local-card{background:var(--field);border-radius:7px;padding:10px;line-height:1.8}.local-card b{font-size:11px}.local-card p{font-size:10px}.sidebar-bottom>button{padding:9px 5px}.sidebar-bottom small{font-size:11px}
.topbar{height:56px;background:var(--topbar);padding:0 26px}.top-tools{gap:13px}.breadcrumbs{font-size:11px;gap:8px}.avatar{width:26px;height:26px;background:var(--icon-tile);color:var(--green)}.avatar .themed-icon svg{width:17px;height:17px}.icon-btn{width:32px;min-height:32px}.icon-btn svg{width:16px;height:16px}.content{max-width:1520px;padding:22px 26px 28px}.demo-banner{font-size:10px;padding:5px 11px;line-height:1.8;border-radius:6px;margin-bottom:20px;min-height:32px;background:var(--banner)}.demo-banner button{font-size:10px;min-height:24px}.page-heading{align-items:center;margin-bottom:20px}.page-heading h1{font-size:23px;letter-spacing:-.4px}.page-heading p{font-size:11px;margin-top:6px}.heading-actions{gap:7px}.heading-actions .btn,.btn{min-height:33px;padding:0 11px;font-size:11px;border-radius:6px;gap:6px}.btn.primary{background:var(--green);border-color:var(--green);color:var(--on-accent)}.btn.primary:hover{background:var(--accent-hover)}.btn.soft{background:var(--tint)}.btn:not(.primary):hover,.tiny-btn:hover{background:var(--tint);border-color:var(--green)}.btn:active,.tiny-btn:active{transform:translateY(1px)}
.stats{border-radius:10px;padding:16px 0;margin-bottom:18px}.stat{padding:0 18px}.stat-label{font-size:11px}.stat-label svg{width:15px;height:15px;color:var(--muted)}.stat-value{font-size:24px;margin:5px 0 4px;letter-spacing:-.5px;font-variant-numeric:tabular-nums}.stat-value span{font-size:12px}.stat-note{font-size:10px;line-height:1.7}.stat:nth-child(1) .stat-value{color:var(--green)}.stat:nth-child(4) .stat-value{color:var(--secondary)}.dashboard-grid{grid-template-columns:minmax(0,1fr) 270px;gap:17px}.panel{border-radius:10px}.panel-head{padding:15px 17px 13px;gap:8px}.panel-head h2,h2{font-size:14px}.panel-head h2{gap:7px}.count{font-size:10px}.link{font-size:11px}.link svg{width:12px;height:12px}.day-strip{gap:5px;padding:0 17px 13px}.day-cell{min-height:47px;gap:3px;border-radius:7px}.day-cell small{font-size:10px}.day-cell strong{font-size:14px}.day-cell.selected{background:var(--tint);color:var(--green);outline:1px solid var(--line)}.day-cell.selected small{color:var(--green)}.schedule-list{padding:0 17px 13px}.schedule-row{grid-template-columns:47px 10px 1fr;gap:9px;padding-top:14px}.time{font-size:11px;padding-top:4px}.time small{font-size:10px;margin-top:4px}.timeline-marker:before{bottom:-17px}.timeline-marker i{width:6px;height:6px}.session{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:7px 0 12px;background:transparent}.schedule-row:last-child .session{border-bottom:0}.session.active{border:1px solid var(--active-line);background:var(--active-bg);border-radius:7px;padding:12px}.game{gap:8px}.game h3{font-size:12px}.game small{font-size:10px;margin-top:3px}.game-icon{width:28px;height:28px;background:var(--icon-tile);color:var(--green);font-size:10px;border-radius:7px}.game-icon.blue{background:var(--blue-bg);color:var(--blue-ink)}.game-icon.sand{background:var(--sand-bg);color:var(--sand-ink)}.badge{font-size:10px;padding:3px 7px;border-radius:4px;background:var(--badge-bg);color:var(--badge-ink)}.badge.active{color:var(--green);background:var(--active-bg)}.badge.completed{color:var(--muted);background:var(--neutral-bg)}.badge.cancelled{color:var(--red);background:var(--danger-bg)}.session-meta{gap:12px;margin:9px 0;font-size:10px}.session-meta svg{width:11px;height:11px}.session-footer{border:0;padding-top:0}.session-footer .money{font-size:15px}.money small{font-size:10px}.tiny-btn{min-height:28px;font-size:10px;padding:0 8px;border-radius:5px}.timer{font-size:16px}.right-column{gap:17px}.goal{background:var(--goal-bg);border-color:var(--goal-line);color:var(--goal-text);padding:17px;border-radius:10px}.goal h2{font-size:13px}.goal p{font-size:10px;margin-top:6px;color:var(--goal-muted)}.goal-mascot{position:absolute;top:16px;right:17px;color:var(--goal-icon);--icon-fill:transparent;opacity:.8}.goal-mascot .themed-icon svg{width:35px;height:35px;stroke-width:1.3}.goal-amount{font-size:23px;margin-top:19px;color:var(--goal-text);letter-spacing:-.5px}.goal-amount small{font-size:11px;color:var(--goal-muted)}.goal .progress{height:4px;margin-top:12px}.progress i{background:var(--progress)}.goal-bottom{color:var(--goal-muted);margin-top:6px;font-size:10px}.goal-bottom .link{color:var(--goal-text);min-height:26px;font-size:10px}.task-list{padding:0 17px 10px}.task-item{padding:10px 0;gap:8px}.task-check{width:14px;height:14px;accent-color:var(--green)}.task-item p{font-size:11px}.task-item small{font-size:10px}.quick-note{padding:12px 15px;font-size:10px;background:var(--note-bg);border-color:var(--note-line);color:var(--note-ink);border-radius:8px}.quick-note b{font-size:11px;color:var(--note-ink)}.quick-note .themed-icon svg{width:17px;height:17px}.recent-panel{margin-top:18px}th{padding:10px 17px;font-size:10px;background:var(--field)}td{padding:11px 17px;font-size:11px;border-color:var(--line)}td small{font-size:10px;margin-top:3px}.mini-avatar{width:25px;height:25px;background:var(--icon-tile);color:var(--green);font-size:10px}.footer{margin-top:18px;font-size:10px}.filters{margin-bottom:14px;gap:9px}.tabs{padding:3px;gap:3px;background:var(--tint);border-radius:6px}.tabs button{min-height:28px;padding:0 12px;font-size:11px;border-radius:4px}.tabs button.selected{background:var(--paper);color:var(--green);box-shadow:none}.search input{min-height:34px;font-size:11px}.cards{gap:14px}.customer{padding:17px}.customer-head{gap:9px;margin-bottom:12px}.customer-head .mini-avatar{width:34px;height:34px;font-size:13px}.customer p{font-size:11px;margin:10px 0;min-height:35px}.customer-stats{margin:13px 0;gap:22px;padding-top:12px}.customer-stats b{font-size:16px}.customer-stats small{font-size:10px}.empty{padding:28px 16px;font-size:11px}.empty>svg{width:26px;height:26px}.empty .themed-icon{display:flex;justify-content:center;margin-bottom:8px}.empty .themed-icon svg{width:27px;height:27px}.empty svg{color:var(--muted)}.empty p{margin-bottom:9px}.income-grid{gap:17px}.bar-chart{height:195px;padding:10px 20px 20px}.breakdown{padding:0 17px 15px}.breakdown-row{padding:11px 0}.breakdown-row p{font-size:11px}
dialog{width:min(510px,calc(100% - 24px));background:var(--paper);color:var(--ink);border-radius:12px;border-color:var(--line);box-shadow:0 18px 70px #00000035}dialog::backdrop{background:#0d14245e;backdrop-filter:blur(2px)}.modal-head{padding:15px 19px 12px;background:var(--paper)}.modal-head h2{font-size:15px}.modal-body{padding:17px 19px;overflow-x:hidden}.modal-actions{padding:12px 19px;background:var(--field)}.form-grid{gap:13px;grid-template-columns:repeat(2,minmax(0,1fr))}.field{font-size:11px;gap:6px;min-width:0}.field input,.field select,.field textarea{min-height:35px;padding:8px;font-size:12px}.field textarea{min-height:65px}.detail-grid{gap:15px;margin-top:16px}.detail-grid dd{font-size:12px}.detail-grid dt{font-size:10px}.summary-box{padding:13px;margin-top:15px}.summary-box b{font-size:20px}.detail-actions{margin-top:17px;gap:7px}.form-note,.inline-info{font-size:11px;line-height:1.8}.inline-info{padding:10px;background:var(--note-bg);color:var(--note-ink)}.form-error{color:var(--red);font-size:11px}.settings-group{gap:9px}.settings-group .btn{min-height:38px}.theme-settings{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:17px}.theme-settings h3{font-size:12px;font-weight:500;margin-bottom:10px}.theme-switcher{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.theme-switcher>button{display:flex;gap:10px;text-align:left;align-items:center;padding:11px;border:1px solid var(--line);border-radius:7px;background:var(--field);min-height:64px}.theme-switcher>button[aria-pressed="true"]{border-color:var(--green);background:var(--tint)}.theme-switcher b{display:block;font-size:12px;font-weight:500}.theme-switcher small{display:block;color:var(--muted);font-size:10px;margin-top:5px;line-height:1.6}.theme-switcher>button>svg{margin-left:auto;width:13px}.theme-swatch{width:29px;height:29px;border:1px solid var(--line);border-radius:6px;display:grid;place-items:center;flex-shrink:0}.theme-swatch svg{width:18px;height:18px}.theme-swatch.arena{background:#e1edf5;color:#426b8b;--icon-fill:#b8d5e9}.theme-swatch.cloud{background:#f8e2f0;color:#a2578b;--icon-fill:#edbdd9}.appearance-modes{display:flex;gap:7px}.appearance-modes button{display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);background:var(--field);padding:0 14px;min-height:34px;border-radius:6px;font-size:11px}.appearance-modes button[aria-pressed="true"]{background:var(--tint);border-color:var(--green);color:var(--green)}.toast{background:var(--toast-bg);color:var(--on-accent);font-size:11px;padding:10px 15px}
/* Calendar: overview first, selected day's orders directly beneath. */
.schedule-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.schedule-range{display:flex;align-items:center;gap:7px}.schedule-range h2{font-size:14px;min-width:140px;text-align:center;font-weight:500}.schedule-range>.btn{min-height:28px;font-size:10px;margin-left:4px}.schedule-controls{display:flex;align-items:center;gap:10px}#schedule-date,.date-jump input{font-size:11px;min-height:30px;padding:4px 6px;background:var(--field);color:var(--ink)}.cal-day{min-width:105px;min-height:320px;padding:10px 8px}.cal-heading{font-size:10px;padding:3px 0 12px}.cal-heading b{font-size:17px;margin-top:4px}.cal-entry{padding:8px;margin:7px 0;background:var(--tint);border-color:var(--line);font-size:10px;line-height:1.8;min-height:58px;color:var(--ink)}.cal-entry b{font-size:11px}.cal-entry small{font-size:10px}.cal-day.today{background:var(--field)}.single-day .cal-day{min-height:230px}.single-day .cal-entry{padding:11px}.month-layout{padding:17px;background:var(--paper)}.month-layout.multi-month{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.month-block{min-width:0}.month-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;gap:8px}.month-heading h3{font-size:13px;font-weight:500}.month-heading small{font-size:10px;color:var(--muted)}.month-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;margin-bottom:6px}.month-weekdays span{font-size:10px;color:var(--muted);padding:4px}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.month-cell{min-height:94px;border:1px solid var(--line);background:var(--field);padding:7px;display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:left;border-radius:5px;color:var(--ink);min-width:0;position:relative}.month-cell:hover{background:var(--tint);border-color:var(--green)}.month-cell.picked{background:var(--tint);border-color:var(--green)}.month-number{font-size:12px;font-variant-numeric:tabular-nums;line-height:20px}.month-cell.is-today .month-number{font-weight:700;text-decoration:underline;text-decoration-color:var(--green);text-underline-offset:4px}.month-cell.outside{opacity:.42}.month-count{position:absolute;right:7px;top:8px;font-size:9px;color:var(--green);padding:0 4px;background:var(--tint);border-radius:3px}.month-event{font-size:10px;color:var(--green);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.8}.month-event.completed{color:var(--muted)}.compact-month .month-cell{min-height:45px;border:1px solid transparent;align-items:center;padding:3px;gap:0;background:transparent}.compact-month .month-cell.picked{border-color:var(--green);background:var(--tint)}.compact-month .month-cell:hover{background:var(--tint)}.compact-month .month-number{font-size:11px}.compact-month .month-count{position:static;font-size:9px;line-height:13px;min-width:14px;text-align:center}.compact-month .month-count span{display:none}.calendar-legend{display:flex;justify-content:space-between;gap:10px;font-size:10px;line-height:1.8;color:var(--muted);margin:10px 1px 15px}.calendar-legend>span:first-child{display:flex;align-items:center;gap:5px;white-space:nowrap}.calendar-legend i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--green)}.calendar-detail .panel-head{border-bottom:1px solid var(--line)}.day-agenda{padding:0 17px}.agenda-line{display:flex;align-items:center;gap:15px;width:100%;text-align:left;padding:13px 0;border-bottom:1px solid var(--line);min-width:0}.agenda-line:last-child{border-bottom:0}.agenda-line:hover{background:var(--field)}.agenda-time{font-size:11px;color:var(--muted);width:112px;flex-shrink:0;font-variant-numeric:tabular-nums}.agenda-line>span:nth-child(2){flex:1;min-width:0}.agenda-line b{display:block;font-size:12px;font-weight:500}.agenda-line small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.agenda-amount{font-size:12px;width:85px;text-align:right}.agenda-line>svg{width:13px;color:var(--muted)}
[data-theme="cloud"] .nav button,[data-theme="cloud"] .btn,[data-theme="cloud"] .day-cell{border-radius:9px}[data-theme="cloud"] .panel,[data-theme="cloud"] .stats,[data-theme="cloud"] .goal{border-radius:12px}
@media(max-width:1100px){.sidebar{width:168px;padding:21px 12px}.workspace{margin-left:168px;width:calc(100% - 168px)}.brand{font-size:16px}.brand img{width:28px;height:28px}.brand-sub{margin-left:36px;letter-spacing:0}.content{padding:20px}.topbar{padding:0 20px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 240px;gap:14px}.stat{padding:0 13px}.month-layout.multi-month{gap:13px;padding:14px}.compact-month .month-cell{min-height:43px}.month-heading{flex-wrap:wrap;gap:4px}.month-heading h3{font-size:12px}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.right-column{grid-template-columns:1fr 1fr}.month-layout.multi-month{grid-template-columns:1fr 1fr}.month-block:last-child:nth-child(3){grid-column:1/-1;max-width:360px;width:100%;justify-self:center}.schedule-range h2{min-width:120px}.top-tools .date-top{display:none}.agenda-line{gap:10px}}
@media(max-width:650px){.sidebar{display:none}.workspace{margin:0;width:100%}.topbar{height:48px;padding:0 14px}.breadcrumbs:before{color:var(--ink);font-size:14px}.breadcrumbs>span{display:none}.top-tools .avatar{display:none}.content{padding:15px 13px 86px}.demo-banner{padding:5px 9px;margin-bottom:17px;font-size:10px;gap:7px}.demo-banner>span{flex:1}.demo-banner>button{white-space:nowrap;font-size:10px}.page-heading{margin-bottom:17px;gap:8px}.page-heading h1{font-size:21px}.page-heading p{font-size:10px;line-height:1.7;max-width:210px;margin-top:5px}.heading-actions .btn{min-height:34px;padding:0 10px}.stats{padding:13px 0;row-gap:15px;margin-bottom:15px}.stat{padding:0 13px}.stat-value{font-size:22px;margin:4px 0 3px}.stat-label{font-size:10px}.stat-label svg{width:13px;height:13px}.stat-note{font-size:10px;line-height:1.6}.panel-head{padding:13px 13px 11px}.panel-head h2{font-size:13px}.count{font-size:10px}.dashboard-grid{gap:15px}.day-strip{padding:0 12px 10px;gap:4px}.day-cell{min-height:43px;gap:2px}.day-cell strong{font-size:13px}.day-cell small{font-size:10px}.schedule-list{padding:0 12px 8px}.schedule-row{grid-template-columns:34px 8px 1fr;gap:7px;padding-top:12px}.time{font-size:10px}.time small{font-size:9px}.session{padding:5px 0 11px}.session.active{padding:10px}.game-icon{width:25px;height:25px;font-size:9px}.game h3{font-size:11px}.game small{font-size:10px}.badge{font-size:9px;padding:3px 5px}.session-meta{gap:8px;font-size:9px;margin:8px 0}.session-footer .money{font-size:14px}.tiny-btn{min-height:31px;font-size:10px;padding:0 7px}.right-column{grid-template-columns:1fr;gap:15px}.goal{padding:15px}.goal-amount{font-size:23px;margin-top:14px}.goal-mascot .themed-icon svg{width:32px;height:32px}.goal-mascot{top:18px;right:18px}.task-list{padding:0 13px 8px}.task-item{padding:9px 0}.task-item p{font-size:11px}.recent-panel{margin-top:15px}.recent-panel tbody,#order-results tbody{gap:8px;padding:10px}.recent-panel tr,#order-results tr{padding:6px}.recent-panel td,#order-results td{padding:5px;font-size:11px}.footer{font-size:9px;margin-top:15px}.mobile-nav{padding:6px 4px max(7px,env(safe-area-inset-bottom));background:var(--topbar);gap:1px}.mobile-nav button{font-size:10px;gap:4px;min-height:42px}.mobile-nav svg,.mobile-nav .themed-icon svg{width:18px;height:18px}.mobile-nav button.active{color:var(--green)}.mobile-nav button.active .themed-icon{background:var(--tint);border-radius:5px;padding:3px 11px;margin:-3px -11px}.tabs{justify-content:flex-start;width:auto}.tabs button{font-size:10px;min-height:29px;padding:0 10px}.filters>.tabs{width:100%;justify-content:space-between}.cal-day{min-width:105px;padding:9px 7px;min-height:280px}.calendar{grid-template-columns:repeat(7,105px)}.cal-entry{min-height:60px;font-size:10px;padding:8px}.calendar.single-day{display:block}.schedule-toolbar{gap:10px}.schedule-range{justify-content:flex-start;width:100%;gap:5px}.schedule-range h2{font-size:13px;text-align:left;min-width:0;flex:1}.schedule-controls{justify-content:space-between;width:100%;gap:6px}.schedule-controls .tabs{flex-shrink:0}#schedule-date{font-size:10px;max-width:127px;min-width:0;min-height:31px}.month-layout{padding:11px}.month-layout.multi-month{grid-template-columns:1fr;gap:20px;padding:15px}.month-block:last-child:nth-child(3){grid-column:auto;max-width:none}.month-heading{margin-bottom:10px}.month-heading h3{font-size:12px}.month-cell{min-height:61px;padding:4px;gap:2px}.month-number{font-size:11px}.month-count{top:5px;right:3px;padding:0 2px;font-size:8px}.month-count span{display:none}.month-event{font-size:8px;line-height:1.6}.month-event:nth-of-type(4){display:none}.compact-month .month-cell{min-height:43px}.compact-month .month-number{font-size:11px}.month-weekdays span{font-size:10px}.calendar-legend{font-size:9px;gap:8px;margin:9px 0 12px}.agenda-line{gap:8px;padding:12px 0;flex-wrap:wrap}.agenda-time{width:94px;font-size:10px}.agenda-line>span:nth-child(2){min-width:100px}.agenda-line b{font-size:11px}.agenda-line .badge{margin-left:auto}.agenda-amount{font-size:11px;width:auto;min-width:50px}.agenda-line>svg{display:none}.day-agenda{padding:0 13px}.modal-head{padding:13px 15px 11px}.modal-body{padding:15px}.modal-actions{padding:11px 15px}.form-grid{gap:13px 10px}.field:has(input[type="datetime-local"]){grid-column:1/-1}.field input,.field select{min-height:38px;font-size:12px}.theme-switcher{gap:8px}.theme-switcher>button{padding:10px;gap:8px;min-height:65px;flex-wrap:wrap}.theme-switcher small{font-size:10px}.theme-swatch{width:25px;height:25px}.appearance-modes button{min-height:38px;padding:0 17px}.toast{bottom:77px}.btn,.icon-btn{touch-action:manipulation}.theme-settings h3{font-size:12px}.empty{padding:24px 12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* The web download keeps the current ledger tab open. */
.web-download{color:var(--green);text-decoration:none;flex-shrink:0}
.web-download:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.top-tools .web-download{min-height:32px;padding:0 10px;gap:5px}
.web-download svg,.web-download .themed-icon svg{width:16px;height:16px}
@media(max-width:800px){.top-tools .web-download{min-height:44px;padding:0 9px;font-size:11px}.settings-group .web-download{min-height:44px}}
.web-update-dialog{width:min(420px,calc(100% - 28px));padding:0;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink)}
.web-update-dialog::backdrop{background:#10141f99}
.web-update-body{padding:22px}
.web-update-body h2{font-size:18px;margin:0 0 12px;font-weight:600}
.web-update-version{color:var(--green);font-size:12px;margin:0 0 12px}
.web-update-notes{white-space:pre-line;line-height:1.8;font-size:13px;max-height:32vh;overflow:auto}
.web-update-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}
@media(max-width:800px){.web-update-actions .btn{min-height:44px}}
.order-clickable{cursor:pointer}
.order-clickable:hover{background:var(--tint)}
.order-open{padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.order-open:hover{text-decoration:underline;text-underline-offset:3px}
.danger-text{color:var(--red)}
.task-main{display:flex;align-items:flex-start;gap:8px;flex:1;min-width:0}
.task-main>span{min-width:0;flex:1}
.task-item>.icon-btn{flex-shrink:0}
.payment-tools{display:flex;align-items:center;gap:10px}
.month-day{display:block;border:0;background:none;color:inherit;width:100%;padding:0;text-align:left;min-height:20px}
.month-event{border:0;background:none;padding:0;text-align:left;cursor:pointer;font-family:inherit}
.month-event:hover{text-decoration:underline;text-underline-offset:2px}
.compact-month .month-day{display:flex;flex-direction:column;align-items:center;gap:0;min-height:37px}
@media(max-width:800px){.task-item>.icon-btn,.payment-tools>.icon-btn{min-height:44px;min-width:44px}}
