@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Poppins:wght@500;600;700;800&display=swap');

:root{
  --bg:#f4f7fe;
  --surface:#ffffff;
  --surface-2:#f7f9ff;
  --surface-3:#eef3fb;
  --ink:#1b2559;
  --ink-strong:#111c44;
  --muted:#a3aed0;
  --muted-strong:#707eae;
  --line:#e9edf7;
  --brand-green:#86dc88;
  --brand-mint:#65c5ad;
  --brand-teal:#49afd0;
  --brand-blue:#2293ff;
  --brand-blue-dark:#1678df;
  --brand-gradient:linear-gradient(120deg,var(--brand-green) 0%,var(--brand-teal) 52%,var(--brand-blue) 100%);
  --brand-gradient-soft:linear-gradient(120deg,rgba(134,220,136,.16),rgba(73,175,208,.14) 52%,rgba(34,147,255,.16));
  --ok:#05cd99;
  --warn:#ffb547;
  --danger:#ee5d50;
  --shadow:0 18px 40px rgba(112,144,176,.10);
  --shadow-lg:0 28px 70px rgba(45,66,115,.13);
  --radius:20px;
  --sidebar:292px;
}

:root[data-theme="dark"]{
  --bg:#101010;
  --surface:#181818;
  --surface-2:#202020;
  --surface-3:#282828;
  --ink:#f5f5f5;
  --ink-strong:#ffffff;
  --muted:#858585;
  --muted-strong:#b8b8b8;
  --line:rgba(255,255,255,.08);
  --shadow:0 16px 42px rgba(0,0,0,.24);
  --shadow-lg:0 28px 70px rgba(0,0,0,.38);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'DM Sans',Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-feature-settings:'kern';-webkit-font-smoothing:antialiased;letter-spacing:-.2px}
a{color:inherit}
button,input,select,textarea{font:inherit}
button{color:inherit}
svg.ui-icon{width:20px;height:20px;display:block;flex:0 0 auto}
[hidden]{display:none!important}

/* Workspace shell */
.workspace-body{min-height:100vh;background:var(--bg)}
.shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:var(--surface);z-index:60;display:flex;flex-direction:column;padding:0 0 24px;box-shadow:0 0 40px rgba(112,144,176,.04);transition:transform .22s ease,background .2s ease}
.sidebar-brand-wrap{height:123px;display:flex;align-items:center;padding:34px 36px 20px;gap:13px}
.brand{display:flex;align-items:center;text-decoration:none;min-width:86px}
.brand img{display:block;width:88px;height:43px;object-fit:contain;object-position:center}
.brand-copy{display:flex;flex-direction:column;line-height:1.05;white-space:nowrap}
.brand-copy strong{font-family:'Poppins',sans-serif;font-size:17px;letter-spacing:.06em;color:var(--ink-strong)}
.brand-copy span{font-size:9px;font-weight:700;letter-spacing:.16em;color:var(--muted-strong);margin-top:4px}
.sidebar-divider{height:1px;background:var(--line);margin:0 26px 20px}
.sidebar-nav{padding:0 0 14px;overflow:auto}
.side-label{font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);padding:16px 32px 9px}
.side-link{position:relative;display:flex;align-items:center;gap:15px;min-height:48px;padding:11px 31px;color:var(--muted-strong);text-decoration:none;font-weight:600;font-size:15px;transition:color .15s ease,background .15s ease}
.side-link:hover{color:var(--ink-strong)}
.side-link.active{color:var(--ink-strong);font-weight:700}
.side-link.active::after{content:'';position:absolute;right:0;top:8px;width:4px;height:32px;border-radius:4px 0 0 4px;background:var(--brand-gradient)}
.side-icon{width:24px;height:24px;display:grid;place-items:center;color:var(--muted-strong)}
.side-link.active .side-icon{color:var(--brand-blue)}
.sidebar-bottom{margin-top:auto;padding:18px 20px 0}
.sidebar-brand-card{position:relative;overflow:hidden;border-radius:20px;padding:16px;background:var(--brand-gradient-soft);display:flex;gap:12px;align-items:center}
.sidebar-brand-card::before{content:'';position:absolute;width:80px;height:80px;right:-35px;bottom:-45px;border-radius:50%;background:rgba(34,147,255,.13)}
.sidebar-brand-card-mark{position:relative;width:38px;height:38px;border-radius:13px;background:var(--surface);display:grid;place-items:center;color:var(--brand-blue);box-shadow:0 8px 20px rgba(34,147,255,.12)}
.sidebar-brand-card-mark svg{width:19px;height:19px}
.sidebar-brand-card>div:last-child{position:relative;display:flex;flex-direction:column;min-width:0}
.sidebar-brand-card strong{font-size:12px;color:var(--ink-strong)}
.sidebar-brand-card span{font-size:10px;color:var(--muted-strong);margin-top:3px}

.main{min-height:100vh;margin-left:var(--sidebar);padding:0 18px 18px;transition:margin .22s ease}
.topbar{position:sticky;top:12px;z-index:40;min-height:92px;margin:0 auto;padding:16px 4px 12px 8px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:rgba(244,247,254,.74);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
:root[data-theme="dark"] .topbar{background:rgba(16,16,16,.78)}
.page-heading{display:flex;align-items:center;gap:12px;min-width:0}
.breadcrumb{height:20px;display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted-strong)}
.breadcrumb b{font-weight:400;color:var(--muted)}
.page-heading h1{font-family:'Poppins',sans-serif;font-size:31px;line-height:1.12;margin:1px 0 0;color:var(--ink-strong);letter-spacing:-.04em}
.top-tools{position:relative;display:flex;align-items:center;gap:8px;padding:7px;border-radius:999px;background:var(--surface);box-shadow:var(--shadow)}
.workspace-search{position:relative;display:flex;align-items:center;height:46px;width:226px;border-radius:999px;background:var(--bg);color:var(--muted-strong);transition:width .2s ease}
.workspace-search>span{display:grid;place-items:center;padding-left:15px}
.workspace-search svg{width:17px;height:17px}
.workspace-search input{width:100%;height:100%;border:0;outline:0;background:transparent;color:var(--ink);padding:0 14px 0 10px;font-size:13px;font-weight:500}
.workspace-search input::placeholder{color:var(--muted)}
.search-results{position:absolute;right:0;top:54px;width:260px;border-radius:18px;background:var(--surface);padding:8px;box-shadow:var(--shadow-lg);border:1px solid var(--line);z-index:80}
.search-results a{display:flex;gap:11px;align-items:center;padding:11px 12px;border-radius:12px;text-decoration:none;font-size:13px;font-weight:700;color:var(--ink)}
.search-results a:hover{background:var(--surface-2)}
.search-results a svg{width:17px;height:17px;color:var(--brand-blue)}
.search-results.no-results::after{content:'No workspace page found';display:block;padding:14px;color:var(--muted-strong);font-size:12px;text-align:center}
.icon-button{width:38px;height:38px;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--muted-strong);cursor:pointer;transition:background .15s,color .15s}
.icon-button:hover{background:var(--surface-2);color:var(--brand-blue)}
.icon-button svg{width:18px;height:18px}
.theme-sun{display:none}
:root[data-theme="dark"] .theme-moon{display:none}
:root[data-theme="dark"] .theme-sun{display:block}
.profile-wrap{position:relative}
.profile-trigger{display:block;border:0;padding:0;background:transparent;border-radius:50%;cursor:pointer}
.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--brand-gradient);color:#fff;font-size:12px;font-weight:800;box-shadow:0 8px 18px rgba(34,147,255,.22)}
.avatar.large{width:46px;height:46px;font-size:14px}
.profile-menu{position:absolute;right:0;top:50px;width:265px;padding:16px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow-lg);border:1px solid var(--line);z-index:80}
.profile-menu-head{display:flex;gap:12px;align-items:center}
.profile-menu-head>div{display:flex;flex-direction:column;min-width:0}
.profile-menu-head strong{font-size:13px;color:var(--ink-strong)}
.profile-menu-head span:not(.avatar){font-size:11px;color:var(--muted-strong);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.menu-divider{height:1px;background:var(--line);margin:14px 0}
.profile-role{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted-strong);padding:0 2px 12px}
.profile-role strong{color:var(--ink);text-transform:capitalize}
.profile-menu form{margin:0}
.profile-signout{width:100%;border:0;border-radius:12px;padding:11px 12px;background:rgba(238,93,80,.08);color:var(--danger);display:flex;align-items:center;gap:10px;font-weight:700;cursor:pointer}
.profile-signout svg{width:17px;height:17px}
.mobile-menu{display:none}
.sidebar-backdrop{display:none}
.content{max-width:1700px;margin:0 auto;padding:10px 2px 18px}
.workspace-footer{max-width:1700px;margin:8px auto 0;padding:20px 8px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted-strong);font-size:12px}

/* Shared workspace typography/cards */
.kicker,.card-kicker{font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--muted-strong)}
h1,h2,h3{font-family:'Poppins',sans-serif;color:var(--ink-strong);letter-spacing:-.035em}
.module-intro,.dashboard-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:5px 4px 20px}
.module-intro h2,.dashboard-intro h2{font-size:25px;margin:4px 0 3px}
.module-intro p,.dashboard-intro p{margin:0;font-size:13px}
.muted{color:var(--muted-strong)}
.module-badge{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:16px;background:var(--surface);box-shadow:var(--shadow);color:var(--brand-blue)}
.module-badge svg{width:19px;height:19px}.module-badge span{display:flex;align-items:baseline;gap:5px;font-size:11px;color:var(--muted-strong)}.module-badge strong{font-size:16px;color:var(--ink-strong)}
.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);border:0}

/* Dashboard */
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.stat-card{min-height:112px;border-radius:20px;background:var(--surface);box-shadow:var(--shadow);padding:18px 20px;display:flex;align-items:center;gap:16px;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease}
.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.stat-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--brand-gradient-soft);color:var(--brand-blue);flex:0 0 auto}
.stat-icon svg{width:25px;height:25px}
.stat-card>div:last-child{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto auto;column-gap:9px;align-items:end;min-width:0}
.stat-card span{grid-column:1/-1;color:var(--muted-strong);font-size:13px;font-weight:600}
.stat-card strong{font-family:'Poppins',sans-serif;color:var(--ink-strong);font-size:25px;line-height:1.15;margin-top:2px}
.stat-card small{grid-column:1/-1;color:var(--muted);font-size:10px;margin-top:2px}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.72fr);gap:18px;margin-top:18px}
.panel-card{padding:20px 22px;min-height:330px}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.card-heading h3{font-size:20px;margin:3px 0 0}
.circle-link,.mini-heading-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--brand-blue);text-decoration:none}
.circle-link svg,.mini-heading-icon svg{width:17px;height:17px}
.product-list{display:flex;flex-direction:column}
.product-list-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:13px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}
.product-list-row:last-child{border-bottom:0}
.product-mini-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:var(--brand-gradient);color:#fff;font-family:'Poppins',sans-serif;font-weight:800;font-size:16px;box-shadow:0 10px 24px rgba(34,147,255,.15)}
.product-list-copy{display:flex;flex-direction:column;min-width:0}
.product-list-copy strong{font-size:14px;color:var(--ink-strong)}
.product-list-copy span{color:var(--muted-strong);font-size:11px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-list-meta{display:grid;grid-template-columns:auto auto auto;gap:14px;align-items:center;font-size:11px;color:var(--muted-strong)}
.product-list-meta b{color:var(--ink);font-weight:700}.product-list-meta small{font-size:11px}
.status-dot{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:700;color:var(--muted-strong);white-space:nowrap}
.status-dot i{width:7px;height:7px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px rgba(5,205,153,.10)}
.activity-list{padding-top:2px}
.activity-item{position:relative;display:grid;grid-template-columns:16px minmax(0,1fr);gap:11px;padding:12px 0}
.activity-item:not(:last-child)::after{content:'';position:absolute;left:5px;top:25px;bottom:-4px;width:1px;background:var(--line)}
.activity-dot{position:relative;z-index:1;width:11px;height:11px;border-radius:50%;background:var(--brand-gradient);margin-top:4px;box-shadow:0 0 0 4px var(--surface)}
.activity-item strong{font-size:12px;color:var(--ink-strong)}
.activity-item p{margin:3px 0 0;color:var(--muted-strong);font-size:11px;line-height:1.45}
.empty-state{text-align:center;padding:34px 18px;color:var(--muted-strong)}
.empty-state>span{width:48px;height:48px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;margin:0 auto 10px;color:var(--brand-blue)}
.empty-state strong{display:block;color:var(--ink-strong);font-size:13px}.empty-state p{margin:4px 0 0;font-size:11px}
.empty-state.compact{padding:24px}
.quick-panel{margin-top:18px;padding:20px 22px}
.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.quick-grid>a{display:grid;grid-template-columns:38px minmax(0,1fr) 20px;align-items:center;gap:11px;padding:14px;border-radius:16px;background:var(--surface-2);text-decoration:none;transition:background .15s ease,transform .15s ease}
.quick-grid>a:hover{background:var(--brand-gradient-soft);transform:translateY(-1px)}
.quick-grid>a>svg:first-child{width:20px;height:20px;color:var(--brand-blue)}
.quick-grid>a>svg:last-child{width:15px;height:15px;color:var(--muted)}
.quick-grid span{display:flex;flex-direction:column}.quick-grid strong{font-size:12px;color:var(--ink-strong)}.quick-grid small{font-size:10px;color:var(--muted-strong);margin-top:2px}

/* Department / product cards */
.department-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.department-card{padding:20px;min-height:210px;display:flex;flex-direction:column;transition:transform .18s ease}
.department-card:hover{transform:translateY(-2px)}
.department-top{display:flex;justify-content:space-between;align-items:center}
.department-icon{width:47px;height:47px;border-radius:15px;display:grid;place-items:center;color:var(--brand-blue);background:var(--brand-gradient-soft)}
.department-icon svg{width:21px;height:21px}
.badge{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:6px 10px;font-size:10px;font-weight:800;background:var(--surface-2);color:var(--muted-strong)}
.badge.soft{background:var(--surface-2);color:var(--brand-blue)}
.badge.gradient-badge{background:var(--brand-gradient-soft);color:var(--brand-blue);padding:5px 9px}
.department-card h3{font-size:17px;margin:18px 0 7px}.department-card p{font-size:12px;line-height:1.55;margin:0}
.department-footer{margin-top:auto;padding-top:18px;display:flex;align-items:center;justify-content:space-between;color:var(--muted-strong);font-size:11px;border-top:1px solid var(--line)}
.department-footer>span:first-child{display:flex;align-items:center;gap:7px}.department-footer svg{width:15px;height:15px}.department-footer strong{color:var(--ink)}
.department-arrow{width:30px;height:30px;border-radius:50%;display:grid!important;place-items:center;background:var(--surface-2);color:var(--brand-blue)}

.workspace-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:18px}
.workspace-product-card{overflow:hidden;display:flex;flex-direction:column;min-height:420px}
.workspace-product-cover{position:relative;height:145px;background:var(--brand-gradient-soft);display:flex;align-items:center;padding:24px}
.workspace-product-cover::after{content:'';position:absolute;width:180px;height:180px;right:-60px;top:-80px;border-radius:50%;background:var(--brand-gradient);opacity:.2;filter:blur(3px)}
.workspace-product-letter{width:72px;height:72px;border-radius:22px;background:var(--brand-gradient);display:grid;place-items:center;color:#fff;font-family:'Poppins',sans-serif;font-weight:800;font-size:27px;box-shadow:0 16px 35px rgba(34,147,255,.23)}
.workspace-product-cover .status-dot{position:absolute;right:20px;top:20px;background:var(--surface);border-radius:999px;padding:7px 10px;box-shadow:var(--shadow)}
.workspace-product-body{padding:22px 24px 12px}.workspace-product-body .product-type{font-size:9px;font-weight:800;letter-spacing:.15em;color:var(--brand-blue)}
.workspace-product-body h3{font-size:22px;margin:5px 0 7px}.workspace-product-body p{font-size:12px;line-height:1.58;color:var(--muted-strong);margin:0}
.workspace-product-stats{display:grid;grid-template-columns:1fr 1fr;margin:8px 24px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.workspace-product-stats>div{padding:14px 0;display:flex;flex-direction:column}.workspace-product-stats>div+div{border-left:1px solid var(--line);padding-left:20px}.workspace-product-stats small{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted)}.workspace-product-stats strong{font-size:15px;margin-top:3px;color:var(--ink-strong)}
.product-open-link{display:flex;align-items:center;justify-content:space-between;margin:auto 24px 20px;text-decoration:none;font-size:12px;font-weight:800;color:var(--brand-blue)}.product-open-link svg{width:16px;height:16px}

/* Tables + forms */
.content-split{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.58fr);gap:18px;align-items:start}.content-split.single{grid-template-columns:1fr}
.table-card{overflow:hidden}.table-card-head{padding:20px 22px 12px;display:flex;align-items:center;justify-content:space-between;gap:18px}.table-card-head h3{font-size:19px;margin:3px 0 0}
.local-search{height:38px;min-width:190px;display:flex;align-items:center;gap:7px;border-radius:999px;background:var(--surface-2);padding:0 12px;color:var(--muted)}.local-search svg{width:15px;height:15px}.local-search input{border:0;outline:0;background:transparent;color:var(--ink);font-size:11px;width:100%}.local-search input::placeholder{color:var(--muted)}
.table-wrap{overflow:auto;padding:0 8px 10px}.data-table{width:100%;border-collapse:collapse;font-size:11px}.data-table th,.data-table td{text-align:left;padding:13px 13px;border-bottom:1px solid var(--line);vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table th{font-size:9px;text-transform:uppercase;letter-spacing:.11em;color:var(--muted);font-weight:800;white-space:nowrap}.data-table td{color:var(--muted-strong)}.data-table tbody tr:hover{background:var(--surface-2)}
.person-cell{display:flex;align-items:center;gap:10px;min-width:165px}.table-avatar{width:36px;height:36px;font-size:10px;box-shadow:none}.person-cell>div{display:flex;flex-direction:column}.person-cell strong,.table-main{color:var(--ink-strong);font-size:11px}.person-cell span:not(.avatar),.table-sub{font-size:9px;color:var(--muted);margin-top:2px}.table-sub{max-width:160px;line-height:1.35}
.role-pill{display:inline-flex;padding:5px 8px;border-radius:8px;background:var(--surface-2);color:var(--ink);font-size:9px;font-weight:700;text-transform:capitalize;white-space:nowrap}
.product-table-cell{display:flex;align-items:center;gap:8px;min-width:100px}.product-table-cell>span{width:28px;height:28px;border-radius:9px;background:var(--brand-gradient);color:#fff;display:grid;place-items:center;font-weight:800;font-size:10px}.product-table-cell strong{color:var(--ink-strong)}
.allocation{display:flex;align-items:center;gap:8px;min-width:100px}.allocation>div{width:60px;height:5px;background:var(--surface-3);border-radius:99px;overflow:hidden}.allocation>div>span{display:block;height:100%;background:var(--brand-gradient);border-radius:99px}.allocation b{color:var(--ink);font-size:10px}
.form-card{padding:23px}.sticky-card{position:sticky;top:116px}.form-card-icon{width:42px;height:42px;border-radius:14px;background:var(--brand-gradient);color:#fff;display:grid;place-items:center;margin-bottom:16px;box-shadow:0 12px 24px rgba(34,147,255,.18)}.form-card-icon svg{width:20px;height:20px}.form-card h3{font-size:19px;margin:4px 0 5px}.form-card>p{font-size:11px;line-height:1.5;margin:0 0 17px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.field{margin-top:12px}.form-grid .field{margin-top:0}.label{display:block;font-size:10px;font-weight:800;color:var(--ink);margin:0 0 6px}.input,.select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);outline:0;transition:border .15s,box-shadow .15s;font-size:11px}.input:focus,.select:focus{border-color:rgba(34,147,255,.48);box-shadow:0 0 0 4px rgba(34,147,255,.08)}.select{appearance:auto}.field-help{font-size:9px;color:var(--muted);margin-top:5px}.checkbox-row{display:flex;align-items:center;gap:8px;margin:13px 0;color:var(--ink);font-size:11px}.checkbox-row input{accent-color:var(--brand-blue)}
.input-wrap{position:relative}.input-wrap>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--muted)}.input-wrap .input{padding-left:39px}
.btn{min-height:40px;border-radius:12px;border:0;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;font-size:11px;font-weight:800;transition:transform .15s ease,box-shadow .15s ease,opacity .15s ease}.btn svg{width:15px;height:15px}.btn:hover{transform:translateY(-1px)}.btn-primary{background:var(--brand-gradient);color:#fff;box-shadow:0 10px 25px rgba(34,147,255,.19)}.btn-primary:hover{box-shadow:0 14px 30px rgba(34,147,255,.25)}.btn-soft,.btn-light{background:var(--surface);color:var(--ink);border:1px solid var(--line)}.btn-block{width:100%}.btn-lg{min-height:48px;padding:12px 18px;font-size:12px}
.alert{padding:11px 13px;border-radius:12px;margin:14px 0;font-size:11px;font-weight:600}.alert.error{background:rgba(238,93,80,.09);color:#d8463b;border:1px solid rgba(238,93,80,.15)}.alert.success{background:rgba(5,205,153,.09);color:#079b76;border:1px solid rgba(5,205,153,.15)}

/* Hierarchy */
.hierarchy-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.hierarchy-card{padding:22px}.hierarchy-head{display:grid;grid-template-columns:55px minmax(0,1fr);gap:14px;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--line)}.hierarchy-icon{width:55px;height:55px;border-radius:18px;background:var(--brand-gradient);display:grid;place-items:center;color:#fff;font-family:'Poppins',sans-serif;font-size:22px;font-weight:800;box-shadow:0 12px 28px rgba(34,147,255,.16)}.hierarchy-icon.alt{background:linear-gradient(135deg,var(--brand-teal),var(--brand-blue))}.hierarchy-head h3{font-size:19px;margin:2px 0}.hierarchy-head p{font-size:10px;color:var(--muted-strong);margin:0}.level-list{padding-top:8px}.level-row{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.level-row:last-child{border-bottom:0}.level-pill{width:42px;height:31px;border-radius:10px;display:grid;place-items:center;background:var(--brand-gradient-soft);color:var(--brand-blue);font-size:10px;font-weight:900}.level-pill.project{color:var(--brand-teal)}.level-row strong{display:block;font-size:11px;color:var(--ink-strong)}.level-row p{font-size:9px;color:var(--muted-strong);margin:3px 0 0;line-height:1.45}

/* Authentication */
.auth-body{min-height:100vh;background:var(--bg)}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,46%) 1fr}
.auth-brand-panel{position:relative;overflow:hidden;min-height:100vh;padding:42px 50px;display:flex;flex-direction:column;color:#fff;background:linear-gradient(145deg,#0b1437 0%,#152a56 48%,#144c79 100%)}
.auth-brand-panel::before{content:'';position:absolute;width:520px;height:520px;right:-230px;top:-170px;border-radius:50%;background:var(--brand-gradient);opacity:.22;filter:blur(4px)}
.auth-brand-panel::after{content:'';position:absolute;width:340px;height:340px;left:-180px;bottom:-160px;border-radius:50%;background:var(--brand-green);opacity:.12}
.auth-logo{position:relative;z-index:1;display:flex;align-items:center;gap:13px;text-decoration:none;width:max-content;color:#fff}.auth-logo img{width:100px;height:48px;object-fit:contain}.auth-logo>span{display:flex;flex-direction:column}.auth-logo strong{font-family:'Poppins',sans-serif;letter-spacing:.08em;font-size:18px}.auth-logo small{font-size:9px;letter-spacing:.18em;margin-top:2px;opacity:.72}
.auth-brand-content{position:relative;z-index:1;max-width:540px;margin:auto 0}.brand-eyebrow{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--brand-blue)}.brand-eyebrow>span{width:30px;height:3px;border-radius:99px;background:var(--brand-gradient)}.brand-eyebrow.light{color:rgba(255,255,255,.72)}
.auth-brand-content h2{font-size:clamp(2rem,4vw,3.45rem);line-height:1.06;color:#fff;margin:14px 0 16px;max-width:560px}.auth-brand-content>p{max-width:510px;color:rgba(255,255,255,.68);font-size:14px;line-height:1.65}
.auth-feature-list{display:grid;gap:11px;margin-top:30px}.auth-feature-list>div{display:flex;align-items:center;gap:11px;font-size:12px;font-weight:600;color:rgba(255,255,255,.88)}.auth-feature-list svg{width:18px;height:18px;color:var(--brand-green)}
.auth-panel-footer{position:relative;z-index:1;font-size:10px;color:rgba(255,255,255,.45);letter-spacing:.05em}
.auth-form-panel{display:grid;place-items:center;padding:42px;background:var(--bg)}
.login-card{width:min(440px,100%)}.login-card .kicker{color:var(--brand-blue)}.login-card h1{font-size:31px;margin:5px 0 7px}.login-card>p{font-size:12px;margin:0 0 24px}.login-card .field{margin-top:16px}.login-card .btn{margin-top:20px}.setup-card{width:min(520px,100%)}
.auth-back{display:inline-flex;margin-bottom:32px;text-decoration:none;color:var(--muted-strong);font-size:11px;font-weight:700}.auth-back:hover{color:var(--brand-blue)}

/* Legacy installation/error shells */
.login-shell{min-height:100vh;display:grid;place-items:center;padding:30px;background:var(--bg)}
.login-shell>.login-card,.login-shell .login-card{background:var(--surface);padding:28px;border-radius:22px;box-shadow:var(--shadow-lg)}
.login-shell .login-card h1{font-size:28px}.login-shell .login-card code{background:var(--surface-2);padding:2px 6px;border-radius:6px;color:var(--brand-blue)}

/* Public website */
.public-body{background:#fff;color:#1b2559}.public-site{min-height:100vh;background:#fff}.public-container{width:min(1180px,calc(100% - 48px));margin:0 auto}.public-nav{height:86px;width:min(1260px,calc(100% - 48px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:25px;position:relative;z-index:20}.public-brand{display:flex;align-items:center;gap:11px;text-decoration:none}.public-brand img{width:76px;height:38px;object-fit:contain}.public-brand>span{display:flex;flex-direction:column}.public-brand strong{font-family:'Poppins',sans-serif;font-size:15px;letter-spacing:.07em}.public-brand small{font-size:8px;font-weight:700;letter-spacing:.16em;color:#707eae;margin-top:2px}.public-links{display:flex;align-items:center;gap:30px}.public-links a{text-decoration:none;color:#707eae;font-size:12px;font-weight:700}.public-links a:hover{color:#2293ff}.public-login{border-radius:999px;padding-left:18px;padding-right:18px}
.public-hero{position:relative;overflow:hidden;min-height:680px;display:flex;align-items:center;background:radial-gradient(circle at 78% 22%,rgba(34,147,255,.10),transparent 25%),radial-gradient(circle at 52% 70%,rgba(134,220,136,.12),transparent 26%),linear-gradient(180deg,#fff 0%,#f8fbff 100%)}
.hero-orb{position:absolute;border-radius:50%;filter:blur(4px);pointer-events:none}.hero-orb-one{width:470px;height:470px;right:-220px;top:-130px;background:linear-gradient(135deg,rgba(34,147,255,.12),rgba(73,175,208,.04))}.hero-orb-two{width:320px;height:320px;left:-210px;bottom:-160px;background:rgba(134,220,136,.10)}
.hero-grid{display:grid;grid-template-columns:1.03fr .97fr;gap:50px;align-items:center;padding:75px 0 90px;position:relative;z-index:2}.hero-copy h1{font-size:clamp(3.3rem,6.4vw,6.5rem);line-height:.93;margin:17px 0 23px;letter-spacing:-.065em;color:#111c44}.hero-copy h1 span{background:var(--brand-gradient);-webkit-background-clip:text;background-clip:text;color:transparent}.hero-copy>p{max-width:610px;color:#707eae;font-size:17px;line-height:1.7;margin:0}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.hero-actions .btn-soft{background:#fff}.hero-trust{display:flex;align-items:center;gap:30px;margin-top:42px}.hero-trust>div{display:flex;flex-direction:column}.hero-trust strong{font-family:'Poppins',sans-serif;font-size:15px;color:#111c44}.hero-trust span{font-size:9px;color:#a3aed0;margin-top:2px}
.hero-visual{position:relative;min-height:460px;display:grid;place-items:center}.brand-showcase{position:relative;width:min(100%,505px);aspect-ratio:1.1/1;border-radius:38px;background:linear-gradient(145deg,#0b1437,#142b5a);box-shadow:0 40px 90px rgba(22,50,104,.24);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:45px}.brand-showcase::before{content:'';position:absolute;inset:auto -30% -42% 20%;height:70%;background:var(--brand-gradient);opacity:.22;border-radius:50%;filter:blur(20px)}.brand-showcase-glow{position:absolute;width:220px;height:220px;border-radius:50%;top:40px;right:-50px;background:rgba(34,147,255,.15);filter:blur(18px)}.brand-showcase img{position:relative;width:80%;height:auto;object-fit:contain;filter:drop-shadow(0 18px 30px rgba(0,0,0,.18))}.brand-showcase-copy{position:relative;text-align:center;margin-top:28px;display:flex;flex-direction:column;color:#fff}.brand-showcase-copy span{font-size:9px;font-weight:800;letter-spacing:.2em;opacity:.55}.brand-showcase-copy strong{font-family:'Poppins',sans-serif;font-size:17px;margin-top:7px}.float-card{position:absolute;z-index:4;min-width:155px;border-radius:18px;padding:12px 14px;background:rgba(255,255,255,.96);box-shadow:0 20px 50px rgba(45,66,115,.16);display:flex;align-items:center;gap:10px}.float-card-a{left:-20px;top:72px}.float-card-b{right:-16px;bottom:60px}.float-icon{width:37px;height:37px;border-radius:12px;background:var(--brand-gradient-soft);color:#2293ff;display:grid;place-items:center}.float-icon svg{width:18px;height:18px}.float-card>div{display:flex;flex-direction:column}.float-card small{font-size:8px;text-transform:uppercase;letter-spacing:.1em;color:#a3aed0}.float-card strong{font-family:'Poppins',sans-serif;font-size:12px;color:#111c44;margin-top:1px}
.public-section{padding:100px 0}.section-heading{display:grid;grid-template-columns:1fr .75fr;gap:70px;align-items:end;margin-bottom:45px}.section-heading h2{font-size:clamp(2.2rem,4vw,3.65rem);line-height:1.05;margin:13px 0 0;color:#111c44}.section-heading>p{font-size:13px;line-height:1.7;color:#707eae;margin:0}
.service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px}.service-card{border:1px solid #eef1f7;border-radius:22px;padding:25px 23px;min-height:250px;background:#fff;transition:transform .18s ease,box-shadow .18s ease}.service-card:hover{transform:translateY(-4px);box-shadow:0 22px 50px rgba(112,144,176,.12)}.service-icon{width:50px;height:50px;border-radius:16px;background:var(--brand-gradient-soft);color:#2293ff;display:grid;place-items:center}.service-icon svg{width:22px;height:22px}.service-card h3{font-size:18px;margin:25px 0 10px;color:#111c44}.service-card p{color:#707eae;font-size:12px;line-height:1.65;margin:0}
.products-section{background:#f4f7fe}.public-products{display:grid;grid-template-columns:1fr 1fr;gap:20px}.product-showcase-card{position:relative;overflow:hidden;min-height:355px;border-radius:28px;background:#fff;padding:27px;box-shadow:0 18px 40px rgba(112,144,176,.08);display:flex;flex-direction:column}.product-showcase-card::after{content:'';position:absolute;width:200px;height:200px;right:-110px;top:-100px;border-radius:50%;background:var(--brand-gradient);opacity:.09}.product-card-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}.product-symbol{width:57px;height:57px;border-radius:18px;background:var(--brand-gradient);color:#fff;display:grid;place-items:center;font-family:'Poppins',sans-serif;font-size:21px;font-weight:800;box-shadow:0 13px 28px rgba(34,147,255,.18)}.product-showcase-card>div:nth-child(2){margin-top:35px}.product-showcase-card small{font-size:9px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#2293ff}.product-showcase-card h3{font-size:29px;margin:4px 0 8px;color:#111c44}.product-showcase-card p{font-size:12px;line-height:1.65;color:#707eae;margin:0;max-width:500px}.product-showcase-card>a{margin-top:auto;display:flex;align-items:center;gap:8px;text-decoration:none;color:#2293ff;font-size:11px;font-weight:800;width:max-content}.product-showcase-card>a svg{width:15px;height:15px}
.about-panel{display:grid;grid-template-columns:.72fr 1.28fr;gap:75px;align-items:center;padding:55px;border-radius:36px;background:linear-gradient(145deg,#0b1437,#152c59);color:#fff;overflow:hidden;position:relative}.about-panel::after{content:'';position:absolute;width:400px;height:400px;left:-230px;bottom:-270px;border-radius:50%;background:var(--brand-gradient);opacity:.13}.about-brand{position:relative;z-index:1;min-height:220px;display:grid;place-items:center;border-radius:26px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}.about-brand img{width:80%;height:auto;object-fit:contain}.about-panel>div:last-child{position:relative;z-index:1}.about-panel h2{font-size:clamp(2rem,3.5vw,3.25rem);line-height:1.08;color:#fff;margin:12px 0}.about-panel p{color:rgba(255,255,255,.65);font-size:13px;line-height:1.7}.text-link{display:inline-flex;align-items:center;gap:8px;color:#fff;text-decoration:none;font-size:11px;font-weight:800;margin-top:12px}.text-link svg{width:15px;height:15px}
.public-footer{padding:30px 0;border-top:1px solid #edf1f7}.public-footer .public-container{display:flex;align-items:center;justify-content:space-between;color:#a3aed0;font-size:10px}.footer-brand{display:flex;align-items:center;gap:9px;color:#707eae;font-weight:800;letter-spacing:.06em}.footer-brand img{width:50px;height:24px;object-fit:contain}

/* Responsive */
@media(max-width:1199px){
  .sidebar{transform:translateX(-105%);box-shadow:0 20px 60px rgba(17,28,68,.18)}
  .main{margin-left:0}
  .mobile-menu{display:grid}
  body.sidebar-open .sidebar{transform:translateX(0)}
  body.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(11,20,55,.34);backdrop-filter:blur(2px);z-index:55}
  .stats-grid{grid-template-columns:repeat(2,1fr)}
  .dashboard-grid{grid-template-columns:1fr}
  .content-split{grid-template-columns:1fr}.sticky-card{position:static}
  .hierarchy-grid{grid-template-columns:1fr}
  .auth-shell{grid-template-columns:42% 1fr}.auth-brand-panel{padding:38px 34px}
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .hero-grid{grid-template-columns:1fr 1fr;gap:30px}.float-card-a{left:0}.float-card-b{right:0}
}
@media(max-width:860px){
  .topbar{top:0;margin:0;padding:12px 0;min-height:78px}.page-heading h1{font-size:24px}.breadcrumb{display:none}
  .workspace-search{width:170px}.workspace-search input{font-size:11px}
  .product-list-meta{grid-template-columns:1fr;gap:3px;text-align:right}.product-list-copy span{max-width:320px}
  .quick-grid{grid-template-columns:1fr}
  .auth-shell{grid-template-columns:1fr}.auth-brand-panel{display:none}.auth-form-panel{min-height:100vh;padding:32px 24px}
  .public-links{display:none}.public-nav{height:76px}.public-brand>span{display:none}
  .hero-grid{grid-template-columns:1fr;padding-top:55px}.hero-visual{min-height:400px}.hero-copy{text-align:center}.hero-copy .brand-eyebrow{justify-content:center}.hero-copy>p{margin-left:auto;margin-right:auto}.hero-actions,.hero-trust{justify-content:center}
  .section-heading{grid-template-columns:1fr;gap:18px}.section-heading>p{max-width:620px}.public-products{grid-template-columns:1fr}.about-panel{grid-template-columns:1fr;gap:30px}.about-brand{min-height:180px}
}
@media(max-width:620px){
  :root{--radius:17px}.main{padding:0 10px 10px}.content{padding-top:5px}.workspace-footer{flex-direction:column;align-items:flex-start;gap:5px;padding-left:3px}
  .page-heading h1{font-size:21px}.top-tools{gap:2px;padding:5px}.workspace-search{width:42px;overflow:hidden}.workspace-search:focus-within{position:absolute;right:93px;width:min(260px,calc(100vw - 130px));z-index:5}.workspace-search>span{padding-left:12px}.workspace-search input{min-width:190px}.top-tools .icon-button{width:34px;height:34px}.avatar{width:34px;height:34px}
  .stats-grid{grid-template-columns:1fr;gap:12px}.stat-card{min-height:96px}.module-intro,.dashboard-intro{align-items:flex-start}.module-badge{display:none}
  .panel-card,.quick-panel,.hierarchy-card{padding:17px}.product-list-row{grid-template-columns:40px minmax(0,1fr)}.product-mini-icon{width:40px;height:40px}.product-list-meta{grid-column:2;display:flex;gap:10px;text-align:left;margin-top:-5px}.product-list-copy span{white-space:normal}
  .form-grid{grid-template-columns:1fr}.table-card-head{align-items:flex-start;flex-direction:column}.local-search{width:100%}
  .department-grid,.workspace-product-grid{grid-template-columns:1fr}.hierarchy-head{grid-template-columns:46px 1fr}.hierarchy-icon{width:46px;height:46px;border-radius:15px}.level-row{grid-template-columns:43px 1fr}
  .public-container{width:min(100% - 34px,1180px)}.public-nav{width:calc(100% - 30px)}.public-login{font-size:10px;padding:8px 12px}.public-login svg{display:none}.public-brand img{width:64px}.public-hero{min-height:auto}.hero-grid{padding:50px 0 70px}.hero-copy h1{font-size:3.3rem}.hero-copy>p{font-size:14px}.hero-actions{display:grid}.hero-trust{gap:17px;flex-wrap:wrap}.hero-visual{min-height:330px}.brand-showcase{border-radius:26px;padding:30px}.float-card{min-width:135px;padding:9px 11px}.float-card-a{top:35px}.float-card-b{bottom:30px}.public-section{padding:70px 0}.service-grid{grid-template-columns:1fr}.service-card{min-height:210px}.about-panel{padding:30px 24px;border-radius:26px}.public-footer .public-container{align-items:flex-start;flex-direction:column;gap:10px}
}
