/* One form scale and spacing system for every workspace and dialog. */
.brand-theme {--control5:40px;--control-small5:32px;--radius5:8px;--field-gap5:16px}
.brand-theme :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select){box-sizing:border-box;height:var(--control5)!important;min-height:var(--control5);padding:9px 12px;line-height:20px;font-size:12px;border-radius:var(--radius5);vertical-align:middle}
.brand-theme textarea{box-sizing:border-box;min-height:100px;padding:10px 12px;line-height:20px;font-size:12px;border-radius:var(--radius5)}
.brand-theme button{min-height:var(--control5);line-height:20px;padding:9px 13px;font-size:12px;white-space:normal}
.brand-theme button.small{min-height:var(--control-small5);padding:5px 10px;font-size:11px}
.brand-theme :is(button,input,select,textarea,summary):focus-visible{outline:2px solid var(--accent4);outline-offset:3px}
.brand-theme .linkbtn{min-height:0;padding:0;line-height:1.5}
.brand-theme label.ux-field5{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;font-size:12px;line-height:18px;min-width:0}
.brand-theme .ux-field5>:is(input,select,textarea){margin-top:0!important;width:100%;min-width:0;font-weight:400}
.brand-theme .field-label5{display:block;line-height:18px;font-size:12px;font-weight:500;color:var(--muted);overflow-wrap:anywhere}
.brand-theme .formgrid{gap:var(--field-gap5);align-items:start}
.brand-theme .formgrid>label.ux-field5{margin:0;align-self:stretch}
.brand-theme .formgrid>label.ux-field5>.field-label5{min-height:36px;display:flex;align-items:flex-end;flex-wrap:wrap;gap:3px;align-content:flex-end}
.brand-theme .formgrid{margin-bottom:18px}
.brand-theme .required5{color:#ad6552;font-size:12px}
.brand-theme label.check{min-height:24px;align-items:flex-start;margin-bottom:12px;line-height:20px;font-size:12px;font-weight:400}
.brand-theme input[type=checkbox]{flex:0 0 18px;margin:1px 0 0!important;min-height:18px;max-height:18px;border-radius:4px}
.brand-theme input[type=file]{display:block;box-sizing:border-box;min-height:40px;width:100%;padding:5px;border:1px dashed var(--line);border-radius:8px;font-size:11px;line-height:26px;background:var(--paper)}
.brand-theme input[type=file]::file-selector-button{border:0;border-radius:5px;background:#edf2ef;color:var(--ink);padding:5px 10px;margin-right:10px;font:inherit;line-height:20px;cursor:pointer}
.brand-theme input[type=color]{width:48px!important;min-width:48px;padding:3px!important}
.brand-theme .toolbar{align-items:flex-end;gap:10px;min-width:0}
.brand-theme .toolbar>:is(input,select){flex:1 1 170px;max-width:100%;width:auto}
.brand-theme .toolbar>label{margin:0;flex:0 1 200px}
.brand-theme .toolbar>button{flex-shrink:0}
.brand-theme .color-row{align-items:end}.brand-theme .color-row>input[type=color]{margin-bottom:16px}
.brand-theme .color-row label.ux-field5{margin-bottom:16px}
.brand-theme .listrow{gap:16px;align-items:center;padding:15px 0}
.brand-theme .listrow>div{min-width:0;overflow-wrap:anywhere}
.brand-theme .listrow>select{width:min(260px,45%);flex-shrink:0}
.brand-theme .listrow>button{flex-shrink:0}
.brand-theme td{vertical-align:top;padding:16px;line-height:1.6}.brand-theme th{height:44px;padding:12px 16px;line-height:20px}
.brand-theme .column>h3{min-height:44px;margin:0;padding:0 2px 13px;line-height:18px;align-items:start;gap:8px}
.brand-theme .task>h3{display:block;min-height:0;padding:0;margin:12px 0 8px;line-height:1.5;font-size:13px}
.brand-theme .task .actions{gap:7px}.brand-theme .task .actions button{flex:1;min-width:70px}
.brand-theme .stage-switch button{min-height:92px;justify-content:space-between}.brand-theme .stage-switch button span{min-height:30px;line-height:15px}
.brand-theme .pagehead .actions{justify-content:flex-end}.brand-theme .contract-actions{gap:8px}.brand-theme .contract-actions>button{min-height:36px;padding:7px 11px;font-size:11px}
.brand-theme .settings-nav4{position:sticky;top:18px;align-self:start}
.brand-theme .settings-nav4>button{text-align:left;min-height:40px}
.brand-theme .settings-body5>h2{font-size:19px}.brand-theme .settings-body5 .settings-subhead5{margin:30px 0 12px}
.brand-theme .settings-body5>.pagehead{margin:0}.brand-theme .settings-body5 .panelhead{align-items:flex-start}
.brand-theme .headright{gap:8px;flex-shrink:0}.brand-theme .header-action5,.brand-theme .notification-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;font-size:11px}
.brand-theme .header-action5:first-letter{font-weight:600}.brand-theme .crumb{min-width:0;overflow-wrap:anywhere}.crumb-tab5{color:var(--muted);font-size:11px}
.brand-theme .menu-toggle5,.brand-theme .menu-close5,.menu-shade5{display:none}
.brand-theme #modal[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 32px);width:min(820px,calc(100vw - 32px));padding:0;overflow:hidden}
.brand-theme #modal .modalhead{padding:18px 24px;gap:16px;flex:0 0 auto;align-items:center}
.brand-theme #modal .modalhead h2{font-size:19px;line-height:1.4;margin:0}
.brand-theme #modal .modalbody{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding:20px 24px;flex:1 1 auto;scroll-padding-top:72px}
.brand-theme #modal .modalfoot{padding:15px 24px;gap:10px;flex:0 0 auto;flex-wrap:wrap;border-top:1px solid var(--line)}
.brand-theme .close-dialog5{height:34px;min-height:34px;width:34px;padding:0;font-size:20px;flex-shrink:0}
.brand-theme .dialog-back5{display:block;border:0;background:transparent;padding:0;margin:0 0 6px;min-height:22px;font-size:11px;color:var(--accent4);box-shadow:none}
.brand-theme .form-index5{display:flex;gap:6px;overflow-x:auto;position:sticky;top:-20px;z-index:4;margin:-20px -24px 18px;padding:12px 24px;background:var(--paper);border-bottom:1px solid var(--line);scrollbar-width:thin}
.brand-theme .form-index5 button{min-height:30px;padding:4px 9px;font-size:10px;white-space:nowrap;background:#f4f7f5;flex-shrink:0}
.brand-theme #itemForm [id^=item-section5]{scroll-margin-top:62px}.form-hint5{font-size:10px;color:var(--muted);line-height:1.6;margin-bottom:8px}
.brand-theme #itemForm>.panel{margin-top:18px}.brand-theme #modal .panelhead{align-items:center;gap:12px}
.brand-theme #modal .panelhead h3{margin:0;line-height:1.5}.brand-theme #modal .panelhead button{min-height:32px}
.brand-theme #unsaved4{width:min(500px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:0;color:var(--ink);background:var(--paper)}
.brand-theme #unsaved4 .modalfoot{gap:8px;flex-wrap:wrap}.brand-theme #unsaved4 .modalfoot button{flex:1 1 130px}.brand-theme #unsaved4 .modalhead{padding:18px 22px}.brand-theme #unsaved4 .modalbody{padding:18px 22px}
.brand-theme .ferror:empty{display:none}.brand-theme .ferror:not(:empty){padding:12px;background:#fff1ed;color:#a04438;border-radius:7px;margin-top:12px}
.brand-theme .context-focus5{outline:2px solid var(--accent4);outline-offset:3px}
.brand-theme .help-steps5{margin:24px 0}.brand-theme .help-directory5 details{border-bottom:1px solid var(--line);padding:13px 0}.brand-theme .help-directory5 summary{cursor:pointer;font-size:12px;font-weight:500}.brand-theme .help-directory5 details p{font-size:12px;line-height:1.7;margin:12px 0}.brand-theme .help-directory5 details button{min-height:32px;font-size:11px}
.brand-theme .quick-result5{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 4px;background:transparent}.brand-theme .quick-result5 b{display:block;font-size:12px;font-weight:500}.brand-theme .quick-result5 span{display:block;font-size:10px;color:var(--muted);margin-top:4px}.brand-theme #quickResults5 h3{font-size:11px;color:var(--muted);margin:18px 0 6px}
.brand-theme .welcome5{border:1px solid var(--line);border-radius:14px;padding:0;width:min(460px,calc(100vw - 32px));background:var(--paper);color:var(--ink)}.brand-theme .welcome5 .modalhead{padding:24px 24px 0;border:0}.brand-theme .welcome5 .modalhead h2{font-size:23px}.brand-theme .welcome5 .modalbody{padding:18px 24px 8px;font-size:13px;line-height:1.7}.brand-theme .welcome5 .modalfoot{padding:16px 24px;gap:10px}.brand-theme .welcome5::backdrop{background:rgba(26,35,43,.42);backdrop-filter:blur(3px)}
#tour5[open]{position:fixed;inset:0;margin:0;max-width:none;max-height:none;width:100vw;height:100dvh;border:0;padding:0;background:transparent;overflow:hidden;color:var(--ink)}
#tour5::backdrop{background:transparent}.tour-focus5{position:fixed;border:2px solid var(--accent4);border-radius:9px;box-shadow:0 0 0 9999px rgba(17,27,35,.60);pointer-events:none;z-index:1}
.brand-theme .tour-card5{position:fixed;z-index:2;border-radius:14px;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:22px;box-shadow:0 14px 60px rgba(0,0,0,.25);max-height:calc(100dvh - 32px);overflow:auto}
.brand-theme .tour-card5 h2{font-size:20px;line-height:1.4;margin:16px 0 12px}.brand-theme .tour-card5 p{font-size:12px;line-height:1.8;margin-bottom:22px;color:var(--ink)}
.tour-counter5{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);gap:12px}.brand-theme .tour-counter5 button{min-height:24px;width:24px;padding:0;border:0;font-size:20px;background:none;box-shadow:none}
.tour-progress5{height:3px;background:var(--line);margin-top:12px;border-radius:3px;overflow:hidden}.tour-progress5 i{display:block;height:100%;background:var(--accent4)}
.tour-actions5{display:flex;align-items:center;gap:7px}.tour-actions5>span{flex:1}.brand-theme .tour-actions5 button{min-height:34px;font-size:11px;padding:6px 9px;white-space:nowrap}
body:has(dialog[open]) .review-fab{visibility:hidden}
.brand-theme[data-theme=dark] .form-index5 button{background:#28382f;color:#c6d9cd}.brand-theme[data-theme=dark] .form-index5{background:#202830}.brand-theme[data-theme=dark] .ferror:not(:empty){background:#563b36;color:#f6d8cf}.brand-theme[data-theme=dark] input[type=file]::file-selector-button{background:#33433b;color:#dce3e9}.brand-theme[data-theme=dark] .tour-card5{background:#202830;color:#dce3e9}.brand-theme[data-theme=dark] .tour-card5 p{color:#dce3e9}.brand-theme[data-theme=dark] .settings-body5 .field-label5{color:#b7c2cd}
@media(max-width:1050px){.brand-theme .pagehead{flex-wrap:wrap}.brand-theme .pagehead .actions{justify-content:flex-start}.brand-theme .header-action5 span{display:none}}
@media(max-width:760px){
 .brand-theme .app{display:block}.brand-theme .main{width:100%;min-width:0}.brand-theme aside{position:fixed!important;left:0;top:0;bottom:0;width:min(300px,85vw)!important;height:100dvh!important;z-index:80;padding:20px 16px!important;transform:translateX(-105%);transition:transform .18s ease;overflow:hidden;display:flex!important;flex-direction:column!important}
 .brand-theme.menu-open5 aside{transform:translateX(0)}.brand-theme .brand{padding:4px 40px 18px 0}.brand-theme .brand img{width:30px;height:30px}.brand-theme .brand-name{font-size:20px}.brand-theme .brand-name span{font-size:10px}
 .brand-theme #nav{display:grid!important;overflow-y:auto!important;overflow-x:hidden!important;flex:1;min-height:0;gap:3px;padding-bottom:16px;margin:0}.brand-theme nav .navlabel{display:block!important;margin:16px 10px 5px!important}.brand-theme #nav button{min-height:40px;white-space:normal;font-size:12px;max-width:100%;padding:9px 10px}
 .brand-theme .sidefoot{margin-top:auto;padding-top:12px!important;border-top:1px solid var(--line)!important}.brand-theme .account4{display:flex;margin-bottom:10px}.brand-theme .settings-link{float:none;margin:0}.brand-theme .role-switch-label{display:block!important;margin:8px 0!important}.brand-theme .role-switch-label select{width:100%!important;max-width:100%!important;margin-top:5px!important}.brand-theme .demo-foot{margin-top:9px;font-size:8px}
 .brand-theme .menu-close5{display:block;position:absolute;right:12px;top:15px;min-height:32px;width:32px;padding:0;font-size:20px;border:0;background:transparent}
 .brand-theme .menu-toggle5{display:inline-grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;font-size:16px;order:-3}
 .brand-theme .menu-shade5{position:fixed;inset:0;z-index:75;border:0;border-radius:0;background:rgba(18,27,34,.4);width:100vw;height:100dvh;padding:0}.brand-theme.menu-open5 .menu-shade5{display:block}
 .brand-theme header{position:sticky;top:0;z-index:20;padding:10px 12px;min-height:58px;height:auto;gap:8px;flex-wrap:nowrap;backdrop-filter:blur(10px)}.brand-theme .headright{gap:5px;width:auto}.brand-theme .crumb{display:block;font-size:10px;max-width:none;line-height:1.5;flex:1}
 .brand-theme .header-action5,.brand-theme .notification-button{padding:6px;min-width:32px;min-height:34px;font-size:12px}.brand-theme .header-action5 span{display:none}.brand-theme .notification-button b{min-width:16px;height:16px;font-size:9px}.brand-theme #findButton5{font-size:19px}.brand-theme #helpButton5{font-size:14px}
 .brand-theme .content{padding:20px 14px 70px}.brand-theme .pagehead{gap:14px;flex-direction:column}.brand-theme .pagehead h1{font-size:22px;overflow-wrap:anywhere}.brand-theme .pagehead .actions{width:100%;justify-content:flex-start}.brand-theme .pagehead .actions button{flex:1}
 .brand-theme .formgrid{grid-template-columns:1fr;gap:14px}.brand-theme .formgrid>label.ux-field5>.field-label5{min-height:18px}.brand-theme .toolbar>label{flex:1 1 120px}.brand-theme .toolbar>input,.brand-theme .toolbar>select{flex:1 1 140px;min-width:0}
 .brand-theme .listrow{flex-wrap:wrap;gap:10px}.brand-theme .listrow>div{flex:1 1 100%}.brand-theme .listrow>select{width:100%;max-width:100%}.brand-theme .settings-nav4{position:static;display:flex;flex-direction:row;overflow:auto;gap:4px;padding-bottom:8px}.brand-theme .settings-nav4 button{white-space:nowrap;min-height:36px;padding:7px 9px}.brand-theme .settings-grid4{gap:16px}.brand-theme .settings-body5{padding:18px}
 .brand-theme #modal[open]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.brand-theme #modal .modalhead{padding:14px 16px}.brand-theme #modal .modalhead h2{font-size:17px}.brand-theme #modal .modalbody{padding:16px}.brand-theme #modal .modalfoot{padding:12px 16px;gap:8px}.brand-theme #modal .modalfoot>button{flex:1 1 auto}
 .brand-theme .form-index5{top:-16px;margin:-16px -16px 16px;padding:10px 16px}.brand-theme .color-row{grid-template-columns:48px 1fr}.brand-theme .color-row label.ux-field5{margin-bottom:0}.brand-theme .color-row>input[type=color]{margin-bottom:0}.brand-theme .color-row>label:last-child{grid-column:1/-1}.brand-theme .tour-card5{padding:18px}.brand-theme .tour-card5 h2{font-size:19px}.brand-theme .review-fab{font-size:10px;padding:7px 10px;min-height:32px}
}
@media(prefers-reduced-motion:reduce){.brand-theme aside{transition:none}*{scroll-behavior:auto!important}}
@media print{.form-index5,.tour-card5,#tour5,#welcome5,.header-action5{display:none!important}}
body.brand-theme #tour5[open],body.brand-theme[data-theme=dark] #tour5[open]{background:transparent!important;border:0!important;box-shadow:none!important}
.brand-theme .settings-link.active{color:var(--accent4)!important;font-weight:600}
#tour5::backdrop{background:transparent!important;backdrop-filter:none!important}
.brand-theme .formgrid>label.ux-field5{justify-content:flex-end}
.brand-theme .formgrid>label.ux-field5>.field-label5{min-height:18px;display:block;line-height:18px}
.brand-theme #itemForm>.formgrid:first-of-type{grid-template-columns:minmax(150px,1fr) minmax(240px,1.6fr) minmax(100px,.6fr)}
@media(max-width:760px){.brand-theme #itemForm>.formgrid:first-of-type{grid-template-columns:1fr}}
@media(max-width:760px) and (max-height:550px){
 .brand-theme aside{padding:12px 14px!important}.brand-theme .brand{padding-bottom:10px;margin-bottom:5px}.brand-theme .brand img{height:24px;width:24px}.brand-theme .brand-name{font-size:18px}.brand-theme .brand-name span,.brand-theme .account4,.brand-theme .demo-foot{display:none!important}
 .brand-theme .sidefoot{padding:7px 0 0!important;margin-top:4px}.brand-theme .sidefoot .settings-link{min-height:28px;padding:3px 0}.brand-theme .role-switch-label{font-size:0!important;line-height:0!important;margin:4px 0 0!important}.brand-theme .role-switch-label select{height:32px!important;min-height:32px!important;font-size:10px!important;line-height:18px!important;padding:6px!important;margin:0!important}
}
