body {
    margin: 0;
    color: #212529;
    background: #f3f7fb;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}
.schedule-embed {
    padding: 20px;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(27, 65, 107, .08);
}
.embed-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}
.embed-heading h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    flex: 1;
}
button {
    font: inherit;
    cursor: pointer;
}
.print-btn {
    padding: 4px 8px;
    border: 1px solid #6c757d;
    border-radius: 4px;
    color: #6c757d;
    background: transparent;
    font-size: .875rem;
}
.print-btn:hover {
    color: #fff;
    background: #6c757d;
}
button:focus-visible, a:focus-visible, summary:focus-visible {
    outline: 3px solid #167f89;
    outline-offset: 3px;
}
nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #dee2e6;
    margin: 12px 0 16px;
}
nav button {
    padding: 8px 16px;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-radius: 6px 6px 0 0;
    background: transparent;
    color: #0d6efd;
}
nav button:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
}
nav button[aria-pressed=true] {
    color: #495057;
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}
.pool-title {
    font-size: 1.1rem;
}
.public-grid {
    display: grid;
    grid-template-columns: 65px repeat(7, minmax(100px, 1fr));
    overflow-x: auto;
    border: 2px solid #0b3d2e;
}
.public-day-heading {
    margin: 0;
    background: #0b3d2e;
    color: #fff;
    height: 48px;
    box-sizing: border-box;
    padding: 5px;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    border-bottom: 2px solid #0b3d2e;
}
.public-day-heading small {
    display: block;
}
.public-time-body {
    position: relative;
    height: var(--duration);
    border-right: 1px solid #0b3d2e;
    background: repeating-linear-gradient(to bottom, white 0, white 29px, #d3dde3 29px, #d3dde3 30px);
}
.public-ruler .public-time-body {
    background: #f7f4ef;
    border-right: 2px solid #0b3d2e;
}
.public-ruler span {
    position: absolute;
    left: 7px;
    font-size: .92rem;
    font-weight: 600;
    white-space: nowrap;
}
.public-block {
    position: absolute;
    left: 0;
    right: 0;
    border: 1px solid #0b3d2e;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: .8rem;
    overflow: hidden;
}
.public-block-label {
    display: block;
    padding: 2px;
    line-height: 1.12;
}
.public-block small {
    display: block;
    font-size: .7rem;
}
.short-block .public-block-label {
    display: flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    font-size: .62rem;
    white-space: nowrap;
}
.short-block small {
    font-size: .58rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
.short-block strong {
    flex-shrink: 0;
}
.open {
    background: #e8f5e9;
    color: #1b5e20;
    font-weight: 600;
}
.closed {
    background-color: #fdecea;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M-3 3L3-3M0 12L12 0M9 15L15 9' stroke='%2359636b' stroke-width='1.5'/%3E%3C/svg%3E");
    color: #b71c1c;
    font-weight: 600;
}
.closed .public-block-label {
    background: #fdecea;
    color: #b71c1c;
    border-radius: 3px;
}
.unpublished {
    background: #fff8db;
    color: #735c0f;
}
.print-heading {
    display: none;
}
.public-agenda {
    margin-top: 16px;
}
.public-agenda li {
    padding: 4px 0;
}
.public-agenda h3 {
    font-size: 1rem;
}
[hidden] {
    display: none !important;
}
@media (max-width: 768px) {
    .schedule-embed {
        padding: 0;
    }
    .public-agenda {
        padding: 12px;
    }
    .public-grid {
        grid-template-columns: 65px repeat(7, 110px);
    }
}
@media print {
    @page {
        size: letter portrait;
        margin: .25in;
    }
    body {
        font-size: 9px;
        background: #fff;
    }
    .schedule-embed {
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .embed-heading, nav, .pool-title, .public-agenda, .pool-panel, .public-week {
        display: none !important;
    }
    .pool-panel.print-pool, .public-week.print-week {
        display: block !important;
    }
    .pool-panel.print-pool:not(.print-first) {
        break-before: page;
        page-break-before: always;
    }
    .print-heading {
        display: block;
        margin-bottom: 10px;
        padding: 6px 10px;
        border: 1px solid #0b3d2e;
        border-radius: 6px;
        color: #0b3d2e;
        font-size: 10px;
        font-weight: 600;
        break-after: avoid;
    }
    .public-grid {
        grid-template-columns: 45px repeat(7, minmax(0, 1fr));
        overflow: visible;
    }
    .public-time-body {
        height: calc(var(--duration) * .9);
    }
    .public-block {
        top: calc(var(--position) * .9) !important;
        height: calc(var(--length) * .9) !important;
    }
    .public-ruler span {
        top: calc(var(--position) * .9) !important;
    }
    .public-day-heading {
        font-size: 9px;
        height: 32px;
    }
    .public-ruler span, .public-block {
        font-size: 9px;
    }
    .public-block small {
        font-size: 8px;
    }
    .short-block .public-block-label, .short-block small {
        font-size: 7px;
    }
    .open {
        background-color: #f4f4f4 !important;
        color: #000 !important;
    }
    .closed, .closed .public-block-label {
        background-color: #ddd;
        color: #000;
    }
    .unpublished {
        background-color: #eee;
        color: #000;
    }
    .public-block, .public-day-heading, .public-ruler {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
