:root {
  color-scheme: light;
  --navy: #102a43;
  --navy-soft: #183f5f;
  --blue: #17679a;
  --blue-hover: #12547f;
  --blue-light: #eaf4fa;
  --action-blue: #17679a;
  --action-purple: #6b4ea0;
  --action-teal: #087a82;
  --green: #147a52;
  --green-hover: #106441;
  --red: #b13a36;
  --red-hover: #912d2a;
  --amber: #9a6200;
  --ink: #172b3a;
  --muted: #607381;
  --line: #dce5eb;
  --line-strong: #c9d6de;
  --paper: #ffffff;
  --background: #f4f7f9;
  --surface-soft: #f8fafb;
  --focus: #72b6e6;
  --shadow-sm: 0 2px 8px rgba(16, 42, 67, .05);
  --shadow-md: 0 10px 30px rgba(16, 42, 67, .09);
  --radius-sm: .65rem;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 8% -5%, rgba(23, 103, 154, .08), transparent 28rem),
    var(--background);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-hover); }
.skip-link { position: fixed; top: .5rem; left: -9999px; z-index: 100; }
.skip-link:focus { left: .75rem; padding: .7rem 1rem; border-radius: var(--radius-sm); background: white; box-shadow: var(--shadow-md); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 42, 67, .97);
  color: white;
  box-shadow: 0 4px 18px rgba(9, 29, 44, .14);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1440px, calc(100% - 2rem));
  min-height: 70px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
.site-header a { color: white; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .72rem; color: white; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: linear-gradient(145deg, #2490bd, #18836f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
  font-weight: 800;
}
.brand-mark svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: .01em; }
.brand-copy small { margin-top: .2rem; color: #bfd0dc; font-size: .72rem; font-weight: 600; letter-spacing: .035em; text-transform: uppercase; }

.site-navigation { min-width: 0; display: grid; align-content: center; gap: .12rem; }
.site-nav { min-width: 0; display: flex; justify-content: flex-end; gap: .15rem; overflow-x: auto; scrollbar-width: none; }
.site-navigation.is-split .site-nav { justify-content: flex-start; }
.site-nav::-webkit-scrollbar { display: none; }
.nav-group-label {
  flex: 0 0 5.3rem;
  display: inline-flex;
  align-items: center;
  padding: 0 .55rem;
  color: #83d7c7;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a, .link-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: .48rem .68rem;
  border-radius: .58rem;
  color: #e7eff4;
  font-size: .88rem;
  font-weight: 650;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a:focus-visible, .link-button:hover, .link-button:focus-visible {
  background: rgba(255, 255, 255, .11);
  color: white;
}
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .16); color: white; box-shadow: inset 0 -2px 0 #58c3ad; }
.header-actions { display: flex; align-items: center; gap: .25rem; }
.logout-form { margin: 0; }
.link-button { border: 0; background: none; font: inherit; cursor: pointer; }

.notification-menu { position: relative; flex: 0 0 auto; }
.notification-menu summary {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: .65rem;
  color: #e7eff4;
  cursor: pointer;
  list-style: none;
}
.notification-menu summary::-webkit-details-marker { display: none; }
.notification-menu summary:hover, .notification-menu summary:focus-visible, .notification-menu[open] summary { background: rgba(255, 255, 255, .12); color: white; }
.notification-bell { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notification-badge {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: #e04a43;
  color: white;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}
.notification-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + .75rem);
  right: 0;
  width: min(340px, calc(100vw - 1rem));
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(9, 29, 44, .22);
}
.notification-panel::before { content: ""; position: absolute; top: -6px; right: 15px; width: 12px; height: 12px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; transform: rotate(45deg); }
.notification-panel h2 { margin: 0 0 .7rem; font-size: 1.02rem; }
.notification-panel > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .6rem; border-top: 1px solid var(--line); border-radius: .5rem; color: var(--ink); font-weight: 650; }
.notification-panel > a:hover, .notification-panel > a:focus-visible { background: var(--blue-light); }
.notification-panel > a strong { min-width: 29px; height: 29px; display: grid; place-items: center; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-size: .82rem; }
.notification-panel p { margin: .5rem 0 0; }
.notification-panel .notification-help { color: var(--muted); font-size: .8rem; }

.network-status { padding: .7rem 1rem; border-bottom: 1px solid #e9ce7e; background: #fff7d9; color: #664600; text-align: center; font-weight: 700; }
.container { width: min(1180px, calc(100% - 2rem)); flex: 1; margin: clamp(1.1rem, 3vw, 2.1rem) auto 3.5rem; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.25rem; }
.page-heading > div > p, .page-heading > p { margin: .15rem 0 0; }
.page-section-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.page-section-actions .button { min-height: 42px; padding: .62rem .82rem; font-size: .9rem; }
.vacation-management-heading > div:first-child { min-width: 0; }
.vacation-management-actions { flex: 0 0 auto; min-width: max-content; flex-wrap: nowrap; }
.vacation-management-actions .button { white-space: nowrap; }
.page-section-back { margin-left: .25rem; }
h1, h2, h3 { color: #132d40; line-height: 1.18; letter-spacing: -.018em; }
h1 { margin: 0 0 .45rem; font-size: clamp(1.85rem, 4vw, 2.55rem); font-weight: 790; }
h2 { margin: 0 0 .8rem; font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 760; }
h3 { margin: 1.3rem 0 .65rem; font-size: 1.03rem; }
p { margin-top: 0; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .24rem; }

.card {
  margin-bottom: 1rem;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgba(201, 214, 222, .88);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--line-strong); }
.narrow { max-width: 540px; margin: clamp(1rem, 6vh, 4rem) auto; box-shadow: var(--shadow-md); }
.narrow > h1 { margin-bottom: .6rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
form.card.grid { align-items: end; }
.form-shell { max-width: 680px; overflow: hidden; border-top: 4px solid var(--blue); box-shadow: var(--shadow-md); }
.form-shell > h1 { margin-bottom: .4rem; }
.form-shell > p, .form-shell > ul, .form-shell > ol { color: var(--muted); }
.form-shell form { margin-top: 1.15rem; }
.form-shell form > p { margin-bottom: .9rem; }
.form-shell hr, .account-card hr { height: 1px; margin: 1.5rem 0; border: 0; background: var(--line); }
.auth-shell { max-width: 470px; }
.auth-shell::before { content: "Acceso seguro"; display: block; margin-bottom: .35rem; color: var(--blue); font-size: .72rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }
.filter-card { align-items: end; border-left: 4px solid #78aeca; background: linear-gradient(145deg, white, #f5f9fb); }
.filter-card .button { width: 100%; }
.metric-grid { align-items: stretch; }
.metric-card { position: relative; overflow: hidden; min-height: 135px; border-top: 4px solid #78aeca; box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; position: absolute; right: -34px; bottom: -58px; width: 120px; height: 120px; border-radius: 999px; background: rgba(23, 103, 154, .055); pointer-events: none; }
.metric-card h2 { color: #496778; font-size: .85rem; letter-spacing: .035em; text-transform: uppercase; }
.metric-card .metric { position: relative; z-index: 1; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.section-heading h2, .section-heading h3, .section-heading p { margin-top: 0; }
.section-heading h2, .section-heading h3 { margin-bottom: .2rem; }
.section-heading p { margin-bottom: 0; color: var(--muted); }
.section-links { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.section-links a { padding: .35rem .58rem; border: 1px solid var(--line); border-radius: .55rem; background: white; text-decoration: none; }
.data-section-card { padding-top: 1.15rem; }
.data-section-card > h2 { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.request-day-groups { display: grid; gap: 1rem; }
.request-day-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.request-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--line);
  background: #e9f0f4;
}
.request-day-heading h2,
.request-day-heading h3 { margin: 0; font-size: 1.05rem; }
.request-day-heading span {
  flex: 0 0 auto;
  padding: .25rem .55rem;
  border: 1px solid #c7d7e0;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}
.request-day-empty { margin: 0; text-align: center; }
.nested-request-days { margin-top: 1rem; }
.nested-request-days .request-day-card { box-shadow: none; }
.account-series-list { display: grid; gap: .45rem; padding: 0; list-style: none; }
.account-series-list li { padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface-soft); }
.credential-card { max-width: 620px; border-top: 4px solid var(--green); }
.credential-value { margin-bottom: .8rem; padding: .75rem .85rem; border: 1px dashed #9db2be; border-radius: .65rem; background: var(--surface-soft); }
.credential-value strong { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }
.inspection-meta { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: .65rem; background: white; color: var(--muted); }
.inspection-meta strong { color: var(--navy); }

.request-review-page, .request-detail-page { max-width: 850px; margin: 0 auto; }
.request-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.request-heading h1 { margin-bottom: .2rem; }
.request-heading p { margin-bottom: 0; color: var(--muted); }
.request-summary-card { border-top: 4px solid var(--blue); box-shadow: var(--shadow-md); }
.request-summary-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.request-summary-top h2 { margin-bottom: .2rem; }
.request-summary-top p { margin-bottom: 0; color: var(--muted); }
.request-date-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .7rem; margin-top: 1rem; }
.request-date { padding: .9rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface-soft); }
.request-date span, .request-message span { display: block; margin-bottom: .28rem; color: var(--muted); font-size: .72rem; font-weight: 810; letter-spacing: .045em; text-transform: uppercase; }
.request-date strong { color: var(--navy); }
.request-date-arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: white; }
.request-message { margin-top: 1rem; padding: .9rem 1rem; border-left: 4px solid #79aeca; border-radius: 0 .7rem .7rem 0; background: var(--blue-light); }
.request-message p { margin: 0; color: #20475f; }
.request-rejection-reason, .request-revocation-response { margin-top: .8rem; border-left-color: var(--red); background: #fff0ef; }
.request-rejection-reason span, .request-revocation-response span { color: #8b302c; }
.request-rejection-reason p, .request-revocation-response p { color: #702823; font-size: 1.02rem; }
.request-rejection-reason small, .request-revocation-response small { display: block; margin-top: .55rem; color: #8b5753; }
.request-approval-response { margin-top: .8rem; border-left-color: var(--green); background: #eef9f3; }
.request-approval-response span { color: #176045; }
.request-approval-response p { color: #154c39; font-size: 1.02rem; }
.request-approval-response small { display: block; margin-top: .55rem; color: #527367; }
.request-timeline { margin: 1rem 0 1.2rem .5rem; padding: 0 0 0 1.2rem; border-left: 2px solid #d7e3e9; list-style: none; }
.request-timeline li { position: relative; padding: 0 0 .9rem .3rem; }
.request-timeline li::before { content: ""; position: absolute; top: .38rem; left: -1.62rem; width: 11px; height: 11px; border: 3px solid white; border-radius: 999px; background: var(--blue); box-shadow: 0 0 0 2px #accbdc; }
.request-timeline li:last-child { padding-bottom: 0; }
.request-timeline time { display: block; color: var(--muted); font-size: .82rem; }
.request-action-card { border-color: #c6dce8; background: linear-gradient(145deg, white, #f5f9fb); }
.request-action-card form { margin-top: 1rem; }
.request-final-state { padding: .85rem 1rem; border-radius: .75rem; background: var(--surface-soft); color: var(--muted); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: .72rem;
  font: inherit;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 42, 67, .06);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(16, 42, 67, .12); }
.button:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: var(--blue-hover); color: white; }
.button.success { background: var(--green); color: white; }
.button.success:hover { background: var(--green-hover); color: white; }
.button.danger { background: var(--red); color: white; }
.button.danger:hover { background: var(--red-hover); color: white; }
.button.warning { background: var(--amber); color: white; }
.button.password-reset { background: var(--action-blue); color: white; }
.button.mfa-reset { background: var(--action-purple); color: white; }
.button.temporary-leave { background: var(--action-teal); color: white; }
.button.secondary { border-color: #a9c3d4; background: white; color: var(--blue); }
.button.secondary:hover { border-color: var(--blue); background: var(--blue-light); color: var(--blue-hover); }
.button.compact { min-height: 34px; padding: .42rem .65rem; font-size: .8rem; white-space: nowrap; }
.button:disabled { opacity: .52; cursor: not-allowed; box-shadow: none; }
.full { width: 100%; }

form p { margin-bottom: 1rem; }
label { display: block; margin-bottom: .35rem; color: #294555; font-size: .9rem; font-weight: 720; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: .68rem .78rem;
  border: 1px solid #aebec8;
  border-radius: .68rem;
  background: white;
  color: var(--ink);
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #7e9aaa; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(23, 103, 154, .13); }
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--blue); }
.bulk-correction-form, .bulk-request-form { display: grid; gap: .9rem; }
.bulk-correction-toolbar, .bulk-request-toolbar { display: flex; align-items: end; gap: .65rem; flex-wrap: wrap; }
.bulk-correction-note, .bulk-request-note { flex: 1 1 290px; margin: 0; }
.bulk-correction-note input, .bulk-request-note input { min-width: min(290px, 100%); }
.correction-row-actions { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.correction-select-label { display: inline-flex; align-items: center; gap: .38rem; margin: 0; cursor: pointer; }
.correction-select-label span { font-size: .84rem; }
.correction-review-page { max-width: 1040px; margin: 0 auto; }
.correction-review-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.25rem; }
.correction-review-heading h1 { margin-bottom: .25rem; }
.correction-review-heading p:last-child { margin-bottom: 0; }
.correction-review-kicker, .correction-section-heading span, .correction-person-copy > span, .correction-comparison-label, .correction-detail-item > span, .correction-reason > span, .correction-approval-response > span, .correction-rejection-reason > span, .management-review-employee-response > span { display: block; margin: 0 0 .3rem; color: #547080; font-size: .72rem; font-weight: 820; letter-spacing: .055em; text-transform: uppercase; }
.correction-review-kicker { color: var(--blue); }
.correction-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; flex-wrap: wrap; }
.correction-heading-actions .status { padding: .48rem .78rem; }
.correction-summary-card { overflow: hidden; border-top: 4px solid var(--blue); box-shadow: var(--shadow-md); }
.correction-person-heading { display: flex; align-items: center; gap: .85rem; padding-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.correction-person-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: .85rem; background: linear-gradient(145deg, #e6f3fa, #e7f7ef); color: var(--blue); }
.correction-person-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.correction-person-copy { min-width: 0; flex: 1; }
.correction-person-copy h2 { margin: 0; }
.correction-person-copy p { margin: .18rem 0 0; color: var(--muted); font-weight: 680; }
.correction-operation { padding: .4rem .7rem; border: 1px solid #c7dce9; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-size: .82rem; font-weight: 780; white-space: nowrap; }
.correction-comparison { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: .85rem; margin-top: 1.15rem; }
.correction-comparison-side { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface-soft); }
.correction-comparison-side.correction-proposed { border-color: #b9d9cc; background: #f1faf6; }
.correction-comparison-value { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; min-height: 42px; }
.correction-comparison-value strong { color: var(--navy); }
.correction-comparison-value small { width: 100%; color: var(--muted); }
.correction-comparison-arrow { width: 34px; height: 34px; align-self: center; display: grid; place-items: center; border-radius: 999px; background: var(--navy); color: white; font-size: 1.1rem; font-weight: 800; }
.correction-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.correction-detail-item { min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: .75rem; background: white; }
.correction-detail-item strong, .correction-detail-item code { display: block; color: var(--navy); font-size: .9rem; overflow-wrap: anywhere; }
.correction-reason { margin-top: 1rem; padding: 1rem 1.05rem; border-left: 4px solid var(--blue); border-radius: 0 .8rem .8rem 0; background: var(--blue-light); }
.correction-reason p { margin: 0; color: #20475f; font-size: 1.02rem; }
.management-review-employee-response { margin-top: .8rem; padding: 1rem 1.05rem; border-left: 4px solid var(--green); border-radius: 0 .8rem .8rem 0; background: #eef9f3; }
.management-review-employee-response > span { color: #176045; }
.management-review-employee-response p { margin: 0; color: #154c39; font-size: 1.02rem; }
.management-review-employee-response small { display: block; margin-top: .55rem; color: #527367; }
.correction-approval-response { margin-top: .8rem; padding: 1rem 1.05rem; border-left: 4px solid var(--green); border-radius: 0 .8rem .8rem 0; background: #eef9f3; }
.correction-approval-response > span { color: #176045; }
.correction-approval-response p { margin: 0; color: #154c39; font-size: 1.02rem; }
.correction-approval-response small { display: block; margin-top: .55rem; color: #527367; }
.correction-rejection-reason { margin-top: .8rem; padding: 1rem 1.05rem; border-left: 4px solid var(--red); border-radius: 0 .8rem .8rem 0; background: #fff0ef; }
.correction-rejection-reason > span { color: #8b302c; }
.correction-rejection-reason p { margin: 0; color: #702823; font-size: 1.02rem; }
.correction-rejection-reason small { display: block; margin-top: .55rem; color: #8b5753; }
.correction-offline-details { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid #e1c878; border-radius: .75rem; background: #fff9e8; }
.correction-offline-details summary { color: #684900; font-weight: 780; cursor: pointer; }
.correction-offline-details p { margin: .75rem 0 .35rem; }
.correction-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.correction-section-heading h2 { margin-bottom: 0; }
.correction-history-count { padding: .3rem .58rem; border-radius: 999px; background: var(--surface-soft); color: var(--muted) !important; font-size: .75rem !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap; }
.correction-timeline { margin: 1.25rem 0 0 .48rem; padding: 0 0 0 1.25rem; border-left: 2px solid #d6e3ea; list-style: none; }
.correction-timeline li { position: relative; padding: 0 0 1.15rem .35rem; }
.correction-timeline li:last-child { padding-bottom: 0; }
.correction-timeline-dot { position: absolute; top: .16rem; left: -1.73rem; width: 13px; height: 13px; border: 3px solid white; border-radius: 999px; background: var(--blue); box-shadow: 0 0 0 2px #a9cada; }
.correction-timeline-dot.decision-approve, .correction-timeline-dot.decision-accept { background: var(--green); box-shadow: 0 0 0 2px #9ed3bd; }
.correction-timeline-dot.decision-reject, .correction-timeline-dot.decision-dispute { background: var(--red); box-shadow: 0 0 0 2px #e4aaa6; }
.correction-timeline-dot.decision-respond { background: var(--amber); box-shadow: 0 0 0 2px #e9ce7e; }
.correction-timeline li div { display: grid; grid-template-columns: 1fr auto; gap: .1rem .75rem; }
.correction-timeline time { color: var(--muted); font-size: .82rem; }
.correction-timeline p { grid-column: 1 / -1; margin: .22rem 0 0; color: var(--muted); }
.correction-timeline-empty { color: var(--muted); font-style: italic; }
.correction-decision-card { border-color: #bfd8e7; background: linear-gradient(145deg, white, #f4f9fc); box-shadow: var(--shadow-md); }
.correction-response-field { margin-top: 1.15rem; }
.correction-response-field textarea { background: white; }
.correction-decision-safety { margin: .9rem 0; padding: .8rem .9rem; border-radius: .7rem; background: var(--surface-soft); color: var(--muted); font-size: .9rem; }
.correction-decision-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.correction-resolved-card { display: flex; align-items: center; gap: 1rem; border-color: #c5ddd3; background: #f3faf7; }
.correction-resolved-card h2 { margin-bottom: .2rem; }
.correction-resolved-card p { margin: 0; color: var(--muted); }
.review-form-page { max-width: 900px; margin: 0 auto; }
.review-target-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; border-top: 4px solid var(--amber); }
.review-target-card > div { min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--surface-soft); }
.review-target-card strong, .review-target-card code { display: block; color: var(--navy); overflow-wrap: anywhere; }
.review-form-card { box-shadow: var(--shadow-md); }
.review-form-grid { align-items: start; }
.review-integrity-note, .management-review-banner, .review-awaiting-card { display: flex; align-items: flex-start; gap: .35rem; flex-direction: column; margin: .9rem 0 1rem; padding: .9rem 1rem; border-left: 4px solid var(--blue); border-radius: 0 .75rem .75rem 0; background: var(--blue-light); color: #20475f; }
.management-review-banner { margin-top: 0; border-left-color: var(--amber); background: #fff8e3; color: #654800; }
.review-awaiting-card { border-color: #e5cd89; border-left-width: 4px; border-left-color: var(--amber); background: #fff9e8; }
.form-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.event-review-action { min-width: 150px; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.errorlist { margin: .35rem 0; padding-left: 1.1rem; color: var(--red); font-size: .9rem; font-weight: 700; }
.helptext { display: block; margin-top: .32rem; color: var(--muted); font-size: .84rem; }

.messages { display: grid; gap: .65rem; margin-bottom: 1rem; }
.message { padding: .85rem 1rem; border: 1px solid #c8deeb; border-radius: .78rem; background: var(--blue-light); color: #174f70; }
.message.error { border-color: #f0bfbc; background: #fff0ef; color: #7a2421; }
.message.success { border-color: #a9dbc5; background: #eaf8f1; color: #115c3d; }
.message.warning { border-color: #e9ce7e; background: #fff7d9; color: #664600; }
.holiday-notice, .reminder-warning { border-color: #e7cc79; background: linear-gradient(135deg, #fffbef, #fff7dc); }
.holiday-notice h2, .reminder-warning h2 { color: #6c4b05; }
.holiday-row { background: #fffaf0; }
.holiday-label { color: #765407; font-weight: 750; }

.status { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .62rem; border: 1px solid transparent; border-radius: 999px; background: var(--blue-light); color: var(--blue); font-size: .82rem; font-weight: 780; line-height: 1.25; }
.status.working, .status.approved, .status.accepted, .status.confirmed { border-color: #b5e0cc; background: #e7f7ef; color: #12603f; }
.status.pending, .status.proposed, .status.pause, .status.break { border-color: #ead18b; background: #fff6d9; color: #714d00; }
.status.responded { border-color: #b8d4e4; background: #edf6fb; color: #175b82; }
.status.rejected, .status.maintained, .status.revoked, .status.disputed, .status.conflict { border-color: #efc0bd; background: #fff0ef; color: #7a2421; }
.status.cancelled { border-color: #d6dfe4; background: #f0f3f5; color: #50616c; }
.mark-kind { display: inline-flex; padding: .24rem .58rem; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 760; white-space: nowrap; }
.mark-kind-clock-in { border-color: #a9d9c0; background: #e7f7ef; color: #12603f; }
.mark-kind-clock-out { border-color: #edb8b4; background: #fff0ef; color: #7a2421; }
.mark-kind-break-start { border-color: #ead18b; background: #fff6d9; color: #714d00; }
.mark-kind-break-end { border-color: #b6d4e7; background: #eaf4fa; color: #175b82; }
.mark-kind-void { border-color: #d2dce2; background: #f0f3f5; color: #50616c; }
.mark-kind-other { border-color: #d6c5e7; background: #f5eefb; color: #604080; }
.mark-status { display: inline-flex; padding: .24rem .58rem; border: 1px solid transparent; border-radius: 999px; font-size: .82rem; font-weight: 780; white-space: nowrap; }
.mark-status-effective { border-color: #a9d9c0; background: #e7f7ef; color: #12603f; }
.mark-status-cancelled { border-color: #edb8b4; background: #fff0ef; color: #7a2421; }
.mark-status-compensation { border-color: #c8c0e3; background: #f2effa; color: #554181; }
.attendance-day-card { margin-bottom: 1rem; padding: clamp(.8rem, 2vw, 1.15rem); border: 1px solid var(--line); border-radius: .9rem; background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-sm); }
.attendance-day-card h2 { margin: 0 0 .8rem; padding: 0 .15rem; }
.attendance-day-table { min-width: 850px; }
.attendance-day-table tbody tr.day-boundary { background: #e4ecef; }
.attendance-day-table tbody tr.day-boundary td:first-child { box-shadow: inset 4px 0 0 #66879a; }
.attendance-day-table tbody tr.day-boundary .event-effective-time { color: #082f49; }
.event-effective-time { color: #123d59; font-size: 1.02rem; font-weight: 790; white-space: nowrap; }
.attendance-empty { margin: 0; }

#attendance-app { position: relative; overflow: hidden; border-top: 4px solid var(--blue); box-shadow: var(--shadow-md); }
#attendance-app::after { content: ""; position: absolute; top: -85px; right: -70px; width: 180px; height: 180px; border-radius: 50%; background: rgba(23, 103, 154, .055); pointer-events: none; }
#attendance-app > * { position: relative; z-index: 1; }
#attendance-state { font-size: .92rem; }
.big-action { width: 100%; min-height: 70px; border-radius: .85rem; font-size: 1.08rem; }
.confirmation-dialog { width: min(92vw, 480px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); box-shadow: 0 24px 70px rgba(10, 30, 45, .3); }
.confirmation-dialog::backdrop { background: rgba(10, 26, 39, .62); backdrop-filter: blur(2px); }
.confirmation-dialog form { padding: clamp(1.15rem, 4vw, 1.7rem); }
.confirmation-dialog h2 { margin-top: 0; }
.confirmation-field { margin-top: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface-soft); }
.confirmation-field label { display: block; margin-bottom: .45rem; font-weight: 760; }
.confirmation-field input { margin-bottom: .35rem; background: #fff; }
.confirmation-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.3rem; }

.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .87em; word-break: break-all; }
.table-wrap { overflow-x: auto; scrollbar-color: #b5c4cd transparent; }
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .78rem .68rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--surface-soft); color: #526875; font-size: .76rem; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
thead th:first-child { border-top-left-radius: .55rem; }
thead th:last-child { border-top-right-radius: .55rem; }
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: #f8fbfc; }
tbody tr:last-child td { border-bottom: 0; }
tbody td[colspan] { padding: 1.5rem 1rem; color: var(--muted); text-align: center; }
td a { font-weight: 680; }
.metric { color: var(--blue); font-size: clamp(1.8rem, 5vw, 2.35rem); font-weight: 820; letter-spacing: -.04em; }
.qr svg { display: block; width: min(300px, 100%); height: auto; margin: 1.2rem auto; padding: .65rem; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.vacation-calendar-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.vacation-calendar-toolbar h2, .vacation-calendar-toolbar p { margin-top: 0; }
.vacation-month-form { min-width: 250px; }
.vacation-month-form > div { display: flex; gap: .5rem; }
.vacation-month-form input { min-width: 145px; }
.vacation-calendar-navigation { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .75rem; margin: 1.25rem 0 .8rem; }
.vacation-calendar-navigation h3 { margin: 0; text-align: center; }
.vacation-calendar-navigation a:first-child { justify-self: start; }
.vacation-calendar-navigation a:last-child { justify-self: end; }
.vacation-calendar-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .8rem; background: white; }
.vacation-calendar-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vacation-calendar-grid { min-width: 826px; display: grid; grid-template-columns: repeat(7, minmax(118px, 1fr)); }
.vacation-weekday { padding: .6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #edf5f9; color: #31586e; font-size: .76rem; font-weight: 800; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.vacation-day { min-height: 118px; padding: .48rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.vacation-day > time { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 999px; font-size: .86rem; font-weight: 760; }
.vacation-day.today > time { background: var(--blue); color: white; box-shadow: 0 3px 10px rgba(23, 103, 154, .25); }
.vacation-weekend { background: #fafcfd; }
.vacation-day.outside-month { background: #f4f6f7; color: #8998a1; }
.vacation-day-entries { display: grid; gap: .3rem; margin-top: .4rem; }
.vacation-entry { overflow: hidden; padding: .3rem .4rem; border-left: 3px solid currentColor; border-radius: .35rem; color: var(--ink); font-size: .76rem; font-weight: 720; line-height: 1.25; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.vacation-entry:hover, .vacation-entry:focus-visible { filter: brightness(.95); text-decoration: underline; }
.vacation-color-0 { background: #dceefa; color: #12537d; }
.vacation-color-1 { background: #dff5e9; color: #0f6641; }
.vacation-color-2 { background: #f1e5fa; color: #653687; }
.vacation-color-3 { background: #fff0c7; color: #745000; }
.vacation-color-4 { background: #fde3e6; color: #8a2934; }
.vacation-color-5 { background: #dff3f2; color: #11625e; }
.vacation-color-6 { background: #e8e9fb; color: #3d4389; }
.vacation-color-7 { background: #f7e7d7; color: #78461d; }
.vacation-legend { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: .95rem; }
.vacation-legend span { display: inline-flex; align-items: center; gap: .42rem; font-size: .85rem; }
.vacation-legend i { width: 14px; height: 14px; border-radius: .28rem; }
.vacation-calendar-empty { margin-bottom: 0; color: var(--muted); }

.people-panel { width: min(1500px, calc(100vw - 2rem)); position: relative; left: 50%; transform: translateX(-50%); overflow: visible; }
.people-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.people-page-heading > div:first-child { min-width: 0; }
.people-heading-actions, .people-type-filters { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: nowrap; }
.people-heading-actions { flex: 0 0 auto; min-width: max-content; }
.people-type-filters .button { display: inline-flex; align-items: center; gap: .48rem; }
.people-heading-actions .button { white-space: nowrap; }
.people-filter-count { min-width: 1.45rem; height: 1.45rem; display: inline-grid; place-items: center; padding: 0 .35rem; border-radius: 999px; background: rgba(255, 255, 255, .82); color: var(--navy); font-size: .74rem; font-weight: 850; line-height: 1; }
.people-type-filters .button.secondary .people-filter-count { background: var(--surface-soft); color: var(--muted); }
.people-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.people-panel-heading h2 { margin: 0; }
.people-panel-heading > span { color: var(--muted); font-size: .85rem; font-weight: 750; }
.people-table { min-width: 0; table-layout: fixed; }
.people-table .people-col-number { width: 6%; }
.people-table .people-col-name { width: 11%; }
.people-table .people-col-email { width: 15%; }
.people-table .people-col-contract { width: 8%; }
.people-table .people-col-access { width: 10%; }
.people-table .people-col-password { width: 12%; }
.people-table .people-col-mfa { width: 12%; }
.people-table .people-col-leave { width: 13%; }
.people-table .people-col-end { width: 13%; }
.people-table .people-email { overflow-wrap: anywhere; }
.people-table form { margin-top: .48rem; }
.people-table .button { width: 100%; padding-inline: .6rem; font-size: .85rem; }

.site-footer { display: flex; justify-content: center; gap: .6rem 1.2rem; flex-wrap: wrap; padding: 1.2rem 1rem 1.5rem; border-top: 1px solid rgba(201, 214, 222, .65); color: var(--muted); font-size: .78rem; }
.site-footer span { display: inline-flex; align-items: center; gap: .35rem; }
.site-footer span::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #86a0af; }
.hidden { display: none !important; }
.reminder-grid { align-items: start; }
.reminder-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.reminder-actions form { margin: 0; }
.reminder-list { display: grid; gap: .55rem; }
.reminder-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.reminder-item:last-child { border-bottom: 0; }
.reminder-item > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.reminder-time { color: var(--blue); font-size: 1.45rem; letter-spacing: -.03em; }
.device-list { padding: 0; list-style: none; }
.device-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.device-list li:last-child { border-bottom: 0; }
#id_weekdays { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: .4rem; padding: 0; list-style: none; }
#id_weekdays label { min-height: 40px; display: flex; align-items: center; gap: .48rem; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--surface-soft); font-weight: 550; }

.health-overview {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.health-overview.health-ok { border-color: #a9dbc5; background: #eaf8f1; }
.health-overview.health-warning { border-color: #e9ce7e; background: #fff7d9; }
.health-overview.health-error { border-color: #f0bfbc; background: #fff0ef; }
.health-overview-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .72); font-size: 1.55rem; font-weight: 850; }
.health-overview.health-ok .health-overview-icon { color: var(--green); }
.health-overview.health-warning .health-overview-icon { color: var(--amber); }
.health-overview.health-error .health-overview-icon { color: var(--red); }
.health-overview h2, .health-overview p { margin: 0; }
.health-overview p { margin-top: .25rem; }
.health-updated { color: var(--muted); font-size: .84rem; }
.health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.health-card { margin: 0; border-top-width: 4px; }
.health-card.health-ok { border-top-color: var(--green); }
.health-card.health-warning { border-top-color: var(--amber); }
.health-card.health-error { border-top-color: var(--red); }
.health-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.health-card-heading h2 { margin-bottom: .55rem; }
.health-status { padding: .25rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.health-status.health-ok { background: #e1f4ea; color: #11623f; }
.health-status.health-warning { background: #fff0bd; color: #765000; }
.health-status.health-error { background: #fbe2e0; color: #862d29; }
.health-detail { margin-bottom: 0; color: var(--muted); font-size: .85rem; }
.health-storage { height: 10px; margin-top: .85rem; overflow: hidden; border-radius: 999px; background: #e5ebef; }
.health-storage span { height: 100%; display: block; border-radius: inherit; background: var(--green); }
.health-card.health-warning .health-storage span { background: var(--amber); }
.health-card.health-error .health-storage span { background: var(--red); }
.health-help { margin-top: 1rem; }
.health-help p:last-child { margin-bottom: 0; }

@media (max-width: 1180px) {
  .header-inner { grid-template-columns: auto auto; gap: .7rem; padding: .65rem 0; }
  .site-navigation { grid-column: 1 / -1; grid-row: 2; order: 3; }
  .site-nav { justify-content: flex-start; }
  .header-actions { justify-self: end; }
}

@media (max-width: 1100px) {
  .people-page-heading { align-items: stretch; flex-direction: column; }
  .people-heading-actions { min-width: 0; justify-content: flex-end; }
  .vacation-management-heading { align-items: stretch; flex-direction: column; }
  .vacation-management-actions { width: 100%; min-width: 0; justify-content: flex-end; }
}

@media (max-width: 1399px) {
  .people-panel { width: 100%; left: auto; transform: none; overflow: visible; }
  .people-table, .people-table tbody { display: block; width: 100%; }
  .people-table colgroup { display: none; }
  .people-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .people-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .people-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
  .people-table tbody td { display: block; min-width: 0; padding: .85rem; border-bottom: 1px solid var(--line); }
  .people-table tbody td::before { content: attr(data-label); display: block; margin-bottom: .32rem; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .people-table tbody .people-empty { display: block; grid-column: 1 / -1; }
  .people-table tbody .people-empty td { border-bottom: 0; }
  .people-table tbody .people-empty td::before { content: none; }
}

@media (max-width: 760px) {
  .header-inner { width: min(100% - 1rem, 1180px); }
  .brand-mark { width: 37px; height: 37px; border-radius: 10px; }
  .brand-copy strong { font-size: .98rem; }
  .brand-copy small { font-size: .66rem; }
  .site-navigation { margin: 0 -.1rem; }
  .site-nav { padding-bottom: .12rem; }
  .nav-group-label { flex-basis: 4.8rem; padding-inline: .45rem; font-size: .61rem; }
  .site-nav a { min-height: 38px; padding: .42rem .58rem; font-size: .82rem; }
  .notification-panel { position: fixed; top: 4.3rem; right: .5rem; }
  .notification-panel::before { display: none; }
  .container { width: min(100% - 1rem, 1180px); margin-top: .85rem; }
  .page-heading { align-items: stretch; flex-direction: column; gap: .7rem; }
  .people-heading-actions { flex-direction: column; }
  .people-heading-actions, .people-type-filters { align-items: stretch; justify-content: stretch; }
  .people-type-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .people-type-filters .button { justify-content: center; padding-inline: .45rem; }
  .people-heading-actions > .button { width: 100%; }
  .page-heading > .button { align-self: flex-start; }
  .page-section-actions { justify-content: flex-start; }
  .page-section-actions .button { flex: 1 1 100%; }
  .vacation-management-actions { flex-wrap: wrap; }
  .page-section-back { margin-left: 0; }
  .section-heading, .request-heading, .request-summary-top { align-items: stretch; flex-direction: column; }
  .section-links { justify-content: flex-start; }
  .request-date-range { grid-template-columns: 1fr; }
  .request-date-arrow { justify-self: center; transform: rotate(90deg); }
  .correction-review-heading { align-items: stretch; flex-direction: column; gap: .8rem; }
  .correction-heading-actions { justify-content: flex-start; }
  .correction-heading-actions .button { flex: 1 1 100%; }
  .correction-person-heading { align-items: flex-start; flex-wrap: wrap; }
  .correction-operation { margin-left: 3.95rem; }
  .correction-comparison { grid-template-columns: 1fr; }
  .correction-comparison-arrow { transform: rotate(90deg); }
  .correction-detail-grid { grid-template-columns: 1fr; }
  .correction-timeline li div { grid-template-columns: 1fr; }
  .correction-timeline p { grid-column: 1; }
  .correction-decision-actions { grid-template-columns: 1fr; }
  .correction-resolved-card { align-items: flex-start; flex-direction: column; }
  .review-target-card { grid-template-columns: 1fr; }
  .form-actions .button { width: 100%; }
  h1 { font-size: 1.82rem; }
  .card { padding: 1rem; border-radius: .9rem; }
  .narrow { margin-top: 1rem; }
  .grid { grid-template-columns: 1fr; }
  .health-grid { grid-template-columns: 1fr; }
  .health-overview { align-items: flex-start; }
  .confirmation-actions { flex-direction: column-reverse; }
  .confirmation-actions .button { width: 100%; }
  .people-panel { padding: .7rem; }
  .people-table tbody { grid-template-columns: 1fr; }
  .people-table tbody tr { grid-template-columns: 1fr; }
  .reminder-item, .device-list li { align-items: stretch; flex-direction: column; }
  .reminder-actions .button, .reminder-actions form { width: 100%; }
  .vacation-calendar-toolbar { align-items: stretch; flex-direction: column; }
  .vacation-month-form { min-width: 0; width: 100%; }
  .vacation-month-form > div { align-items: stretch; }
  .vacation-calendar-navigation { grid-template-columns: 1fr 1fr; }
  .vacation-calendar-navigation h3 { grid-column: 1 / -1; grid-row: 1; }
  .vacation-calendar-navigation a { font-size: .82rem; }
  th, td { padding: .7rem .6rem; }
}

@media (max-width: 420px) {
  .brand-copy small { display: none; }
  .link-button { padding-inline: .5rem; }
  .vacation-month-form > div { flex-direction: column; }
  .vacation-calendar-navigation .button { padding-inline: .55rem; }
}

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