:root {
  --sr-red: #8A0101;
  --sr-red-dark: #5f0000;
  --brand: var(--sr-red);
  --brand-dark: var(--sr-red-dark);
  --ink: #171717;
  --muted: #686868;
  --line: #e6e1dc;
  --paper: #fffdf9;
  --surface: #ffffff;
  --background: #f7f2ec;
  --soft: #f6f1eb;
  --success: #1f7a4d;
  --danger: #a11d1d;
  --warning: #9a6500;
  --shadow: 0 18px 50px rgba(23, 23, 23, 0.12);
  --radius: 20px;
  --focus: #2563eb;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(138, 1, 1, 0.13), transparent 32rem),
    linear-gradient(180deg, #fffdf9 0%, #f7f2ec 100%);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus), transparent 70%);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.25rem;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-account {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
}

.header-account form {
  margin: 0;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.header-user {
  max-width: 11rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-sub-link {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: right;
  text-decoration: none;
}

.header-sub-link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.app-shell {
  display: block;
}

.side-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.side-nav a {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.side-nav a.active,
.side-nav a:hover {
  background: #f4e8e8;
  color: var(--brand);
}

.main-content {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.page-heading {
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.15;
}

h2 {
  font-size: 1.15rem;
}

.page-heading p,
.panel p,
.login-panel p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.grid > *,
.form-grid > * {
  min-width: 0;
  max-width: 100%;
}

.module-card,
.panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.module-card {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  text-decoration: none;
}

.module-card span {
  color: var(--brand);
  font-weight: 800;
}

.module-card strong {
  font-size: 1.05rem;
}

.panel {
  padding: 1rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  position: absolute;
  top: -5rem;
  right: -4rem;
  width: 12rem;
  height: 12rem;
  border: 2rem solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-panel .eyebrow,
.hero-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.dashboard-alert {
  display: grid;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  border-color: #e3caca;
}

.dashboard-alert span {
  color: var(--brand);
  font-weight: 800;
}

.dashboard-alert strong {
  font-size: 1.25rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.78;
}

.button.loading {
  pointer-events: none;
}

.button-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.button:hover {
  background: var(--brand-dark);
}

.button-secondary {
  background: #fff;
  color: var(--brand);
}

.button-secondary:hover {
  background: #f4e8e8;
}

.form-stack,
.form-grid {
  display: grid;
  gap: 1rem;
}

.account-form {
  max-width: 34rem;
}

.mileage-fields {
  display: grid;
}

.mileage-fields[hidden] {
  display: none;
}

.form-grid.two {
  grid-template-columns: minmax(0, 1fr);
}

label,
.field {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

.field-label {
  display: block;
}

input,
select,
textarea {
  width: 100%;
  inline-size: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  padding: 0.7rem 0.75rem;
  background: #fff;
  color: var(--ink);
}

input[type="date"] {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  inline-size: 100%;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

input[type="hidden"] {
  display: none;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  padding-right: 2.25rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.check-row input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--brand);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #f4e8e8;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
}

.status-pill.danger {
  background: #fff1f1;
  color: var(--danger);
}

.login-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(138, 1, 1, 0.88), rgba(98, 0, 0, 0.9)),
    var(--brand);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.login-panel {
  width: min(100%, 420px);
  padding: 1.25rem;
}

.login-panel .brand-mark {
  margin-bottom: 1rem;
}

.login-brand-mark {
  width: 4.5rem;
  height: 3.5rem;
}

.alert {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid #f3b4b4;
  border-radius: 6px;
  background: #fff1f1;
  color: #7f1d1d;
}

.dashboard-grid,
.module-list,
.expense-list,
.review-list,
.receipt-list,
.compact-list {
  display: grid;
  gap: 1rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
}

.controls-panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.expense-section {
  margin-top: 1.5rem;
}

.attention-panel {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  border-color: #f3b4b4;
  background: #fffafa;
}

.attention-panel h2,
.attention-panel p {
  margin-bottom: 0;
}

.attention-card {
  border-color: #f3b4b4;
}

.expense-card,
.review-card,
.metric,
.existing-file,
.receipt-item {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.expense-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.expense-card div {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.expense-card span,
.field-note,
.detail-grid span,
.review-card span,
.metric span,
dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.field-note-placeholder {
  visibility: hidden;
}

.empty-state {
  color: var(--muted);
}

.project-combo {
  display: grid;
  gap: 0.35rem;
  position: relative;
}

.combo-control {
  position: relative;
  display: block;
}

.combo-control input {
  padding-right: 2.75rem;
}

.combo-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 2.55rem;
  height: calc(100% - 2px);
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 6px 6px 0;
  background: #fff;
  cursor: pointer;
}

.combo-toggle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translate(-50%, -65%) rotate(45deg);
  content: "";
}

.project-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  max-height: 16rem;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(23, 23, 23, 0.14);
}

.project-results[hidden] {
  display: none;
}

.project-results button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.project-results button:last-child {
  border-bottom: 0;
}

.project-results button:hover,
.project-results button:focus-visible {
  background: var(--soft);
}

.quick-projects,
.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: -0.35rem;
}

.quick-projects button,
.quick-picks button {
  display: inline-grid;
  gap: 0.1rem;
  max-width: 100%;
  border: 1px solid #e3caca;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  padding: 0.55rem 0.8rem;
  text-align: left;
}

.quick-projects span,
.quick-projects strong,
.quick-picks span,
.quick-picks strong {
  overflow-wrap: anywhere;
}

.quick-projects span,
.quick-picks span {
  color: var(--ink);
  font-weight: 800;
}

.quick-projects strong,
.quick-picks strong {
  color: var(--brand);
  font-size: 0.8rem;
}

.receipt-list {
  margin-top: 0.5rem;
}

.receipt-list h2 {
  margin-bottom: 0;
}

.receipt-item,
.existing-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.receipt-item strong,
.existing-file strong {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  max-width: 100%;
  line-height: 1.25;
}

.receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.receipt-actions.single {
  grid-template-columns: 1fr;
}

.remove-toggle {
  position: relative;
}

.remove-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button-danger:hover {
  background: #7f1515;
}

.detail-panel {
  display: grid;
  gap: 1rem;
}

.detail-grid,
.metric-grid,
.review-details {
  display: grid;
  gap: 0.75rem;
}

.detail-grid {
  grid-template-columns: minmax(0, 1fr);
}

.detail-grid div,
.metric {
  display: grid;
  gap: 0.15rem;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.metric {
  padding: 1rem;
}

.metric strong {
  font-size: 1.35rem;
}

.review-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.review-tabs a {
  flex: 0 0 auto;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.review-tabs a.active {
  border-color: var(--brand);
  background: #f4e8e8;
  color: var(--brand);
}

.batch-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    max-height 240ms ease,
    margin 240ms ease,
    padding 240ms ease,
    border-width 240ms ease;
  max-height: 1200px;
  overflow: hidden;
}

.review-card.is-removing {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.review-head div {
  display: grid;
  gap: 0.2rem;
}

.review-details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.review-details div {
  min-width: 0;
}

dt,
dd {
  margin: 0;
}

dd {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.payroll-table {
  min-width: 920px;
}

.payroll-table th:first-child,
.payroll-table td:first-child {
  width: 34%;
}

.client-billing-table th:first-child,
.client-billing-table td:first-child {
  width: 4.25rem;
  min-width: 4.25rem;
  text-align: center;
}

.client-billing-table th:first-child .check-row,
.client-billing-table td:first-child .check-row {
  justify-content: center;
}

.timeoff-balance-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeoff-calendar-stack {
  display: grid;
  gap: 1rem;
}

.timeoff-past-months {
  margin: 1rem 0;
}

.timeoff-section {
  margin-bottom: 1.5rem;
}

.timeoff-past-months summary,
.inline-details summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 800;
}

.timeoff-month {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeoff-month.is-past {
  background: #fbfaf8;
}

.timeoff-month h3 {
  margin: 0;
}

.timeoff-weekdays,
.timeoff-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(2.25rem, 1fr));
  gap: 0.35rem;
}

.timeoff-weekdays span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.timeoff-day {
  position: relative;
  min-height: 5.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0.35rem;
}

.timeoff-day.empty {
  border-color: transparent;
  background: transparent;
}

.timeoff-day.past-day {
  opacity: 0.68;
}

.timeoff-day.has-pto {
  background: #eef6ff;
}

.timeoff-day.has-holiday {
  background: #f4fff6;
}

.timeoff-day.has-pto.has-holiday {
  background: linear-gradient(135deg, #eef6ff 0 50%, #f4fff6 50% 100%);
}

.timeoff-day.half-pto {
  background: linear-gradient(90deg, #dbeafe 0 50%, #fff 50% 100%);
}

.timeoff-day-number {
  display: inline-grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.timeoff-events {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.timeoff-event {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
}

.timeoff-event summary {
  cursor: pointer;
  padding: 0.18rem 0.25rem;
  font-weight: 800;
}

.timeoff-event.pto summary {
  color: #174a8b;
}

.timeoff-event.floating_holiday summary,
.timeoff-event.fixed_holiday summary {
  color: #1f7a4d;
}

.timeoff-event.pending {
  background:
    repeating-linear-gradient(135deg, rgba(138, 1, 1, 0.16) 0 5px, rgba(255, 255, 255, 0.82) 5px 10px);
}

.timeoff-event p {
  margin: 0;
  padding: 0 0.25rem 0.25rem;
  font-size: 0.68rem;
}

.compact-actions {
  display: grid;
  gap: 0.25rem;
  padding: 0.25rem;
}

.compact-actions .button {
  min-height: 1.8rem;
  padding: 0.25rem 0.35rem;
  font-size: 0.68rem;
}

.timeoff-request-card form {
  margin: 0;
}

.timeoff-balance-table {
  min-width: 1120px;
  table-layout: fixed;
}

.timeoff-balance-table th:first-child,
.timeoff-balance-table td:first-child {
  width: 16rem;
}

.timeoff-balance-table th:not(:first-child),
.timeoff-balance-table td:not(:first-child) {
  width: calc((100% - 16rem) / 11);
  text-align: center;
}

.timeoff-balance-table .grouped-heading {
  border-bottom-color: #d8c2c2;
  background: #fff8f8;
  color: var(--brand);
  text-align: center;
}

.timeoff-balance-table .pending-approved-col {
  background: #faf4ef;
}

.timeoff-balance-table .holiday-heading,
.timeoff-balance-table .holiday-start-col {
  border-left: 2px solid #d8c2c2;
}

.timeoff-summary-table {
  min-width: 620px;
}

.timeoff-summary-table th:not(:first-child),
.timeoff-summary-table td:not(:first-child) {
  text-align: center;
}

.timeoff-summary-table .pending-approved-col {
  background: #faf4ef;
}

.payroll-expense-choice {
  align-items: flex-start;
}

.payroll-memo {
  min-height: 8rem;
  resize: vertical;
  white-space: pre-wrap;
}

.review-actions {
  display: grid;
  gap: 0.75rem;
}

.review-link-actions {
  display: grid;
}

.review-actions form {
  display: grid;
  gap: 0.5rem;
}

.check-row.compact {
  justify-content: start;
  font-weight: 700;
}

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

.group-label {
  margin: 1rem 0 0;
  color: var(--brand);
}

.status {
  display: none;
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(calc(100vw - 24px), 520px);
  border-radius: 16px;
  padding: 12px 13px;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 18px 40px rgba(23, 23, 23, 0.2);
}

.status.visible {
  display: block;
}

.status.success {
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #065f46;
}

.status.error {
  background: #fff1f1;
  border: 1px solid #f3b4b4;
  color: #7f1d1d;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  padding: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.68);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  max-width: 920px;
  min-width: 0;
  height: min(92vh, 100%);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.modal-body {
  order: 1;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #111;
}

.modal-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  text-align: center;
  background: #111;
}

.modal-header {
  order: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 10px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.modal-header strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-preview {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
}

@media (min-width: 760px) {
  .app-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .side-nav {
    position: sticky;
    top: 65px;
    align-self: start;
    display: grid;
    min-height: calc(100vh - 65px);
    align-content: start;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .main-content {
    padding: 2rem;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    grid-column: span 2;
  }

  .form-grid.two,
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .controls-panel,
  .batch-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .timeoff-balance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .review-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel,
  .login-panel,
  .module-card {
    padding: 1.25rem;
  }
}
