:root{color:#1f2937;background:#f5f6f2;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}.shell{min-height:100vh;padding:32px clamp(18px,4vw,56px)}.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}.eyebrow{margin:0 0 8px;color:#0f766e;font-size:.8rem;font-weight:800;letter-spacing:0;text-transform:uppercase}h1{margin:0;color:#111827;font-size:2.55rem;line-height:1.04;letter-spacing:0}h2{margin:0;color:#111827;font-size:1rem;letter-spacing:0}.token-control{display:grid;grid-template-columns:24px minmax(210px,320px) 96px;gap:10px;align-items:center;max-width:480px;padding:10px;border:1px solid #d8ddd2;border-radius:8px;background:#fff}.token-control svg{width:20px;height:20px;color:#0f766e}.token-control input{width:100%;min-width:0;border:0;outline:0;color:#111827}.form-grid input,.form-grid select,.portal-grid input{width:100%;min-height:38px;border:1px solid #d8ddd2;border-radius:6px;padding:8px 10px;outline:0;color:#111827;background:#fff}.token-control button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:0;border-radius:6px;background:#0f766e;color:#fff;font-weight:800;cursor:pointer}.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;border:0;border-radius:6px;background:#2563eb;color:#fff;font-weight:800;cursor:pointer}.portal-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:104px;min-height:38px;border:1px solid #d8ddd2;border-radius:6px;background:#fff;color:#111827;font-weight:800;cursor:pointer}.portal-actions button svg{width:17px;height:17px}.primary-action svg{width:17px;height:17px}.primary-action:disabled{cursor:wait;opacity:.7}.token-control button:disabled{cursor:wait;opacity:.7}.portal-actions button:disabled{cursor:not-allowed;opacity:.55}.token-control button svg{width:17px;height:17px;color:currentColor}.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:30px}.metric{display:grid;grid-template-columns:32px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;min-height:88px;padding:18px;border:1px solid #d8ddd2;border-radius:8px;background:#fff}.metric svg{grid-row:1 / 3;width:24px;height:24px;color:#2563eb}.metric span,.facts dt{color:#6b7280;font-size:.76rem;font-weight:800;text-transform:uppercase}.metric strong{min-width:0;overflow-wrap:anywhere;color:#111827;font-size:1.04rem}.notice{min-height:42px;margin:18px 0 0;padding:11px 14px;border:1px solid #d8ddd2;border-radius:8px;background:#fff;color:#374151;font-weight:700}.notice.good{border-color:#9fd0c7}.notice.warn{border-color:#f2c37b}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,360px);gap:18px;margin-top:18px}.tenant-portal{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,520px);gap:18px;margin-top:18px}.table-section,.panel,.portal-panel{border:1px solid #d8ddd2;border-radius:8px;background:#fff}.table-section{min-width:0;overflow:hidden}.section-heading{display:flex;align-items:center;gap:10px;padding:18px;border-bottom:1px solid #e6e9e0}.section-heading svg{width:21px;height:21px;color:#0f766e}.table{overflow-x:auto}.row{display:grid;grid-template-columns:110px minmax(260px,1fr) 120px 150px;gap:16px;align-items:center;min-width:740px;min-height:52px;padding:0 18px;border-bottom:1px solid #edf0e8}.action-row{width:100%;border-top:0;border-right:0;border-left:0;background:#fff;color:inherit;text-align:left;cursor:pointer}.action-row:hover,.action-row.selected{background:#f1f7f5}.row:last-child{border-bottom:0}.row.head{min-height:42px;color:#6b7280;font-size:.76rem;font-weight:900;text-transform:uppercase}.row strong{color:#111827}.row span{min-width:0;overflow-wrap:anywhere}.side{display:grid;align-content:start;gap:18px}.panel{padding-bottom:16px}.portal-panel{min-width:0;overflow:hidden}.form-panel{padding-bottom:0}.form-grid,.portal-grid{display:grid;gap:12px;padding:18px}.portal-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.form-grid label,.portal-grid label{display:grid;gap:6px;min-width:0}.form-grid label span,.portal-grid label span,.portal-status span{color:#6b7280;font-size:.76rem;font-weight:800;text-transform:uppercase}.portal-status{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(140px,1fr) minmax(72px,.4fr) minmax(72px,.4fr);gap:14px 18px;align-items:center;padding:18px}.portal-status div{display:grid;gap:5px;min-width:0}.portal-status strong{min-width:0;overflow-wrap:anywhere;color:#111827}.portal-actions{display:flex!important;flex-direction:row;align-items:center;justify-content:flex-end;grid-column:1 / -1;gap:8px!important;min-width:0}.section-heading.compact{padding:14px 18px}.dashboard-body{display:grid;gap:0;border-top:1px solid #edf0e8}.dashboard-section+.dashboard-section{border-top:1px solid #edf0e8}.launchpad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:18px}.module-card{position:relative;display:grid;gap:6px;min-height:118px;padding:14px 42px 14px 14px;border:1px solid #d8ddd2;border-radius:8px;background:#fff;color:inherit;text-align:left;cursor:pointer}.module-card:hover{border-color:#91c8bd;background:#f7fbfa}.module-card span{color:#0f766e;font-size:.72rem;font-weight:900;text-transform:uppercase}.module-card strong{color:#111827;overflow-wrap:anywhere}.module-card small,.next-actions span,.empty-state{color:#6b7280;font-size:.9rem;line-height:1.35}.module-card svg{position:absolute;right:14px;top:14px;width:18px;height:18px;color:#2563eb}.next-actions{display:grid;gap:12px;padding:18px}.next-actions div,.empty-state{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid #edf0e8}.next-actions div:last-child,.empty-state:last-child{border-bottom:0}.next-actions strong{color:#111827}.facts{display:grid;gap:12px;margin:0;padding:18px}.facts div{display:flex;align-items:center;justify-content:space-between;gap:12px}.facts dd{margin:0;color:#111827;font-size:1.25rem;font-weight:900}.audit-list{display:grid;gap:12px;padding:18px}.module-list{display:grid;gap:10px;max-height:260px;overflow:auto;padding:18px}.module-list div{display:grid;gap:3px;padding-bottom:10px;border-bottom:1px solid #edf0e8}.module-list div:last-child{border-bottom:0;padding-bottom:0}.module-list strong{color:#111827}.module-list span{color:#6b7280;font-size:.9rem}.audit-list div{display:grid;gap:3px}.audit-list strong{color:#111827}.audit-list span{color:#6b7280;font-size:.9rem}@media(max-width:980px){.topbar,.workspace,.tenant-portal,.portal-grid,.portal-status{grid-template-columns:1fr}.topbar{display:grid;align-items:start}.summary{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-actions{justify-content:flex-start;min-width:0}.launchpad-grid{grid-template-columns:1fr}}@media(max-width:640px){.shell{padding:22px 14px}h1{font-size:2rem}.token-control,.summary{grid-template-columns:1fr}.token-control{max-width:none}.portal-actions button{flex:1;min-width:0}}
