/* Layout only: existing page nodes, editor state and requests are retained. */
.fold-settings{margin:12px 0;border:1px solid #d8dbe1;border-radius:16px;padding:10px 12px;font-size:13px;color:#253139;background:#f7f8f8}
.fold-settings summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-weight:600}
.fold-settings label{display:block;font-size:13px;margin-block:10px}
.fold-settings select{display:block;width:100%;min-height:44px;margin-top:5px;font:inherit;color:#253139;background:#fff;border:1px solid #c7cdd0;border-radius:8px;padding:8px}
.fold-settings input{width:100%;min-height:44px;accent-color:#586e54}.fold-settings output{float:right}.fold-source{color:#57636c;font-size:12px;line-height:1.6}
.fold-settings :focus-visible,#fold-controls button:focus-visible{outline:3px solid #697ca6;outline-offset:2px}
.fold-select-dialog{color:#253139;background:#fbfbf8;padding:16px}.fold-select-dialog form{display:flex;justify-content:flex-end}.fold-select-dialog h2{font-size:20px;margin:12px 0}.fold-select-dialog [role=listbox]{display:grid;gap:6px;margin-top:12px}.fold-select-dialog [role=option]{min-height:44px;padding:10px 14px;text-align:left;border:1px solid #d9dfd6;border-radius:12px;background:#fff;color:#253139;font-size:16px}.fold-select-dialog [aria-selected=true]{background:#e2efcf;border-color:#7a926b}.fold-select-dialog [hidden]{display:none!important}.fold-select-dialog :focus-visible{outline:3px solid #697ca6;outline-offset:2px}
.fold-date-dialog{background:#fbfbf8;color:#253139;padding:16px}.fold-date-dialog form{display:flex;justify-content:flex-end}.fold-date-dialog label{display:block;margin:8px 0}.fold-date-dialog input{display:block;min-height:44px;width:100%;font-size:16px}.fold-month-nav{display:flex;align-items:center;justify-content:space-between;margin:10px 0}.fold-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.fold-date-grid.fold-month-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.fold-date-dialog button{min-height:44px;min-width:0;padding:6px;border:1px solid #d9dfd6;border-radius:8px;background:#fff;color:#253139}.fold-date-grid [aria-pressed=true]{background:#e2efcf;border-color:#7a926b}.fold-date-dialog button:disabled{opacity:.4}.fold-date-dialog [hidden]{display:none!important}.fold-date-dialog :focus-visible{outline:3px solid #697ca6;outline-offset:2px}
#fold-controls{box-sizing:border-box;background:#eef2ee;color:#253139;padding:16px;border-radius:24px;margin:14px auto;max-width:720px;text-align:center}
#fold-controls[hidden],#fold-controls [hidden]{display:none!important}
#fold-controls time{display:block;font-size:clamp(48px,12vw,92px);line-height:1.2;font-weight:500;letter-spacing:-2px;font-variant-numeric:tabular-nums}
#fold-controls p{font-size:13px;margin:8px 0}.fold-page-controls{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
#fold-controls button{min-height:44px;padding:8px 14px;margin:4px;border:1px solid #c4cec4;border-radius:14px;background:white;color:#253139;font:inherit;font-size:14px;cursor:pointer;touch-action:manipulation}
html[data-fold-mode=clock] #fold-controls{margin:16px max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
html:not([data-fold-mode=clock]) #fold-controls time{display:none}
/* Short landscape outer display uses a compact rail; wide inner display has labels and more breathing room. */
html[data-fold-edition=mobile][data-fold-nav=rail] body #navigation{left:max(10px,env(safe-area-inset-left));right:auto;top:calc(82px + env(safe-area-inset-top));bottom:max(10px,env(safe-area-inset-bottom));width:var(--fold-rail);max-width:var(--fold-rail);transform:none;display:flex;flex-direction:column;padding:6px;border-radius:22px;overflow-y:auto;min-height:0}
html[data-fold-edition=mobile][data-fold-nav=rail] body #navigation button{flex:0 0 auto;min-height:52px;width:100%;max-width:none;flex-direction:column;font-size:12px;padding:6px 2px}
html[data-fold-edition=mobile][data-fold-nav=rail] body #main{margin-left:calc(var(--fold-rail) + 20px + env(safe-area-inset-left));margin-right:0;width:auto;max-width:none;padding-bottom:28px;padding-inline:18px}
html[data-fold-edition=mobile][data-fold-nav=rail] body .save-dock{position:sticky;transform:none;left:auto;width:100%;bottom:10px}
/* Actual content width, after a sidebar/pane, controls the grid rather than total screen width. */
html[data-fold-edition=mobile][data-fold-density=medium] body :is(.store-metrics,.day-values,.detail-grid,.filter-options,.edit-form fieldset){grid-template-columns:repeat(2,minmax(0,1fr))}
html[data-fold-edition=mobile][data-fold-density=narrow] body :is(.store-metrics,.day-values,.detail-grid,.filter-options){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html[data-fold-edition=mobile][data-fold-density=narrow] body .edit-form fieldset{grid-template-columns:1fr}
html[data-fold-edition=mobile]:not([data-fold-density=wide]) body[data-mobile-page=home] #business{display:block}
html[data-fold-edition=mobile][data-fold-density=narrow] body :is(.compare-head,.compare-row){grid-template-columns:minmax(86px,1.15fr) minmax(0,1fr) minmax(0,1fr);column-gap:5px;padding-inline:4px}
html[data-fold-edition=mobile][data-fold-density=narrow] body .toolbar{display:grid;grid-template-columns:1fr 1fr}
html[data-fold-edition=mobile][data-fold-density=narrow] body .hero-secondary strong{font-size:20px}
/* A real hinge, or a calibrated laptop posture, has separate reading and operating panes. */
html[data-fold-contained=true] body{overflow:hidden;max-width:none;width:100%;height:100dvh;margin:0}
html[data-fold-contained=true] body #main{position:fixed;left:var(--fold-pane-x);top:var(--fold-pane-y);width:var(--fold-pane-width);height:var(--fold-pane-height);max-width:none;min-height:0;margin:0;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;padding:64px 16px 24px;scroll-padding:70px 12px 24px}
html[data-fold-contained=true][data-fold-edition=mobile] body .app-header{position:fixed;left:var(--fold-pane-x);top:var(--fold-pane-y);width:var(--fold-pane-width);height:64px;min-height:64px;padding:6px max(10px,env(safe-area-inset-right)) 6px max(10px,env(safe-area-inset-left));z-index:10;gap:4px}
html[data-fold-contained=true][data-fold-edition=mobile] body .app-header .brand span{font-size:24px}
html[data-fold-contained=true][data-fold-edition=mobile] body .app-header .brand img{width:24px;height:24px}
html[data-fold-contained=true][data-fold-edition=mobile][data-fold-density=narrow] body .app-header .brand span{display:none}
html[data-fold-contained=true] body #fold-controls{position:fixed;left:var(--fold-control-x);top:var(--fold-control-y);width:var(--fold-control-width);height:var(--fold-control-height);max-width:none;margin:0;border-radius:0;padding:18px 12px 96px;overflow:auto;box-sizing:border-box}
html[data-fold-contained=true][data-fold-edition=mobile] body #navigation{left:calc(var(--fold-control-x) + 12px);top:auto;bottom:calc(100dvh - var(--fold-control-y) - var(--fold-control-height) + max(8px,env(safe-area-inset-bottom)));right:auto;transform:none;width:calc(var(--fold-control-width) - 24px);max-width:none;min-height:56px;margin:0;padding:4px;overflow-x:auto}
html[data-fold-contained=true][data-fold-edition=mobile] body #navigation button{min-height:48px;min-width:44px;font-size:11px}
html[data-fold-contained=true] body .compare-head{top:0}
html[data-fold-contained=true] body :is(.save-dock,.mf-save){position:sticky;left:auto;transform:none;bottom:0;width:100%;max-width:none;margin:0}
html[data-fold-contained=true][data-fold-edition=desktop] body .sidebar{position:fixed;left:var(--fold-control-x);top:var(--fold-control-y);width:var(--fold-control-width);height:var(--fold-control-height);max-height:var(--fold-control-height);display:block;padding:12px;overflow:auto;z-index:12}
html[data-fold-contained=true][data-fold-edition=desktop] body .sidebar #nav{display:block}
html[data-fold-contained=true][data-fold-edition=desktop] body .sidebar .brand{margin-bottom:12px}
html[data-fold-contained=true][data-fold-edition=desktop] body #fold-controls{display:none}
html[data-fold-contained=true][data-fold-edition=desktop] body #main{padding-top:8px}
html[data-fold-contained=true][data-fold-edition=desktop] body .topbar{position:sticky;top:0;display:flex;z-index:20;background:#fff;min-height:48px;height:auto;padding:4px;margin:0}
html[data-fold-contained=true][data-fold-edition=desktop] body .topbar>:not(.dsso-trigger){display:none}
html[data-fold-contained=true][data-fold-edition=desktop] body #app{padding:12px 0;min-width:0;max-width:100%;width:100%}
html[data-fold-keyboard=true][data-fold-contained=true] body #main{max-height:calc(var(--fold-visible-height) - var(--fold-pane-y))}
/* Native top-layer dialogs and HTML pickers always live wholly inside a selected pane. */
html[data-fold-crease=true] body dialog{position:fixed!important;inset:calc(var(--fold-popup-y) + 12px) calc(var(--fold-popup-right) + 12px) calc(var(--fold-popup-bottom) + 12px) calc(var(--fold-popup-x) + 12px)!important;margin:auto!important;width:calc(var(--fold-popup-width) - 24px)!important;max-width:calc(var(--fold-popup-width) - 24px)!important;height:auto!important;max-height:min(calc(var(--fold-popup-height) - 24px),calc(var(--fold-visible-height) - 24px))!important;box-sizing:border-box;overflow:auto!important;overscroll-behavior:contain;transform:none!important;border-radius:18px;animation:none!important}
html[data-fold-crease=true] body :is(.date-picker-panel,.store-search-results,.ds-store-search-results){position:fixed!important;left:calc(var(--fold-popup-x) + 12px)!important;right:auto!important;top:calc(var(--fold-popup-y) + 12px)!important;bottom:auto!important;width:calc(var(--fold-popup-width) - 24px)!important;max-width:calc(var(--fold-popup-width) - 24px)!important;max-height:calc(var(--fold-popup-height) - 24px)!important;overflow:auto;box-sizing:border-box;z-index:1100}
html[data-fold-crease=true] body dialog :is(input,select,textarea){max-width:100%;min-width:0}
@media(max-height:440px){html[data-fold-edition=mobile][data-fold-nav=rail] body .app-header{height:58px;min-height:58px}html[data-fold-edition=mobile][data-fold-nav=rail] body #navigation{top:64px}html[data-fold-mode=clock] #fold-controls{padding:8px;margin-block:8px}html[data-fold-mode=clock] #fold-controls time{font-size:52px}}

.fold-weekday{text-align:center;font-size:12px;color:#66716b;padding-block:6px}

html[data-fold-crease=true] body #daisy-workspace-choice{inset:var(--fold-popup-y) var(--fold-popup-right) var(--fold-popup-bottom) var(--fold-popup-x);min-width:0;padding:20px;overflow:auto}html[data-fold-crease=true] .daisy-choice-cards{grid-template-columns:1fr;min-height:0}html[data-fold-crease=true] .daisy-choice-card{padding:22px}html[data-fold-crease=true] .daisy-choice-number{margin-bottom:12px}html[data-fold-crease=true] .daisy-choice-title{margin:20px 0}html[data-fold-crease=true] .daisy-choice-title h1{font-size:26px}
