:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #243e34;
  background: #f7f5ef;
  font-synthesis: none;
  --green: #203f34;
  --muted: #637369;
  --line: #e0e5dc;
  --paper: #fffefa;
  --occupied: #f2e7df;
  --red: #895538;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid #cdd6ca;
  border-radius: 10px;
  background: var(--paper);
  color: var(--green);
  padding: 10px 16px;
  font-weight: 600;
}
button:hover:enabled {
  background: #eef2e8;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #bc8836;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header {
  max-width: 1024px;
  margin: auto;
  padding: 30px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.header-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
}
.language-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.language-control .language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
}
.language-flag svg {
  display: block;
  width: 28px;
  height: 20px;
  border: 1px solid #203f3433;
  border-radius: 2px;
}
.language-control .language-flag[aria-pressed="true"] {
  border-color: var(--green);
  background: #e7eddf;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: bold;
  color: var(--green);
  text-decoration: none;
}
.quiet {
  border-color: transparent;
  background: transparent;
  font-size: 14px;
}
.quiet span {
  margin-left: 16px;
}
main {
  max-width: 1024px;
  margin: auto;
  padding: 0 24px;
}
.intro {
  margin: 40px 0 38px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.8px;
  margin: 0 0 12px;
  color: var(--muted);
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1px;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 0 14px;
}
h2 {
  font-size: 30px;
  margin: 0;
  text-transform: capitalize;
}
.subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.calendar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px #203f3405;
  overflow: hidden;
}
.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 32px 22px;
}
.calendar-top .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
.month-nav {
  display: flex;
  gap: 8px;
}
.month-nav button {
  padding: 8px 14px;
}
.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 0 32px 25px;
  font-size: 12px;
  color: var(--muted);
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.free {
  background: #647f50;
}
.dot.occupied {
  background: #a27051;
}
.whole-days {
  margin-left: auto;
  font-size: 11px;
}
.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  padding: 0 24px;
}
.weekdays {
  padding-top: 16px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
}
.days {
  padding-bottom: 24px;
  gap: 6px;
}
.day {
  min-width: 0;
  height: 90px;
  text-align: left;
  border: 1px solid #e8ece2;
  border-radius: 10px;
  background: #f7f9f2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.day .number {
  font-size: 17px;
  font-weight: 550;
}
.weekdays > span {
  padding: 7px 0;
}
.weekdays > .weekend {
  background: #dfe8d8;
  color: var(--green);
  border-radius: 6px;
  font-weight: 800;
}
.day.weekend.free:not(.selected) {
  background: #eaf0e2;
  border-color: #b8c6ac;
}
.day.weekend::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #8a9f7c;
  border-radius: 9px 9px 0 0;
  pointer-events: none;
}
.day.weekend-start,
.weekdays > .weekend-start {
  border-inline-start: 2px solid #8a9f7c;
}
.day .status {
  font-size: 10px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #536c46;
}
.day.occupied {
  background: var(--occupied);
  border-color: #ebddd2;
  color: #794b33;
}
.day.occupied .status {
  color: #88573a;
}
.day.unknown {
  background: #f2f2ee;
  color: #777;
  border-color: #e5e5df;
}
.day.unknown .status {
  color: #777;
}
.day.is-today .number {
  border-bottom: 2px solid currentColor;
}
.day.selected {
  box-shadow: inset 0 0 0 2px var(--green);
  background: #dfe9d5;
}
.calendar-bottom {
  min-height: 59px;
  border-top: 1px solid var(--line);
  padding: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.notice {
  font-size: 14px;
  line-height: 1.6;
  min-height: 24px;
  margin: 16px 8px;
  color: #794b33;
}
footer {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: flex-start;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 28px 0 36px;
}
footer p {
  margin: 0;
}
.footer-mark {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  background: var(--paper);
  color: var(--green);
}
dialog::backdrop {
  background: #122e2466;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #bdcabc;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  color: var(--green);
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover:enabled {
  background: #315744;
}
button:disabled:not(.day) {
  opacity: 0.5;
}
.login-form {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.editor {
  background: #ecf0e6;
  border: 1px solid #d8e0d0;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}
.editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.editor h2 {
  font-size: 24px;
}
.editor-tools {
  display: flex;
  gap: 6px;
}
.range-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.range-summary {
  font-size: 14px;
  line-height: 1.6;
  min-height: 24px;
}
.save-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.editor .helper {
  margin-bottom: 0;
}
.error {
  color: #904528;
}
a {
  color: var(--green);
}
@media (max-width: 600px) {
  .site-header {
    padding: 20px 14px;
  }
  .brand {
    font-size: 22px;
    gap: 10px;
  }
  main {
    padding: 0 14px;
  }
  .intro {
    margin: 26px 0 28px;
  }
  h1 {
    font-size: 33px;
    max-width: 350px;
  }
  .subtitle {
    font-size: 14px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .calendar-card {
    border-radius: 15px;
  }
  .calendar-top {
    padding: 20px 16px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .calendar-top .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  h2 {
    font-size: 25px;
  }
  .month-nav {
    gap: 4px;
  }
  .month-nav button {
    padding: 8px 10px;
    font-size: 13px;
    min-width: 44px;
  }
  .legend {
    padding: 0 16px 20px;
    gap: 17px;
    font-size: 11px;
  }
  .whole-days {
    width: 100%;
    margin-left: 0;
    font-size: 10px;
  }
  .weekdays,
  .days {
    padding-left: 10px;
    padding-right: 10px;
    gap: 4px;
  }
  .weekdays {
    padding-top: 14px;
    padding-bottom: 12px;
  }
  .days {
    padding-bottom: 12px;
  }
  .day {
    height: 64px;
    padding: 7px 3px;
    border-radius: 7px;
    align-items: center;
  }
  .day .number {
    font-size: 15px;
  }
  .day .status {
    font-size: 16px;
    gap: 2px;
  }
  .day .state-text {
    display: none;
  }
  .day .state-marker {
    font-size: 16px;
    font-weight: 700;
  }
  .day .dot {
    width: 4px;
    height: 4px;
  }
  .calendar-bottom {
    padding: 8px 14px;
    flex-wrap: wrap;
    font-size: 10px;
    min-height: 52px;
  }
  .calendar-bottom button {
    font-size: 12px;
    padding: 6px;
  }
  .notice {
    margin: 12px 4px;
  }
  footer {
    font-size: 11px;
    justify-content: flex-start;
    margin: 20px 0 30px;
    gap: 8px;
  }
  .editor {
    padding: 18px 14px;
  }
  .editor-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .editor-tools {
    margin-left: -10px;
  }
  .range-fields {
    gap: 10px;
  }
  .save-actions button {
    flex: 1;
    padding: 12px 8px;
    font-size: 13px;
  }
  input[type="date"] {
    font-size: 14px;
  }
  .editor .helper {
    font-size: 11px;
  }
}
