:root{--ui-scale:1;--ui-target:44px}
:root[data-display-size="large"]{--ui-scale:1.25;--ui-target:54px}
:root[data-display-size="extra"]{--ui-scale:1.5;--ui-target:64px}
.display-settings{padding:24px;margin:0 0 24px;background:#fff;border:1px solid #dce0e9;border-radius:12px;color:#252a3a}
.display-settings h2{font-size:calc(22px * var(--ui-scale));line-height:1.3;margin:0 0 10px}
.display-settings p{font-size:calc(14px * var(--ui-scale));line-height:1.6;margin:10px 0;color:#505c70}
.display-options{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.display-options>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;flex:1 1 180px;padding:16px;border:2px solid #c8cfdf;background:white;border-radius:10px;color:#172c87;white-space:normal;text-align:left;min-height:var(--ui-target)}
.display-options strong{font-size:calc(16px * var(--ui-scale))}.display-options span{font-size:calc(12px * var(--ui-scale));line-height:1.5}
.display-options>button[aria-pressed="true"]{border-color:#172c87;background:#edf0fb;box-shadow:inset 0 0 0 1px #172c87}
.display-options>button:focus-visible{outline:3px solid #172c87;outline-offset:4px}
.display-example{padding:16px;background:#f5f6fa;border-radius:8px;font-size:calc(15px * var(--ui-scale))}
.display-example button{padding:12px 18px;background:#172c87;color:white;border:0;border-radius:8px;min-height:var(--ui-target);font-size:calc(14px * var(--ui-scale));cursor:default}
html:not([data-display-size="standard"]) :is(button,.btn,.button,input:not([type="checkbox"]):not([type="hidden"]),select){min-height:var(--ui-target)}
html:not([data-display-size="standard"]) :is(button,.btn,.button){white-space:normal;line-height:1.4;overflow-wrap:anywhere}
html:not([data-display-size="standard"]) :is(.icon-button,.notification-button){min-width:var(--ui-target);height:auto}
html:not([data-display-size="standard"]) :is(input[type="checkbox"],input[type="radio"]){width:24px;height:24px;min-width:24px;flex-shrink:0}
html:not([data-display-size="standard"]) :is(.field,.checkrow,.days label){font-size:calc(13px * var(--ui-scale))}
html:not([data-display-size="standard"]) :is(.subtext,.hint,.section-body p,.setting-row p){font-size:calc(12px * var(--ui-scale));line-height:1.7}
html:not([data-display-size="standard"]) :is(.topbar,.modal-head,.modal-footer){height:auto;min-height:70px;flex-wrap:wrap}
html:not([data-display-size="standard"]) :is(.actions,.top-right,.detail-head){flex-wrap:wrap}
html:not([data-display-size="standard"]) :is(.panel,.main,.content,.form-card,.card,.section-body){min-width:0}
html:not([data-display-size="standard"]) .table-wrap{overflow-x:auto}
html:not([data-display-size="standard"]) :is(input,textarea,select){font-size:calc(14px * var(--ui-scale))}
html:not([data-display-size="standard"]) .sidebar{overflow-y:auto}
html:not([data-display-size="standard"]) .nav button{height:auto;padding-top:12px;padding-bottom:12px}
html:not([data-display-size="standard"]) :is(.nav button span,.page-head h1,.detail-meta,.row){overflow-wrap:anywhere}
html:not([data-display-size="standard"]) .sidebar .brandname b{font-size:18px}
@media(max-width:1100px){html:not([data-display-size="standard"]) :is(.settings-grid,.split,.two,.formgrid){grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 html:not([data-display-size="standard"]) .content{padding-bottom:calc(145px + env(safe-area-inset-bottom))}
 html:not([data-display-size="standard"]) .bottom-nav>button{font-size:calc(10px * var(--ui-scale));min-height:80px;padding:4px 1px;gap:6px}
 html:not([data-display-size="standard"]) .bottom-nav{align-items:stretch}
 html:not([data-display-size="standard"]) #toast{bottom:calc(125px + env(safe-area-inset-bottom))}
 html:not([data-display-size="standard"]) :is(.mini-grid,.report-summary,.date-chain){grid-template-columns:minmax(0,1fr)}
 html:not([data-display-size="standard"]) .mini-grid>div+div{border-left:0;border-top:1px solid #e7e8e8}
 html:not([data-display-size="standard"]) .mobile-brand{flex:1;min-width:0}
 html:not([data-display-size="standard"]) .mobile-brand span{white-space:normal}
 .display-settings{padding:18px}
}
@media print{:root{--ui-scale:1;--ui-target:0px}.display-settings{display:none}}
