/* ============================================
   Availability Modal
   ============================================ */

/* Modal backdrop */
.avail-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1070;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.avail-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Modal container */
.avail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 1040px;
    height: min(720px, 90vh);
    background: var(--color-card-bg);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 1071;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.avail-modal.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Modal header */
.avail-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    color: #fff;
}

/* Header controls — dropdown(s) + close button */
.avail-header-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avail-header-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: var(--font-family);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
}

.avail-header-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.avail-header-select option {
    background: #fff;
    color: #374151;
}

.avail-modal-header-left {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.avail-modal-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avail-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-top: 1px;
}

.avail-modal-title {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
}

.avail-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avail-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Modal body - two column layout */
.avail-modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* Left navigation */
.avail-modal-nav {
    width: 160px;
    flex-shrink: 0;
    background: #f8f9fa;
    border-right: 1px solid var(--color-border);
    padding: 1rem 0;
    overflow-y: auto;
}

.avail-nav-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    font-family: var(--font-family);
    white-space: nowrap;
}

.avail-nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text);
}

.avail-nav-item.is-active {
    background: var(--color-card-bg);
    color: var(--brand-primary);
    font-weight: 600;
    border-right: 3px solid var(--brand-primary);
    padding-right: calc(1rem - 3px);
}

/* Right content area */
.avail-modal-content {
    flex: 1;
    padding: 0.5rem 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.avail-panel {
    display: none;
}

.avail-panel.is-active {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

/* Preview panel should not scroll — only the inner slots list scrolls */
.avail-panel.is-active:has(.avail-preview-split) {
    overflow: hidden;
}

/* ============================================
   Tab 1: Preview — Calendar + Slots
   ============================================ */

/* Modal-context overrides for shared calendar/slots */
.avail-panel .avail-preview-split {
    min-height: 0;
}
.avail-panel .avail-cal-panel {
    padding: 0.5rem 1rem;
}
.avail-panel .avail-slots-panel {
    padding: 0.5rem 1rem;
}
.avail-panel .avail-slot-btn {
    cursor: default;
}
.avail-panel .avail-slot-btn:hover {
    border-color: #e5e7eb;
    box-shadow: none;
}
.avail-panel .avail-slots-arrow-up {
    background: linear-gradient(to bottom, var(--color-card-bg) 60%, transparent);
}
.avail-panel .avail-slots-arrow-down {
    background: linear-gradient(to top, var(--color-card-bg) 60%, transparent);
}
.avail-panel .avail-loading {
    gap: 8px;
    color: #999;
    font-size: 0.8125rem;
}

.avail-section-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.avail-hours-split {
    display: flex;
    gap: 1.5rem;
}

.avail-hours-column {
    flex: 1;
    min-width: 0;
}

.avail-hours-column + .avail-hours-column {
    padding-left: 1.5rem;
    border-left: 1px solid #e5e7eb;
}


/* Mode badge (small uppercase pill on rule chips and event links) */
.avail-mode-badge {
    display: inline-block;
    padding: 0.0625rem 0.375rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #eff6ff;
    color: #2563eb;
    margin-left: 0.25rem;
    vertical-align: middle;
    line-height: 1.4;
}

/* Mode select in add-rule form */
.avail-mode-select {
    padding: 0.1875rem 0.375rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: var(--font-family);
    background: #fff;
    color: #374151;
}

.avail-mode-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(70, 6, 43, 0.1);
}

/* ============================================
   Tab 2: Working Hours
   ============================================ */

.avail-hours-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avail-day-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.avail-day-row:last-child {
    border-bottom: none;
}

.avail-day-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* Toggle grid layout */
.avail-day-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 110px;
    flex-shrink: 0;
}

.avail-day-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-primary, #46062b);
    cursor: pointer;
}

.avail-day-times {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.avail-day-times.is-disabled {
    opacity: 0.3;
    pointer-events: none;
}

.avail-time-select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #374151;
    background: #fff;
    cursor: pointer;
    width: auto;
    max-width: 115px;
}

.avail-time-select:focus {
    outline: none;
    border-color: var(--brand-primary, #46062b);
    box-shadow: 0 0 0 2px rgba(70, 6, 43, 0.1);
}

.avail-time-separator {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* Save button */
.avail-save-btn {
    padding: 0.5rem 1.25rem;
    background: var(--brand-primary, #46062b);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.avail-save-btn:hover {
    background: var(--brand-accent, #5a1040);
}

.avail-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.avail-save-success {
    color: #16a34a;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* ============================================
   Tab 3: Exceptions
   ============================================ */

.avail-exc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.avail-exc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
}

.avail-exc-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.avail-exc-date {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.avail-exc-detail {
    font-size: 0.78rem;
    color: #6b7280;
}

.avail-exc-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.avail-exc-badge--unavailable {
    background: #fef2f2;
    color: #dc2626;
}

.avail-exc-badge--available {
    background: #f0fdf4;
    color: #16a34a;
}

.avail-exc-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: color 0.15s, background 0.15s;
}

.avail-exc-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* Add exception form */
.avail-exc-add-form {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #f9fafb;
}

.avail-exc-form-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.avail-exc-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.avail-exc-form-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.avail-exc-form-field input,
.avail-exc-form-field select {
    padding: 0.375rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: var(--font-family);
}

.avail-exc-form-field input:focus,
.avail-exc-form-field select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(70, 6, 43, 0.1);
}

.avail-exc-form-actions {
    display: flex;
    gap: 0.5rem;
}

.avail-exc-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 1.5rem;
}

/* ============================================
   Tab 2: Event Links
   ============================================ */

.avail-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avail-link-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    gap: 0;
}

.avail-link-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.avail-link-info {
    flex: 1;
    min-width: 0;
}

.avail-link-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1f2937;
}

.avail-link-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.avail-link-duration {
    font-weight: 400;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-left: 0.25rem;
}

.avail-link-url {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avail-link-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.avail-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
    transition: border-color 0.15s, color 0.15s;
    text-decoration: none;
}

.avail-link-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.avail-link-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    margin-left: 0.375rem;
}

.avail-link-badge-active {
    background: #dcfce7;
    color: #166534;
}

.avail-link-badge-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Service type tags on booking link cards */
.avail-link-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding-top: 0.375rem;
    width: 100%;
}

.avail-link-service-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-family);
}

.avail-link-service-tag:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.avail-link-service-tag.is-assigned {
    border-color: var(--brand-primary, #46062b);
    background: #fdf2f8;
    color: var(--brand-primary, #46062b);
    font-weight: 600;
}

.avail-link-service-tag.is-used-elsewhere {
    border-color: #e5e7eb;
    background: #f3f4f6;
    color: #c4c4c4;
    text-decoration: line-through;
}

.avail-links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.avail-links-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
    padding: 2rem 1rem;
}

/* Booking link form */
.avail-link-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.avail-link-form-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-bottom: 0.25rem;
}

.avail-link-form-header h6 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.avail-link-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    font-size: 0.875rem;
}

.avail-link-back-btn:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Flat form fields — scrollable area */
.avail-link-fields {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.25rem 0 1rem;
}

.avail-link-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.avail-link-field label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.avail-link-field input,
.avail-link-field select,
.avail-link-field textarea {
    padding: 0.375rem 0.625rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: var(--font-family);
    color: #1f2937;
    background: #fff;
}

.avail-link-field input:hover,
.avail-link-field select:hover,
.avail-link-field textarea:hover {
    border-color: #9ca3af;
}

.avail-link-field input:focus,
.avail-link-field select:focus,
.avail-link-field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(70, 6, 43, 0.1);
}

.avail-link-field input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.avail-link-field input::placeholder,
.avail-link-field textarea::placeholder {
    color: #9ca3af;
}

.avail-link-field textarea {
    resize: vertical;
}

/* Input with unit suffix */
.avail-link-input-unit {
    display: flex;
    align-items: stretch;
}

.avail-link-input-unit input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    min-width: 0;
}

.avail-link-input-unit span {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.avail-link-input-unit select {
    padding: 0 0.25rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-left: none;
    border-radius: 0 6px 6px 0;
    font-size: 0.75rem;
    color: #6b7280;
    cursor: pointer;
    appearance: auto;
}

.avail-link-mono {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.75rem;
}

/* Field groups (side-by-side) */
.avail-link-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.avail-link-field-group--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Checkboxes */
.avail-link-checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avail-link-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.8125rem;
    color: #374151;
}

/* Toggle-switch checkboxes are styled globally via filter-bar.css */

/* List builder (locations, booking fields) */
.avail-link-list-items {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.avail-link-list-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.avail-link-list-row input,
.avail-link-list-row select {
    padding: 0.3rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: var(--font-family);
    color: #1f2937;
    background: #fff;
}

.avail-link-list-row input:focus,
.avail-link-list-row select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(70, 6, 43, 0.1);
}

.avail-link-list-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    background: none;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}

.avail-link-list-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.avail-link-list-add {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    background: none;
    color: #6b7280;
    font-size: 0.75rem;
    cursor: pointer;
    align-self: flex-start;
}

.avail-link-list-add:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.avail-link-form-actions {
    flex-shrink: 0;
    background: #fff;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 0.5rem;
}

.avail-link-embed {
    flex-shrink: 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.avail-link-embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f3f4f6;
    border-bottom: 1px solid var(--color-border);
}

.avail-link-embed-header span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.avail-link-embed-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.6875rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.avail-link-embed-copy:hover {
    border-color: var(--brand-primary);
    background: #faf5f8;
}

.avail-link-embed-code {
    padding: 0.75rem;
    background: #1e293b;
    color: #e2e8f0;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.6875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    margin: 0;
}

/* ============================================
   Tab 4: Integrations
   ============================================ */

.avail-calendars-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.avail-calendar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.avail-calendar-info strong {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.avail-calendar-info small {
    color: #6b7280;
}

/* ============================================
   Responsive: Tablet
   ============================================ */

@media (max-width: 900px) {
    .avail-modal {
        height: min(720px, 95vh);
    }

    .avail-modal-header {
        padding: 1rem 1.25rem;
    }

    .avail-modal-body {
        flex-direction: column;
    }

    .avail-modal-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        padding: 0.5rem;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.25rem;
    }

    .avail-nav-item {
        flex-shrink: 0;
        padding: 0.5rem 1rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .avail-nav-item.is-active {
        background: var(--brand-primary);
        color: #fff;
        border-right: none;
        padding-right: 1rem;
    }

    .avail-modal-content {
        padding: 0.5rem;
    }

    .avail-preview-split {
        grid-template-columns: 1fr;
    }

    .avail-panel .avail-slots-panel {
        border-left: none;
        border-top: 1px solid #e5e7eb;
    }
}

/* ============================================
   Responsive: Mobile full-screen
   ============================================ */

@media (max-width: 576px) {
    .avail-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: translateY(100%);
    }

    .avail-modal.is-open {
        transform: translateY(0);
    }

    .avail-modal-header {
        padding: 0.75rem 1rem;
    }

    .avail-modal-title {
        font-size: 0.95rem;
    }

    .avail-day-label {
        font-size: 0.78rem;
    }

    .avail-day-toggle {
        width: 90px;
    }

    .avail-time-select {
        max-width: 100px;
        font-size: 0.75rem;
    }

    .avail-hours-split {
        flex-direction: column;
        gap: 1rem;
    }

    .avail-hours-column + .avail-hours-column {
        padding-left: 0;
        border-left: none;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
    }
}

/* ============================================
   Exception Form — Recurrence & Day Checks
   ============================================ */

.avail-exc-radios {
    display: flex;
    gap: 1rem;
}

.avail-exc-radio {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.avail-exc-day-checks {
    display: flex;
    gap: 0.35rem;
}

.avail-exc-day-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    color: var(--color-text-muted, #6b7280);
    background: var(--color-card-bg, #fff);
}

.avail-exc-day-check:hover {
    border-color: var(--brand-primary, #3b82f6);
    color: var(--brand-primary, #3b82f6);
}

.avail-exc-day-check.is-checked {
    background: var(--brand-primary, #3b82f6);
    border-color: var(--brand-primary, #3b82f6);
    color: #fff;
}

.avail-exc-summary {
    padding: 0.5rem 0;
    font-style: italic;
}

/* ============================================
   Subscription Status Dot
   ============================================ */

.avail-sub-status {
    margin-right: 0.35rem;
}
