.ipw-root {
--ipw-navy: #1a2856;
--ipw-navy-soft: #243660;
--ipw-bg: #000;
--ipw-row-alt: #000;
--ipw-text: #e6e8ec;
--ipw-text-strong: #fff;
--ipw-muted: rgba(255, 255, 255, 0.55);
--ipw-link: #a78bff;
--ipw-accent: #E34A21;
--ipw-divider: #d63384;
--ipw-border: rgba(255, 255, 255, 0.08);
font-family: inherit;
color: var(--ipw-text);
background: var(--ipw-bg);
width: 100%;
margin: 0 auto;
font-size: 14px;
line-height: 1.5;
}

.ipw-loading,
.ipw-error,
.ipw-empty {
padding: 40px 20px;
text-align: center;
color: var(--ipw-muted);
}

.ipw-error {
color: #f87171;
}

/* Toolbar (day tabs + search) ------------------------------------------- */
.ipw-toolbar {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 12px;
padding: 16px 0;
}

.ipw-toolbar .ipw-tabs {
padding: 0;
}

.ipw-toolbar .ipw-filter-search {
width: 100%;
}

/* Filters ---------------------------------------------------------------- */
.ipw-filters {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
padding: 24px 0;
}

/* Search ------------------- */
.ipw-filter-search {
display: flex;
align-items: center;
gap: 10px;
}

.ipw-filter-search__label {
font-weight: 600;
color: var(--ipw-text);
white-space: nowrap;
}

.ipw-filter-search__input {
flex: 1;
font: inherit;
padding: 8px 36px 8px 12px;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 4px;
background-color: #fff;
background-repeat: no-repeat;
background-position: right 10px center;
background-size: 16px 16px;
color: #2a2a2a;
width: 100%;
}

.ipw-filter-search__input::placeholder {
color: #9ca3af;
}

.ipw-filter-search__input:focus-visible {
outline: 2px solid var(--ipw-accent);
outline-offset: 1px;
}

/* Pill section (accordion-capable) -------------- */
.ipw-filter-section {
display: block;
}

.ipw-filter-section__head {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 12px 0;
background: transparent;
border: none;
cursor: pointer;
text-align: left;
font: inherit;
color: var(--ipw-text);
}

.ipw-filter-section__label {
font-weight: 600;
}

/* Chevron — pure CSS arrow that flips when section is open. */
.ipw-filter-section__chevron {
width: 9px;
height: 9px;
border-right: 2px solid var(--ipw-muted);
border-bottom: 2px solid var(--ipw-muted);
transform: rotate(45deg);
transition: transform 0.15s ease;
margin: 0 4px 4px 8px;
}

.ipw-filter-section.is-open .ipw-filter-section__chevron {
transform: rotate(-135deg);
margin-bottom: 0;
margin-top: 4px;
}

.ipw-filter-section__body {
padding: 0 0 12px;
}

/* Pills --------------------- */
.ipw-pills {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.ipw-pill {
font: inherit;
font-size: 13px;
padding: 6px 14px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 999px;
background: transparent;
color: var(--ipw-text);
cursor: pointer;
white-space: nowrap;
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ipw-pill:hover {
border-color: rgba(255, 255, 255, 0.45);
color: var(--ipw-text-strong);
}

.ipw-pill.is-active {
background: var(--ipw-navy);
border-color: var(--ipw-navy);
color: #fff;
}

.ipw-pill:focus-visible {
outline: 2px solid var(--ipw-accent);
outline-offset: 2px;
}

.ipw-no-matches {
padding: 28px 20px;
text-align: center;
color: var(--ipw-muted);
font-style: italic;
background: var(--ipw-bg);
}

/* Mobile: accordion behavior. Day tabs keep their breathing room above
Filter, but Filter / Stages / Topics stack flush against each other. */
@media (max-width: 767px) {
.ipw-toolbar {
padding-bottom: 0;
gap: 20px;
}

.ipw-filter-search {
flex-direction: column;
align-items: stretch;
gap: 6px;
}

.ipw-filters {
padding: 0;
gap: 0;
}

.ipw-filter-section + .ipw-filter-section {
border-top: 1px solid var(--ipw-border);
}

.ipw-filter-section__body {
display: none;
}

.ipw-filter-section.is-open .ipw-filter-section__body {
display: block;
}

.ipw-day-panel.is-active {
margin-top: 20px;
}
}

/* Desktop: tabs centered with search inline on the right side;
stages/topics labels align across groups via the parent grid. */
@media (min-width: 768px) {
.ipw-toolbar {
display: grid;
grid-template-columns: 1fr auto 1fr;
column-gap: 16px;
align-items: center;
}

.ipw-toolbar .ipw-tabs {
grid-column: 2;
}

.ipw-toolbar .ipw-filter-search {
grid-column: 3;
justify-self: end;
width: auto;
min-width: 280px;
max-width: 360px;
}

.ipw-filters {
grid-template-columns: auto 1fr;
column-gap: 12px;
row-gap: 6px;
align-items: start;
}

.ipw-filter-section {
display: contents;
}

.ipw-filter-section__head {
cursor: default;
padding: 6px 0;
pointer-events: none;
width: auto;
justify-content: flex-start;
}

.ipw-filter-section__chevron {
display: none;
}

.ipw-filter-section__body {
display: block;
padding: 0;
}
}

/* Day tabs ---------------------------------------------------------------- */
.ipw-tabs {
display: flex;
justify-content: center;
gap: 8px;
padding: 16px 0;
}

.ipw-tab {
background: transparent;
border: 1.5px solid rgba(255, 255, 255, 0.35);
color: var(--ipw-text);
padding: 12px 28px;
border-radius: 999px;
cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ipw-tab:hover {
background: var(--ipw-accent);
border-color: var(--ipw-accent);
color: #fff;
transform: translateY(-1px);
}

.ipw-tab:focus-visible {
outline: 2px solid var(--ipw-accent);
outline-offset: 2px;
}

.ipw-tab.is-active {
background: var(--ipw-navy);
border-color: var(--ipw-navy);
color: #fff;
}

.ipw-tab.is-active:hover {
background: var(--ipw-navy-soft);
border-color: var(--ipw-navy-soft);
}

.ipw-tab__date {
margin-left: 2px;
font-weight: 500;
}

.ipw-tabs--bottom {
margin: 32px 0 16px;
}

/* Day panels ------------------------------------------------------------- */
.ipw-day-panel {
display: none;
}

.ipw-day-panel.is-active {
display: block;
}

.ipw-day-header {
background: var(--ipw-navy);
color: #fff;
font-weight: 700;
padding: 14px 20px;
font-size: 15px;
letter-spacing: 0.2px;
}

.ipw-day-footer {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 24px 0;
}

.ipw-day-nav {
background: none;
border: none;
cursor: pointer;
font-size: 16px;
color: var(--ipw-link);
text-decoration: underline;
padding: 8px 4px;
}

.ipw-day-nav:hover {
color: #c4b2ff;
}

.ipw-day-nav--prev:only-child {
margin-right: auto;
}

.ipw-day-nav--next:only-child {
margin-left: auto;
}

/* Session rows ----------------------------------------------------------- */
.ipw-rows {
border-top: 1px solid var(--ipw-border);
}

.ipw-row {
display: grid;
grid-template-columns: 110px 1fr;
gap: 16px;
padding: 18px 20px;
border-bottom: 1px solid;
border-image: linear-gradient(90deg, transparent 0%, var(--ipw-divider) 15%, var(--ipw-divider) 85%, transparent 100%) 1;
background: var(--ipw-bg);
scroll-margin-top: 100px;
}

.ipw-rows .ipw-row:last-child {
border-bottom: 0;
border-image: none;
}

.ipw-row--alt {
background: var(--ipw-row-alt);
}

.ipw-row--multi {
position: relative;
}

/* Faded right edge hints at horizontal scrollability when tracks overflow. */
.ipw-row--multi::after {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 24px;
background: linear-gradient(to left, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0));
pointer-events: none;
}

.ipw-row--multi.ipw-row--alt::after {
background: linear-gradient(to left, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0));
}

.ipw-row__time {
color: var(--ipw-muted);
font-weight: 500;
white-space: nowrap;
}

.ipw-row__title {
color: var(--ipw-text-strong);
font-size: 18px;
font-weight: 400;
line-height: 1.4;
text-decoration: none;
}

.ipw-row__title:hover {
text-decoration: none;
color: var(--ipw-text-strong);
}

a.ipw-row__title {
display: inline-block;
text-decoration: none;
}

a.ipw-row__title:hover,
a.ipw-row__title:focus-visible {
text-decoration: underline;
outline: none;
}

.ipw-row__desc {
margin: 4px 0 12px;
color: var(--ipw-text);
}

.ipw-row__desc p {
margin: 0 0 8px;
}

.ipw-row__desc p:last-child {
margin-bottom: 0;
}

.ipw-row__desc a {
color: var(--ipw-link);
}

/* Tag badges (stages + topics) shown under the session title */
.ipw-row__tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 6px 0 10px;
}

.ipw-row__tag {
display: inline-block;
padding: 4px 10px;
font-size: 12px;
line-height: 1.3;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.65);
color: var(--ipw-text-strong);
background: transparent;
white-space: nowrap;
font-weight: 600;
}

.ipw-row__tag--stage {
background: #E34A21;
border-color: #E34A21;
color: #FFF;
font-weight: 600;
}

/* Concurrent tracks ----------------------------------------------------- */
.ipw-tracks {
flex: 1;
display: grid;
grid-template-columns: repeat(var(--ipw-track-count, 2), minmax(0, 1fr));
gap: 24px;
overflow-x: auto;
padding-bottom: 8px;

/* Firefox */
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.ipw-tracks > .ipw-row__body {
min-width: 0;
}

.ipw-tracks::-webkit-scrollbar {
height: 8px;
-webkit-appearance: none;
}

.ipw-tracks::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}

.ipw-tracks::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.25);
border-radius: 4px;
}

.ipw-tracks::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.4);
}

.ipw-tracks .ipw-speakers,
.ipw-tracks .ipw-speakers--multi {
grid-template-columns: 1fr;
}

@media (max-width: 768px) {
.ipw-tracks {
grid-template-columns: repeat(var(--ipw-track-count, 2), 85%);
gap: 16px;
scroll-snap-type: x mandatory;
}

.ipw-tracks > .ipw-row__body {
scroll-snap-align: start;
}
}

.ipw-tracks--scroll {
grid-template-columns: repeat(var(--ipw-track-count, 3), 42%);
scroll-snap-type: x mandatory;
}

.ipw-tracks--scroll > .ipw-row__body {
scroll-snap-align: start;
}

@media (max-width: 768px) {
.ipw-tracks--scroll {
grid-template-columns: repeat(var(--ipw-track-count, 3), 85%);
}
}

/* Speakers --------------------------------------------------------------- */
.ipw-speakers {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-top: 8px;
}

@media (min-width: 720px) {
.ipw-speakers--multi {
grid-template-columns: 1fr 1fr;
}
}

.ipw-people-label {
margin-top: 14px;
margin-bottom: 4px;
font-weight: 600;
color: var(--ipw-text);
}

.ipw-root .ipw-speaker {
display: flex;
flex-direction: row !important;
align-items: flex-start;
gap: 16px;
background: transparent !important;
border: 0 !important;
border-radius: 0 !important;
height: auto !important;
overflow: visible !important;
transition: none !important;
}

.ipw-root .ipw-speaker:hover {
transform: none !important;
border-color: transparent !important;
}

.ipw-speaker__photo {
width: 90px;
height: 90px;
border-radius: 50%;
object-fit: cover;
border: 1.5px solid var(--ipw-accent);
flex-shrink: 0;
background: #11151d;
}

.ipw-speaker__photo--placeholder {
display: flex;
align-items: center;
justify-content: center;
color: #fff;
font-weight: 600;
font-size: 26px;
letter-spacing: 1px;
background: linear-gradient(135deg, #243660, #1b2845);
}

.ipw-speaker__photo--clickable {
cursor: pointer;
}

.ipw-speaker__info {
display: flex;
flex-direction: column;
gap: 2px;
padding-top: 6px;
}

.ipw-speaker__name {
color: var(--ipw-link);
font-weight: 600;
}

.ipw-speaker__role,
.ipw-speaker__org {
color: var(--ipw-text);
}

.ipw-speaker__credit {
margin-top: 8px;
color: var(--ipw-muted);
font-size: 12px;
font-style: italic;
}

/* Speaker modal --------------------------------------------------------- */
body.ipw-modal-open {
overflow: hidden;
}

.ipw-modal {
padding: 0;
border: 1px solid var(--ipw-border);
border-radius: 6px;
width: 100%;
max-width: 640px;
max-height: 90vh;
background: #11151d;
color: var(--ipw-text);
font-family: inherit;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}

.ipw-modal[open] {
display: flex;
flex-direction: column;
}

.ipw-modal::backdrop {
background: rgba(0, 0, 0, 0.75);
}

.ipw-modal__header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 18px;
border-bottom: 1px solid var(--ipw-border);
}

.ipw-modal__title {
font-weight: 700;
font-size: 15px;
color: var(--ipw-text-strong);
}

.ipw-modal__close {
background: transparent;
border: none;
font-size: 22px;
line-height: 1;
color: var(--ipw-muted);
cursor: pointer;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
}

.ipw-modal__close:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--ipw-text-strong);
}

.ipw-modal__body {
padding: 20px;
overflow-y: auto;
flex: 1;
font-size: 14px;
line-height: 1.55;
}

.ipw-modal__profile {
display: flex;
gap: 18px;
align-items: flex-start;
}

.ipw-modal__info {
flex: 1;
min-width: 0;
}

.ipw-modal__name {
color: var(--ipw-link);
font-weight: 600;
margin-bottom: 2px;
}

.ipw-modal__role,
.ipw-modal__org {
color: var(--ipw-text);
}

.ipw-modal__section-title {
margin-top: 14px;
color: var(--ipw-accent);
font-weight: 600;
}

.ipw-modal__involvement {
color: var(--ipw-link);
margin-bottom: 4px;
}

.ipw-modal__bio {
margin-top: 14px;
color: var(--ipw-text);
}

.ipw-modal__bio p {
margin: 0 0 10px;
}

.ipw-modal__bio p:last-child {
margin-bottom: 0;
}

.ipw-modal__footer {
display: flex;
justify-content: flex-end;
padding: 12px 18px;
border-top: 1px solid var(--ipw-border);
}

.ipw-modal__close-btn {
background: var(--ipw-accent);
color: #fff;
border: none;
border-radius: 4px;
padding: 8px 18px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.15s ease;
}

.ipw-modal__close-btn:hover {
background: #ff5a2e;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 640px) {
.ipw-row:not(.ipw-row--multi) {
grid-template-columns: 1fr;
gap: 6px;
}

.ipw-row--multi {
grid-template-columns: 50px 1fr;
gap: 8px;
padding: 14px 12px;
}

.ipw-row__time {
font-size: 13px;
}

.ipw-speaker__photo {
width: 70px;
height: 70px;
}

.ipw-modal__profile {
flex-direction: column;
align-items: flex-start;
}
}