*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--brand:#ea580c;--brand-dark:#7c2d12;--bg:#f8fafc;--border:#e2e8f0;--text:#0f172a;--text-muted:#64748b;--radius:10px;--danger:#dc2626}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);line-height:1.5}
.navbar{background:var(--brand-dark);padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:56px;position:sticky;top:0;z-index:100}
.nav-brand{display:flex;align-items:center;gap:8px}
.brand-name{color:white;font-size:18px;font-weight:700}
.brand-tag{color:#fed7aa;font-size:12px;background:rgba(255,255,255,0.1);padding:2px 8px;border-radius:20px}
.nav-links{display:flex;align-items:center;gap:8px}
.nav-link{color:#fed7aa;text-decoration:none;padding:6px 14px;border-radius:6px;font-size:14px;transition:background 0.15s}
.nav-link:hover{background:rgba(255,255,255,0.1);color:white}
.nav-cta{background:var(--brand);color:white!important}
.nav-cta:hover{background:#f97316!important}
.nav-user{display:flex;align-items:center;gap:12px;margin-left:16px;padding-left:16px;border-left:1px solid rgba(255,255,255,0.15)}
.nav-user span{color:#fed7aa;font-size:13px}
.btn-logout{color:#fed7aa;font-size:13px;text-decoration:none}
.btn-logout:hover{color:white}
.container{max-width:1280px;margin:0 auto;padding:24px 24px 48px}
.alert{background:#fef3c7;border:1px solid #fcd34d;color:#92400e;padding:12px 16px;border-radius:var(--radius);margin-bottom:16px}
.auth-wrapper{display:flex;justify-content:center;padding:60px 16px}
.auth-card{background:white;border:1px solid var(--border);border-radius:16px;padding:40px;width:100%;max-width:420px;box-shadow:0 4px 24px rgba(0,0,0,0.06)}
.auth-logo{font-size:22px;font-weight:800;color:var(--brand);margin-bottom:20px}
.auth-title{font-size:22px;font-weight:700;margin-bottom:4px}
.auth-sub{color:var(--text-muted);font-size:14px;margin-bottom:24px}
.auth-form{display:flex;flex-direction:column;gap:16px}
.form-group{display:flex;flex-direction:column;gap:6px}
.form-group label{font-size:14px;font-weight:500}
.form-group input,.form-group textarea,.form-group select{padding:10px 14px;border:1px solid var(--border);border-radius:8px;font-size:14px;outline:none;font-family:inherit;background:white}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,0.1)}
.auth-footer{margin-top:16px;font-size:14px;color:var(--text-muted);text-align:center}
.auth-footer a{color:var(--brand);text-decoration:none;font-weight:500}
.btn-primary{background:var(--brand);color:white;border:none;padding:11px 20px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;display:inline-block;transition:background 0.15s}
.btn-primary:hover{background:#f97316}
.btn-full{width:100%;text-align:center}
.btn-sm{padding:6px 12px;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;text-decoration:none;border:none;transition:all 0.15s}
.btn-outline{background:transparent;border:1px solid var(--border);color:var(--text-muted)}
.btn-outline:hover{border-color:#f97316;color:var(--brand)}
.btn-danger{background:#fee2e2;color:var(--danger)}
.btn-danger:hover{background:var(--danger);color:white}
.btn-filter{background:var(--brand);color:white;padding:8px 18px;border-radius:8px;font-size:14px;font-weight:600;border:none;cursor:pointer}
.btn-clear{color:var(--text-muted);font-size:14px;text-decoration:none;padding:8px}
.btn-clear:hover{color:var(--danger)}
.back-link{color:var(--brand);text-decoration:none;font-size:14px;font-weight:500;display:inline-block;margin-bottom:16px}
.back-link:hover{text-decoration:underline}
.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px;gap:16px}
.dashboard-header h1{font-size:26px;font-weight:700;display:flex;align-items:center;gap:10px}
.dashboard-header p{color:var(--text-muted);font-size:14px;margin-top:4px}
.dashboard-actions{flex-shrink:0}
.count-badge{background:var(--brand);color:white;font-size:14px;font-weight:700;padding:2px 10px;border-radius:20px}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:20px}
.summary-card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:16px;text-align:center}
.summary-num{font-size:32px;font-weight:800;margin-bottom:4px}
.summary-label{font-size:13px;color:var(--text-muted)}
.summary-high .summary-num{color:#dc2626}
.summary-medium .summary-num{color:#d97706}
.summary-low .summary-num{color:#16a34a}
.summary-total .summary-num{color:var(--brand)}
.plan-bar{display:flex;align-items:center;justify-content:space-between;background:white;border:1px solid var(--border);border-radius:var(--radius);padding:10px 16px;margin-bottom:16px;font-size:13px}
.plan-bar-left{display:flex;align-items:center;gap:10px}
.plan-badge{font-size:11px;font-weight:700;padding:3px 8px;border-radius:20px;text-transform:uppercase;letter-spacing:0.5px}
.plan-free{background:#f1f5f9;color:#475569}.plan-pro{background:#ffedd5;color:#ea580c}.plan-teams{background:#7c2d12;color:white}
.plan-usage{color:var(--text-muted)}
.plan-progress-track{width:100px;height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden}
.plan-progress-fill{height:100%;background:var(--brand);border-radius:3px}
.plan-bar-right{display:flex;align-items:center;gap:12px}
.plan-upgrade-link{color:var(--brand);font-weight:600;text-decoration:none;font-size:13px}
.plan-upgrade-link:hover{text-decoration:underline}
.plan-pricing-link{color:var(--text-muted);text-decoration:none;font-size:13px}
.filters{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin-bottom:20px}
.filter-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.filter-select{padding:8px 12px;border:1px solid var(--border);border-radius:8px;font-size:14px;background:white;outline:none}
.risks-table{background:white;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.risks-table table{width:100%;border-collapse:collapse}
.risks-table thead th{background:#f8fafc;padding:12px 14px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;color:var(--text-muted);text-align:left;border-bottom:1px solid var(--border)}
.risks-table tbody tr{border-bottom:1px solid #f1f5f9}
.risks-table tbody tr:last-child{border-bottom:none}
.risk-row{transition:background 0.1s}
.risk-row:hover{background:#fafafa}
.risk-row td{padding:12px 14px;vertical-align:top}
.risk-high td:first-child{border-left:4px solid #dc2626}
.risk-medium td:first-child{border-left:4px solid #d97706}
.risk-low td:first-child{border-left:4px solid #16a34a}
.risk-title{font-size:14px;font-weight:600;color:var(--text)}
.risk-desc{font-size:12px;color:var(--text-muted);margin-top:3px}
.cat-badge{font-size:11px;font-weight:600;background:#f1f5f9;color:#475569;padding:2px 8px;border-radius:20px}
.score-cell{text-align:center;font-size:14px;font-weight:600;color:var(--text-muted)}
.risk-score{font-size:13px;font-weight:800;padding:3px 8px;border-radius:6px}
.score-high{background:#fee2e2;color:#dc2626}
.score-medium{background:#fef3c7;color:#d97706}
.score-low{background:#dcfce7;color:#16a34a}
.owner-cell{font-size:13px;color:var(--text-muted)}
.status-badge{font-size:11px;font-weight:600;padding:2px 8px;border-radius:20px}
.status-open{background:#fee2e2;color:#dc2626}
.status-in-progress{background:#fef3c7;color:#d97706}
.status-mitigated{background:#dcfce7;color:#16a34a}
.status-closed{background:#f1f5f9;color:#475569}
.status-accepted{background:#ede9fe;color:#7c3aed}
.actions-cell{white-space:nowrap}
.form-card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:24px}
.empty-state{text-align:center;padding:60px 24px}
.empty-icon{font-size:48px;margin-bottom:16px}
.empty-state h3{font-size:20px;font-weight:600;margin-bottom:8px}
.empty-state p{color:var(--text-muted);margin-bottom:20px}
@media(max-width:768px){.summary-grid{grid-template-columns:1fr 1fr}.risks-table{overflow-x:auto}}
