:root {
  --forest: #244b40;
  --forest-dark: #19362e;
  --lake: #dbe9e4;
  --paper: #fafbf8;
  --ink: #24352e;
  --muted: #6b7871;
  --honey: #c5a56a;
  --border: #dce2dc;
  --white: #fff;
  --danger: #9c3636;
  --radius: 12px;
  --shadow: 0 12px 40px #203b2e0c;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button,
.btn {
  touch-action: manipulation;
}
.icon {
  width: 21px;
  height: 21px;
  flex: none;
  vertical-align: middle;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--forest);
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--forest-dark);
}
.btn.secondary {
  background: white;
  color: var(--forest);
  border-color: var(--border);
}
.btn.secondary:hover {
  background: var(--lake);
}
.btn.danger {
  background: var(--danger);
}
.btn.small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 40px;
  height: 40px;
}
.icon-button:hover {
  background: var(--lake);
}
:focus-visible {
  outline: 3px solid #c5a56a;
  outline-offset: 4px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bdc9c1;
  border-radius: 6px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--forest);
}
.field {
  display: grid;
  gap: 7px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.muted {
  color: var(--muted);
}
.error {
  color: var(--danger);
  padding: 12px;
  background: #fff1ef;
  border-radius: 6px;
  font-size: 14px;
}
.success {
  color: var(--forest);
  padding: 12px;
  background: var(--lake);
  border-radius: 6px;
  font-size: 14px;
}
[hidden] {
  display: none !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  background: var(--lake);
  color: var(--forest);
}
.badge.pending {
  background: #f6ecd5;
  color: #795b25;
}
.badge.declined {
  background: #f4e4e3;
  color: var(--danger);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.weekday {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 8px 0;
}
.calendar-day {
  height: 40px;
  min-width: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}
.calendar-day:hover:not(:disabled) {
  background: var(--lake);
}
.calendar-day.blocked {
  background: #f0f1ee;
  text-decoration: line-through;
  color: #7d817b;
}
.calendar-day.selected {
  background: var(--forest);
  color: white;
}
.calendar-day.in-range {
  background: var(--lake);
}
.calendar-day.today {
  box-shadow: inset 0 0 0 1px var(--forest);
}
.calendar-day:disabled {
  opacity: 0.5;
}
.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;
}
dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 25px;
  max-width: calc(100vw - 32px);
  color: var(--ink);
}
dialog::backdrop {
  background: #17271ec2;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
p {
  line-height: 1.6;
}
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .btn {
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
