.lso-public .lso-day.is-holiday { background: var(--lso-holiday-bg); border-left: 4px solid var(--lso-holiday-border); }
.lso-public-holiday { display: inline-block; margin-left: 10px; padding: 3px 9px; color: var(--lso-holiday-text); background: var(--lso-holiday-color); border: 1px solid var(--lso-holiday-border); border-radius: 999px; font: 700 10px/1.5 Inter, system-ui, sans-serif; letter-spacing: .03em; vertical-align: middle; }
.lso-public-head > div:first-child span, .lso-public-head > div:first-child strong { display: block; }
.lso-view-switch { display: flex; gap: 3px; padding: 3px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px; }
.lso-view-switch button { padding: 6px 10px; color: rgba(255, 255, 255, .86); background: transparent; border: 0; border-radius: 6px; font: inherit; font-size: 12px; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.lso-view-switch button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lso-view-switch button.is-active { color: #1d4ed8; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.lso-view-switch button:focus-visible { outline: 2px solid #e6c988; outline-offset: 2px; }
.lso-view[hidden] { display: none !important; }
.lso-day.is-today { position: relative; background: #eff6ff; box-shadow: inset 0 0 0 2px var(--lso-today); z-index: 1; }
.lso-day.is-sunday:not(.is-holiday) { background: #fff7f7; border-left: 4px solid var(--lso-sunday); }
.lso-day.is-sunday:not(.is-holiday) h3 { color: #b42318; }

.lso-table-wrap { overflow-x: auto; background: var(--lso-surface); border: 1px solid var(--lso-border); border-top: 0; border-radius: 0 0 14px 14px; }
.lso-public-table { width: 100%; border: 0; border-collapse: separate; border-spacing: 0; background: var(--lso-surface); }
.lso-public-table th, .lso-public-table td { padding: 9px 11px; border: 0; border-right: 1px solid var(--lso-border); border-bottom: 1px solid var(--lso-border); text-align: left; vertical-align: top; }
.lso-public-table th:last-child, .lso-public-table td:last-child { border-right: 0; }
.lso-public-table tbody tr:last-child td { border-bottom: 0; }
.lso-public-table th { color: #53615b; background: var(--lso-canvas); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.lso-public-table tbody tr:hover td { background-color: #f8fbff; }
.lso-public-table td small { display: block; margin-top: 4px; }
.lso-table-special { display: block; margin-bottom: 3px; color: var(--lso-primary-dark); }
.lso-public-table td.lso-table-date { color: var(--lso-primary-dark); white-space: nowrap; }
.lso-public-table td.lso-table-date.is-sunday-date:not(.is-holiday-date) { color: #b42318; background: #fff5f5; border-left: 4px solid var(--lso-sunday); }
.lso-public-table tr.is-holiday td { background: var(--lso-holiday-bg); }
.lso-public-table td.lso-table-date.is-holiday-date { border-left: 4px solid var(--lso-holiday-border); }
.lso-public-table tr.is-today-first td { border-top: 2px solid var(--lso-today); }
.lso-public-table tr.is-today-last td { border-bottom: 2px solid var(--lso-today); }
.lso-public-table td.is-today-span { border-top: 2px solid var(--lso-today); border-bottom: 2px solid var(--lso-today); }
.lso-public-table td.is-today-span-top { border-top: 2px solid var(--lso-today); }
.lso-public-table td.is-today-span-bottom { border-bottom: 2px solid var(--lso-today); }
.lso-public-table tr.is-today-first td:first-child { border-left: 2px solid var(--lso-today); }
.lso-public-table tr.is-today td:last-child { border-right: 2px solid var(--lso-today); }

.lso-calendar-month { margin-top: 14px; overflow: hidden; background: var(--lso-surface); border: 1px solid #cfd8e3; border-radius: 12px; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.lso-calendar-month h3 { margin: 0; padding: 12px 15px; color: #101828; background: #fff; border-bottom: 3px solid var(--lso-primary); font: 750 17px/1.3 Inter, ui-sans-serif, system-ui, sans-serif; text-transform: capitalize; }
.lso-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.lso-calendar-grid > b { padding: 7px 6px; color: #475467; background: #f1f5f9; border-right: 1px solid var(--lso-border); border-bottom: 1px solid var(--lso-border); text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lso-calendar-grid > b:nth-child(7) { border-right: 0; }
.lso-calendar-grid > b.is-sunday-label { color: #b42318; background: #feecec; }
.lso-calendar-blank, .lso-calendar-day { min-height: 82px; border-right: 1px solid var(--lso-border); border-bottom: 1px solid var(--lso-border); }
.lso-calendar-blank { background: #f4f6f8; }
.lso-calendar-day { min-width: 0; padding: 6px 7px; background: var(--lso-surface); }
.lso-calendar-day > strong { display: grid; place-items: center; width: 22px; height: 22px; margin-bottom: 4px; color: #344054; border-radius: 50%; font-size: 11px; font-weight: 750; }
.lso-calendar-weekday { display: none; }
.lso-calendar-day.is-today { position: relative; box-shadow: inset 0 0 0 2px var(--lso-today); z-index: 1; }
.lso-calendar-day.is-today > strong { color: #fff; background: var(--lso-today); }
.lso-calendar-day.is-sunday:not(.is-holiday) { color: #b42318; background: #fff7f7; }
.lso-calendar-day.is-sunday:not(.is-holiday) > strong { color: #b42318; }
.lso-calendar-day.is-holiday { background: var(--lso-holiday-bg); border-top: 4px solid var(--lso-holiday-border); box-shadow: inset 0 0 0 1px var(--lso-holiday-border); }
.lso-calendar-holiday { display: block; margin-bottom: 5px; color: var(--lso-holiday-readable); font-size: 10px; font-weight: 750; line-height: 1.2; }
.lso-calendar-service { margin: 3px 0; padding: 4px 6px; color: #1e3a8a; background: #eaf2ff; border: 0; border-left: 3px solid var(--lso-primary); border-radius: 4px; font-size: 10px; line-height: 1.22; }
.lso-calendar-service b { display: inline; margin-right: 4px; color: #1d4ed8; font-weight: 800; }
.lso-calendar-service span { display: inline; color: #334155; overflow-wrap: anywhere; }
.lso-calendar-day.is-collapsible { cursor: pointer; transition: background-color .16s ease, box-shadow .16s ease; }
.lso-calendar-day.is-collapsible:hover { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lso-primary) 55%, transparent); }
.lso-calendar-day.is-collapsible:focus-visible { outline: 3px solid var(--lso-primary); outline-offset: -3px; }
.lso-calendar-summary { display: block; margin: 5px 0 2px; padding: 5px 7px; color: #1e3a8a; background: #eaf2ff; border: 1px solid #c7d7f5; border-radius: 5px; font-size: 10px; font-weight: 750; line-height: 1.2; }
.lso-calendar-day.is-collapsible.is-collapsed .lso-calendar-details { display: none; }
.lso-calendar-day.is-collapsible:not(.is-collapsed) .lso-calendar-summary { display: none; }

@media (max-width: 600px) {
    .lso-public, .lso-public * { box-sizing: border-box; }
    .lso-table-wrap { width: 100%; overflow: hidden; border-radius: 0 0 10px 10px; }
    .lso-public-table { width: 100% !important; min-width: 0 !important; max-width: 100% !important; table-layout: fixed; font-size: 11px; }
    .lso-public-table th, .lso-public-table td { min-width: 0 !important; padding: 7px 4px; overflow-wrap: anywhere; word-break: normal; }
    .lso-public-table th:nth-child(1) { width: 27%; }
    .lso-public-table th:nth-child(2) { width: 25%; }
    .lso-public-table th:nth-child(3) { width: 48%; }
    .lso-public-table td.lso-table-date { white-space: normal; }
    .lso-public-table .lso-names { display: grid; gap: 4px; min-width: 0; }
    .lso-public-table .lso-person { display: block; min-width: 0; padding: 4px 5px; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
    .lso-public-holiday { display: table; margin: 7px 0 0; }
    .lso-view-switch { margin-top: 14px; overflow-x: auto; }
    .lso-view-switch button { flex: 1; padding: 7px 8px; }
    .lso-calendar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lso-calendar-grid > b, .lso-calendar-blank { display: none; }
    .lso-calendar-day { min-height: 92px; padding: 8px; border-right: 1px solid var(--lso-border); }
    .lso-calendar-day > strong { display: inline-grid; margin: 0 4px 5px 0; vertical-align: middle; }
    .lso-calendar-weekday { display: inline; color: #667085; font-size: 9px; font-weight: 800; text-transform: uppercase; }
    .lso-calendar-holiday { display: block; margin-bottom: 4px; font-size: 9px; }
    .lso-calendar-service { padding: 4px; font-size: 9px; }
    .lso-calendar-summary { padding: 5px; font-size: 9px; }
    .lso-calendar-day.is-collapsible:not(.is-collapsed) { grid-column: 1 / -1; min-height: 0; }
}

@media (max-width: 380px) {
    .lso-public-table { font-size: 10px; }
    .lso-public-table th, .lso-public-table td { padding: 6px 3px; }
    .lso-public-table th { font-size: 9px; letter-spacing: 0; }
    .lso-public-table .lso-person { padding: 3px 4px; font-size: 10px; }
    .lso-calendar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) { .lso-view-switch button { transition: none; } }
