@charset "UTF-8";
:root {
  color-scheme: light;
  --red: #E30E13;
  --navy: #343E59;
  --ink: #252b39;
  --muted: #697286;
  --line: #e4e7ed;
  --soft: #f7f8fa;
  --white: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--white); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--white); font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #343e59; outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.login-view { width: min(100% - 36px, 440px); min-height: 100vh; margin: 0 auto; padding: clamp(32px, 8vh, 74px) 0 30px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.login-logo { display: block; width: 180px; height: auto; object-fit: contain; margin: 0 auto 26px; }
.eyebrow { margin: 0; color: var(--red); font-size: 11px; font-weight: 750; letter-spacing: .105em; line-height: 1.45; }
.login-view h1 { margin: 8px 0 0; color: var(--navy); font-size: clamp(30px, 6vw, 38px); font-weight: 720; letter-spacing: -.04em; line-height: 1.14; }
.role-subtitle { margin: 8px 0 17px; color: var(--muted); font-size: 15px; }
.demo-notice { width: fit-content; margin: 0 auto 19px; padding: 9px 13px; border: 1px solid #f0c6c8; border-radius: 8px; color: #8c1b20; background: #fffafa; font-size: 13px; font-weight: 560; }
.login-card { width: 100%; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 8px 28px rgb(37 43 57 / 6%); text-align: left; }
.field-group { min-width: 0; margin: 0 0 17px; }
.field-group label { display: block; margin: 0 0 7px; color: var(--navy); font-size: 14px; font-weight: 650; }
.field-group input, .field-group select, .field-group textarea { display: block; width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid #cbd0da; border-radius: 7px; color: var(--ink); background: var(--white); transition: border-color .15s ease, box-shadow .15s ease; }
.field-group textarea { min-height: 92px; resize: vertical; }
.field-group input:hover, .field-group select:hover, .field-group textarea:hover { border-color: #9299a9; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 78px; }
.password-toggle { position: absolute; top: 5px; right: 5px; min-width: 64px; min-height: 40px; padding: 6px 8px; border: 0; border-radius: 5px; color: var(--navy); background: transparent; cursor: pointer; font-size: 13px; font-weight: 650; }
.password-toggle:hover { background: var(--soft); }
.account-hint { margin: -5px 0 14px; color: var(--muted); font-size: 12px; }
.form-message { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; font-size: 13px; }
.error-message { border: 1px solid #f0c6c8; color: #8c1b20; background: #fff7f7; }
.success-message { border: 1px solid #c5e4d3; color: #205c3d; background: #f4fbf6; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 14px; font-weight: 680; transition: background-color .15s ease, border-color .15s ease, transform .08s ease; }
.button:active { transform: translateY(1px); }
.button-primary { color: var(--white); background: var(--red); }
.button-primary:hover { background: #c50c11; }
.button-primary:disabled { cursor: wait; opacity: .75; }
.login-submit { width: 100%; min-height: 50px; }
.button-secondary { border-color: #d9dde5; color: var(--navy); background: var(--white); }
.button-secondary:hover { border-color: var(--navy); background: var(--soft); }
.reset-disclaimer { max-width: 380px; margin: 21px auto 0; color: var(--muted); font-size: 12px; }
.workspace-view { min-height: 100vh; background: var(--white); }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand small { display: block; margin-top: 1px; color: var(--red); font-size: 9px; font-weight: 750; letter-spacing: .09em; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.role-badge { padding: 6px 11px; border: 1px solid #e1e4ea; border-radius: 999px; color: var(--navy); background: var(--soft); font-size: 12px; font-weight: 650; }
.workspace-content { width: min(100% - 40px, 1180px); margin: 0 auto; padding: 34px 0 28px; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.workspace-heading h1 { margin: 5px 0 3px; color: var(--navy); font-size: clamp(25px, 4vw, 32px); letter-spacing: -.035em; line-height: 1.2; }
.muted { margin: 0; color: var(--muted); }
.compact-notice { margin: 0 0 4px; white-space: nowrap; }
.state-panel { margin-bottom: 16px; }
.state-panel details { border: 1px solid var(--line); border-radius: 8px; }
.state-panel summary { min-height: 44px; padding: 10px 14px; color: var(--navy); cursor: pointer; font-size: 13px; font-weight: 650; }
.state-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 13px 13px; }
.state-button { min-height: 38px; padding: 7px 11px; border: 1px solid #d9dde5; border-radius: 6px; color: var(--navy); background: var(--white); cursor: pointer; font-size: 12px; font-weight: 600; }
.state-button:hover { border-color: var(--navy); background: var(--soft); }
.preview-state-message { margin: 0 0 16px; padding: 12px 15px; border: 1px solid #d9dde5; border-radius: 7px; color: var(--navy); background: var(--soft); }
.preview-state-message[data-state="error"] { border-color: #f0c6c8; color: #8c1b20; background: #fff7f7; }
.preview-state-message[data-state="loading"]::before { display: inline-block; width: 10px; height: 10px; margin-right: 9px; border: 2px solid #d4d8e0; border-top-color: var(--red); border-radius: 50%; content: ""; vertical-align: -1px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.metric-card { min-height: 101px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 2px 0 0; color: var(--navy); font-size: 26px; font-weight: 730; letter-spacing: -.04em; line-height: 1.3; }
.work-grid { display: grid; grid-template-columns: minmax(270px, .88fr) minmax(0, 1.35fr); align-items: start; gap: 17px; }
.panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 19px; letter-spacing: -.02em; }
.count-label { color: var(--muted); font-size: 12px; white-space: nowrap; }
.incident-list { display: grid; gap: 9px; margin: 15px 0 0; padding: 0; list-style: none; }
.incident-item button { width: 100%; display: block; padding: 13px 13px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); cursor: pointer; text-align: left; }
.incident-item button:hover { border-color: #aab1c0; background: #fcfcfd; }
.incident-item button[aria-current="true"] { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.incident-item strong { display: block; overflow: hidden; color: var(--navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.incident-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.incident-item .item-status { display: inline-block; width: fit-content; margin-top: 7px; padding: 2px 7px; border-radius: 999px; color: #4f5970; background: #f1f2f5; font-size: 10px; font-weight: 650; }
.empty-state { padding: 30px 14px; color: var(--muted); text-align: center; }
.empty-mark { display: grid; width: 38px; height: 38px; place-items: center; margin: 0 auto 8px; border-radius: 50%; color: var(--navy); background: var(--soft); font-size: 20px; font-weight: 700; }
.empty-state h3 { margin: 0 0 4px; color: var(--navy); font-size: 15px; }
.empty-state p { margin: 0; font-size: 13px; }
.detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; margin: 18px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.detail-fields div { min-width: 0; }
.detail-fields dt { margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.detail-fields dd { overflow-wrap: anywhere; margin: 0; color: var(--navy); font-size: 13px; font-weight: 620; }
.status-pill { flex: none; padding: 5px 9px; border: 1px solid #e2e5eb; border-radius: 999px; color: var(--navy); background: var(--soft); font-size: 11px; font-weight: 650; }
.subheading { margin: 0 0 10px; color: var(--navy); font-size: 14px; }
.timeline { display: grid; gap: 10px; margin: 0 0 18px; padding: 0 0 0 17px; color: var(--muted); font-size: 12px; }
.timeline li { padding-left: 2px; min-width: 0; overflow-wrap: anywhere; }
.timeline time { display: block; margin-bottom: 2px; color: var(--navy); font-size: 10px; font-weight: 650; }
.update-form { padding-top: 15px; border-top: 1px solid var(--line); }
.update-form > .eyebrow { margin-bottom: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.update-form .field-group { margin-bottom: 12px; }
.update-form .field-group label { font-size: 12px; }
.update-form .field-group input, .update-form .field-group select { min-height: 44px; padding: 9px 11px; font-size: 13px; }
.update-form .field-group textarea { min-height: 80px; padding: 9px 11px; font-size: 13px; }
.field-help { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; text-align: right; }
.update-form .button { width: 100%; min-height: 46px; }
.session-note { margin: 17px 0 4px; padding: 11px 13px; border-left: 3px solid var(--navy); color: var(--navy); background: var(--soft); font-size: 12px; }
.workspace-footer { padding-top: 11px; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .topbar { padding-right: 20px; padding-left: 20px; }
  .workspace-content { width: min(100% - 28px, 560px); padding-top: 26px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .compact-notice { white-space: normal; }
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics { gap: 9px; }
  .metric-card { min-height: 90px; padding: 12px; }
  .metric-card strong { font-size: 23px; }
}
@media (max-width: 420px) {
  .login-view { width: min(100% - 28px, 390px); padding-top: 34px; }
  .login-logo { width: 156px; margin-bottom: 22px; }
  .login-card { padding: 20px 17px; }
  .topbar { min-height: 66px; padding-right: 14px; padding-left: 14px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand img { width: 37px; height: 37px; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .button { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .role-badge { padding: 5px 8px; font-size: 11px; }
  .workspace-content { width: calc(100% - 24px); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card { padding: 10px 8px; }
  .metric-card span, .metric-card small { font-size: 10px; }
  .metric-card strong { font-size: 21px; }
  .panel { padding: 15px 13px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .detail-fields { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
