:root{--ink:#18223e;--muted:#637087;--accent:#6554dd;--line:#e1e5f0;--surface:#fff;--bg:#f3f5fa;--dark:#131b35;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}a{color:#5746c7;text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #a795ff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.25;letter-spacing:-1px;margin-bottom:8px}h2{font-size:19px;margin-bottom:10px;letter-spacing:-.3px}h3{font-size:16px;margin-bottom:7px}p{color:var(--muted);margin-bottom:18px}small{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:20px 0}
.app-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--dark);color:#e6e9f6;padding:30px 22px;display:flex;flex-direction:column;gap:28px}.brand{display:flex;align-items:center;gap:12px;color:inherit;font-size:18px;font-weight:700;line-height:1.3;letter-spacing:-.4px}.brand:hover{text-decoration:none}.brand small{display:block;margin-top:6px;font-size:9px;letter-spacing:1.5px;color:#b4beda}.brand-mark{display:grid;place-items:center;width:42px;height:45px;background:linear-gradient(140deg,#8d79ff,#5240c5);color:#fff;border-radius:13px;box-shadow:0 5px 0 #0b1024;font-size:17px;flex-shrink:0}.nav-caption{font-size:10px;letter-spacing:1.6px;color:#a2adc8;margin-top:28px}.sidebar nav{display:grid;gap:6px}.sidebar nav a{padding:11px 14px;color:#c3cbe0;display:flex;gap:13px;border-radius:10px;font-weight:600}.sidebar nav a.active,.sidebar nav a:hover{background:#2c315b;color:#fff;text-decoration:none}.sidebar nav span{font-size:19px;line-height:1.2}.sidebar-bottom{margin-top:auto;font-size:12px;color:#c5cce0}.sidebar-bottom small{display:block;margin-top:13px;color:#919bb7}.status-dot{display:inline-block;width:7px;height:7px;background:#54ceb2;border-radius:50%;margin-right:7px}.main-shell{min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:86px;padding:16px 32px;border-bottom:1px solid var(--line);background:#fff}.topbar strong{display:block;font-size:18px}.eyebrow{display:block;font-size:10px;letter-spacing:1.7px;font-weight:750;color:#7b83a1;margin-bottom:6px}.header-actions{display:flex;gap:16px;align-items:center}.account-name{font-size:12px;color:var(--muted);max-width:200px;overflow:hidden;text-overflow:ellipsis}.page-content{max-width:1520px;margin:auto;padding:28px 32px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.page-heading p{margin:0}.badge{display:inline-flex;align-items:center;background:#edf0f7;color:#647087;font-size:11px;font-weight:700;padding:5px 10px;border-radius:7px;white-space:nowrap}.preview{background:#f0ecff;color:#6d53c5;font-size:9px;letter-spacing:1px}.active-badge{background:#e2f6ef;color:#20775f}.workspace-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:22px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 20px #1c275408;overflow:hidden;margin-bottom:22px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}.panel-heading h2{margin:0}.empty-state{padding:38px 20px;text-align:center}.empty-state p{margin-bottom:6px;font-size:13px}.empty-symbol{display:inline-grid;place-items:center;width:57px;height:57px;color:#7b65dd;background:#f0edff;border-radius:17px;font-size:32px;margin-bottom:18px}.create-workspace,.section-pad{padding:24px}.create-workspace p{font-size:13px}.create-workspace button{width:100%;margin-top:18px}.help-text{font-size:12px;color:var(--muted);margin-top:14px}.workspace-row{display:flex;align-items:center;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);color:var(--ink)}.workspace-row:hover{background:#faf9ff;text-decoration:none}.workspace-row small{display:block;color:var(--muted);margin-top:3px}.workspace-avatar{display:grid;place-items:center;border-radius:12px;background:#ede9ff;color:#6853c8;width:42px;height:42px;font-size:19px;font-weight:700}.row-arrow{margin-left:auto;font-size:23px;color:#9485d4}.foundation-note{display:flex;gap:18px;padding:22px 26px;border:1px dashed #ced4e6;border-radius:14px}.foundation-note>span{font-size:28px;color:#8e7fcb}.foundation-note p{margin:0;font-size:13px}.foundation-note h3{font-size:14px}.btn,button{border:1px solid #d7dce9;border-radius:9px;padding:9px 15px;background:#fff;color:var(--ink);font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1.5}.btn:hover{text-decoration:none;filter:brightness(.98)}.btn-primary{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 3px 0 #493baa}.btn-secondary{background:#f5f6fb;box-shadow:0 2px 0 #dce0eb}.btn-danger{background:#b72843;color:#fff;border-color:#b72843}.btn-link{background:none;border:0;box-shadow:none;color:#6251c6}.btn-lg{padding:11px 18px}.w-100{width:100%}label{display:block;font-size:12px;font-weight:650;margin-bottom:6px}input:not([type=checkbox]):not([type=hidden]),select,textarea,.form-control{width:100%;border:1px solid #cbd3e5;border-radius:9px;padding:11px 13px;background:#fff;color:var(--ink);min-height:43px}input::placeholder{color:#9299ab}input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);vertical-align:middle}.checkbox{display:flex;gap:8px;align-items:center}.form-floating{display:flex;flex-direction:column-reverse;gap:5px}.form-floating .validation-message{order:-1}.mb-3{margin-bottom:17px}.text-danger,.validation-message,.validation-errors{color:#a62340;font-size:13px}.notice{padding:15px 18px;background:#eeedfa;border:1px solid #d9d6f2;border-radius:10px;color:#51477a;font-size:13px;margin:18px 0}.notice.error{background:#fff0f2;border-color:#f2cbd4;color:#9d243e}.pagination{padding:15px 24px;display:flex;justify-content:space-between;align-items:center;font-size:12px}.pagination button{font-size:12px;padding:6px 10px}.back-link{display:inline-block;margin-bottom:18px;font-size:13px}.summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.metric{padding:22px}.metric>span{display:block;font-size:10px;font-weight:700;letter-spacing:1px;color:var(--muted)}.metric>strong{display:block;font-size:34px;margin:8px 0}.metric>strong.role-metric{font-size:25px}.metric small{color:var(--muted)}.action-row{display:flex;gap:12px;flex-wrap:wrap}.inline-form{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.inline-form>div{flex:1;min-width:180px}.inline-form .validation-errors{width:100%}.inline-form>.checkbox{padding:12px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}th{font-size:10px;letter-spacing:1px;text-transform:uppercase;background:#f7f8fc;color:var(--muted)}td,th{padding:14px 20px;border-bottom:1px solid var(--line)}td .help-text{margin:0}.edit-panel{border-color:#ad9eec}
.auth-shell{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.auth-story{background:radial-gradient(ellipse at 60% 50%,#373063 0%,#171e38 65%);color:white;padding:40px 56px;display:flex;flex-direction:column;justify-content:space-between;gap:32px}.auth-story .brand{font-size:20px}.auth-story .eyebrow{color:#ada2e1}.auth-story p{color:#b7c1db}.auth-story h1{font-size:40px;letter-spacing:-1.6px;line-height:1.2}.auth-intro{max-width:470px;align-self:center}.auth-story>small{color:#9faac7}.invoice-illustration{max-width:365px;margin:35px auto 12px;background:#ffffff0d;border:1px solid #ffffff26;border-radius:16px;padding:24px;transform:rotate(-3deg);box-shadow:0 24px 70px #080d2655;animation:float-paper 7s ease-in-out infinite}.illustration-top{display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;color:#c2bbf1;margin-bottom:20px}.illustration-line{height:6px;background:#ffffff24;width:36%;border-radius:4px;margin-bottom:12px}.illustration-line.long{width:60%}.illustration-row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #ffffff14;font-size:12px;color:#dce0f0}.illustration-row b{color:#74d5bd}.illustration-footer{font-size:9px;text-transform:uppercase;letter-spacing:1px;margin-top:20px;color:#b7acdf}.auth-content{padding:65px clamp(28px,6vw,100px);background:white;display:flex;flex-direction:column;justify-content:center;min-width:0}.auth-content>.row{display:block}.auth-content .col-lg-4.col-lg-offset-2{display:none}.auth-content h2{font-size:14px;color:var(--muted);font-weight:400}.auth-content h1{font-size:29px}.auth-content .row p{font-size:13px;margin:9px 0}.auth-content .btn-link{font-size:13px}.auth-content .d-flex{display:flex}.flex-column{flex-direction:column}.mx-auto{margin-left:auto;margin-right:auto}.text-secondary{color:var(--muted)}.auth-content .form-control{background:#f9faff}.account-card{max-width:520px}.row{display:flex;gap:28px}.col-lg-3{min-width:180px}.col-lg-9{flex:1;min-width:0}.nav{list-style:none;padding:0}.nav-link{display:block;padding:8px 12px;border-radius:8px}.nav-link.active{background:#e9e5ff}.alert{padding:14px;border-radius:9px;background:#edf4ee;margin-bottom:18px}.alert-danger{background:#fff0f2;color:#a52843}.alert-success{background:#e6f5ec;color:#267251}#blazor-error-ui{background:#fff0f0;color:#8a2333;border-top:1px solid #e6bfc5}.loading-progress{max-width:100%}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.section-pad form>button{margin-top:15px}.section-pad>label{margin-top:14px}.section-pad>button{margin-top:16px;margin-right:8px}.section-pad>.table-scroll{margin-top:22px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:0}.detail-grid dt{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}.detail-grid dd{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.section-pad .back-link{margin:14px}.platform-metrics .metric strong{font-size:29px}textarea{resize:vertical}.auth-content .form-control::placeholder{text-align:start;color:#9299ab}
@media(max-width:720px){.form-grid,.detail-grid{grid-template-columns:1fr}}
@keyframes float-paper{50%{transform:translateY(-8px) rotate(-1deg)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}
@media(max-width:1100px){.app-shell{grid-template-columns:215px minmax(0,1fr)}.sidebar{padding:26px 16px}.brand{font-size:15px}.topbar{padding:16px 22px}.page-content{padding:24px 22px}.header-actions{gap:10px}.account-name{display:none}.workspace-grid{grid-template-columns:1fr}.auth-story{padding:35px}.auth-story h1{font-size:34px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{padding:15px 18px;gap:14px}.sidebar nav{display:flex;gap:8px}.sidebar nav a{font-size:12px;padding:8px 12px}.sidebar .nav-caption,.sidebar-bottom{display:none}.brand small{font-size:8px}.topbar{padding:14px 18px;min-height:74px}.topbar strong{font-size:15px}.header-actions .preview{display:none}.page-content{padding:22px 16px}.page-heading{align-items:start;flex-direction:column;margin-bottom:20px}h1{font-size:25px}.summary-grid{grid-template-columns:1fr;gap:0}.metric{padding:18px}.metric>strong{font-size:27px}.auth-shell{display:block}.auth-story{padding:22px}.auth-intro,.auth-story>small{display:none}.auth-content{padding:32px 24px}.row{flex-direction:column}.inline-form{align-items:stretch;flex-direction:column}.inline-form>div{min-width:0}.action-row .btn{width:100%}.table-scroll td{min-width:120px}.table-scroll td:first-child{min-width:200px}.foundation-note{padding:18px}.panel-heading{padding:18px}.create-workspace,.section-pad{padding:20px}.sidebar .brand-mark{width:35px;height:36px}.workspace-row{padding:18px}}
