/* Layout follows available width and height rather than a device model. */
html{scrollbar-gutter:stable}body{min-width:0}.app,.main,.sidebar,.panel,.section-head,.brand-row{min-width:0;max-width:100%}.main{width:100%;padding-inline:clamp(12px,3vw,40px)}
.sidebar nav{display:flex;flex-direction:column;flex-wrap:nowrap;overflow:visible;min-width:0;max-width:100%}.sidebar nav>div{width:100%;min-width:0}.sidebar nav .nav-link{min-width:0;width:100%;overflow-wrap:anywhere;white-space:normal}.nav-business{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.nav-personal{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.brand-row{display:flex;flex-wrap:wrap;gap:8px 12px}.brand-row>.brand{flex:1 1 200px;min-width:0}.brand-row>.nav-link,.brand-row>.quick-capture{width:auto;min-width:0;max-width:100%;flex:0 1 auto;white-space:normal;overflow-wrap:anywhere}.brand strong{overflow-wrap:anywhere}
.section-head{flex-wrap:wrap}.section-head>*{min-width:0;max-width:100%}.pe-title-copy{flex-wrap:wrap;gap:10px}.pe-title-copy h2{max-width:100%}.pe-title-copy .pe-intro{min-width:0}.task-controls{min-width:0;max-width:100%;flex-wrap:wrap}.task-controls input,.task-controls select{min-width:0;max-width:100%;flex:1 1 160px}.form-row{grid-template-columns:repeat(2,minmax(0,1fr))}.form-row>*{min-width:0}input:not([type=checkbox]):not([type=radio]),select,textarea{max-width:100%;box-sizing:border-box}.dialog-actions{flex-wrap:wrap}.button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.finance-table-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.finance-table{table-layout:auto}.pe-row>div:last-child{display:flex;flex-wrap:wrap;gap:5px;max-width:100%}.pe-row .button{white-space:normal}.panel p,.panel h2,.panel h3,.task-title,.pe-contact strong{overflow-wrap:anywhere}.pe-tabs{flex-wrap:wrap;overflow:visible}.pe-tabs .filter{white-space:normal;min-height:44px}.calendar-grid,.calendar-weekdays,.pe-calendar{min-width:0;width:100%}.calendar-grid>*{min-width:0}.calendar-event{overflow-wrap:anywhere;max-width:100%}
/* A separate bottom dock keeps the round control out of the scrolling text. */
body:has(.quick-navigation:not([hidden]):not(.quick-navigation-secondary)){overflow:hidden}
body:has(.quick-navigation:not([hidden]):not(.quick-navigation-secondary)) .app{height:calc(100dvh - 72px - env(safe-area-inset-bottom));min-height:0;overflow-y:auto;overscroll-behavior-y:contain}
body:has(.quick-navigation:not([hidden]):not(.quick-navigation-secondary))::after{content:"";position:fixed;left:0;right:0;bottom:0;height:calc(72px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);z-index:3}
.quick-navigation{right:max(14px,env(safe-area-inset-right));bottom:calc(10px + env(safe-area-inset-bottom))}
.quick-navigation summary{width:52px;height:52px;min-height:52px;padding:0;border-radius:50%;display:grid;place-items:center;border:2px solid var(--lime);background:var(--navy);color:var(--lime);box-shadow:0 2px 10px #101d3133;font-size:24px;line-height:1}
.quick-navigation .quick-navigation-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.quick-navigation nav{width:min(360px,calc(100vw - 28px));max-height:calc(60dvh - 24px);grid-template-columns:repeat(2,minmax(0,1fr));overscroll-behavior:contain}.quick-navigation button{min-width:0;overflow-wrap:anywhere;font-size:.875rem}
@media(max-width:900px){.sidebar .nav-link{font-size:.875rem}.brand-row>.brand{flex-basis:180px}.section-head-tasks{align-items:stretch}.task-controls{width:100%}.stat{min-width:0}.stat strong{font-size:clamp(1.2rem,4vw,1.8rem)}}
@media(max-width:680px){.nav-business{grid-template-columns:repeat(3,minmax(0,1fr))}.nav-personal{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar nav .nav-link{font-size:.875rem;min-height:44px;padding:8px 5px}.brand-row>.brand{flex:1 1 150px}.brand-row>.nav-link{flex:1 1 130px;font-size:.875rem}.brand-row>.quick-capture{flex:1 1 160px}.form-row,.capture-fields,.pe-grid{grid-template-columns:minmax(0,1fr)}.pe-row{flex-direction:column;align-items:stretch}.pe-title-copy{display:block}.pe-title-copy h2{max-width:100%}.section-head .button{flex:0 1 auto}.task-item{flex-wrap:wrap}.task-main{flex:1 1 180px}.task-actions{margin-left:auto}.stats{gap:8px}.stat{padding:12px}.stat span{font-size:.8rem}.welcome h1{overflow-wrap:anywhere}.task-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto;margin:auto}}
@media(orientation:landscape) and (max-height:600px){.sidebar{max-height:38dvh;padding:8px 12px}.brand-row{gap:4px 8px;margin-bottom:6px}.brand-row>.brand{flex:1 1 150px}.brand small{display:none}.brand-row>.nav-link,.brand-row>.quick-capture{flex:0 1 auto;min-height:40px;padding:6px 9px}.sidebar nav .nav-link{min-height:36px;padding:6px}.nav-business{grid-template-columns:repeat(6,minmax(0,1fr))}.nav-personal{grid-template-columns:repeat(4,minmax(0,1fr))}.sidebar nav{gap:4px}.nav-personal{padding-top:4px}.task-dialog{max-height:calc(100dvh - 16px);margin:8px auto}.appearance-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.appearance-card{display:flex;padding:12px}.appearance-swatch{height:36px;flex:none}}
