.emg-section-tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:20px;padding:6px;background:var(--surface,#fff);border:1px solid var(--border,#dce3ed);border-radius:12px;max-width:100%}.emg-section-tabs button{flex-shrink:0;background:transparent;color:inherit;border:0;border-radius:8px;padding:10px 14px;font:inherit;cursor:pointer}.emg-section-tabs button.active{background:#1769c2;color:#fff}.emg-widget-remove{position:absolute;right:10px;top:10px;border:1px solid currentColor;border-radius:7px;background:var(--surface,#fff);color:var(--text,#172b4d);width:28px;height:28px;cursor:pointer}.ux-dashboard-grid>section,.emg-dashboard-hero{position:relative}.ux-dashboard-grid>section{padding-top:42px}.emg-dashboard-hero .emg-widget-remove{color:#fff;background:#1769c2}.emg-icons-only .emg-nav-label{display:none}#nav>button svg{height:22px;width:22px;fill:none;stroke:currentColor;stroke-width:1.7;flex-shrink:0}.emg-work-actions{margin:12px 0}.emg-motion-off *{animation:none!important;transition:none!important;scroll-behavior:auto!important}.content,.main{min-width:0}.tablewrap{max-width:100%;overflow:auto}.tablewrap td{max-width:380px;overflow-wrap:anywhere}.tablewrap th{white-space:nowrap}[data-theme=dark] .emg-section-tabs{background:#172536;border-color:#34455b;color:#e6edf5}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{color-scheme:dark}[data-theme=dark] .emg-widget-remove{background:#172536;color:#e6edf5}@media(max-width:640px){.emg-section-tabs{margin:0 0 14px}.emg-section-tabs button{padding:10px;min-height:44px}.ux-dashboard-grid>section{padding-top:42px}.ds-project-controls{display:grid!important;grid-template-columns:1fr!important}.header .actions{gap:4px}.header .ds-theme-toggle span{display:none}.tablewrap td{max-width:220px;min-width:90px}.ux-project-hero h2{overflow-wrap:anywhere}.emg-widget-remove{width:36px;height:36px}.ds-settings-grid{grid-template-columns:1fr!important}}
.import-workspace{display:grid;grid-template-columns:minmax(0,1fr)!important;min-width:0}.import-drop{min-width:0;max-width:100%;overflow-wrap:anywhere}.import-drop input[type=file]{width:100%;min-width:0;max-width:100%}.import-workspace .alert{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}[data-theme=dark] .import-drop{background:#172536;color:#e6edf5;border-color:#3b526c}[data-theme=dark] .import-drop p{color:#bdcadd}[data-theme=dark] .alert{background:#332a1c;color:#f4dfbd;border-color:#795c33}[data-theme=dark] .alert.red{background:#38232c;color:#ffc9cf;border-color:#76414f}.emg-section-tabs::-webkit-scrollbar{height:5px}.emg-section-tabs::-webkit-scrollbar-thumb{background:#829bb9;border-radius:5px}
.content .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.content .card,.content .row{min-width:0}
.ico svg,.pro-icon svg,.platform-kpi-icon svg,#mobileNav span svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;vertical-align:middle}
[data-theme=dark] .mobile-nav{background:#172536!important;border-color:#34455b!important;color:#e6edf5!important}
[data-theme=dark] .mobile-nav button{color:#c8d6e6!important}
[data-theme=dark] .mobile-nav button.active{color:#7fc6ff!important;background:#233d55!important}

.ux-wizard-error{color:#b42318;font-size:13px;margin-top:6px;line-height:1.4}.ux-wizard-error[hidden]{display:none}#projectModal [aria-invalid="true"]{border-color:#d92d20;box-shadow:0 0 0 2px #d92d2020}body.dark .ux-wizard-error,[data-theme="dark"] .ux-wizard-error{color:#fda29b}
#projectModal .emg-distribution-preview>span{background:var(--ds-surface-2);border-color:var(--ds-border);color:var(--ds-text)}#projectModal .emg-distribution-preview>span small{color:var(--ds-muted)}[data-theme="dark"] #projectModal .emg-distribution-preview b{color:#7ee0c4}[data-theme="dark"] #projectModal .emg-percent-total.ok{background:#18382c;color:#d5f5e2}[data-theme="dark"] #projectModal .emg-percent-total span{background:transparent;color:#d5f5e2}[data-theme="dark"] #projectModal .ux-step-marker.done{color:#7ee0c4}
/* Project creation: one consistent, responsive dialog and form. */
#projectModal .ux-wizard-box{width:min(980px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px);display:flex;flex-direction:column;border:1px solid var(--ds-border)}
#projectModal .ux-wizard-head{padding:22px 26px 16px;padding-right:68px;flex-shrink:0}
#projectModal .ux-wizard-steps{padding:0 20px;flex-shrink:0;background:var(--ds-surface-2)!important;border-color:var(--ds-border)}
#projectModal .ux-step-marker{border:0;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;line-height:1.4;color:var(--ds-muted);font:inherit;font-size:13px;font-weight:700}
#projectModal .ux-step-number{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--ds-surface-3);flex-shrink:0}
#projectModal .ux-step-marker.active{color:var(--ds-primary)}
#projectModal .ux-step-marker:focus-visible{outline:2px solid var(--ds-primary);outline-offset:-3px;border-radius:6px}
#projectModal .ux-wizard-body{flex:1;min-height:0;max-height:none;padding:20px 26px;overscroll-behavior:contain;scrollbar-gutter:stable}
#projectModal .ux-wizard-panel>p,#projectModal .ux-shareholder-shortcut p{color:var(--ds-muted);font-size:13px;line-height:1.5}
#projectModal .ux-wizard-actions{flex-shrink:0;background:var(--ds-surface)!important;border-color:var(--ds-border);padding:14px 26px;align-items:center}
#projectModal .ux-wizard-actions>.row{flex-wrap:wrap;justify-content:flex-end;gap:8px}
#projectModal .ux-wizard-actions .btn{min-width:0}
#projectModal .ux-shareholder-shortcut{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border:1px solid var(--ds-border);background:var(--ds-surface-2);border-radius:12px;margin:14px 0 20px}
#projectModal .ux-shareholder-shortcut p{margin:4px 0 0}
#projectModal .ux-shareholder-shortcut button{flex-shrink:0}
#projectModal .emg-shareholders{margin:16px 0 20px;padding:16px;border:1px solid var(--ds-border);background:var(--ds-surface-2);border-radius:12px}
#projectModal .emg-shareholders>.row{align-items:center;gap:12px;flex-wrap:wrap}
#projectModal .emg-shareholder-row{grid-template-columns:minmax(0,1fr) 130px auto;align-items:start}
#projectModal .emg-shareholder-row>button{margin-top:24px}
#projectModal .ux-wizard-notice{padding:12px 14px;border:1px solid #fda29b;background:#fff0ee;color:#912018;border-radius:10px;line-height:1.5;margin-bottom:16px}
#projectModal .ux-wizard-notice[hidden]{display:none}
[data-theme=dark] #projectModal .ux-wizard-notice{background:#3d2227;color:#ffb4ad;border-color:#87515c}
[data-theme=dark] #projectModal .emg-percent-total.ok{background:#18382c!important;border-color:#53ba88!important;color:#d5f5e2}
[data-theme=dark] #projectModal .emg-percent-total.ok small{color:#b4d9c5}
[data-theme=dark] #projectModal .emg-percent-total.bad,[data-theme=dark] #projectModal .emg-distribution-preview.invalid{background:#3d2227!important;color:#ffb4ad}
[data-theme=dark] #projectModal .emg-percent-total.bad small{color:#ffb4ad}
@media(max-width:600px){
 #projectModal{padding:8px!important}#projectModal .ux-wizard-box{width:100%!important;max-height:calc(100dvh - 16px);border-radius:16px}
 #projectModal .ux-wizard-head{padding:16px 18px 12px;padding-right:50px}#projectModal .ux-wizard-head h2{font-size:22px}
 #projectModal .ux-wizard-steps{padding:0 4px}#projectModal .ux-step-marker{font-size:11px;gap:5px;padding:12px 4px;flex-direction:column}#projectModal .ux-step-number{width:22px;height:22px}
 #projectModal .ux-wizard-body{padding:16px}#projectModal .ux-wizard-actions{padding:12px;gap:8px}#projectModal .ux-wizard-actions .btn{padding:10px 12px;font-size:12px;min-height:42px}
 #projectModal .ux-shareholder-shortcut{align-items:stretch;flex-direction:column;gap:10px;padding:12px}#projectModal .emg-shareholders{padding:12px}
 #projectModal .emg-shareholder-row{grid-template-columns:minmax(0,1fr) 100px;gap:10px}#projectModal .emg-shareholder-row>button{grid-column:1/-1;margin-top:0;justify-self:end}
}
#projectModal [aria-invalid="true"]{background:var(--ds-surface)!important}#projectModal .ux-step-marker.active .ux-step-number{background:var(--ds-primary);color:var(--ds-surface)}[data-theme=dark] #projectModal .ux-step-marker.done:not(.active) .ux-step-number{color:#7ee0c4;border-color:#7ee0c4}#projectModal .ux-wizard-notice{font-size:13px}
#projectModal [data-step="1"] .emg-project-section{margin-top:20px;padding-top:18px;border-top:1px solid var(--ds-border)}
#projectModal .emg-responsibility-row input,#projectModal .emg-responsibility-row select{width:100%;min-width:0;min-height:44px;border:1px solid var(--ds-border)!important;border-radius:9px;background:var(--ds-surface)!important;color:var(--ds-text);padding:10px 12px;font:inherit}
#projectModal .emg-responsibility-row input::placeholder{color:var(--ds-muted)}
#projectModal [data-wizard-next]{background:var(--ds-surface-3)!important;color:var(--ds-primary)!important;border-color:var(--ds-border)!important}
