:root {
  color-scheme: light;
  --ink: #122033;
  --muted: #617084;
  --line: #dbe3ec;
  --surface: #ffffff;
  --wash: #f2f6fa;
  --navy: #173b67;
  --navy-dark: #102c4e;
  --green: #147a55;
  --green-wash: #e7f5ee;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); }
a { color: inherit; }
.page-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.site-header { height: 76px; padding: 0 clamp(22px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--navy); font-weight: 800; }
.brand strong, .brand small, .identity strong, .identity small, .feed-row strong, .feed-row small { display: block; }
.brand strong { letter-spacing: -.01em; }
.brand small, .identity small, .feed-row small { color: var(--muted); margin-top: 2px; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 72px; }
footer { padding: 22px; text-align: center; color: var(--muted); font-size: 13px; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin-bottom: 10px; font-size: 23px; letter-spacing: -.02em; }
.eyebrow { margin-bottom: 14px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lede { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.login-layout { min-height: 570px; display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; align-items: center; }
.login-card, .message-card, .panel, .summary-grid article { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(25, 52, 82, .07); }
.login-card { padding: 38px; border-radius: 20px; }
.login-logo { display: block; width: min(100%, 280px); height: auto; margin: 0 auto 34px; }
.login-card h1 { margin-bottom: 14px; font-size: 36px; letter-spacing: -.035em; }
.login-card p { color: var(--muted); line-height: 1.55; }
.status-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 50%; color: var(--navy); background: #e8f0fa; font-size: 22px; }
.button { min-height: 50px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 9px; font-weight: 700; text-decoration: none; }
.button.primary { width: 100%; margin-top: 12px; color: white; background: var(--navy); }
.button.primary:hover { background: var(--navy-dark); }
.button.secondary { border: 1px solid var(--line); background: white; }
.button.small { min-height: 36px; padding: 0 13px; font-size: 12px; }
.button.danger { color: white; background: #a52f2f; border: 0; cursor: pointer; }
.button.danger:hover { background: #842525; }
.microsoft-mark { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.microsoft-mark i:nth-child(1) { background: #f25022; }.microsoft-mark i:nth-child(2) { background: #7fba00; }.microsoft-mark i:nth-child(3) { background: #00a4ef; }.microsoft-mark i:nth-child(4) { background: #ffb900; }
.fine-print { margin: 18px 0 0; font-size: 12px; }
.identity { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.identity-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-wash); }
.identity a { margin-left: 10px; color: var(--navy); font-weight: 700; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.dashboard-heading h1 { margin-bottom: 12px; font-size: clamp(38px, 4vw, 54px); }
.dashboard-heading .lede { margin-bottom: 0; font-size: 16px; }
.pill { display: inline-flex; align-items: center; width: max-content; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.pill.neutral { color: #5e6c7e; background: #edf1f5; }
.pill.healthy, .healthy-pill { color: #116645; background: #e2f4eb; }
.pill.delayed { color: #855b04; background: #fff2cf; }
.pill.failed, .failed-pill { color: #9b2c2c; background: #fde8e8; }
.pill.running { color: #245f9b; background: #e4f0fb; }
.pill.unknown, .pill.not_checked { color: #5e6c7e; background: #edf1f5; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.summary-grid article { padding: 22px; border-radius: 14px; box-shadow: none; }
.summary-grid span, .summary-grid small { display: block; color: var(--muted); }
.summary-grid strong { display: block; margin: 14px 0 6px; font-size: 25px; }
.summary-grid strong.healthy { color: var(--green); }
.summary-grid small { line-height: 1.4; }
.panel { border-radius: 16px; overflow: hidden; box-shadow: none; }
.panel-heading { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-heading p, .panel-heading h2 { margin-bottom: 4px; }
.panel-heading > span { color: var(--muted); font-size: 13px; }
.feed-row { padding: 18px 26px; display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.feed-row { color: inherit; text-decoration: none; transition: background-color .15s ease; }
.feed-row:hover { background: #f8fafc; }
.feed-row:last-child { border-bottom: 0; }
.empty-state { padding: 34px 26px; color: var(--muted); text-align: center; }
.feed-code { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--navy); background: #e8f0fa; font-size: 12px; font-weight: 850; }
.message-card { max-width: 700px; margin: 80px auto; padding: clamp(32px, 6vw, 64px); border-radius: 20px; }
.message-card h1 { font-size: clamp(34px, 5vw, 52px); }
.message-card p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.6; }
.message-card .button { margin-top: 18px; }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--navy); font-weight: 750; text-decoration: none; }
.detail-heading h1 { font-size: clamp(38px, 4vw, 54px); }
.detail-summary { grid-template-columns: repeat(3, 1fr); }
.summary-grid strong.compact-value { font-size: 16px; line-height: 1.4; }
.detail-panel { margin-top: 24px; }
.panel-copy { margin: 0; padding: 18px 26px; color: var(--muted); border-bottom: 1px solid var(--line); line-height: 1.5; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); background: #f8fafc; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.empty-cell { padding: 28px; color: var(--muted); text-align: center; }
.notice { margin: 22px 0; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: white; }
.notice p { margin: 7px 0 0; color: var(--muted); }
.notice.warning { border-color: #ecd18d; background: #fffaf0; }
.notice.error { border-color: #efb5b5; background: #fff5f5; }
.notice.success { border-color: #a9ddc5; background: #f1fbf6; }
.inline-message { max-width: none; margin: 24px 0; }
.settings-panel { margin-bottom: 24px; }
.form-grid { padding: 26px; display: grid; gap: 24px; }
.form-grid.two-column { grid-template-columns: 1fr 1fr; }
.field-row, .toggle-row { display: grid; gap: 8px; }
.field-row > span, .toggle-row strong { font-weight: 750; }
.field-row small, .toggle-row small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.field-row input { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: white; border: 1px solid #cbd6e2; border-radius: 8px; font: inherit; }
.toggle-row { grid-template-columns: 1fr auto; align-items: center; }
.toggle-row input, .check-row input { width: 20px; height: 20px; accent-color: var(--navy); }
.check-row { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.button.primary.compact { width: auto; margin-top: 0; border: 0; }
.button.secondary { cursor: pointer; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.job-action { min-width: 360px; max-width: 620px; overflow-wrap: anywhere; }
.confirmation-card { max-width: 820px; margin-top: 20px; }
.confirmation-card h1 { overflow-wrap: anywhere; }
.confirmation-details { display: grid; grid-template-columns: 130px 1fr; gap: 12px 18px; margin: 28px 0; }
.confirmation-details dt { color: var(--muted); font-weight: 700; }
.confirmation-details dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .login-layout { grid-template-columns: minmax(0, 440px); }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .detail-summary { grid-template-columns: 1fr; }
  .form-grid.two-column { grid-template-columns: 1fr; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .site-header { height: auto; padding-top: 16px; padding-bottom: 16px; align-items: flex-start; }
  .identity { align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
  .identity-dot { display: none; }
  .identity a { width: 100%; margin-left: 0; text-align: right; }
  main { width: min(100% - 28px, 1180px); padding-top: 36px; }
  .summary-grid { grid-template-columns: 1fr; }
  .panel-heading > span { display: none; }
  .feed-row { grid-template-columns: 44px 1fr; }
  .feed-row .pill { grid-column: 2; }
}
