*,:after,:before{box-sizing:border-box;margin:0;padding:0}:root{--bg:#f5f7fa;--surface:#fff;--surface2:#f0f3f7;--surface3:#e6ebf2;--border:#dde3eb;--border2:#c4cdd9;--blue:#2563eb;--blue-light:#3b82f6;--blue-dark:#1d4ed8;--blue-tint:#eff6ff;--gold:#d97706;--gold-text:#b45309;--gold-light:#f59e0b;--gold-tint:#fffbeb;--green:#059669;--green-text:#047857;--green-tint:#ecfdf5;--red:#dc2626;--red-text:#b91c1c;--red-tint:#fef2f2;--yellow:#d97706;--yellow-text:#b45309;--yellow-tint:#fffbeb;--text:#111827;--text-muted:#4b5563;--text-dim:#6b7280;--text-faint:#9ca3af;--shadow-sm:0 1px 2px rgba(15,23,42,.04);--shadow:0 1px 3px rgba(15,23,42,.08),0 1px 2px rgba(15,23,42,.04);--shadow-lg:0 10px 15px -3px rgba(15,23,42,.1),0 4px 6px -2px rgba(15,23,42,.05);--radius:8px;--focus-ring:0 0 0 3px rgba(37,99,235,.35)}body,html{height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{cursor:pointer}button,input,select,textarea{font-family:inherit}.skip-link{position:absolute;top:-100px;left:0;z-index:9999;background:var(--blue);color:#fff;padding:12px 20px;font-weight:600;border-radius:0 0 var(--radius) 0;transition:top .15s}.skip-link:focus{top:0;outline:2px solid var(--blue-light);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:4px}.btn:focus-visible,.tab:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.form-input:focus,.form-input:focus-visible,.form-select:focus,.form-select:focus-visible,.form-textarea:focus,.form-textarea:focus-visible{outline:none;border-color:var(--blue);box-shadow:var(--focus-ring)}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.app{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:#0f172a;color:#cbd5e1;border-right:1px solid #1e293b;padding:1.5rem 0;position:-webkit-sticky;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar-logo{font-family:Barlow Condensed,sans-serif;font-weight:800;font-size:22px;letter-spacing:.1em;padding:0 1.5rem 1.5rem;border-bottom:1px solid #1e293b;color:#fff}.sidebar-logo small{display:block;font-size:9px;letter-spacing:.25em;color:#93c5fd;margin-top:2px;font-weight:500}.sidebar-nav{padding:1rem 0}.sidebar-nav a{display:flex;align-items:center;gap:12px;padding:10px 1.5rem;color:#cbd5e1;font-size:14px;transition:all .15s;border-left:3px solid transparent;text-decoration:none}.sidebar-nav a.active,.sidebar-nav a:hover{color:#fff;background:#1e293b}.sidebar-nav a.active{border-left-color:var(--blue-light)}.sidebar-nav a:focus-visible{outline:2px solid var(--blue-light);outline-offset:-2px}.sidebar-nav svg{width:18px;height:18px;flex-shrink:0}.sidebar-user{position:absolute;bottom:0;left:0;right:0;padding:1rem 1.5rem;border-top:1px solid #1e293b;gap:10px}.sidebar-user,.user-avatar{display:flex;align-items:center}.user-avatar{width:32px;height:32px;border-radius:50%;flex-shrink:0;background:var(--blue);color:#fff;justify-content:center;font-weight:600;font-size:12px}.user-info{flex:1 1;min-width:0}.user-name{font-size:13px;color:#fff;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-role{font-size:11px;color:#94a3b8;text-transform:capitalize}.sidebar-user .btn-ghost{color:#cbd5e1}.sidebar-user .btn-ghost:hover{color:#fff;background:#1e293b}.main{padding:2rem 2.5rem;max-width:1400px;min-width:0}.page-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:2rem;gap:1rem;flex-wrap:wrap}.page-title{font-size:24px;font-weight:600;color:var(--text);letter-spacing:-.01em;line-height:1.2}.page-sub{font-size:13px;color:var(--text-muted);margin-top:4px}.btn{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid transparent;border-radius:var(--radius);font-size:13px;font-weight:500;transition:all .15s;min-height:36px;white-space:nowrap;text-decoration:none}.btn-primary{background:var(--blue);color:#fff;box-shadow:var(--shadow-sm)}.btn-primary:hover{background:var(--blue-dark)}.btn-primary:disabled{background:var(--border2);cursor:not-allowed}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border2);box-shadow:var(--shadow-sm)}.btn-secondary:hover{background:var(--surface2);border-color:var(--text-muted)}.btn-secondary:disabled{color:var(--text-faint);cursor:not-allowed}.btn-ghost{background:transparent;color:var(--text-muted)}.btn-ghost:hover{color:var(--text);background:var(--surface2)}.btn-danger{background:var(--red);color:#fff}.btn-sm{padding:6px 12px;font-size:12px;min-height:30px}.form-group{margin-bottom:1.25rem}.form-label{display:block;font-size:12px;color:var(--text-muted);margin-bottom:6px;font-weight:500}.form-input,.form-select,.form-textarea{width:100%;padding:10px 12px;background:var(--surface);border:1px solid var(--border2);border-radius:var(--radius);color:var(--text);font-size:14px;transition:border-color .15s,box-shadow .15s;box-shadow:var(--shadow-sm);min-height:38px}.form-input::placeholder{color:var(--text-dim)}.form-textarea{resize:vertical;min-height:80px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow-sm);min-width:0}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:.75rem;flex-wrap:wrap}.card-title{font-size:13px;font-weight:600;color:var(--text);text-transform:uppercase;letter-spacing:.04em}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));grid-gap:1rem;gap:1rem;margin-bottom:2rem}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem 1.5rem;box-shadow:var(--shadow-sm);min-width:0}.stat-num{font-size:30px;font-weight:700;color:var(--text);line-height:1;letter-spacing:-.02em}.stat-label{font-size:12px;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;margin-top:6px;font-weight:500}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow-x:auto;box-shadow:var(--shadow-sm)}.table{width:100%;border-collapse:collapse;min-width:640px}.table th{padding:11px 16px;text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);background:var(--surface2);font-weight:600}.table td,.table th{border-bottom:1px solid var(--border);white-space:nowrap}.table td{padding:13px 16px;font-size:14px;color:var(--text);max-width:280px;overflow:hidden;text-overflow:ellipsis}.table td.wrap{white-space:normal}.table td a{color:var(--blue-dark);text-decoration:none}.table td a:hover{text-decoration:underline}.table tr:last-child td{border-bottom:none}.table tr.clickable:hover td{background:var(--surface2);cursor:pointer}.badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:11px;font-weight:600;letter-spacing:.02em;white-space:nowrap}.badge-green{background:var(--green-tint);color:var(--green-text)}.badge-yellow{background:var(--yellow-tint);color:var(--yellow-text)}.badge-red{background:var(--red-tint);color:var(--red-text)}.badge-blue{background:var(--blue-tint);color:var(--blue-dark)}.badge-gray{background:var(--surface3);color:var(--text-muted)}.toolbar{display:flex;gap:.75rem;margin-bottom:1.25rem;flex-wrap:wrap;align-items:center}.toolbar .form-input{max-width:320px}.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:2rem;background:linear-gradient(135deg,#f8fafc,#e0e7ff)}.login-box{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2.5rem;width:100%;max-width:400px;box-shadow:var(--shadow-lg)}.login-logo{text-align:center;margin-bottom:2rem}.login-logo h1{font-family:Barlow Condensed,sans-serif;font-size:36px;font-weight:800;letter-spacing:.1em;color:var(--text)}.login-logo p{font-size:11px;color:var(--text-dim);letter-spacing:.15em;text-transform:uppercase;margin-top:4px;font-weight:500}.alert{padding:12px 14px;border-radius:var(--radius);font-size:13px;margin-bottom:1rem;line-height:1.5}.alert-error{background:var(--red-tint);border:1px solid #fecaca;color:var(--red-text)}.alert-info{background:var(--blue-tint);border:1px solid #bfdbfe;color:var(--blue-dark)}.alert-success{background:var(--green-tint);border:1px solid #a7f3d0;color:var(--green-text)}.tabs{display:flex;gap:0;border-bottom:1px solid var(--border);margin-bottom:1.5rem;overflow-x:auto}.tab{padding:11px 18px;font-size:13px;color:var(--text-muted);transition:all .15s;font-weight:500;white-space:nowrap;cursor:pointer;background:none;border:none;border-bottom:2px solid transparent}.tab:hover{color:var(--text)}.tab.active{color:var(--blue-dark);border-bottom-color:var(--blue)}.empty{text-align:center;padding:3rem 1rem;color:var(--text-muted)}.empty h3{color:var(--text);font-size:16px;margin-bottom:6px;font-weight:600}.empty p{font-size:13px}.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.break-word{overflow-wrap:anywhere;word-break:break-word}@media(max-width:900px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto}.main{padding:1rem}.page-title{font-size:20px}.stat-num{font-size:24px}.table td{max-width:200px}}@media(max-width:600px){.main{padding:.75rem}.card{padding:1rem}.page-header{flex-direction:column}.btn{width:auto}}