:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #5e6b78;
  --line: #d8dee7;
  --accent: #1f6f8b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ops-header {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
}

.ops-brand {
  color: var(--text);
  flex: 0 0 auto;
  font-weight: 650;
  text-decoration: none;
}

.ops-nav {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  justify-content: flex-end;
}

.ops-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  padding: 8px 10px;
  text-decoration: none;
}

.ops-nav a[aria-current="page"] {
  background: #e9f3f6;
  color: var(--accent);
}

.ops-main {
  margin: 0 auto;
  max-width: 1320px;
  padding: 32px 24px;
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 48px auto;
  max-width: 380px;
  padding: 24px;
}

.login-panel h1,
.page-heading h1 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 16px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  gap: 6px;
}

.login-form input {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

button {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 10px 14px;
}

.ops-button-secondary {
  background: #eef3f7;
  border: 1px solid var(--line);
  color: var(--text);
}

.logout-form {
  margin: 0;
}

.form-error {
  background: #fff3f1;
  border: 1px solid #e2aaa1;
  border-radius: 6px;
  color: #8b2f22;
  padding: 10px 12px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.page-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.page-heading-row {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.ops-page {
  display: grid;
  gap: 20px;
}

.ops-subtitle {
  color: var(--muted);
  margin: 0;
}

.ops-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.ops-stack {
  display: grid;
  gap: 16px;
}

.ops-group,
.ops-stack > section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.ops-group:first-child,
.ops-stack > section:first-child {
  border-top: 0;
  padding-top: 0;
}

.ops-group h2,
.ops-stack h2 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.ops-controls {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ops-controls label {
  color: var(--muted);
  display: grid;
  font-size: 0.8rem;
  font-weight: 650;
  gap: 4px;
}

.ops-controls .ops-check {
  align-items: center;
  display: flex;
  min-height: 38px;
}

.ops-controls input,
.ops-controls select {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.ops-controls input[type="number"] {
  width: 72px;
}

.ops-controls input[type="checkbox"] {
  min-height: auto;
}

.ops-state {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  margin: 0;
  padding: 10px 12px;
}

.ops-state-error {
  background: #fff3f1;
  border-color: #e2aaa1;
  color: #8b2f22;
}

.ops-table-wrap {
  overflow-x: auto;
}

.ops-timeline {
  display: grid;
  gap: 12px;
  overflow-x: auto;
}

.ops-table {
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 840px;
  width: 100%;
}

.ops-table th,
.ops-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.ops-table td {
  font-family: "Andale Mono", "Lucida Console", Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
}

.ops-table th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.ops-table a {
  color: #327db6;
  font-weight: 650;
  text-decoration: none;
}

.ops-facts {
  display: grid;
  gap: 6px 20px;
  grid-template-columns: max-content 1fr;
  margin: 0;
}

.ops-facts dt {
  color: var(--muted);
  font-weight: 650;
}

.ops-facts dd {
  margin: 0;
}

@media (max-width: 760px) {
  .ops-header,
  .page-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-header {
    padding: 14px 18px;
  }

  .ops-nav {
    justify-content: flex-start;
  }

  .ops-main {
    padding: 24px 16px;
  }
}
