:root {
  --bg: #07111f;
  --panel: rgba(14, 29, 48, .88);
  --panel-strong: #10243a;
  --line: rgba(148, 180, 211, .16);
  --text: #ecf6ff;
  --muted: #91a8bf;
  --cyan: #21d4c4;
  --blue: #48a7ff;
  --violet: #aa7cff;
  --amber: #ffbc5d;
  --danger: #ff6680;
  --shadow: 0 20px 50px rgba(0, 5, 14, .38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); min-height: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 5%, #123251 0, transparent 28%), linear-gradient(150deg, #07111f 0%, #081725 56%, #07101c 100%); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; width: 420px; height: 420px; filter: blur(90px); opacity: .13; border-radius: 50%; pointer-events: none; z-index: 0; }
.ambient-one { background: var(--cyan); right: -180px; top: 12%; }
.ambient-two { background: var(--violet); left: -240px; bottom: -160px; }
.topbar { position: sticky; top: 0; z-index: 40; min-height: 74px; padding: 0 28px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); background: rgba(6, 16, 29, .86); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.brand > span:last-child { display: grid; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 10px; margin-top: 4px; letter-spacing: .04em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(64, 231, 216, .65); border-radius: 12px; color: #d9fffb; background: linear-gradient(145deg, rgba(33,212,196,.24), rgba(72,167,255,.12)); box-shadow: inset 0 0 18px rgba(33,212,196,.12), 0 0 25px rgba(33,212,196,.08); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.brand-mark.large { width: 48px; height: 48px; border-radius: 15px; }
.nav-links { display: flex; gap: 5px; flex: 1; }
.nav-links a { padding: 10px 12px; border-radius: 10px; color: #9fb4c8; font-size: 14px; font-weight: 650; transition: .18s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(77, 159, 220, .12); }
.profile-menu { position: relative; }
.profile-menu summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.profile-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--violet)); font-weight: 800; }
.role-chip { padding: 3px 7px; border: 1px solid rgba(33,212,196,.25); border-radius: 20px; color: var(--cyan); background: rgba(33,212,196,.08); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.role-chip.admin { color: #d8c5ff; border-color: rgba(170,124,255,.28); background: rgba(170,124,255,.09); }
.menu-panel { position: absolute; top: 42px; right: 0; width: 180px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #102236; box-shadow: var(--shadow); }
.menu-panel a, .menu-button { display: block; width: 100%; padding: 10px; border: 0; text-align: left; color: var(--text); background: transparent; border-radius: 8px; }
.menu-panel a:hover, .menu-button:hover { background: rgba(255,255,255,.06); }
.page-shell { position: relative; z-index: 1; width: min(1600px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 56px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 0; }
.glass-card { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(17,37,60,.92), rgba(10,24,40,.9)); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 25px; }
.page-heading h1 { margin: 5px 0 7px; font-size: clamp(27px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.page-heading p, .muted { margin: 0; color: var(--muted); }
.eyebrow { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.heading-actions, .form-actions, .row-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button { appearance: none; display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; font-size: 13px; transition: transform .16s, background .16s, border .16s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #042522; background: linear-gradient(135deg, #55eedf, #25c8bc); box-shadow: 0 10px 25px rgba(33,212,196,.14); }
.button.ghost { color: #c6d8e8; border-color: var(--line); background: rgba(255,255,255,.03); }
.button.danger { color: #ffc4ce; border-color: rgba(255,102,128,.25); background: rgba(255,102,128,.08); }
.button.full { width: 100%; }
.button.small { min-height: 34px; padding: 0 12px; }
.button.tiny { min-height: 30px; padding: 0 9px; font-size: 11px; }
.flash-stack { display: grid; gap: 8px; margin: -8px 0 20px; }
.flash { padding: 12px 15px; border-radius: 11px; border: 1px solid; font-size: 13px; }
.flash.success { color: #b9fff5; border-color: rgba(33,212,196,.26); background: rgba(33,212,196,.09); }
.flash.warning { color: #ffe2aa; border-color: rgba(255,188,93,.28); background: rgba(255,188,93,.09); }
.flash.danger { color: #ffc2cc; border-color: rgba(255,102,128,.27); background: rgba(255,102,128,.09); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric-card { position: relative; overflow: hidden; min-height: 154px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, rgba(18,39,62,.96), rgba(11,25,42,.94)); box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -45px; top: -50px; border-radius: 50%; filter: blur(5px); opacity: .14; background: currentColor; }
.metric-card.cyan { color: var(--cyan); }.metric-card.violet { color: var(--violet); }.metric-card.blue { color: var(--blue); }.metric-card.amber { color: var(--amber); }
.metric-card > span { color: #b4c8da; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.metric-card strong { display: block; margin: 9px 0 4px; font-size: 37px; line-height: 1; letter-spacing: -.04em; color: var(--text); }
.metric-card small { color: var(--muted); }
.progress { height: 4px; margin-top: 18px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.06); }
.progress i { display: block; height: 100%; background: currentColor; border-radius: inherit; }
.small-metrics { margin-bottom: 18px; }
.mini-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(14,31,50,.84); }
.mini-card span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.mini-card strong { display: block; margin-top: 5px; font-size: 28px; }
.split-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 16px; margin-top: 17px; }
.panel { padding: 22px; }
.panel h2, .form-card h1 { margin: 5px 0 16px; font-size: 22px; letter-spacing: -.02em; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.panel-heading h2 { margin: 4px 0 0; }.panel-heading > a { color: var(--cyan); font-size: 12px; font-weight: 750; }
.cohort-list, .activity-list { display: grid; }
.cohort-list > div { display: grid; grid-template-columns: 16px 1fr auto; gap: 11px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.cohort-list p, .activity-list p { margin: 0; display: grid; gap: 3px; }.cohort-list small, .activity-list small { color: var(--muted); }.cohort-list b { font-size: 11px; color: #b9cde0; }
.source-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px currentColor; }.source-dot.noc { background: var(--amber); }.source-dot.bb { background: var(--violet); }
.activity-list a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }.activity-list time { color: var(--muted); font-size: 11px; }
.source-tag { display: inline-grid; place-items: center; min-width: 42px; padding: 5px 8px; border-radius: 7px; color: var(--cyan); background: rgba(33,212,196,.1); font-size: 10px; font-weight: 900; letter-spacing: .08em; }.source-tag.noc { color: var(--amber); background: rgba(255,188,93,.1); }
.section-gap { margin-top: 17px; }
.filter-bar { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; padding: 15px; margin-bottom: 12px; }
label { display: grid; gap: 6px; color: #aac0d3; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid rgba(148,180,211,.2); border-radius: 9px; outline: none; color: var(--text); background: #0a1b2c; transition: border .16s, box-shadow .16s; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: rgba(33,212,196,.65); box-shadow: 0 0 0 3px rgba(33,212,196,.08); }
select option { background: #0a1b2c; }.search-field { min-width: 240px; flex: 1; }.check-field { display: flex; align-items: center; min-height: 40px; padding: 0 8px; }.check-field input { width: auto; min-height: 0; accent-color: var(--cyan); }
.table-note { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; margin: 0 3px 9px; }
.legend { display: inline-block; width: 7px; height: 7px; margin: 0 4px 0 10px; border-radius: 50%; }.legend.sla { background: var(--cyan); }.legend.out { background: var(--danger); }.legend.review { background: var(--amber); }
.table-card { overflow: visible; }.table-wrap { overflow: auto; border-radius: inherit; }.table-wrap.compact { max-height: 520px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
th { position: sticky; top: 0; z-index: 5; min-width: 128px; padding: 12px; border-bottom: 1px solid var(--line); color: #9db4c9; background: #10243a; text-align: left; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
th small { display: block; margin-top: 3px; color: #607c95; font-size: 8px; text-transform: none; letter-spacing: 0; }
td { max-width: 260px; padding: 12px; border-bottom: 1px solid rgba(148,180,211,.1); color: #d7e6f2; background: rgba(10,24,40,.58); vertical-align: top; white-space: nowrap; }
tbody tr:hover td { background: rgba(24,51,78,.72); }.ticket-table { max-height: calc(100vh - 300px); min-height: 260px; }
.sticky-key { position: sticky; left: 0; z-index: 3; min-width: 175px; border-right: 1px solid var(--line); }.sticky-action { position: sticky; right: 0; z-index: 4; min-width: 74px; width: 74px; border-left: 1px solid var(--line); }
th.sticky-action { z-index: 8; }.excluded-row td { opacity: .6; }.excluded-row .sticky-key, .excluded-row .sticky-action { opacity: 1; }
.ticket-link { color: #67eadd; font-weight: 800; }.long-cell > span:not(.badge) { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }.duration-value { font-variant-numeric: tabular-nums; font-weight: 800; }.cell-note { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.ticket-table { scrollbar-gutter: stable; }
.ticket-table .subject-column { width: 340px; min-width: 340px; max-width: 340px; }
.ticket-table .datetime-column { width: 160px; min-width: 160px; max-width: 160px; }
.ticket-table th:not(.sticky-action), .ticket-table td:not(.sticky-action) { box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; }
.ticket-table td:not(.sticky-action) > span:not(.badge) { display: block; width: 100%; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ticket-table td.long-cell { width: 260px; min-width: 260px; max-width: 260px; }
.ticket-table td.long-cell > span:not(.badge) { white-space: nowrap; }
.ticket-table td.subject-column { width: 340px; min-width: 340px; max-width: 340px; }
.ticket-table .action-menu > div { position: fixed; top: auto; right: auto; z-index: 1000; width: 154px; }
.ticket-table .action-menu:not([data-positioned]) > div { visibility: hidden; }
.rule-keywords { max-width: 360px; white-space: normal; }
.rule-keywords > span { display: block; overflow-wrap: anywhere; }
.rule-keywords > small { display: block; margin-top: 4px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; border: 1px solid; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }.badge.sla { color: #7cf8e9; border-color: rgba(33,212,196,.3); background: rgba(33,212,196,.1); }.badge.out { color: #ff9bac; border-color: rgba(255,102,128,.3); background: rgba(255,102,128,.09); }.badge.review { color: #ffd38c; border-color: rgba(255,188,93,.3); background: rgba(255,188,93,.09); }.muted-badge { color: #aac0d3; border-color: var(--line); background: rgba(255,255,255,.04); }.large-badge { min-height: 35px; padding: 7px 13px; font-size: 12px; }
.action-menu { position: relative; }.action-menu summary { list-style: none; width: 34px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }.action-menu summary::-webkit-details-marker { display: none; }.action-menu > div { position: absolute; right: 0; top: 34px; z-index: 20; width: 130px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #10243a; box-shadow: var(--shadow); }.action-menu a { display: block; padding: 9px; border-radius: 7px; }.action-menu a:hover { background: rgba(255,255,255,.06); }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 12px; }.pagination > div { display: flex; gap: 5px; }.page-number { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; }.page-number.active { color: #052723; background: var(--cyan); }
.login-card { width: min(980px, 100%); min-height: 570px; display: grid; grid-template-columns: 1.12fr .88fr; overflow: hidden; }.login-art { position: relative; overflow: hidden; padding: 65px 54px; background: radial-gradient(circle at 80% 70%, rgba(33,212,196,.18), transparent 30%), linear-gradient(145deg, rgba(27,70,99,.55), rgba(12,32,52,.9)); }.login-art::after { content: ""; position: absolute; width: 330px; height: 330px; right: -90px; bottom: -100px; border: 1px solid rgba(33,212,196,.22); border-radius: 50%; box-shadow: 0 0 0 35px rgba(33,212,196,.025), 0 0 0 80px rgba(33,212,196,.018); }.login-art h1 { max-width: 480px; margin: 16px 0; font-size: 48px; line-height: 1.02; letter-spacing: -.05em; }.login-art p { max-width: 430px; color: #acc3d6; line-height: 1.65; }.login-form { padding: 60px 45px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }.login-form h2 { margin: 8px 0 -10px; font-size: 27px; }.signal-grid { position: absolute; left: 54px; bottom: 48px; display: flex; align-items: end; gap: 8px; }.signal-grid i { width: 7px; height: 20px; border-radius: 4px; background: var(--cyan); opacity: .25; }.signal-grid i:nth-child(2) { height: 36px; opacity: .38; }.signal-grid i:nth-child(3) { height: 60px; opacity: .75; }.signal-grid i:nth-child(4) { height: 42px; opacity: .5; }.signal-grid i:nth-child(5) { height: 78px; opacity: .9; }.signal-grid i:nth-child(6) { height: 53px; opacity: .6; }
.form-card { width: min(570px, 100%); padding: 28px; margin: 40px auto; }.form-card.narrow { max-width: 520px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }.form-grid.one-column { grid-template-columns: 1fr; }.form-note { color: var(--muted); font-size: 11px; line-height: 1.55; }
.upload-grid { grid-template-columns: 1fr 1fr; }.source-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.source-selector label { cursor: pointer; }.source-selector input { position: absolute; opacity: 0; pointer-events: none; }.source-selector span { display: grid; gap: 3px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }.source-selector input:checked + span { color: var(--text); border-color: var(--cyan); background: rgba(33,212,196,.08); box-shadow: 0 0 0 3px rgba(33,212,196,.06); }.source-selector small { color: var(--muted); }.dropzone { position: relative; min-height: 180px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px dashed rgba(84,218,206,.4); border-radius: 14px; background: rgba(33,212,196,.035); text-align: center; cursor: pointer; }.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }.dropzone small { color: var(--muted); }.upload-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--cyan); background: rgba(33,212,196,.1); font-size: 25px; }.step-list { list-style: none; margin: 0; padding: 0; display: grid; }.step-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }.step-list b { color: var(--cyan); font-size: 11px; }.step-list span { display: grid; gap: 3px; }.step-list small { color: var(--muted); }
.detail-hero { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; }.detail-hero > div { padding: 22px; border-right: 1px solid var(--line); }.detail-hero > div:last-child { border: 0; }.detail-hero span:first-child { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }.detail-hero strong { display: block; min-height: 39px; margin: 7px 0 2px; font-size: 30px; letter-spacing: -.03em; }.detail-hero small { color: var(--muted); }.text-metric { font-size: 20px !important; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }.detail-grid > div { min-width: 0; padding: 13px; background: #0d2034; }.detail-grid .wide-detail { grid-column: span 2; }.detail-grid dt { margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.detail-grid dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }.notice-strip { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 13px 16px; border: 1px solid rgba(33,212,196,.24); border-radius: 12px; color: #bffcf4; background: rgba(33,212,196,.07); }.notice-strip.review { color: #ffdfa7; border-color: rgba(255,188,93,.25); background: rgba(255,188,93,.07); }.notice-strip span:nth-child(2) { flex: 1; }.raw-details summary { cursor: pointer; color: var(--cyan); font-weight: 750; }.raw-details[open] summary { margin-bottom: 18px; }.raw-grid { margin-top: 14px; }
.hold-layout { grid-template-columns: .85fr 1.15fr; }.calculation-preview h2 { font-size: 42px; margin-bottom: 5px; }.calculation-preview h2 small { font-size: 13px; color: var(--muted); }.calculation-preview > p { color: var(--muted); }.formula { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.12); }.formula span { font-size: 12px; font-weight: 750; }.formula b { color: var(--cyan); }.validation-list { margin: 20px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.8; font-size: 12px; }
.edit-section { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }.edit-section:first-of-type { padding-top: 0; border-top: 0; }.edit-section h2 { margin: 3px 0 0; font-size: 18px; }.field-note { color: var(--muted); font-size: 10px; font-weight: 500; }.restore-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }.restore-field { display: flex; align-items: center; gap: 8px; min-height: 28px; color: var(--muted); font-weight: 600; }.restore-field input { width: auto; min-height: 0; margin: 0; accent-color: var(--cyan); }
.rules-grid, .users-grid { grid-template-columns: 1fr 1fr; }.inline-form { display: flex; gap: 6px; align-items: center; }.inline-form input { min-width: 150px; min-height: 31px; padding: 5px 8px; }.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; }.status-dot.enabled { background: var(--cyan); box-shadow: 0 0 9px rgba(33,212,196,.7); }.status-dot.disabled { background: #60778c; }.permission-list { display: grid; gap: 10px; }.permission-list p { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }.permission-list .role-chip { margin-right: 8px; }
.cluster-access { min-width: 260px; }.cluster-access > div { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-bottom: 6px; }.cluster-access .check-field { min-height: 24px; padding: 0; }.mini-edit { display: grid; gap: 6px; width: 230px; }.action-menu > div:has(.mini-edit) { width: 250px; }
.empty-state, .empty-cell { padding: 38px; color: var(--muted); text-align: center; }.success-state { color: #a4f5e9; }.error-list { margin: 0; padding-left: 20px; color: #ffd1d9; line-height: 1.7; }.error-card { max-width: 560px; margin: 12vh auto; padding: 40px; text-align: center; }.error-code { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 18px; color: var(--danger); background: rgba(255,102,128,.1); font-size: 34px; }.error-card h1 { margin: 9px 0; }.error-card p { color: var(--muted); margin-bottom: 22px; }
@media (max-width: 1180px) { .nav-links { overflow-x: auto; }.metric-grid { grid-template-columns: repeat(2,1fr); }.detail-grid { grid-template-columns: repeat(3,1fr); }.detail-hero { grid-template-columns: repeat(2,1fr); }.detail-hero > div:nth-child(2) { border-right: 0; }.detail-hero > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 820px) { .topbar { padding: 11px 16px; flex-wrap: wrap; gap: 10px; }.brand { min-width: 0; }.nav-links { order: 3; width: 100%; }.profile-menu { margin-left: auto; }.page-shell { width: min(100% - 22px, 1600px); padding-top: 24px; }.page-heading { align-items: flex-start; flex-direction: column; }.split-grid, .upload-grid, .rules-grid, .users-grid, .hold-layout { grid-template-columns: 1fr; }.login-card { grid-template-columns: 1fr; }.login-art { display: none; }.login-form { min-height: 520px; }.detail-grid { grid-template-columns: repeat(2,1fr); }.detail-grid .wide-detail { grid-column: span 2; }.table-note { flex-direction: column; gap: 4px; }.filter-bar > label { min-width: calc(50% - 8px); flex: 1; } }
@media (max-width: 520px) { .metric-grid { grid-template-columns: 1fr; }.detail-hero, .detail-grid { grid-template-columns: 1fr; }.detail-grid .wide-detail { grid-column: span 1; }.detail-hero > div { border-right: 0; border-bottom: 1px solid var(--line); }.form-grid { grid-template-columns: 1fr; }.filter-bar > label { min-width: 100%; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }.pagination { align-items: flex-start; gap: 10px; flex-direction: column; } }

/* Compact light operations theme */
:root {
  --bg: #f5f6f7;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --line: #d9dadd;
  --text: #1d2d3e;
  --muted: #687786;
  --cyan: #e9730c;
  --blue: #377bb5;
  --violet: #7654a6;
  --amber: #b47700;
  --danger: #c03945;
  --soft-orange: #fff3e8;
  --soft-gray: #f7f8f9;
  --shadow: 0 1px 3px rgba(34, 53, 72, .12);
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
}
html { background: var(--bg); color: var(--text); }
body { background: var(--bg); color: var(--text); font-size: 14px; }
.ambient { display: none; }

.topbar {
  min-height: 58px;
  padding: 0 22px;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 4px rgba(34,53,72,.08);
  backdrop-filter: blur(10px);
}
.brand { min-width: 170px; gap: 9px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #ef9b52;
  border-radius: 5px;
  color: #fff;
  background: var(--cyan);
  box-shadow: none;
}
.brand strong { color: var(--text); }
.brand small { color: var(--muted); }
.nav-links { gap: 1px; }
.nav-links a {
  padding: 9px 10px;
  border-radius: 4px;
  color: #556575;
  font-size: 13px;
  font-weight: 650;
}
.nav-links a:hover, .nav-links a.active { color: #a94e00; background: var(--soft-orange); }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--cyan); }
.profile-menu summary { color: var(--text); }
.avatar { width: 28px; height: 28px; border-radius: 4px; background: var(--cyan); }
.role-chip { color: #a94e00; border-color: #efbc90; background: var(--soft-orange); }
.role-chip.admin { color: #5e3b91; border-color: #cbb9e1; background: #f3eef9; }
.menu-panel { top: 38px; border-color: var(--line); border-radius: 5px; background: #fff; box-shadow: 0 7px 20px rgba(34,53,72,.16); }
.menu-panel a, .menu-button { color: var(--text); border-radius: 3px; }
.menu-panel a:hover, .menu-button:hover { background: var(--soft-orange); }

.page-shell { width: min(1540px, calc(100% - 32px)); padding: 24px 0 42px; }
.auth-shell { padding: 24px 0; }
.glass-card { border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: var(--shadow); backdrop-filter: none; }
.page-heading { align-items: center; gap: 18px; margin-bottom: 18px; }
.page-heading h1 { margin: 3px 0 2px; color: var(--text); font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.025em; }
.page-heading p, .muted { color: var(--muted); }
.compact-heading { margin-bottom: 14px; }
.eyebrow { color: #b95600; font-size: 10px; letter-spacing: .11em; }
.heading-actions, .form-actions, .row-actions { gap: 7px; }
.button { min-height: 36px; padding: 0 13px; border-radius: 4px; font-size: 12px; box-shadow: none; }
.button:hover { transform: none; box-shadow: 0 1px 4px rgba(34,53,72,.16); }
.button.primary { color: #fff; border-color: var(--cyan); background: var(--cyan); box-shadow: none; }
.button.primary:hover { background: #d66508; border-color: #d66508; }
.button.ghost { color: var(--text); border-color: #aeb7bf; background: #fff; }
.button.ghost:hover { background: #f0f2f4; border-color: #8f9aa4; }
.button.danger { color: #a3212c; border-color: #d9a3a8; background: #fff4f4; }
.button.small { min-height: 31px; }
.button.tiny { min-height: 28px; }

.flash-stack { margin: -5px 0 15px; gap: 6px; }
.flash { padding: 10px 13px; border-radius: 4px; border-left-width: 4px; }
.flash.success { color: #235b2c; border-color: #78b982; background: #edf8ef; }
.flash.warning { color: #664d03; border-color: #e4bd55; background: #fff8e1; }
.flash.danger { color: #842029; border-color: #df8b8b; background: #fff0f0; }

.metric-grid { gap: 11px; }
.metric-card {
  min-height: 132px;
  padding: 18px;
  border-color: var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 3px solid currentColor;
}
.metric-card::after { display: none; }
.metric-card > span { color: var(--muted); }
.metric-card strong { margin: 8px 0 3px; color: var(--text); font-size: 32px; }
.progress { margin-top: 14px; background: #e8eaec; }
.mini-card { padding: 15px; border-color: var(--line); border-radius: 5px; background: #fff; }
.split-grid { gap: 13px; margin-top: 13px; }
.panel { padding: 18px; }
.panel h2, .form-card h1 { margin: 3px 0 13px; color: var(--text); font-size: 20px; }
.panel-heading { margin-bottom: 12px; }
.panel-heading h2 { margin: 2px 0 0; }
.panel-heading > a { color: #b95600; }
.cohort-list > div, .activity-list a { padding: 10px 0; border-color: #e8e9eb; }
.cohort-list small, .activity-list small { color: var(--muted); }
.source-tag { color: #225f92; background: #edf5fb; border: 1px solid #bfd7e9; border-radius: 4px; }
.source-tag.noc { color: #a94e00; background: var(--soft-orange); border-color: #f0c39d; }
.section-gap { margin-top: 13px; }

.filter-bar { gap: 7px; padding: 12px; margin-bottom: 9px; border-radius: 5px; }
label { gap: 5px; color: #556575; font-size: 11px; }
input, select, textarea {
  min-height: 36px;
  padding: 7px 9px;
  border-color: #b9c1c8;
  border-radius: 4px;
  color: var(--text);
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(233,115,12,.13); }
select option { background: #fff; }
.check-field { min-height: 36px; }
.table-note { margin: 0 2px 7px; color: var(--muted); }
.table-legend { justify-content: flex-end; }
.legend.sla { background: #2a8b57; }.legend.out { background: var(--danger); }.legend.review { background: #d59a22; }
.table-card { border-radius: 5px; box-shadow: var(--shadow); overflow: visible; }
.table-wrap { border-radius: 5px; }
table { font-size: 12px; }
th {
  min-width: 120px;
  padding: 10px;
  border-bottom-color: #b9c1c8;
  color: #556575;
  background: #eef0f2;
  font-size: 9px;
}
th small { color: #7d8993; }
td { padding: 10px; border-bottom-color: #e8e9eb; color: #293a4a; background: #fff; }
tbody tr:nth-child(even) td { background: #fbfbfc; }
tbody tr:hover td { background: var(--soft-orange); }
.sticky-key, .sticky-action { border-color: var(--line); }
.ticket-link { color: #a94e00; }
.cell-note { color: var(--muted); }
.badge { border-radius: 999px; }
.badge.sla { color: #23653f; border-color: #8bc5a3; background: #edf8f1; }
.badge.out { color: #9f2632; border-color: #e0a2a8; background: #fff1f2; }
.badge.review { color: #755200; border-color: #e1c06d; background: #fff8e1; }
.muted-badge { color: #556575; border-color: #c8ced3; background: #f3f4f5; }
.action-menu summary { border-color: #b9c1c8; border-radius: 4px; background: #fff; color: var(--text); }
.action-menu > div { border-color: var(--line); border-radius: 4px; background: #fff; box-shadow: 0 7px 20px rgba(34,53,72,.16); }
.action-menu a { color: var(--text); border-radius: 3px; }
.action-menu a:hover { background: var(--soft-orange); }
.pagination { margin-top: 11px; }
.page-number { border-color: var(--line); border-radius: 4px; background: #fff; }
.page-number.active { color: #fff; background: var(--cyan); border-color: var(--cyan); }

.login-card { width: min(820px, 100%); min-height: 470px; border-radius: 7px; }
.login-art { padding: 54px 42px; background: linear-gradient(145deg, #fff8f1, #f5f6f7); border-right: 1px solid var(--line); }
.login-art::after, .signal-grid { display: none; }
.login-art h1 { margin: 12px 0 8px; color: var(--text); font-size: 42px; }
.login-art p { color: var(--muted); }
.login-form { padding: 46px 38px; gap: 14px; }
.login-form h2 { color: var(--text); }
.brand-mark.large { width: 44px; height: 44px; border-radius: 5px; }
.form-card { padding: 22px; }
.form-note { color: var(--muted); }
.source-selector { gap: 8px; }
.source-selector span { padding: 13px; border-color: var(--line); border-radius: 5px; background: var(--soft-gray); }
.source-selector input:checked + span { border-color: var(--cyan); background: var(--soft-orange); box-shadow: 0 0 0 2px rgba(233,115,12,.1); }
.dropzone { min-height: 150px; border-color: #e0a56f; border-radius: 5px; background: #fffaf5; }
.upload-icon { border-radius: 4px; color: #fff; background: var(--cyan); }
.data-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 0; border: 1px solid var(--line); background: var(--line); }
.data-facts > div { padding: 14px; background: #fff; }
.data-facts dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.data-facts dd { margin: 5px 0 0; color: var(--text); font-weight: 700; }

.notice-strip { margin-top: 10px; padding: 9px 12px; border-radius: 4px; color: #184e65; border-color: #7dbbd5; background: #eef7fb; }
.notice-strip.review { color: #664d03; border-color: #e4bd55; background: #fff8e1; }
.raw-details summary { color: #a94e00; }
.detail-grid { border-color: var(--line); border-radius: 4px; background: var(--line); }
.detail-grid > div { padding: 10px; background: #fff; }
.detail-grid dt { color: #6f7d89; }
.detail-grid dd { color: var(--text); }

.ticket-modal-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #cfd4d8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(34,53,72,.16);
}
.ticket-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--soft-gray); }
.ticket-title-line { display: flex; align-items: center; gap: 9px; }
.ticket-title-line h1 { margin: 0; color: var(--text); font-size: 22px; letter-spacing: -.02em; }
.ticket-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.ticket-kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.ticket-kpi-grid > div { min-height: 88px; padding: 13px 16px; background: #fff; }
.ticket-kpi-grid span:first-child { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ticket-kpi-grid strong { display: block; margin-top: 7px; color: var(--text); font-size: 23px; line-height: 1.1; }
.ticket-kpi-grid small { display: block; margin-top: 3px; color: var(--muted); }
.compact-detail-section { padding: 14px 18px 2px; }
.compact-section-header { margin-bottom: 8px; }
.compact-section-header h2 { margin: 0; color: var(--text); font-size: 14px; }
.compact-detail-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
.compact-detail-grid > div { min-height: 58px; padding: 8px 10px; }
.compact-detail-grid .wide-detail { grid-column: span 2; }
.calculation-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.compact-raw { margin: 14px 18px 18px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft-gray); }
.compact-raw[open] { background: #fff; }
.raw-grid { margin-top: 10px; grid-template-columns: repeat(4,minmax(0,1fr)); }

.hold-layout { width: min(1180px,100%); grid-template-columns: minmax(0,1fr) 300px; align-items: start; margin: 0 auto; }
.hold-layout > form { gap: 11px; }
.calculation-preview { position: sticky; top: 74px; padding: 16px; }
.calculation-preview h2 { margin: 6px 0 12px; color: var(--text); font-size: 34px; }
.formula { margin: 13px 0; padding: 10px; border-color: var(--line); border-radius: 4px; background: var(--soft-gray); }
.formula b { color: #b95600; }
.calc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.calc-facts span { display: grid; gap: 3px; padding: 9px; color: var(--muted); background: #fff; font-size: 10px; }
.calc-facts b { color: var(--text); font-size: 12px; }
.calc-result { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.edit-section { padding-top: 10px; border-color: var(--line); }
.edit-section h2 { color: var(--text); font-size: 16px; }
.field-note { color: var(--muted); }
.restore-field { color: var(--muted); }
.restore-field input { accent-color: var(--cyan); }
.permission-list p { border-color: var(--line); border-radius: 4px; color: var(--muted); background: var(--soft-gray); }
.status-dot.enabled { background: #2a8b57; box-shadow: none; }
.inline-form input { background: #fff; }
.empty-state, .empty-cell { color: var(--muted); }
.error-card { background: #fff; }

::-webkit-scrollbar-track { background: #eef0f2; }
::-webkit-scrollbar-thumb { background: #aab4bd; border-color: #eef0f2; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
:focus-visible { outline-color: var(--cyan); }

@media (max-width: 1180px) {
  .compact-detail-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .calculation-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .topbar { padding: 8px 12px; }
  .page-shell { width: min(100% - 20px,1540px); padding-top: 17px; }
  .ticket-modal-header { align-items: flex-start; }
  .ticket-kpi-grid { grid-template-columns: repeat(2,1fr); }
  .compact-detail-grid, .calculation-grid, .raw-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hold-layout { grid-template-columns: 1fr; }
  .calculation-preview { position: static; }
}
@media (max-width: 520px) {
  .ticket-modal-header { flex-direction: column; }
  .ticket-title-line { align-items: flex-start; flex-direction: column; }
  .ticket-kpi-grid, .compact-detail-grid, .calculation-grid, .raw-grid, .data-facts { grid-template-columns: 1fr; }
  .compact-detail-grid .wide-detail { grid-column: span 1; }
}

/* Review and bulk update */
.badge.checked { color: #17653b; border-color: #91c9a7; background: #e8f5e9; }
.badge.unchecked { color: #59636f; border-color: #cfd4da; background: #f3f4f6; }
.badge.recheck { color: #8a3b00; border-color: #f1ad72; background: #fff1e6; }
.review-meta { margin-top: 10px; color: var(--muted); font-size: 11px; text-align: right; }
.heading-actions form { display: inline-flex; margin: 0; }
.bulk-source-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.bulk-source-card { display: grid; align-content: start; gap: 12px; }
.bulk-source-card h2 { margin: 0; font-size: 20px; }
.bulk-step-actions { display: grid; gap: 10px; }
.compact-upload-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.compact-upload-form input[type="file"] { min-width: 0; padding: 8px; background: var(--soft-gray); }
.bulk-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.metric-card .status-word { font-size: 18px; }
.change-row { display: grid; grid-template-columns: minmax(110px,.7fr) minmax(120px,1fr) auto minmax(120px,1fr); gap: 8px; align-items: start; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.change-row:last-child { border-bottom: 0; }
.change-row span { color: var(--muted); font-weight: 700; }
.change-row del { color: #8a3b00; text-decoration-color: #e7a470; overflow-wrap: anywhere; }
.change-row ins { color: #17653b; text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.change-row b { color: var(--muted); }
.error-copy { display: block; max-width: 360px; margin-top: 5px; color: #8a3b00; }
.confirm-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; }
.confirm-bar form { margin: 0; }
@media (max-width: 900px) {
  .bulk-source-grid, .bulk-metrics { grid-template-columns: 1fr 1fr; }
  .change-row { grid-template-columns: 1fr; gap: 3px; }
}
@media (max-width: 600px) {
  .bulk-source-grid, .bulk-metrics, .compact-upload-form { grid-template-columns: 1fr; }
  .confirm-bar { align-items: stretch; flex-direction: column; }
}

/* Region mapping, page access, and multi-value filters */
.setup-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.access-settings-form, .region-assignment-form { display: grid; gap: 12px; }
.access-page-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.access-page-grid .check-field { min-height: 30px; padding: 0; }
.access-page-grid small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.region-assignment-form { grid-template-columns: minmax(180px,260px) minmax(280px,1fr) auto; align-items: end; }
.region-assignment-form fieldset { min-width: 0; margin: 0; padding: 8px 12px 10px; border: 1px solid var(--line); border-radius: 4px; }
.region-assignment-form legend { padding: 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; }
.region-form-note { margin-top: 8px; font-size: 10px; }
.region-group-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.region-group-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft-gray); }
.region-group-card > strong { color: var(--text); font-size: 14px; }
.region-group-card .button { justify-self: start; }
.filter-multi { position: relative; min-width: 150px; }
.filter-multi summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 36px; padding: 5px 10px; border: 1px solid #bcc5cc; border-radius: 4px; color: var(--text); background: #fff; cursor: pointer; list-style: none; }
.filter-multi summary::-webkit-details-marker { display: none; }
.filter-multi summary span { color: var(--muted); font-size: 10px; font-weight: 700; }
.filter-multi summary b { color: var(--text); font-size: 11px; }
.filter-multi > div { position: absolute; top: calc(100% + 4px); left: 0; z-index: 25; display: grid; gap: 2px; min-width: 230px; max-height: 280px; overflow: auto; padding: 7px; border: 1px solid #bcc5cc; border-radius: 4px; background: #fff; box-shadow: 0 10px 26px rgba(34,53,72,.18); }
.filter-multi > div label { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 6px; border-radius: 3px; cursor: pointer; }
.filter-multi > div label:hover { background: var(--soft-gray); }
.filter-multi input { width: auto; min-height: 0; margin: 0; accent-color: var(--cyan); }
.filter-multi small { display: block; color: var(--muted); font-size: 9px; }
.cascade-builder { display: grid; gap: 15px; }
.saved-filter-name { display: grid; grid-template-columns: minmax(260px,520px) auto; gap: 10px; align-items: end; }
.saved-filter-name .button { justify-self: start; }
.cascade-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.cascade-level { min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft-gray); }
.cascade-level legend { padding: 0 6px; color: var(--text); font-size: 12px; font-weight: 800; }
.cascade-level legend b { display: inline-grid; width: 20px; height: 20px; margin-right: 5px; place-items: center; border-radius: 50%; color: #fff; background: var(--cyan); font-size: 10px; }
.cascade-options { display: grid; align-content: start; gap: 2px; max-height: 270px; overflow: auto; }
.cascade-options label { display: flex; align-items: center; gap: 8px; min-height: 31px; padding: 5px 7px; border-radius: 3px; cursor: pointer; }
.cascade-options label:hover { background: #fff; }
.cascade-options input { width: auto; min-height: 0; margin: 0; accent-color: var(--cyan); }
.cascade-options span { overflow-wrap: anywhere; }
.cascade-note { margin: 0; color: var(--muted); font-size: 11px; }
.filter-rule-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-rule-tags > span { display: inline-flex; gap: 5px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft-gray); font-size: 10px; }
.filter-rule-tags b { color: var(--muted); }
@media (max-width: 900px) {
  .setup-grid { grid-template-columns: 1fr 1fr; }
  .region-assignment-form { grid-template-columns: 1fr; align-items: stretch; }
  .cascade-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .setup-grid, .region-group-grid { grid-template-columns: 1fr; }
  .saved-filter-name { grid-template-columns: 1fr; }
  .filter-multi { min-width: calc(50% - 8px); flex: 1; }
  .filter-multi > div { position: fixed; right: 12px; left: 12px; top: auto; min-width: 0; }
}

/* NOC admin bulk deletion */
.ticket-bulk-form { margin: 0; }
.bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--soft-gray); }
.bulk-toolbar > div { display: flex; align-items: center; gap: 12px; }
.bulk-selection-label { color: var(--muted); font-size: 11px; }
.bulk-selection-label b { color: var(--text); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.ticket-select-column { width: 44px; min-width: 44px; max-width: 44px; text-align: center; }
.ticket-table th.ticket-select-column, .ticket-table td.ticket-select-column { padding-right: 6px; padding-left: 6px; }
.ticket-select-column input[type="checkbox"] { width: auto; min-width: 16px; min-height: 0; margin: 0; accent-color: var(--cyan); }
@media (max-width: 600px) {
  .bulk-toolbar { align-items: stretch; flex-direction: column; }
  .bulk-toolbar > div { justify-content: space-between; }
  .bulk-toolbar .button { width: 100%; }
}

/* Performance dashboard */
.dashboard-page { max-width: 1540px; margin: 0 auto; }
.dashboard-heading { align-items: flex-end; }
.dashboard-heading-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-result-count { padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--soft-gray); font-size: 11px; font-weight: 700; }
.dashboard-filter-card { margin-bottom: 14px; padding: 13px; }
.dashboard-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.dashboard-filter-heading strong { display: block; margin-top: 4px; color: var(--text); font-size: 15px; }
.dashboard-filter-heading > .muted { font-size: 11px; }
.dashboard-filter-bar { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.dashboard-filter-bar > label { min-width: 145px; flex: 1 1 145px; }
.dashboard-filter-bar > label select { min-width: 0; }
.dashboard-filter-multi { min-width: 160px; flex: 1 1 160px; }
.dashboard-filter-multi > div { min-width: 240px; }
.dashboard-filter-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.dashboard-section { margin-top: 19px; }
.dashboard-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 2px 9px; }
.dashboard-section-heading h2 { margin: 4px 0 0; color: var(--text); font-size: 20px; letter-spacing: -.02em; }
.dashboard-section-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: right; }
.dashboard-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.dashboard-kpi-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--dashboard-accent, var(--cyan)); border-radius: 6px; background: #fff; box-shadow: var(--shadow); }
.dashboard-kpi-card.six { --dashboard-accent: #e9730c; }.dashboard-kpi-card.twenty-four { --dashboard-accent: #7654a6; }.dashboard-kpi-card.mttr-six { --dashboard-accent: #377bb5; }.dashboard-kpi-card.mttr-twenty-four { --dashboard-accent: #b47700; }
.dashboard-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-kpi-mark { color: var(--dashboard-accent); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.dashboard-kpi-card > strong { display: block; margin: 12px 0 2px; color: var(--text); font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.dashboard-kpi-card > strong .unit { margin-left: 4px; color: var(--muted); font-size: 14px; letter-spacing: 0; }
.dashboard-kpi-label { display: block; color: var(--text); font-size: 12px; font-weight: 800; }
.dashboard-kpi-card > small { display: block; min-height: 28px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.dashboard-progress, .dashboard-kpi-target { height: 5px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #edf0f2; }
.dashboard-progress i, .dashboard-kpi-target i { display: block; height: 100%; border-radius: inherit; background: var(--dashboard-accent); }
.dashboard-kpi-target { background: linear-gradient(to right, #edf0f2 0 50%, #fff4e8 50% 100%); }
.dashboard-chart-grid, .dashboard-table-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.dashboard-chart-card, .dashboard-table-card { min-width: 0; padding: 15px; overflow: hidden; }
.dashboard-chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dashboard-chart-header h3 { margin: 4px 0 0; color: var(--text); font-size: 15px; letter-spacing: -.01em; }
.chart-unit { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 800; }
.dashboard-horizontal-chart { display: grid; align-content: start; gap: 8px; min-height: 118px; }
.dashboard-bar-row { display: grid; grid-template-columns: minmax(120px,.8fr) minmax(100px,1.55fr) 52px; align-items: center; gap: 9px; min-width: 0; }
.dashboard-bar-label { display: grid; min-width: 0; gap: 2px; }
.dashboard-bar-label span { overflow: hidden; color: var(--text); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-bar-label small { color: var(--muted); font-size: 9px; }
.dashboard-bar-track { height: 13px; overflow: hidden; border-radius: 2px; background: #eef0f2; }
.dashboard-bar-track i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #e9730c, #f3a15c); }
.dashboard-bar-row strong { color: var(--text); font-size: 11px; text-align: right; }
.dashboard-bar-row:nth-child(even) .dashboard-bar-track i { background: linear-gradient(90deg, #377bb5, #80abd0); }
.dashboard-chart-card:nth-child(2) .dashboard-bar-track i, .dashboard-chart-card:nth-child(4) .dashboard-bar-track i { background: linear-gradient(90deg, #7654a6, #aa8bcf); }
.dashboard-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.legend-chip { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; }
.legend-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9ba6af; }
.legend-chip.six::before { background: #e9730c; }.legend-chip.twenty-four::before { background: #7654a6; }.legend-chip.mttr::before { background: #e9730c; }.legend-chip.target::before { background: #687786; }
.dashboard-vertical-chart { display: flex; align-items: stretch; gap: 7px; min-height: 250px; padding: 8px 3px 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.dashboard-month-column { display: grid; grid-template-rows: 1fr auto; flex: 1 0 48px; min-width: 48px; min-height: 235px; gap: 7px; text-align: center; }
.dashboard-month-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; min-height: 210px; border-bottom: 1px dashed #dfe3e6; background: repeating-linear-gradient(to top, transparent 0, transparent 51px, rgba(217,218,221,.55) 52px); }
.dashboard-month-bar-group { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; width: 18px; height: 100%; }
.dashboard-month-bar-group span { min-height: 12px; color: var(--muted); font-size: 8px; font-weight: 800; }
.dashboard-month-bar-group i { display: block; width: 16px; min-height: 1px; border-radius: 2px 2px 0 0; background: #e9730c; }
.dashboard-month-bar-group i.twenty-four { background: #7654a6; }
.dashboard-month-column > small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.dashboard-line-chart { display: block; width: 100%; height: 300px; overflow: visible; }
.dashboard-grid-line { stroke: #e3e6e8; stroke-width: 1; }
.dashboard-line-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-line-point { stroke: #fff; stroke-width: 2; }
.dashboard-axis-label { fill: #687786; font-family: "Segoe UI",Arial,sans-serif; font-size: 11px; }
.dashboard-x-label { font-size: 10px; }
.dashboard-no-data { display: grid; place-items: center; min-height: 118px; color: var(--muted); font-size: 11px; text-align: center; }
.dashboard-no-data-svg { fill: #687786; font-family: "Segoe UI",Arial,sans-serif; font-size: 13px; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-summary-table { min-width: 680px; }
.dashboard-summary-table th { min-width: 0; padding: 9px 8px; font-size: 9px; }
.dashboard-summary-table td { padding: 9px 8px; font-size: 11px; }
.dashboard-summary-table td:not(:first-child) { text-align: right; }
.table-rate { font-weight: 850; }.table-rate.good { color: #237748; }.table-rate.watch { color: #a56600; }.table-rate.risk { color: #b12e3c; }
@media (max-width: 1120px) {
  .dashboard-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-filter-bar > label { min-width: 180px; }
}
@media (max-width: 820px) {
  .dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .dashboard-section-heading p { max-width: none; text-align: left; }
  .dashboard-chart-grid, .dashboard-table-grid { grid-template-columns: 1fr; }
  .dashboard-filter-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .dashboard-filter-heading > .muted { text-align: left; }
}
@media (max-width: 600px) {
  .dashboard-kpi-grid { grid-template-columns: 1fr; }
  .dashboard-heading-meta, .dashboard-heading-meta .button { width: 100%; }
  .dashboard-heading-meta .button { flex: 1; }
  .dashboard-filter-bar > label, .dashboard-filter-multi { min-width: 100%; }
  .dashboard-filter-actions { width: 100%; margin-left: 0; }
  .dashboard-filter-actions .button { flex: 1; }
  .dashboard-bar-row { grid-template-columns: minmax(100px,.9fr) minmax(80px,1.2fr) 48px; gap: 6px; }
}
