/* Workspace refresh: the CIS colors and existing components remain the source of truth. */
:root{--ui-ink:#163950;--ui-muted:#4b6778;--ui-line:#d9e5ed;--ui-blue:#0d638d;--ui-navy:#163950;--ui-canvas:#f3f7fa;--ui-white:#fff}
body{background:var(--ui-canvas);color:var(--ui-ink)}
body>header{min-height:72px;background:#fff;border-bottom:1px solid var(--ui-line);box-shadow:0 1px 8px rgba(15,49,70,.045)}
.header-actions{gap:8px}.header-actions button,.header-actions .docs-link{min-height:44px;border-color:#d7e3ec;border-radius:9px;font-size:13px;font-weight:650}
.header-actions button:hover,.header-actions .docs-link:hover{background:#eef6fa;border-color:#b5d1df}
main,body:has(.exec-dashboard) main{max-width:1720px;margin:24px auto;padding:0 clamp(16px,2.4vw,38px)}
.workspace-heading{display:flex;align-items:end;justify-content:space-between;margin:0 0 18px}
.workspace-heading h1{font-size:clamp(25px,2.1vw,32px);letter-spacing:-.035em;line-height:1.15;margin:3px 0 5px;color:#12364e}
.workspace-eyebrow{font-size:10px;letter-spacing:.12em;font-weight:750;color:#39708e;margin:0}
.workspace-user{font-size:13px;color:#4b6678;margin:0;line-height:1.5}
.workspace-switch{display:flex;gap:4px;align-items:center;background:#e7eff4;border:1px solid #dce8ef;padding:5px;margin:0 0 16px;width:fit-content;max-width:100%;border-radius:12px}
.workspace-switch button{min-height:43px;padding:9px 15px;border-radius:8px;background:transparent;color:#365a70;font-size:13px;font-weight:650}
.workspace-switch button[aria-pressed=true]{background:#fff;color:#113c58;border-color:#d7e6ef;box-shadow:0 2px 6px rgba(23,59,80,.09)}
.workspace-switch button.primary{margin-left:5px;background:#195a7a;border-color:#195a7a;color:white}
.workspace-switch button:hover:not([aria-pressed=true]):not(.primary){background:#dce9f0}
.workspace-switch button.primary:hover{background:#124d6b}
.meal-workspace{display:grid;grid-template-columns:minmax(210px,246px) minmax(0,1fr);gap:16px;align-items:start;padding:0;border:0;background:transparent;box-shadow:none}
.project-toolbar{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,.85fr) minmax(300px,1.4fr) auto;gap:20px;align-items:center;padding:17px 20px;background:white;border:1px solid var(--ui-line);border-radius:14px;box-shadow:0 4px 16px rgba(24,63,86,.035);min-width:0}
.project-title{min-width:0}.project-eyebrow{display:block;color:#347597;letter-spacing:.1em;font-size:10px;font-weight:800;margin-bottom:5px}
.project-title h2{color:#153b54;font-size:16px;line-height:1.3;margin:0 0 4px;letter-spacing:-.01em}.project-title p{margin:0;color:#597387;font-size:12px;line-height:1.4}
.project-chooser{min-width:0}.project-chooser label{font-size:12px;color:#385c71;gap:5px}.project-chooser select{background:#fbfdfe;border-color:#cbdde8;color:#153f59;font-size:13px;min-height:44px}
.project-caption{font-size:11px;line-height:1.4;color:#5b7484;margin:5px 1px 0;overflow-wrap:anywhere}
.project-empty{margin:0;font-size:13px}.project-toolbar .assignment-quick{display:flex;flex-direction:column;align-items:flex-end;gap:4px;margin:0;padding:0;border:0;background:transparent;min-width:0}
.project-toolbar .assignment-quick button{min-height:44px;padding:8px 13px;font-size:12px;background:#eaf5fa;border-color:#c7dfea;color:#135879}
.project-toolbar .assignment-quick button:hover{background:#dcedf5}.project-toolbar .assignment-quick small{font-size:11px;text-align:right;color:#5c7788;max-width:200px}
.meal-nav-shell{top:86px}.meal-nav-shell>.nav{border-radius:13px;padding:14px 10px;background:#163a50;border-color:#163a50;max-height:calc(100dvh - 98px);scrollbar-color:#7292a5 #163a50;box-shadow:0 8px 20px rgba(21,58,80,.09)}
.meal-nav-shell .nav-group-label{font-size:10px;letter-spacing:.1em;color:#bed6e3}.meal-nav-shell .nav-group-buttons button{font-size:12px;border-radius:8px;color:#f0f6fa;min-height:44px}
.meal-nav-shell .nav-group-buttons button.active{background:#eaf4fa;border-color:#eaf4fa;border-left:4px solid #ed8a37;color:#123e59;box-shadow:none}
.meal-module-content{background:#fff;border:1px solid var(--ui-line);border-radius:14px;padding:clamp(16px,2vw,25px);box-shadow:0 4px 16px rgba(24,63,86,.035);min-width:0;min-height:300px}
.meal-module-heading{border-bottom:1px solid #e4edf2;margin:0 0 14px;padding:0 0 14px}.meal-module-heading small{color:#39738f;font-size:10px;font-weight:750;letter-spacing:.1em}.meal-module-heading h2{font-size:clamp(22px,2vw,27px);line-height:1.2;letter-spacing:-.03em;margin:4px 0 0;color:#123b54}
.meal-module-content>.status{font-size:12px;line-height:1.5;border-radius:8px;border-left-width:3px;padding:10px 12px;background:#fff9eb;color:#6d541f;border-left-color:#d4a44b;margin:0 0 14px}
.exec-dashboard .db-hero{margin:0 0 14px;padding:16px 20px;border-radius:12px;background:linear-gradient(115deg,#153c55,#17698e);box-shadow:none}
.exec-dashboard .db-hero h2{font-size:clamp(19px,1.8vw,25px);line-height:1.27;letter-spacing:-.025em;max-width:94%}
.exec-dashboard .db-hero p{font-size:12px;line-height:1.4;color:#e2f0f7;margin:3px 0}.exec-dashboard .db-eyebrow{color:#d1e9f4;font-size:10px;letter-spacing:.11em;margin-bottom:4px}
.exec-dashboard .db-hero .db-hero-meta{font-size:11px;color:#c8dfea;margin-top:5px}
.exec-dashboard .db-filter{display:flex;gap:12px;align-items:end;background:#f5f9fc;border:1px solid #e0eaf0;border-radius:11px;padding:13px;margin:12px 0}
.exec-dashboard .db-filter label{font-size:11px;color:#48697b;min-width:0}.exec-dashboard .db-filter input,.exec-dashboard .db-filter select,.exec-dashboard .db-filter button{min-height:44px}
.exec-dashboard .db-grid{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px;margin:14px 0 18px}
.exec-dashboard .db-kpi{min-height:112px;padding:14px;border:1px solid #dce8ef;border-top:3px solid #71b8d2;border-left:1px solid #dce8ef;border-radius:11px;box-shadow:none}
.exec-dashboard .db-kpi strong{font-size:clamp(20px,1.8vw,25px);color:#154e6e;margin:8px 0 4px}.exec-dashboard .db-key{font-size:11px;line-height:1.35;color:#3b6178;font-weight:700}
.exec-dashboard .db-kpi small{font-size:11px;line-height:1.4;color:#5c7483}.exec-dashboard .db-card{border:1px solid #dce8ef;box-shadow:none;border-radius:11px}
.admin-workspace{border-color:var(--ui-line);box-shadow:0 4px 16px rgba(24,63,86,.035)}
@media(max-width:1100px) and (min-width:901px){.project-toolbar{grid-template-columns:minmax(180px,.8fr) minmax(250px,1.3fr)}.project-toolbar .assignment-quick{grid-column:1/-1;align-items:flex-start;flex-direction:row}.project-toolbar .assignment-quick small{text-align:left;max-width:none}}
@media(max-width:900px){
 body>header{position:static}.workspace-heading{margin-bottom:14px}.workspace-switch{margin-bottom:12px}
 .meal-workspace{display:flex;flex-direction:column;padding:0;gap:12px}.project-toolbar{width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:14px;padding:15px}
 .project-toolbar .assignment-quick{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-start}.project-toolbar .assignment-quick button{width:auto}.project-toolbar .assignment-quick small{text-align:left;max-width:none}
 .meal-nav-shell{position:sticky;top:0;width:100%;z-index:20;background:transparent}.meal-nav-toggle{border-radius:10px;min-height:48px;padding:11px 14px;background:#163a50;border-color:#163a50}
 .meal-nav-shell>.nav{max-height:min(48dvh,420px);border-radius:0 0 10px 10px}.meal-nav-shell.is-open .meal-nav-toggle{border-radius:10px 10px 0 0}
 .meal-module-content{width:100%;padding:16px}.meal-module-heading h2{scroll-margin-top:62px}
}
@media(max-width:600px){
 main,body:has(.exec-dashboard) main{padding:0 12px;margin:16px auto}.workspace-heading h1{font-size:25px}.workspace-switch{gap:4px;flex-wrap:wrap;width:100%}
 .workspace-switch button{font-size:12px;flex:1;min-width:0;padding:8px;line-height:1.3}.workspace-switch button.primary{margin-left:0;flex-basis:100%}
 .project-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:15px}.project-title h2{font-size:15px}.project-title p{display:none}.project-chooser label{font-size:12px}
 .project-toolbar .assignment-quick{align-items:flex-start}.project-toolbar .assignment-quick button{width:auto}.project-toolbar .assignment-quick small{display:none}
 .meal-module-content{padding:14px}.meal-module-heading h2{font-size:22px}.exec-dashboard .db-hero{padding:17px}.exec-dashboard .db-hero h2{max-width:100%;font-size:19px}
 .exec-dashboard .db-filter{display:grid;grid-template-columns:1fr 1fr;gap:10px}.exec-dashboard .db-filter label:first-child{grid-column:1/-1}.exec-dashboard .db-filter button{grid-column:1/-1}
 .exec-dashboard .db-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.exec-dashboard .db-kpi{padding:12px;min-height:110px}
}
@media(max-width:370px){.project-toolbar .assignment-quick{flex-direction:column}.project-toolbar .assignment-quick button{width:100%}.project-toolbar .assignment-quick small{align-self:flex-start}.exec-dashboard .db-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.project-toolbar .assignment-quick,.workspace-switch{display:none!important}.meal-workspace,.meal-module-content{border:0;box-shadow:none;padding:0}.meal-module-content{display:block}}

/* Password visibility controls */
.password-visibility-field{display:block;position:relative;min-width:0;width:100%}
.password-visibility-field>input{padding-right:54px;min-height:44px}
.password-visibility-field>button.password-visibility-toggle{position:absolute;right:1px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--ui-muted,#4b6778);box-shadow:none}
.password-visibility-field>button.password-visibility-toggle:hover{background:#eaf3f8;color:var(--ui-blue,#0d638d)}
.password-visibility-field>button.password-visibility-toggle:focus-visible{outline:2px solid var(--ui-blue,#0d638d);outline-offset:-3px}
.password-visibility-toggle svg{display:block;width:20px;height:20px;pointer-events:none}
