@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #101a24;
  --sidebar: #0b141d;
  --surface: #16232f;
  --surface-2: #1b2b39;
  --surface-hover: #213442;
  --border: #2a3c4a;
  --text: #edf4f7;
  --muted: #9aabb6;
  --green: #53d3a1;
  --green-dark: #163b32;
  --red: #ff7272;
  --red-dark: #47252a;
  --amber: #f2bd63;
  --amber-dark: #45371f;
  --blue: #7bb8fa;
  --radius: 14px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button, .nav-link, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #63d7ad; outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { width: 250px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 24px 14px 18px; background: var(--sidebar); border-right: 1px solid #1e2a34; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 30px; }
.brand b { display: block; font-size: 15px; letter-spacing: .01em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #1a433b; color: var(--green); }
.brand-mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 12px; }
.brand-mark.small svg { width: 22px; height: 22px; }
.nav-list { display: grid; gap: 5px; }
.nav-link { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #adbac4; border-radius: 10px; transition: background .18s ease, color .18s ease; }
.nav-link:hover { background: #14232d; color: var(--text); }
.nav-link.active { background: #1b342f; color: #7ee1ba; font-weight: 600; }
.nav-icon { width: 20px; text-align: center; font-size: 17px; color: #8ba0ad; }
.nav-link.active .nav-icon { color: var(--green); }
.nav-badge { margin-left: auto; min-width: 22px; padding: 1px 6px; border-radius: 99px; background: #b34949; color: white; text-align: center; font-size: 12px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; padding: 18px 7px 0; border-top: 1px solid #1e2a34; }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #284052; color: #d7e7ef; font-weight: 700; }
.user-copy { min-width: 0; }
.user-copy b, .user-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-copy b { font-size: 13px; }
.user-copy small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.logout-button { margin: 15px 0 0 46px; padding: 4px 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.logout-button:hover { color: var(--text); }
.main-content { min-height: 100vh; margin-left: 250px; }
.topbar { height: 66px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 0 34px; background: rgb(16 26 36 / 94%); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.topbar-title { font-size: 14px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 9px; margin-left: auto; font-size: 13px; }
.topbar-date { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border); color: #d9e2e7; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(83 211 161 / 12%); }
.menu-toggle { display: none; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 32px 34px 64px; }
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.page-title-row h1 { margin: 3px 0 4px; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.035em; }
.page-title-row p { margin: 0; }
.eyebrow { margin: 0; color: #6e8797; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.muted { color: var(--muted); }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 650; transition: background .18s ease, border-color .18s ease, transform .12s ease; }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button-primary { background: var(--green); color: #10231f; }
.button-primary:hover:not(:disabled) { background: #71e1b7; }
.button-secondary { background: #294253; color: #e6f1f6; }
.button-secondary:hover { background: #35566b; }
.button-quiet { border-color: var(--border); background: var(--surface); color: #dce7ec; }
.button-quiet:hover { background: var(--surface-hover); border-color: #496071; }
.button-danger { background: #a63d45; color: white; }
.button-danger:hover { background: #bf4b53; }
.button-wide { width: 100%; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.metric-card { min-height: 132px; position: relative; overflow: hidden; padding: 19px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, #192a37, #14222d); }
.metric-label { color: #afbdc6; font-size: 13px; font-weight: 550; }
.metric-value { margin-top: 7px; font-size: 34px; font-weight: 720; line-height: 1.08; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-value.metric-text { font-size: 20px; letter-spacing: -.02em; }
.metric-note { margin-top: 7px; color: #8194a0; font-size: 12px; }
.metric-symbol { position: absolute; top: 15px; right: 17px; color: #557180; font-size: 21px; }
.metric-red { border-color: #58323a; background: linear-gradient(135deg, #38242b, #201c26); }
.metric-red .metric-value, .text-danger { color: var(--red); }
.metric-red .metric-symbol { color: #c16b70; }
.metric-amber { border-color: #59482c; background: linear-gradient(135deg, #352d21, #211f20); }
.metric-amber .metric-value { color: var(--amber); }
.metric-amber .metric-symbol { color: #bd9958; }
.panel { margin-bottom: 18px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.filter-bar { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--border); }
.filter-bar select, .filter-bar input, .report-filters label input { min-height: 42px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; background: #101d27; color: var(--text); }
.filter-bar select { max-width: 190px; }
.search-box { min-width: 180px; flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: #101d27; color: #91a7b5; }
.search-box input { min-width: 0; width: 100%; min-height: 40px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input:focus-visible { outline: 0; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.data-table th { padding: 12px 15px; border-bottom: 1px solid var(--border); background: #14212b; color: #9eafba; font-size: 11px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 13px 15px; border-bottom: 1px solid #263541; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #1a2b37; }
.data-table .row-critical { background: #352128; }
.data-table .row-critical:hover { background: #462930; }
.data-table .row-repeat { background: #302b20; }
.data-table .row-repeat:hover { background: #3b3423; }
.ticket-number { color: #80c5ff; font-weight: 750; font-variant-numeric: tabular-nums; }
.ticket-number:hover { text-decoration: underline; text-underline-offset: 3px; }
.table-sub { margin-top: 3px; color: #899da9; font-size: 11px; }
.description-cell { max-width: 390px; margin-top: 3px; color: #c3d0d7; }
.tag, .status { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border-radius: 5px; font-size: 10px; font-weight: 800; letter-spacing: .035em; white-space: nowrap; }
.tag-critical { margin-bottom: 4px; background: #672b33; color: #ffb8bc; }
.tag-outage { margin-top: 4px; background: #4a2930; color: #ffaaa9; }
.tag-repeat { margin-top: 4px; background: #564425; color: #f3cd81; }
.status { padding: 4px 8px; background: #263b48; color: #c2d4de; font-size: 11px; letter-spacing: 0; }
.status-new { background: #403922; color: #f1cf76; }
.status-accepted { background: #1d3b50; color: #9bd0ff; }
.status-completed { background: #1c463a; color: #8ce1be; }
.status-reopened { background: #4b2b34; color: #ffb2b5; }
.empty-state { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); text-align: center; }
.empty-state b { color: #e2ebef; font-size: 15px; }
.empty-icon { color: #638091; font-size: 26px; }
.panel-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12px; }
.form-panel { max-width: 900px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form-section + .form-section { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-section h2, .panel h2 { margin: 0 0 16px; font-size: 16px; letter-spacing: -.01em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .stack-form > label { color: #d6e0e5; font-size: 13px; font-weight: 600; }
.field-full { grid-column: 1 / -1; }
.required { margin-left: 3px; color: #ff8a8a; }
.field input, .field select, .field textarea, .stack-form input, .stack-form textarea, .mini-form select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #344957; border-radius: 8px; background: #101d27; color: var(--text); }
.field textarea, .stack-form textarea { min-height: 96px; resize: vertical; }
.field-help { color: #8599a5; font-size: 12px; }
.field-error { color: #ff9898; font-size: 12px; }
.field-error ul { margin: 0; padding-left: 17px; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check-card { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #12202a; color: #cbd8de; cursor: pointer; font-size: 13px; }
.check-card:has(input:checked) { border-color: #9d563f; background: #39262a; color: #ffe0cf; }
.check-card input { width: 18px; height: 18px; accent-color: var(--green); }
.outage-fields { margin-top: 15px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 18px; }
.detail-main, .detail-side .panel { padding: 21px; }
.detail-side { display: grid; gap: 14px; }
.detail-side .panel { margin: 0; }
.detail-status-row { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 19px; border-bottom: 1px solid var(--border); }
.detail-block { padding: 19px 0; border-bottom: 1px solid var(--border); }
.detail-block:last-child { border-bottom: 0; }
.detail-block h2 { margin: 0 0 8px; color: #91a5b0; font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.detail-block p { margin: 0; color: #e0e9ed; }
.preserve-lines { white-space: pre-line; }
.outage-block { padding: 16px; border: 1px solid #58343b; border-radius: 10px; background: #2a2028; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0; }
.detail-facts span, .detail-facts b { display: block; }
.detail-facts span, .side-fact span { color: var(--muted); font-size: 12px; }
.detail-facts b { margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.side-fact { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #263541; }
.side-fact b { max-width: 65%; text-align: right; font-size: 13px; }
.mini-form { display: grid; gap: 9px; margin-top: 14px; }
.mini-form select { padding: 8px; }
.sla-box { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 8px; background: #273d37; color: #a9e9ce; font-size: 12px; }
.sla-box b { font-variant-numeric: tabular-nums; }
.sla-late { background: #4a292d; color: #ffb2b2; }
.action-panel { display: grid; gap: 14px; }
.action-panel h2 { margin-bottom: 0; }
.stack-form { display: grid; gap: 9px; }
.related-list { display: grid; gap: 7px; }
.related-list a { color: #89c5fa; font-size: 13px; }
.related-list a:hover { text-decoration: underline; }
.timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; display: flex; gap: 12px; padding: 0 0 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { position: absolute; top: 10px; bottom: 0; left: 4px; width: 1px; background: #38505f; content: ""; }
.timeline-dot { z-index: 1; width: 9px; height: 9px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--green); }
.timeline li b, .timeline li span:not(.timeline-dot) { display: block; }
.timeline li b { font-size: 13px; }
.timeline li div > span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.timeline li p { margin: 5px 0 0; color: #c6d2d8; font-size: 13px; white-space: pre-line; }
.report-filters { flex-wrap: wrap; border: 0; }
.report-filters label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.report-filters label input { color-scheme: dark; }
.report-metrics { margin-top: 18px; }
.report-summary { display: flex; align-items: center; min-height: 88px; padding: 18px 22px; }
.report-summary span, .report-summary b { display: block; }
.report-summary span { color: var(--muted); font-size: 13px; }
.report-summary b { margin-top: 5px; font-size: 20px; }
.panel-heading { padding: 18px 18px 0; }
.panel-heading h2 { margin-bottom: 3px; }
.panel-heading p { margin: 0 0 14px; font-size: 12px; }
.report-hint { font-size: 12px; }
.notification-list { display: grid; gap: 10px; }
.notice-card { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: inherit; cursor: pointer; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.notice-card:hover { background: var(--surface-hover); border-color: #9bbbd3; box-shadow: 0 5px 16px rgb(41 87 119 / 10%); }
.notice-card.is-unread { border-left: 4px solid #3277b8; }
.notice-card.is-focused { outline: 3px solid #9bc9e9; outline-offset: 2px; scroll-margin-top: 80px; }
.notice-mark { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--green-dark); color: var(--green); font-size: 18px; }
.notice-copy { min-width: 0; flex: 1; }
.notice-copy b, .notice-copy span { display: block; }
.notice-copy b, .notice-title { color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.notice-copy span { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.notice-card time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.notice-title:hover, .notice-ticket-link:hover { color: #2878b8; text-decoration: underline; }
.notice-ticket-link { display: inline-block; margin-top: 7px; color: #2878b8; font-size: 12px; text-decoration: none; }
.notice-meta { display: grid; justify-items: end; gap: 5px; }
.notice-meta > span { color: var(--muted); font-size: 11px; }
.notice-card.is-unread .notice-meta > span { color: #2878b8; font-weight: 700; }
.notice-card.is-completed { background: #eef9f2; border-color: #c9e8d3; }
.notice-card.is-not-completed { background: #fff2f1; border-color: #f0d0cf; }
.notice-card.is-completed:hover { background: #e5f5e9; border-color: #8dc99e; }
.notice-card.is-not-completed:hover { background: #ffe9e7; border-color: #e6aaa8; }
.notice-status { margin-top: 5px; font-size: 12px; font-weight: 650; }
.notice-card.is-completed .notice-status { color: #237a4b; }
.notice-card.is-not-completed .notice-status { color: #a54747; }
.notification-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.notification-pagination > span { color: var(--muted); font-size: 13px; }
.server-clock { display: grid; justify-items: end; gap: 0; margin-left: 7px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.server-clock-line { display: flex; align-items: center; gap: 8px; }
.server-clock [data-server-date] { color: #526477; }
.server-clock [data-server-time] { color: #334155; }
.server-clock small { color: #718096; font-size: 10px; }
.push-panel { display: flex; align-items: center; gap: 20px; padding: 23px; }
.push-panel h2 { margin-bottom: 3px; }
.push-panel p { margin: 0 0 14px; }
.push-symbol { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: #1c3a47; color: #8ccdf0; }
.push-symbol svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.note-box { display: flex; gap: 13px; margin-top: 17px; padding: 15px 17px; border: 1px solid #3b5360; border-radius: 10px; background: #152630; color: #bdcbd2; font-size: 13px; }
.note-box b { color: #e7eff2; white-space: nowrap; }
.settings-form { margin-bottom: 18px; }
.settings-tabs { display: flex; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--border); }
.settings-tab { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.settings-tab:hover { color: var(--text); background: var(--surface-hover); }
.settings-tab.active { border-bottom-color: var(--blue); color: #245d8a; }
.toggle-row { flex-direction: row; align-items: center; min-height: 44px; color: #d6e0e5; font-weight: 600; }
.toggle-row input { width: 19px; height: 19px; accent-color: var(--green); }
.alert { margin-bottom: 14px; padding: 11px 14px; border: 1px solid #426958; border-radius: 8px; background: #1b332d; color: #b5eed7; font-size: 13px; }
.alert-danger { border-color: #744249; background: #3e252a; color: #ffc2c2; }
.alert-success { border-color: #426958; background: #1b332d; color: #b5eed7; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 20%, #1c3340, #101a24 48%); }
.login-card { width: min(100%, 420px); padding: 35px; border: 1px solid var(--border); border-radius: 18px; background: #15232e; box-shadow: 0 24px 80px rgb(0 0 0 / 25%); }
.login-card .brand-mark { margin-bottom: 21px; }
.login-card h1 { margin: 4px 0; font-size: 27px; letter-spacing: -.03em; }
.login-card > .muted { margin: 0 0 23px; }
.login-card .stack-form { gap: 8px; }
.login-card .stack-form label { margin-top: 8px; }
.login-card .button { margin-top: 15px; }
.login-foot { margin: 19px 0 0; text-align: center; font-size: 12px; }
.login-card input { min-height: 46px; padding: 10px 12px; border: 1px solid #344957; border-radius: 8px; background: #101d27; color: var(--text); }
.title-actions { display: flex; gap: 8px; }
.sidebar-scrim { display: none; }

/* Shared light palette for desktop, mobile, forms and status states. */
:root {
  color-scheme: light;
  --bg: #f2f6fa;
  --sidebar: #ffffff;
  --surface: #ffffff;
  --surface-2: #edf4fa;
  --surface-hover: #e8f2fb;
  --border: #d9e3ec;
  --text: #1e293b;
  --muted: #64748b;
  --green: #159a7b;
  --green-dark: #dcf4eb;
  --red: #c2414d;
  --red-dark: #fde8e9;
  --amber: #a86508;
  --amber-dark: #fff3d8;
  --blue: #3277b8;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: #78aeda; }
.sidebar, .sidebar-bottom { border-color: var(--border); }
.brand-mark { background: #e1f3ef; }
.nav-link { color: #526477; }
.nav-link:hover, .nav-link.active { background: #e8f2fb; color: #245d8a; }
.nav-link.active .nav-icon, .nav-icon { color: #64849e; }
.nav-link.active .nav-icon { color: #3277b8; }
.avatar { background: #dcecf8; color: #28577b; }
.topbar { background: rgb(255 255 255 / 94%); }
.topbar-date { color: #526477; }
.eyebrow { color: #5f7b91; }
.button-primary { color: #ffffff; }
.button-primary:hover:not(:disabled) { background: #11876d; }
.button-secondary { background: #e5eff8; color: #28577b; }
.button-secondary:hover { background: #d7e8f5; }
.button-quiet { color: #334155; }
.button-quiet:hover { border-color: #b8cbdc; }
.metric-card { background: linear-gradient(135deg, #ffffff, #f4f8fc); }
.metric-label { color: #526477; }
.metric-note, .table-sub { color: #718096; }
.metric-symbol { color: #7b9bb4; }
.metric-red { border-color: #f0c9cd; background: linear-gradient(135deg, #fff7f7, #fff0f1); }
.metric-red .metric-value { color: #c2414d; }
.metric-amber { border-color: #f0ddb9; background: linear-gradient(135deg, #fffaf0, #fff4df); }
.metric-amber .metric-value { color: #a86508; }
.filter-bar select, .filter-bar input, .report-filters label input, .search-box,
.field input, .field select, .field textarea, .stack-form input, .stack-form textarea, .mini-form select, .login-card input {
  border-color: #cad8e5; background: #ffffff; color: var(--text);
}
.search-box { color: #668099; }
.data-table th { background: #edf4fa; color: #5d7184; }
.data-table td { border-color: #e5ebf1; }
.data-table tbody tr:hover { background: #f5f9fc; }
.data-table .row-critical, .data-table .row-critical:hover { background: #fff1f1; }
.data-table .row-repeat, .data-table .row-repeat:hover { background: #fff8e9; }
.ticket-number, .related-list a { color: #2878b8; }
.description-cell, .timeline li p, .detail-block p { color: #334155; }
.tag-critical, .tag-outage { background: #fde7e8; color: #a3333d; }
.tag-repeat { background: #fff0cc; color: #875500; }
.status { background: #e8eef4; color: #475569; }
.status-new { background: #fff0cc; color: #875500; }
.status-accepted { background: #e2f0fc; color: #245d8a; }
.status-completed { background: #dcf4eb; color: #147253; }
.status-reopened { background: #fde7e8; color: #a3333d; }
.empty-state b { color: #334155; }
.field > label, .stack-form > label, .toggle-row { color: #334155; }
.field-help { color: #64748b; }
.check-card { background: #f6f9fc; color: #334155; }
.check-card:has(input:checked) { border-color: #8fc9b5; background: #e5f5ef; color: #235c49; }
.detail-block h2 { color: #647b8e; }
.outage-block { border-color: #f0c9cd; background: #fff4f4; }
.side-fact { border-color: #e5ebf1; }
.sla-box { background: #e3f4ec; color: #286c52; }
.sla-late { background: #fde8e9; color: #a3333d; }
.timeline li:not(:last-child)::before { background: #cad8e5; }
.report-filters label { color: #526477; }
.report-filters label input { color-scheme: light; }
.notice-mark { background: #dcf4eb; color: #147253; }
.push-symbol { background: #e4f1fb; color: #3277b8; }
.note-box { border-color: #d0e0ed; background: #edf5fb; color: #526477; }
.note-box b { color: #334155; }
.alert, .alert-success { border-color: #b9e2d2; background: #e6f6ef; color: #246749; }
.alert-danger { border-color: #efc2c7; background: #fff0f1; color: #a3333d; }
.login-page { background: radial-gradient(circle at 50% 20%, #e5f2fc, #f2f6fa 54%); }
.login-card { border-color: var(--border); background: #ffffff; box-shadow: 0 24px 80px rgb(46 77 105 / 12%); }
.sidebar-scrim { background: rgb(30 41 59 / 35%); }

.field-control-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 8px; }
.quick-add-trigger { min-height: 44px; padding: 0 12px; white-space: nowrap; }
.quick-dialog { width: min(480px, calc(100vw - 28px)); max-height: min(85vh, 760px); padding: 22px; overflow-y: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 24px 80px rgb(30 50 70 / 22%); }
.quick-dialog::backdrop { background: rgb(30 41 59 / 42%); backdrop-filter: blur(2px); }
.quick-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.quick-dialog-head h2 { margin: 3px 0 0; font-size: 20px; }
.quick-dialog > .muted { margin: 8px 0 18px; }
.quick-dialog form { display: grid; gap: 13px; }
.quick-dialog .field > label { color: #334155; }
.quick-dialog .field input, .quick-dialog .field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #cad8e5; border-radius: 8px; background: #fff; color: var(--text); }
.quick-dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 4px; }
.quick-dialog-actions .button { min-height: 44px; }
.quick-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #526477; font-size: 25px; line-height: 1; cursor: pointer; }
.quick-form-errors { color: #a3333d; font-size: 13px; }
.quick-form-errors:empty { display: none; }

@media (max-width: 1100px) {
  .sidebar { width: 225px; }
  .main-content { margin-left: 225px; }
  .page-content { padding-right: 24px; padding-left: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .metric-grid { gap: 10px; }
  .metric-card { padding: 17px; }
  .filter-bar { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .sidebar { width: 285px; max-width: calc(100vw - 50px); transform: translateX(-102%); transition: transform .22s ease; }
  .menu-open .sidebar { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 15; background: rgb(0 0 0 / 55%); }
  .menu-open .sidebar-scrim { display: block; }
  .main-content { margin-left: 0; }
  .topbar { height: 58px; padding: 0 16px; }
  .menu-toggle { width: 42px; height: 42px; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: #526477; }
  .topbar-date { display: none; }
  .page-content { padding: 23px 14px 45px; }
  .page-title-row { align-items: flex-start; }
  .page-title-row > .button { flex: 0 0 auto; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { min-height: 115px; padding: 14px; }
  .metric-value { font-size: 29px; }
  .metric-note { max-width: 120px; }
  .filter-bar { align-items: stretch; }
  .filter-bar select { max-width: none; flex: 1 1 40%; }
  .filter-bar .button { flex: 1; }
  .data-table { min-width: 840px; }
  .form-panel { padding: 18px 14px; }
  .field-control-row { grid-template-columns: 1fr; }
  .quick-add-trigger { justify-self: start; }
  .quick-dialog { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 13px; }
  .field-full { grid-column: auto; }
  .check-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { grid-row: 1; }
  .detail-side:not(:has(.action-panel)) { grid-row: auto; }
  .detail-main, .detail-side .panel { padding: 16px; }
  .detail-facts { grid-template-columns: 1fr; gap: 8px; }
  .detail-facts div { display: flex; justify-content: space-between; gap: 8px; }
  .detail-facts b { margin-top: 0; text-align: right; }
  .page-title-row:has(.title-actions) { flex-wrap: wrap; }
  .title-actions { width: 100%; }
  .title-actions .button { flex: 1; }
  .report-filters label { width: 100%; justify-content: space-between; }
  .report-filters label input { flex: 1; }
  .report-metrics .metric-card { min-height: 100px; }
  .push-panel { align-items: flex-start; padding: 17px; }
  .notice-card { align-items: flex-start; }
  .notice-card time { font-size: 10px; }
}
@media (max-width: 430px) {
  .page-title-row { gap: 10px; }
  .page-title-row h1 { font-size: 23px; }
  .page-title-row > .button { padding: 8px 10px; font-size: 12px; }
  .metric-label { max-width: 115px; font-size: 12px; }
  .metric-symbol { top: 12px; right: 12px; }
  .topbar-right .muted { display: none; }
  .login-card { padding: 25px 21px; }
  .notice-card { gap: 8px; padding: 12px; }
  .notice-card time { max-width: 68px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.list-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
.page-size-form, .page-size-form label, .page-links { display: flex; align-items: center; gap: 8px; }
.page-size-form label, .page-count { color: var(--muted); font-size: 13px; }
.page-size-form select { min-width: 76px; }
.page-links { margin-left: auto; }
@media (max-width: 560px) { .list-pagination { justify-content: center; } .page-count { order: -1; width: 100%; text-align: center; } .page-links { margin-left: 0; } }
