:root { color-scheme: light; font-family: Georgia, serif; background: #eff4ed; color: #183527; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.shell { width: min(100% - 32px, 760px); margin: 0 auto; padding: 36px 0 56px; }
.brand { border-bottom: 3px solid #b85c38; margin-bottom: 20px; padding-bottom: 20px; }
.brand-logo { display: block; max-height: 56px; max-width: 220px; object-fit: contain; object-position: left center; margin-bottom: 12px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 2.2rem; margin-bottom: 6px; }
h2 { font-size: 1.35rem; margin-bottom: 12px; }
.eyebrow { color: #a0482b; font-family: monospace; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.panel { background: #fffdf8; border: 1px solid #c7d3c0; border-radius: 6px; padding: 20px; margin-bottom: 16px; box-shadow: 0 5px 16px rgba(24, 53, 39, .07); }
.account-panel { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
form { display: grid; gap: 13px; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #9db39a; border-radius: 4px; background: #fff; color: inherit; font: inherit; padding: 10px; }
button { border: 1px solid #183527; border-radius: 4px; background: #183527; color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 10px 14px; }
button:hover { background: #2c5a42; } button:disabled { cursor: wait; opacity: .65; }
button.secondary { background: transparent; color: #183527; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0; } .summary dt { color: #526b58; } .summary dd { font-weight: 700; margin: 0; }
.leave-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .leave-form .wide, .leave-form button { grid-column: 1 / -1; }
.toggle { align-content: center; grid-template-columns: auto 1fr; } .toggle input { width: auto; }
.permissions { border: 1px solid #c7d3c0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; } .permissions legend { font-weight: 700; } .permissions .toggle { font-size: .8rem; }
.table-wrap { overflow-x: auto; } table { border-collapse: collapse; min-width: 620px; width: 100%; } th, td { border-bottom: 1px solid #d9e2d3; padding: 9px; text-align: left; vertical-align: top; } th { color: #526b58; font-size: .8rem; font-family: monospace; text-transform: uppercase; }
.note, .service-status { color: #526b58; font-size: .9rem; } .message { min-height: 1.5em; color: #a0482b; font-weight: 700; }
@media (max-width: 580px) { .shell { width: min(100% - 24px, 760px); padding-top: 24px; } .grid, .leave-form, .permissions { grid-template-columns: 1fr; } .leave-form .wide, .leave-form button { grid-column: auto; } .account-panel { flex-direction: column; } }

/* leave-dates-required-v1 */
.leave-date-rule {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfe0d5;
  background: #f3faf5;
  color: #274536;
  font-size: 13px;
  line-height: 1.35;
}
.leave-date-label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #355445;
}
.leave-date-label input.is-invalid {
  border-color: #c4574d !important;
  box-shadow: 0 0 0 3px rgba(196, 87, 77, 0.15);
}
.leave-date-label input.is-valid {
  border-color: #6bb48b;
}
.leave-preview-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  color: #456353;
}
.leave-preview-note.is-error {
  color: #a33b32;
}
.leave-preview-note.is-ok {
  color: #1c7147;
}
#leaveSubmitButton:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
