/* Reusable Fyreside media shell: webinar room today, course player-ready. */
.portal-themed .fy-media-shell {
  --ms-bg: var(--bg, #f4f1ea);
  --ms-surface: var(--surface, #fdfbf6);
  --ms-surface-2: var(--surface-2, #eceadf);
  --ms-ink: var(--ink, #17130e);
  --ms-ink-2: var(--ink-2, #4a4239);
  --ms-ink-3: var(--ink-3, #8b8275);
  --ms-line: var(--line, #e4dfd2);
  --ms-line-2: var(--line-2, #ece8db);
  --ms-accent: var(--accent, #b8563d);
  --ms-accent-soft: var(--accent-soft, #f4dccf);
  color: var(--ms-ink);
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
}

.portal-themed .fy-media-shell *,
.portal-themed .fy-media-shell *::before,
.portal-themed .fy-media-shell *::after { box-sizing: border-box; }

.portal-themed .fy-media-roombar {
  max-width: 1520px;
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.portal-themed .fy-media-roombar-title {
  color: var(--ms-ink-3);
  font: 700 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.portal-themed .fy-media-roombar-state {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.portal-themed .fy-media-livechip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  background: var(--ms-surface);
  color: var(--ms-ink);
  font: 700 12px/1 "Inter", system-ui, sans-serif;
}
.portal-themed .fy-media-livechip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-accent);
}
.portal-themed .fy-media-statusmeta {
  color: var(--ms-ink);
  font: 500 14px/1 "JetBrains Mono", ui-monospace, monospace;
}

.portal-themed .fy-media-shell-webinar .fy-media-roombar {
  display: none;
}

.portal-themed .fy-media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  max-width: 1520px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}
.portal-themed .fy-media-shell-webinar .fy-media-layout {
  padding-top: 12px;
}

.portal-themed .fy-media-main { min-width: 0; }

.portal-themed .fy-media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #090806;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px;
  box-shadow: 0 24px 52px -34px rgba(26,20,16,.45);
}

.portal-themed .fy-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

.portal-themed .fy-media-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(255,255,255,.78);
  text-align: center;
  padding: 24px;
}
.portal-themed .fy-media-empty svg { width: 34px; height: 34px; fill: currentColor; opacity: .55; }
.portal-themed .fy-media-empty strong { font-weight: 600; }
.portal-themed .fy-media-empty span { font-size: 13px; color: rgba(255,255,255,.58); }

.portal-themed .fy-media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: rgba(17,15,13,.82);
  color: #fff;
  font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.portal-themed .fy-media-badge strong {
  font: inherit;
}
.portal-themed .fy-media-badge em {
  font-style: normal;
  color: rgba(255,255,255,.72);
  letter-spacing: .04em;
}
.portal-themed .fy-media-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-accent);
}

.portal-themed .fy-media-floating-action {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 34px -18px rgba(37,211,102,.75), 0 8px 20px -16px rgba(0,0,0,.8);
  font: 750 12px/1 "Inter", system-ui, sans-serif;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.portal-themed .fy-media-floating-action svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}
.portal-themed .fy-media-floating-action:hover,
.portal-themed .fy-media-floating-action:focus-visible {
  background: #1fbd5b;
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px -18px rgba(37,211,102,.82), 0 10px 24px -16px rgba(0,0,0,.86);
}
.portal-themed .fy-media-floating-action:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,255,255,.82), 0 18px 38px -18px rgba(37,211,102,.82);
}

.portal-themed .fy-media-controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 8;
  min-height: 56px;
  display: grid;
  grid-template-columns: 44px auto minmax(84px, 1fr) 38px 38px 38px 38px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(25,22,19,.78), rgba(12,10,8,.86));
  color: #fff;
  box-shadow: 0 18px 38px -20px rgba(0,0,0,.7);
  backdrop-filter: blur(12px);
}

.portal-themed .fy-media-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
  font: 700 11px/1 "JetBrains Mono", ui-monospace, monospace;
}
.portal-themed .fy-media-icon:hover,
.portal-themed .fy-media-icon:focus-visible {
  background: rgba(255,255,255,.12);
  outline: 0;
}
.portal-themed .fy-media-icon:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.75); }
.portal-themed .fy-media-icon svg { width: 20px; height: 20px; fill: currentColor; }
.portal-themed .fy-media-icon svg[fill="none"] { fill: none; }

.portal-themed .fy-media-shell[data-fy-media-paused="false"] .fy-i-play,
.portal-themed .fy-media-shell[data-fy-media-muted="true"] .fy-i-volume,
.portal-themed .fy-media-shell[data-fy-media-fullscreen="true"] .fy-i-expand { display: none; }
.portal-themed .fy-media-shell:not([data-fy-media-paused="false"]) .fy-i-pause,
.portal-themed .fy-media-shell:not([data-fy-media-muted="true"]) .fy-i-muted,
.portal-themed .fy-media-shell:not([data-fy-media-fullscreen="true"]) .fy-i-collapse { display: none; }

.portal-themed .fy-media-time {
  color: rgba(255,255,255,.92);
  font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace;
  white-space: nowrap;
}

.portal-themed .fy-media-seek {
  width: 100%;
  accent-color: var(--ms-accent);
  cursor: pointer;
}
.portal-themed .fy-media-seek:disabled { cursor: default; opacity: .65; }

.portal-themed .fy-media-popups {
  position: absolute;
  right: 28px;
  bottom: 88px;
  z-index: 7;
  display: grid;
  gap: 10px;
  width: min(410px, 48%);
  pointer-events: none;
}
.portal-themed .fy-media-popups:empty { display: none; }
.portal-themed .fy-media-popups > * { pointer-events: auto; }

.portal-themed .fy-media-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  padding: 14px 4px 0;
}
.portal-themed .fy-media-titleblock { min-width: 0; }
.portal-themed .fy-media-titleblock h1 {
  margin: 0;
  color: var(--ms-ink);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.08;
  letter-spacing: 0;
}
.portal-themed .fy-media-host {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--ms-ink-2);
}
.portal-themed .fy-media-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ead7c1, #7a3c27);
  background-size: cover;
  background-position: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  flex: 0 0 34px;
}
.portal-themed .fy-media-host strong {
  display: block;
  color: var(--ms-ink);
  font-size: 14px;
  font-weight: 700;
}
.portal-themed .fy-media-host em {
  display: block;
  margin-top: 2px;
  color: var(--ms-ink-3);
  font-style: normal;
  font-size: 12px;
}

.portal-themed .fy-media-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.portal-themed .fy-media-cta-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.portal-themed .fy-media-cta-note {
  max-width: 280px;
  color: var(--ms-ink-2);
  font-size: 12.5px;
  line-height: 1.35;
}
.portal-themed .fy-media-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  background: var(--ms-surface);
  color: var(--ms-ink);
  text-decoration: none;
  cursor: pointer;
  font: 600 13px/1 "Inter", system-ui, sans-serif;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.portal-themed .fy-media-action:hover,
.portal-themed .fy-media-action:focus-visible {
  border-color: var(--ms-accent);
  color: var(--ms-accent);
  outline: 0;
}
.portal-themed .fy-media-action.primary {
  background: var(--ms-accent);
  color: #fff;
  border-color: var(--ms-accent);
}
.portal-themed .fy-media-action.primary:hover,
.portal-themed .fy-media-action.primary:focus-visible {
  background: color-mix(in srgb, var(--ms-accent) 88%, #000);
  color: #fff;
}
.portal-themed .fy-media-action svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.portal-themed .fy-media-chat {
  min-height: 420px;
  max-height: calc(100vh - 132px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ms-surface) 94%, transparent);
  box-shadow: 0 18px 48px -34px rgba(26,20,16,.3);
  overflow: hidden;
}
.portal-themed .fy-media-chat-grip {
  display: none;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--ms-line);
  margin: 7px auto 0;
  flex: 0 0 auto;
}
.portal-themed .fy-media-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid var(--ms-line);
}
.portal-themed .fy-media-chat-head > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-themed .fy-media-chat-head h2 {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 750;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portal-themed .fy-media-chat-head p {
  margin: 0;
  color: var(--ms-ink-3);
  font-size: 11px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.portal-themed .fy-media-chat-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ms-ink-2);
  cursor: pointer;
  border-radius: 6px;
}
.portal-themed .fy-media-chat-close:hover { background: var(--ms-surface-2); color: var(--ms-ink); }
.portal-themed .fy-media-chat-close svg { width: 20px; height: 20px; }

.portal-themed .fy-media-chat-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.portal-themed .fy-media-chat .chat-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 92%;
}
.portal-themed .fy-media-chat .chat-msg.chat-user { align-self: flex-end; }
.portal-themed .fy-media-chat .chat-msg.chat-ai,
.portal-themed .fy-media-chat .chat-msg.chat-moderator,
.portal-themed .fy-media-chat .chat-msg.chat-scripted { align-self: flex-start; }
.portal-themed .fy-media-chat .chat-role {
  color: var(--ms-ink-3);
  font: 700 10px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.portal-themed .fy-media-chat .chat-body {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--ms-surface-2);
  color: var(--ms-ink);
  font-size: 13.5px;
  line-height: 1.45;
}
.portal-themed .fy-media-chat .chat-md p { margin: 0 0 .55em; }
.portal-themed .fy-media-chat .chat-md p:last-child,
.portal-themed .fy-media-chat .chat-md ul:last-child,
.portal-themed .fy-media-chat .chat-md ol:last-child,
.portal-themed .fy-media-chat .chat-md blockquote:last-child,
.portal-themed .fy-media-chat .chat-md pre:last-child { margin-bottom: 0; }
.portal-themed .fy-media-chat .chat-md ul,
.portal-themed .fy-media-chat .chat-md ol { margin: .15em 0 .55em; padding-left: 1.15rem; }
.portal-themed .fy-media-chat .chat-md li + li { margin-top: .18em; }
.portal-themed .fy-media-chat .chat-md a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.portal-themed .fy-media-chat .chat-md code { padding: 1px 4px; border-radius: 4px; background: rgba(0,0,0,.08); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .92em; }
.portal-themed .fy-media-chat .chat-user .chat-md code { background: rgba(255,255,255,.18); }
.portal-themed .fy-media-chat .chat-md pre { margin: .15em 0 .55em; padding: 8px 10px; overflow-x: auto; border-radius: 8px; background: rgba(0,0,0,.08); }
.portal-themed .fy-media-chat .chat-md pre code { padding: 0; background: transparent; }
.portal-themed .fy-media-chat .chat-md blockquote { margin: .15em 0 .55em; padding-left: .7rem; border-left: 3px solid currentColor; opacity: .82; }
.portal-themed .fy-media-chat .chat-md .md-heading { margin-bottom: .35em; }
.portal-themed .fy-media-chat .chat-user .chat-body {
  background: var(--ms-accent);
  color: #fff;
}
.portal-themed .fy-media-chat .chat-pending .chat-body {
  opacity: .72;
  font-style: italic;
}

.portal-themed .fy-media-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--ms-line);
  background: var(--ms-surface);
}
.portal-themed .fy-media-chat-form input {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  padding: 0 12px;
  background: var(--ms-surface);
  color: var(--ms-ink);
  font: inherit;
}
.portal-themed .fy-media-chat-form input:focus {
  outline: 2px solid var(--ms-accent-soft);
  border-color: var(--ms-accent);
}
.portal-themed .fy-media-chat-form button {
  height: 42px;
  min-width: 70px;
  border: 0;
  border-radius: 6px;
  background: var(--ms-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.portal-themed .fy-media-chat-form button:hover {
  background: color-mix(in srgb, var(--ms-accent) 88%, #000);
}

.portal-themed .fy-media-shell .wi-card {
  position: relative;
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--ms-surface) 96%, transparent);
  color: var(--ms-ink);
  box-shadow: 0 22px 42px -28px rgba(26,20,16,.45);
  backdrop-filter: blur(16px);
}
.portal-themed .fy-media-shell .wi-card h4 {
  margin: 0 30px 8px 0;
  font-family: "Instrument Serif", serif;
  font-size: 23px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
}
.portal-themed .fy-media-shell .wi-card p {
  margin: 0 0 12px;
  color: var(--ms-ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.portal-themed .fy-media-shell .wi-card button,
.portal-themed .fy-media-shell .wi-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  background: var(--ms-accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.portal-themed .fy-media-shell .wi-offer .wi-offer-cta {
  width: 100%;
}
.portal-themed .fy-media-shell .wi-coupon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  margin: 0 0 12px;
  border: 1px dashed color-mix(in srgb, var(--ms-accent) 45%, var(--ms-line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--ms-accent) 10%, var(--ms-surface));
}
.portal-themed .fy-media-shell .wi-coupon span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.portal-themed .fy-media-shell .wi-coupon small {
  color: var(--ms-ink-2);
  font: 700 10px/1.1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.portal-themed .fy-media-shell .wi-coupon strong {
  color: var(--ms-ink);
  font: 800 15px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.portal-themed .fy-media-shell .wi-card .wi-coupon-copy {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--ms-line);
  background: var(--ms-surface);
  color: var(--ms-ink);
}
.portal-themed .fy-media-shell .wi-card .wi-coupon-copy:hover,
.portal-themed .fy-media-shell .wi-card .wi-coupon-copy:focus-visible {
  background: var(--ms-surface-2);
  outline: 0;
}
.portal-themed .fy-media-shell .wi-card .wi-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  min-height: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: var(--ms-ink-2);
  font-size: 18px;
}
.portal-themed .fy-media-shell .wi-card .wi-close:hover {
  background: var(--ms-surface-2);
  color: var(--ms-ink);
}
.portal-themed .fy-media-shell .wi-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.portal-themed .fy-media-shell .wi-scarcity {
  color: var(--ms-accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.portal-themed .fy-media-shell .wi-card textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px;
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  margin-bottom: 8px;
}

@media (min-width: 1024px) {
  .portal-themed .fy-media-has-chat .fy-media-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    align-items: start;
    padding: 18px 24px 72px;
  }
  .portal-themed .fy-media-chat {
    position: sticky;
    top: 82px;
  }
}

@media (max-width: 720px) {
  .portal-themed .fy-media-roombar {
    padding: 12px 12px 0;
  }
  .portal-themed .fy-media-roombar-title { display: none; }
  .portal-themed .fy-media-roombar-state {
    width: 100%;
    justify-content: flex-end;
  }
  .portal-themed .fy-media-livechip {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11px;
  }
  .portal-themed .fy-media-layout {
    padding: 8px 8px 28px;
    gap: 10px;
  }
  .portal-themed .fy-media-stage {
    border-radius: 8px;
  }
  .portal-themed .fy-media-controls {
    left: 8px;
    right: 8px;
    bottom: 8px;
    min-height: 46px;
    grid-template-columns: 36px auto minmax(58px, 1fr) 34px 34px 34px;
    gap: 6px;
    padding: 5px 6px;
  }
  .portal-themed .fy-media-chat-toggle { display: grid; }
  .portal-themed .fy-media-icon { width: 34px; height: 34px; }
  .portal-themed .fy-media-icon svg { width: 18px; height: 18px; }
  .portal-themed .fy-media-time { font-size: 11px; }
  .portal-themed .fy-media-cc { display: none; }
  .portal-themed .fy-media-popups {
    left: 12px;
    right: 12px;
    bottom: 62px;
    width: auto;
  }
  .portal-themed .fy-media-shell .wi-card {
    padding: 12px 14px;
  }
  .portal-themed .fy-media-shell .wi-coupon {
    align-items: stretch;
  }
  .portal-themed .fy-media-shell .wi-card .wi-coupon-copy {
    min-width: 70px;
  }
  .portal-themed .fy-media-floating-action {
    top: 10px;
    right: 10px;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
  }
  .portal-themed .fy-media-floating-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .portal-themed .fy-media-floating-action svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }
  .portal-themed .fy-media-shell .wi-card h4 {
    font-size: 20px;
  }
  .portal-themed .fy-media-summary {
    display: grid;
    gap: 10px;
    padding: 10px 2px 0;
  }
  .portal-themed .fy-media-titleblock h1 {
    font-size: 20px;
    line-height: 1.12;
  }
  .portal-themed .fy-media-host {
    margin-top: 6px;
    gap: 8px;
  }
  .portal-themed .fy-media-avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  .portal-themed .fy-media-host strong { font-size: 12.5px; }
  .portal-themed .fy-media-host em { display: none; }
  .portal-themed .fy-media-actions {
    justify-content: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .portal-themed .fy-media-action,
  .portal-themed .fy-media-cta-form,
  .portal-themed .fy-media-cta-form .fy-media-action {
    width: 100%;
  }
  .portal-themed .fy-media-cta-form {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
  }
  .portal-themed .fy-media-cta-note {
    max-width: none;
  }
  .portal-themed .fy-media-chat {
    min-height: 0;
    height: min(46vh, 420px);
    height: min(46dvh, 420px);
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    border-radius: 18px 18px 8px 8px;
  }
  .portal-themed .fy-media-chat-grip { display: block; }
  .portal-themed .fy-media-chat-head {
    padding: 8px 12px;
  }
  .portal-themed .fy-media-shell:not(.chat-open) .fy-media-chat-list,
  .portal-themed .fy-media-shell:not(.chat-open) .fy-media-chat-form,
  .portal-themed .fy-media-shell:not(.chat-open) .fy-media-chat-head p {
    display: none;
  }
  .portal-themed .fy-media-shell:not(.chat-open) .fy-media-chat {
    height: 58px;
    min-height: 58px;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  .portal-themed .fy-media-popups {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 40;
    width: auto;
    max-height: min(38vh, 260px);
    max-height: min(38dvh, 260px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    gap: 8px;
    padding: 0;
  }
  .portal-themed .fy-media-popups > * {
    pointer-events: auto;
  }
  .portal-themed .fy-media-shell .wi-card {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 10px 12px 12px;
    border-radius: 10px;
    box-shadow: 0 14px 34px -20px rgba(10,8,6,.65);
    backdrop-filter: blur(18px);
  }
  .portal-themed .fy-media-shell .wi-card h4 {
    margin: 0 42px 6px 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.18;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .portal-themed .fy-media-shell .wi-card p {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .portal-themed .fy-media-shell .wi-card button,
  .portal-themed .fy-media-shell .wi-card a {
    min-height: 44px;
    border-radius: 8px;
    font-size: 12.5px;
  }
  .portal-themed .fy-media-shell .wi-coupon {
    gap: 8px;
    padding: 7px 8px;
    margin: 0 0 8px;
    border-radius: 8px;
  }
  .portal-themed .fy-media-shell .wi-coupon small {
    font-size: 9px;
  }
  .portal-themed .fy-media-shell .wi-coupon strong {
    font-size: 13px;
    letter-spacing: .06em;
  }
  .portal-themed .fy-media-shell .wi-card .wi-coupon-copy {
    min-width: 74px;
    min-height: 44px;
    padding: 0 10px;
  }
  .portal-themed .fy-media-shell .wi-offer .wi-offer-cta {
    min-height: 44px;
  }
  .portal-themed .fy-media-shell .wi-card .wi-close {
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 8px;
    font-size: 20px;
  }
  .portal-themed .fy-media-shell .wi-opts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .portal-themed .fy-media-shell .wi-card textarea {
    min-height: 66px;
    margin-bottom: 8px;
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .portal-themed .fy-media-has-chat .fy-media-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 36vw);
    align-items: stretch;
    height: calc(100vh - 48px);
    height: calc(100dvh - 48px);
    padding: 6px 8px 8px;
    gap: 8px;
  }
  .portal-themed .fy-media-summary {
    display: none;
  }
  .portal-themed .fy-media-stage {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  .portal-themed .fy-media-chat {
    min-height: 0;
    height: 100%;
    border-radius: 8px;
  }
  .portal-themed .fy-media-chat-grip { display: none; }
  .portal-themed .fy-media-chat-head {
    padding: 7px 9px;
  }
  .portal-themed .fy-media-chat-head h2 {
    font-size: 11px;
  }
  .portal-themed .fy-media-chat-head p {
    display: none;
  }
  .portal-themed .fy-media-chat-list {
    padding: 10px;
    gap: 8px;
  }
  .portal-themed .fy-media-chat-form {
    padding: 8px;
    gap: 8px;
  }
  .portal-themed .fy-media-chat-form input,
  .portal-themed .fy-media-chat-form button {
    height: 38px;
  }
  .portal-themed .fy-media-floating-action {
    top: 8px;
    right: 8px;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
  }
  .portal-themed .fy-media-floating-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .portal-themed .fy-media-floating-action svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

.portal-themed .fy-media-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--ms-bg);
}
.portal-themed .fy-media-shell:fullscreen .fy-media-roombar {
  display: none;
}
.portal-themed .fy-media-shell:fullscreen .fy-media-layout {
  height: 100vh;
  max-width: none;
  padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: stretch;
}
.portal-themed .fy-media-shell:fullscreen .fy-media-stage {
  height: 100%;
  aspect-ratio: auto;
}
.portal-themed .fy-media-shell:fullscreen .fy-media-floating-action {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
}
.portal-themed .fy-media-shell:fullscreen .fy-media-main {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}
.portal-themed .fy-media-shell:fullscreen .fy-media-summary {
  display: none;
}
.portal-themed .fy-media-shell:fullscreen .fy-media-chat {
  height: 100%;
  min-height: 0;
  max-height: none;
  position: static;
}
.portal-themed .fy-media-shell:fullscreen:not(.chat-open) .fy-media-layout {
  grid-template-columns: minmax(0, 1fr);
}
.portal-themed .fy-media-shell:fullscreen:not(.chat-open) .fy-media-chat {
  display: none;
}

@media (max-width: 720px) {
  .portal-themed .fy-media-shell:fullscreen .fy-media-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .portal-themed .fy-media-shell:fullscreen .fy-media-chat {
    max-height: 42vh;
  }
}

@media (max-width: 920px) and (orientation: landscape) {
  .portal-themed .fy-media-shell:fullscreen .fy-media-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 34vw);
    grid-template-rows: 1fr;
  }
  .portal-themed .fy-media-shell:fullscreen .fy-media-chat {
    height: 100%;
    max-height: none;
  }
  .portal-themed .fy-media-shell:fullscreen .fy-media-floating-action {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-themed .fy-media-shell *,
  .portal-themed .fy-media-shell *::before,
  .portal-themed .fy-media-shell *::after {
    animation: none !important;
    transition: none !important;
  }
  .portal-themed .fy-media-floating-action:hover,
  .portal-themed .fy-media-floating-action:focus-visible {
    transform: none;
  }
}
