.appointment-page-head { align-items: flex-end; gap: 24px; }
.appointment-admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 8px; border: 1px solid var(--border, #dce4ec); border-radius: 16px; background: var(--surface, #fff); box-shadow: 0 10px 30px rgba(28, 45, 61, .05); }
.appointment-admin-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border-radius: 11px; color: var(--text, #1b2737); text-decoration: none; font-weight: 650; }
.appointment-admin-nav a:hover, .appointment-admin-nav a:focus-visible { background: rgba(49, 88, 112, .08); }
.appointment-panel { margin-bottom: 22px; }
.appointment-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.appointment-stat { min-width: 0; padding: 20px; border: 1px solid var(--border, #dce4ec); border-radius: 18px; background: var(--surface, #fff); box-shadow: 0 12px 34px rgba(28, 45, 61, .06); }
.appointment-stat span, .appointment-stat small { display: block; color: var(--muted, #667386); }
.appointment-stat strong { display: block; margin: 6px 0 3px; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -.05em; }
.appointment-table-wrap { overflow-x: auto; }
.appointment-table { width: 100%; border-collapse: collapse; }
.appointment-table th, .appointment-table td { padding: 14px 12px; border-bottom: 1px solid var(--border, #dce4ec); text-align: left; vertical-align: top; }
.appointment-table th { color: var(--muted, #667386); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.appointment-table td small { display: block; margin-top: 3px; color: var(--muted, #667386); }
.appointment-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.appointment-help-grid > div { padding: 4px; }
.appointment-filter, .appointment-inline-form { display: grid; grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) minmax(170px, 1fr) auto auto; gap: 14px; align-items: end; }
.appointment-filter label, .appointment-inline-form label, .appointment-form label, .appointment-booking-form label { display: grid; gap: 7px; min-width: 0; font-weight: 650; }
.appointment-filter label > span, .appointment-inline-form label > span, .appointment-form label > span, .appointment-booking-form label > span { font-size: .88rem; }
.appointment-filter input, .appointment-filter select, .appointment-inline-form input, .appointment-inline-form select, .appointment-form input, .appointment-form select, .appointment-form textarea, .appointment-booking-form input, .appointment-booking-form select, .appointment-booking-form textarea, .appointment-public-picker input, .appointment-public-picker select { width: 100%; min-height: 44px; box-sizing: border-box; }
.appointment-booking-list { display: grid; gap: 14px; }
.appointment-booking-card { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 18px; padding: 18px; border: 1px solid var(--border, #dce4ec); border-radius: 16px; background: var(--surface, #fff); }
.appointment-booking-time { display: grid; align-content: start; gap: 4px; padding: 15px; border-radius: 13px; background: rgba(49, 88, 112, .06); }
.appointment-booking-time span, .appointment-booking-time small { color: var(--muted, #667386); }
.appointment-booking-time strong { font-size: 1.65rem; }
.appointment-booking-main { min-width: 0; }
.appointment-card-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.appointment-card-title h3 { margin: 0 0 3px; }
.appointment-card-title p { margin: 0; color: var(--muted, #667386); }
.appointment-booking-contact { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 12px 0 0; color: var(--muted, #667386); }
.appointment-booking-contact small { margin-left: auto; }
.appointment-note { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(49, 88, 112, .05); }
.appointment-note p { margin: 4px 0 0; }
.appointment-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 15px; }
.appointment-actions form { margin: 0; }
.appointment-status { display: inline-flex; align-items: center; width: max-content; max-width: 100%; padding: 6px 10px; border-radius: 999px; background: rgba(102, 115, 134, .12); color: #536174; font-size: .78rem; font-weight: 750; white-space: nowrap; }
.appointment-status--confirmed, .appointment-status--completed { background: rgba(28, 126, 87, .12); color: #176947; }
.appointment-status--pending { background: rgba(180, 120, 20, .13); color: #8b5a08; }
.appointment-status--cancelled, .appointment-status--expired { background: rgba(176, 59, 59, .11); color: #943a3a; }
.appointment-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.appointment-category-card { padding: 18px; border: 1px solid var(--border, #dce4ec); border-radius: 16px; background: var(--surface, #fff); }
.appointment-id { display: inline-flex; margin-bottom: 7px; color: var(--muted, #667386); font-size: .8rem; font-weight: 700; }
.appointment-category-card code { display: inline-block; margin-top: 5px; }
.appointment-category-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.appointment-category-facts span { padding: 10px; border-radius: 11px; background: rgba(49, 88, 112, .055); color: var(--muted, #667386); font-size: .8rem; }
.appointment-category-facts strong { display: block; color: var(--text, #1b2737); font-size: 1.05rem; }
.appointment-form { display: grid; gap: 22px; }
.appointment-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.appointment-form label small { color: var(--muted, #667386); font-weight: 500; }
.appointment-check { display: flex !important; align-items: center; align-self: end; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border, #dce4ec); border-radius: 12px; }
.appointment-check input { width: auto; min-height: 0; }
.appointment-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.appointment-language-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border, #dce4ec); }
.appointment-language-tab { min-height: 40px; padding: 8px 13px; border: 1px solid var(--border, #dce4ec); border-radius: 10px; background: var(--surface, #fff); color: var(--text, #1b2737); font: inherit; font-weight: 700; cursor: pointer; }
.appointment-language-tab.is-active { border-color: rgba(49, 88, 112, .5); background: rgba(49, 88, 112, .08); }
.appointment-language-panel { display: none; gap: 15px; padding-top: 18px; }
.appointment-language-panel.is-active { display: grid; }
.appointment-panel-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.appointment-translation-feedback { min-height: 22px; margin-top: 10px; color: var(--muted, #667386); font-size: .88rem; }
.appointment-field-suffix { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.appointment-field-suffix > span { color: var(--muted, #667386); font-weight: 600; }
.appointment-inline-form { grid-template-columns: repeat(4, minmax(150px, 1fr)) auto; }
.appointment-inline-form--blocks { grid-template-columns: minmax(180px, 1fr) repeat(2, minmax(200px, 1.15fr)) minmax(220px, 1.4fr) auto; }
.appointment-schedule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.appointment-day-card { min-height: 150px; padding: 15px; border: 1px solid var(--border, #dce4ec); border-radius: 14px; background: rgba(255,255,255,.6); }
.appointment-day-card h3 { margin: 0 0 12px; }
.appointment-rule-list { display: grid; gap: 8px; }
.appointment-rule { display: flex; justify-content: space-between; gap: 8px; padding: 10px; border-radius: 11px; background: rgba(49, 88, 112, .06); }
.appointment-rule small { display: block; margin-top: 2px; color: var(--muted, #667386); }
.appointment-icon-button { width: 30px; height: 30px; border: 0; border-radius: 9px; background: rgba(176, 59, 59, .1); color: #943a3a; cursor: pointer; font-size: 1.15rem; }
.appointment-block-list { display: grid; gap: 10px; }
.appointment-block-card { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 15px 16px; border: 1px solid var(--border, #dce4ec); border-radius: 14px; }
.appointment-block-card h3 { margin: 8px 0 3px; font-size: 1rem; }
.appointment-block-card p { margin: 0; color: var(--muted, #667386); }
.appointment-credit { display: flex; justify-content: center; padding: 10px 0 2px; font-size: .78rem; }
.appointment-credit a { color: var(--muted, #667386); text-decoration: none; }
.appointment-credit a:hover, .appointment-credit a:focus-visible { text-decoration: underline; }

.appointment-widget { margin: 24px 0; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--border-color, #dce4ec); border-radius: 20px; background: var(--surface-color, #fff); box-shadow: 0 18px 48px rgba(28, 45, 61, .08); }
.appointment-widget__head h2 { margin: 4px 0 8px; }
.appointment-widget__head p { margin: 0; color: var(--muted-color, #667386); }
.appointment-kicker { display: inline-flex; color: var(--primary-color, #315870); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.appointment-widget__services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.appointment-service { display: flex; justify-content: space-between; gap: 12px; padding: 14px 15px; border: 1px solid var(--border-color, #dce4ec); border-radius: 14px; color: var(--text-color, #1b2737); text-decoration: none; background: rgba(49, 88, 112, .035); }
.appointment-service:hover, .appointment-service:focus-visible { border-color: var(--primary-color, #315870); }
.appointment-service span { color: var(--muted-color, #667386); white-space: nowrap; }
.appointment-widget__cta { display: inline-flex; }
.appointment-empty { padding: 18px; border: 1px dashed var(--border-color, #dce4ec); border-radius: 14px; color: var(--muted-color, #667386); text-align: center; }
.appointment-empty p { margin: 5px 0 0; }

.appointment-public-shell { width: min(1120px, calc(100% - 32px)); margin: 38px auto; }
.appointment-public-hero { max-width: 760px; margin-bottom: 24px; }
.appointment-public-hero h1 { margin: 6px 0 10px; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.045em; }
.appointment-public-intro { color: var(--muted-color, #667386); font-size: 1.05rem; }
.appointment-public-intro p { margin: 0; }
.appointment-public-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; }
.appointment-public-card { min-width: 0; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--border-color, #dce4ec); border-radius: 20px; background: var(--surface-color, #fff); box-shadow: 0 18px 50px rgba(28, 45, 61, .075); }
.appointment-public-card--form { margin-top: 18px; }
.appointment-step-head { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.appointment-step-head > span { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--primary-color, #315870); color: #fff; font-weight: 800; }
.appointment-step-head h2 { margin: 0 0 3px; font-size: 1.22rem; }
.appointment-step-head p { margin: 0; color: var(--muted-color, #667386); }
.appointment-public-picker { display: grid; gap: 14px; }
.appointment-public-picker label { display: grid; gap: 7px; font-weight: 700; }
.appointment-slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.appointment-slot { min-height: 44px; border: 1px solid var(--border-color, #dce4ec); border-radius: 12px; background: rgba(49, 88, 112, .04); color: var(--text-color, #1b2737); font: inherit; font-weight: 750; cursor: pointer; }
.appointment-slot:hover, .appointment-slot:focus-visible, .appointment-slot.is-selected { border-color: var(--primary-color, #315870); background: rgba(49, 88, 112, .1); }
.appointment-selected-time { margin-bottom: 15px; padding: 12px 14px; border-radius: 12px; background: rgba(49, 88, 112, .07); font-weight: 750; }
.appointment-form-grid--public { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.appointment-form-wide { grid-column: 1 / -1; }
.appointment-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.appointment-booking-summary { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0; padding: 13px 15px; border: 1px solid var(--border-color, #dce4ec); border-radius: 13px; background: rgba(49, 88, 112, .035); }
.appointment-booking-summary span { color: var(--muted-color, #667386); }
.appointment-submit { min-width: 180px; }
.appointment-submit:disabled { cursor: not-allowed; opacity: .55; }
.appointment-form-note { margin: 11px 0 0; color: var(--muted-color, #667386); font-size: .86rem; }
.appointment-alert { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--border-color, #dce4ec); border-radius: 14px; }
.appointment-alert--success { border-color: rgba(28, 126, 87, .3); background: rgba(28, 126, 87, .08); }
.appointment-alert--info { border-color: rgba(49, 88, 112, .3); background: rgba(49, 88, 112, .07); }
.appointment-empty--public { padding: 28px; background: var(--surface-color, #fff); }
.appointment-public-shell--message { max-width: 760px; }
.appointment-message-card { text-align: center; }
.appointment-message-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 18px; background: rgba(49, 88, 112, .09); color: var(--primary-color, #315870); font-size: 1.5rem; font-weight: 850; }
.appointment-message-icon.is-success { background: rgba(28, 126, 87, .11); color: #176947; }
.appointment-message-card h1 { margin: 0 0 10px; }
.appointment-message-text { margin-bottom: 18px; color: var(--muted-color, #667386); }

@media (max-width: 1050px) {
    .appointment-stat-grid, .appointment-schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appointment-inline-form, .appointment-inline-form--blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appointment-inline-form .button, .appointment-inline-form--blocks .button { width: max-content; }
    .appointment-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .appointment-page-head { align-items: stretch; }
    .appointment-stat-grid, .appointment-category-grid, .appointment-schedule-grid, .appointment-public-grid, .appointment-widget__services { grid-template-columns: 1fr; }
    .appointment-filter, .appointment-inline-form, .appointment-inline-form--blocks, .appointment-form-grid, .appointment-form-grid--public { grid-template-columns: 1fr; }
    .appointment-booking-card { grid-template-columns: 1fr; }
    .appointment-booking-time { grid-template-columns: auto 1fr auto; align-items: center; }
    .appointment-booking-time strong { text-align: center; }
    .appointment-booking-contact small { margin-left: 0; }
    .appointment-category-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appointment-slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .appointment-block-card, .appointment-card-title, .appointment-panel-tools { align-items: stretch; flex-direction: column; }
    .appointment-public-shell { width: min(100% - 20px, 1120px); margin: 22px auto; }
}
@media (max-width: 460px) {
    .appointment-stat-grid { grid-template-columns: 1fr; }
    .appointment-slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appointment-admin-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appointment-admin-nav a { justify-content: center; text-align: center; }
}
