/* 3.4.5: a restrained, shared phone scale; desktop layouts keep their scale. */
.startup345-version{position:absolute;bottom:max(12px,env(safe-area-inset-bottom));font:400 10px Dana,sans-serif;opacity:.7}
.mobile345-only{display:none}
.personal345-toggles{display:contents}
.profile345-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.profile345-actions>.button{flex:1;justify-content:center}
button.profile-photo-large{padding:0;flex:none;overflow:hidden}
.statement345-note{display:flex;align-items:flex-start;gap:10px}
.statement345-note>span{flex:1;min-width:0}
.statement345-note>.icon-btn{flex:none;width:30px;height:30px;min-height:30px}
.workflow345-filter{display:contents}
.workflow345-filter>.icon{display:none}
.identity345-role small{font:inherit}
@media(max-width:760px){
 .startup-screen{background:#ce893e;color:#fff}
 .startup-part{fill:#fff}
 .startup-progress i{background:#fff}
 .startup-caption{color:#fff9;font-size:.74rem;bottom:36px}
 .startup345-version{color:#fff}
 .main{padding:16px 12px calc(88px + env(safe-area-inset-bottom))}
 #page .heading,#page .finance344-heading .heading{margin-bottom:14px;gap:9px}
 #page .heading h1,#page .finance344-heading .heading h1{font-size:1.3rem!important;line-height:1.6}
 #page .heading p{font-size:.74rem;line-height:1.8;margin-top:3px}
 #page .heading p:empty{display:none}
 #page .heading .help-trigger{width:26px;height:26px;min-height:26px;margin-inline-start:5px}
 #page .heading-actions{gap:7px;min-width:0}
 #page .heading-actions .button{min-height:40px;padding:7px 10px;font-size:.77rem;gap:6px}
 #page .card-body{padding:14px}
 #page .card-head{padding:12px 14px;gap:8px}
 #page .card-head h2,#page .card-body>h2{font-size:1.02rem}
 #page .toolbar{gap:8px;margin-bottom:14px}
 #page .tab{font-size:.78rem;padding-block:10px}
 #page>.tabs{margin-inline:-12px;padding-inline:12px}
 #page .stats{gap:9px}
 #page .stat{min-width:0;padding:12px;overflow:hidden}
 #page .stat>strong{font-size:1.4rem;margin:7px 0;display:block;max-width:100%;white-space:nowrap;line-height:1.55;font-variant-numeric:tabular-nums}
 #page .stat>strong>span{font-size:inherit}
 #page .stat strong small{display:inline;font-size:.6em;white-space:nowrap}
 #page .stat-bottom{font-size:.66rem;line-height:1.7}
 #page .stat-top{min-width:0;font-size:.73rem;gap:6px}
 #page .stat-top>span:first-child{min-width:0}
 #page .stat-icon{width:27px;height:27px;flex:none}
 #page .stat-icon .icon{width:17px;height:17px}
 #page .ent-totals strong,#page .ent-st-summary strong,#page .ent-select>span,[data-fit345]{display:block;min-width:0;max-width:100%;white-space:nowrap}
 #page .ent-totals strong small{display:inline;font-size:.72em;white-space:nowrap}
 #page .ent-totals{gap:10px;padding:12px 0;margin:10px 0}
 #page .ent-totals>div{min-width:0}
 #page .ent-totals small{font-size:.7rem;line-height:1.7}
 #page .ent-totals strong{font-size:1.05rem;margin-top:4px;line-height:1.65}
 .desktop345-only{display:none!important}.mobile345-only{display:inline}
 .login-layout .brand-side{min-height:228px;padding:18px 22px 16px;gap:11px;align-items:center;text-align:center}
 .login-layout .brand-lockup{display:flex;justify-content:center}
 .login-layout .brand-lockup img{width:clamp(200px,64vw,270px);margin:0 auto;object-position:center}
 .login-layout .brand-copy{text-align:center;width:100%}
 .login-layout .brand-copy .eyebrow{font-size:.75rem}
 .login-layout .brand-copy h1{font-size:1.45rem;line-height:1.5;margin:5px 0 0}
 .login-layout .brand-band{height:14px;background-size:auto 14px;background-position:center}
 .login-layout .form-side{padding:24px 18px 28px}
 .login-layout .login-card h2{font-size:1.5rem;line-height:1.55;margin:7px 0 9px}
 .login-layout .intro{font-size:clamp(10px,3.05vw,13px);white-space:nowrap;line-height:1.8;margin-bottom:22px}
 .login-layout label{font-size:.85rem;margin-bottom:7px}
 .login-layout input{height:48px;margin-bottom:16px;font-size:16px;border-radius:12px}
 .login-layout #submit{height:48px;font-size:.93rem;border-radius:12px}
 .login-layout #login-error{font-size:.8rem;min-height:20px;margin-bottom:7px}
 body[data-page345=attendance] #page>.heading{display:flex;flex-direction:column}
 body[data-page345=attendance] .heading-actions,body[data-page345=people] .heading-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%}
 body[data-page345=attendance] .heading-actions>*,body[data-page345=people] .heading-actions>*{min-width:0;width:100%;margin:0}
 body[data-page345=reports] .report345-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 .report345-toolbar>.row{width:100%;margin:0!important;min-width:0}
 .report345-toolbar>.row:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .report345-toolbar>.row:last-child>.button{padding:7px 5px;min-height:38px;font-size:.76rem;justify-content:center;white-space:nowrap;gap:5px}
 #report-form .report-section{margin-bottom:13px}
 #report-form .report-section>.card-body{padding:13px}
 #report-form .report-section>.card-head{padding:12px 13px}
 #report-form .sticky-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;padding-block:7px;margin-top:12px}
 #report-form .sticky-actions>span{grid-row:2;width:100%;font-size:.65rem;line-height:1.6}
 #report-form .sticky-actions>.row{grid-row:1;justify-content:flex-end;gap:7px;width:100%}
 #report-form .sticky-actions .button{flex:0 1 auto;min-height:37px;padding:6px 11px;font-size:.74rem}
 body[data-page345=people] .team-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
 body[data-page345=people] .team-chip{min-width:0;min-height:66px;padding:9px;gap:7px;width:100%}
 body[data-page345=people] .team-chip .avatar{width:29px;height:29px;flex:none}
 body[data-page345=people] .team-chip>div{min-width:0;flex:1}
 body[data-page345=people] .team-chip strong{font-size:.77rem;line-height:1.5}
 body[data-page345=people] .team-chip small{font-size:.66rem;margin-top:1px}
 body[data-page345=people] .team-chip>.icon-btn{width:30px;min-width:30px;height:34px;min-height:34px}
 body[data-page345=people] .team-chip:first-child:nth-last-child(2){grid-column:1/-1}
 #add-team{grid-column:1/-1;justify-content:center;min-height:38px;padding:7px;font-size:.77rem}
 .people345-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:7px!important}
 .people345-toolbar>.search{grid-column:1/-1;grid-row:1;width:100%;min-width:0;max-width:none;order:0;margin:0!important}
 .people345-toolbar>.row{display:contents!important}
 .people345-toolbar>:is(select,.select262){grid-column:1;grid-row:2;min-width:0;width:100%;margin:0!important}
 .people345-toolbar>.row>.badge{grid-column:2;grid-row:2;font-size:.65rem;white-space:nowrap;padding:5px}
 .people345-toolbar>.row>.button{grid-column:3;grid-row:2;min-height:38px;font-size:.7rem;padding:6px 8px;white-space:nowrap;gap:5px}
 #page .people345-toolbar .icon{width:16px;height:16px}
 #page .heading:has(#add-ledger,#wf-new){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 7px}
 #page .heading:has(#add-ledger,#wf-new)>div:first-child{display:contents}
 #page .heading:has(#add-ledger,#wf-new) h1{grid-column:1;grid-row:1;min-width:0}
 #page .heading:has(#add-ledger,#wf-new) p{grid-column:1/-1;grid-row:2}
 #page .heading:has(#add-ledger,#wf-new) .heading-actions{grid-column:2;grid-row:1;width:auto;min-width:0}
 #page :is(#add-ledger,#wf-new){white-space:nowrap;flex:none;font-size:.72rem;padding:7px 8px;gap:4px}
 #page :is(#add-ledger,#wf-new)>.icon{width:16px;height:16px}
 .finance345-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px}
 .finance345-toolbar>.finance345-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) auto;gap:6px;width:100%;max-width:none;margin:0!important}
 .finance345-range .date-box{min-width:0;gap:5px;padding:7px;font-size:.7rem}
 .finance345-range .date-box input{width:100%;min-width:0;font-size:16px}
 #finance-range{min-width:0;padding:7px 9px;font-size:.72rem;white-space:nowrap}
 .finance345-toolbar>.finance345-person-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;margin:0!important}
 .finance345-person-row>:is(select,.person-select,.select262){width:100%;min-width:0;max-width:none}
 .finance345-person-row .person-select-trigger{min-width:0;width:100%;min-height:39px;padding:7px 10px}
 .finance345-person-row>.button{font-size:.74rem;min-height:39px;padding:7px 10px;white-space:nowrap}
 body[data-page345=petty] .heading-actions,body[data-page345=statements] .heading-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%}
 body[data-page345=petty] .heading-actions>.button,body[data-page345=statements] .heading-actions>.button{min-width:0;width:100%;white-space:nowrap;justify-content:center;font-size:.7rem;padding:7px 5px;gap:4px}
 body[data-page345=petty] .heading-actions .icon{width:15px;height:15px}
 body[data-page345=petty] .heading p{white-space:nowrap;font-size:clamp(10px,3vw,12px)}
 #page .petty342-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 #page .petty342-stats>.stat{min-height:78px;padding:11px 12px}
 #page .petty342-stats>.stat:first-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:3px 8px}
 #page .petty342-stats>.stat:first-child>.stat-top{grid-column:1;grid-row:1}
 #page .petty342-stats>.stat:first-child>strong{grid-column:2;grid-row:1;text-align:left;margin:0}
 #page .petty342-stats>.stat:first-child>.stat-bottom{grid-column:1/-1;grid-row:2}
 body[data-page345=petty] .ent-layout>.card-body>.toolbar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;gap:6px}
 body[data-page345=petty] .ent-layout>.card-body>.toolbar>.button{width:100%;min-width:0;min-height:40px;padding:7px 4px;font-size:.7rem;gap:3px;white-space:nowrap;justify-content:center}
 body[data-page345=petty] .ent-layout>.card-body>.toolbar .icon{width:15px;height:15px}
 body[data-page345=petty] .ent-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-page345=petty] .ent-totals>div:last-child:nth-child(odd){grid-column:1/-1}
 body[data-page345=petty] .ent-layout>.card-body>.row h2{font-size:1.03rem;line-height:1.7}
 #page .st342-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #page .st342-stats>.stat>strong{font-size:1.35rem;overflow:visible}
 #page .st342-stats .stat-top{align-items:flex-start;gap:5px}
 #page .st342-stats .stat-top>span:first-child{font-size:.71rem;line-height:1.6}
 .statement345-note{gap:5px;padding:10px 12px!important;font-size:.73rem;line-height:1.85;margin-bottom:12px}
 .statement345-note>.icon-btn{width:30px;height:30px;min-height:30px}
 body[data-page345=statements] details.wf-space{padding:12px!important}
 body[data-page345=statements] details.wf-space>summary{min-width:0;font-size:.76rem;gap:5px}
 .workflow345-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) 40px 40px;gap:7px!important}
 .workflow345-toolbar:not(:has(#wf-export)){grid-template-columns:minmax(0,1fr) 40px}
 .workflow345-toolbar>.search{min-width:0;max-width:none;width:100%;margin:0!important;order:0}
 .workflow345-toolbar>.search>input{min-width:0;font-size:16px;padding-inline:0}
 .workflow345-toolbar .search{gap:5px;padding-inline:9px;padding-block:0;height:40px;min-height:40px;align-items:center}
 .workflow345-toolbar .search>input{height:38px;min-height:0;padding-block:0!important}
 .workflow345-toolbar .search>.icon{width:17px;height:17px}
 .workflow345-filter{display:block;position:relative;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin:0!important}
 .workflow345-filter.active{border-color:var(--orange);background:var(--orange-soft);color:var(--orange-dark)}
 .workflow345-filter>.icon{display:block;position:absolute;inset:0;margin:auto;width:18px;height:18px;pointer-events:none}
 .workflow345-filter>:is(select,.select262){position:absolute;inset:0;width:100%;height:100%;min-width:0;opacity:0;cursor:pointer}
 .workflow345-filter .select262-native{width:100%;height:100%}
 .workflow345-filter:focus-within{outline:2px solid var(--orange);outline-offset:2px}
 #wf-export{width:40px;height:40px;min-width:40px;min-height:40px;justify-content:center;padding:0;margin:0!important}
 #wf-export>span{display:none}
 .chat-hint{display:none!important}
 .chat-compose textarea{font-size:16px;resize:none}
 body.chat345-typing{overflow:hidden}
 body.chat345-typing .mobile-bottom,body.chat345-typing .footer{display:none!important}
 body.chat345-typing #chat27-page .chat-main{position:fixed;inset:auto;left:var(--chat345-left);top:var(--chat345-top);width:var(--chat345-width);height:var(--chat345-height);min-height:0;max-height:none;margin:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--surface);z-index:80;overflow:hidden}
 body.chat345-typing .chat-title{flex:0 0 auto;min-height:46px;padding:8px 10px}
 body.chat345-typing .chat-messages{flex:1 1 0;min-height:0;height:auto;max-height:none;overscroll-behavior:contain}
 body.chat345-typing .chat-compose{position:static;flex:none;margin:0;padding:8px;gap:6px;border-top:1px solid var(--line)}
 body.chat345-typing .chat27-selected-files{flex:none;max-height:72px;overflow:auto}
 body.chat345-typing .chat-compose textarea{min-height:42px;max-height:110px;margin:0}
 body.chat345-typing .chat-compose>:is(.button,.icon-btn){min-height:42px;height:42px;min-width:40px}
 body[data-page345=profile] #page>.heading{margin-bottom:12px}
 #page .profile-hero{padding:15px;gap:12px;margin-bottom:12px;flex-wrap:nowrap}
 #page .profile-hero h2{font-size:1.15rem;line-height:1.6}
 #page .profile-hero p{font-size:.8rem;margin-top:2px}
 #page .profile-hero .profile-photo-large{width:62px;height:62px;min-width:62px;aspect-ratio:1;border-radius:50%}
 #page .profile345-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:13px}
 #page .profile345-actions>.button{min-width:0;font-size:.78rem;padding:8px;min-height:40px;white-space:nowrap}
 #page .settings-grid{gap:12px;margin-bottom:12px}
 .identity-current>small{display:none}
 .identity345-role{display:block;padding:10px 12px;margin-block:12px;font-size:.78rem;line-height:1.7}
 .identity345-role>span{white-space:nowrap;max-width:100%;display:block}
 .identity345-role small{display:none}
 .personal345-toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-column:1/-1;gap:0;border:1px solid var(--line);border-radius:13px;background:var(--surface2);overflow:hidden}
 .personal345-toggles>.personal-setting{display:flex;align-items:center;justify-content:center;gap:7px;min-height:49px;padding:10px;margin:0;border:0;border-radius:0;background:transparent;color:var(--muted)}
 .personal345-toggles>.personal-setting+ .personal-setting{border-inline-start:1px solid var(--line)}
 .personal345-toggles>.personal-setting[aria-pressed=true]{color:var(--orange-dark);background:var(--orange-soft)}
 .personal345-toggles>.personal-setting>span{display:none}
 .personal345-toggles>.personal-setting>.icon:last-child{display:none}
 .personal345-toggles>.personal-setting>.icon:first-child{width:23px;height:23px}
}
