:root {
  --ink: #17212b;
  --muted: #68727d;
  --line: #e3e6e8;
  --soft: #f6f7f8;
  --danger: #a72d29;
  --warning: #8a5a00;
  --success: #27724c;
  --info: #315f82;
  --focus: #1769aa;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: #fff; color: var(--ink); line-height: 1.5; }
body::before { content: ""; position: fixed; z-index: 20; inset: 0 0 auto; height: 4px; background: #a7312c; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; opacity: 0.55; }
[hidden] { display: none !important; }
#railway-workspace { display: contents; }
.railway-login { width: min(100%, 430px); margin: auto; }
.railway-login h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin: 12px 0 28px; line-height: 1.15; }
.railway-login form { display: grid; gap: 18px; }
.railway-login input { width: 100%; margin-top: 6px; }
#railway-login-message { color: var(--muted); min-height: 1.5em; font-size: 0.9rem; }
.railway-account-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; width: 100%; font-size: 0.9rem; color: var(--muted); }
@media print { .railway-account-bar, .railway-login { display: none !important; } }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  transform: translateY(-160%);
  border-radius: 5px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(23, 105, 170, 0.28); outline-offset: 2px; }

.app-shell {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: clamp(42px, 7vh, 68px) 0 64px;
}

body:not(.result-view) { overflow-x: hidden; }
body:not(.result-view) .app-shell {
  display: flex;
  width: min(100% - 64px, 1020px);
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: 36px 0;
}
body:not(.result-view) .request-panel { width: 100%; padding-bottom: 0; }

.beta-notice {
  margin: 0 0 24px;
  padding: 12px 15px;
  border: 1px solid #e8dcc1;
  border-left: 3px solid #b0802d;
  border-radius: 6px;
  background: #fffbf2;
  color: #72551d;
  font-size: 0.78rem;
  line-height: 1.55;
}
.beta-notice p { margin: 0; }
.beta-notice strong { font-weight: 700; }

.request-panel { padding-bottom: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2.25rem, 5vw, 3.35rem); line-height: 1.06; letter-spacing: -0.045em; }
h2 { margin-bottom: 5px; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.2; letter-spacing: -0.025em; }
h3 { margin-bottom: 4px; font-size: 1rem; line-height: 1.35; }

.railway-heading { max-width: 850px; }
#request-title { margin-bottom: 12px; font-size: clamp(2rem, 4.3vw, 2.625rem); line-height: 1.12; letter-spacing: -0.04em; color: #15283b; }
.organization-name {
  margin-bottom: 9px;
  color: #a7312c;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.landing-instruction { margin-bottom: 0; color: var(--muted); font-size: 0.98rem; }
.report-form { display: block; margin-top: 28px; }
.report-form__fields {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) repeat(2, minmax(150px, 1fr)) 148px;
  align-items: end;
  gap: 12px;
}
.report-form__fields input, .report-form__fields .primary-button { min-height: 48px; }
.report-form__fields .primary-button { background: #15283b; }
.report-form__fields .primary-button:hover:not(:disabled) { background: #203d57; }
.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 12px; }

.field-group label,
.compact-field > span {
  display: block;
  margin-bottom: 6px;
  color: #48525d;
  font-size: 0.76rem;
  font-weight: 650;
}

input, select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #cfd4d8;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
input:hover:not(:disabled), select:hover:not(:disabled) { border-color: #a9b0b7; }

.primary-button,
.secondary-button,
.back-button,
.lc-detail-button,
.text-button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  font-weight: 650;
}
.primary-button { padding: 9px 20px; background: var(--ink); color: #fff; white-space: nowrap; }
.primary-button:hover:not(:disabled) { background: #000; }
.secondary-button, .back-button, .lc-detail-button { border: 1px solid #cfd4d8; background: #fff; color: var(--ink); }
.secondary-button:hover:not(:disabled), .back-button:hover:not(:disabled), .lc-detail-button:hover:not(:disabled) {
  border-color: #9ea6ad;
  background: var(--soft);
}

.field-help { margin: 8px 0 0; color: var(--muted); font-size: 0.7rem; }
.division-overview { margin-top: 32px; padding-top: 25px; border-top: 1px solid var(--line); }
.division-overview__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.division-overview__heading h2 { margin: 0; color: #15283b; font-size: 0.98rem; font-weight: 650; letter-spacing: -0.01em; }
.division-overview__heading p { margin: 0; color: var(--muted); font-size: 0.76rem; }
.division-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.division-choice {
  position: relative;
  min-height: 160px;
  padding: 22px;
  border: 1px solid #dce2e7;
  border-radius: 10px;
  background: #fff;
  color: #15283b;
  text-align: left;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}
.division-choice__arrow {
  position: absolute;
  right: 22px;
  top: 20px;
  color: #7b8995;
  font-size: 1.3rem;
  line-height: 1;
}
.division-choice__code, .division-choice__name { display: block; }
.division-choice__code { padding-right: 24px; font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.025em; }
.division-choice__name { margin-top: 7px; color: var(--muted); font-size: 0.8rem; }
.division-choice__period { display: block; margin-top: 7px; color: var(--muted); font-size: 0.68rem; line-height: 1.3; }
.division-choice__period[hidden] { display: none; }
.division-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 27px;
  margin-top: 20px;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 0.71rem;
  font-weight: 600;
  line-height: 1.35;
}
.division-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; }
.division-status--neutral { color: #667582; background: #f1f4f6; }
.division-status--danger { color: #a23a35; background: #fcf0ef; }
.division-status--success { color: #287052; background: #edf6f1; }
.division-status--warning { color: #8a5a00; background: #fff7e9; }
.division-choice:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #9facb7;
  box-shadow: 0 5px 18px rgba(21, 40, 59, 0.06);
}
.division-choice:active:not(:disabled) { transform: translateY(0); }
.division-choice:disabled { background: #fafafa; }
.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid #d7dce0;
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.inline-alert { margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-size: 0.82rem; }
.inline-alert--error { border: 1px solid #e6bfbd; background: #fff8f7; color: var(--danger); }
.report-workspace { padding-top: 0; }
.empty-state { display: none; }
body.result-view .request-panel { display: none; }
body.result-view .report-workspace { padding-top: 0; }

.job-state {
  display: flex;
  min-height: 120px;
  align-items: flex-start;
  gap: 13px;
  padding-top: 24px;
}
.job-state h2 { margin: -2px 0 2px; font-size: 1rem; letter-spacing: 0; }
.job-state p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.job-state--error .spinner { display: none; }
.job-state--error h2, .job-state--error p { color: var(--danger); }
.job-state .secondary-button { min-height: 36px; margin-top: 14px; padding: 6px 12px; font-size: 0.78rem; }

.division-header, .report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.division-refresh { min-height: 36px; padding: 6px 13px; font-size: 0.76rem; }
.division-result { margin: 24px 0 0; font-size: 0.9rem; font-weight: 650; }
.division-result--neutral { color: var(--muted); }
.division-result--danger { color: var(--danger); }
.division-result--success { color: var(--success); }
.back-link {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.back-link:hover { color: var(--ink); }
.report-period, .section-subtitle { margin: 0; color: var(--muted); font-size: 0.78rem; }
.status-chip { color: var(--muted); font-size: 0.72rem; font-weight: 650; white-space: nowrap; }
.status-chip--success { color: var(--success); }
.status-chip--warning { color: var(--warning); }
.status-chip--danger { color: var(--danger); }
.status-chip--info { color: var(--info); }

.division-verdict { display: flex; align-items: center; gap: 9px; margin: 26px 0 0; }
.division-verdict > span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
}
.division-verdict p { margin: 0; font-size: 1rem; }
.division-verdict--danger { color: var(--danger); }
.division-verdict--danger > span { background: #fff0ef; color: var(--danger); }
.division-verdict--warning { color: var(--warning); }
.division-verdict--warning > span { background: #fff8e9; color: var(--warning); }
.division-verdict--success { color: var(--success); }
.division-verdict--success > span { background: #edf8f2; color: var(--success); }

.division-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.division-summary > span { display: inline-flex; align-items: baseline; white-space: nowrap; }
.division-summary > span + span::before { content: "·"; margin: 0 10px; color: #b1b7bc; }
.division-summary strong { margin-right: 4px; color: var(--ink); font-weight: 700; }
.incomplete-note {
  margin: 15px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #c08821;
  background: #fffaf0;
  color: #6f4a06;
  font-size: 0.78rem;
}

.division-list-section { margin-top: 34px; border-top: 1px solid var(--line); }
.division-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0 9px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; color: var(--ink); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 0.67rem; font-weight: 650; letter-spacing: 0.035em; text-transform: uppercase; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; text-align: right; }
.division-table th:first-child, .division-table td:first-child { width: 28%; }
.division-table th:last-child, .division-table td:last-child { width: 72px; }
.division-lc-code, .division-cell-note { display: block; margin-top: 2px; color: var(--muted); font-size: 0.68rem; font-weight: 400; }
.overview-badge { font-weight: 650; }
.overview-badge--danger { color: var(--danger); }
.overview-badge--warning { color: var(--warning); }
.overview-badge--success { color: var(--success); }
.overview-badge--info { color: var(--info); }
.overview-badge--neutral { color: var(--muted); }
.lc-detail-button { min-height: 34px; padding: 5px 11px; font-size: 0.73rem; }
.table-empty { margin: 14px 0 0; color: var(--muted); font-size: 0.78rem; }

/* LC detail view */
.back-button { min-height: 36px; margin-bottom: 20px; padding: 6px 11px; font-size: 0.74rem; }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.status-cluster { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.state-banner {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  padding: 12px 14px;
  border-left: 3px solid #8e9aa4;
  background: var(--soft);
  font-size: 0.8rem;
}
.state-banner--success { border-left-color: var(--success); }
.state-banner--warning, .state-banner--attention { border-left-color: #c08821; background: #fffaf0; }
.state-banner--danger { border-left-color: var(--danger); background: #fff7f6; }
.state-banner--info { border-left-color: var(--info); }
.state-banner__icon { font-weight: 750; }
.state-banner__body p { margin: 2px 0 0; color: var(--muted); }
.state-banner__anomalies { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.state-banner__link, .text-button {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.74rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-section, .report-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.definition-panel { margin: 10px 0 15px; padding: 10px 12px; background: var(--soft); color: var(--muted); font-size: 0.76rem; }
.definition-panel p { margin-bottom: 0; }
.metric-layout { display: grid; grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2fr); gap: 26px; }
.hero-metric { display: flex; min-height: 118px; padding: 18px; flex-direction: column; justify-content: center; border-radius: var(--radius); background: var(--ink); color: #fff; }
.hero-metric span, .hero-metric strong { display: block; }
.hero-metric__label { color: #cbd1d6; font-size: 0.7rem; }
.hero-metric__value { margin: 14px 0 0; font-size: 2.2rem; line-height: 1; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 0 18px; }
.metric-card { display: flex; padding: 11px 0; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line); }
.metric-card span, .metric-card strong { display: block; }
.metric-card__label, .metric-card__context { color: var(--muted); font-size: 0.67rem; }
.metric-card strong { margin: 4px 0 1px; font-size: 1.25rem; }
.metric-card--attention strong { color: var(--danger); }

.two-column-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-column-sections--single { grid-template-columns: 1fr; }
.section-icon, .count-badge { color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.assessment-panel--attention .section-icon, .anomaly-panel--attention .count-badge, .anomaly-panel--danger .count-badge { color: var(--danger); }
.assessment-panel--success .section-icon, .anomaly-panel--success .count-badge { color: var(--success); }
.assessment-label { display: block; margin-bottom: 4px; font-size: 0.86rem; }
.assessment-label + p { color: var(--muted); font-size: 0.76rem; }
.reconciliation-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; }
.reconciliation-list dt { color: var(--muted); font-size: 0.66rem; }
.reconciliation-list dd { margin: 1px 0 0; font-size: 0.82rem; font-weight: 650; }
.anomaly-list { margin: 0; padding: 0; list-style: none; }
.anomaly-item { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.severity-marker { color: var(--warning); font-size: 0.66rem; font-weight: 750; }
.severity-marker--high { color: var(--danger); }
.severity-marker--info { color: var(--info); }
.anomaly-item strong { display: block; font-size: 0.76rem; }
.anomaly-item p, .anomaly-meta { display: block; margin: 1px 0 0; color: var(--muted); font-size: 0.7rem; }

.compact-field { min-width: 190px; }
input[type="search"] { min-height: 38px; }
.operations-table {
  min-width: 820px;
  table-layout: fixed;
  color: #10253a;
  font-size: 0.7rem;
  line-height: 1.3;
}
.operations-table col:nth-child(1) { width: 5.6%; }
.operations-table col:nth-child(2) { width: 13.5%; }
.operations-table col:nth-child(3), .operations-table col:nth-child(5) { width: 16.3%; }
.operations-table col:nth-child(4) { width: 15.2%; }
.operations-table col:nth-child(6) { width: 17%; }
.operations-table col:nth-child(7) { width: 16.1%; }
.operations-table th {
  padding: 8px 6px;
  border-top: 1px solid #bdcbd5;
  border-bottom-color: #bdcbd5;
  background: #f3f6f8;
  color: #496174;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  vertical-align: bottom;
}
.operations-table td { padding: 7px 6px; border-bottom-color: #d9e2e8; white-space: nowrap; }
.operations-table tbody tr:nth-child(even) { background: #fafbfd; }
.operations-table th:first-child, .operations-table td:first-child { padding-left: 0; text-align: center; }
.operations-table th:last-child, .operations-table td:last-child { padding-right: 0; text-align: center; }
.operations-table .numeric { text-align: right; }
.operation-number, .anomaly-cell { color: var(--muted); }
.operation-date, .operation-time { color: #30495c; font-variant-numeric: tabular-nums; }
.duration-cell { font-weight: 500; }
.classification-cell { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.02em; }
.classification-cell--locked { color: #17745e; }
.classification-cell--boom-only { color: #a4671b; }
.operations-table tbody .operation-row--short { background: #fff9ec; }
.graph-view-button { display: block; margin: 4px auto 0; padding: 3px 7px; background: #fff; border: 1px solid #cfd8e0; border-radius: 4px; color: #315f82; font-size: .65rem; font-weight: 600; }
.graph-view-button:hover, .graph-view-button[aria-expanded="true"] { background: #edf3f8; border-color: #7999b4; }
.approved-event-graphs .section-heading { margin-bottom: 6px; }
.approved-event-graphs .muted { color: var(--muted); font-size: .8rem; }
.approved-event-graphs .graph-markers { color: #31465a; }
.approved-graph-actions { display: flex; gap: 8px; }
.approved-graph-actions button { padding: 6px 10px; min-height: 34px; font-size: .75rem; }
.approved-event-graphs .graph-toolbar button { border: 1px solid #d9dfe5; border-radius: 5px; background: #fff; color: #31465a; }
.approved-event-graphs .graph-toolbar button:hover { background: #f4f6f8; }
.approved-event-graphs .graph-panel h4 { font-size: .82rem; }
.operation-row--short .duration-cell { color: var(--danger); font-weight: 750; }
.row-status { font-weight: 650; }
.row-status--attention { color: var(--danger); }
.row-status--normal { color: var(--success); }
.row-status--neutral { color: var(--muted); }

.artifact-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.artifact-card { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); }
.artifact-icon { color: var(--danger); font-size: 0.66rem; font-weight: 750; text-transform: uppercase; }
.artifact-copy { min-width: 0; flex: 1; }
.artifact-copy strong, .artifact-copy span { display: block; }
.artifact-copy strong { overflow: hidden; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.artifact-copy span, .artifact-note { color: var(--muted); font-size: 0.67rem; }
.artifact-link { color: var(--ink); font-size: 1rem; text-decoration: none; }
.artifact-link[aria-disabled="true"] { color: #aab0b5; pointer-events: none; }
.report-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.65rem; }
.report-footer p { margin-bottom: 0; }
.noscript-message { margin: 20px; padding: 12px; border: 1px solid #e6bfbd; color: var(--danger); }

@media (max-width: 880px) {
  .report-form__fields { grid-template-columns: 1fr 1fr; }
  .field-group--lc, .report-form__fields .primary-button { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .app-shell { width: min(100% - 28px, 880px); padding: 36px 0 56px; }
  body:not(.result-view) { overflow: auto; }
  body:not(.result-view) .app-shell { width: calc(100% - 40px); min-height: 100svh; padding: 36px 0; }
  .report-form__fields { grid-template-columns: 1fr 1fr; }
  .field-group--lc, .report-form__fields .primary-button { grid-column: 1 / -1; }
  .division-options { gap: 12px; }
  .division-choice { min-height: 158px; padding: 16px; }
  .division-choice__arrow { right: 15px; top: 16px; }
  .division-status { padding: 4px 7px; font-size: 0.66rem; }
  .division-table-wrap { overflow: visible; }
  .division-table thead { display: none; }
  .division-table, .division-table tbody, .division-table tr, .division-table td { display: block; width: 100% !important; }
  .division-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .division-table td { padding: 0; border: 0; text-align: left; }
  .division-table td:nth-child(2) { grid-column: 1; margin-top: 5px; }
  .division-table td:last-child { grid-row: 1 / span 2; grid-column: 2; padding-left: 14px; text-align: right; }
  .metric-layout, .two-column-sections { grid-template-columns: 1fr; }
  .report-header, .section-heading, .report-footer { align-items: flex-start; flex-direction: column; }
  .status-cluster { justify-content: flex-start; }
  .compact-field { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .division-options { grid-template-columns: 1fr; }
  .division-choice { min-height: 136px; padding: 18px; }
  .division-status { margin-top: 15px; font-size: 0.71rem; }
}

@media (max-width: 440px) {
  .date-fields, .division-options, .report-form__fields { grid-template-columns: 1fr; }
  .field-group--lc, .report-form__fields .primary-button { grid-column: auto; }
  .division-choice { min-height: 136px; padding: 18px; }
  .division-status { margin-top: 15px; font-size: 0.71rem; }
  .division-header { display: block; }
  .division-summary { display: grid; }
  .division-summary > span + span::before { display: none; }
  .metric-grid, .reconciliation-list { grid-template-columns: 1fr 1fr; }
}

@media (max-height: 620px) and (min-width: 721px) {
  body:not(.result-view) .app-shell { justify-content: flex-start; padding: 26px 0; }
  .beta-notice { margin-bottom: 16px; padding: 10px 13px; }
  .report-form { margin-top: 22px; }
  .division-overview { margin-top: 24px; padding-top: 20px; }
}

@media print {
  .approved-event-graphs, .graph-view-button { display: none !important; }
  .request-panel, .back-button, .text-button, .compact-field, .lc-detail-button, .artifact-link { display: none !important; }
  .app-shell { width: 100%; padding: 0; }
  .report-workspace { padding: 0; }
  .beta-notice { break-inside: avoid; color: #17212b; background: #fff; border-color: #a7a7a7; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  input, select, button, .state-banner, .incomplete-note, .artifact-card { border: 1px solid CanvasText; }
}
