:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg: #09090a;--bg-elevated: #0d0d0f;--sidebar: #0b0b0d;--sidebar-hover: #17171a;--sidebar-active: #252528;--surface: #28282c;--surface-soft: #222225;--surface-hover: #303034;--surface-deep: #1b1b1e;--border: #414146;--border-soft: #343439;--border-strong: #56565d;--text: #f5f4f1;--text-secondary: #c8c7c3;--text-muted: #949398;--text-soft: #6f6e74;--accent: #e8d8b2;--accent-strong: #f3dfae;--accent-text: #171512;--accent-soft: rgba(232, 216, 178, .09);--success: #9dd5a8;--success-bg: rgba(91, 168, 107, .13);--warning: #e1bd77;--warning-bg: rgba(205, 157, 67, .13);--danger: #e58d87;--danger-strong: #ef9a93;--danger-bg: rgba(202, 85, 78, .13);--info: #aebce0;--info-bg: rgba(108, 132, 194, .13);--radius-sm: 7px;--radius-md: 11px;--radius-lg: 16px;--shadow-soft: 0 1px 0 rgba(255, 255, 255, .02), 0 12px 30px rgba(0, 0, 0, .14);--shadow-modal: 0 30px 80px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .32)}*{box-sizing:border-box}html{min-width:320px;min-height:100%;background:var(--bg)}body{min-width:320px;min-height:100vh;margin:0;background:var(--bg);color:var(--text)}#root{min-height:100vh}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button,input,textarea,select,a{outline:none}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}::selection{background:var(--accent);color:var(--accent-text)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:#37373c;border:2px solid var(--bg);border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#49494f}.app-shell{display:flex;min-height:100vh;background:radial-gradient(circle at 78% 0%,rgba(255,255,255,.018),transparent 32%),var(--bg)}.sidebar{position:fixed;inset:0 auto 0 0;z-index:50;display:flex;flex-direction:column;width:248px;padding:22px 14px 18px;background:var(--sidebar);color:var(--text);border-right:1px solid #252529}.sidebar-header{display:flex;align-items:center;gap:12px;padding:2px 8px 28px}.brand-mark{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font-size:16px;font-weight:800;box-shadow:inset 0 1px #ffffff0a}.brand-name{margin:0;color:var(--text);font-size:14px;line-height:1.2;font-weight:750}.brand-subtitle{margin:4px 0 0;color:var(--text-muted);font-size:10px;line-height:1.3}.sidebar-nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;min-height:43px;padding:0 13px;border:1px solid transparent;border-radius:8px;color:var(--text-secondary);font-size:12px;font-weight:600;transition:background .14s ease,border-color .14s ease,color .14s ease}.nav-link:hover{background:var(--sidebar-hover);color:var(--text)}.nav-link.active{border-color:#3d3d42;background:var(--sidebar-active);color:#fff}.sidebar-footer{display:flex;align-items:center;gap:8px;margin-top:auto;padding:16px 10px 3px;color:var(--text-muted);font-size:10px}.environment-dot{width:6px;height:6px;border-radius:999px;background:#77c68a;box-shadow:0 0 0 3px #77c68a14}.main-content{width:calc(100% - 248px);min-height:100vh;margin-left:248px}.page{width:100%;max-width:1460px;margin:0 auto;padding:42px 48px 64px}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;margin-bottom:28px}.page-eyebrow{margin:0 0 8px;color:var(--accent);font-size:9px;font-weight:750;letter-spacing:.19em;text-transform:uppercase}.page-header h2{margin:0;color:#fff;font-size:29px;line-height:1.18;font-weight:700;letter-spacing:-.035em}.page-description{max-width:700px;margin:8px 0 0;color:var(--text-muted);font-size:12px;line-height:1.65}.primary-button,.secondary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:var(--radius-sm);font-size:11px;font-weight:700;white-space:nowrap;transition:background .13s ease,border-color .13s ease,color .13s ease,transform .1s ease}.primary-button{border:1px solid var(--accent);background:var(--accent);color:var(--accent-text)}.primary-button:hover:not(:disabled){border-color:var(--accent-strong);background:var(--accent-strong)}.secondary-button{border:1px solid var(--border-strong);background:var(--surface);color:var(--text)}.secondary-button:hover:not(:disabled){border-color:#68686f;background:var(--surface-hover)}.danger-button{border:1px solid #8a4946;background:#6e3734;color:#f7d6d3}.danger-button:hover:not(:disabled){border-color:#9f5450;background:#82413d}.primary-button:active:not(:disabled),.secondary-button:active:not(:disabled),.danger-button:active:not(:disabled){transform:translateY(1px)}.text-button{padding:4px 2px;border:0;background:transparent;color:var(--text-secondary);font-size:10px;font-weight:650;transition:color .12s ease,opacity .12s ease}.text-button:hover:not(:disabled){color:var(--accent)}.text-button.danger{color:var(--danger)}.text-button.danger:hover:not(:disabled){color:var(--danger-strong)}.text-button.success{color:var(--success)}.content-card,.stat-card{background:linear-gradient(180deg,rgba(255,255,255,.012),transparent),var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-soft)}.content-card{overflow:hidden}.card-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:18px 20px;border-bottom:1px solid var(--border-soft)}.card-header h3{margin:0;color:var(--text);font-size:13px;font-weight:700}.card-header p{margin:5px 0 0;color:var(--text-muted);font-size:10px;line-height:1.5}.stat-grid,.dashboard-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{display:flex;flex-direction:column;min-height:145px;padding:19px}.stat-label{color:var(--text-secondary);font-size:10px;font-weight:600}.stat-value{margin-top:17px;color:#fff;font-size:32px;line-height:1;font-weight:650}.stat-help{margin-top:auto;color:var(--text-soft);font-size:9px}.dashboard-secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-recent-card{margin-bottom:18px}.dashboard-empty{min-height:180px}.dashboard-error{display:flex;align-items:center;justify-content:space-between;gap:18px}.status-summary,.integrity-summary{display:flex;flex-direction:column;padding:4px 20px}.status-summary-item,.integrity-summary>div{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:52px;border-bottom:1px solid var(--border-soft)}.status-summary-item:last-child,.integrity-summary>div:last-child{border-bottom:0}.status-summary-item>div{display:flex;align-items:center;gap:9px;color:var(--text-secondary);font-size:10px}.status-summary-item>strong{color:var(--text);font-size:13px}.status-dot{width:7px;height:7px;border-radius:999px}.status-dot.open{background:var(--warning)}.status-dot.resolved{background:var(--success)}.status-dot.voided{background:var(--danger)}.integrity-summary span{color:var(--text-secondary);font-size:10px}.integrity-summary strong{color:var(--accent);font-size:9px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.dashboard-table{min-width:900px}.dashboard-rule-cell,.incident-rule-cell,.rule-title-cell{display:flex;flex-direction:column;gap:4px}.dashboard-rule-cell{max-width:260px}.dashboard-rule-cell strong,.incident-rule-cell strong,.rule-title-cell strong{color:var(--text);font-size:11px}.dashboard-rule-cell span,.incident-rule-cell>span{color:var(--text-soft);font-size:9px}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:230px;padding:40px;text-align:center}.empty-state strong{color:var(--text-secondary);font-size:12px;font-weight:650}.empty-state span{max-width:420px;margin-top:6px;color:var(--text-soft);font-size:10px;line-height:1.5}.filter-group{display:inline-flex;align-items:center;gap:3px;padding:4px;background:var(--surface-deep);border:1px solid var(--border-soft);border-radius:8px}.filter-button{min-height:31px;padding:0 11px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text-muted);font-size:10px;font-weight:650;transition:background .12s ease,border-color .12s ease,color .12s ease}.filter-button:hover{color:var(--text)}.filter-button.active{border-color:#46464b;background:var(--surface-hover);color:var(--accent)}.search-input,.toolbar-select,.form-field input,.form-field textarea,.form-field select{border:1px solid var(--border-strong);border-radius:var(--radius-sm);background-color:var(--surface-deep);color:var(--text);transition:border-color .12s ease,background .12s ease,box-shadow .12s ease}.search-input{width:220px;min-height:40px;padding:0 12px;font-size:11px}.toolbar-select{min-height:40px;max-width:190px;padding:0 34px 0 11px;font-size:10px}.form-field input,.form-field textarea,.form-field select{width:100%;padding:10px 12px;font-size:11px;line-height:1.45}.form-field input,.form-field select{min-height:40px}.form-field textarea{min-height:96px;resize:vertical}.search-input::placeholder,.form-field input::placeholder,.form-field textarea::placeholder{color:var(--text-soft)}.search-input:focus,.toolbar-select:focus,.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:#8d8269;background-color:#202023;box-shadow:0 0 0 3px #e8d8b212}select option{background:#1e1e21;color:var(--text)}select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:34px;background-image:linear-gradient(45deg,transparent 50%,var(--text-soft) 50%),linear-gradient(135deg,var(--text-soft) 50%,transparent 50%);background-position:calc(100% - 14px) 50%,calc(100% - 10px) 50%;background-repeat:no-repeat;background-size:4px 4px,4px 4px;color-scheme:dark;cursor:pointer}select:disabled{cursor:not-allowed}.table-wrapper{width:100%;overflow-x:auto}.data-table{width:100%;min-width:720px;border-collapse:collapse;text-align:left}.data-table th{padding:11px 20px;background:#00000021;color:var(--text-soft);border-bottom:1px solid var(--border-soft);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.data-table td{padding:15px 20px;color:var(--text-secondary);border-bottom:1px solid var(--border-soft);font-size:11px;line-height:1.45;vertical-align:middle}.data-table tbody tr{transition:background .11s ease}.data-table tbody tr:hover{background:#ffffff05}.data-table tbody tr:last-child td{border-bottom:0}.primary-cell{color:var(--text);font-weight:650}.actions-column{width:210px}.table-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;white-space:nowrap}.status-badge,.incident-status,.version-badge{display:inline-flex;align-items:center;justify-content:center;min-height:23px;padding:2px 8px;border:1px solid transparent;border-radius:999px;font-size:9px;line-height:1;font-weight:700;white-space:nowrap}.status-badge.active{border-color:#9dd5a824;background:var(--success-bg);color:var(--success)}.status-badge.inactive{border-color:var(--border-soft);background:#ffffff09;color:var(--text-muted)}.incident-status.open{border-color:#e1bd7726;background:var(--warning-bg);color:var(--warning)}.incident-status.resolved{border-color:#9dd5a824;background:var(--success-bg);color:var(--success)}.incident-status.voided{border-color:#e58d8724;background:var(--danger-bg);color:var(--danger)}.version-badge{border-color:var(--border-soft);background:var(--surface-deep);color:var(--accent)}.weight-value{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:23px;padding:0 7px;border:1px solid rgba(232,216,178,.15);border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:9px;font-weight:750}.alert{padding:11px 13px;border-radius:var(--radius-sm);font-size:10px;line-height:1.5}.alert-error{border:1px solid rgba(229,141,135,.23);background:var(--danger-bg);color:#efaaa5}.page-alert{margin:0 0 18px}.two-column-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.config-list{display:flex;flex-direction:column}.config-item{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:116px;padding:17px 20px;border-bottom:1px solid var(--border-soft);transition:background .11s ease}.config-item:last-child{border-bottom:0}.config-item:hover{background:#ffffff05}.config-item-main{min-width:0;flex:1}.config-item-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.config-item-header strong{color:var(--text);font-size:12px;font-weight:650}.config-title-row{display:flex;align-items:center;gap:8px;min-width:0}.config-description{margin:0;color:var(--text-muted);font-size:10px;line-height:1.55}.config-meta{display:block;margin-top:8px;color:var(--text-soft);font-size:9px}.config-actions{display:flex;align-items:center;gap:12px;flex:0 0 auto}.rules-toolbar,.incident-toolbar{align-items:center}.toolbar-controls,.incident-toolbar-controls{display:flex;align-items:center;gap:10px}.incident-toolbar-controls{justify-content:flex-end;flex-wrap:wrap}.rules-table{min-width:1000px}.incidents-table{min-width:1100px}.rule-title-cell{max-width:420px}.rule-title-cell span{display:-webkit-box;overflow:hidden;color:var(--text-muted);font-size:10px;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical}.weight-display{display:flex;align-items:center;gap:7px}.history-list{max-height:65vh;overflow-y:auto;padding:8px 24px 24px}.history-item{padding:20px 0;border-bottom:1px solid var(--border-soft)}.history-item:last-child{border-bottom:0}.history-item-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.history-item-header h4{margin:8px 0 0;color:var(--text);font-size:13px}.history-item-header time{color:var(--text-soft);font-size:9px;white-space:nowrap}.history-definition{margin:12px 0 0;color:var(--text-secondary);font-size:11px;line-height:1.65;white-space:pre-wrap}.history-meta{display:flex;flex-wrap:wrap;gap:20px;margin-top:14px;color:var(--text-muted);font-size:9px}.history-meta strong{color:var(--text-secondary)}.dependency-warning{display:flex;align-items:center;gap:6px;margin-bottom:18px;padding:12px 14px;border:1px solid rgba(225,189,119,.25);border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning);font-size:10px}.dependency-warning strong{font-weight:700}.incident-rule-cell{max-width:260px}.rule-preview{padding:15px;border:1px solid #4d493e;border-radius:10px;background:linear-gradient(135deg,rgba(232,216,178,.055),transparent 60%),var(--surface-deep)}.rule-preview-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.rule-preview-header>div{display:flex;flex-direction:column;gap:4px}.preview-label,.detail-label{color:var(--accent);font-size:8px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.rule-preview-header strong{color:var(--text);font-size:12px}.rule-preview p{margin:11px 0 0;color:var(--text-secondary);font-size:10px;line-height:1.6;white-space:pre-wrap}.rule-preview-meta{display:flex;flex-wrap:wrap;gap:20px;margin-top:12px;color:var(--text-muted);font-size:9px}.rule-preview-meta strong{color:var(--text-secondary)}.optional-label{color:var(--text-soft);font-size:8px;font-style:normal;font-weight:500}.incident-detail{padding:24px}.incident-detail-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid var(--border-soft)}.incident-detail-top>div{display:flex;flex-direction:column;gap:5px}.incident-detail-top strong{color:var(--text);font-size:14px}.detail-section{padding:20px 0;border-bottom:1px solid var(--border-soft)}.detail-section:last-of-type{border-bottom:0}.detail-section h4{margin:8px 0 0;color:var(--text);font-size:14px}.detail-section>p{margin:9px 0 0;color:var(--text-secondary);font-size:11px;line-height:1.65;white-space:pre-wrap}.detail-body{overflow-wrap:anywhere;white-space:pre-wrap}.detail-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}.detail-meta-grid>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:12px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface-deep)}.detail-meta-grid span{color:var(--text-soft);font-size:8px;font-weight:650}.detail-meta-grid strong{overflow-wrap:anywhere;color:var(--text-secondary);font-size:9px;line-height:1.4}.evidence-link{display:inline-flex;margin-top:8px;color:var(--accent);font-size:10px;font-weight:650}.evidence-link:hover{text-decoration:underline}.lifecycle-section{margin-top:16px;padding:15px;border:1px solid transparent;border-radius:9px}.lifecycle-section.resolved{border-color:#9dd5a833;background:var(--success-bg)}.lifecycle-section.voided{border-color:#e58d8733;background:var(--danger-bg)}.lifecycle-section small{display:block;margin-top:8px;color:var(--text-muted);font-size:8px}.incident-detail-actions{display:flex;justify-content:flex-end;gap:10px;padding-top:22px}.action-context{display:flex;flex-direction:column;gap:4px;margin-bottom:18px;padding:12px 14px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface-deep)}.action-context span{color:var(--text-muted);font-size:9px}.action-context strong{color:var(--text);font-size:11px}.modal-backdrop{position:fixed;z-index:200;inset:0;display:flex;align-items:center;justify-content:center;padding:24px;background:#000000c2;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal{width:100%;max-width:500px;max-height:calc(100vh - 48px);overflow-y:auto;background:#202023;border:1px solid #4a4a50;border-radius:var(--radius-lg);box-shadow:var(--shadow-modal)}.modal-wide{max-width:640px}.modal-history{max-width:760px}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:21px 23px;border-bottom:1px solid var(--border-soft)}.modal-header h3{margin:0;color:var(--text);font-size:16px;line-height:1.25;font-weight:700}.modal-header p{margin:6px 0 0;color:var(--text-muted);font-size:10px;line-height:1.55}.modal-close{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:31px;height:31px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text-muted);font-size:20px;line-height:1;transition:background .12s ease,border-color .12s ease,color .12s ease}.modal-close:hover{border-color:var(--border-soft);background:var(--surface);color:var(--text)}.modal-form{padding:23px}.form-stack{display:flex;flex-direction:column;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-field{display:flex;flex-direction:column;gap:7px}.form-field>span{color:var(--text-secondary);font-size:10px;font-weight:650}.form-helper{color:var(--text-soft);font-size:8px;line-height:1.45}.modal-form .alert{margin-top:16px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:23px;padding-top:19px;border-top:1px solid var(--border-soft)}@media(max-width:1200px){.dashboard-stat-grid,.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.incident-toolbar{align-items:flex-start;flex-direction:column}.incident-toolbar-controls{width:100%;justify-content:flex-start}.detail-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:220px}.main-content{width:calc(100% - 220px);margin-left:220px}.page{padding:34px 30px 50px}.two-column-grid{grid-template-columns:1fr}}@media(max-width:820px){.dashboard-secondary-grid{grid-template-columns:1fr}.rules-toolbar,.toolbar-controls{align-items:stretch;flex-direction:column}.search-input{width:100%}.form-grid{grid-template-columns:1fr}.history-item-header{flex-direction:column;gap:8px}.config-item{align-items:flex-start}}@media(max-width:720px){.app-shell{flex-direction:column}.sidebar{position:static;width:100%;min-height:auto;padding:15px}.sidebar-header{padding-bottom:15px}.sidebar-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar-footer{display:none}.main-content{width:100%;margin-left:0}.page{padding:24px 17px 40px}.page-header{flex-direction:column;align-items:stretch;margin-bottom:22px}.page-header .primary-button{align-self:flex-start}.card-header{align-items:flex-start;flex-direction:column}.filter-group{width:100%}.filter-button{flex:1}.config-item{flex-direction:column}.config-actions{width:100%}.incident-toolbar-controls{align-items:stretch;flex-direction:column}.incident-toolbar-controls .search-input,.incident-toolbar-controls .toolbar-select{width:100%;max-width:none}.detail-meta-grid{grid-template-columns:1fr}.incident-detail-actions{align-items:stretch;flex-direction:column}.dependency-warning{align-items:flex-start;flex-direction:column}.modal-backdrop{align-items:flex-end;padding:12px}.modal{max-width:none;max-height:calc(100vh - 24px);border-radius:14px}}@media(max-width:600px){.dashboard-stat-grid,.stat-grid{grid-template-columns:1fr}.page-header h2{font-size:25px}}body{font-size:14px}.brand-name{font-size:16px;font-weight:750}.brand-subtitle{margin-top:5px;font-size:11px;line-height:1.4}.nav-link{min-height:45px;padding-left:14px;padding-right:14px;font-size:13px;font-weight:600}.sidebar-footer{font-size:11px}.page-eyebrow{font-size:10px;letter-spacing:.18em}.page-header h2{font-size:32px}.page-description{font-size:13.5px;line-height:1.65}.primary-button,.secondary-button,.danger-button{min-height:42px;padding-left:17px;padding-right:17px;font-size:12px}.text-button{font-size:11.5px}.card-header h3{font-size:14px}.card-header p{font-size:11.5px;line-height:1.55}.stat-card{min-height:152px;padding:20px}.stat-label{font-size:11.5px}.stat-value{margin-top:18px;font-size:34px}.stat-help{font-size:10.5px;line-height:1.45}.status-summary-item>div{font-size:11.5px}.status-summary-item>strong{font-size:14px}.integrity-summary span{font-size:11.5px}.integrity-summary strong{font-size:10.5px}.data-table th{font-size:10px}.data-table td,.primary-cell,.dashboard-rule-cell strong,.incident-rule-cell strong,.rule-title-cell strong{font-size:12px}.dashboard-rule-cell span,.incident-rule-cell>span{font-size:10px}.status-badge,.incident-status,.version-badge{min-height:25px;padding-left:9px;padding-right:9px;font-size:10px}.weight-value{min-width:26px;height:25px;font-size:10px}.filter-button{min-height:33px;font-size:11px}.search-input{font-size:12px}.toolbar-select{font-size:11.5px}.form-field>span{font-size:11.5px}.form-field input,.form-field textarea,.form-field select{font-size:12px}.form-helper{font-size:9.5px}.optional-label{font-size:9px}.config-item-header strong{font-size:13px}.config-description{font-size:11px}.config-meta{font-size:10px}.history-item-header h4{font-size:14px}.history-item-header time{font-size:10px}.history-definition{font-size:12px}.history-meta{font-size:10px}.preview-label,.detail-label{font-size:9px}.rule-preview-header strong{font-size:13px}.rule-preview p{font-size:11px}.rule-preview-meta{font-size:10px}.incident-detail-top strong,.detail-section h4{font-size:15px}.detail-section>p{font-size:12px}.detail-meta-grid span{font-size:9px}.detail-meta-grid strong{font-size:10.5px}.evidence-link{font-size:11px}.lifecycle-section small{font-size:9px}.action-context span{font-size:10px}.action-context strong{font-size:12px}.modal-header h3{font-size:17px}.modal-header p{font-size:11px}.modal-close{font-size:21px}.empty-state strong{font-size:13px}.empty-state span,.alert,.dependency-warning{font-size:11px}@media(min-width:1500px){.page{padding-top:46px}.page-header h2{font-size:34px}.page-description{font-size:14px}.nav-link{font-size:13.5px}.card-header h3{font-size:14.5px}.card-header p{font-size:12px}.data-table td{font-size:12.5px}.stat-label{font-size:12px}.stat-help{font-size:11px}}.configuration-card-header{align-items:center}.configuration-header-actions,.reorder-controls{display:flex;align-items:center;gap:9px;flex-shrink:0}.reorder-item{position:relative;display:flex;align-items:center;min-height:104px;cursor:grab;-webkit-user-select:none;user-select:none;transition:background .14s ease,border-color .14s ease,opacity .14s ease,transform .14s ease,box-shadow .14s ease}.reorder-item:active{cursor:grabbing}.drag-handle{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-width:58px;margin-right:14px;padding-right:14px;border-right:1px solid var(--border-soft);color:var(--text-muted)}.drag-grip{display:inline-flex;align-items:center;justify-content:center;width:25px;height:34px;border:1px solid var(--border-soft);border-radius:6px;background:var(--surface-deep);color:var(--text-secondary);font-size:18px;line-height:1;letter-spacing:-4px;transition:border-color .12s ease,background .12s ease,color .12s ease}.reorder-item:hover .drag-grip{border-color:#716957;background:var(--accent-soft);color:var(--accent)}.reorder-position{display:flex;align-items:center;justify-content:center;min-width:20px;color:var(--text-soft);font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}.reorder-item.dragging{z-index:2;opacity:.35;background:#e8d8b20b;border-color:#e8d8b22e}.reorder-item.drag-over{background:#e8d8b20e;box-shadow:inset 0 2px 0 var(--accent),0 -7px 18px #0000001f}.reorder-item.drag-over:before{content:"";position:absolute;z-index:3;top:-4px;left:16px;right:16px;height:2px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 1px #e8d8b214,0 0 10px #e8d8b233}.reorder-item.drag-over:after{content:"";position:absolute;z-index:4;top:-7px;left:12px;width:7px;height:7px;border-radius:50%;background:var(--accent)}.reorder-controls .primary-button,.reorder-controls .secondary-button{min-width:92px}.configuration-header-actions button:disabled{opacity:.35}.reorder-form-note{display:flex;flex-direction:column;gap:5px;padding:12px 13px;border:1px solid var(--border-soft);border-radius:8px;background:linear-gradient(135deg,rgba(232,216,178,.04),transparent 75%),var(--surface-deep)}.config-item{transition:background .12s ease,opacity .12s ease,box-shadow .12s ease}.config-item:not(.reorder-item):hover{background:#ffffff06}@media(max-width:720px){.configuration-card-header{align-items:stretch}.configuration-header-actions{width:100%}.configuration-header-actions>button,.reorder-controls{flex:1}.reorder-controls .primary-button,.reorder-controls .secondary-button{flex:1;min-width:0}.reorder-item{flex-direction:row;align-items:center}.drag-handle{min-width:48px;margin-right:10px;padding-right:10px}.drag-grip{width:23px}}.toast-region{position:fixed;z-index:500;top:22px;right:24px;display:flex;flex-direction:column;gap:10px;width:min(390px,calc(100vw - 32px));pointer-events:none}.toast{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr) 30px;align-items:flex-start;gap:11px;width:100%;padding:13px 13px 13px 14px;border:1px solid var(--border);border-radius:11px;background:linear-gradient(135deg,rgba(255,255,255,.025),transparent 60%),#202023;color:var(--text);box-shadow:0 18px 45px #0000006b,0 4px 14px #0000003d;pointer-events:auto;animation:toast-enter .22s cubic-bezier(.2,.8,.2,1) both}.toast:before{content:"";position:absolute;top:10px;bottom:10px;left:0;width:3px;border-radius:0 999px 999px 0}.toast-success:before{background:var(--success)}.toast-error:before{background:var(--danger)}.toast-warning:before{background:var(--warning)}.toast-info:before{background:var(--info)}.toast-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface-deep);font-size:13px;line-height:1;font-weight:800}.toast-success .toast-icon{border-color:#9dd5a838;background:var(--success-bg);color:var(--success)}.toast-error .toast-icon{border-color:#e58d8738;background:var(--danger-bg);color:var(--danger)}.toast-warning .toast-icon{border-color:#e1bd7738;background:var(--warning-bg);color:var(--warning)}.toast-info .toast-icon{border-color:#aebce033;background:var(--info-bg);color:var(--info)}.toast-content{min-width:0;padding-top:1px}.toast-title{display:block;margin:0;color:var(--text);font-size:12px;line-height:1.35;font-weight:700}.toast-message{margin:4px 0 0;color:var(--text-secondary);font-size:11px;line-height:1.5;overflow-wrap:anywhere}.toast-close{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--text-muted);font-size:18px;line-height:1;transition:color .12s ease,background .12s ease,border-color .12s ease}.toast-close:hover{border-color:var(--border-soft);background:var(--surface);color:var(--text)}@keyframes toast-enter{0%{opacity:0;transform:translate(18px) scale(.98)}to{opacity:1;transform:translate(0) scale(1)}}.confirmation-backdrop{z-index:270;background:#000000d1;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.confirmation-modal{max-width:470px;overflow:hidden}.confirmation-modal .modal-header{padding-bottom:18px}.confirmation-body{padding:21px 23px 4px}.confirmation-body>p{margin:0;color:var(--text-secondary);font-size:12px;line-height:1.65;overflow-wrap:anywhere}.confirmation-modal>.modal-actions{margin:18px 23px 23px;padding-top:18px}.confirmation-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}.confirmation-summary>div{display:flex;flex-direction:column;gap:5px;min-width:0;padding:11px 12px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface-deep)}.confirmation-summary span{color:var(--text-soft);font-size:9px;line-height:1.3;font-weight:650;text-transform:uppercase;letter-spacing:.06em}.confirmation-summary strong{color:var(--text-secondary);font-size:11px;line-height:1.4;font-weight:650;overflow-wrap:anywhere}.configuration-card-header{position:relative;align-items:center}.configuration-header-actions{position:relative;display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.configuration-add-button{min-width:110px}.configuration-settings-wrapper{position:relative;flex:0 0 auto}.configuration-gear-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text-secondary);transition:background .13s ease,border-color .13s ease,color .13s ease,transform .1s ease}.configuration-gear-button:hover:not(:disabled){border-color:#716957;background:var(--surface-hover);color:var(--accent)}.configuration-gear-button:active:not(:disabled){transform:translateY(1px)}.configuration-gear-button[aria-expanded=true]{border-color:#e8d8b280;background:var(--accent-soft);color:var(--accent)}.configuration-settings-menu{position:absolute;z-index:80;top:calc(100% + 8px);right:0;width:max-content;min-width:225px;padding:6px;border:1px solid var(--border-strong);border-radius:9px;background:#202023;box-shadow:0 18px 45px #0000007a,0 4px 14px #00000040;animation:settings-menu-enter .13s ease both}.configuration-settings-item{display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:0 11px;border:0;border-radius:6px;background:transparent;color:var(--text-secondary);font-size:11px;line-height:1.35;font-weight:600;text-align:left;transition:background .12s ease,color .12s ease}.configuration-settings-item:hover:not(:disabled){background:var(--surface-hover);color:var(--accent)}.settings-item-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid var(--border-soft);border-radius:6px;background:var(--surface-deep);color:var(--text-muted);font-size:14px;line-height:1;flex:0 0 auto}.configuration-settings-item:hover:not(:disabled) .settings-item-icon{border-color:#e8d8b240;color:var(--accent)}@keyframes settings-menu-enter{0%{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.config-actions{gap:18px;padding-left:14px}.config-actions .text-button{min-width:42px}.reorder-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:0 0 auto}.reorder-controls .primary-button,.reorder-controls .secondary-button{min-width:94px}.reorder-list.active{position:relative;background:linear-gradient(180deg,rgba(232,216,178,.025),transparent 35%)}.reorder-item{position:relative;display:flex;align-items:center;cursor:default;-webkit-user-select:none;user-select:none;transition:background .15s ease,border-color .15s ease,opacity .15s ease,transform .15s ease,box-shadow .15s ease}.reorder-item:hover{background:#e8d8b206}.drag-handle{order:99;display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-width:68px;margin-left:auto;margin-right:0;padding-left:15px;padding-right:0;border-left:1px solid var(--border-soft);border-right:0;color:var(--text-muted);cursor:grab;transition:color .12s ease,border-color .12s ease,transform .12s ease}.drag-handle:active{cursor:grabbing}.drag-handle:hover{border-left-color:#716957;color:var(--accent)}.drag-grip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:36px;border:1px solid var(--border-soft);border-radius:7px;background:var(--surface-deep);color:var(--text-secondary);font-size:18px;line-height:1;letter-spacing:-4px;transition:border-color .12s ease,background .12s ease,color .12s ease,transform .12s ease,box-shadow .12s ease}.drag-handle:hover .drag-grip{border-color:#e8d8b259;background:var(--accent-soft);color:var(--accent);box-shadow:0 0 0 3px #e8d8b209}.reorder-position{display:flex;align-items:center;justify-content:center;min-width:22px;color:var(--text-soft);font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}.reorder-item.dragging{z-index:3;opacity:.4;transform:scale(.992);background:#e8d8b20e;box-shadow:inset 0 0 0 1px #e8d8b229,0 10px 24px #0003}.reorder-item.dragging .drag-grip{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.reorder-item.drag-over{background:#e8d8b20f;box-shadow:inset 0 2px 0 var(--accent),0 -7px 18px #0000001f}.reorder-item.drag-over:before{content:"";position:absolute;z-index:4;top:-4px;left:16px;right:16px;height:2px;border-radius:999px;background:var(--accent);box-shadow:0 0 0 1px #e8d8b214,0 0 10px #e8d8b233}.reorder-item.drag-over:after{content:"";position:absolute;z-index:5;top:-7px;left:12px;width:7px;height:7px;border-radius:50%;background:var(--accent)}.reorder-item.just-dropped{animation:reorder-settle .65s cubic-bezier(.2,.8,.2,1) both}.reorder-item.just-dropped:after{content:"Placed";position:absolute;z-index:6;top:10px;right:14px;padding:4px 8px;border:1px solid rgba(157,213,168,.24);border-radius:999px;background:#5ba86b21;color:var(--success);font-size:8px;line-height:1;font-weight:750;letter-spacing:.04em;text-transform:uppercase;animation:placed-label .65s ease both}@keyframes reorder-settle{0%{background:#e8d8b221;box-shadow:inset 3px 0 0 var(--accent);transform:scale(1.008)}40%{transform:scale(1)}to{background:transparent;box-shadow:inset 3px 0 0 transparent;transform:scale(1)}}@keyframes placed-label{0%{opacity:0;transform:translateY(-3px)}20%{opacity:1;transform:translateY(0)}75%{opacity:1}to{opacity:0}}.reorder-form-note{display:flex;flex-direction:column;gap:6px;padding:12px 13px;border:1px solid var(--border-soft);border-radius:8px;background:linear-gradient(135deg,rgba(232,216,178,.04),transparent 75%),var(--surface-deep)}.reorder-form-note strong{color:var(--text-secondary);font-size:11px;font-weight:650}.reorder-form-note span{color:var(--text-muted);font-size:10px;line-height:1.55}.configuration-header-actions button:disabled{opacity:.38}.reorder-list.active .config-item-main{pointer-events:none}@media(max-width:820px){.configuration-card-header{align-items:flex-start}.configuration-header-actions{flex-shrink:0}.configuration-settings-menu{right:0}}@media(max-width:720px){.configuration-card-header{align-items:stretch}.configuration-header-actions{width:100%;justify-content:flex-start}.configuration-add-button{flex:1}.configuration-settings-wrapper{flex:0 0 auto}.configuration-settings-menu{right:0;left:auto;min-width:220px}.reorder-controls{width:100%}.reorder-controls .primary-button,.reorder-controls .secondary-button{flex:1;min-width:0}.reorder-item{flex-direction:row;align-items:center}.drag-handle{min-width:58px;padding-left:10px}.drag-grip{width:27px;height:34px}}@media(max-width:600px){.confirmation-summary{grid-template-columns:1fr}.confirmation-body{padding:18px 18px 3px}.confirmation-modal>.modal-actions{margin:16px 18px 18px}}@media(max-width:600px){.toast-region{top:12px;right:12px;left:12px;width:auto}.toast{grid-template-columns:32px minmax(0,1fr) 28px}}@media(prefers-reduced-motion:reduce){.toast,.configuration-settings-menu,.reorder-item,.reorder-item.just-dropped,.reorder-item.just-dropped:after,.drag-grip{animation:none!important;transition:none!important}}.incidents-table .weight-display{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;column-gap:12px;width:100%;min-width:0}.incidents-table .weight-display>span:first-child{min-width:0;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.incidents-table .weight-display .weight-value{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:30px;min-width:30px;height:27px;padding:0;border:1px solid rgba(232,216,178,.18);border-radius:6px;background:#e8d8b212;color:var(--accent);font-size:10px;font-weight:700;font-variant-numeric:tabular-nums}.incident-clickable-row{cursor:pointer;transition:background .15s ease,box-shadow .15s ease}.incident-clickable-row:hover{background:linear-gradient(90deg,#e8d8b20a,#e8d8b203)}.incident-clickable-row:hover td{border-bottom-color:#e8d8b21a}.incident-clickable-row:focus-visible{outline:1px solid rgba(232,216,178,.45);outline-offset:-2px;background:#e8d8b20a}.incident-clickable-row:hover .incident-rule-cell strong{color:var(--accent)}.incident-rule-cell strong{transition:color .15s ease}.incident-evidence-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;max-width:100%;margin-top:8px;padding:11px 12px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface-deep);color:var(--accent);text-decoration:none;transition:border-color .14s ease,background .14s ease,color .14s ease}.incident-evidence-link:hover{border-color:#e8d8b252;background:var(--accent-soft);color:var(--accent-strong)}.incident-evidence-url{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:inherit;font-size:10.5px;line-height:1.45}.incident-evidence-icon{flex:0 0 auto;width:16px;height:16px;color:var(--text-muted);transition:color .14s ease,transform .14s ease}.incident-evidence-link:hover .incident-evidence-icon{color:var(--accent);transform:translate(1px,-1px)}.incidents-table .weight-display,.dashboard-table .weight-display{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;column-gap:12px;width:100%;min-width:0}.incidents-table .weight-display>span:first-child,.dashboard-table .weight-display>span:first-child{min-width:0;color:var(--text-secondary);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.incidents-table .weight-display .weight-value,.dashboard-table .weight-display .weight-value{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:30px;min-width:30px;height:27px;padding:0;border:1px solid rgba(232,216,178,.18);border-radius:6px;background:#e8d8b212;color:var(--accent);font-size:10px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}.dashboard-stat-grid{position:relative}.dashboard-stat-grid .stat-card{position:relative;overflow:hidden;animation:dashboard-card-enter .42s cubic-bezier(.2,.8,.2,1) both;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}.dashboard-stat-grid .stat-card:nth-child(2){animation-delay:45ms}.dashboard-stat-grid .stat-card:nth-child(3){animation-delay:90ms}.dashboard-stat-grid .stat-card:nth-child(4){animation-delay:135ms}.dashboard-stat-grid .stat-card:hover{transform:translateY(-2px);border-color:#e8d8b23d;box-shadow:0 9px 25px #0000002e}.dashboard-stat-grid .stat-card:after{content:"";position:absolute;top:-45%;left:-45%;width:46%;height:190%;pointer-events:none;opacity:.09;background:linear-gradient(90deg,transparent,rgba(232,216,178,.3),transparent);transform:rotate(14deg) translate(-240%);animation:dashboard-ambient-drift 11s ease-in-out infinite}.dashboard-stat-grid .stat-card:nth-child(2):after{animation-delay:2.4s}.dashboard-stat-grid .stat-card:nth-child(3):after{animation-delay:4.8s}.dashboard-stat-grid .stat-card:nth-child(4):after{animation-delay:7.2s}.dashboard-secondary-grid .content-card,.dashboard-recent-card{animation:dashboard-section-enter .47s cubic-bezier(.2,.8,.2,1) both}.dashboard-secondary-grid .content-card{animation-delay:.1s}.dashboard-recent-card{animation-delay:165ms}@keyframes dashboard-card-enter{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes dashboard-section-enter{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes dashboard-ambient-drift{0%,58%{transform:rotate(14deg) translate(-260%)}78%{transform:rotate(14deg) translate(500%)}to{transform:rotate(14deg) translate(500%)}}.config-item-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;width:100%}.config-item-header>strong{min-width:0;margin:0}.config-item-header .config-title-row{display:flex;align-items:center;gap:8px;min-width:0}.config-item-header>.status-badge{justify-self:end;align-self:center;min-width:58px;margin:0;text-align:center}.config-item-header>.status-badge.active,.config-item-header>.status-badge.inactive{display:inline-flex;align-items:center;justify-content:center}@media(prefers-reduced-motion:reduce){.dashboard-stat-grid .stat-card,.dashboard-stat-grid .stat-card:after,.dashboard-secondary-grid .content-card,.dashboard-recent-card,.incident-evidence-icon{animation:none!important;transition:none!important}}.rules-table .weight-display{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;column-gap:12px;width:100%;min-width:0}.rules-table .weight-display>span:first-child{min-width:0;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rules-table .weight-display .weight-value{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:30px;min-width:30px;height:27px;padding:0;border:1px solid rgba(232,216,178,.18);border-radius:6px;background:#e8d8b212;color:var(--accent);font-size:10px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}.config-item:not(.reorder-item){display:grid;grid-template-columns:minmax(0,1fr) 74px 112px;align-items:center;column-gap:18px}.config-item:not(.reorder-item) .config-item-main{min-width:0}.config-item:not(.reorder-item) .config-item-header{display:block;width:auto}.config-row-status{display:flex;align-items:center;justify-content:center;min-width:0}.config-item:not(.reorder-item) .config-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;min-width:112px;padding-left:0}.config-title-row{display:flex;align-items:center;gap:9px}@media(max-width:720px){.config-item:not(.reorder-item){grid-template-columns:minmax(0,1fr) auto;row-gap:12px}.config-row-status{justify-content:flex-end}.config-item:not(.reorder-item) .config-actions{grid-column:1 / -1;justify-content:flex-end;min-width:0}}.config-item:not(.reorder-item){grid-template-columns:minmax(0,1fr) 100px 120px;column-gap:42px}.dashboard-secondary-grid-single{grid-template-columns:minmax(0,1fr)}.dashboard-stat-grid .stat-card,.dashboard-secondary-grid .content-card,.dashboard-recent-card{will-change:transform,opacity}.rules-table .weight-display,.incidents-table .weight-display,.dashboard-table .weight-display{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:center;column-gap:12px;width:100%;min-width:0}.rules-table .weight-display>span:first-child,.incidents-table .weight-display>span:first-child,.dashboard-table .weight-display>span:first-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--text-secondary)}.rules-table .weight-display .weight-value,.incidents-table .weight-display .weight-value,.dashboard-table .weight-display .weight-value{display:inline-flex;align-items:center;justify-content:center;justify-self:end;width:30px;min-width:30px;height:27px;padding:0;border:1px solid rgba(232,216,178,.18);border-radius:6px;background:#e8d8b212;color:var(--accent);font-size:10px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums}.rules-table th:nth-child(3),.rules-table td:nth-child(3){width:190px}.incidents-table th:nth-child(4),.incidents-table td:nth-child(4){width:200px}.dashboard-table th:nth-child(4),.dashboard-table td:nth-child(4){width:190px}.incident-evidence-link{min-width:0;overflow:hidden}.incident-evidence-url{display:block;min-width:0;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.config-item:not(.reorder-item){display:grid;grid-template-columns:minmax(0,1fr) 80px 118px;align-items:center;column-gap:20px;width:100%}.config-item:not(.reorder-item) .config-item-main{grid-column:1;width:100%;min-width:0}.config-item:not(.reorder-item) .config-item-header{display:block;width:100%;margin-bottom:7px}.config-item:not(.reorder-item) .config-item-header>strong,.config-item:not(.reorder-item) .config-title-row{min-width:0}.config-row-status{grid-column:2;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;justify-self:stretch;align-self:center}.config-row-status .status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:58px;margin:0}.config-item:not(.reorder-item) .config-actions{grid-column:3;display:flex;align-items:center;justify-content:flex-end;gap:18px;width:100%;min-width:0;padding-left:0;justify-self:stretch}.config-item:not(.reorder-item) .config-actions .text-button{flex:0 0 auto}.config-item:not(.reorder-item) .config-item-header>.status-badge{float:right;margin-left:20px}.config-title-row{display:flex;align-items:center;gap:9px;min-width:0}.config-title-row>strong{min-width:0}.config-item.reorder-item{display:flex;align-items:center}.config-item.reorder-item .config-item-main{flex:1;min-width:0}.config-item.reorder-item .drag-handle{margin-left:auto}.incident-clickable-row,.chatter-clickable-row{cursor:pointer}.incident-clickable-row:focus-visible,.chatter-clickable-row:focus-visible{position:relative;z-index:1}@media(max-width:720px){.config-item:not(.reorder-item){grid-template-columns:minmax(0,1fr) auto;column-gap:14px;row-gap:12px}.config-item:not(.reorder-item) .config-item-main{grid-column:1}.config-row-status{grid-column:2;justify-content:flex-end}.config-item:not(.reorder-item) .config-actions{grid-column:1 / -1;justify-content:flex-end;gap:18px}.rules-table th:nth-child(3),.rules-table td:nth-child(3),.incidents-table th:nth-child(4),.incidents-table td:nth-child(4),.dashboard-table th:nth-child(4),.dashboard-table td:nth-child(4){width:auto}}@media(prefers-reduced-motion:reduce){.dashboard-stat-grid .stat-card,.dashboard-stat-grid .stat-card:after,.dashboard-secondary-grid .content-card,.dashboard-recent-card,.incident-clickable-row,.chatter-clickable-row,.configuration-settings-menu,.reorder-item,.drag-grip,.toast{animation:none!important;transition:none!important}}@media(min-width:721px){.config-item:not(.reorder-item){display:grid;grid-template-columns:minmax(0,1fr) 92px 124px;grid-template-rows:auto auto auto;align-items:center;column-gap:28px;row-gap:0;width:100%}.config-item:not(.reorder-item) .config-item-main{display:contents}.config-item:not(.reorder-item) .config-item-header{grid-column:1;grid-row:1;width:100%;margin:0 0 7px}.config-item:not(.reorder-item) .config-description{grid-column:1;grid-row:2;min-width:0}.config-item:not(.reorder-item) .config-meta{grid-column:1;grid-row:3;min-width:0}.config-item:not(.reorder-item) .config-row-status{grid-column:2;grid-row:1 / 4;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;align-self:stretch;justify-self:stretch}.config-item:not(.reorder-item) .config-row-status .status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:58px;margin:0}.config-item:not(.reorder-item) .config-actions{grid-column:3;grid-row:1 / 4;display:flex;align-items:center;justify-content:flex-end;gap:20px;width:100%;min-width:0;padding:0;align-self:stretch;justify-self:stretch}.config-item:not(.reorder-item) .config-actions .text-button{flex:0 0 auto}.config-item:not(.reorder-item) .config-title-row{display:flex;align-items:center;gap:9px;min-width:0}}.configuration-settings-menu .configuration-settings-item:last-child{color:var(--warning);background:#cd9d430b}.configuration-settings-menu .configuration-settings-item:last-child .settings-item-icon{border-color:#e1bd7733;background:var(--warning-bg);color:var(--warning)}.configuration-settings-menu .configuration-settings-item:last-child:hover:not(:disabled){background:#cd9d431f;color:#edcb89}.configuration-settings-menu .configuration-settings-item:last-child:hover:not(:disabled) .settings-item-icon{border-color:#e1bd775c;background:#cd9d4329;color:#edcb89}.configuration-archive-modal{width:min(720px,100%);max-width:720px;overflow:hidden}.configuration-archive-modal .modal-header{background:#ffffff03}.configuration-archive-modal .empty-state{min-height:185px}.configuration-archive-list{max-height:min(58vh,520px);overflow-y:auto;padding:7px 0}.configuration-archive-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:24px!important;min-height:104px;padding:18px 22px;background:transparent}.configuration-archive-item:hover{background:#ffffff05}.configuration-archive-item .config-item-main{display:block!important;grid-column:auto!important;grid-row:auto!important;min-width:0}.configuration-archive-item .config-item-header{display:block!important;grid-column:auto!important;grid-row:auto!important;margin:0 0 7px!important}.configuration-archive-item .config-description{grid-column:auto!important;grid-row:auto!important}.configuration-archive-item .config-meta{grid-column:auto!important;grid-row:auto!important;margin-top:9px;color:var(--text-soft)}.configuration-archive-item .config-actions{grid-column:auto!important;grid-row:auto!important;align-self:center!important;justify-self:end!important;width:auto!important;padding:0!important}.configuration-archive-item .text-button.success{min-width:76px;padding:6px 8px;border-radius:6px;background:#5ba86b0e;transition:background .12s ease,color .12s ease}.configuration-archive-item .text-button.success:hover:not(:disabled){background:var(--success-bg);color:var(--success)}.incidents-table{min-width:1240px}.incidents-table th:nth-child(5),.incidents-table td:nth-child(5){width:170px}.incidents-table th:nth-child(6),.incidents-table td:nth-child(6){width:190px}.incidents-table th:nth-child(7),.incidents-table td:nth-child(7),.incidents-table th:nth-child(8),.incidents-table td:nth-child(8){width:120px;white-space:nowrap}.incidents-table td:nth-child(5){white-space:nowrap}.incidents-table td:nth-child(6) .incident-rule-cell{min-width:150px}.incidents-table td:nth-child(6) .incident-rule-cell strong{white-space:nowrap;color:var(--text-secondary)}.incidents-table td:nth-child(6) .incident-rule-cell span{color:var(--text-soft)}.incidents-table td:nth-child(8)>span:not([class]){color:var(--text-soft);font-weight:700}.dashboard-table{min-width:1200px}.dashboard-table th:nth-child(5),.dashboard-table td:nth-child(5),.dashboard-table th:nth-child(6),.dashboard-table td:nth-child(6){width:175px;white-space:nowrap}.dashboard-table th:nth-child(7),.dashboard-table td:nth-child(7),.dashboard-table th:nth-child(8),.dashboard-table td:nth-child(8){width:120px;white-space:nowrap}.dashboard-table td:nth-child(8) .status-badge.inactive{border-color:#e1bd772e;background:var(--warning-bg);color:var(--warning)}.dashboard-table td:nth-child(8)>span:not([class]){color:var(--text-soft);font-weight:700}.incidents-table td:nth-child(8) .incident-status.resolved,.dashboard-table td:nth-child(8) .status-badge.active{box-shadow:inset 0 0 0 1px #9dd5a806}.incidents-table td:nth-child(8) .incident-status.open,.dashboard-table td:nth-child(8) .status-badge.inactive{box-shadow:inset 0 0 0 1px #e1bd7706}@media(max-width:720px){.configuration-archive-modal{width:100%;max-width:none}.configuration-archive-list{max-height:55vh}.configuration-archive-item{grid-template-columns:minmax(0,1fr)!important;gap:14px!important;padding:17px 18px}.configuration-archive-item .config-actions{justify-self:stretch!important;width:100%!important}.configuration-archive-item .config-actions .text-button{width:100%}.incidents-table,.dashboard-table{min-width:1180px}}@media(prefers-reduced-motion:reduce){.configuration-settings-menu .configuration-settings-item:last-child,.configuration-settings-menu .configuration-settings-item:last-child .settings-item-icon,.configuration-archive-item,.configuration-archive-item .text-button.success{transition:none!important}}.incident-rule-inline{display:inline-flex;align-items:flex-start;line-height:1.25;white-space:nowrap}.incident-rule-version{position:relative;top:-.15em;margin-left:4px;font-size:.65em;font-weight:600;line-height:1;opacity:.62;white-space:nowrap}.incident-date-cell{vertical-align:middle;white-space:nowrap}.incident-expiry-date{position:relative;display:inline-block;line-height:1.25;white-space:nowrap}.incident-expiry-label{position:absolute;left:0;bottom:calc(100% + 2px);font-size:9px;font-weight:600;line-height:1;letter-spacing:.03em;opacity:.6;white-space:nowrap;pointer-events:none}.incident-row-expired{position:relative;opacity:.82}.incident-row-expired{opacity:.82}.incident-row-expired td:nth-child(-n+4){position:relative}.incident-row-expired td:nth-child(-n+4):after{content:"";position:absolute;top:50%;left:0;right:0;height:1.5px;background:#ebe8e07a;transform:translateY(-50%);pointer-events:none;z-index:4}.incident-row-expired td:first-child:after{left:12px}.incident-row-expired td:nth-child(4):after{right:12px}.incident-row-expired:hover{opacity:.92}.incident-row-expired:hover td:nth-child(-n+4):after{background:#ebe8e099}.incident-detail-modal-card{position:relative;overflow:hidden}.incident-detail-modal-content{position:relative;z-index:2}.incident-expired-watermark{position:absolute;top:50%;left:50%;z-index:1;transform:translate(-50%,-50%) rotate(-17deg);pointer-events:none;-webkit-user-select:none;user-select:none;font-size:clamp(72px,10vw,118px);font-weight:900;line-height:1;letter-spacing:.12em;color:#e1bd770e;-webkit-text-stroke:2px rgba(225,189,119,.14);text-transform:uppercase;white-space:nowrap}.incident-detail-modal-card--expired{border-color:#e1bd7747}.incident-expired-watermark:before,.incident-expired-watermark:after{content:"";position:absolute;left:-5%;right:-5%;height:3px;border-radius:999px;background:#e1bd771c}.incident-expired-watermark:before{top:-12px}.incident-expired-watermark:after{bottom:-12px}@media(max-width:720px){.incident-expired-watermark{font-size:clamp(48px,15vw,76px);letter-spacing:.08em}}@media(prefers-reduced-motion:reduce){.incident-row-expired{transition:none}}.strike-ladder-card{margin-top:24px}.strike-ladder-card-header{align-items:center}.strike-ladder-title-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.strike-ladder-title-line h3{margin:0}.strike-ladder-version-badge{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 9px;border:1px solid rgba(157,213,168,.18);border-radius:999px;background:var(--success-bg);color:var(--success);font-size:8.5px;line-height:1;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.strike-ladder-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px}.strike-ladder-content{padding:22px 24px 24px}.strike-ladder-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.strike-ladder-meta-card{display:flex;flex-direction:column;gap:8px;min-height:72px;padding:13px 14px;border:1px solid var(--border-soft);border-radius:9px;background:var(--surface-deep)}.strike-ladder-meta-card span{color:var(--text-muted);font-size:8.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.strike-ladder-meta-card strong{margin-top:auto;color:var(--text);font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}.strike-ladder-table{overflow:hidden;border:1px solid var(--border-soft);border-radius:10px;background:var(--surface-deep)}.strike-ladder-table-header,.strike-ladder-table-row{display:grid;grid-template-columns:150px minmax(0,1fr) 120px;align-items:center;gap:20px;padding:12px 16px}.strike-ladder-table-header{border-bottom:1px solid var(--border-soft);background:#ffffff05;color:var(--text-soft);font-size:8.5px;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.strike-ladder-table-row{min-height:52px;border-bottom:1px solid var(--border-soft)}.strike-ladder-table-row:last-child{border-bottom:0}.strike-ladder-table-row:hover{background:#ffffff03}.strike-ladder-threshold{color:var(--accent);font-size:11px;font-weight:750;font-variant-numeric:tabular-nums}.strike-ladder-standing{min-width:0;color:var(--text-secondary);font-size:11.5px;line-height:1.45;overflow-wrap:anywhere}.strike-ladder-deduction{justify-self:end;color:var(--text);font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}.strike-ladder-footnote{margin:12px 0 0;color:var(--text-soft);font-size:9px;line-height:1.55}.strike-ladder-editor-modal{width:min(920px,100%);max-width:920px}.strike-ladder-editor-form{max-height:min(72vh,720px);overflow-y:auto}.strike-ladder-duration-row{display:grid;grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr);align-items:end;gap:20px}.strike-ladder-duration-input{display:flex;align-items:center;gap:10px}.strike-ladder-duration-input input{width:120px}.strike-ladder-duration-input>span{color:var(--text-muted);font-size:10px}.strike-ladder-duration-row>p{margin:0 0 4px;color:var(--text-soft);font-size:9.5px;line-height:1.55}.strike-ladder-editor-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:24px;margin-bottom:10px}.strike-ladder-editor-heading>div>span{display:block;color:var(--text);font-size:12px;font-weight:700}.strike-ladder-editor-heading p{margin:4px 0 0;color:var(--text-soft);font-size:9.5px;line-height:1.45}.strike-ladder-editor-list{display:flex;flex-direction:column;gap:8px}.strike-ladder-editor-row{display:grid;grid-template-columns:120px minmax(0,1fr) 130px 68px;align-items:start;gap:10px;padding:12px;border:1px solid var(--border-soft);border-radius:9px;background:var(--surface-deep)}.strike-ladder-editor-row .form-field{display:grid;grid-template-rows:15px 40px 12px;gap:6px;align-content:start;margin:0}.strike-ladder-editor-row .form-field>span{align-self:end}.strike-ladder-editor-row .form-field>input{grid-row:2;min-height:40px}.strike-ladder-system-threshold{display:grid;grid-template-rows:15px 40px 12px;gap:6px;align-content:start;min-width:0}.strike-ladder-system-threshold>span{color:var(--text-secondary);font-size:10px;font-weight:650}.strike-ladder-system-threshold>strong{display:flex;align-items:center;min-height:40px;height:40px;padding:10px 12px;border:1px solid rgba(232,216,178,.16);border-radius:var(--radius-sm);background:var(--accent-soft);color:var(--accent);font-size:12px;font-weight:750;font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none}.strike-ladder-system-threshold>small{align-self:start;color:var(--text-soft);font-size:8px;line-height:1.2}.strike-ladder-fixed-deduction{display:grid;grid-template-rows:15px 40px 12px;gap:6px;align-content:start;min-width:0}.strike-ladder-fixed-deduction>span{color:var(--text-secondary);font-size:10px;font-weight:650}.strike-ladder-fixed-deduction>strong{display:flex;align-items:center;min-height:40px;height:40px;padding:10px 12px;border:1px solid rgba(157,213,168,.18);border-radius:var(--radius-sm);background:var(--success-bg);color:var(--success);font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none}.strike-ladder-fixed-deduction>small{align-self:start;color:var(--text-soft);font-size:8px;line-height:1.2}.strike-ladder-editor-row.newly-added{border-color:#e8d8b294;background:linear-gradient(90deg,#e8d8b21a,#e8d8b206),var(--surface-deep);box-shadow:0 0 0 1px #e8d8b214,0 0 22px #e8d8b214;animation:strike-ladder-step-added 1.05s ease-out 2}@keyframes strike-ladder-step-added{0%{transform:translateY(4px);border-color:#e8d8b2b8}45%{transform:translateY(0);border-color:#e8d8b257}to{transform:translateY(0);border-color:var(--border-soft)}}.strike-ladder-remove-step,.strike-ladder-base-step{align-self:start;margin-top:21px}.strike-ladder-base-step{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 8px;border:1px solid rgba(232,216,178,.14);border-radius:999px;background:#e8d8b20b;color:var(--text-soft);font-size:8px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.strike-ladder-editor-note{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:12px 13px;border:1px solid rgba(232,216,178,.14);border-radius:8px;background:#e8d8b209}.strike-ladder-editor-note strong{color:var(--accent);font-size:9px;font-weight:750}.strike-ladder-editor-note span{color:var(--text-muted);font-size:9px;line-height:1.5}.strike-ladder-history-modal{width:min(820px,100%);max-width:820px}.strike-ladder-history-list{display:flex;flex-direction:column;gap:12px;max-height:min(68vh,680px);overflow-y:auto;padding:16px}.strike-ladder-history-item{overflow:hidden;border:1px solid var(--border-soft);border-radius:10px;background:var(--surface-deep)}.strike-ladder-history-item.current{border-color:#9dd5a83b}.strike-ladder-history-item-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:14px 15px;border-bottom:1px solid var(--border-soft);background:#ffffff03}.strike-ladder-history-item-header>div>span{display:block;margin-top:5px;color:var(--text-soft);font-size:9px}.strike-ladder-history-item-header time{flex:0 0 auto;color:var(--text-soft);font-size:8.5px;line-height:1.4;text-align:right}.strike-ladder-history-version-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.strike-ladder-history-version-line>strong{color:var(--text);font-size:12px}.strike-ladder-history-steps{display:flex;flex-direction:column}.strike-ladder-history-step{display:grid;grid-template-columns:90px minmax(0,1fr) 90px;align-items:center;gap:14px;min-height:42px;padding:9px 15px;border-bottom:1px solid var(--border-soft);color:var(--text-secondary);font-size:10px}.strike-ladder-history-step:last-child{border-bottom:0}.strike-ladder-history-step>strong:first-child{color:var(--accent);font-variant-numeric:tabular-nums}.strike-ladder-history-step>strong:last-child{justify-self:end;color:var(--text);font-variant-numeric:tabular-nums}@media(max-width:760px){.strike-ladder-card-header{align-items:flex-start;flex-direction:column}.strike-ladder-header-actions{width:100%;justify-content:flex-start}.strike-ladder-meta-grid{grid-template-columns:1fr}.strike-ladder-table{overflow-x:auto}.strike-ladder-table-header,.strike-ladder-table-row{grid-template-columns:120px minmax(220px,1fr) 100px;min-width:520px}.strike-ladder-duration-row{grid-template-columns:1fr}.strike-ladder-editor-row{grid-template-columns:1fr 1fr}.strike-ladder-system-threshold{align-self:stretch}.strike-ladder-label-field{grid-column:1 / -1;grid-row:2}.strike-ladder-remove-step{align-self:end;justify-self:end;margin-top:0}.strike-ladder-history-item-header{flex-direction:column}.strike-ladder-history-item-header time{text-align:left}}@media(max-width:520px){.strike-ladder-content{padding:18px}.strike-ladder-header-actions{display:grid;grid-template-columns:1fr 1fr}.strike-ladder-header-actions button{width:100%}.strike-ladder-editor-row{grid-template-columns:1fr}.strike-ladder-label-field{grid-column:auto;grid-row:auto}.strike-ladder-remove-step{justify-self:stretch;width:100%}.strike-ladder-history-step{grid-template-columns:64px minmax(0,1fr) 60px;gap:8px}}@media(prefers-reduced-motion:reduce){.strike-ladder-table-row,.strike-ladder-history-item,.strike-ladder-editor-row{animation:none!important;transition:none!important}}.sidebar-account{margin-top:auto;padding:14px 10px;border-top:1px solid #252529}.sidebar-account-name{overflow:hidden;color:var(--text);font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.sidebar-account-email{overflow:hidden;margin-top:3px;color:var(--text-muted);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.sidebar-account-role{overflow:hidden;margin-top:6px;color:var(--accent);font-size:9px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.sidebar-signout-button{width:100%;min-height:34px;margin-top:12px;border:1px solid var(--border-soft);border-radius:7px;background:var(--surface-deep);color:var(--text-secondary);font-size:10px;font-weight:650;transition:background .13s ease,border-color .13s ease,color .13s ease}.sidebar-signout-button:hover:not(:disabled){border-color:var(--border-strong);background:var(--surface);color:var(--text)}.sidebar-account+.sidebar-footer{margin-top:0;padding-top:10px}.auth-page{position:relative;display:flex;align-items:center;justify-content:center;min-height:100vh;padding:40px 20px 70px;overflow:hidden;background:radial-gradient(circle at 18% 12%,rgba(232,216,178,.055),transparent 29%),radial-gradient(circle at 83% 82%,rgba(174,188,224,.035),transparent 30%),var(--bg)}.auth-background-glow{position:absolute;pointer-events:none;border-radius:999px;filter:blur(100px);opacity:.23}.auth-background-glow-one{top:-180px;right:-100px;width:440px;height:440px;background:#e8d8b221}.auth-background-glow-two{bottom:-230px;left:-130px;width:480px;height:480px;background:#7684ae14}.auth-card{position:relative;z-index:2;width:100%;max-width:430px;padding:34px;border:1px solid var(--border-soft);border-radius:18px;background:linear-gradient(145deg,#2a2a2ef7,#1b1b1efa);box-shadow:0 30px 90px #0000007a,inset 0 1px #ffffff06}.auth-brand{display:flex;align-items:center;gap:12px;padding-bottom:25px;border-bottom:1px solid var(--border-soft)}.auth-brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:0 0 42px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:16px;font-weight:800}.auth-brand-name{color:var(--text);font-size:14px;font-weight:750}.auth-brand-subtitle{margin-top:3px;color:var(--text-muted);font-size:10px}.auth-heading{padding:29px 0 25px}.auth-eyebrow{margin:0 0 9px;color:var(--accent);font-size:9px;font-weight:750;letter-spacing:.18em;text-transform:uppercase}.auth-heading h1{margin:0;color:#fff;font-size:27px;line-height:1.18;font-weight:700;letter-spacing:-.035em}.auth-description{margin:10px 0 0;color:var(--text-muted);font-size:12px;line-height:1.65}.auth-form{display:flex;flex-direction:column;gap:17px}.auth-field{display:flex;flex-direction:column;gap:7px}.auth-field-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.auth-label{color:var(--text-secondary);font-size:10px;font-weight:700;letter-spacing:.03em}.auth-input{width:100%;min-height:45px;padding:0 13px;border:1px solid var(--border);border-radius:8px;background:var(--surface-deep);color:var(--text);font-size:12px;transition:border-color .13s ease,background .13s ease}.auth-input::placeholder{color:var(--text-soft)}.auth-input:hover{border-color:var(--border-strong)}.auth-input:focus{border-color:var(--accent);background:#1f1f22}.auth-code-input{text-align:center;font-size:24px;font-weight:700;letter-spacing:.28em}.auth-link{padding:0;border:0;background:transparent;color:var(--accent);font-size:10px;font-weight:650;cursor:pointer}.auth-link:hover{color:var(--accent-strong)}.auth-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:45px;margin-top:5px;border:1px solid var(--accent);border-radius:8px;background:var(--accent);color:var(--accent-text);font-size:11px;font-weight:750;transition:background .13s ease,border-color .13s ease,transform .1s ease}.auth-submit:hover:not(:disabled){background:var(--accent-strong);border-color:var(--accent-strong)}.auth-submit:active:not(:disabled){transform:translateY(1px)}.auth-message{padding:11px 12px;border:1px solid var(--border-soft);border-radius:8px;font-size:11px;line-height:1.55}.auth-message-error{border-color:#e58d8766;background:var(--danger-bg);color:var(--danger-strong)}.auth-message-success{border-color:#9dd5a859;background:var(--success-bg);color:var(--success)}.auth-message-info{border-color:#aebce04d;background:var(--info-bg);color:var(--info)}.auth-footer{margin-top:25px;padding-top:20px;border-top:1px solid var(--border-soft);color:var(--text-muted);font-size:10px;line-height:1.6;text-align:center}.auth-footer a{color:var(--accent);font-weight:650}.auth-account-preview{margin-bottom:20px;padding:13px;border:1px solid var(--border-soft);border-radius:9px;background:#00000021}.auth-account-name{color:var(--text);font-size:12px;font-weight:700}.auth-account-email{margin-top:4px;color:var(--text-muted);font-size:10px}.auth-loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;background:var(--bg);color:var(--text-muted);font-size:11px}.auth-loading-mark{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:13px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);font-size:17px;font-weight:800}.auth-environment{position:fixed;bottom:22px;left:50%;z-index:3;display:flex;align-items:center;gap:7px;transform:translate(-50%);color:var(--text-soft);font-size:9px;text-transform:uppercase;letter-spacing:.12em}@media(max-width:560px){.auth-page{align-items:flex-start;padding:20px 14px 70px}.auth-card{margin-top:15px;padding:25px 21px}.auth-heading h1{font-size:24px}}.sidebar-model-context{display:flex;flex-direction:column;gap:6px;margin:12px 14px 6px;padding:10px;border:1px solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-deep)}.sidebar-model-context label{color:var(--text-soft);font-size:8px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.sidebar-model-context select{width:100%;min-height:34px;border:1px solid var(--border-soft);border-radius:7px;background-color:var(--surface);color:var(--text-secondary);font-size:9px;padding:0 32px 0 9px}.sidebar-model-context small{color:var(--text-muted);font-size:8px;line-height:1.4}.portal-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.portal-home-card{display:flex;min-height:130px;flex-direction:column;gap:8px;padding:18px}.portal-home-card strong{color:var(--text);font-size:12px}.portal-home-card span{color:var(--text-muted);font-size:9px;line-height:1.55}@media(max-width:820px){.portal-home-grid{grid-template-columns:1fr}}.chatter-table-header{align-items:center}.chatter-table{min-width:720px}.chatter-clickable-row{cursor:pointer;transition:background .16s ease,box-shadow .16s ease}.chatter-clickable-row:hover{background:linear-gradient(90deg,#e8d8b20a,#e8d8b203)}.chatter-clickable-row:focus-visible{outline:1px solid rgba(232,216,178,.45);outline-offset:-1px;background:#e8d8b20a}.chatter-name-cell{min-width:260px}.chatter-name-content{display:flex;flex-direction:column;gap:3px}.chatter-name-content strong{color:var(--text);font-size:12.5px;line-height:1.35;font-weight:700;transition:color .15s ease}.chatter-name-content span{color:var(--text-soft);font-size:9.5px;line-height:1.4}.chatter-clickable-row:hover .chatter-name-content strong{color:var(--accent)}.chatter-profile-backdrop{z-index:230!important;align-items:center!important;padding:28px!important;background:#000000d1!important;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.chatter-edit-backdrop{z-index:250!important;background:#000000a8!important;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chatter-profile-modal{width:min(980px,100%)!important;max-width:980px!important;max-height:calc(100vh - 56px)!important;overflow-y:auto!important;overflow-x:hidden;border:1px solid #49494f!important;border-radius:16px!important;background:linear-gradient(155deg,rgba(255,255,255,.018),transparent 35%),#202023!important;box-shadow:0 35px 90px #00000094,0 8px 25px #00000057;animation:chatter-profile-open .22s cubic-bezier(.2,.8,.2,1) both}@keyframes chatter-profile-open{0%{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.chatter-profile-header{position:sticky;z-index:15;top:0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 25px;border-bottom:1px solid var(--border-soft);background:#202023f7;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.chatter-profile-identity{min-width:0}.chatter-profile-identity>div{min-width:0}.chatter-profile-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.chatter-profile-title-row h3{margin:0;color:var(--text);font-size:19px;line-height:1.25;font-weight:720;letter-spacing:-.02em}.chatter-profile-identity p{margin:5px 0 0;color:var(--text-muted);font-size:11px;line-height:1.45}.chatter-profile-member-since{display:block;margin-top:5px;color:var(--text-soft);font-size:9px}.chatter-profile-content{padding:24px 25px 28px}.chatter-profile-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:25px}.chatter-reactivate-button{border-color:#9dd5a852;color:var(--success)}.chatter-reactivate-button:hover:not(:disabled){border-color:#9dd5a880;background:var(--success-bg);color:var(--success)}.chatter-profile-section{width:100%;margin-top:24px}.chatter-profile-section:first-of-type{margin-top:0}.chatter-profile-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:13px}.chatter-profile-section-heading>div:first-child>span{display:block;margin-bottom:4px;color:var(--accent);font-size:8.5px;font-weight:750;letter-spacing:.11em;text-transform:uppercase}.chatter-profile-section-heading h4{margin:0;color:var(--text);font-size:14px;line-height:1.3;font-weight:680}.chatter-ladder-version-badge{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:0 9px;border:1px solid rgba(232,216,178,.2);border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:8.5px;line-height:1;font-weight:750;letter-spacing:.04em}.chatter-standing-panel{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(0,1.55fr);gap:11px}.chatter-standing-primary,.chatter-standing-metrics{border:1px solid var(--border-soft);border-radius:10px;background:linear-gradient(145deg,rgba(232,216,178,.035),transparent 62%),var(--surface-deep)}.chatter-standing-primary{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:154px;padding:19px;overflow:hidden}.chatter-standing-primary:before{content:"";position:absolute;top:0;right:0;bottom:0;width:3px;background:var(--accent)}.chatter-standing-primary>span,.chatter-standing-metric>span{color:var(--text-muted);font-size:8.5px;line-height:1.35;font-weight:750;letter-spacing:.08em;text-transform:uppercase}.chatter-standing-primary>strong{margin-top:11px;color:var(--accent);font-size:21px;line-height:1.18;font-weight:720;letter-spacing:-.02em}.chatter-standing-primary p{margin:9px 0 0;color:var(--text-soft);font-size:9.5px;line-height:1.5}.chatter-standing-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden}.chatter-standing-metric{display:flex;flex-direction:column;min-width:0;min-height:76px;padding:15px;border-right:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}.chatter-standing-metric:nth-child(2n){border-right:0}.chatter-standing-metric:nth-last-child(-n+2){border-bottom:0}.chatter-standing-metric strong{margin-top:auto;padding-top:10px;color:var(--text);font-size:18px;line-height:1.15;font-weight:700;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.chatter-standing-next-expiry strong{font-size:11px;line-height:1.35}.chatter-standing-metric small{display:block;margin-top:4px;color:var(--text-soft);font-size:8px;line-height:1.35}.chatter-standing-empty{min-height:112px}.chatter-stat-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.chatter-stat-card{position:relative;display:flex;flex-direction:column;min-height:104px;padding:16px;overflow:hidden;border:1px solid var(--border-soft);border-radius:10px;background:linear-gradient(145deg,rgba(255,255,255,.018),transparent 65%),var(--surface-deep);transition:transform .15s ease,border-color .15s ease;animation:chatter-stat-show .26s ease both}.chatter-stat-card:nth-child(2){animation-delay:35ms}.chatter-stat-card:nth-child(3){animation-delay:70ms}.chatter-stat-card:nth-child(4){animation-delay:105ms}.chatter-stat-card:nth-child(5){animation-delay:.14s}.chatter-stat-card:nth-child(6){animation-delay:175ms}@keyframes chatter-stat-show{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}.chatter-stat-card:hover{transform:translateY(-2px);border-color:var(--border-strong)}.chatter-stat-card:before{content:"";position:absolute;top:0;right:0;left:0;height:2px;background:var(--border-strong)}.chatter-stat-card.open:before{background:var(--warning)}.chatter-stat-card.resolved:before{background:var(--success)}.chatter-stat-card.voided:before{background:var(--danger)}.chatter-stat-card.active-strikes:before{background:var(--success)}.chatter-stat-card.expired-strikes:before{background:var(--info)}.chatter-stat-card span{color:var(--text-muted);font-size:9.5px;font-weight:650}.chatter-stat-card strong{margin-top:auto;padding-top:17px;color:var(--text);font-size:28px;line-height:1;font-weight:680;font-variant-numeric:tabular-nums}.chatter-stat-card.open strong{color:var(--warning)}.chatter-stat-card.resolved strong{color:var(--success)}.chatter-stat-card.voided strong{color:var(--danger)}.chatter-stat-card.active-strikes strong{color:var(--success)}.chatter-stat-card.expired-strikes strong{color:var(--info)}.chatter-incidents-section{margin-top:28px;padding-top:23px;border-top:1px solid var(--border-soft)}.incident-history-heading{align-items:center}.chatter-history-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}.chatter-strike-filter{min-width:160px}.chatter-incident-filters{flex:0 0 auto}.chatter-incident-list{display:flex;flex-direction:column;gap:9px}.chatter-incident-item{overflow:hidden;border:1px solid var(--border-soft);border-radius:9px;background:var(--surface-deep);transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.chatter-incident-item:hover{border-color:#505057}.chatter-incident-item.expanded{border-color:#e8d8b240;background:#1d1d20;box-shadow:0 9px 24px #0000002e}.chatter-incident-summary{display:flex!important;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:15px 16px;border:0!important;border-radius:0;background:transparent!important;color:var(--text);text-align:left;appearance:none;-webkit-appearance:none;transition:background .13s ease}.chatter-incident-summary:hover{background:#ffffff05!important}.chatter-incident-main{flex:1;min-width:0}.chatter-incident-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.chatter-incident-title-row strong{color:var(--text);font-size:12px;line-height:1.4;font-weight:680}.chatter-strike-status{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:0 9px;border:1px solid transparent;border-radius:999px;font-size:9px;line-height:1;font-weight:700}.chatter-strike-status.active{border-color:#9dd5a824;background:var(--success-bg);color:var(--success)}.chatter-strike-status.expired{border-color:#aebce029;background:var(--info-bg);color:var(--info)}.chatter-incident-meta{display:flex!important;align-items:center;flex-wrap:wrap;gap:6px 15px;margin-top:7px;color:var(--text-soft);font-size:9.5px;line-height:1.45}.chatter-incident-meta span,.chatter-incident-meta time{position:relative}.chatter-incident-meta span:not(:first-child):before,.chatter-incident-meta time:before,.chatter-incident-meta .chatter-strike-expiry:before{content:"•";position:absolute;left:-10px;color:#59595f}.chatter-strike-expiry{color:var(--text-muted)}.chatter-incident-chevron{display:flex!important;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;border:1px solid var(--border-soft);border-radius:7px;background:transparent;color:var(--text-muted);transition:transform .18s ease,border-color .15s ease,background .15s ease,color .15s ease}.chatter-incident-chevron svg{display:block;width:16px;height:16px;transition:transform .18s ease}.chatter-incident-summary:hover .chatter-incident-chevron{border-color:#e8d8b240;background:var(--accent-soft);color:var(--accent)}.chatter-incident-chevron.expanded{border-color:#e8d8b252;color:var(--accent)}.chatter-incident-chevron.expanded svg{transform:rotate(180deg)}.chatter-incident-details{padding:2px 16px 17px;border-top:1px solid var(--border-soft);animation:chatter-incident-open .18s ease both}@keyframes chatter-incident-open{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.chatter-incident-detail-block{padding-top:15px}.chatter-incident-detail-block>span,.chatter-incident-lifecycle>span{display:block;margin-bottom:6px;color:var(--accent);font-size:8px;line-height:1;font-weight:750;letter-spacing:.09em;text-transform:uppercase}.chatter-incident-detail-block p{margin:0;color:var(--text-secondary);font-size:10.5px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.chatter-incident-strike{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:15px;padding:13px;border:1px solid transparent;border-radius:8px}.chatter-incident-strike.active{border-color:#9dd5a830;background:var(--success-bg)}.chatter-incident-strike.expired{border-color:#aebce030;background:var(--info-bg)}.chatter-incident-strike>div{display:flex;align-items:center;gap:8px}.chatter-incident-strike span{color:var(--text-muted);font-size:8px;font-weight:750;letter-spacing:.09em;text-transform:uppercase}.chatter-incident-strike strong{color:var(--text);font-size:10px}.chatter-incident-strike.active strong{color:var(--success)}.chatter-incident-strike.expired strong{color:var(--info)}.chatter-incident-strike small{color:var(--text-muted);font-size:8.5px;line-height:1.45;text-align:right}.chatter-incident-lifecycle{margin-top:15px;padding:13px;border:1px solid transparent;border-radius:8px}.chatter-incident-lifecycle.resolved{border-color:#9dd5a830;background:var(--success-bg)}.chatter-incident-lifecycle.voided{border-color:#e58d8730;background:var(--danger-bg)}.chatter-incident-lifecycle p{margin:0;color:var(--text-secondary);font-size:10.5px;line-height:1.6;white-space:pre-wrap}.chatter-incident-lifecycle small{display:block;margin-top:8px;color:var(--text-muted);font-size:8.5px}.chatter-profile-loading{display:flex;align-items:center;justify-content:center;min-height:104px;border:1px solid var(--border-soft);border-radius:10px;background:var(--surface-deep);color:var(--text-muted);font-size:10px}.chatter-history-loading{min-height:170px}.chatter-profile-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:165px;padding:28px;border:1px dashed var(--border);border-radius:10px;background:#0000001a;text-align:center}.chatter-profile-empty strong{color:var(--text-secondary);font-size:12px}.chatter-profile-empty span{max-width:420px;margin-top:6px;color:var(--text-soft);font-size:10px;line-height:1.55}@media(max-width:900px){.chatter-standing-panel{grid-template-columns:1fr}.chatter-standing-primary{min-height:132px}.chatter-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.incident-history-heading{align-items:flex-start;flex-direction:column}.chatter-history-controls{width:100%;justify-content:flex-start}.chatter-strike-filter{flex:1 1 190px}.chatter-incident-filters{flex:1 1 100%;width:100%}.chatter-incident-filters .filter-button{flex:1}}@media(max-width:720px){.chatter-profile-backdrop{padding:10px!important}.chatter-profile-modal{max-height:calc(100vh - 20px)!important}.chatter-profile-header,.chatter-profile-content{padding:18px}.chatter-profile-actions{flex-direction:column;align-items:stretch}.chatter-profile-actions button{width:100%}}@media(max-width:520px){.chatter-standing-metrics{grid-template-columns:1fr}.chatter-standing-metric,.chatter-standing-metric:nth-child(2n),.chatter-standing-metric:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--border-soft)}.chatter-standing-metric:last-child{border-bottom:0}.chatter-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chatter-profile-title-row h3{font-size:17px}.chatter-history-controls{align-items:stretch}.chatter-strike-filter{width:100%}.chatter-incident-filters{display:grid;grid-template-columns:repeat(2,1fr)}.chatter-incident-strike{align-items:flex-start;flex-direction:column}.chatter-incident-strike small{text-align:left}}@media(prefers-reduced-motion:reduce){.chatter-clickable-row,.chatter-profile-modal,.chatter-stat-card,.chatter-incident-item,.chatter-incident-chevron,.chatter-incident-chevron svg,.chatter-incident-details{animation:none!important;transition:none!important}}.people-page{position:relative}.people-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.people-email-notice{display:flex;flex-direction:column;gap:5px;margin:-8px 0 18px;padding:13px 15px;border:1px solid rgba(225,189,119,.24);border-radius:var(--radius-sm);background:var(--warning-bg)}.people-email-notice strong{color:var(--warning);font-size:10px}.people-email-notice span{color:var(--text-secondary);font-size:10px;line-height:1.5}.people-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--border-soft)}.people-toolbar .search-input{width:min(420px,100%)}.people-inline-error{padding:12px 18px;border-bottom:1px solid rgba(229,141,135,.18);background:var(--danger-bg);color:var(--danger);font-size:10px}.people-table-wrap{overflow-x:auto}.people-table{display:grid;grid-template-columns:minmax(220px,1.35fr) 130px minmax(180px,1fr) minmax(180px,1fr) 140px;align-items:center;gap:14px;min-width:930px;padding:12px 18px}.people-table-head{border-bottom:1px solid var(--border-soft);color:var(--text-soft);font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.people-table-row{width:100%;border:0;border-bottom:1px solid var(--border-soft);background:transparent;color:inherit;text-align:left;transition:background .12s ease}.people-table-row:hover{background:#ffffff06}.people-table-row:last-child{border-bottom:0}.people-person-cell{display:flex;flex-direction:column;gap:4px;min-width:0}.people-person-cell strong{overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.people-person-cell small,.people-muted-cell{overflow:hidden;color:var(--text-muted);font-size:9px;line-height:1.45;text-overflow:ellipsis}.people-chip-list{display:flex;flex-wrap:wrap;gap:5px}.people-chip{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border:1px solid var(--border-soft);border-radius:999px;background:var(--surface-deep);color:var(--text-secondary);font-size:9px;font-weight:650}.people-status-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:9px;font-weight:700}.people-status-badge.active{background:var(--success-bg);color:var(--success)}.people-status-badge.pending_setup{background:var(--warning-bg);color:var(--warning)}.people-status-badge.deactivated{background:var(--danger-bg);color:var(--danger)}.people-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:24px;background:#000000b3;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.people-detail-panel,.people-form-modal,.people-confirm-modal{width:min(760px,100%);max-height:min(86vh,900px);overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-modal)}.people-detail-panel{width:min(880px,100%)}.people-detail-header,.people-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid var(--border-soft)}.people-detail-header h3,.people-modal-header h3{margin:0;color:var(--text);font-size:20px}.people-detail-header p{margin:6px 0 0;color:var(--text-muted);font-size:10px}.people-close{width:34px;height:34px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface-deep);color:var(--text-secondary);font-size:19px;line-height:1}.people-detail-body,.people-form-body,.people-confirm-body{overflow-y:auto;max-height:calc(86vh - 150px);padding:22px 24px}.people-detail-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.people-detail-meta>div{min-height:78px;padding:12px;border:1px solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-deep)}.people-detail-meta span{display:block;color:var(--text-soft);font-size:8px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}.people-detail-meta strong{display:block;margin-top:8px;color:var(--text-secondary);font-size:10px;line-height:1.5}.people-detail-section{margin-top:18px;padding-top:18px;border-top:1px solid var(--border-soft)}.people-detail-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.people-detail-section-heading h4{margin:0;color:var(--text);font-size:12px}.people-detail-section-heading p{margin:5px 0 0;color:var(--text-muted);font-size:9px;line-height:1.5}.people-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.people-access-grid>div{padding:14px;border:1px solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-deep)}.people-section-label{display:block;margin-bottom:9px;color:var(--text-soft);font-size:8px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}.people-empty-inline,.people-scope-note{color:var(--text-muted);font-size:9px;line-height:1.5}.people-scope-note{margin:12px 0 0}.people-action-grid{display:flex;flex-wrap:wrap;gap:8px}.people-form-body{display:flex;flex-direction:column;gap:18px}.people-option-section{padding-top:4px}.people-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.people-check-option{display:flex;align-items:flex-start;gap:10px;min-height:58px;padding:11px;border:1px solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-deep);cursor:pointer}.people-check-option input{margin-top:3px;accent-color:var(--accent)}.people-check-option>span{display:flex;flex-direction:column;gap:4px}.people-check-option strong{color:var(--text-secondary);font-size:10px}.people-check-option small{color:var(--text-soft);font-size:8.5px}.people-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid var(--border-soft);background:var(--surface-deep)}.people-confirm-modal{width:min(520px,100%)}.people-confirm-body p{margin:0 0 16px;color:var(--text-secondary);font-size:10px;line-height:1.6}@media(max-width:980px){.people-summary-grid,.people-detail-meta{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.people-toolbar{align-items:stretch;flex-direction:column}.people-toolbar .search-input{width:100%}.people-access-grid,.people-option-grid{grid-template-columns:1fr}.people-detail-section-heading{flex-direction:column}}@media(max-width:560px){.people-summary-grid,.people-detail-meta{grid-template-columns:1fr}.people-overlay{padding:10px}.people-detail-header,.people-modal-header,.people-detail-body,.people-form-body,.people-confirm-body,.people-modal-footer{padding-left:16px;padding-right:16px}.filter-group{overflow-x:auto}}.models-page{position:relative}.models-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.models-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid var(--border-soft)}.models-toolbar .search-input{width:min(420px,100%)}.models-inline-error{padding:12px 18px;border-bottom:1px solid rgba(229,141,135,.18);background:var(--danger-bg);color:var(--danger);font-size:10px}.models-table-wrap{overflow-x:auto}.models-table{display:grid;grid-template-columns:minmax(220px,1.4fr) 110px 90px 90px minmax(170px,1fr) 180px;align-items:center;gap:14px;min-width:900px;padding:12px 18px}.models-table-head{border-bottom:1px solid var(--border-soft);color:var(--text-soft);font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.models-table-row{border-bottom:1px solid var(--border-soft)}.models-table-row:last-child{border-bottom:0}.models-name-cell{display:flex;flex-direction:column;gap:4px;min-width:0}.models-name-cell strong{overflow:hidden;color:var(--text);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.models-name-cell small,.models-muted-cell{color:var(--text-muted);font-size:9px;line-height:1.45}.models-number-cell{color:var(--text-secondary);font-size:11px;font-variant-numeric:tabular-nums}.models-status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:9px;font-weight:700}.models-status.active{background:var(--success-bg);color:var(--success)}.models-status.inactive{background:var(--danger-bg);color:var(--danger)}.models-actions{display:flex;flex-wrap:wrap;gap:10px}.models-policy-note{display:flex;flex-direction:column;gap:5px;margin-top:14px;padding:13px 15px;border:1px solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-deep)}.models-policy-note strong{color:var(--text-secondary);font-size:10px}.models-policy-note span,.models-help,.models-confirm-copy{margin:0;color:var(--text-muted);font-size:9px;line-height:1.55}.models-overlay{position:fixed;inset:0;z-index:210;display:flex;align-items:center;justify-content:center;padding:24px;background:#000000b3;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.models-modal{width:min(560px,100%);overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-modal)}.models-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid var(--border-soft)}.models-modal-header h3{margin:0;color:var(--text);font-size:20px}.models-close{width:34px;height:34px;border:1px solid var(--border-soft);border-radius:8px;background:var(--surface-deep);color:var(--text-secondary);font-size:19px;line-height:1}.models-modal-body{display:flex;flex-direction:column;gap:14px;padding:22px 24px}.models-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid var(--border-soft);background:var(--surface-deep)}.models-confirm-modal{width:min(520px,100%)}.models-warning-box{display:flex;flex-direction:column;gap:5px;padding:12px 13px;border:1px solid rgba(225,189,119,.24);border-radius:var(--radius-sm);background:var(--warning-bg)}.models-warning-box strong{color:var(--warning);font-size:10px}.models-warning-box span{color:var(--text-secondary);font-size:9px;line-height:1.5}@media(max-width:980px){.models-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.models-toolbar{align-items:stretch;flex-direction:column}.models-toolbar .search-input{width:100%}}@media(max-width:560px){.models-summary-grid{grid-template-columns:1fr}.models-overlay{padding:10px}.models-modal-header,.models-modal-body,.models-modal-footer{padding-left:16px;padding-right:16px}.filter-group{overflow-x:auto}}.role-builder-page{position:relative}.role-builder-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.role-builder-error{margin-bottom:14px;padding:12px 14px;border:1px solid rgba(229,141,135,.26);border-radius:var(--radius-sm);background:var(--danger-bg);color:var(--danger);font-size:10px}.role-builder-layout{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1.8fr);gap:16px;align-items:start}.role-list-card,.role-editor-card{overflow:hidden}.role-list-header,.role-editor-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border-soft)}.role-list-header h3,.role-editor-header h3,.role-delete-header h3{margin:0;color:var(--text);font-size:18px;line-height:1.2}.role-list-count,.role-affected-badge,.role-permission-count{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 8px;border:1px solid var(--border-soft);border-radius:999px;background:var(--surface-deep);color:var(--text-muted);font-size:8.5px;font-weight:700}.role-affected-badge{border-color:#e1bd7733;background:var(--warning-bg);color:var(--warning)}.role-list{display:flex;flex-direction:column}.role-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:13px 15px;border:0;border-bottom:1px solid var(--border-soft);background:transparent;color:inherit;text-align:left;transition:background .12s ease,border-color .12s ease}.role-list-item:last-child{border-bottom:0}.role-list-item:hover{background:#ffffff05}.role-list-item.active{background:linear-gradient(90deg,var(--accent-soft),rgba(232,216,178,.025));box-shadow:inset 2px 0 0 var(--accent)}.role-list-item-main,.role-list-item-meta{display:flex;min-width:0;flex-direction:column}.role-list-item-main{gap:4px}.role-list-item-meta{align-items:flex-end;gap:5px}.role-list-item-main strong{overflow:hidden;color:var(--text);font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.role-list-item-main small,.role-list-item-meta small{color:var(--text-muted);font-size:8.5px}.role-type-badge{display:inline-flex;align-items:center;min-height:20px;padding:0 7px;border-radius:999px;font-size:8px;font-weight:750;letter-spacing:.03em;text-transform:uppercase}.role-type-badge.system{border:1px solid rgba(174,188,224,.2);background:var(--info-bg);color:var(--info)}.role-type-badge.custom{border:1px solid rgba(157,213,168,.18);background:var(--success-bg);color:var(--success)}.role-builder-empty{padding:28px 20px;color:var(--text-muted);font-size:10px;line-height:1.5;text-align:center}.role-editor-empty{min-height:220px;display:grid;place-items:center}.role-editor-section{padding:20px;border-bottom:1px solid var(--border-soft)}.role-editor-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.role-editor-section-heading>div{min-width:0}.role-editor-section-heading strong{display:block;color:var(--text);font-size:11px}.role-editor-section-heading span{display:block;margin-top:4px;color:var(--text-muted);font-size:9px;line-height:1.5}.role-settings-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,.55fr) minmax(170px,.8fr);gap:14px}.role-settings-grid .form-field{margin:0}.role-settings-grid input,.role-settings-grid select{width:100%}.role-impact-note{display:flex;flex-direction:column;gap:4px;margin-top:14px;padding:12px 13px;border:1px solid rgba(225,189,119,.2);border-radius:var(--radius-sm);background:var(--warning-bg)}.role-impact-note strong{color:var(--warning);font-size:9.5px}.role-impact-note span{color:var(--text-secondary);font-size:9px;line-height:1.45}.role-permission-count{flex:0 0 auto}.role-permission-groups{display:grid;gap:12px}.role-permission-group{overflow:hidden;border:1px solid var(--border-soft);border-radius:9px;background:var(--surface-deep)}.role-permission-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--border-soft);background:#ffffff04}.role-permission-group-heading strong,.role-permission-group-heading span{text-transform:capitalize}.role-permission-group-heading strong{color:var(--text-secondary);font-size:9px}.role-permission-group-heading span{color:var(--text-soft);font-size:8px}.role-permission-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.role-permission-item{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start;min-height:90px;padding:13px;border-right:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft);cursor:pointer}.role-permission-item:nth-child(2n){border-right:0}.role-permission-item:nth-last-child(-n+2){border-bottom:0}.role-permission-item.locked{cursor:not-allowed;opacity:.72}.role-permission-item input{margin-top:2px;accent-color:var(--accent)}.role-permission-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.role-permission-copy strong{color:var(--text);font-size:10px}.role-permission-copy small{color:var(--text-muted);font-size:8.5px;line-height:1.45}.role-permission-copy code{width:fit-content;margin-top:2px;padding:2px 5px;border-radius:4px;background:#ffffff09;color:var(--text-soft);font-size:7.5px}.role-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;background:#00000014}.role-editor-policy{max-width:430px;color:var(--text-muted);font-size:8.5px;line-height:1.45}.role-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}.role-builder-overlay{position:fixed;inset:0;z-index:220;display:flex;align-items:center;justify-content:center;padding:22px;background:#000000b8;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.role-delete-modal{width:min(520px,100%);overflow:hidden;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-modal)}.role-delete-header,.role-delete-body,.role-delete-footer{padding:20px 22px}.role-delete-header{border-bottom:1px solid var(--border-soft)}.role-delete-body{display:flex;flex-direction:column;gap:13px}.role-delete-body p{margin:0;color:var(--text-secondary);font-size:10px;line-height:1.55}.role-delete-warning{padding:11px 12px;border:1px solid rgba(225,189,119,.2);border-radius:var(--radius-sm);background:var(--warning-bg);color:var(--warning);font-size:9px;line-height:1.5}.role-delete-footer{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--border-soft);background:var(--surface-deep)}@media(max-width:1120px){.role-builder-layout{grid-template-columns:1fr}.role-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.role-list-item{border-right:1px solid var(--border-soft)}}@media(max-width:900px){.role-builder-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.role-settings-grid{grid-template-columns:1fr 1fr}.role-name-field{grid-column:1 / -1}.role-permission-list{grid-template-columns:1fr}.role-permission-item,.role-permission-item:nth-child(2n),.role-permission-item:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--border-soft)}.role-permission-item:last-child{border-bottom:0}}@media(max-width:640px){.role-builder-summary,.role-list,.role-settings-grid{grid-template-columns:1fr}.role-editor-header,.role-editor-footer,.role-editor-section-heading{align-items:flex-start;flex-direction:column}.role-editor-actions{width:100%}.role-editor-actions button{flex:1}.role-builder-overlay{padding:10px}}.audit-page{position:relative}.audit-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 220px 170px;gap:12px;margin-bottom:12px;padding:14px}.audit-toolbar input,.audit-toolbar select{width:100%}.audit-readonly-note{display:flex;align-items:center;gap:8px;margin-bottom:12px;padding:10px 12px;border:1px solid var(--border-soft);border-radius:var(--radius-sm);background:var(--surface-deep)}.audit-readonly-note strong{color:var(--text-secondary);font-size:9px}.audit-readonly-note span{color:var(--text-muted);font-size:8.5px}.audit-error{margin-bottom:12px;padding:11px 12px;border:1px solid rgba(229,141,135,.24);border-radius:var(--radius-sm);background:var(--danger-bg);color:var(--danger);font-size:9px}.audit-list-card{overflow:hidden}.audit-table-wrap{overflow-x:auto}.audit-table{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(180px,1fr) minmax(170px,1fr) minmax(190px,1.1fr) 120px minmax(120px,.7fr);align-items:start;gap:12px;min-width:1050px;padding:12px 16px}.audit-table-head{border-bottom:1px solid var(--border-soft);color:var(--text-soft);font-size:8px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.audit-table-row{border-bottom:1px solid var(--border-soft)}.audit-table-row:last-child{border-bottom:0}.audit-time,.audit-muted,.audit-code{color:var(--text-muted);font-size:8.5px;line-height:1.45;overflow-wrap:anywhere}.audit-action{display:block;margin-bottom:3px;color:var(--text);font-size:9.5px}.audit-code{display:block}.audit-result{display:inline-flex;align-items:center;min-height:22px;padding:0 7px;border-radius:999px;font-size:8px;font-weight:700}.audit-result.success{background:var(--success-bg);color:var(--success)}.audit-result.failed{background:var(--danger-bg);color:var(--danger)}.audit-details summary{color:var(--text-secondary);cursor:pointer;font-size:8.5px}.audit-details pre{max-width:360px;max-height:240px;overflow:auto;margin:8px 0 0;padding:9px;border:1px solid var(--border-soft);border-radius:7px;background:#0000002e;color:var(--text-muted);font-size:7.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:900px){.audit-toolbar{grid-template-columns:1fr 1fr}.audit-toolbar .search-input{grid-column:1 / -1}}@media(max-width:620px){.audit-toolbar{grid-template-columns:1fr}.audit-toolbar .search-input{grid-column:auto}}
