@font-face{font-family:Golos;src:url(golos-text-cyrillic-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0400-052F}@font-face{font-family:Golos;src:url(golos-text-latin-wght-normal.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0000-024F}
* { box-sizing: border-box; }
body { margin: 0; background: var(--color-canvas); color: var(--color-text); font: 15px/1.5 Golos, system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 4px; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; touch-action: manipulation; }
button { cursor: pointer; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); padding: 10px 16px; border-radius: var(--radius-control); min-height: 44px; line-height: 1.4; }
button:hover { background: var(--color-surface-subtle); }
button:disabled { cursor: default; opacity: .5; }
.primary { background: var(--color-text); color: var(--color-surface); border-color: var(--color-text); }
.primary:hover { background: #303030; }
.text-button { border: 0; background: transparent; padding: 10px 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--color-muted); outline-offset: 2px; }
h1, h2, h3, p, dl { margin: 0; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 550; letter-spacing: -.7px; }
h2 { font-size: 20px; line-height: 1.35; font-weight: 550; margin-bottom: 16px; }
h3 { font-size: 17px; line-height: 1.4; font-weight: 550; margin-bottom: 16px; }
p + p { margin-top: 12px; }
.muted, dt, small { color: var(--color-muted); }
small { display: block; font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.site-header, main { width: min(1100px, calc(100% - 64px)); margin-inline: auto; }
main { padding-bottom: 48px; }
.site-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--color-border); }
.identity { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; min-width: 0; }
.identity-section { display: block; font-size: 13px; font-weight: 400; color: var(--color-muted); margin-top: 2px; }
.identity-avatar { display: block; width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: none; }
nav form { margin: 0; }
.intro { padding-block: 28px 28px; }
.intro h1 { font-size: 30px; }
.lead { margin-top: 16px; color: var(--color-muted); font-size: 17px; }
.meeting-summary { margin-top: 20px; font-size: 14px; color: var(--color-muted); }
.booking-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.date-pane, .time-pane, .panel, .auth { padding: 28px; background: var(--color-surface); border-radius: var(--radius-panel); min-width: 0; }
.date-pane { background: #e4e7ee; }
.paused { padding-block: 32px; }
.paused h2 { margin-bottom: 12px; }
label { display: block; font-size: 14px; }
input:not([type=checkbox]), textarea { display: block; width: 100%; min-width: 0; border: 1px solid var(--color-border-strong); border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-text); padding: 10px 12px; min-height: 44px; margin: 0; }
label + input, label + textarea, label > input:not([type=checkbox]), label > textarea { margin-top: 8px; }
input:not([type=checkbox]) { height: 46px; }
textarea { resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--color-brand-blue); }
#slot-state { color: var(--color-muted); margin-bottom: 20px; }
#slot-state:empty { display: none; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.slots:empty { display: none; }
.slots button { font-variant-numeric: tabular-nums; padding: 10px; }
.slots button[aria-pressed=true] { background: var(--color-accent-soft); border-color: var(--color-brand-blue); color: var(--color-brand-blue); }
#guest-form { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--color-border); scroll-margin-top: 24px; }
#guest-form input, #guest-form textarea { margin-bottom: 20px; }
#guest-form .muted { font-size: 13px; }
#guest-form p.muted { margin-block: 20px; }
#booking-result { margin-top: 16px; }
.auth { max-width: 500px; margin: 40px auto 0; }
.auth h1 { margin-bottom: 24px; }
.auth form { display: grid; gap: 16px; }
.auth input { margin-bottom: 16px; }
.auth > a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-block: 32px 24px; }
.title-row > a { min-height: 44px; display: inline-flex; align-items: center; flex: none; }
.admin-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.panel { margin-bottom: 24px; }
.admin-top .panel { margin: 0; }
.panel p { font-size: 14px; }
.panel > p { margin-bottom: 20px; }
.panel > p:last-child { margin-bottom: 0; }
.source-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--color-border); font-size: 14px; }
.source-row span { text-align: right; }
.source-row code { overflow-wrap: anywhere; max-width: 65%; font-size: 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.actions > a { display: inline-flex; align-items: center; min-height: 44px; }
.help-details { margin-top: 24px; border-top: 1px solid var(--color-border); padding-top: 12px; font-size: 14px; }
.help-details summary { cursor: pointer; min-height: 44px; align-content: center; }
.help-details p { margin-top: 12px; color: var(--color-muted); }
.notice { padding: 20px; background: var(--color-warning-soft); margin-top: 24px; overflow-wrap: anywhere; }
.notice h2 { font-size: 18px; }
.notice form { margin-top: 20px; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--color-muted); font-weight: 400; }
td, th { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--color-border); vertical-align: top; overflow-wrap: anywhere; }
td:last-child, th:last-child { padding-right: 0; }
.settings-form fieldset { border: 0; border-top: 1px solid var(--color-border); padding: 24px 0 0; margin: 32px 0; min-width: 0; }
.settings-form legend { font-weight: 550; font-size: 17px; padding: 0 16px 0 0; }
.settings-form fieldset > label:not(.check) { margin-bottom: 24px; }
.settings-form fieldset > label:last-child { margin-bottom: 0; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fields label { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-width: 0; }
.fields label > input { margin: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; }
.check:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 24px; }
.detail { margin-top: 16px; max-width: 850px; }
.detail h1 { margin-bottom: 24px; }
.detail dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px 24px; margin-bottom: 28px; }
.detail dd { margin: 0; overflow-wrap: anywhere; }
.detail dt { font-size: 14px; }
.discovery h1 { margin-bottom: 16px; }
.discovery h2 { margin-top: 28px; }
.discovery .source-row + p { margin-top: 16px; }
.back-link + .panel { margin-top: 16px; }
.detail > h2 { margin-top: 32px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--color-canvas); padding: 16px; margin-block: 20px; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .admin-top { grid-template-columns: 1fr 1fr; }
  .source-row { flex-direction: column; gap: 6px; }
  .source-row span { text-align: left; }
  .source-row code { max-width: 100%; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-layout { grid-template-columns: 260px minmax(0, 1fr); }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header, main { width: calc(100% - 40px); }
  .site-header { flex-wrap: wrap; gap: 12px; padding-block: 20px 12px; }
  nav { gap: 24px; }
  .intro { padding-block: 20px 24px; }
  .intro h1 { font-size: 26px; }
  .booking-layout, .admin-top { grid-template-columns: 1fr; gap: 20px; }
  .admin-top { margin-bottom: 20px; }
  .panel { margin-bottom: 20px; }
  .date-pane, .time-pane, .panel, .auth { padding: 24px; }
  .title-row { margin-block: 24px 20px; align-items: flex-start; }
  h1 { font-size: 28px; }
  .title-row h1 { font-size: 26px; }
}
@media (max-width: 540px) {
  .site-header, main { width: calc(100% - 32px); }
  .identity { width: 100%; }
  .site-header nav { width: 100%; }
  .title-row { flex-direction: column; gap: 8px; }
  .date-pane, .time-pane, .panel, .auth { padding: 20px; }
  .fields { grid-template-columns: 1fr; gap: 20px; }
  input:not([type=checkbox]), textarea { font-size: 16px; }
  .detail dl { grid-template-columns: 1fr; gap: 6px; }
  .detail dd { margin-bottom: 14px; }
  .detail dd:last-child { margin-bottom: 0; }
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding-block: 20px; border-bottom: 1px solid var(--color-border); }
  tr:first-child { padding-top: 0; }
  td { padding: 0 0 16px; border: 0; }
  td:last-child { padding-bottom: 0; }
  td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--color-muted); margin-bottom: 6px; }
}

select { font: inherit; width: 100%; min-width: 0; height: 46px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-control); background: var(--color-surface); color: var(--color-text); padding: 10px 12px; margin-top: 8px; }
select:focus-visible { outline: 2px solid var(--color-muted); outline-offset: 2px; }
.source-selection { margin-bottom: 28px; }
.source-selection:last-child { margin-bottom: 0; }
.source-selection .check { align-items: center; min-height: 44px; margin: 0; padding-block: 8px; }
.source-selection .notice { margin-bottom: 16px; }
.settings-feedback { margin-bottom: 24px; }
.save-success { padding-block: 12px; font-weight: 500; }
.settings-form fieldset > p { margin-bottom: 20px; }
.exception-editor { display: flex; align-items: flex-end; gap: 12px; margin-block: 16px; }
.exception-list { display: grid; flex: 1; min-width: 0; gap: 12px; }
.date-editor { max-width: 530px; }
.exception-add { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; white-space: nowrap; }
.exception-add > span:first-child { font-size: 22px; line-height: 1; }
.exception-remove { width: 46px; padding: 12px; }
.exception-remove svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.exception-remove:hover { background: var(--color-canvas); }
.exception-row { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 12px; align-items: end; }
.interval-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 46px; }
.exception-row > label { min-width: 0; }
.exception-row > button { min-height: 46px; }
.exception-heading { margin-top: 32px; }
#settings, #source-settings { scroll-margin-top: 24px; }
@media (max-width: 760px) { .block-editor { align-items: flex-end; } .interval-row { grid-template-columns: minmax(0, 1fr) 46px; } .interval-row > label { grid-column: 1; } .interval-row > button { grid-column: 2; grid-row: 2; } .exception-add .button-caption { display: none; } .exception-add { width: 46px; padding: 10px; } }
@media (max-width: 540px) { select { font-size: 16px; } .block-editor { flex-wrap: wrap; } .block-editor .exception-list { flex-basis: 100%; } .block-editor .exception-add { width: auto; } .block-editor .button-caption { display: inline; } .exception-editor { gap: 8px; } .exception-row { gap: 8px; } }

.date-pane select { margin-bottom: 24px; }
.duration-help { margin-top: 20px; }

/* Open month calendar shares the booking form's typography and focus styles. */
.booking-layout { grid-template-columns: 360px minmax(0, 1fr); }
.date-pane { padding: 24px; }
.month-calendar { margin-top: 28px; }
.month-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.month-heading h3 { margin: 0; font-size: 18px; }
.month-navigation { display: flex; gap: 4px; }
.month-navigation button { display: grid; place-items: center; padding: 0; width: 44px; height: 44px; background: transparent; border: 0; }
.month-navigation svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.weekdays, .month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 0; text-align: center; }
.weekdays { margin-bottom: 8px; color: var(--color-muted); font-size: 13px; }
.weekdays span { padding-block: 8px; }
.month-days .day { display: grid; place-items: center; justify-self: center; width: 100%; max-width: 44px; min-height: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; font-size: 14px; font-variant-numeric: tabular-nums; }
.month-days .day:disabled { opacity: 1; color: var(--color-muted); text-decoration: line-through; }
.month-days .outside { visibility: hidden; }
.month-days .available { color: var(--color-brand-blue); background: var(--color-accent-soft); }
.month-days .available:hover { border-color: var(--color-brand-blue); }
.month-days .today { border-color: var(--color-muted); }
.month-days .day[aria-pressed=true] { background: var(--color-brand-blue); color: white; border-color: var(--color-brand-blue); }
#month-status { margin-top: 16px; font-size: 12px; }
#retry-month { margin-top: 12px; }
@media (min-width: 761px) and (max-width: 1000px) { .booking-layout { grid-template-columns: 320px minmax(0, 1fr); } .date-pane { padding: 20px; } }
@media (max-width: 760px) { .booking-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .date-pane { padding: 16px; } .month-heading h3 { font-size: 16px; } .month-navigation { gap: 0; } }
.date-pane select { margin-bottom: 0; }

.booking-confirmation { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--color-border); }
.booking-confirmation p { font-size: 14px; overflow-wrap: anywhere; }
.booking-confirmation p + p { margin-top: 12px; }
#download-status { margin-top: 16px; }
.guest-mail-panel { margin-top: 28px; }

.custom-select { position: relative; margin-top: 8px; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 46px; padding: 10px 12px; border-color: var(--color-border-strong); text-align: left; }
.select-trigger svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.select-trigger[aria-expanded=true] svg { transform: rotate(180deg); }
.select-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-control); box-shadow: 0 6px 20px #10182714; }
.select-menu [role=option] { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 4px; cursor: pointer; }
.select-menu [role=option]:hover, .select-menu .is-active { background: var(--color-surface-subtle); }
.select-menu [aria-selected=true] { color: var(--color-brand-blue); }
.select-menu [aria-selected=true]::after { content: '✓'; font-size: 16px; }
@media (max-width: 540px) {
 .intro .lead { font-size: clamp(12px, 3.4vw, 16px); margin-top: 12px; }
 .select-trigger { font-size: 16px; }
}

.spam-trap { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }

.booking-edit .fields { margin-bottom:20px; }
.booking-edit p { margin-top:16px; }

/* Quiet focus, aligned form controls and compact owner tools. */
input:not([type=checkbox]):focus, textarea:focus, select:focus { outline: none; border-color: var(--color-text); box-shadow: inset 0 0 0 1px var(--color-text); }
.fields label > select { margin-top: 0; }
.admin-top { align-items: stretch; }
.settings-form h3 { margin-bottom: 8px; }
.settings-form .exception-editor + h3 { margin-top: 28px; }
.settings-form > .primary { min-width: 200px; }
.guest-mail-panel > p { margin-bottom: 16px; }
.detail dd, td { font-variant-numeric: tabular-nums; }
@media (max-width: 540px) { .settings-form > .primary { width: 100%; } .site-header nav { gap: 20px; } .settings-form fieldset { margin-block: 24px; padding-top: 20px; } }
@media (min-width: 761px) and (max-width: 1000px) { .block-editor .exception-add { width: 46px; padding: 10px; } .block-editor .button-caption { display: none; } }
/* iOS date controls have an intrinsic content width; constrain the native editor,
   not just the grid track, so it cannot paint beneath adjacent buttons. */
.exception-editor { max-width: 860px; }
.date-editor { max-width: 460px; }
.exception-row { min-width: 0; }
.exception-row > label { width: 100%; overflow: hidden; }
input[type=date], input[type=time], input[type=datetime-local] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-inline-size: 0;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  line-height: 24px;
  padding: 10px 12px;
}
input::-webkit-date-and-time-value { min-width: 0; text-align: left; margin: 0; }
input::-webkit-datetime-edit { min-width: 0; padding: 0; }
input::-webkit-calendar-picker-indicator { margin: 0; padding: 0; flex: 0 0 18px; }
.exception-remove, .exception-add { height: 46px; align-self: end; }
@media (max-width: 540px) {
  .exception-row { grid-template-columns: minmax(0, 1fr) 46px; }
  .exception-editor { width: 100%; }
  .exception-row input { font-size: 16px; }
}

.fields > label { overflow: hidden; }
input[type=time], input[type=date], input[type=datetime-local] { text-align: left; font-variant-numeric: tabular-nums; }
