:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #242424;
  background: #f5f5f5;
  --blue: #0067b8;
  --blue-dark: #004578;
  --border: #d1d1d1;
  --surface: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #ffb900;
  outline-offset: 2px;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}
.brand { display: flex; align-items: center; gap: 12px; color: #1b1b1b; font-weight: 650; text-decoration: none; }
.ms-mark { display: grid; grid-template-columns: repeat(2, 9px); gap: 2px; }
.ms-mark span { width: 9px; height: 9px; background: #f25022; }
.ms-mark span:nth-child(2) { background: #7fba00; }
.ms-mark span:nth-child(3) { background: #00a4ef; }
.ms-mark span:nth-child(4) { background: #ffb900; }
nav { display: flex; align-items: center; gap: 18px; }
nav form { margin: 0; }
.link-button { border: 0; background: transparent; color: var(--blue); padding: 0; text-decoration: underline; }
main { width: min(1600px, 100%); margin: 0 auto; padding: 28px clamp(16px, 3vw, 40px); flex: 1; }
footer { padding: 20px; text-align: center; color: #5f5f5f; font-size: .875rem; }
h1, h2 { margin-top: 0; }
.section-accent { width: 40px; height: 5px; background: var(--blue); margin-bottom: 12px; }
.auth-card, .panel, .filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 7%);
}
.auth-card { width: min(440px, 100%); margin: 40px auto; padding: 28px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, select, button, .button-secondary {
  min-height: 40px; border: 1px solid #8a8886; border-radius: 3px; padding: 8px 10px;
  font: inherit; background: #fff;
}
form { display: grid; gap: 14px; }
button, .button-secondary { cursor: pointer; }
.primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.primary:hover { background: var(--blue-dark); }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; color: #242424; text-decoration: none; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.filters { padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 20px; }
.filter-actions { display: flex; gap: 8px; align-items: end; }
.table-frame { width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 1200px; }
th, td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e5e5e5; }
th { background: #f0f0f0; color: #323130; }
.status { display: inline-block; padding: 3px 7px; border-radius: 3px; font-weight: 700; }
.status-new { background: #dff6dd; color: #0b6a0b; }
.status-updated { background: #fff4ce; color: #8a5700; }
.status-unchanged { background: #edebe9; color: #484644; }
.location + .location { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; }
.location a + a { margin-left: 8px; }
.provenance { color: #8a5700; font-weight: 600; }
.alert { margin-bottom: 16px; padding: 12px; border-left: 4px solid var(--blue); background: #fff; }
.alert-error { border-color: #a4262c; }
.alert-success { border-color: #107c10; }
.panel { padding: 20px; margin-bottom: 20px; }
.inline-form { grid-template-columns: 2fr 1fr auto; align-items: end; }
@media (max-width: 760px) {
  .site-header, .page-heading { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; }
  .inline-form { grid-template-columns: 1fr; }
  .table-frame { overflow: visible; border: 0; background: transparent; }
  table, thead, tbody, tr, th, td { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { background: #fff; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; padding: 8px; }
  td { border: 0; display: grid; grid-template-columns: minmax(100px, 35%) 1fr; gap: 10px; }
  td::before { content: attr(data-label); font-weight: 700; }
}
