:root {
  --background: oklch(0.977 0.004 80);
  --surface: oklch(0.997 0.002 80);
  --subtle: oklch(0.963 0.006 75);
  --text: oklch(0.255 0.012 70);
  --muted: oklch(0.537 0.012 75);
  --border: oklch(0.912 0.006 80);
  --accent: oklch(0.59 0.169 40);
  --accent-hover: oklch(0.54 0.165 40);
  --accent-soft: oklch(0.953 0.023 55);
  --accent-text: oklch(0.51 0.155 40);
  --green: oklch(0.47 0.084 160);
  --green-soft: oklch(0.955 0.021 160);
  --danger: oklch(0.52 0.18 25);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font:
    14px/1.6 "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}
button,
a {
  transition:
    color 170ms ease-out,
    background-color 170ms ease-out,
    border-color 170ms ease-out;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 10px;
  opacity: 0;
  pointer-events: none;
  left: 20px;
  z-index: 20;
  border-radius: 8px;
  background: var(--accent);
  color: var(--surface);
  padding: 12px 20px;
}
.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}
.site-header {
  height: 86px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(32px, calc((100vw - 1160px) / 2));
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon {
  color: var(--accent);
  display: flex;
}
.brand > strong {
  font-size: 24px;
  letter-spacing: -0.06em;
  font-weight: 750;
}
.brand > strong > span {
  font-weight: 450;
}
.brand-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 7px 0 14px;
}
.brand-product {
  color: var(--muted);
  font-size: 13px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.test-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 9px;
  border-radius: 4px;
}
.main-layout {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 60px;
  padding: 56px 0 64px;
  min-height: calc(100dvh - 160px);
}
.main-column {
  min-width: 0;
}
.eyebrow {
  color: var(--accent-text);
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
}
.page-heading h1 {
  font-size: 38px;
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 13px 0 12px;
}
.page-heading > p:last-child {
  color: var(--muted);
  font-size: 14px;
  max-width: 60ch;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--border);
  margin: 32px 0 27px;
}
.tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.tabs button.active {
  color: var(--accent-text);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 3px 14px oklch(0.3 0.015 70 / 0.025);
}
.section-index {
  color: var(--accent-text);
  letter-spacing: 0.09em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 19px;
}
.section-index > span {
  color: var(--muted);
  margin-left: 12px;
  letter-spacing: 0.02em;
}
.form-panel h2 {
  font-size: 23px;
  letter-spacing: -0.035em;
  font-weight: 600;
  line-height: 1.3;
}
.section-description {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
  max-width: 60ch;
  line-height: 1.85;
}
.auth-form {
  margin-top: 26px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 19px;
}
input:not([type="radio"]),
select,
textarea {
  width: 100%;
  display: block;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  padding: 10px 12px;
  font-weight: 400;
  font-size: 13px;
  margin-top: 8px;
}
input::placeholder,
textarea::placeholder {
  color: oklch(0.65 0.009 75);
}
input:disabled,
select:disabled,
textarea:disabled {
  background: var(--subtle);
}
textarea {
  resize: vertical;
  min-height: 95px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 19px;
  font-size: 13px;
  font-weight: 600;
}
.button-primary {
  background: var(--accent);
  color: oklch(0.99 0.004 70);
  border-color: var(--accent);
}
.button-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}
.auth-form > .button {
  width: 100%;
  margin-top: 2px;
}
.icon-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.icon-button:hover {
  background: var(--subtle);
  color: var(--text);
}
.auth-switch {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
}
.auth-switch button,
.text-button {
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
}
.auth-switch button {
  margin-left: 8px;
}
.aside-column {
  padding-top: 20px;
  min-width: 0;
}
.meeting-summary {
  padding: 30px 28px;
  background: oklch(0.949 0.012 75);
  border-radius: 12px;
}
.summary-mark {
  color: var(--accent-text);
  display: flex;
  align-items: center;
  margin-bottom: 29px;
}
.meeting-summary h2 {
  font-size: 28px;
  letter-spacing: -0.045em;
  line-height: 1.25;
  font-weight: 500;
  margin: 13px 0 17px;
}
.meeting-summary > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.summary-details {
  border-top: 1px solid oklch(0.85 0.012 75);
  padding-top: 21px;
  margin-top: 26px;
  display: grid;
  gap: 15px;
}
.summary-details > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
}
.connection-panel {
  margin-top: 28px;
  padding: 0 1px;
}
.connection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.connection-heading h2 {
  font-size: 13px;
  font-weight: 600;
}
.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
}
.status-row > strong {
  margin-left: auto;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 550;
}
.status-good {
  color: var(--green);
}
.status-pending {
  color: var(--muted);
}
.connection-message {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.connection-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--green-soft);
  font-size: 12px;
  color: var(--green);
  margin-bottom: 20px;
  line-height: 1.8;
}
.notice > .icon-button {
  color: var(--green);
  flex-shrink: 0;
}
.error-message {
  color: var(--danger);
  background: oklch(0.96 0.014 35);
  border: 1px solid oklch(0.86 0.045 35);
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
  margin: 17px 0;
}
.loading-state {
  padding: 50px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.setup-guide {
  margin-top: 26px;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}
.setup-tag {
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--accent-text);
  font-weight: 650;
}
.setup-guide h2 {
  font-size: 16px;
  margin-top: 9px;
  font-weight: 600;
}
.setup-guide ol {
  padding-left: 20px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
  margin: 15px 0;
}
.setup-guide > p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
code {
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.service-options {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
}
.service-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 17px;
  margin-bottom: 10px;
  cursor: pointer;
}
.service-option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.service-option > input {
  accent-color: var(--accent);
  margin: 5px 0 0;
}
.service-option > span:nth-child(2) {
  flex: 1;
}
.service-option strong {
  font-size: 12px;
  font-weight: 600;
}
.service-option small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 4px;
}
.service-option .duration {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.input-with-icon {
  display: block;
  position: relative;
}
.input-with-icon > select {
  appearance: none;
}
.input-with-icon > svg {
  position: absolute;
  right: 12px;
  top: 15px;
  color: var(--muted);
  pointer-events: none;
}
.field-hint {
  font-size: 10px;
  color: var(--muted);
  margin: -6px 0 29px;
  line-height: 1.8;
}
.optional {
  font-size: 10px;
  font-weight: 400;
  margin-left: 6px;
  color: var(--muted);
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: -5px;
  color: var(--muted);
  font-size: 10px;
}
.form-bottom > span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.book-submit {
  width: 100%;
  margin-top: 25px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.list-heading .section-index {
  margin-bottom: 9px;
}
.appointment-row {
  display: flex;
  gap: 16px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}
.appointment-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}
.appointment-icon {
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--subtle);
  color: var(--accent-text);
  border-radius: 9px;
  flex-shrink: 0;
}
.appointment-content {
  flex: 1;
  min-width: 0;
}
.appointment-title {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.appointment-title h3 {
  font-size: 14px;
  font-weight: 600;
}
.appointment-content > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.appointment-content > small {
  color: var(--muted);
  font-size: 11px;
}
.appointment-content > .appointment-note {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.appointment-content > .text-button {
  margin-top: 13px;
  display: block;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 5px;
  padding: 1px 7px;
  background: var(--subtle);
  color: var(--muted);
  font-size: 10px;
}
.badge-good {
  color: var(--green);
  background: var(--green-soft);
}
.cancel-confirm {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
}
.danger {
  color: var(--danger);
}
.empty-state {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 50px 18px;
  gap: 15px;
  color: var(--muted);
}
.empty-state > svg {
  color: var(--accent-text);
}
.empty-state h3 {
  font-size: 17px;
  font-weight: 550;
  color: var(--text);
}
.empty-state p {
  font-size: 12px;
  max-width: 40ch;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px max(32px, calc((100vw - 1160px) / 2));
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  gap: 20px;
}
.error-page {
  max-width: 600px;
  margin: 15dvh auto;
  padding: 25px;
}
.error-page p {
  margin: 18px 0;
}
.error-page button {
  background: var(--accent);
  color: var(--surface);
  border: 0;
  padding: 12px 20px;
  border-radius: 7px;
}
.spinning {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1220px) {
  .main-layout {
    margin: 0 32px;
    gap: 38px;
  }
}
@media (max-width: 850px) {
  .main-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 25px;
    margin: 0 24px;
    padding-top: 38px;
  }
  .form-panel {
    padding: 24px;
  }
  .meeting-summary {
    padding: 25px;
  }
  .meeting-summary h2 {
    font-size: 24px;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .site-header {
    padding: 0 24px;
  }
  .brand-product {
    display: none;
  }
  .brand-divider {
    display: none;
  }
}
@media (max-width: 680px) {
  .site-header {
    height: 72px;
    padding: 0 20px;
  }
  .brand > strong {
    font-size: 23px;
  }
  .test-label {
    font-size: 8px;
    padding: 4px 6px;
    letter-spacing: 0.03em;
  }
  .header-right {
    gap: 8px;
  }
  .main-layout {
    display: flex;
    flex-direction: column;
    margin: 0 20px;
    padding: 34px 0 40px;
    gap: 30px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading > p:last-child {
    font-size: 12px;
  }
  .tabs {
    gap: 24px;
    margin-top: 25px;
  }
  .form-panel {
    padding: 22px;
  }
  .form-panel h2 {
    font-size: 21px;
  }
  .aside-column {
    padding: 0;
    display: flex;
    flex-direction: column-reverse;
    gap: 28px;
  }
  .connection-panel {
    margin: 0;
  }
  .meeting-summary {
    padding: 26px;
  }
  .meeting-summary h2 {
    font-size: 27px;
  }
  .summary-mark {
    margin-bottom: 20px;
  }
  .form-grid {
    gap: 12px;
  }
  .service-option {
    padding: 14px 12px;
    gap: 9px;
  }
  .service-option strong {
    font-size: 11px;
  }
  .service-option small {
    font-size: 10px;
  }
  .service-option .duration {
    font-size: 9px;
  }
  .appointment-row {
    gap: 12px;
  }
  .appointment-title h3 {
    font-size: 13px;
  }
  .site-footer {
    padding: 22px 20px;
    flex-direction: column;
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
#booking-fields {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.text-button {
  min-height: 40px;
}
