/* Afilimo V1.3 — polished workspace only; backend forms and endpoints unchanged. */
:root{--wk-navy:#0a2659;--wk-blue:#0b66f4;--wk-cyan:#05c4dc;--wk-text:#193554;--wk-gray:#7d90ab;--wk-bg:#f6f9ff;--wk-stroke:#e6edf7}
body.afilimo-workspace{background:var(--wk-bg);font-size:13px;color:var(--wk-text)}
.afilimo-workspace .work-layout{display:flex;min-height:100vh;align-items:stretch;max-width:100%;overflow-x:clip}
.work-sidebar{position:sticky;top:0;flex:0 0 252px;width:252px;height:100vh;overflow-y:auto;background:linear-gradient(180deg,#fff,#fcfdff);border-right:1px solid var(--wk-stroke);padding:25px 14px 18px;display:flex;flex-direction:column;z-index:18;box-shadow:5px 0 21px #0e438006}
.work-brand{display:flex;padding:0 8px 13px;min-height:58px;align-items:center;margin-bottom:14px}.work-brand img{width:198px;max-width:100%;height:auto;display:block;mix-blend-mode:multiply}
.work-sidebar-label{font-size:10px;color:#a1b1c6;letter-spacing:1px;font-weight:800;margin:14px 11px 8px}
.work-link{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:11px;font-weight:650;color:#6b809e;font-size:12px;white-space:nowrap;transition:background .15s,color .15s;min-height:39px;position:relative}
.work-link:hover{text-decoration:none;color:#0a5acc;background:#f3f8ff}.work-link.active{background:linear-gradient(100deg,#e9f1ff,#f0fbff);color:#0965d9}
.work-link.active:before{content:'';position:absolute;left:0;top:10px;bottom:10px;border-radius:5px;background:linear-gradient(#0b65f4,#04cde1);width:3px}
.work-glyph{width:21px;height:21px;border-radius:6px;background:#f5f8fe;display:grid;place-items:center;font-size:17px;color:#778dac;flex:none;font-family:Arial,sans-serif}.work-link.active .work-glyph{color:#0965ef;background:#e1efff}
.work-org-name{display:flex;align-items:center;gap:9px;background:#f4f9ff;border:1px solid #e8f1ff;padding:11px 9px;border-radius:12px;margin:9px 2px 8px;min-width:0}
.work-org-avatar,.work-face{display:grid;place-items:center;border-radius:11px;width:33px;height:33px;flex-shrink:0;font-size:15px;background:linear-gradient(135deg,#236be7,#15bfdd);color:#fff;font-weight:800}
.work-org-name span:last-child{min-width:0}.work-org-name b{font-size:11px;color:var(--wk-navy);display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-org-name small{display:block;color:#8ba0bb;font-size:10px}
.work-sidebar-bottom{margin-top:auto;border-top:1px solid var(--wk-stroke);padding:18px 12px 8px}.work-sidebar-bottom p{font-size:10px;color:#91a4bb;margin:10px 0 8px}.work-sidebar-bottom a{font-size:10px;font-weight:800}
.work-badge{font-size:9px;font-weight:800;letter-spacing:.8px;background:#eaf6ff;padding:5px 8px;color:#3675bb;border-radius:8px}
.work-core{min-width:0;flex:1;display:flex;flex-direction:column}.work-topbar{position:sticky;top:0;z-index:12;height:76px;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 33px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--wk-stroke);backdrop-filter:blur(12px)}
.work-topbar-left,.work-topbar-right{display:flex;align-items:center;gap:14px;min-width:0}.work-breadcrumb{font-size:11px;color:#9aacc2;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.work-breadcrumb span{padding:0 10px;color:#c8d3df}.work-breadcrumb b{color:#35527b;font-weight:800}
.work-top-tag{padding:5px 9px;background:#eff7ff;border-radius:7px;border:1px solid #ddefff;color:#5a85bb;font-size:9px;font-weight:800;white-space:nowrap}
.work-profile{display:flex;align-items:center;gap:8px;border-left:1px solid #e8edf5;padding-left:14px;color:#456183;font-size:11px;font-weight:700;max-width:220px;overflow:hidden}.work-profile span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.work-profile:hover{text-decoration:none}.work-face{width:34px;height:34px;font-size:12px}
.work-logout{border:1px solid #e4ebf5;background:#fff;color:#7489a5;border-radius:9px;padding:8px 10px;font-size:11px;font-weight:700;cursor:pointer}
.work-menu-toggle{display:none;border:1px solid var(--wk-stroke);background:#fff;border-radius:9px;width:38px;height:38px;color:#214d83;font-size:18px;cursor:pointer}
.work-overlay{display:none}
.afilimo-workspace .work-main{flex:1;max-width:1600px;width:100%;margin:0 auto;min-width:0;padding:28px 32px 60px}
.afilimo-workspace .pagehead{margin-bottom:21px}.afilimo-workspace .pagehead h1{font-size:clamp(24px,2.5vw,32px);font-weight:800;letter-spacing:-.9px}.afilimo-workspace .pagehead p{font-size:12px;color:#7c90a9;line-height:1.8}.afilimo-workspace .back{font-size:11px;margin-bottom:10px}
.afilimo-workspace .eyebrow{font-size:10px;margin-bottom:7px}.afilimo-workspace h2{font-size:18px;margin-bottom:15px}.afilimo-workspace h3{font-size:14px;letter-spacing:-.3px}.afilimo-workspace section{margin-top:24px}.afilimo-workspace .card{border:1px solid #e8eff8;box-shadow:0 10px 31px #103d7e09;border-radius:15px;padding:22px;background:#fff;max-width:100%;min-width:0}.afilimo-workspace .cards{gap:14px}.afilimo-workspace .stats .card{min-height:128px;padding:19px 20px}.afilimo-workspace .stats .card span{color:#8799af;font-size:11px}.afilimo-workspace .stats .card strong{font-size:27px;letter-spacing:-.7px;margin-top:12px}.afilimo-workspace .btn{min-height:38px;padding:9px 14px;font-size:11px}.afilimo-workspace .btn.sm{min-height:29px;padding:5px 10px;font-size:10px}
.afilimo-workspace .tablewrap{border:1px solid var(--wk-stroke);border-radius:14px;overflow:auto;max-width:100%;background:#fff;box-shadow:0 10px 31px #103d7e08}.afilimo-workspace table{font-size:11.5px;min-width:610px}.afilimo-workspace th{font-size:10.5px;color:#859ab7;letter-spacing:.1px;background:#f7faff}.afilimo-workspace th,.afilimo-workspace td{padding:13px 15px;border-bottom:1px solid #eef2f9}.afilimo-workspace td a{font-weight:750}.afilimo-workspace .pill{font-size:10px;font-weight:800;background:#eaf4ff;color:#3575c7;padding:4px 9px}
.afilimo-workspace .form label{font-size:11.5px;font-weight:750;color:#4e6789}.afilimo-workspace input,.afilimo-workspace select,.afilimo-workspace textarea{font-size:12px;min-height:39px;border:1px solid #e1e9f5;border-radius:9px;color:#284567;max-width:100%}.afilimo-workspace .form{gap:16px}.afilimo-workspace .sectionhead{margin-bottom:13px}.afilimo-workspace .sectionhead h2{margin:0}.afilimo-workspace .quicklinks{margin-top:18px;gap:9px}.afilimo-workspace .quicklinks a{font-size:11px;font-weight:750;padding:10px 12px;box-shadow:0 5px 12px #1c499207;color:#335e98}.afilimo-workspace .quicklinks a:hover{background:#edf6ff;text-decoration:none}
.afilimo-workspace .notice,.afilimo-workspace .alert{font-size:11px;line-height:1.9;margin-bottom:17px}.afilimo-workspace .dash-v2-welcome{padding:21px 24px;border:0;background:linear-gradient(120deg,#123d8b,#056cf0 75%,#0ccadd);border-radius:16px}.afilimo-workspace .dash-v2-welcome strong{color:white}.afilimo-workspace .dash-v2-welcome .btn.ghost{background:#ffffff22;color:#fff!important}
.afilimo-workspace .listline{font-size:11px}.work-footer{text-align:center;font-size:10px;color:#9cacc1;margin:30px 0 20px;padding:0 15px}
.work-screenreader{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Native 4-step wizard using the unchanged backend POST. */
.wizard-shell{max-width:970px;margin:auto}.wizard-header{margin:0 0 20px}.wizard-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 28px;list-style:none;padding:0}
.wizard-steps li{display:flex;align-items:center;gap:9px;color:#97a7bb;font-size:11px;font-weight:800;min-width:0}.wizard-steps .wizard-number{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;flex:none;background:#edf3fb;color:#90a5c1}.wizard-steps li.current{color:#1d66d2}.wizard-steps li.current .wizard-number,.wizard-steps li.done .wizard-number{background:linear-gradient(130deg,#0964f4,#0bbce0);color:#fff}
.wizard-panel{display:none;min-height:260px}.wizard-panel.current{display:block}.wizard-panel .form-label{display:block;font-size:12px;color:#385575;font-weight:750;margin-bottom:8px}.wizard-panel h2{margin-bottom:9px}.wizard-panel .help{color:#8296ae;font-size:11px;margin:8px 0 15px}
.wizard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.wizard-grid>label,.wizard-grid>.full{min-width:0}.wizard-grid .full{grid-column:1/-1}.wizard-grid label{display:flex;flex-direction:column;gap:6px}.wizard-summary{background:#f7faff;border:1px solid #e4effe;padding:15px 18px;border-radius:12px;margin:15px 0;font-size:12px}.wizard-summary strong{font-size:12px;display:block;margin-bottom:5px}.wizard-summary ul{padding-left:19px;margin:7px 0}.wizard-actions{margin-top:22px;border-top:1px solid #eef2f8;padding-top:17px;display:flex;gap:10px;align-items:center;justify-content:space-between}.wizard-actions .btn{min-width:118px}.wizard-actions button[hidden]{display:none}
.wizard-choice{display:flex;align-items:flex-start;gap:11px;padding:16px;border:1px solid #e3ebf7;border-radius:12px;background:#fcfdff}.wizard-choice label{font-size:12px}.wizard-choice input{margin:2px 0}.wizard-choice p{margin:4px 0;color:#8497b0;font-size:11px}.wizard-choice:has(input:checked){border-color:#58a2ff;background:#f2f8ff}.wizard-choice .form label.check{display:flex}
@media(max-width:1120px){.work-sidebar{flex-basis:226px;width:226px}.work-topbar{padding:0 20px}.afilimo-workspace .work-main{padding:25px 20px 55px}.work-brand img{width:183px}}
@media(max-width:850px){.work-sidebar{position:fixed;top:0;bottom:0;left:0;transform:translateX(-105%);transition:transform .2s;z-index:101;width:265px;box-shadow:9px 0 34px #0c285930}.work-sidebar.open{transform:translateX(0)}.work-overlay.open{display:block;position:fixed;inset:0;background:#071b3e88;z-index:100}.work-menu-toggle{display:grid;place-items:center}.work-core{width:100%}.work-topbar{height:66px}.work-top-tag{display:none}.work-profile{padding-left:0;border:0}}
@media(max-width:620px){.afilimo-workspace .work-main{padding:19px 14px 45px}.work-topbar{padding:0 14px}.work-profile span:last-child,.work-logout{display:none}.work-breadcrumb{max-width:210px}.afilimo-workspace .pagehead.split{align-items:flex-start}.afilimo-workspace .pagehead h1{font-size:25px}.afilimo-workspace .cards.stats .card{padding:15px}.afilimo-workspace .cards.stats .card strong{font-size:23px}.afilimo-workspace .thirds.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.afilimo-workspace .card{padding:17px}.afilimo-workspace .two-col{grid-template-columns:minmax(0,1fr)}.afilimo-workspace .quicklinks a{font-size:10px;padding:8px 10px}.afilimo-workspace .inline{flex-wrap:wrap}.wizard-grid{grid-template-columns:1fr}.wizard-steps li{font-size:0;justify-content:center;gap:0}.wizard-steps .wizard-number{font-size:12px}.wizard-panel{min-height:0}.wizard-actions .btn{min-width:unset}.afilimo-workspace .dash-v2-welcome{padding:18px;display:block}.afilimo-workspace .dash-v2-welcome-actions{margin-top:16px}}
