/* CAEL 0.5.67 — shared interface tokens and explicit presentation adapters.
   Business states, custom column widths and stored form geometry remain authoritative. */
:root{
 --ui67-canvas:#f3f6f9;--ui67-paper:#fff;--ui67-ink:#173245;--ui67-muted:#506779;
 --ui67-line:#d8e2ea;--ui67-line-strong:#bacbd8;--ui67-action:#086978;--ui67-action-hover:#075563;
 --ui67-action-soft:#e9f5f6;--ui67-accent:#f39222;--ui67-navy:#132f40;
 --ui67-ok:#17643e;--ui67-ok-soft:#eaf6ef;--ui67-warn:#805200;--ui67-warn-soft:#fff6e4;
 --ui67-danger:#a12837;--ui67-danger-soft:#fff0f2;--ui67-radius:12px;
 --ui67-shadow:0 3px 14px #17324507;--ui67-focus:#126f8a;
}
html[data-interface567]{--bg:var(--ui67-canvas);--paper:var(--ui67-paper);--ink:var(--ui67-ink);--muted:var(--ui67-muted);--line:var(--ui67-line);--teal:var(--ui67-action);--teal-soft:var(--ui67-action-soft);--red:var(--ui67-danger);color:var(--ui67-ink);}
html[data-interface567] [hidden]{display:none!important}
html[data-interface567] body{background:var(--ui67-canvas);color:var(--ui67-ink)}
html[data-interface567] :is(button,a,input,select,textarea,summary){-webkit-tap-highlight-color:transparent}
html[data-interface567] :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--ui67-focus);outline-offset:3px}
html[data-interface567] ::selection{background:#cceaf0;color:#102f3e}
html[data-interface567] :is(.btn,.icon-btn){border-radius:10px;border-color:var(--ui67-line);color:var(--ui67-ink);box-shadow:none;font-weight:600;transition:background-color .12s,border-color .12s;}
html[data-interface567] .btn{min-height:40px;padding:10px 15px;font-size:13px;line-height:1.25;}
html[data-interface567] .btn.primary{background:var(--ui67-action);border-color:var(--ui67-action);color:white;box-shadow:0 2px 4px #0869780c}
html[data-interface567] .btn.primary:hover:not(:disabled){background:var(--ui67-action-hover);border-color:var(--ui67-action-hover);color:#fff}
html[data-interface567] :is(.btn,.icon-btn):hover:not(:disabled):not(.primary):not(.danger){background:#eef4f7;border-color:#afc6d4}
html[data-interface567] .btn.danger{color:var(--ui67-danger);background:var(--ui67-danger-soft);border-color:#e7b9c1}
html[data-interface567] :is(button,.btn):disabled{cursor:not-allowed;box-shadow:none;filter:none;}
html[data-interface567] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea){background:#fff;border-color:var(--ui67-line-strong);border-radius:9px;min-height:42px;color:var(--ui67-ink);box-shadow:0 1px 2px #17324504;font-size:14px;}
html[data-interface567] :is(input[readonly],textarea[readonly]){background:#eef3f6!important;color:#385568;box-shadow:none;}
html[data-interface567] :is(input,select,textarea):disabled{background:#f0f3f5;color:#627380;opacity:1;-webkit-text-fill-color:#627380;}
html[data-interface567] :is(input,select,textarea)[aria-invalid=true]{border-color:var(--ui67-danger)!important;outline-color:var(--ui67-danger);background:#fff9fa;}
html[data-interface567] :is(input[type=checkbox],input[type=radio]){accent-color:var(--ui67-action);}
html[data-interface567] input::placeholder,html[data-interface567] textarea::placeholder{color:#6b7d8b;opacity:1}
html[data-interface567] label{color:#344f61;font-size:13px;line-height:1.4}
html[data-interface567] .pill{border-radius:7px;min-height:23px;line-height:1.35;border:1px solid transparent;color:#425f72;background:#edf2f6;font-weight:600;}
html[data-interface567] .pill.ok{background:var(--ui67-ok-soft);color:var(--ui67-ok);border-color:#cbe7d6}
html[data-interface567] .pill.warn{background:var(--ui67-warn-soft);color:var(--ui67-warn);border-color:#eed7a9}
html[data-interface567] .pill.bad{background:var(--ui67-danger-soft);color:var(--ui67-danger);border-color:#efc7ce}
html[data-interface567] .pill.resolved{background:#e7f3f9;color:#1b628a;border-color:#c4deed}
html[data-interface567] :is(.dept-muted,.nf-muted,.w531-caption){color:var(--ui67-muted)}
html[data-interface567] :is(.panel,.nf-table,.fin52-table){border-color:var(--ui67-line);box-shadow:var(--ui67-shadow)}
html[data-interface567] :is(.dept-heading h1,.ux16-title h1,.works524-header h1,.w531-title){color:var(--ui67-ink);font-weight:700;letter-spacing:-.5px}
html[data-interface567] .dept-heading h1{font-size:27px;margin-top:6px}
html[data-interface567] .dept-heading{margin-bottom:20px}
html[data-interface567] :is(.dept-heading p,.dept-note p){color:var(--ui67-muted)}
html[data-interface567] .dept-eyebrow{color:var(--ui67-action);font-size:10px;letter-spacing:1.1px}
/* Shell: compact installed identity, navigable context, stable account controls. */
html[data-interface567] .ux667-sidebar{width:244px;padding:14px 12px 10px;background:#fff;border-right:1px solid var(--ui67-line);}
html[data-interface567] .ux667-sidebar>.brand{min-height:78px;margin:0 0 13px;}
html[data-interface567] .ux667-sidebar .brand-logo{width:100px;height:65px;object-fit:contain;}
html[data-interface567] .ux667-sidebar .brand-sub{color:#567081;font-size:8px;letter-spacing:4px;padding-left:4px;margin:0}
.ux667-brand-fallback{font-size:32px;letter-spacing:-1.3px;color:var(--ui67-navy);line-height:1.2;border-bottom:4px solid var(--ui67-accent);padding:0 5px 5px;margin-bottom:5px}
html[data-interface567] .ux667-sidebar .nav-item{font-size:12px;min-height:40px;padding:9px 10px;border-radius:8px;color:#466071;gap:9px;}
html[data-interface567] .ux667-sidebar .nav-item svg{width:17px;height:17px;flex-shrink:0;}
html[data-interface567] .ux667-sidebar .nav-item:hover{background:#f0f5f8;}
html[data-interface567] .ux667-sidebar .nav-item.active{background:var(--ui67-action-soft);color:#075968;box-shadow:inset 3px 0 var(--ui67-action);border-left:0;font-weight:700;}
html[data-interface567] .ux667-sidebar .dept-folder{margin:4px 0}
html[data-interface567] .ux667-sidebar .dept-toggle{border-radius:8px;padding:11px 10px;min-height:40px;background:transparent;color:#233f52;font-size:12px;gap:9px;}
html[data-interface567] .ux667-sidebar .dept-toggle:hover{background:#f2f5f8}
html[data-interface567] .ux667-sidebar .dept-children{border-left:1px solid var(--ui67-line);padding:2px 0 4px 10px;margin:0 0 6px 17px;}
html[data-interface567] .ux667-sidebar .dept-chevron{color:#516b7e;}
html[data-interface567] .ux667-sidebar .dept-sidebar-foot{color:#506879;border-color:var(--ui67-line);padding-top:15px;}
html[data-interface567] .ux667-shell{margin-left:244px;background:var(--ui67-canvas)}
html[data-interface567] .ux667-shell>.topbar{height:66px;min-height:66px;padding:0 24px;gap:12px;background:#fff;border-bottom:1px solid var(--ui67-line);position:relative;z-index:21;flex-wrap:nowrap;}
html[data-interface567] .ux667-shell .topbar .dept-product{display:block!important;flex:1;min-width:0;overflow:hidden;}
html[data-interface567] .ux667-shell .dept-profile-tools{gap:8px;flex:0 0 auto;}
html[data-interface567] .ux667-shell .dept-env{position:static;font-size:10px;color:#675219;background:#fffae9;border:1px solid #eadfb9;padding:5px 9px;}
html[data-interface567] .ux667-shell .dept-top-action{font-size:11px;border-radius:9px;min-height:38px;padding:8px 10px;}
html[data-interface567] .ux667-shell .avatar{background:var(--ui67-action-soft);color:#075968;border:1px solid #cde6e9;}
html[data-interface567] .ux667-shell>.main{max-width:1740px;width:100%;padding:24px 28px 18px;box-sizing:border-box;min-width:0;}
html[data-interface567] .ux667-shell .footer{color:#60778a;font-size:10px;margin-top:30px;}
.ux667-breadcrumbs{display:flex;align-items:center;gap:9px;white-space:nowrap;overflow:hidden;font-size:12px;line-height:1.5;}
.ux667-breadcrumbs a{color:#516b7e;text-decoration:none;flex-shrink:0;}
.ux667-breadcrumbs a:hover{text-decoration:underline;text-underline-offset:3px;}
.ux667-breadcrumbs [aria-current=page]{font-weight:700;color:#1c394c;overflow:hidden;text-overflow:ellipsis;}
.ux667-bc-sep{color:#8094a3}
html[data-interface567] .ux667-help{min-width:36px;min-height:36px;width:36px;height:36px;border:1px solid var(--ui67-line);font-size:18px;color:#31556a;font-weight:700;}
.ux667-top-search{display:none}
.ux667-sidebar-search{border:1px solid #c8d8e3;border-radius:9px;background:#f5f8fa;display:flex;align-items:center;gap:8px;padding:10px;margin:0 2px 16px;min-height:42px;color:#344f60;font-size:11px;cursor:pointer;}
.ux667-sidebar-search svg{width:17px;height:17px;flex-shrink:0}
.ux667-sidebar-search kbd{margin-left:auto;font:9px ui-monospace,monospace;background:#fff;border:1px solid #d5e0e7;border-radius:4px;padding:3px;color:#536a7a;white-space:nowrap;}
#ux667-skip{position:fixed;top:8px;left:8px;z-index:2000;transform:translateY(-150%);background:white;color:var(--ui67-action);padding:12px 20px;border:2px solid var(--ui67-focus);border-radius:8px;font-size:14px;}
#ux667-skip:focus{transform:translateY(0)}
html[data-interface567] #ux16-loading{top:66px;background:var(--ui67-navy);border-radius:0 0 8px 8px;}
/* Central: direct, authorized tasks instead of dashboard-only detours. */
.ux667-home{max-width:1480px;margin:0 auto;}
.ux667-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 32px;background:var(--ui67-navy);color:#fff;border-radius:16px;position:relative;overflow:hidden;margin-bottom:26px;border-top:3px solid var(--ui67-accent);}
.ux667-hero-text{min-width:0;flex:1;}
.ux667-eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:700;color:#a5cbd5;}
.ux667-hero h1{font-size:29px;color:#fff;margin:9px 0 9px;letter-spacing:-.65px;line-height:1.2;}
.ux667-hero p{color:#c5d9e2;font-size:13px;margin:0;line-height:1.65;}
.ux667-hero-search{width:min(370px,42%);flex-shrink:0;min-height:76px;display:flex;align-items:center;text-align:left;gap:14px;padding:15px 18px;background:#fff;border:1px solid #fff;border-radius:11px;color:#203e51;cursor:pointer;font-size:13px;font-weight:700;}
.ux667-hero-search>svg{width:23px;height:23px;color:#137286;flex-shrink:0;}
.ux667-hero-search small{display:block;font-size:11px;color:#5b7282;font-weight:400;margin-top:6px;}
.ux667-hero-search kbd{font-size:10px;padding:4px;border:1px solid #cfdde6;border-radius:4px;color:#597184;white-space:nowrap;margin-left:auto;}
.ux667-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:23px 0 12px;}
.ux667-section-head h2{font-size:17px;letter-spacing:-.2px;margin:0;color:#183447;}
.ux667-section-head>span{font-size:11px;color:#567082;}
.ux667-tasks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.ux667-task{background:#fff;border:1px solid var(--ui67-line);border-radius:12px;padding:17px 15px;display:flex;align-items:center;gap:11px;box-shadow:var(--ui67-shadow);transition:border-color .12s,background .12s;text-decoration:none;color:var(--ui67-ink);min-width:0;}
.ux667-task:hover{border-color:#78afbb;background:#fafeff;}
.ux667-task-icon{width:37px;height:37px;border-radius:10px;background:var(--ui67-action-soft);display:grid;place-items:center;flex-shrink:0;color:var(--ui67-action);}
.ux667-task-icon svg{width:20px;height:20px;}
.ux667-task>span:nth-child(2){min-width:0;flex:1;}
.ux667-task b{display:block;font-size:12px;line-height:1.45;}
.ux667-task small{display:block;font-size:11px;line-height:1.5;color:#617586;margin-top:3px;}
.ux667-task>svg{width:15px;height:15px;color:#557688;flex-shrink:0;}
.ux667-departments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.ux667-department{background:#fff;border:1px solid var(--ui67-line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--ui67-shadow);}
.ux667-department>header{display:flex;gap:12px;align-items:center;padding:19px 18px 15px;}
.ux667-department-icon{width:36px;height:36px;background:var(--dept-soft,#edf4f7);color:var(--dept,var(--ui67-action));border-radius:10px;display:grid;place-items:center;flex-shrink:0;}
.ux667-department-icon svg{width:21px;height:21px;}
.ux667-department h3{font-size:16px;line-height:1.25;margin:0 0 4px;color:#18384a;}
.ux667-department header small{font-size:10px;color:#5a7485;}
.ux667-department>nav{padding:0 10px 11px;flex:1;display:flex;flex-direction:column;gap:2px;}
.ux667-department>nav>a,.ux667-related>a{display:flex;align-items:center;gap:9px;padding:10px;border-radius:7px;text-decoration:none;color:#365367;font-size:12px;}
.ux667-department>nav>a:hover{background:#f0f5f8;}
.ux667-department>nav>a svg,.ux667-related>a svg{width:16px;height:16px;flex-shrink:0;color:#547486;}
.ux667-department>nav>a svg:last-child,.ux667-related>a svg:last-child{margin-left:auto;width:13px;}
.ux667-panel-link{border-top:1px solid var(--ui67-line);color:#446579;background:#f8fafc;padding:12px 18px;font-size:11px;display:flex;align-items:center;gap:9px;text-decoration:none;}
.ux667-panel-link:hover{color:var(--ui67-action);background:#edf6f8;}
.ux667-panel-link svg{width:15px;height:15px;}.ux667-panel-link svg:last-child{margin-left:auto;}
.ux667-planned{margin:18px 0 0;background:#eef3f6;border:1px dashed #bdcedb;padding:0;border-radius:10px;color:#506d81;}
.ux667-planned summary{cursor:pointer;font-size:12px;padding:12px 16px;}.ux667-planned summary span{margin-left:8px;background:#dfe8ee;padding:2px 6px;border-radius:4px;font-size:10px;}
.ux667-planned>p{font-size:12px;margin:4px 16px 10px;}.ux667-planned>div{padding:0 16px 14px;display:flex;gap:8px;}
.ux667-home-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;color:#5d7485;font-size:11px;}.ux667-home-foot>span{display:flex;align-items:center;gap:7px;}.ux667-home-foot svg{width:14px;height:14px;flex-shrink:0;}
/* Task maps clarify where the module fits, never masquerading as record progress. */
.ux667-context{border:1px solid var(--ui67-line);background:#fafdff;border-radius:10px;margin:-3px 0 14px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:10px 14px;}
.ux667-context>p{font-size:12px;color:#49687a;margin:0;line-height:1.6;flex:1;}
.ux667-context>details>summary{display:flex;align-items:center;gap:7px;color:#2e6074;font-size:11px;cursor:pointer;min-height:30px;list-style:none;}
.ux667-context>details>summary::-webkit-details-marker{display:none}
.ux667-context>details>summary svg{width:14px;height:14px;}
.ux667-context>details[open]{flex-basis:100%;}
.ux667-context>details[open]>summary{border-top:1px solid #dfebf0;padding-top:8px;margin-top:5px;}
.ux667-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;padding:0;list-style:none;margin:14px 0 10px;counter-reset:step;}
.ux667-flow li{display:flex;align-items:center;gap:9px;background:#f0f5f8;border:1px solid #d9e6ed;border-radius:9px;padding:12px 10px;line-height:1.45;}
.ux667-flow li>span{display:grid;place-items:center;border-radius:50%;width:24px;height:24px;flex:0 0 24px;background:#fff;color:#587185;font:11px ui-monospace,monospace;border:1px solid #d0dde6;}
.ux667-flow li b{font-size:11px;font-weight:600;color:#3f5e72;}
.ux667-flow li.ux667-current{background:var(--ui67-action-soft);border-color:#a4cdd3;}
.ux667-flow li.ux667-current>span{background:var(--ui67-action);border-color:var(--ui67-action);color:#fff;}
.ux667-note{font-size:12px;color:#516e7f;line-height:1.6;margin:8px 0;}
.ux667-related{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;}
.ux667-related>a{border:1px solid #ccdde7;background:white;font-size:11px;padding:9px 12px;min-height:34px;}
.ux667-list-mode{display:flex;align-items:center;gap:2px;border:1px solid #cfdde6;border-radius:9px;padding:3px;background:#eff4f7;font-size:10px;margin-left:auto;}
.ux667-list-mode>span{padding:0 7px;color:#567184;}
.ux667-list-mode button{border:1px solid transparent;background:transparent;color:#4f6a7e;border-radius:6px;font-size:11px;min-height:31px;padding:6px 10px;cursor:pointer;}
.ux667-list-mode button[aria-pressed=true]{color:#164e60;background:#fff;border-color:#c9dce6;box-shadow:0 1px 3px #15344609;}
.ux667-empty{padding:24px 16px;text-align:center;font-size:12px;color:#597487;line-height:1.6;}
.ux667-empty>svg{width:26px;height:26px;display:block;margin:0 auto 10px;color:#69879a;}
.ux667-empty>b{display:block;color:#2f5064;font-size:14px;}
.ux667-empty>p{margin:7px auto 12px;max-width:530px;}
/* Common records: labelled cards use the original DOM cells/buttons and retain all selected columns. */
html[data-interface567] .ux667-cards :is(.nf-scroll,.h54-scroll){overflow-x:hidden!important;max-height:none!important;}
html[data-interface567] .ux667-cards .r522-table{display:block;width:100%!important;min-width:0!important;border:0;table-layout:auto;}
html[data-interface567] .ux667-cards .r522-table>colgroup{display:none!important;}
/* Cards label their own cells; a hidden table header must not float over groups
   or leave invisible sort/resize controls in the keyboard sequence. */
html[data-interface567] .ux667-cards .r522-table>thead{display:none!important;}
html[data-interface567] .ux667-cards .r522-table>tbody{display:block;width:100%;}
html[data-interface567] .ux667-cards .r522-table tr:not([data-nf-row]){display:block;}
html[data-interface567] .ux667-cards .r522-table tr:not([data-nf-row])>td{display:block;width:100%!important;}
html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:12px;border:1px solid #d3e1ea;border-radius:11px;background:white;overflow:hidden;box-shadow:0 2px 6px #17324504;}
html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]>td{width:auto!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:52px!important;max-height:none!important;padding:10px 14px!important;display:flex;flex-direction:column;gap:5px;position:static!important;left:auto!important;right:auto!important;border-color:#e5edf2;background:#fff!important;white-space:normal!important;overflow:visible!important;}
html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]>td:before{content:attr(data-ux667-label);display:block;font-size:10px;font-weight:600;color:#58758a;line-height:1.3;}
html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]>td[data-c53-col=name]{grid-column:1/-1;background:#f5f9fc!important;border-bottom:1px solid #d6e4ed;}
html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]>td[data-c53-col=name]:before{display:none;}
html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]>td[data-c53-fixed=actions]{grid-column:1/-1;min-height:44px!important;padding:5px 14px!important;background:#f9fbfd!important;}
html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]>td[data-c53-fixed=actions]:before{display:none;}
html[data-interface567] .ux667-cards .r522-cell{height:auto!important;min-height:28px!important;max-height:none!important;white-space:normal!important;overflow:visible!important;align-items:center;}
html[data-interface567] .ux667-cards .r522-cell :is(.nf-row-open,.c53-value,small,.b57-name,.b57-name>div,.nf-link){white-space:normal!important;max-height:none!important;height:auto!important;overflow:visible!important;word-break:normal;overflow-wrap:anywhere;line-height:1.5!important;}
html[data-interface567] .ux667-cards .r522-cell .nf-row-open{font-size:13px!important;color:#164c62!important;text-align:left;}
html[data-interface567] .ux667-cards .r522-cell .r522-more{display:none!important;}
html[data-interface567] .ux667-cards .r522-cell .map046-preview{min-height:68px!important;height:68px!important;max-height:68px!important;}
/* Tables/settings/admin/department panels share a quieter, higher-contrast hierarchy. */
html[data-interface567] :is(.nf-table,.fin52-table,.users-table,.permissions-table,.workspace531-admin table) thead th{color:#3a5a70;background:#edf4f8;border-color:#cfdee8;font-size:11px;line-height:1.4;}
html[data-interface567] :is(.nf-pager,.fin52-pages){background:#f9fbfd;border-top:1px solid #deE8f0;min-height:50px;}
html[data-interface567] .ux16-frame{border-radius:12px;}
html[data-interface567] .ux16-toolbar{gap:8px;}
html[data-interface567] .ux16-menu>summary{background:#fff;border-color:var(--ui67-line);border-radius:9px;color:#3d5b6e;}
html[data-interface567] .ux16-menu[open]>summary{border-color:#87b7c4;background:#f0f8fa;}
html[data-interface567] .ux16-popover{border-color:#c8dbe6;box-shadow:0 12px 34px #15364720;border-radius:12px;}
html[data-interface567] .ux16-title h1{font-size:26px;}
html[data-interface567] :is(.fin52-kpis,.dept-kpis)>article{background:#fff;border-top:3px solid #aacbd4;border-radius:10px;}
html[data-interface567] :is(.fin52-kpis,.dept-kpis) strong{color:#143c52;font-variant-numeric:tabular-nums;}
html[data-interface567] .workspace531-settings .w531-card{border-radius:12px;border-color:var(--ui67-line);box-shadow:var(--ui67-shadow);}
html[data-interface567] :is(.w531-tabs,.nf-tabs,.admin-tabs){gap:5px;}
html[data-interface567] :is(.w531-tabs,.nf-tabs,.admin-tabs)>:is(a,button){border-radius:8px;}
html[data-interface567] .w531-tabs [aria-selected=true]{background:var(--ui67-action);color:white;border-color:var(--ui67-action);}
html[data-interface567] .dept-modules>.dept-module{padding:16px;border-radius:11px;}
html[data-interface567] .dept-status{border-radius:12px;}
/* Dialogs: preserve specialized grids, avoid shrinking labels, keep scroll inside the content. */
html[data-interface567] #modal.ux667-modal[open]{display:flex;flex-direction:column;overflow:hidden;max-width:calc(100vw - 28px);max-height:calc(var(--x520-viewport-height,100dvh) - 28px);border:1px solid #bccedb;border-radius:14px;box-shadow:0 22px 80px #102a4040;}
html[data-interface567] #modal.ux667-modal::backdrop{background:#102c4366;backdrop-filter:blur(2px);}
html[data-interface567] #modal.ux667-modal>.modal-header{flex:0 0 auto;background:#fff;border-bottom:1px solid #d3e1eb;padding:16px 20px;gap:12px;}
html[data-interface567] #modal.ux667-modal>.modal-header .grow{min-width:0;}
html[data-interface567] #modal.ux667-modal>.modal-header h2{font-size:17px;line-height:1.45;overflow-wrap:break-word;color:#173c51;}
html[data-interface567] #modal.ux667-modal>.modal-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px;}
html[data-interface567] #modal.ux667-modal>.modal-footer{flex:0 0 auto;background:#f9fbfd;border-top:1px solid #d3e1eb;padding:12px 18px;gap:8px;display:flex;flex-wrap:wrap;align-items:center;}
html[data-interface567] #modal.ux667-modal>.modal-footer .btn.primary{margin-left:4px;}
html[data-interface567] #modal.ux667-modal :is(.nf-field,.cpu527-grid>label,.budget528-grid>label,.p047-field){min-width:0;overflow-wrap:break-word;}
.ux667-form-help{display:flex;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding:9px 12px;border:1px solid #dbe7ed;background:#f5f9fb;border-radius:8px;font-size:10px;color:#506f83;margin:0 0 16px;line-height:1.6;}
.ux667-required{color:var(--ui67-danger);font-weight:700;}
.ux667-field-errors{border:1px solid #e2b6bf;border-left:4px solid var(--ui67-danger);background:#fff7f8;border-radius:9px;padding:12px 14px;margin:0 0 16px;color:#912437;}
.ux667-field-errors>b{display:block;font-size:13px;margin-bottom:7px;}
.ux667-field-errors>button{display:block;border:0;background:transparent;text-align:left;color:#912437;text-decoration:underline;text-underline-offset:3px;font-size:12px;padding:6px 0;cursor:pointer;}
html[data-interface567] #toast{padding-right:45px;border-radius:10px;box-shadow:0 10px 30px #173a4226;max-width:min(500px,calc(100vw - 28px));line-height:1.6;}
html[data-interface567] #toast.bad{background:#7f2533;color:white;}
#toast [data-ux667=close-toast]{position:absolute;right:6px;top:6px;width:32px;height:32px;min-height:32px;border:1px solid #ffffff60;border-radius:6px;background:transparent;color:inherit;font-size:20px;cursor:pointer;padding:0;}
/* Fast finder: only current-authorized route metadata, no record search. */
.ux667-launcher{width:680px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 60px);border:1px solid #becfdb;border-radius:16px;padding:0;color:var(--ui67-ink);background:white;box-shadow:0 28px 90px #122e3e40;}
.ux667-launcher[open]{display:flex;flex-direction:column;}
.ux667-launcher::backdrop{background:#102c4370;backdrop-filter:blur(3px);}
.ux667-launcher>header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:23px 25px 16px;flex:0 0 auto;}
.ux667-launcher>header small{display:block;font-size:10px;letter-spacing:1.3px;color:#487487;font-weight:700;margin-bottom:7px;}
.ux667-launcher h2{font-size:23px;letter-spacing:-.4px;margin:0;color:#173a4e;}
.ux667-finder-search{padding:0 25px;flex:0 0 auto;}
.ux667-finder-search>label{font-size:11px;display:block;margin-bottom:6px;}
.ux667-finder-search>div{position:relative;}
.ux667-finder-search>div>svg{position:absolute;left:13px;top:13px;width:19px;height:19px;color:#427285;}
html[data-interface567] #ux667-finder-query{width:100%;padding-left:42px;min-height:46px;font-size:15px;border-color:#abc9d6;}
.ux667-finder-search>small{font-size:10px;color:#5c7585;display:block;margin-top:8px;line-height:1.5;}
.ux667-finder-filters{padding:15px 25px 10px;display:flex;gap:6px;flex-wrap:wrap;flex:0 0 auto;}
html[data-interface567] .ux667-finder-filters>.btn{padding:6px 12px;min-height:32px;font-size:11px;border-radius:7px;}
html[data-interface567] .ux667-finder-filters>.btn[aria-pressed=true]{background:var(--ui67-action);border-color:var(--ui67-action);color:white;}
#ux667-finder-count{padding:0 25px 10px;font-size:11px;color:#5e7586;flex:0 0 auto;}
#ux667-finder-results{overflow:auto;overscroll-behavior:contain;padding:0 12px 12px;min-height:90px;flex:1 1 auto;}
#ux667-finder-results>a{display:flex;align-items:center;gap:13px;padding:12px;border-radius:9px;text-decoration:none;color:#1f4255;border:1px solid transparent;}
#ux667-finder-results>a:hover,#ux667-finder-results>a:focus-visible{background:#edf7fa;border-color:#c0dce6;outline-offset:-2px;}
.ux667-result-icon{width:36px;height:36px;background:#eff5f8;border:1px solid #dae6ec;color:#326a80;display:grid;place-items:center;border-radius:9px;flex-shrink:0;}
.ux667-result-icon>svg{width:20px;height:20px;}
#ux667-finder-results>a>span:nth-child(2){flex:1;min-width:0;}
#ux667-finder-results>a b{display:block;font-size:13px;line-height:1.5;}
#ux667-finder-results>a small{display:block;font-size:10px;color:#5d7687;margin-top:3px;line-height:1.5;}
#ux667-finder-results>a>svg{width:16px;height:16px;color:#658696;flex-shrink:0;}
.ux667-launcher>footer{padding:12px 25px;background:#f5f9fb;border-top:1px solid #d9e6ed;font-size:10px;color:#567487;line-height:1.5;display:flex;justify-content:space-between;gap:15px;flex:0 0 auto;}
.ux667-guide-body{padding:0 25px 23px;overflow:auto;min-height:0;}
.ux667-guide-body>p{font-size:14px;line-height:1.7;color:#45677c;}
.ux667-guide-box{border-top:1px solid #d7e5ed;margin-top:22px;padding-top:16px;}
.ux667-guide-box h3{font-size:14px;margin:0 0 9px;color:#1e475e;}
.ux667-guide-box p{font-size:12px;line-height:1.75;color:#48697f;}
.ux667-guide-box kbd{font:11px ui-monospace,monospace;background:#eaf2f6;border:1px solid #cedee8;padding:3px 5px;border-radius:4px;}
/* Responsive and reduced motion. No viewport-based business rule. */
@media(max-width:1250px){
 .ux667-hero{padding:26px 24px;gap:20px;}.ux667-hero h1{font-size:25px;}.ux667-hero-search{width:340px;max-width:43%;}.ux667-hero-search kbd{display:none;}
 .ux667-tasks{grid-template-columns:repeat(2,minmax(0,1fr));}.ux667-departments{grid-template-columns:repeat(2,minmax(0,1fr));}
 html[data-interface567] .ux667-shell>.main{padding:22px 20px;}
 .ux667-breadcrumbs{gap:6px;font-size:11px;}
 html[data-interface567] .ux667-shell .dept-top-action span{display:none;}
 html[data-interface567] .ux667-shell .dept-top-action{min-width:38px;justify-content:center;padding:8px;}
}
@media(max-width:900px){
 html[data-interface567] .ux667-shell{margin-left:0;}
 html[data-interface567] .ux667-sidebar{width:min(288px,86vw);}
 html[data-interface567] .ux667-sidebar .sidebar-close{display:grid;}
 html[data-interface567] .ux667-shell>.topbar{padding:0 13px;height:62px;min-height:62px;}
 html[data-interface567] .ux667-top-search{display:inline-grid;width:40px;min-width:40px;min-height:40px;}
 html[data-interface567] .ux667-shell .dept-profile-tools{gap:5px;}
 html[data-interface567] .ux667-shell .dept-env{display:none;}
 html[data-interface567] #ux16-loading{top:62px;}
 .ux667-breadcrumbs a,.ux667-breadcrumbs .ux667-bc-sep{display:none;}
 html[data-interface567] .ux667-sidebar .dept-sidebar-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom));}
}
@media(max-width:760px){
 html[data-interface567] .ux667-shell>.main{padding:17px 12px;}
 .ux667-hero{display:block;padding:23px 19px;border-radius:12px;margin-bottom:20px;}
 .ux667-hero h1{font-size:25px;line-height:1.25;}.ux667-hero p{font-size:12px;}
 .ux667-hero-search{margin-top:21px;max-width:none;width:100%;min-height:65px;padding:13px;}.ux667-hero-search>svg{width:21px;height:21px;}
 .ux667-section-head{margin-top:20px;align-items:flex-end;}.ux667-section-head h2{font-size:16px;}.ux667-section-head>span{font-size:10px;text-align:right;max-width:115px;}
 .ux667-tasks{gap:8px;}.ux667-task{padding:13px 11px;align-items:flex-start;gap:9px;}.ux667-task>svg{display:none;}.ux667-task-icon{width:31px;height:31px;border-radius:8px;}.ux667-task b{font-size:11px;}.ux667-task small{font-size:10px;}
 .ux667-departments{gap:11px;}.ux667-department>header{padding:16px 14px 12px;}.ux667-department h3{font-size:15px;}
 html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]{grid-template-columns:repeat(2,minmax(0,1fr));margin:9px;}
 html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]>td{padding:9px 11px!important;}
 html[data-interface567] .ux667-cards .r522-cell :is(.nf-row-open,.nf-link,.btn,.icon-btn,.b57-select-hit){min-height:44px!important;}
 html[data-interface567] .ux667-cards .r522-cell{min-height:35px!important;}
 .ux667-context{padding:10px 12px;}.ux667-context>p{flex-basis:100%;font-size:11px;}.ux667-context>details{width:100%;}.ux667-flow{grid-template-columns:repeat(2,minmax(0,1fr));}.ux667-flow li{padding:10px 8px;}
 .ux667-list-mode{margin:3px 0 0;}.ux667-list-mode button{min-height:36px;}.ux667-list-mode>span{padding:0 7px;}
 html[data-interface567] #modal.ux667-modal[open]{max-width:calc(100vw - 10px);width:calc(100vw - 10px);max-height:calc(var(--x520-viewport-height,100dvh) - 10px);border-radius:11px;}
 html[data-interface567] #modal.ux667-modal>.modal-header{padding:11px 13px;}.ux667-modal .modal-header h2{font-size:15px!important;}
 html[data-interface567] #modal.ux667-modal>.modal-body{padding:14px 12px;}
 html[data-interface567] #modal.ux667-modal>.modal-footer{padding:10px 11px calc(10px + env(safe-area-inset-bottom));gap:7px;}
 html[data-interface567] #modal.ux667-modal>.modal-footer>.btn{min-height:44px;padding:10px 11px;font-size:12px;}
 html[data-interface567] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){font-size:16px;min-height:44px;}
 html[data-interface567] .ux667-shell .topbar .dept-product{margin:0;}
 html[data-interface567] .ux667-shell .dept-top-action{min-height:40px;min-width:40px;}
 .ux667-breadcrumbs [aria-current=page]{font-size:12px;}
 html[data-interface567] .ux667-shell .avatar{width:36px;height:36px;min-width:36px;}
 .ux667-launcher{max-width:calc(100vw - 12px);width:calc(100vw - 12px);max-height:calc(100dvh - 16px);border-radius:12px;}
 .ux667-launcher>header{padding:18px 17px 13px;}.ux667-launcher h2{font-size:21px;}
 .ux667-finder-search{padding:0 17px;}.ux667-finder-filters{padding:13px 17px 10px;}#ux667-finder-count{padding-left:17px;}
 html[data-interface567] .ux667-finder-filters>.btn{min-height:40px;padding:8px 11px;}
 .ux667-launcher>footer{padding:12px 17px calc(12px + env(safe-area-inset-bottom));font-size:10px;}
 .ux667-guide-body{padding:0 17px 18px;}
 .ux667-home-foot{align-items:flex-start;}
 html[data-interface567] .ux667-help{min-width:40px;min-height:40px;}
}
@media(max-width:480px){
 .ux667-tasks{grid-template-columns:1fr;}.ux667-task{align-items:center;padding:13px;}.ux667-task b{font-size:12px;}.ux667-task small{font-size:11px;}.ux667-task>svg{display:block;}
 .ux667-departments{grid-template-columns:1fr;}
 html[data-interface567] .ux667-shell>.topbar{gap:5px;padding:0 8px;}
 html[data-interface567] .ux667-shell .dept-top-action[href^="#/admin"]{display:none;}
 html[data-interface567] .ux667-shell .dept-profile-tools{gap:3px;}
 html[data-interface567] .ux667-cards .r522-table tr[data-nf-row]{grid-template-columns:1fr;}
 .ux667-form-help{font-size:10px;gap:3px;}
}
@media(prefers-reduced-motion:reduce){
 html[data-interface567] *,html[data-interface567] *:before,html[data-interface567] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
@media print{.ux667-sidebar,.ux667-help,.ux667-top-search,.ux667-context,.ux667-launcher,#ux667-skip{display:none!important;}html[data-interface567] .ux667-shell{margin-left:0;}}
/* Authentication remains the native form: no new credential storage or request. */
html[data-login567] [hidden]{display:none!important}
html[data-login567] .login{background:#f3f6f9;}
html[data-login567] .login-art{background:linear-gradient(145deg,#163748,#102936);color:#fff;isolation:isolate;}
html[data-login567] .login-art::before{opacity:.09;}
html[data-login567] .login-brand-row{align-items:center;}
html[data-login567] .login-art .brand{background:#fff;border-radius:16px;padding:20px 22px;width:192px;min-height:120px;}
html[data-login567] .ux667-login-brand{font-size:38px;letter-spacing:-2px;color:#173245;}
html[data-login567] .login-copy h1{font-size:clamp(32px,3.7vw,58px);line-height:1.14;letter-spacing:-1.6px;max-width:670px;}
html[data-login567] .login-copy em{color:#ffb64a;font-style:normal;}
html[data-login567] .login-form{background:#fff;border:1px solid #d6e2eb;border-radius:20px;padding:34px;box-shadow:0 10px 38px #15324609;}
html[data-login567] .login-form h2{color:#173245;font-size:27px;letter-spacing:-.5px;}
html[data-login567] .login-form .eyebrow{color:#086978;}
html[data-login567] .login-form .input-icon{border:1px solid #b9ccd9;border-radius:10px;min-height:49px;}
html[data-login567] .login-form input{font-size:16px;}
html[data-login567] .login-form .btn.primary{background:#086978;border-color:#086978;color:white;min-height:48px;border-radius:10px;}
html[data-login567] .login-form .btn:disabled{background:#eff3f6;color:#5f7280;border-color:#d5e0e9;opacity:1;}
html[data-login567] .login-form .forgot-link{color:#086978;}
html[data-login567] :is(input,button,a):focus-visible{outline:3px solid #128299;outline-offset:3px;}
html[data-login567] .login-version{font-size:11px;color:#587186;}
html[data-interface567] .ux667-process-caption{display:block;color:#506b7c;font-size:11px;line-height:1.5;margin-bottom:10px;}
html[data-interface567] .ux667-admin-warning{display:flex;flex-direction:column;gap:6px;padding:15px 18px;background:#fff7e8;border:1px solid #f1d3a3;color:#77511b;border-radius:12px;margin:0 0 18px;line-height:1.5;}
@media(max-width:760px){html[data-login567] .login-right{padding:24px 14px;}html[data-login567] .login-form{padding:23px 20px;max-width:440px;}html[data-login567] .login-form h2{font-size:25px;}html[data-login567] .login-art{min-height:180px;}html[data-login567] .login-copy h1{font-size:30px;}}
html[data-interface567] #toast.show{pointer-events:auto;min-height:52px;white-space:normal;}
html[data-interface567] #toast [data-ux667=close-toast]{pointer-events:auto;width:38px;height:38px;min-height:38px;}
@media(max-width:760px){html[data-interface567] #toast{padding-right:56px;}html[data-interface567] #toast [data-ux667=close-toast]{width:44px;height:44px;min-height:44px;}}

html[data-login567] .login-art .brand-logo{width:148px;max-width:100%;height:auto;max-height:100px;object-fit:contain;}
html[data-login567] .login-form .privacy-note{color:#526b7d;font-size:12px;line-height:1.5;}
