:root{--brand-50: #eef2ff;--brand-100: #e0e7ff;--brand-200: #c7d2fe;--brand-300: #a5b4fc;--brand-500: #6366f1;--brand-600: #4f46e5;--brand-700: #4338ca;--bg: #f1f5f9;--surface: #ffffff;--surface-2: #f8fafc;--border: #e2e8f0;--text: #0f172a;--text-muted: #64748b;--text-faint: #94a3b8;--green: #10b981;--green-bg: #d1fae5;--amber: #f59e0b;--amber-bg: #fef3c7;--red: #ef4444;--red-bg: #fee2e2;--blue: #0ea5e9;--blue-bg: #e0f2fe;--slate: #64748b;--slate-bg: #e2e8f0;--violet: #8b5cf6;--violet-bg: #ede9fe;--radius: 12px;--radius-sm: 8px;--radius-lg: 16px;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);--shadow: 0 4px 16px rgba(15, 23, 42, .08);--shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);--sidebar-w: 256px;--topbar-h: 64px;--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%}body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:var(--brand-600);text-decoration:none}button{font-family:inherit;cursor:pointer}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border:1px solid transparent;border-radius:var(--radius-sm);font-size:14px;font-weight:600;transition:all .15s ease;white-space:nowrap;background:var(--surface);color:var(--text)}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--brand-600);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-700)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-secondary:hover:not(:disabled){background:var(--surface-2)}.btn-danger{background:var(--red);color:#fff}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-ghost{background:transparent;color:var(--text-muted)}.btn-ghost:hover{background:var(--surface-2)}.btn-sm{padding:6px 12px;font-size:13px}.btn-block{width:100%}.field{margin-bottom:16px}.field label{display:block;font-weight:600;font-size:13px;margin-bottom:6px;color:var(--text)}.input,.select,.textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:14px;font-family:inherit;background:var(--surface);color:var(--text);transition:border-color .15s ease,box-shadow .15s ease}.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--brand-500);box-shadow:0 0 0 3px var(--brand-100)}.textarea{resize:vertical;min-height:110px}.field-error{color:var(--red);font-size:12px;margin-top:4px}.field-hint{color:var(--text-faint);font-size:12px;margin-top:4px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm)}.card-pad{padding:20px}.card-header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.card-title{font-size:16px;font-weight:700}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;text-transform:capitalize;white-space:nowrap}.badge-dot{width:7px;height:7px;border-radius:50%;background:currentColor}.table-wrap{overflow-x:auto;width:100%}table.data{width:100%;border-collapse:collapse;font-size:14px}table.data th{text-align:left;padding:12px 16px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);border-bottom:1px solid var(--border);background:var(--surface-2);white-space:nowrap}table.data td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:middle}table.data tbody tr:hover{background:var(--surface-2)}table.data tr:last-child td{border-bottom:none}.row{display:flex;gap:12px;align-items:center}.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.col{display:flex;flex-direction:column;gap:4px}.grid{display:grid;gap:16px}.text-muted{color:var(--text-muted)}.text-faint{color:var(--text-faint)}.text-sm{font-size:13px}.text-xs{font-size:12px}.fw-600{font-weight:600}.fw-700{font-weight:700}.mt-2{margin-top:8px}.mt-3{margin-top:16px}.mt-4{margin-top:24px}.mb-3{margin-bottom:16px}.gap-2{gap:8px}.flex-1{flex:1}.wrap{flex-wrap:wrap}.page-title{font-size:22px;font-weight:800;letter-spacing:-.01em}.page-subtitle{color:var(--text-muted);font-size:14px}.spinner{width:22px;height:22px;border:3px solid var(--brand-200);border-top-color:var(--brand-600);border-radius:50%;animation:spin .7s linear infinite}.spinner-center{display:flex;align-items:center;justify-content:center;padding:48px;color:var(--text-muted)}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;padding:48px 24px;color:var(--text-muted)}.empty h3{margin-top:12px;color:var(--text)}.avatar{width:36px;height:36px;border-radius:50%;background:var(--brand-100);color:var(--brand-700);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}.app-shell{display:flex;min-height:100vh}.sidebar{width:var(--sidebar-w);background:#0f172a;color:#cbd5e1;display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;z-index:40;transition:transform .25s ease}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:18px 20px;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand-500),var(--brand-700));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800}.sidebar-brand h1{font-size:18px;color:#fff;font-weight:800}.sidebar-brand span{font-size:11px;color:#94a3b8}.sidebar-nav{flex:1;padding:12px;overflow-y:auto}.nav-link{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:var(--radius-sm);color:#cbd5e1;font-weight:600;font-size:14px;margin-bottom:4px;transition:all .15s ease}.nav-link:hover{background:#ffffff0f;color:#fff}.nav-link.active{background:var(--brand-600);color:#fff}.nav-link svg{width:20px;height:20px;flex-shrink:0}.sidebar-footer{padding:14px 20px;border-top:1px solid rgba(255,255,255,.08);font-size:11px;color:#64748b}.main{flex:1;margin-left:var(--sidebar-w);display:flex;flex-direction:column;min-width:0}.topbar{height:var(--topbar-h);background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:30;gap:12px}.topbar-title{font-weight:700;font-size:16px}.hamburger{display:none;background:none;border:none;color:var(--text);padding:6px}.content{padding:24px;flex:1}.user-menu{position:relative}.user-menu-btn{display:flex;align-items:center;gap:10px;background:none;border:none;padding:4px 6px;border-radius:var(--radius-sm)}.user-menu-btn:hover{background:var(--surface-2)}.user-menu-dropdown{position:absolute;right:0;top:calc(100% + 8px);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);min-width:220px;padding:8px;z-index:50}.user-menu-dropdown a,.user-menu-dropdown button{display:flex;width:100%;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius-sm);border:none;background:none;color:var(--text);font-size:14px;text-align:left}.user-menu-dropdown a:hover,.user-menu-dropdown button:hover{background:var(--surface-2)}.backdrop{display:none;position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a80;z-index:35}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-sm)}.stat-card .stat-icon{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:12px}.stat-card .stat-value{font-size:28px;font-weight:800;line-height:1}.stat-card .stat-label{color:var(--text-muted);font-size:13px;margin-top:6px}.charts-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.filter-bar{display:flex;gap:8px;flex-wrap:nowrap;align-items:center;margin-bottom:16px;overflow-x:auto}.filter-bar .input,.filter-bar .select{width:auto;min-width:120px;flex-shrink:0}.search-box{flex:1 1 auto;min-width:160px}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-top:1px solid var(--border);flex-wrap:wrap}.pagination-controls{display:flex;gap:6px;align-items:center}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:flex;align-items:center;justify-content:center;padding:16px;z-index:100;animation:fade .15s ease}.modal{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:100%;max-width:520px;max-height:90vh;overflow-y:auto;animation:pop .18s ease}.modal-lg{max-width:720px}.modal-header{padding:18px 22px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.modal-body{padding:22px}.modal-footer{padding:16px 22px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{transform:scale(.97);opacity:0}}.toast-container{position:fixed;top:20px;right:20px;display:flex;flex-direction:column;gap:10px;z-index:200}.toast{background:var(--surface);border-left:4px solid var(--brand-600);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);padding:14px 18px;min-width:280px;max-width:360px;animation:slide-in .2s ease}.toast.success{border-left-color:var(--green)}.toast.error{border-left-color:var(--red)}.toast.info{border-left-color:var(--blue)}@keyframes slide-in{0%{transform:translate(120%)}}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-hero{background:linear-gradient(135deg,var(--brand-600),#312e81);color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:center}.auth-hero h1{font-size:40px;font-weight:800;margin-bottom:16px}.auth-hero p{font-size:16px;color:#c7d2fe;max-width:420px}.auth-hero ul{list-style:none;margin-top:32px;display:flex;flex-direction:column;gap:14px}.auth-hero li{display:flex;align-items:center;gap:12px;color:#e0e7ff}.auth-form-side{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:var(--surface)}.auth-card{width:100%;max-width:400px}.auth-card h2{font-size:26px;font-weight:800;margin-bottom:4px}.auth-logo{display:flex;align-items:center;gap:10px;margin-bottom:28px}.alert{padding:12px 14px;border-radius:var(--radius-sm);font-size:13px;margin-bottom:16px}.alert-error{background:var(--red-bg);color:#991b1b}.alert-success{background:var(--green-bg);color:#065f46}.alert-info{background:var(--blue-bg);color:#075985}.seed-hint{margin-top:18px;padding:12px 14px;background:var(--surface-2);border:1px dashed var(--border);border-radius:var(--radius-sm);font-size:12px;color:var(--text-muted)}.detail-grid{display:grid;grid-template-columns:1fr 320px;gap:16px;align-items:start}.comment{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.comment:last-child{border-bottom:none}.comment-internal{background:var(--amber-bg);border-radius:var(--radius-sm);padding:12px;margin:6px 0}.meta-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--border);font-size:14px}.meta-row:last-child{border-bottom:none}.meta-row .label{color:var(--text-muted)}.timeline{position:relative;padding-left:22px}.timeline-item{position:relative;padding-bottom:18px}.timeline-item:before{content:"";position:absolute;left:-16px;top:4px;width:10px;height:10px;border-radius:50%;background:var(--brand-500)}.timeline-item:after{content:"";position:absolute;left:-12px;top:14px;bottom:-4px;width:2px;background:var(--border)}.timeline-item:last-child:after{display:none}@media (max-width: 1024px){.charts-grid,.detail-grid{grid-template-columns:1fr}}@media (max-width: 900px){.auth-page{grid-template-columns:1fr}.auth-hero{display:none}}@media (max-width: 768px){.sidebar{transform:translate(-100%)}.sidebar.open{transform:translate(0)}.main{margin-left:0}.hamburger{display:inline-flex}.backdrop.show{display:block}.content{padding:16px}.topbar{padding:0 16px}}@media (max-width: 480px){.stat-card .stat-value{font-size:24px}.filter-bar .input,.filter-bar .select,.search-box{width:100%;min-width:0}.filter-bar{flex-direction:column;align-items:stretch}.modal{max-width:100%}}
