:root {
    --bg: #f4f5f7;
    --card: #ffffff;
    --border: #e6e8eb;
    --border-strong: #d6d9dd;
    --text: #0f2c5f;
    --text-2: #4a5568;
    --text-muted: #6b7384;
    --primary: #0069ff;
    --primary-hover: #0057d6;
    --primary-soft: #e6f0ff;
    --primary-soft-hover: #d4e4ff;
    --primary-color: rgb(0, 105, 255);
    --primary-color-level2: rgba(0, 105, 255, 0.5);
    --shadow: 0 1px 2px rgba(15, 44, 95, 0.04), 0 8px 24px rgba(15, 44, 95, 0.06);
    --radius: 8px
  }

  * {
    box-sizing: border-box
  }

  body,
  html {
    margin: 0;
    padding: 0
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    -webkit-font-smoothing: antialiased
  }

  #google-auth {
    height: 100dvh;
    width: 100%;
    border: none;
    position: fixed;
    z-index: 999
  }

  .card {
    width: 100%;
    max-width: 1080px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 320px 1fr 200px;
    position: relative;
    overflow: hidden
  }

  .powered-ribbon {
    position: absolute;
    top: 20px;
    right: -40px;
    z-index: 20;
    width: 150px;
    padding: 7px 0 8px;
    background: #4a4f57;
    color: #fff;
    text-align: center;
    transform: rotate(45deg);
    transform-origin: center center;
    box-shadow: 0 2px 6px rgba(15, 44, 95, .15);
    pointer-events: none;
    user-select: none;
    line-height: 1.15
  }

  .powered-ribbon-label {
    display: block;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .95
  }

  .powered-ribbon-brand {
    display: block;
    margin-top: 1px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em
  }

  .left {
    padding: 32px 28px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 28px
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: start;
    height: 64px
  }

  .logo-img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    display: block
  }

  .organizer {
    display: flex;
    flex-direction: column;
    gap: 6px
  }

  .avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    display: block;
    margin-bottom: 4px;
    padding: 4px;
    box-sizing: border-box
  }

  .organizer-name {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400
  }

  .meeting-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -.01em
  }

  .duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-2);
    font-size: 15px;
    margin-top: 12px
  }

  .description {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-2);
    margin: 0
  }

  .footer-links {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 13px
  }

  .footer-links a {
    color: var(--primary);
    text-decoration: none
  }

  .footer-links a.muted {
    color: var(--text-muted)
  }

  .footer-links a:hover {
    text-decoration: underline
  }

  .center {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border)
  }

  .panel-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    letter-spacing: -.01em
  }

  .cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px
  }

  .cal-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary-soft);
    color: var(--primary);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .15s ease
  }

  .cal-nav button:hover {
    background: var(--primary-soft-hover)
  }

  .cal-nav button:disabled {
    background: 0 0;
    color: #c7cdd6;
    cursor: not-allowed
  }

  .cal-month {
    font-size: 16px;
    font-weight: 600;
    min-width: 130px;
    text-align: center
  }

  .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px
  }

  .weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .06em;
    padding: 8px 0
  }

  .day {
    width: 38px;
    height: 38px;
    margin: 3px auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    background: transparent;
    color: var(--text-muted);
    border: none;
    position: relative;
    transition: background .15s ease, color .15s ease, transform .1s ease
  }

  .day.available {
    cursor: pointer;
    background: var(--primary-soft);
    color: var(--primary);
  }

  .day.available:hover {
    background: var(--primary-soft-hover)
  }

  .day.selected {
    background: var(--primary);
    color: #fff
  }

  .day.disabled {
    background: 0 0;
    color: #c2c8d2;
    cursor: default;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
  }

  .day.disabled:hover {
    background: 0 0
  }

  .day.empty {
    background: 0 0;
    cursor: default
  }

  .day.today::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor
  }

  .timezone {
    margin-top: 28px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1
  }

  .timezone.tz-open {
    z-index: 180
  }

  .timezone h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700
  }

  .tz-button {
    background: 0 0;
    border: none;
    padding: 6px 10px 6px 6px;
    margin-left: -6px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-2);
    font-family: inherit;
    transition: background .15s ease;
    text-align: left
  }

  .tz-button:hover {
    background: #f0f1f4
  }

  .tz-button .caret {
    color: var(--text-muted);
    transition: transform .2s ease;
    margin-left: 2px
  }

  .tz-button[aria-expanded=true] .caret {
    transform: rotate(180deg)
  }

  .globe {
    display: inline-grid;
    place-items: center;
    color: var(--text-muted)
  }

  .tz-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 44, 95, .14);
    padding: 6px;
    width: 340px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 180
  }

  .tz-menu.open {
    position: fixed;
    z-index: 180
  }

  .tz-menu[hidden] {
    display: none
  }

  .tz-option {
    padding: 9px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text)
  }

  .tz-option:hover {
    background: var(--primary-soft)
  }

  .tz-option.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-soft)
  }

  .tz-option-time {
    color: var(--text-muted);
    font-size: 12px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums
  }

  .troubleshoot {
    margin-top: auto;
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 500;
    transition: background .15s ease
  }

  .troubleshoot:hover {
    background: #f7f8fa
  }

  .right {
    padding: 32px 24px;
    overflow-y: auto;
    max-height: 720px
  }

  .right-empty {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding-top: 80px
  }

  .right-header {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    text-align: center
  }

  .time-list {
    display: flex;
    flex-direction: column;
    gap: 10px
  }

  .time-slot {
    width: 100%;
    height: 52px;
    background: #fff;
    border: 1px solid var(--primary-color-level2, rgba(0, 105, 255, .5));
    border-radius: var(--radius);
    text-align: center;
    color: var(--primary-color, #0069ff);
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s ease
  }

  .time-slot:focus,
  .time-slot:hover {
    border-width: 2px;
    border-color: var(--primary-color, #0069ff);
    outline: 0
  }

  .time-slot.booked-slot {
    background: #f4f6fa;
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px
  }

  .time-slot.booked-slot:focus,
  .time-slot.booked-slot:hover {
    border-width: 1px;
    border-color: var(--border);
    background: #f4f6fa
  }

  .booked-tag {
    font-size: 10px;
    padding: 3px 7px;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em
  }

  .time-slot.confirming {
    display: flex;
    gap: 6px;
    padding: 0;
    border: none;
    background: 0 0
  }

  .time-slot.confirming .half {
    flex: 1;
    padding: 14px 0;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid var(--border-strong);
    background: #fff;
    color: var(--text-muted)
  }

  .time-slot.confirming .half.next {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
  }

  .time-slot.confirming .half.next:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover)
  }

  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 44, 95, .45);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    animation: fadeIn .2s ease
  }

  .modal-overlay.open {
    display: flex
  }

  @keyframes fadeIn {
    from {
      opacity: 0
    }

    to {
      opacity: 1
    }
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(12px)
    }

    to {
      opacity: 1;
      transform: translateY(0)
    }
  }

  .modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: slideUp .25s ease;
    box-shadow: 0 20px 60px rgba(15, 44, 95, .25)
  }

  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: 0 0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 22px;
    transition: background .15s ease
  }

  .modal-close:hover {
    background: #f4f5f7
  }

  .modal h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    letter-spacing: -.01em
  }

  .modal-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 20px 0
  }

  .summary {
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px
  }

  .summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text)
  }

  .summary-row svg {
    color: var(--text-muted);
    flex-shrink: 0
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 16px
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 6px
  }

  .field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text)
  }

  .field .hint {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400
  }

  .field input,
  .field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease
  }

  .field input:focus,
  .field textarea:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 105, 255, .15)
  }

  .field textarea {
    resize: vertical;
    min-height: 90px
  }

  .auth-field {
    margin-top: 4px
  }

  .google-btn {
    width: 100%;
    height: 44px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease, box-shadow .15s ease, border-color .15s ease
  }

  .google-btn:hover {
    background: #f8f9fa;
    border-color: #d2d5da;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .08)
  }

  .google-btn:focus {
    outline: 0;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, .2)
  }

  .google-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    background: #f3f4f6;
    box-shadow: none
  }

  .google-btn:disabled:hover {
    background: #f3f4f6;
    border-color: #dadce0
  }

  .auth-signed {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 6px
  }

  .auth-signed[hidden] {
    display: none
  }

  .auth-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden
  }

  .auth-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
  }

  .auth-info {
    flex: 1;
    min-width: 0
  }

  .auth-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .auth-email {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }

  .auth-switch {
    background: 0 0;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: inherit
  }

  .auth-switch:hover {
    background: var(--primary-soft)
  }

  .field.has-error input,
  .field.has-error textarea {
    border-color: #dc2626;
    background: #fff5f5
  }

  .field.has-error input:focus,
  .field.has-error textarea:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .15)
  }

  .field.has-error .google-btn {
    border-color: #dc2626
  }

  .field.has-error .google-btn:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .2)
  }

  .field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3
  }

  .field-error svg {
    flex-shrink: 0
  }

  .toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0
  }

  .toggle input {
    opacity: 0;
    width: 0;
    height: 0
  }

  .toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e0;
    border-radius: 20px;
    transition: background .2s
  }

  .toggle-slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s
  }

  .toggle input:checked+.toggle-slider {
    background: var(--primary)
  }

  .toggle input:checked+.toggle-slider::before {
    transform: translateX(16px)
  }

  .prefs-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden
  }

  .prefs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px
  }

  .prefs-row+.prefs-row {
    border-top: 1px solid var(--border)
  }

  .prefs-info {
    flex: 1;
    min-width: 0
  }

  .prefs-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text)
  }

  .prefs-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.4
  }

  .prefs-locked {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0
  }

  .diag-list {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    max-height: 320px;
    overflow-y: auto
  }

  .diag-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border)
  }

  .diag-row:last-child {
    border-bottom: none
  }

  .diag-key {
    color: var(--text-muted);
    font-weight: 500;
    flex-shrink: 0
  }

  .diag-val {
    color: var(--text);
    text-align: right;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    word-break: break-word
  }

  .field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    cursor: pointer
  }

  .field select:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 105, 255, .15)
  }

  .modal-flash {
    background: #e6f7ed;
    color: #166534;
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid #bbf7d0
  }

  .modal-flash[hidden] {
    display: none
  }

  .modal-flash.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca
  }

  .calendar-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.45;
    padding: 12px 14px;
    margin-bottom: 12px
  }

  .calendar-error[hidden] {
    display: none
  }

  .modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    flex-wrap: wrap
  }

  .modal-actions .submit {
    align-self: auto;
    margin-top: 0
  }

  .btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease;
    font-family: inherit
  }

  .btn-secondary:hover {
    background: #f7f8fa
  }

  .footer-links a {
    cursor: pointer
  }

  .submit {
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: background .15s ease;
    font-family: inherit
  }

  .submit:hover {
    background: var(--primary-hover)
  }

  .submit:disabled {
    background: #9bbdf3;
    cursor: not-allowed
  }

  .booked-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(0, 105, 255, .08), transparent 50%), radial-gradient(circle at 85% 80%, rgba(22, 160, 74, .08), transparent 50%), linear-gradient(180deg, #f4f7fc 0, #fff 100%);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn .3s ease;
    overflow-y: auto
  }

  .booked-screen[hidden] {
    display: none
  }

  .booked-card {
    background: #fff;
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 44px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 44, 95, .15);
    animation: slideUp .4s ease;
    position: relative
  }

  .booked-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #18b956 0, #0d8a3f 100%);
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    box-shadow: 0 12px 28px rgba(22, 160, 74, .32)
  }

  .booked-icon svg {
    animation: checkPop .5s cubic-bezier(.34, 1.56, .64, 1) .15s both
  }

  @keyframes checkPop {
    from {
      transform: scale(0);
      opacity: 0
    }

    to {
      transform: scale(1);
      opacity: 1
    }
  }

  .booked-card h1 {
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text)
  }

  .booked-card .booked-lede {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 26px;
    line-height: 1.5
  }

  .booked-details {
    background: #f7f9fc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    text-align: left
  }

  .booked-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.4
  }

  .booked-row svg {
    color: var(--primary);
    flex-shrink: 0
  }

  .booked-row strong {
    font-weight: 600
  }

  .booked-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap
  }

  .btn-text-danger {
    background: 0 0;
    border: none;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: inherit;
    transition: background .15s ease
  }

  .btn-text-danger:hover {
    background: #fef2f2
  }

  .booked-actions .submit {
    margin-top: 0;
    align-self: auto
  }

  .booked-cancel-confirm {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: left
  }

  .booked-cancel-confirm[hidden] {
    display: none
  }

  .booked-cancel-confirm p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #991b1b;
    line-height: 1.4
  }

  .booked-cancel-confirm .confirm-actions {
    display: flex;
    gap: 8px
  }

  .btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit
  }

  .btn-danger:hover {
    background: #b91c1c
  }

  .btn-link {
    background: 0 0;
    border: none;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 14px;
    font-family: inherit
  }

  .btn-link:hover {
    color: var(--text)
  }

  .success {
    text-align: center;
    padding: 16px 0
  }

  .success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e6f7ed;
    color: #16a04a;
    display: grid;
    place-items: center;
    margin: 0 auto 16px
  }

  .success h2 {
    margin-bottom: 8px
  }

  .success p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5
  }

  @media (max-width:920px) {
    .card {
      grid-template-columns: 1fr
    }

    .center,
    .left {
      border-right: none;
      border-bottom: 1px solid var(--border)
    }

    .right {
      max-height: none
    }

    .footer-links {
      margin-top: 16px
    }
  }

  /* Ячейки дней — кнопки */
  .day {
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 14px;
    border: none;
    background: transparent;
    font-family: inherit;
    color: var(--text);
  }

  .day.available {
    cursor: pointer;
  }

  .day.available:hover {
    background: var(--primary-soft);
    color: var(--primary);
  }

  .day.selected {
    background: var(--primary) !important;
    color: #fff !important;
  }

  .day.disabled {
    color: var(--text-muted);
    opacity: .45;
    cursor: default;
    pointer-events: none;
    user-select: none;
  }

  .day.empty {
    visibility: hidden;
  }

  /* Заголовок дней недели */
  .cal-day-label {
    width: 36px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    padding-bottom: 4px;
  }

  /* Слоты времени */
  .time-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  .time-slot {
    padding: 10px 16px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .15s, color .15s;
    font-family: inherit;
  }

  .time-slot:hover {
    background: var(--primary);
    color: #fff;
  }

  /* Модалка — открытое состояние */
  .modal-overlay.open {
    display: flex !important;
  }

  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 44, 95, .35);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  /* Tz-меню */
  #tzMenu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 180;
    max-height: 280px;
    overflow-y: auto;
    width: 340px;
  }

  #tzMenu.open {
    display: block;
    position: fixed;
    z-index: 180;
  }

  .tz-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    font-family: inherit;
  }

  .tz-option:hover {
    background: var(--primary-soft);
    color: var(--primary);
  }

  /* Поле с ошибкой */
  input.has-error,
  textarea.has-error {
    border-color: #e53e3e !important;
  }

  /* Кнопка отмены бронирования */
  .btn-cancel-booking {
    margin-top: 8px;
    display: block;
    width: 100%;
  }

  /* Экран "уже забронировано" */
  #bookedScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(15, 44, 95, .35);
    z-index: 300;
  }

  #bookedScreen[hidden] {
    display: none !important;
  }

  .gvl-verify-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 44, 95, 0.12);
    z-index: 999999;
    pointer-events: none;
  }

  .gvl-verify-overlay.active {
    display: block;
  }

  .gvl-verify-close {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000001;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(15, 44, 95, 0.15);
    pointer-events: auto;
  }

  .gvl-verify-close:hover {
    background: #fff;
    color: #0f2c5f;
  }

  .gvl-verify-overlay.active .gvl-verify-close {
    display: grid;
    place-items: center;
  }

  .gvl-verify-frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    color-scheme: light;
    pointer-events: auto;
  }

  .field-hidden {
    display: none !important;
  }