:root{--primary:#5851f5;--purple:#5b4bef;--icon:#5b35e8;--tint:#eeebfd;--navy:#0e1230;--gray:#6b7086;--placeholder:#9ca0b3;--border:#e3e4ee;--divider:#ecedf4;--page:#f5f6fe;--card:#fff;--green:#16a34a;--green-tint:#e3f8ec;--blue:#2e90fa;--blue-tint:#e6f2fe;--orange:#f5a524;--orange-tint:#fef3e2;--red:#ef4444;--red-tint:#fde8ea;--pink:#ec4899;--pink-tint:#fde8f1;--green-ink:#0f7a37;--blue-ink:#1566c0;--orange-ink:#a2640a;--red-ink:#c62828;--pink-ink:#b8236f;--shadow:0 4px 10px #5b4bc40d;--shadow-raised:0 12px 32px #0e123024;--radius:16px;--radius-sm:10px;--sidebar:256px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:var(--navy);background:var(--page);-webkit-font-smoothing:antialiased;font-family:Poppins,system-ui,Segoe UI,sans-serif;font-size:14px;line-height:1.5}*,:before,:after{box-sizing:border-box}body{background:var(--page);margin:0}h1,h2,h3,p,dl,dd,ul{margin:0;padding:0}ul{list-style:none}h1{font-size:24px;font-weight:700;line-height:1.25}h2{font-size:16px;font-weight:600}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.muted{color:var(--gray)}.small{font-size:12px}.strong{font-weight:600}.right{text-align:right}.nowrap{white-space:nowrap}.mono{font-variant-numeric:tabular-nums}.truncate{text-overflow:ellipsis;white-space:nowrap;max-width:260px;display:block;overflow:hidden}.stack{flex-direction:column;gap:16px;display:flex}.stack-sm{flex-direction:column;gap:8px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.row-between{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.tint-purple{background:var(--tint);color:var(--icon)}.tint-blue{background:var(--blue-tint);color:var(--blue-ink)}.tint-orange{background:var(--orange-tint);color:var(--orange-ink)}.tint-green{background:var(--green-tint);color:var(--green-ink)}.tint-pink{background:var(--pink-tint);color:var(--pink-ink)}.tint-red{background:var(--red-tint);color:var(--red-ink)}.shell{height:100dvh;display:flex}.sidebar{width:var(--sidebar);background:var(--card);border-right:1px solid var(--divider);flex-direction:column;flex:none;display:flex}.sidebar-head{justify-content:space-between;align-items:center;padding:20px 20px 12px;display:flex}.sidebar-head a:hover{text-decoration:none}.sidebar-head .sidebar-close,.sidebar-scrim{display:none}.sidebar nav{flex:1;padding:0 12px 20px;overflow-y:auto}.nav-group{margin-top:14px}.nav-label{letter-spacing:.04em;text-transform:uppercase;color:var(--placeholder);padding:0 12px 4px;font-size:11px;font-weight:600}.nav-item{border-radius:var(--radius-sm);color:var(--gray);align-items:center;gap:10px;padding:8px 12px;font-weight:500;display:flex}.nav-item:hover{background:var(--page);color:var(--navy);text-decoration:none}.nav-item.active{background:var(--tint);color:var(--icon);font-weight:600}.logo{color:var(--purple);align-items:center;gap:10px;display:inline-flex}.logo-mark{background:var(--primary);color:#fff;border-radius:11px;place-items:center;width:36px;height:36px;display:grid}.logo strong{font-size:18px;font-weight:800;line-height:1.1;display:block}.logo small{letter-spacing:.12em;color:var(--gray);font-size:9.5px;font-weight:600;display:block}.main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{background:var(--card);border-bottom:1px solid var(--divider);flex:none;align-items:center;gap:12px;padding:12px 28px;display:flex}.top-search{flex:1;min-width:0;max-width:360px;margin-right:auto;position:relative}.top-search .search{flex-basis:auto;width:100%;min-width:0;max-width:none}.top-search-results{left:0;right:0}.sample-chip{background:var(--orange-tint);color:var(--orange-ink);white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600}.topbar .menu-btn{display:none}.content{flex:1;padding:24px 28px 40px;overflow-y:auto}.page-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.page-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.period-label{background:var(--tint);color:var(--icon);border-radius:999px;padding:6px 14px;font-size:12px;font-weight:600}.back-link{color:var(--gray);align-items:center;gap:4px;margin-bottom:8px;font-weight:500;display:inline-flex}.search-select{position:relative}.search-select-list{max-height:260px;top:calc(100% + 4px);left:0;right:0;overflow-y:auto}.search-select-list>button.active{background:var(--tint);color:var(--icon)}.search-select-list>button[aria-selected=true]{font-weight:600}.search-select-create{color:var(--primary);font-weight:600}.search-select-clear{color:var(--gray);cursor:pointer;background:0 0;border:0;padding:4px;font-size:18px;line-height:1;position:absolute;top:50%;right:34px;transform:translateY(-50%)}.popover-anchor{position:relative}.popover{z-index:30;background:var(--card);border:1px solid var(--border);box-shadow:var(--shadow-raised);border-radius:14px;position:absolute;top:calc(100% + 8px);overflow:hidden}.popover>button:not(.feed-item),.menu button{text-align:left;background:0 0;border:0;align-items:center;gap:10px;width:100%;padding:10px 14px;display:flex}.popover>button:not(.feed-item):hover,.menu button:hover{background:var(--page)}.popover-note{padding:12px 14px}.popover-head{border-bottom:1px solid var(--divider);justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.bell-panel{width:min(340px,100vw - 32px);right:0}.account-panel{width:220px;right:0}.feed-item{border:0;border-bottom:1px solid var(--divider);text-align:left;background:0 0;flex-direction:column;align-items:flex-start;gap:1px;width:100%;padding:10px 14px;display:flex}.feed-item.unread{background:var(--tint)}.link{color:var(--primary);background:0 0;border:0;padding:0;font-size:12px;font-weight:500}.badge{background:var(--red);color:#fff;border-radius:999px;min-width:18px;height:18px;padding:0 4px;font-size:10.5px;font-weight:600;line-height:18px;position:absolute;top:-5px;right:-5px}.account{color:var(--gray);text-align:left;background:0 0;border:0;align-items:center;gap:8px;padding:2px;display:flex}.account-text strong{color:var(--navy);font-size:13px;font-weight:600;line-height:1.25;display:block}.account-text small{font-size:11.5px;display:block}.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0;padding:20px}.card-flush{padding:0;overflow:hidden}.card-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.grid-sidebar{grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;gap:16px;display:grid}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;display:grid}.stat{border-radius:var(--radius);box-shadow:var(--shadow);padding:16px 18px}.stat-purple{background:var(--tint);--stat-icon:var(--icon)}.stat-blue{background:var(--blue-tint);--stat-icon:var(--blue-ink)}.stat-orange{background:var(--orange-tint);--stat-icon:var(--orange-ink)}.stat-green{background:var(--green-tint);--stat-icon:var(--green-ink)}.stat-pink{background:var(--pink-tint);--stat-icon:var(--pink-ink)}.stat-top{justify-content:space-between;align-items:center;display:flex}.stat-label{color:var(--gray);font-weight:500}.stat-icon{background:var(--card);width:32px;height:32px;color:var(--stat-icon);border-radius:10px;place-items:center;display:grid}.stat-value{font-variant-numeric:tabular-nums;margin-top:4px;font-size:24px;font-weight:700}.stat-delta{align-items:center;gap:2px;font-weight:500;display:flex}.stat-delta.up{color:var(--green-ink)}.stat-delta.down{color:var(--red-ink)}.btn{white-space:nowrap;border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:9px 18px;font-weight:600;display:inline-flex}.btn:disabled{opacity:.5}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--icon);text-decoration:none}.btn-ghost{background:var(--card);border-color:var(--border);color:var(--navy)}.btn-ghost:hover:not(:disabled){background:var(--page);text-decoration:none}.btn-danger{background:var(--red-ink);color:#fff}.btn-danger:hover:not(:disabled){background:#a51f1f}.btn-sm{padding:5px 12px;font-size:12.5px}.btn-block{width:100%}.icon-btn{width:34px;height:34px;color:var(--gray);background:0 0;border:0;border-radius:10px;flex:none;place-items:center;display:inline-grid;position:relative}.icon-btn:hover:not(:disabled){background:var(--page);color:var(--navy)}.icon-btn:disabled{opacity:.4}.icon-btn-outline{border:1px solid var(--border)}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;display:flex}.search{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);max-width:320px;color:var(--placeholder);flex:220px;align-items:center;gap:8px;padding:0 12px;display:flex}.search:focus-within{border-color:var(--primary)}.search input{min-width:0;color:var(--navy);background:0 0;border:0;outline:0;flex:1;padding:8px 0}.input,.select,.textarea{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);width:100%;padding:9px 12px}.input:focus,.select:focus,.textarea:focus{border-color:var(--primary);outline:0}.input::placeholder,.textarea::placeholder,.search input::placeholder{color:var(--placeholder)}.input:disabled,.select:disabled,.textarea:disabled{background-color:var(--page);color:var(--gray);cursor:not-allowed}.select{appearance:none;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7086' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:36px}.select-inline{width:auto;padding-block:8px}.textarea{resize:vertical;min-height:96px}.field{flex-direction:column;gap:4px;min-width:0;display:flex}.field-label{font-size:12.5px;font-weight:500}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.form-grid .span-2{grid-column:1/-1}.form-error{color:var(--red-ink);font-size:12.5px;font-weight:500}.checks{flex-wrap:wrap;gap:12px;display:flex}.checks label{align-items:center;gap:6px;display:inline-flex}.switch{flex:none;width:40px;height:22px;display:inline-block;position:relative}.switch input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.switch input:disabled{cursor:not-allowed}.switch span{background:var(--border);pointer-events:none;border-radius:999px;transition:background .15s;position:absolute;inset:0}.switch span:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:3px;left:3px}.switch input:checked+span{background:var(--primary)}.switch input:checked+span:after{transform:translate(18px)}.switch input:focus-visible+span{outline:2px solid var(--primary);outline-offset:2px}.switch input:disabled+span{opacity:.5}.tabs{border-bottom:1px solid var(--border);gap:4px;margin-bottom:16px;display:flex;overflow-x:auto}.tabs button{color:var(--gray);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;margin-bottom:-1px;padding:8px 14px;font-weight:500}.tabs button.active{border-color:var(--primary);color:var(--icon);font-weight:600}.table-scroll{overflow-x:auto}.table{border-collapse:collapse;width:100%}.table th{border-bottom:1px solid var(--divider);color:var(--gray);text-align:left;white-space:nowrap;background:#fafaff;padding:12px 16px;font-size:12px;font-weight:500}.table th.right{text-align:right}.table td{border-bottom:1px solid var(--divider);vertical-align:middle;padding:11px 16px}.table tbody tr:last-child td{border-bottom:0}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td{background:#fafaff}.pagination{border-top:1px solid var(--divider);justify-content:space-between;align-items:center;gap:12px;padding:10px 16px;display:flex}.pagination-buttons{align-items:center;gap:6px;display:flex}.pill{white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:500;display:inline-block}.pill-green{background:var(--green-tint);color:var(--green-ink)}.pill-blue{background:var(--blue-tint);color:var(--blue-ink)}.pill-orange{background:var(--orange-tint);color:var(--orange-ink)}.pill-red{background:var(--red-tint);color:var(--red-ink)}.pill-gray{background:var(--divider);color:var(--gray)}.avatar{border-radius:50%;flex:none;place-items:center;font-weight:600;display:inline-grid}.thumb{border-radius:10px;flex:none;place-items:center;width:38px;height:38px;display:inline-grid}.identity{white-space:nowrap;align-items:center;gap:10px;display:flex}.identity>div:last-child{min-width:0;max-width:260px}.identity .small{text-overflow:ellipsis;overflow:hidden}.details{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;display:grid}.details dt{color:var(--gray);font-size:12px}.details dd{overflow-wrap:anywhere;font-weight:500}.photo-row{flex-wrap:wrap;gap:8px;display:flex}.photo{border-radius:var(--radius-sm);background:var(--tint);width:72px;height:72px;color:var(--icon);place-items:center;display:grid}.list-rows>li{border-bottom:1px solid var(--divider);justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.list-rows>li:last-child{border-bottom:0}.notice{border-radius:12px;gap:10px;padding:12px 14px;font-size:13px;display:flex}.notice svg{flex:none;margin-top:1px}.notice-info{background:var(--blue-tint);color:#0f4d94}.notice-warn{background:var(--orange-tint);color:#7d4c05}.notice+.toolbar,.notice+.stat-grid{margin-top:16px}.page-notice{margin-bottom:16px}.state{text-align:center;flex-direction:column;align-items:center;gap:6px;padding:44px 16px;display:flex}.state .thumb{margin-bottom:4px}.skeleton{background:linear-gradient(90deg, var(--divider) 25%, #f7f7fc 50%, var(--divider) 75%);background-size:200% 100%;border-radius:8px;animation:1.3s linear infinite shimmer;display:block}.skeleton-line{height:14px}.skeleton-stat{border-radius:var(--radius);height:116px}.skeleton-block{border-radius:var(--radius);height:240px}@keyframes shimmer{to{background-position:-200% 0}}.scrim{z-index:40;background:#0e123066;justify-content:flex-end;display:flex;position:fixed;inset:0}.scrim-center{justify-content:center;align-items:center;padding:16px}.drawer{background:var(--card);width:min(520px,100vw);height:100%;box-shadow:var(--shadow-raised);flex-direction:column;display:flex}.modal{background:var(--card);border-radius:var(--radius);width:min(460px,100%);max-height:calc(100dvh - 32px);box-shadow:var(--shadow-raised);flex-direction:column;display:flex}.overlay-head{border-bottom:1px solid var(--divider);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.overlay-head h2{font-size:17px}.overlay-body{flex:1;padding:20px;overflow-y:auto}.overlay-foot{border-top:1px solid var(--divider);justify-content:flex-end;gap:8px;padding:14px 20px;display:flex}.menu-layer{z-index:50;position:fixed;inset:0}.menu{background:var(--card);border:1px solid var(--border);min-width:170px;box-shadow:var(--shadow-raised);border-radius:12px;padding:4px;position:fixed}.menu button{white-space:nowrap;border-radius:8px;padding:8px 10px}.menu .menu-danger{color:var(--red-ink)}.toasts{z-index:60;flex-direction:column;gap:8px;max-width:min(380px,100vw - 40px);display:flex;position:fixed;bottom:20px;right:20px}.toast{background:var(--navy);color:#fff;box-shadow:var(--shadow-raised);border-radius:12px;align-items:center;gap:8px;padding:12px 16px;display:flex}.toast-success svg{color:#5fe39a;flex:none}.toast-error svg{color:#ff9c9c;flex:none}.chart{position:relative}.chart svg{width:100%;height:auto;display:block}.chart-grid{stroke:var(--divider);stroke-width:1px}.chart-tick{fill:var(--gray);font-family:inherit;font-size:11px}.chart-line{fill:none;stroke:var(--purple);stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.chart-area{fill:var(--purple);opacity:.1}.chart-cross{stroke:var(--placeholder);stroke-dasharray:3 3}.chart-dot{fill:var(--purple);stroke:var(--card);stroke-width:2px}.chart-tip{background:var(--navy);color:#fff;white-space:nowrap;pointer-events:none;border-radius:8px;padding:6px 10px;font-size:12px;position:absolute;transform:translate(-50%,calc(-100% - 12px))}.chart-tip span{opacity:.75;display:block}.bar-list{flex-direction:column;gap:12px;display:flex}.bar-row{justify-content:space-between;gap:12px;font-size:13px;display:flex}.bar-row strong{font-variant-numeric:tabular-nums;font-weight:600}.bar-track{background:var(--divider);border-radius:4px;height:8px;margin-top:4px;overflow:hidden}.bar-fill{background:var(--purple);border-radius:4px;min-width:4px;height:100%}.login{background:var(--page);place-items:center;min-height:100dvh;padding:16px;display:grid}.login-card{width:min(420px,100%);padding:32px}.login-card h1{margin-top:20px}.chat{flex-direction:column;height:min(62dvh,560px);display:flex}.chat-log{flex-direction:column;flex:1;gap:10px;display:flex;overflow-y:auto}.bubble{background:var(--page);white-space:pre-wrap;border-radius:14px;max-width:78%;padding:10px 14px}.bubble.mine{background:var(--primary);color:#fff;align-self:flex-end}.chat-form{gap:8px;padding-top:14px;display:flex}.prose{white-space:pre-wrap;line-height:1.65}@media (width<=1100px){.grid-3,.grid-2,.grid-sidebar{grid-template-columns:minmax(0,1fr)}}@media (width<=860px){.sidebar{z-index:35;visibility:hidden;max-width:86vw;transition:transform .28s cubic-bezier(.22,1,.36,1),visibility .28s;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.sidebar.open{visibility:visible;box-shadow:var(--shadow-raised);transform:none}.sidebar-scrim{z-index:34;opacity:0;visibility:hidden;background:#0e123066;transition:opacity .28s,visibility .28s;display:block;position:fixed;inset:0}.sidebar-scrim.open{opacity:1;visibility:visible}.sidebar-head .sidebar-close,.topbar .menu-btn{display:inline-grid}.topbar{gap:8px;padding:10px 16px}.content{padding:16px 16px 32px}.account-text,.account>svg,.sample-chip{display:none}.form-grid{grid-template-columns:minmax(0,1fr)}}@media (prefers-reduced-motion:reduce){.skeleton{animation:none}.sidebar,.sidebar-scrim,.switch span,.switch span:after{transition:none}}@media print{.sidebar,.topbar,.no-print{display:none!important}.shell,.main,.content{height:auto;display:block;overflow:visible}body{background:#fff}}
