.demo-main {
  display: block;
  width: min(1120px, calc(100% - 64px));
  padding: 46px 0 70px;
  margin: 0 auto;
}
.demo-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.demo-heading h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.8px;
  margin: 0 0 14px;
}
.demo-heading .eyebrow {
  margin-bottom: 15px;
}
.demo-subtitle {
  color: #68725f;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 650px;
}
.demo-notice {
  border: 1px solid #d9dfc8;
  border-left: 3px solid #8b9d70;
  background: #eef1e7;
  padding: 16px 20px;
  border-radius: 8px;
  color: #4d5d3f;
  font-size: 12px;
  line-height: 1.7;
}
.demo-notice p {
  margin: 5px 0 0;
}
.timezone {
  color: #68725f;
  font-size: 11px;
  line-height: 1.7;
  margin: 17px 0 26px;
}
.button {
  font: inherit;
  font-size: 12px;
  border: 1px solid #ced5c2;
  border-radius: 7px;
  padding: 11px 16px;
  background: #fff;
  color: #4c5e3e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.button:hover {
  background: #edf1e5;
}
.button.primary {
  background: #536747;
  border-color: #536747;
  color: white;
}
.button.primary:hover {
  background: #405335;
}
.button.danger {
  color: #904c40;
  border-color: #dfc9c2;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9dac85;
  outline-offset: 3px;
}
.panel {
  background: #fff;
  border: 1px solid #e0e4d8;
  border-radius: 12px;
  padding: 28px;
}
.panel h2 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.panel h2:focus {
  outline: none;
}
.help {
  color: #69745f;
  font-size: 12px;
  line-height: 1.8;
}
.steps {
  display: flex;
  padding: 0;
  list-style: none;
  gap: 14px;
  margin: 0 0 27px;
}
.steps li {
  flex: 1;
  font-size: 12px;
  color: #768169;
  border-top: 3px solid #e1e6d8;
  padding-top: 12px;
  line-height: 1.6;
}
.steps li.active {
  border-color: #71885a;
  color: #405634;
  font-weight: 600;
}
.intake-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr);
  gap: 24px;
  align-items: start;
}
.aside-card {
  background: #e9eddf;
  padding: 27px;
  border-radius: 12px;
  color: #526644;
}
.aside-card h3 {
  font-weight: 550;
  font-size: 18px;
  margin: 0 0 15px;
}
.aside-card p {
  font-size: 12px;
  line-height: 1.9;
}
label,
.field-label {
  display: block;
  font-size: 12px;
  color: #495841;
  margin: 20px 0 8px;
  font-weight: 550;
}
label small {
  color: #78836f;
  font-weight: 400;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  background: #fcfcfa;
  border: 1px solid #d4dbc9;
  border-radius: 6px;
  padding: 12px;
  color: #303c29;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="radio"],
input[type="checkbox"] {
  width: auto;
  accent-color: #647c4e;
}
fieldset {
  margin: 20px 0;
  border: 0;
  padding: 0;
}
legend {
  font-size: 12px;
  color: #495841;
  font-weight: 550;
  margin-bottom: 7px;
}
.choices {
  display: flex;
  gap: 12px;
}
.choice {
  border: 1px solid #d9e0cd;
  padding: 13px;
  border-radius: 7px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  flex: 1;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 27px;
  flex-wrap: wrap;
}
.form-error {
  color: #994331;
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.form-error:empty {
  display: none;
}
[aria-invalid="true"] {
  border-color: #ad6252;
}
.status {
  color: #426537;
  font-size: 13px;
  line-height: 1.8;
}
.status:empty {
  display: none;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}
.slot-grid button[aria-pressed="true"] {
  background: #e3ebd7;
  border: 2px solid #647c4e;
  padding: 10px 15px;
}
.summary {
  background: #f1f4eb;
  border-radius: 8px;
  padding: 16px;
  line-height: 1.8;
  font-size: 13px;
  margin-top: 20px;
}
.summary p {
  margin: 5px 0;
}
.session-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #e0e5d7;
  padding: 19px;
  border-radius: 8px;
  background: white;
}
.session-row h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 550;
}
.session-row p {
  font-size: 12px;
  color: #6c7862;
  margin: 0;
  line-height: 1.8;
}
.row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.row-actions .button {
  font-size: 11px;
  padding: 9px 11px;
}
.profile-line {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #607053;
  line-height: 1.8;
}
.badge {
  font-size: 10px;
  letter-spacing: 0.5px;
  background: #e9efdf;
  padding: 5px 9px;
  border-radius: 5px;
  color: #5d714b;
}
dialog {
  width: min(600px, calc(100% - 30px));
  border: 1px solid #d5ddc9;
  border-radius: 13px;
  padding: 27px;
  color: #2e3827;
  max-height: 85svh;
}
dialog::backdrop {
  background: #222a1e77;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.dialog-header h2 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.6px;
  font-weight: 550;
}
.close-button {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #76836b;
  cursor: pointer;
}
.preview-dates {
  max-height: 200px;
  overflow: auto;
  padding-left: 22px;
  font-size: 12px;
  line-height: 2;
}
.login-panel {
  max-width: 460px;
  text-align: center;
  margin: 45px auto;
  padding: 40px;
}
.login-icon {
  font-size: 33px;
  color: #7e9565;
  margin-bottom: 18px;
}
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.week-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.week-controls h2 {
  font-size: 15px;
  margin: 0;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.day-column {
  min-height: 260px;
  border: 1px solid #e0e4d8;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}
.day-column h3 {
  font-size: 11px;
  font-weight: 600;
  color: #647455;
  margin: 3px 0 17px;
  line-height: 1.7;
}
.day-column.outside {
  background: #efefe9;
  opacity: 0.65;
}
.calendar-event {
  background: #edf2e5;
  border-left: 3px solid #91a773;
  border-radius: 5px;
  padding: 9px 7px;
  margin-bottom: 10px;
  font-size: 10px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.calendar-event strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin: 3px 0;
}
.calendar-event.blocked {
  background: #f3eade;
  border-left-color: #bd9d72;
  color: #826344;
}
.remove-block {
  background: none;
  border: 0;
  color: #805f3d;
  padding: 6px 0 0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 10px;
}
.empty-day {
  font-size: 10px;
  color: #8d9683;
  line-height: 1.8;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.demo-cards {
  width: min(1160px, calc(100% - 112px));
  margin: 0 auto 65px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.demo-card {
  display: block;
  padding: 25px;
  border: 1px solid #dce2d2;
  border-radius: 10px;
  background: #fff;
  transition: background 0.15s;
}
.demo-card:hover {
  background: #eef2e7;
}
.demo-card .eyebrow {
  margin-bottom: 16px;
  font-size: 8px;
}
.demo-card h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.demo-card p {
  font-size: 12px;
  color: #738167;
  line-height: 1.8;
}
.demo-card .link-label {
  font-size: 11px;
  color: #526b40;
  display: block;
  margin-top: 20px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .session-row {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 700px) {
  .demo-main {
    width: calc(100% - 36px);
    padding-top: 30px;
  }
  .demo-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .intake-layout {
    grid-template-columns: 1fr;
  }
  .aside-card {
    order: 2;
  }
  .panel {
    padding: 22px;
  }
  .demo-cards {
    width: calc(100% - 44px);
    grid-template-columns: 1fr;
  }
  .week-grid {
    grid-template-columns: 1fr;
  }
  .day-column {
    min-height: 90px;
    padding: 16px;
  }
  .calendar-event {
    font-size: 12px;
  }
  .calendar-event strong {
    font-size: 13px;
  }
  .steps {
    gap: 10px;
  }
  .steps li {
    font-size: 10px;
  }
  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .choices {
    flex-wrap: wrap;
  }
  .choice {
    min-width: 130px;
  }
  .week-controls {
    gap: 7px;
  }
  .week-controls h2 {
    font-size: 12px;
  }
}
