:root {
    --psb-brand: #00539b;
    --psb-brand-dark: #063b6f;
    --psb-navy: #0b2540;
    --psb-teal: #087f8c;
    --psb-green: #15805f;
    --psb-amber: #b96f10;
    --psb-red: #b83a36;
    --psb-ink: #13253a;
    --psb-muted: #607086;
    --psb-line: #d9e3ed;
    --psb-bg: #edf2f7;
    --psb-surface: #fff;
    --psb-soft: #f6f9fc;
    --psb-radius: 20px;
    --psb-shadow: 0 16px 42px rgba(14, 38, 64, 0.09);
    --psb-z-toast: 220;
    --psb-toast-offset-bottom: calc(env(safe-area-inset-bottom, 0px) + 4.75rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--psb-bg);
    color: var(--psb-ink);
    font-family: "Open Sans", Arial, sans-serif;
    line-height: 1.5;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(0, 83, 155, .32); outline-offset: 3px; }

.psb-sr-only,
.psb-live-region {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.psb-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 200;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 9px;
    background: var(--psb-navy);
    color: #fff;
    font-weight: 800;
}
.psb-skip-link:focus { transform: translateY(0); }

.public-schedule-bento { min-height: 100vh; padding-bottom: 72px; }
.psb-shell { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }
.psb-kicker { margin: 0 0 4px; color: var(--psb-brand); font-size: .71rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.psb-topbar {
    position: sticky;
    top: 10px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1380px, calc(100% - 32px));
    min-height: 66px;
    margin: 12px auto;
    padding: 10px 12px;
    border: 1px solid rgba(217, 227, 237, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 10px 32px rgba(14, 38, 64, .08);
    backdrop-filter: blur(18px);
}
.psb-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.psb-brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(145deg, var(--psb-brand), var(--psb-teal)); color: #fff; font-weight: 900; }
.psb-brand__mark--image { overflow: hidden; background: #fff; }
.psb-brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.psb-brand__mark--image { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
.psb-brand__mark--image img { object-fit: contain; }
.psb-brand > span:last-child { display: grid; }
.psb-brand strong { color: var(--psb-navy); font-size: .96rem; }
.psb-brand small { color: var(--psb-muted); font-size: .72rem; }
.psb-topbar__actions { display: flex; align-items: center; gap: 8px; }
.psb-preview-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border-radius: 999px; background: #eaf3ff; color: var(--psb-brand-dark); font-size: .74rem; font-weight: 900; }

.psb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    font-size: .84rem;
    font-weight: 850;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.psb-button:hover { transform: translateY(-1px); }
.psb-button--primary { border-color: var(--psb-brand); background: var(--psb-brand); color: #fff; box-shadow: 0 8px 18px rgba(0, 83, 155, .18); }
.psb-button--quiet { border-color: var(--psb-line); background: #fff; color: var(--psb-brand-dark); }
.psb-button--success { border-color: #b9e5d4; background: #e7f7ef; color: #0c6649; }
.psb-button--warning { border-color: #efd9b0; background: #fff5df; color: #8a540c; }
.psb-button--danger { border-color: #f0c1be; background: #fff0ef; color: var(--psb-red); }
.psb-button--disabled { border-color: #dfe6ee; background: #eef2f6; color: #7c8998; cursor: not-allowed; box-shadow: none; }
.psb-button--disabled:hover { transform: none; }

.psb-event-hero {
    display: grid;
    grid-template-columns: minmax(320px, 5fr) minmax(0, 7fr);
    gap: 0;
    width: min(1380px, calc(100% - 32px));
    min-height: 320px;
    margin: 0 auto 18px;
    overflow: hidden;
    border: 1px solid #cfdbe7;
    border-radius: 24px;
    background: var(--psb-navy);
    box-shadow: var(--psb-shadow);
}
.psb-event-hero__media { min-height: 320px; overflow: hidden; background: #e7eef5; }
.psb-event-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.psb-event-hero__media--empty { display: grid; place-items: center; color: var(--psb-brand); font-size: 5rem; }
.psb-event-hero__content { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(26px, 4vw, 54px); color: #fff; background: radial-gradient(circle at 92% 12%, rgba(8, 127, 140, .34), transparent 35%), linear-gradient(135deg, #0b2540, #0c3153); }
.psb-event-hero__content::after { content: ""; position: absolute; inset: auto -80px -110px auto; width: 260px; height: 260px; border-radius: 50%; border: 42px solid rgba(255, 255, 255, .035); }
.psb-event-hero__content .psb-kicker { color: #70e0dd; }
.psb-event-hero__content h1 { position: relative; z-index: 1; max-width: 22ch; margin: 4px 0 16px; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.02; letter-spacing: -.04em; }
.psb-event-hero__status { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .75rem; font-weight: 850; }
.psb-event-hero__facts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px 20px; margin-bottom: 22px; color: #dbe8f3; }
.psb-event-hero__facts span { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.psb-event-hero__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 9px; }
.psb-event-hero__actions .psb-button--quiet { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: #fff; }

.psb-flashes { position: fixed; top: auto; right: auto; bottom: var(--psb-toast-offset-bottom); left: 50%; z-index: var(--psb-z-toast); width: min(448px, calc(100vw - 32px)); max-height: calc(100vh - var(--psb-toast-offset-bottom) - 16px); max-height: calc(100dvh - var(--psb-toast-offset-bottom) - 16px); display: grid; gap: 8px; margin: 0; padding: 2px; transform: translateX(-50%); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; pointer-events: none; isolation: isolate; }
.psb-flash { display: flex; align-items: center; gap: 9px; margin: 0; padding: 12px 14px; border: 1px solid #bee6d5; border-radius: 12px; background: #e9f8f1; box-shadow: 0 16px 38px rgba(14, 38, 64, .16); color: #135f48; font-weight: 700; pointer-events: auto; transition: opacity 180ms ease, transform 180ms ease; }
.psb-flash--error { border-color: #efc3c0; background: #fff0ef; color: #962e2b; }
.psb-flash__message { min-width: 0; flex: 1; }
.psb-flash__dismiss { display: inline-grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; margin: -6px -7px -6px 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; opacity: .72; }
.psb-flash__dismiss:hover { background: rgba(15, 42, 68, .08); opacity: 1; }
.psb-flash__dismiss:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; opacity: 1; }
.psb-flash.is-dismissing { transform: translateY(-6px); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .psb-flash { transition: none; }
}

@media (max-width: 640px) {
    :root { --psb-toast-offset-bottom: calc(env(safe-area-inset-bottom, 0px) + 0.75rem); }
    .psb-flashes { width: min(448px, calc(100vw - max(12px, env(safe-area-inset-left, 0px)) - max(12px, env(safe-area-inset-right, 0px)))); }
}

.psb-summary-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(112px, auto); gap: 14px; margin-bottom: 18px; }
.psb-summary-grid > article { min-width: 0; overflow: hidden; border: 1px solid var(--psb-line); border-radius: var(--psb-radius); background: var(--psb-surface); box-shadow: 0 9px 26px rgba(14, 38, 64, .06); }
.psb-summary-lead { grid-column: span 7; grid-row: span 2; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; gap: 14px 18px; padding: 26px; background: linear-gradient(145deg, #fff, #f1f7ff) !important; }
.psb-summary-lead__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #dcecff; color: var(--psb-brand); font-size: 1.55rem; }
.psb-summary-lead__icon--success { background: #dff5eb; color: var(--psb-green); }
.psb-summary-lead h2, .psb-my-schedule h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.13; letter-spacing: -.025em; }
.psb-summary-lead p:not(.psb-kicker) { max-width: 62ch; margin: 0; color: var(--psb-muted); }
.psb-summary-lead__actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.psb-metric { grid-column: span 2; display: flex; align-items: center; gap: 13px; padding: 18px; }
.psb-metric > i { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; background: #eaf3ff; color: var(--psb-brand); font-size: 1.25rem; }
.psb-metric span { display: grid; }
.psb-metric strong { font-size: 1.5rem; line-height: 1; }
.psb-metric small { margin-top: 4px; color: var(--psb-muted); font-size: .72rem; }
.psb-metric--capacity { grid-column: span 3; }
.psb-metric--capacity > i { background: #e4f6f1; color: var(--psb-green); }
.psb-metric--types > i { background: #f0eafe; color: #6549a7; }
.psb-metric--selected { grid-column: span 3; }
.psb-metric--selected > i { background: #fff0dc; color: var(--psb-amber); }
.psb-my-schedule { grid-column: span 5; grid-row: span 2; padding: 22px; background: linear-gradient(155deg, var(--psb-navy), #123b60) !important; color: #fff; }
.psb-my-schedule__heading { display: flex; align-items: center; gap: 12px; }
.psb-my-schedule__heading > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(255, 255, 255, .11); color: #73dfda; font-size: 1.25rem; }
.psb-my-schedule .psb-kicker { color: #73dfda; }
.psb-my-schedule h2 { font-size: 1.25rem; }
.psb-my-schedule > p { color: #c7d6e4; }
.psb-my-schedule ol { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.psb-my-schedule li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 9px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.psb-my-schedule time { color: #72ded9; font-weight: 900; }
.psb-my-schedule li span { display: grid; font-size: .82rem; font-weight: 800; }
.psb-my-schedule li small { color: #aebfd0; font-weight: 600; }
.psb-my-schedule > a { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: .82rem; font-weight: 850; }

.psb-view-switch { display: inline-flex; padding: 3px; border-radius: 11px; background: #edf2f7; }
.psb-view-switch button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--psb-muted); font-size: .78rem; font-weight: 850; }
.psb-view-switch button.is-active { background: #fff; color: var(--psb-brand-dark); box-shadow: 0 4px 12px rgba(14, 38, 64, .09); }

.psb-program { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.psb-date-group { display: grid; gap: 18px; }
.psb-date-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
.psb-date-heading time { display: inline-flex; align-items: baseline; gap: 9px; padding: 8px 13px; border-radius: 12px; background: var(--psb-navy); color: #fff; }
.psb-date-heading strong { font-size: 1rem; }
.psb-date-heading span { color: #bad0e3; font-size: .76rem; }
.psb-date-heading div { height: 1px; background: #cdd9e5; }
.psb-shift { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.psb-shift__heading { position: sticky; top: 236px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 14px; border: 1px solid var(--psb-line); border-radius: 16px; background: #fff; }
.psb-shift__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #eaf3ff; color: var(--psb-brand); font-size: 1.15rem; }
.psb-shift__heading h2 { margin: 0; font-size: 1rem; }
.psb-shift__heading p { margin: 2px 0 0; color: var(--psb-muted); font-size: .7rem; }
.psb-shift__heading > strong { grid-column: 1 / -1; color: var(--psb-muted); font-size: .7rem; }
.psb-activity-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.psb-activity-card { grid-column: span 6; min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--psb-accent) 24%, var(--psb-line)); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(14, 38, 64, .07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .18s ease; }
.psb-js .psb-activity-card { opacity: 0; transform: translateY(10px); }
.psb-js .psb-activity-card.is-revealed { opacity: 1; transform: translateY(0); }
.psb-activity-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--psb-accent) 45%, var(--psb-line)); box-shadow: 0 16px 36px rgba(14, 38, 64, .12); }
.psb-activity-card--featured { grid-column: span 8; }
.psb-activity-card--compact { grid-column: span 4; align-self: start; }
.psb-activity-card.is-selected { box-shadow: 0 0 0 2px rgba(21, 128, 95, .18), 0 12px 30px rgba(14, 38, 64, .09); }
.psb-activity-card__media { position: relative; height: 160px; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--psb-accent) 18%, #e8eef5), #d9e4ef); }
.psb-activity-card--featured .psb-activity-card__media { height: 210px; }
.psb-activity-card__media img { width: 100%; height: 100%; object-fit: cover; }
.psb-activity-card__media--empty { display: grid; place-items: center; color: var(--psb-accent); font-size: 3rem; }
.psb-capacity-state { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 9px; border-radius: 999px; background: #e9f8f1; color: #106449; font-size: .68rem; font-weight: 900; }
.psb-activity-card__media .psb-capacity-state { position: absolute; top: 12px; right: 12px; box-shadow: 0 7px 16px rgba(0, 0, 0, .13); }
.psb-capacity-state--attention, .psb-capacity-state--last { background: #fff2d9; color: #8a5209; }
.psb-capacity-state--soldout, .psb-capacity-state--closed { background: #eef1f5; color: #586678; }
.psb-capacity-state--cancelled { background: #fff0ef; color: #982f2b; }
.psb-activity-card__body { display: grid; gap: 10px; padding: 16px; }
.psb-activity-card--featured .psb-activity-card__body { padding: 20px; }
.psb-activity-card--compact .psb-activity-card__body { min-height: 100%; padding: 15px; }
.psb-activity-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.psb-category { display: inline-flex; width: fit-content; color: var(--psb-accent); font-size: .68rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.psb-card-shift-mobile { display: none; }
.psb-activity-card__time { display: flex; align-items: center; gap: 5px; color: var(--psb-brand-dark); font-size: .79rem; }
.psb-activity-card__time strong { font-size: 1rem; }
.psb-activity-card__time span { color: var(--psb-muted); }
.psb-activity-card h3 { margin: 0; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.2; letter-spacing: -.015em; }
.psb-activity-card--featured h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.psb-activity-card__speaker, .psb-activity-card__place { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--psb-muted); font-size: .78rem; font-weight: 700; }
.psb-activity-card__description { display: -webkit-box; margin: 0; overflow: hidden; color: #506278; font-size: .86rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.psb-capacity { display: grid; gap: 7px; padding-top: 10px; border-top: 1px solid #e4ebf2; }
.psb-capacity > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .72rem; }
.psb-capacity strong { color: var(--psb-ink); }
.psb-capacity span { color: var(--psb-muted); }
.psb-capacity progress { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 999px; background: #e7edf3; accent-color: var(--psb-accent); }
.psb-capacity progress::-webkit-progress-bar { background: #e7edf3; border-radius: 999px; }
.psb-capacity progress::-webkit-progress-value { background: var(--psb-accent); border-radius: 999px; }
.psb-enrollment-state { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 11px; background: #e9f8f1; color: #115f47; }
.psb-enrollment-state > span { display: grid; }
.psb-enrollment-state strong { font-size: .77rem; }
.psb-enrollment-state small { font-size: .68rem; }
.psb-enrollment-state--waiting { background: #fff4dd; color: #80500f; }
.psb-enrollment-state--conflict { background: #fff0ef; color: #8f302d; }
.psb-activity-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.psb-activity-card__actions form { margin: 0; }
.psb-action-note { color: var(--psb-muted); font-size: .72rem; font-weight: 800; }
.psb-select-action { position: relative; display: inline-flex; }
.psb-select-action input { position: absolute; opacity: 0; pointer-events: none; }
.psb-select-action span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 1px solid var(--psb-brand); border-radius: 11px; background: var(--psb-brand); color: #fff; font-size: .82rem; font-weight: 850; cursor: pointer; }
.psb-select-action input:checked + span { border-color: var(--psb-green); background: var(--psb-green); }
.psb-select-action input:disabled + span { border-color: #dce3ea; background: #eef2f6; color: #7d8997; cursor: not-allowed; }

.psb-empty-state { display: none; justify-items: center; padding: 52px 20px; border: 1px dashed #bdccdb; border-radius: 20px; background: #fff; text-align: center; }
.psb-empty-state.is-visible { display: grid; }
.psb-empty-state > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #eaf3ff; color: var(--psb-brand); font-size: 1.7rem; }
.psb-empty-state h3 { margin: 13px 0 4px; }
.psb-empty-state p { margin: 0 0 16px; color: var(--psb-muted); }

.psb-details { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; }
.psb-details::backdrop { background: rgba(7, 22, 38, .6); backdrop-filter: blur(4px); }
.psb-details__header, .psb-details__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.psb-details__header > button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--psb-line); border-radius: 11px; background: #fff; color: var(--psb-ink); font-size: 1.15rem; }

.psb-details__surface { position: absolute; top: 0; right: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(560px, 100%); height: 100%; background: #fff; box-shadow: -24px 0 64px rgba(7, 22, 38, .24); animation: psb-drawer-in .24s ease both; }
.psb-details__header { padding: 16px 18px; border-bottom: 1px solid var(--psb-line); }
.psb-details__body { overflow-y: auto; padding: 22px; }
.psb-details__footer { padding: 14px 18px; border-top: 1px solid var(--psb-line); }
.psb-details__footer > button:not(.psb-button) { min-height: 42px; padding: 0 10px; border: 0; background: transparent; color: var(--psb-brand-dark); font-weight: 800; }
.psb-detail-content { display: grid; gap: 18px; }
.psb-detail-content h2 { margin: -8px 0 0; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.08; }
.psb-detail-content__lead { margin: 0; color: var(--psb-muted); }
.psb-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.psb-detail-facts div { padding: 12px; border: 1px solid #dde6ef; border-radius: 12px; background: var(--psb-soft); }
.psb-detail-facts dt { color: var(--psb-muted); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.psb-detail-facts dd { margin: 3px 0 0; font-size: .84rem; font-weight: 800; }
.psb-detail-capacity { display: flex; align-items: center; gap: 11px; padding: 14px; border-radius: 14px; background: #e9f8f1; color: #115f47; }
.psb-detail-capacity > i { font-size: 1.45rem; }
.psb-detail-capacity > div { display: grid; }
.psb-detail-capacity span { font-size: .76rem; }
.psb-detail-capacity--closed, .psb-detail-capacity--soldout { background: #eef2f6; color: #526174; }
.psb-detail-capacity--attention, .psb-detail-capacity--last { background: #fff4dd; color: #80500f; }
.psb-detail-warning { display: flex; gap: 8px; padding: 12px; border: 1px solid #efd6a8; border-radius: 12px; background: #fff7e7; color: #7e510d; font-size: .82rem; }

.psb-selection-bar { position: fixed; right: 18px; bottom: 18px; left: 18px; z-index: 60; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; max-width: 1100px; margin: 0 auto; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(11, 37, 64, .97); color: #fff; box-shadow: 0 18px 54px rgba(7, 22, 38, .32); backdrop-filter: blur(18px); }
.psb-selection-bar__summary { display: flex; align-items: center; gap: 10px; }
.psb-selection-bar__summary > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--psb-teal); font-weight: 900; }
.psb-selection-bar__summary > div { display: grid; }
.psb-selection-bar__summary small { color: #b8c9d8; font-size: .7rem; }
.psb-selection-bar__items { display: flex; gap: 6px; overflow-x: auto; }
.psb-selection-item { flex: 0 0 auto; max-width: 180px; padding: 6px 9px; overflow: hidden; border-radius: 8px; background: rgba(255, 255, 255, .09); color: #dbe8f2; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.psb-selection-bar__actions { display: flex; gap: 7px; }

@keyframes psb-drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1120px) {
    .psb-summary-lead { grid-column: span 8; }
    .psb-my-schedule { grid-column: span 4; }
    .psb-metric { grid-column: span 3; }
    .psb-metric--capacity, .psb-metric--selected { grid-column: span 3; }
    .psb-shift { grid-template-columns: 130px minmax(0, 1fr); }
    .psb-activity-card--featured { grid-column: span 7; }
    .psb-activity-card--standard { grid-column: span 5; }
}

@media (max-width: 900px) {
    .psb-event-hero { grid-template-columns: minmax(250px, 4fr) minmax(0, 6fr); min-height: 280px; }
    .psb-event-hero__media { min-height: 280px; }
    .psb-preview-badge { display: none; }
    .psb-summary-lead { grid-column: span 12; grid-row: auto; }
    .psb-my-schedule { grid-column: span 12; grid-row: auto; }
    .psb-metric { grid-column: span 3; }
    .psb-shift { grid-template-columns: 1fr; }
    .psb-shift__heading { position: static; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; }
    .psb-shift__heading > strong { grid-column: auto; }
    .psb-activity-card--featured, .psb-activity-card--standard { grid-column: span 8; }
    .psb-activity-card--compact { grid-column: span 4; }
}

@media (max-width: 640px) {
    .public-schedule-bento { padding-bottom: 96px; }
    .psb-shell, .psb-topbar, .psb-event-hero { width: calc(100% - 20px); }
    .psb-topbar { position: relative; top: auto; min-height: 58px; gap: 8px; margin: 10px auto; padding: 8px; }
    .psb-brand__mark { width: 40px; height: 40px; }
    .psb-brand { min-height: 44px; }
    .psb-brand strong { font-size: .82rem; }
    .psb-brand small { display: none; }
    .psb-topbar__actions .psb-button--quiet { display: none; }
    .psb-topbar__actions .psb-button { min-height: 44px; padding: 0 12px; }
    .psb-event-hero { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
    .psb-event-hero__media { height: 180px; min-height: 0; }
    .psb-event-hero__content { padding: 22px 18px; }
    .psb-event-hero__status { position: static; margin-bottom: 14px; }
    .psb-event-hero__content h1 { margin-bottom: 12px; font-size: 1.85rem; }
    .psb-event-hero__facts { display: grid; gap: 7px; margin-bottom: 16px; font-size: .82rem; }
    .psb-event-hero__actions { display: grid; width: 100%; }
    .psb-event-hero__actions .psb-button { width: 100%; min-height: 44px; }
    .psb-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 10px; }
    .psb-summary-grid > article { border-radius: 16px; }
    .psb-summary-lead { grid-column: 1 / -1; grid-template-columns: 46px minmax(0, 1fr); padding: 18px; }
    .psb-summary-lead__icon { width: 46px; height: 46px; border-radius: 14px; }
    .psb-summary-lead__actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
    .psb-summary-lead__actions .psb-button { min-height: 44px; }
    .psb-metric, .psb-metric--capacity, .psb-metric--selected { grid-column: span 1; min-height: 96px; padding: 14px; }
    .psb-metric > i { width: 36px; height: 36px; }
    .psb-metric strong { font-size: 1.25rem; }
    .psb-my-schedule { grid-column: 1 / -1; padding: 18px; }
    .psb-view-switch { position: absolute; top: 14px; right: 14px; }
    .psb-view-switch button { min-height: 44px; padding: 0 9px; font-size: .7rem; }
    .psb-date-heading { position: sticky; top: 8px; z-index: 10; }
    .psb-date-heading time { box-shadow: 0 8px 22px rgba(14, 38, 64, .18); }
    .psb-shift__heading { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 11px; }
    .psb-shift__icon { width: 36px; height: 36px; }
    .psb-activity-grid { grid-template-columns: 1fr; gap: 11px; }
    .psb-activity-card--featured, .psb-activity-card--standard, .psb-activity-card--compact { grid-column: 1; }
    .psb-activity-card__media, .psb-activity-card--featured .psb-activity-card__media { height: 170px; }
    .psb-activity-card--featured .psb-activity-card__body { padding: 16px; }
    .psb-activity-card__actions { align-items: stretch; }
    .psb-activity-card__actions .psb-button, .psb-activity-card__actions form, .psb-activity-card__actions form button, .psb-select-action, .psb-select-action span { min-height: 44px; }
    .psb-activity-card__actions form button { width: 100%; }
    .psb-details__surface { width: 100%; animation: psb-drawer-up .22s ease both; }
    .psb-details__body { padding: 18px; }
    .psb-details__footer { display: grid; grid-template-columns: 1fr 1fr; }
    .psb-details__footer .psb-button { grid-column: 1 / -1; min-height: 46px; }
    .psb-detail-facts { grid-template-columns: 1fr; }
    .psb-selection-bar { right: 8px; bottom: 8px; left: 8px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; border-radius: 15px; }
    .psb-selection-bar__items { display: none; }
    .psb-selection-bar__summary small { display: none; }
    .psb-selection-bar__actions .psb-button--quiet { display: none; }
    .psb-selection-bar__actions .psb-button { min-height: 46px; padding: 0 12px; }
}

@keyframes psb-drawer-up { from { transform: translateY(28px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Preview de catálogo em duas colunas com detalhes Bento em modal. */
.psb-program-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin: 26px 0 16px;
    padding: 24px 26px;
    border: 1px solid var(--psb-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--psb-shadow);
}
.psb-program-intro h1 { max-width: 820px; margin: 0; color: var(--psb-navy); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.05; letter-spacing: -.035em; }
.psb-program-intro > div > p:last-child { margin: 10px 0 0; color: var(--psb-muted); }
.psb-program-intro__facts { display: grid; gap: 8px; min-width: min(420px, 40%); }
.psb-program-intro__facts span { display: flex; align-items: flex-start; gap: 8px; color: #465b72; font-size: .82rem; font-weight: 750; }
.psb-program-intro__facts i { margin-top: 2px; color: var(--psb-brand); }
.psb-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid var(--psb-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(14, 38, 64, .07);
}
.psb-view-toolbar h2 { margin: 0; color: var(--psb-navy); font-size: 1.35rem; }
.psb-view-toolbar .psb-view-switch { flex: 0 0 auto; }
.psb-view-toolbar .psb-view-switch button { min-height: 40px; padding: 0 16px; cursor: pointer; }
.psb-view-toolbar .psb-view-switch button:focus-visible { outline: 3px solid rgba(0, 83, 155, .24); outline-offset: 2px; }
.psb-day-filter { display: flex; gap: 8px; overflow-x: auto; margin: -4px 0 20px; padding: 4px 1px 7px; }
.psb-day-filter a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--psb-line); border-radius: 12px; background: #fff; color: var(--psb-brand-dark); font-size: .84rem; font-weight: 850; text-decoration: none; }
.psb-day-filter a.is-active { border-color: var(--psb-brand); background: var(--psb-brand); color: #fff; }
.psb-day-filter a:focus-visible { outline: 3px solid rgba(0, 83, 155, .24); outline-offset: 2px; }

.psb-activity-card--catalog { position: relative; display: grid; grid-column: span 6; grid-template-rows: auto minmax(0, 1fr); }
.psb-activity-card--catalog .psb-activity-card__media { height: 185px; }
.psb-activity-card--catalog .psb-activity-card__body { min-height: 305px; }
.psb-activity-card__open { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; }
.psb-activity-card__open:focus-visible { outline: 0; box-shadow: inset 0 0 0 4px rgba(0, 83, 155, .4); }
.psb-card-personal-state { display: inline-flex; align-items: center; gap: 4px; color: var(--psb-green); font-size: .68rem; font-weight: 900; }
.psb-card-personal-state--waiting { color: var(--psb-amber); }
.psb-card-open-hint { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 11px; border-top: 1px solid #e4ebf2; color: var(--psb-brand-dark); font-size: .79rem; font-weight: 900; }
.psb-card-open-hint i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #eaf3ff; transition: transform .18s ease; }
.psb-activity-card--catalog:hover .psb-card-open-hint i { transform: translate(2px, -2px); }

.psb-details__surface {
    top: 50%;
    right: auto;
    left: 50%;
    width: min(1100px, calc(100% - 32px));
    height: min(820px, calc(100% - 32px));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(7, 22, 38, .34);
    transform: translate(-50%, -50%);
    animation: psb-course-modal-in .24s ease both;
}
.psb-details__header { background: #fff; }
.psb-details__header > button { font-size: 1.55rem; line-height: 1; }
.psb-details__body { padding: 0; background: #edf2f7; }
.psb-details__footer { background: #fff; }
.psb-details__footer > span { color: var(--psb-muted); font-size: .72rem; font-weight: 750; text-align: center; }

.psb-course-bento { min-height: 100%; padding: 16px; }
.psb-course-bento__hero { display: grid; grid-template-columns: minmax(290px, 5fr) minmax(0, 7fr); min-height: 310px; overflow: hidden; border-radius: 20px; background: var(--psb-navy); box-shadow: var(--psb-shadow); }
.psb-course-bento__media { min-height: 310px; overflow: hidden; background: #dce7f0; }
.psb-course-bento__media img { width: 100%; height: 100%; object-fit: cover; }
.psb-course-bento__media--empty { display: grid; place-items: center; color: var(--psb-accent); font-size: 4rem; }
.psb-course-bento__headline { display: grid; align-content: center; gap: 12px; padding: 34px; background: radial-gradient(circle at 100% 100%, rgba(8,127,140,.28), transparent 42%), linear-gradient(135deg, #0b2540, #0d3b5c); color: #fff; }
.psb-course-bento__headline .psb-kicker { color: #58d7cf; }
.psb-course-bento__headline h2 { max-width: 680px; margin: 0; font-size: clamp(1.8rem, 3.3vw, 3rem); line-height: 1.02; letter-spacing: -.04em; }
.psb-course-bento__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.psb-course-bento__badges .psb-category { color: #7fe3dc; }
.psb-course-bento__headline-facts { display: grid; gap: 7px; margin-top: 4px; color: #d6e5f0; font-size: .82rem; font-weight: 750; }
.psb-course-bento__headline-facts span { display: flex; align-items: center; gap: 7px; }
.psb-course-bento__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.psb-course-bento__grid > * { border: 1px solid var(--psb-line); border-radius: 16px; background: #fff; }
.psb-course-bento__about { grid-column: span 7; grid-row: 1; padding: 20px; }
.psb-course-bento__about h3 { margin: 2px 0 8px; font-size: 1.25rem; }
.psb-course-bento__about > p:last-child { margin: 0; color: var(--psb-muted); }
.psb-course-bento__capacity { grid-column: 8 / -1; grid-row: 2; display: grid; align-content: center; gap: 8px; padding: 20px; background: linear-gradient(145deg, #fff, #edf8f5) !important; }
.psb-course-bento__capacity-number { display: flex; align-items: center; gap: 10px; }
.psb-course-bento__capacity-number strong { color: var(--psb-navy); font-size: 2.5rem; line-height: 1; }
.psb-course-bento__capacity-number span, .psb-course-bento__capacity small { color: var(--psb-muted); font-size: .72rem; }
.psb-course-bento__capacity progress { width: 100%; height: 8px; accent-color: var(--psb-accent); }
.psb-course-bento__facts { grid-column: span 7; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px; }
.psb-course-bento__action { grid-column: 8 / -1; grid-row: 1; display: grid; align-content: center; gap: 14px; padding: 18px; background: linear-gradient(135deg, #eaf3ff, #fff) !important; }
.psb-course-bento__action strong { display: block; color: var(--psb-navy); }
.psb-course-bento__action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.psb-course-bento__action-buttons form { margin: 0; }
.psb-course-bento__action-buttons .psb-button { min-height: 44px; }

@keyframes psb-course-modal-in {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 18px)) scale(.985); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 900px) {
    .psb-program-intro { align-items: flex-start; flex-direction: column; }
    .psb-program-intro__facts { min-width: 0; }
    .psb-course-bento__hero { grid-template-columns: minmax(230px, 4fr) minmax(0, 6fr); }
    .psb-course-bento__about, .psb-course-bento__capacity, .psb-course-bento__facts, .psb-course-bento__action { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 640px) {
    .psb-program-intro { gap: 10px; margin-top: 12px; padding: 15px; border-radius: 16px; }
    .psb-program-intro h1 { font-size: 1.48rem; line-height: 1.08; }
    .psb-program-intro__facts { gap: 4px; }
    .psb-program-intro__facts span { font-size: .72rem; }
    .psb-view-toolbar { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 16px; padding: 12px; border-radius: 16px; }
    .psb-view-toolbar h2 { font-size: 1.08rem; }
    .psb-view-toolbar .psb-view-switch { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; }
    .psb-view-toolbar .psb-view-switch button { width: 100%; min-width: 0; min-height: 44px; padding: 0 6px; font-size: .69rem; white-space: normal; overflow-wrap: anywhere; }
    .psb-date-group { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 8px; align-items: start; }
    .psb-date-heading { grid-column: 1 / -1; }
    .psb-shift, .psb-activity-grid { display: contents; }
    .psb-shift__heading { display: none; }
    .psb-card-shift-mobile { display: inline; margin-right: 3px; }
    .psb-activity-card--featured, .psb-activity-card--standard, .psb-activity-card--compact, .psb-activity-card--catalog { grid-column: auto; }
    .psb-activity-card--catalog { border-radius: 14px; }
    .psb-activity-card--catalog .psb-activity-card__media { height: 112px; }
    .psb-activity-card--catalog .psb-activity-card__body { min-height: 260px; gap: 7px; padding: 10px; }
    .psb-activity-card--catalog .psb-capacity-state { max-width: calc(100% - 12px); min-height: 24px; padding: 3px 6px; font-size: .56rem; line-height: 1.15; text-align: center; white-space: normal; }
    .psb-activity-card--catalog .psb-activity-card__media .psb-capacity-state { top: 6px; right: 6px; }
    .psb-activity-card--catalog .psb-activity-card__topline { align-items: flex-start; flex-direction: column; gap: 3px; }
    .psb-activity-card--catalog .psb-category, .psb-activity-card--catalog .psb-card-personal-state { font-size: .58rem; }
    .psb-activity-card--catalog .psb-activity-card__time { flex-wrap: wrap; gap: 3px; font-size: .66rem; }
    .psb-activity-card--catalog .psb-activity-card__time strong { font-size: .82rem; }
    .psb-activity-card--catalog h3 { display: -webkit-box; min-height: 3.3em; overflow: hidden; font-size: .9rem; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
    .psb-activity-card--catalog .psb-activity-card__speaker, .psb-activity-card--catalog .psb-activity-card__place { align-items: flex-start; font-size: .65rem; line-height: 1.25; overflow-wrap: anywhere; }
    .psb-activity-card--catalog .psb-capacity { gap: 5px; padding-top: 7px; }
    .psb-activity-card--catalog .psb-capacity > div { display: grid; gap: 2px; font-size: .62rem; }
    .psb-activity-card--catalog .psb-capacity progress { height: 6px; }
    .psb-activity-card--catalog .psb-card-open-hint { gap: 5px; padding-top: 7px; font-size: .67rem; }
    .psb-activity-card--catalog .psb-card-open-hint i { width: 26px; height: 26px; border-radius: 8px; }
    .psb-details__surface { inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; transform: none; animation: psb-course-modal-mobile-in .2s ease both; }
    .psb-details__header { padding: 12px 14px; }
    .psb-details__body { padding: 0; }
    .psb-details__footer { grid-template-columns: 1fr 1fr; padding: 10px; }
    .psb-details__footer > span { display: none; }
    .psb-details__footer > button:not(.psb-button) { min-height: 44px; }
    .psb-course-bento { padding: 8px; }
    .psb-course-bento__hero { grid-template-columns: 1fr; min-height: 0; border-radius: 16px; }
    .psb-course-bento__media { min-height: 145px; height: 145px; }
    .psb-course-bento__headline { gap: 8px; padding: 16px; }
    .psb-course-bento__headline h2 { font-size: 1.48rem; line-height: 1.05; }
    .psb-course-bento__headline-facts { gap: 5px; font-size: .74rem; }
    .psb-course-bento__grid { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
    .psb-course-bento__about, .psb-course-bento__capacity, .psb-course-bento__facts, .psb-course-bento__action { grid-column: 1; }
    .psb-course-bento__action { order: -1; padding: 15px; }
    .psb-course-bento__about { order: 0; padding: 16px; }
    .psb-course-bento__facts { order: 1; }
    .psb-course-bento__capacity { order: 2; padding: 16px; }
    .psb-course-bento__facts { grid-template-columns: 1fr 1fr; }
    .psb-course-bento__action-buttons, .psb-course-bento__action-buttons form, .psb-course-bento__action-buttons .psb-button { width: 100%; }
}
.psb-date-group[hidden], .psb-shift[hidden], .psb-activity-card[hidden] { display: none !important; }
@media (max-width: 319px) {
    .psb-topbar { gap: 6px; }
    .psb-brand > span:last-child { display: none; }
    .psb-date-group { grid-template-columns: minmax(0, 1fr); }
}
@keyframes psb-course-modal-mobile-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
