
/* Shared policy dialog; also loaded inside its isolated shadow root. */
.site-policy-dialog {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  color: #111827;
  background: #fff;
  font: 16px/1.6 system-ui, sans-serif;
}
.site-policy-dialog::backdrop { background: rgb(15 23 42 / 55%); }
.site-policy-dialog h2 { margin: 0 0 16px; font-size: 20px; }
.site-policy-dialog .site-policy-body {
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.site-policy-dialog .site-policy-close { margin-top: 20px; }
.site-policy-dialog :focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (max-width: 480px) {
  .site-policy-dialog { padding: 20px; }
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #0d9488;
    --bg: #f3f4f6;
    --text: #111827;
    --muted: #6b7280;
  
    /* 이메일 인증 / 헤더 로그인 hover 공통 색 */
    --mint-bg: #e7f8f3;
    --mint-hover: #dff4ed;
    --mint-border: #c3e6dd;
  }
  
  /* RESET -------------------------------------------------- */
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html,
  body {
    height: 100%;
  }
  
  body {
    font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    overflow: auto;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    font: inherit;
    cursor: pointer;
  }
  
  /* 공통 레이아웃 -------------------------------------------------- */
  
  .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  svg {
    max-width: 100%;
    max-height: 100%;
  }
  
  /* HEADER -------------------------------------------------- */
  
  .landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
  }
  
  .header-inner {
    height: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
  }

  .header-logo-mark {
    width: 46.925px;
    height: 24px;
    flex: 0 0 auto;
  }

  .header-logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .header-logo-wordmark {
    width: 178.03px;
    height: 20.776px;
    flex: 0 0 auto;
  }

  .header-logo-wordmark svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .header-actions {
    display: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .header-login-btn {
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #1849a9;
    color: #1849a9;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    transition: background-color 0.2s ease;
  }

  .header-login-btn:hover {
    background: #f3f4f7;
  }

  .header-mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px;
    border: 0;
    background: transparent;
  }

  .header-mobile-menu svg {
    width: 24px;
    height: 24px;
  }

  /* Motion demo -------------------------------------------------- */

  .motion-body {
    background: #0b1220;
    color: #e5e7eb;
    overflow: hidden;
  }

  /* Mobile portrait pages -------------------------------------------------- */

  body.m-page {
    font-size: 16px;
    background: #f8fafc;
    color: #0f172a;
  }

  .m-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
  }

  .m-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
  }

  .m-header-title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
  }

  .m-header-btn {
    padding: 8px 12px;
    font-size: 14px;
    min-height: 36px;
  }

  .m-header-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 30px;
  }

  .m-header-icon.more-icon {
    padding: 0;
  }

  .m-header-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
  }

  .m-header-more-icon {
    width: 18px;
    height: 18px;
    color: #475569;
  }

  .m-menu-open {
    overflow: hidden;
  }

  .mheader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 60;
  }

  .mheader-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .mheader-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(82vw, 320px);
    background: #ffffff;
    box-shadow: -16px 0 32px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
  }

  .mheader-overlay.open .mheader-panel {
    transform: translateX(0);
  }

  .mheader-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e7eb;
  }

  .mheader-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
  }

  .mheader-close {
    border: 0;
    background: transparent;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
  }

  .mheader-close svg {
    width: 20px;
    height: 20px;
  }

  .mheader-menu {
    list-style: none;
    padding: 8px 0 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mheader-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    border: 0;
    text-align: left;
  }

  .mheader-menu-item svg {
    width: 18px;
    height: 18px;
    color: #2563eb;
  }

  .mheader-menu-item.secondary svg {
    color: #64748b;
  }

  .m-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .m-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  .m-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .m-section-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
  }

  .m-hero {
    border-radius: 20px;
    padding: 20px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
  }

  .m-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .m-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .m-hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .m-hero-brand {
    font-size: 18px;
    font-weight: 700;
    color: #21448f;
    margin-bottom: 6px;
  }

  .m-hero-sub {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
  }

  .m-hero-btn {
    width: 100%;
    margin-bottom: 16px;
  }

  .m-hero-preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .m-hero-preview img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
  }

  .m-hero-media {
    display: grid;
    gap: 12px;
    margin-top: 12px;
  }

  .m-hero-chat {
    margin-top: 16px;
  }

  .m-hero-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.25);
  }

  .m-hero-main img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
  }

  .m-hero-live {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }

  .m-hero-sublist {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .m-hero-subitem {
    position: relative;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: transparent;
  }

  .m-hero-subitem img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    filter: blur(2px) brightness(0.85);
  }

  .m-hero-subitem.is-active {
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
  }

  .m-hero-subitem.is-active img {
    filter: none;
  }

  .m-hero-sub-label {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    width: 100%;
    text-align: center;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.6);
  }

  .m-chat-section {
    background: #ffffff;
  }

  .m-chat-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  }

  .m-chat-header {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
  }

  .m-chat-count {
    color: #6b7280;
    font-weight: 600;
  }

  .m-chat-body {
    padding: 12px 14px;
    display: grid;
    gap: 10px;
  }

  .m-chat-item {
    display: flex;
    gap: 10px;
  }

  .m-chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #4a9b8e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
  }

  .m-chat-avatar-blue {
    background: #5b7c99;
  }

  .m-chat-bubble {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .m-chat-bubble-question {
    background: #fff7ed;
    border: 1px solid #fed7aa;
  }

  .m-chat-meta {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
  }

  .m-chat-text {
    color: #111827;
  }

  .m-chat-input {
    padding: 10px 14px;
    border-top: 1px solid #e5e7eb;
    color: #9ca3af;
    font-size: 12px;
  }

  .m-chat-file {
    margin-top: 8px;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
  }

  .m-chat-file-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
  }

  .m-chat-file-size {
    font-size: 11px;
    color: #6b7280;
  }

  .m-card-list {
    display: grid;
    gap: 12px;
  }

  .m-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    background: #f9fafb;
  }

  .m-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .m-card-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
  }

  .m-card-btn {
    width: 100%;
  }

  .m-full {
    width: 100%;
  }

  .m-search input {
    width: 100%;
  }

  .mevent-page .filter-input {
    padding-left: 14px;
  }

  .mevent-page .date-input {
    padding-left: 12px;
  }

  .m-filter-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .m-filter-row .date-input {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
  }

  .m-filter-sep {
    color: #9ca3af;
    font-size: 14px;
    flex: 0 0 12px;
    text-align: center;
  }

  .m-chip-group-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    background: #ffffff;
  }

  .m-chip-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 8px;
  }

  .m-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
  }

  .m-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 12px;
  }

  .m-chip input {
    accent-color: #2563eb;
  }

  .mevent-page .layout,
  .mevent-page .sidebar,
  .mevent-page .toolbar {
    display: none;
  }

  .mevent-page .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mevent-page .event-card {
    min-height: auto;
    max-width: 100%;
  }

  .mbroadcast-page .header-nav,
  .mplayrec-page .header-nav {
    display: none;
  }

  .mbroadcast-page .broadcast-main,
  .mplayrec-page .broadcast-main {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .mbroadcast-page .video-panel,
  .mplayrec-page .video-panel {
    width: 100%;
  }

  .mbroadcast-page .side-panel,
  .mplayrec-page .side-panel {
    width: 100%;
    max-width: none;
  }

  .mbroadcast-page .session-meta,
  .mplayrec-page .session-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .mbroadcast-page .video-stage,
  .mplayrec-page .video-stage {
    width: 100%;
  }

  .motion-main {
    min-height: 100vh;
    padding: 24px 0 32px;
  }

  .motion-stage {
    position: relative;
    min-height: calc(100vh - 80px);
    margin: 0 24px;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.2), transparent 55%),
      radial-gradient(circle at 20% 70%, rgba(20, 184, 166, 0.25), transparent 60%),
      #0b1220;
    display: grid;
    place-items: center;
  }

  .motion-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .motion-grid {
    background-image:
      linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.5;
    animation: gridShift 18s linear infinite;
  }

  .motion-glow {
    filter: blur(90px);
    opacity: 0.7;
  }

  .motion-glow-a {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8), transparent 70%);
    animation: floatA 12s ease-in-out infinite;
  }

  .motion-glow-b {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.8), transparent 70%);
    animation: floatB 14s ease-in-out infinite;
  }

  .motion-glow-c {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.6), transparent 70%);
    animation: floatC 16s ease-in-out infinite;
  }

  .motion-orbit {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    animation: orbitSpin 26s linear infinite;
  }

  .orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
  }

  .orbit-ring-inner {
    inset: 90px;
    border-color: rgba(148, 163, 184, 0.2);
  }

  .orbit-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  }

  .orbit-dot-1 { top: 40px; left: 50%; transform: translateX(-50%); }
  .orbit-dot-2 { right: 80px; bottom: 110px; background: #f97316; box-shadow: 0 0 12px rgba(249, 115, 22, 0.8); }
  .orbit-dot-3 { left: 70px; bottom: 140px; background: #a78bfa; box-shadow: 0 0 12px rgba(167, 139, 250, 0.8); }

  .motion-card {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 32px 36px;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(8px);
    max-width: 560px;
  }

  .motion-eyebrow {
    letter-spacing: 0.3em;
    font-size: 12px;
    color: #93c5fd;
    font-weight: 700;
    margin-bottom: 12px;
  }

  .motion-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 10px;
  }

  .motion-sub {
    font-size: 16px;
    color: #cbd5f5;
    margin-bottom: 20px;
  }

  .motion-bars {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    height: 56px;
    align-items: end;
  }

  .motion-bars span {
    display: block;
    height: 20%;
    border-radius: 999px;
    background: linear-gradient(180deg, #38bdf8, #6366f1);
    animation: barPulse 1.4s ease-in-out infinite;
  }

  .motion-bars span:nth-child(2n) { animation-delay: 0.1s; }
  .motion-bars span:nth-child(3n) { animation-delay: 0.2s; }
  .motion-bars span:nth-child(4n) { animation-delay: 0.3s; }

  .motion-ticker {
    position: absolute;
    bottom: 18px;
    left: 0;
    right: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0.7;
  }

  .motion-ticker-track {
    display: inline-flex;
    gap: 40px;
    font-weight: 700;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: #94a3b8;
    animation: tickerMove 16s linear infinite;
  }

  @keyframes gridShift {
    0% { transform: translateY(0); }
    100% { transform: translateY(120px); }
  }

  @keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  @keyframes floatA {
    0%, 100% { transform: translate(-10%, -6%); }
    50% { transform: translate(6%, 8%); }
  }

  @keyframes floatB {
    0%, 100% { transform: translate(12%, 10%); }
    50% { transform: translate(-8%, -6%); }
  }

  @keyframes floatC {
    0%, 100% { transform: translate(-8%, 10%); }
    50% { transform: translate(8%, -4%); }
  }

  @keyframes barPulse {
    0%, 100% { height: 20%; opacity: 0.6; }
    50% { height: 100%; opacity: 1; }
  }

  @keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  @media (max-width: 900px) {
    .motion-orbit { width: 360px; height: 360px; }
    .motion-stage { margin: 0 16px; }
    .motion-card { padding: 26px 24px; }
  }

  @media (max-width: 600px) {
    .motion-main { padding: 16px 0 24px; }
    .motion-stage { min-height: calc(100vh - 120px); }
    .motion-bars { height: 40px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .motion-grid,
    .motion-glow,
    .motion-orbit,
    .motion-bars span,
    .motion-ticker-track {
      animation: none;
    }
  }
  
  /* 버튼 공통 -------------------------------------------------- */
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: -0.01em;
    transition:
      background 0.15s ease,
      color 0.15s ease,
      border-color 0.15s ease,
      transform 0.12s ease,
      box-shadow 0.12s ease;
  }
  
  .btn:active {
    transform: translateY(1px);
    box-shadow: none;
  }
  
  /* 기본 outline 버튼(다른 페이지에서도 사용 가능) */
  .btn-outline {
    background: #ffffff;
    color: #4b5563;
    border-color: #e5e7eb;
  }
  
  .btn-outline:hover {
    background: #f3f4f6;
    color: #111827;
  }
  
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled,
.btn-primary:disabled:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}
  
  @media (min-width: 640px) {
    .header-inner {
      padding-left: 24px;
      padding-right: 24px;
    }
  }

  @media (min-width: 768px) {
    .header-actions {
      display: flex;
    }

    .header-mobile-menu {
      display: none;
    }
  }

  @media (min-width: 1024px) {
    .header-inner {
      padding-left: 80px;
      padding-right: 80px;
    }
  }
  
  /* MAIN -------------------------------------------------- */
  
  .section-muted {
    background: transparent;
    width: 100%;
    min-height: calc(100vh - 80px);
    padding-top: 48px;
    padding-bottom: 96px;
  }
  
  .section-muted > .container {
    width: 100%;
    max-width: 1280px;
  }
  
  /* SIGNUP WRAPPER ------------------------------------------ */
  
  .signup-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  
  .signup-header {
    text-align: center;
  }
  
  .signup-title {
    font-size: clamp(32px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
    color: #111827;
  }
  
  .signup-title span {
    color: #111827;
  }
  
  .signup-sub {
    font-size: 18px;
    color: #4b5563;
    letter-spacing: -0.01em;
  }
  
  /* 상단 탭 (로그인 / 회원가입) ------------------------------ */
  
.signup-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.auth-page-title {
  font-size: 32px;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: #111827;
  text-align: center;
}
  
  .signup-main-top-tabs {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  /* 공통 탭 바 */
  .auth-tabs {
    display: flex;
    padding: 4px;
    background: #eef0f5;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    gap: 0;
  }
  
  /* 상단 탭은 폭 넓게 */
  .signup-main-top-tabs .auth-tabs {
    width: 100%;
    max-width: 720px;
  }
  
  /* 카드 내부 탭 (일반 / 간편) ----------------------------- */
  
  .signup-subtabs {
    margin: 8px 0 18px;
    display: flex;
    justify-content: center;
  }
  
  .signup-subtabs .auth-tabs {
    width: 100%;
    max-width: 480px;
  }
  
  /* 공통 탭 버튼 스타일 */
  
  .auth-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    color: #4b5563;
    white-space: nowrap;
    transition:
      background 0.15s ease,
      color 0.15s ease,
      box-shadow 0.15s ease;
  }
  
  .auth-tab span {
    display: inline-block;
  }
  
  .auth-tab svg {
    width: 20px;
    height: 20px;
  }
  
  .auth-tab.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  }
  
  /* 카드 -------------------------------------------------- */
  
  .auth-card {
    padding: 32px 40px 30px;
  }
  
  .signup-card-header {
    margin-bottom: 12px;
  }
  
  .auth-card-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    letter-spacing: -0.03em;
  }
  
  .auth-card-sub {
    font-size: 17px;
    color: #6b7280;
    margin-bottom: 18px;
    text-align: center;
  }
  
  /* 폼 -------------------------------------------------- */
  
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
  
  .auth-label {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
  }
  
.auth-input-wrap {
  position: relative;
  width: 100%;
}

.auth-input-wrap svg {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.auth-input-wrap svg:not(.email-suffix-icon):not(.password-suffix-icon) {
  left: 14px;
}

.email-suffix-icon,
.password-suffix-icon {
  position: absolute;
  right: 12px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #10b981;
  pointer-events: none;
}

.auth-input-wrap svg.email-suffix-icon,
.auth-input-wrap svg.password-suffix-icon {
  color: #10b981;
}
  
.auth-input {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  background: #f9fafb;
  color: #111827;
}

#signup-email.auth-input, #signup-password-confirm.auth-input {
  padding-right: 52px;
}
  
.auth-input:focus {
  border-color: #1849a9;
  box-shadow: 0 0 0 3px rgba(24, 73, 169, 0.14);
  background: #f9fafb;
}

.auth-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
  background: #fff5f5;
}

.auth-input.success {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
  background: #f6fffb;
}
  
  .auth-input::placeholder {
    color: var(--muted-foreground);
    font-weight: 400;
  }
  
  textarea.auth-input {
    resize: none;
    min-height: 96px;
    padding: 10px 12px;
    background: #f9fafb;
  }
  
  /* select ------------------------------------------- */
  
  .select-wrap {
    position: relative;
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    box-sizing: border-box;
    overflow: hidden;
    transition:
      border-color 0.15s ease,
      box-shadow 0.15s ease,
      background-color 0.15s ease;
  }

  .select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #6b7280;
    border-bottom: 1.5px solid #6b7280;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }
  
  .select-wrap:focus-within {
    border-color: #1849a9;
    box-shadow: 0 0 0 3px rgba(24, 73, 169, 0.14);
    background: #ffffff;
  }
  
  .select-input {
    width: 100%;
    border: none;
    min-height: 46px;
    padding: 0 40px 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    background: transparent;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #111827;
  }

  .select-input.is-placeholder {
    color: var(--muted-foreground);
  }

  .select-input option {
    color: #111827;
  }
  
  /* row 레이아웃 ----------------------------------- */
  
  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  @media (min-width: 768px) {
    .form-row-2 {
      grid-template-columns: 1fr 1fr;
    }
  }
  
.email-row {
  display: grid;
  grid-template-columns: 5.6fr 1fr;
  gap: 8px;
  align-items: stretch;
  }
  
  @media (max-width: 600px) {
  .email-row {
    grid-template-columns: 1fr;
  }
}

.email-verify-row {
  margin-top: 8px;
  display: none;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.email-verify-container {
  display: none;
}

.email-verify-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

/* 이메일 인증발송 버튼 ------------------------------ */

/* 이메일 인증발송 버튼 — 좁은 폭 + 초록 호버 */
.email-send-btn {
    height: 46px;
    padding: 0 24px;
    min-width: 132px;
    border-radius: 10px;
    border: 2px solid #1849a9;
    background: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 8px;
    color: #1849a9;
    white-space: nowrap;                           /* 줄바꿈 방지 */
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      color 0.15s ease;
  }
  
  .email-send-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: currentColor;
  }
  
.email-send-btn:hover {
  background: #edf2f6;
  border-color: #1849a9;
  color: #1849a9;
}

.email-send-btn:hover svg {
  stroke: currentColor;
}

.email-send-btn:disabled,
.email-send-btn:disabled:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.email-send-btn.verified,
.email-send-btn.verified:hover,
.email-send-btn.verified:active,
.email-send-btn.verified:focus {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  pointer-events: none;
  transition: none;
  box-shadow: none;
}

.email-verify-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.email-timer {
  font-size: 17px;
  color: #ef4444;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-field-hint {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #6b7280;
}

.field-error {
  margin-top: 6px;
  font-size: 14px;
  color: #ef4444;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  z-index: 2000;
}

.success-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 630px);
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 26px 26px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  display: none;
  z-index: 2001;
}

.success-modal h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.success-modal p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
  font-size: 15px;
}

.success-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.success-close:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.success-banner {
  margin-top: 14px;
  padding: 12px 14px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  color: #166534;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
  
  .email-verify-btn {
    height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    border: 0;
    background: #1849a9;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  }
  
  .email-verify-btn:hover {
    background: #0a3176;
  }
  
  .email-verify-btn:active {
    transform: translateY(1px);
  }

  .email-verify-btn:disabled,
  .email-verify-btn:disabled:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
  }
  
  /* 약관 ---------------------------------------------- */
  
  .terms-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    color: #111827;
  }
  
  .terms-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
  }

  .terms-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 8px;
  }

  .terms-item label {
    flex: 1;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #111827;
    cursor: pointer;
  }

  .terms-optional-label {
    line-height: 1.625;
  }
  
  .terms-item input {
    margin-top: 4px;
    width: 16px;
    height: 16px;
  }
  
  .terms-item span.badge {
    font-size: 16px;
    color: #ef4444;
    margin-left: 2px;
  }
  
  .terms-item span.badge.optional {
    color: var(--muted-foreground);
  }
  
  .terms-link {
    color: var(--primary);
    cursor: pointer;
    margin-left: 0;
    font-weight: 400;
    font-size: 16px;
    white-space: nowrap;
    border: 0;
    background: transparent;
    padding: 0;
  }
  
  .terms-link:hover {
    text-decoration: underline;
  }
  
  /* 폼 하단 ---------------------------------------------- */
  
.auth-submit {
  margin-top: 18px;
}

.auth-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-actions .btn {
  width: 100%;
  border-radius: 12px;
  min-height: 52px;
  justify-content: center;
  padding: 0 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: none;
}

.auth-cancel-btn {
  border: 2px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

.auth-cancel-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.auth-actions .btn-primary {
  border: 0;
  background: var(--blue-600);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(24, 73, 169, 0.18);
}

.auth-actions .btn-primary:hover {
  background: var(--blue-600);
}

.auth-actions .btn-primary:active {
  background: #0a3176;
}

.auth-actions .btn-primary svg {
  color: #ffffff;
}

.auth-actions .btn-primary:disabled,
.auth-actions .btn-primary:disabled:hover {
  background: #b2ddff;
  color: var(--blue-400);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.auth-actions .btn-primary:disabled svg,
.auth-actions .btn-primary:disabled:hover svg {
  color: var(--blue-400);
  opacity: 1;
}
  
  .auth-bottom {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
    text-align: center;
  }
  
  .auth-bottom a {
    color: var(--primary);
    font-weight: 500;
  }
  
  /* FOOTER -------------------------------------------------- */
  
  footer {
    background: #111827;
    color: #ffffff;
    margin-top: 0;
  }

  .mevent-page .footer-main {
    padding: 3rem 12px;
  }
  
  .footer-banner {
    background: linear-gradient(to right, #3b82f6, #14b8a6);
    padding: 16px 0;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.01em;
    font-size: 18px;
  }
  
  .footer-main {
    padding: 48px 0 34px;
  }
  
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  @media (min-width: 768px) {
    .footer-grid {
      grid-template-columns: 2fr 1fr;
    }
  }
  
  .footer-logo-box {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #4b5563;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 22px;
  }
  
  .footer-desc {
    color: #d1d5db;
    font-size: 17px;
    margin-bottom: 20px;
    max-width: 480px;
    letter-spacing: -0.01em;
  }
  
  .footer-links {
    display: flex;
    gap: 18px;
    font-size: 16px;
    color: #9ca3af;
    margin-top: 28px;
  }
  
  .footer-links a:hover {
    color: var(--primary);
  }
  
  .contact-title {
    font-size: 21px;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  
  .contact-item {
    display: flex;
    gap: 10px;
    font-size: 17px;
    color: #e5e7eb;
    margin-bottom: 10px;
    align-items: center;
  }
  
  .contact-item span.label {
    min-width: 46px;
    color: #9ca3af;
    font-size: 16px;
  }
  
.footer-bottom {
  border-top: 1px solid #374151;
  padding: 20px 0 12px;
  font-size: 15px;
  color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
  }
  
  @media (min-width: 768px) {
    .footer-bottom {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  }
  
  /* TOAST -------------------------------------------------- */
  
  .toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    min-width: 260px;
    max-width: 360px;
    padding: 14px 18px;
    background: #ffffff;
    color: #111827;
    font-size: 0.9rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.45);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .toast.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  .toast-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #34d399;
  }
  
  .toast-message {
    line-height: 1.5;
  }
  
  /* 유틸 -------------------------------------------------- */
  
  .flex {
    display: flex;
    align-items: center;
  }
  
  .space-x-4 > * + * {
    margin-left: 16px;
  }
  
  .text-gray-400 {
    color: #9ca3af;
  }
  
  .hover\:text-primary:hover {
    color: var(--primary);
  }
  
  .transition-colors {
    transition-property: color;
  }
  
  .duration-200 {
    transition-duration: 0.2s;
  }
  
  .footer-main svg {
    vertical-align: middle;
  }
  
  .footer-main .flex svg {
    width: 22px;
    height: 22px;
    opacity: 0.9;
  }

  .footer-v3 .footer-v3-banner {
    margin-top: 96px;
  }

  .footer-v3 .footer-v3-banner-inner {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .footer-v3 .footer-v3-body {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .footer-v3 .footer-v3-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-v3 .footer-v3-brand {
    max-width: none;
  }

  .footer-v3 .footer-v3-brand > p {
    margin: 0 0 24px;
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.625;
    letter-spacing: -0.01em;
  }

  .footer-v3 .footer-v3-contact-wrap {
    display: block;
    justify-content: flex-start;
  }

  .footer-v3 .footer-v3-contact-list {
    display: grid;
    gap: 12px;
  }

  .footer-v3 .footer-v3-bottom {
    border-top: 1px solid #374151;
    margin-top: 48px;
    padding-top: 32px;
  }

  .footer-v3 .footer-v3-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .footer-v3 .footer-v3-policy-links {
    display: flex;
    gap: 24px;
  }

  @media (min-width: 768px) {
    .footer-v3 .footer-v3-banner {
      margin-top: 128px;
    }

    .footer-v3 .footer-v3-body {
      padding-top: 64px;
      padding-bottom: 64px;
    }

    .footer-v3 .footer-v3-grid {
      grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }

    .footer-v3 .footer-v3-contact-wrap {
      display: flex;
      justify-content: flex-end;
    }

    .footer-v3 .footer-v3-bottom-inner {
      flex-direction: row;
      gap: 16px;
    }
  }
  
  /* REMIND PAGE (계정 찾기) ---------------------------------- */
  
  .remind-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 72px;
    background: linear-gradient(135deg, #eef4ff 0%, #ffffff 45%, #f2fbff 100%);
  }
  
  .remind-container {
    width: 100%;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  
  .remind-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 16px;
    padding-left: 6px;
    transition: color 0.15s ease;
  }
  
  .remind-back-link:hover {
    color: var(--primary);
  }
  
  .remind-back-link svg {
    width: 20px;
    height: 20px;
  }
  
  .remind-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 34px 38px 40px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  
  .remind-badge {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #eff3fa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .remind-badge svg {
    width: 30px;
    height: 30px;
  }
  
  .remind-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: -0.02em;
  }
  
  .remind-sub {
    color: #6b7280;
    font-size: 17px;
    margin-top: -6px;
  }
  
  .remind-tabs {
    width: 100%;
    max-width: 440px;
    margin: 4px auto 6px;
    padding: 5px;
    background: #f0f2f7;
    border-color: #e3e7ef;
  }
  
  .remind-tabs .auth-tab {
    height: 48px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    color: #4b5563;
  }
  
  .remind-tabs .auth-tab svg {
    width: 16px;
    height: 16px;
  }
  
  .remind-tabs .auth-tab.active {
    color: #102a61;
    box-shadow: 0 6px 20px rgba(36, 77, 159, 0.16);
  }
  
  .remind-info {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 10px;
    background: #e8f0ff;
    border: 1px solid #cfdbfa;
    color: #1f3156;
    font-size: 15px;
    line-height: 1.5;
  }
  
  .remind-info svg {
    width: 16px;
    height: 16px;
    color: #244d9f;
    margin-top: 2px;
    flex-shrink: 0;
  }
  
  .remind-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .remind-field {
    width: 100%;
  }
  
  .remind-input svg {
    color: #c4cad7;
    width: 18px;
    height: 18px;
  }
  
  .remind-input .auth-input {
    background: #f8fafc;
  }
  
  .remind-phone-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: stretch;
  }
  
  .remind-send-btn {
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    background: #f9fafb;
    border-color: #d6dae3;
    color: #1f2937;
    font-size: 15px;
  }
  
  .remind-send-btn svg {
    width: 16px;
    height: 16px;
    stroke: #4b5563;
  }
  
  .remind-send-btn:hover {
    background: #eef2f7;
    border-color: #cfd4df;
    color: #0f172a;
  }
  
  @media (max-width: 640px) {
    .remind-card {
      padding: 28px 22px 32px;
      border-radius: 14px;
    }
  
    .remind-title {
      font-size: 24px;
    }
  
    .remind-sub {
      font-size: 15px;
    }
  
    .remind-tabs .auth-tab {
      height: 46px;
      font-size: 15px;
    }
  
    .remind-phone-row {
      grid-template-columns: 1fr;
    }
  
    .remind-send-btn {
      width: 100%;
      justify-content: center;
    }
  }
:host .playback-notice {
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #172033;
  font: 16px/1.6 sans-serif;
  overflow-wrap: anywhere;
}
:host .playback-notice[hidden] { display: none; }
:host .playback-notice p { margin: 0 0 12px; }
:host .playback-notice .btn { cursor: pointer; min-height: 44px; padding: 8px 16px; }
:host .playback-notice .btn:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (max-width: 480px) {
  :host .playback-notice { padding: 12px; font-size: 14px; }
}
/* Policy signup and rights requests */
.policy-form-page { max-width: 42rem; margin: 3rem auto; padding: 1.5rem; line-height: 1.7; }
.policy-form-page h1, .policy-form-page h2 { margin: 1.5rem 0 1rem; }
.policy-form-page p { margin: 1rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.policy-form-page form { display: grid; gap: 1rem; }
.policy-form-page input:not([type="checkbox"]), .policy-form-page select, .policy-form-page textarea {
  width: 100%; padding: .75rem; border: 1px solid #cbd5e1; border-radius: .5rem; font: inherit; box-sizing: border-box;
}
.policy-form-page button:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 480px) { .policy-form-page { margin: 1rem auto; padding: 1rem; } }

/* Social signup confirmation: reuse the standard signup fields and actions. */
.consent-page {
  --blue-600: #1470ef;
  --blue-400: #53b1fd;
  --muted-foreground: #6b7280;
  background: #f9fafb;
}
.consent-page .header-actions { display: flex; }
.consent-page .signup-wrapper { max-width: 640px; }
.consent-page .signup-main { gap: 28px; }
.consent-page .signup-sub { margin-top: 8px; font-size: 17px; }
.consent-page .consent-card {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, #f0fdfa80, #fff 45%);
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 8%), 0 8px 10px -6px rgb(15 23 42 / 6%);
}
.consent-page .auth-form { gap: 20px; }
.consent-page .auth-input { font: inherit; font-size: 16px; }
.consent-required { color: #ef4444; font-size: 13px; }
.consent-email-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 16px;
}
.consent-email-field svg { flex: 0 0 20px; color: #6b7280; }
.consent-email-field p { min-width: 0; overflow-wrap: anywhere; }
.consent-field-hint { font-size: 13px; color: #6b7280; }
.consent-page .consent-terms {
  min-width: 0;
  margin-top: 4px;
  padding-top: 16px;
  border: 0;
  gap: 12px;
}
.consent-terms legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 16px;
  font-weight: 600;
}
.consent-page .terms-item { align-items: baseline; gap: 10px; }
.consent-page .terms-item input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue-600);
  cursor: pointer;
}
.consent-page .terms-copy { min-width: 0; align-items: baseline; }
.consent-page .terms-item label { padding: 6px 0; }
.consent-page .terms-link { min-height: 36px; padding: 4px; font-size: 14px; }
.consent-page .terms-item span.badge { font-size: 13px; white-space: nowrap; }
.consent-page .consent-optional { padding-top: 12px; border-top: 1px solid #e5e7eb; }
.consent-status {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.consent-page .auth-actions { margin-top: 0; }
.consent-page :focus-visible { outline: 3px solid #1470ef; outline-offset: 3px; }
@media (max-width: 640px) {
  .consent-page .section-muted { padding: 32px 0 48px; }
  .consent-page .section-muted > .container { padding: 0 16px; }
  .consent-page .signup-main { gap: 24px; }
  .consent-page .auth-page-title { font-size: 28px; }
  .consent-page .signup-sub { font-size: 15px; }
  .consent-page .consent-card { padding: 24px 20px; }
  .consent-page .terms-item label { font-size: 14px; }
  .consent-page .auth-actions .btn { font-size: 15px; }
  .consent-page .header-inner { height: 72px; min-height: 72px; }
  .consent-page .header-logo-mark { width: 35px; height: 18px; }
  .consent-page .header-logo-wordmark { width: 134px; height: 16px; }
  .consent-page .header-login-btn { height: 40px; padding: 0 12px; font-size: 14px; }
}

/* Password guidance spans both inputs on desktop. */
.signup-password-row > .auth-field-hint {
  margin: -10px 0 0;
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .signup-password-row > .auth-field { grid-row: 1; }
  .signup-password-row > .auth-field-hint { grid-row: 2; }
}

/* Account recovery: shared static pages, no external tracking. */
.recovery-main { max-width: 720px; margin: 0 auto; padding: 48px 16px; }
.recovery-card { background: #fff; border: 1px solid #dbe2ed; border-radius: 16px; padding: 32px; overflow-wrap: anywhere; }
.recovery-card h1 { font-size: 26px; margin: 24px 0; }
.recovery-tabs { display: flex; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid #dbe2ed; padding-bottom: 16px; }
.recovery-card label { display: block; font-weight: 600; margin: 20px 0 8px; }
.recovery-card input:not([type=checkbox]), .recovery-card select, .recovery-card textarea { display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 12px; border: 1px solid #a9b7ca; border-radius: 8px; font: inherit; }
.recovery-card button, .recovery-action { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid #1e3a5f; color: #fff; background: #1e3a5f; font: inherit; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.recovery-card button[type=submit], .recovery-action { width: 100%; margin-top: 20px; }
.recovery-card button:disabled { opacity: .55; cursor: wait; }
.recovery-card .recovery-toggle { margin-top: 8px; background: #fff; color: #1e3a5f; }
.recovery-card .recovery-error, #recoveryNotice { color: #b42318; }
.recovery-card [aria-invalid=true] { border-color: #b42318; }
.recovery-card a { text-underline-offset: 3px; }
.recovery-card .recovery-action { color: #fff; }
.recovery-card p { line-height: 1.7; }
.recovery-footer { text-align: center; padding: 24px 16px; }
.recovery-card :focus-visible { outline: 3px solid #4774bd; outline-offset: 3px; }
@media (max-width: 600px) {
  .recovery-main { padding: 24px 12px; }
  .recovery-card { padding: 20px 16px; }
  .recovery-card h1 { font-size: 22px; }
}

#askForm[hidden], #recoveryInquiry[hidden], .recovery-card [hidden] { display: none !important; }
.recovery-card { min-height: 0; height: auto; }

/* Public UI primitives: opt in per content root, never via a global button rule. */
.public-ui {
  --public-cta-bg: #143f75;
  --public-cta-hover: #082d50;
  --public-cta-focus: #8bbbe1;
}
/* Context specificity also covers the existing recovery skin without changing geometry. */
body.public-ui .public-cta,
body[data-recovery] .public-ui.public-surface #recoveryContent .public-cta {
  background: var(--public-cta-bg) !important;
  background-image: none !important;
  border-color: var(--public-cta-bg) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px #143f751a !important;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}
@media (hover: hover) and (pointer: fine) {
  body.public-ui .public-cta:not(:disabled):not([aria-disabled="true"]):hover,
  body[data-recovery] .public-ui.public-surface #recoveryContent .public-cta:not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--public-cta-hover) !important;
    border-color: var(--public-cta-hover) !important;
    color: #fff !important;
    box-shadow: 0 12px 30px #527bed55 !important;
  }
}
body.public-ui .public-cta:focus-visible,
body[data-recovery] .public-ui.public-surface #recoveryContent .public-cta:focus-visible {
  outline: 3px solid var(--public-cta-focus) !important;
  outline-offset: 3px !important;
}
body.public-ui .public-cta:disabled,
body.public-ui .public-cta[aria-disabled="true"],
body[data-recovery] .public-ui.public-surface #recoveryContent .public-cta:disabled,
body[data-recovery] .public-ui.public-surface #recoveryContent .public-cta[aria-disabled="true"] {
  background: #edf1f5 !important;
  border-color: #e2e7ed !important;
  color: #a0aab7 !important; /* Existing recovery skin marks primary text important. */
  box-shadow: none !important;
  opacity: 1;
  cursor: default;
}
/* Use native disabled buttons for blocked actions; aria-disabled alone is not an event guard. */
.public-ui .public-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: none;
  width: 64px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.public-ui .public-status--live { background: #b43c45; }
.public-ui .public-status--upcoming { background: #f5a000; }
.public-ui .public-status--recording { background: #526a85; }
/* Paint only the existing content box: no extra spacing, layers, or pointer interception. */
.public-ui.public-surface {
  background-color: #fff;
  background-image:
    radial-gradient(ellipse at 50% 10%, #effdf9 0%, #f6faff 40%, #fff 76%),
    radial-gradient(37.78% 26.03% at 50% 100%, #d2e9ff 0%, #effdf9 69.23%, #fff 100%) !important;
  background-position: top center, bottom center;
  background-size: 100% min(320px, 45%), 100% min(320px, 45%);
  background-repeat: no-repeat;
}
@media (prefers-reduced-motion: reduce) {
  body.public-ui .public-cta,
  body[data-recovery] .public-ui.public-surface #recoveryContent .public-cta { transition: none; }
}

/* Viewing pages: shared layout, isolated from account and administration pages. */
.watch-page.broadcast-page { height:auto; min-height:100vh; overflow:visible; background:#f8fafc; }
.watch-page.broadcast-page .session-meta,
.watch-page.broadcast-page .event-sponsors-video,
.watch-page.broadcast-page .broadcast-main { box-sizing:border-box; width:100%; max-width:1120px; margin-left:auto; margin-right:auto; }
.watch-page.broadcast-page .session-meta { padding:24px; background:transparent; border:0; align-items:flex-start; gap:16px; }
.watch-page.broadcast-page .session-title { font-size:22px; line-height:1.5; overflow-wrap:anywhere; }
.watch-page.broadcast-page .session-sub, .watch-page.broadcast-page .session-time { font-size:14px; line-height:1.7; overflow-wrap:anywhere; white-space:normal; }
.watch-page.broadcast-page .session-status { flex-wrap:wrap; justify-content:flex-end; }
.watch-page.broadcast-page .session-pill-live, .watch-page.broadcast-page .watch-replay-badge { width:64px; min-height:32px; padding:4px; flex-shrink:0; font-size:13px; font-weight:700; background:#b43c45; color:#fff; }
.watch-page.broadcast-page .watch-replay-badge { background:#526a85; }
.watch-page.broadcast-page .event-sponsors-video { margin-top:0; margin-bottom:24px; padding:0 24px; }
.watch-page.broadcast-page .broadcast-main { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; padding:0 24px 48px; flex:none; align-items:start; background:transparent; }
.watch-page.broadcast-page .video-panel { display:flex; min-height:0; height:auto; width:100%; padding:0; gap:0; border-radius:14px; align-self:start; background:#050505; overflow:hidden; }
.watch-page.broadcast-page .video-stage { width:100%; min-height:0; padding:0; flex:none; display:flex; flex-direction:column; aspect-ratio:auto; }
.watch-page.broadcast-page .video-frame.main-frame { position:relative; width:100%; height:auto; min-height:0; flex:none; aspect-ratio:16/9; padding:0; }
.watch-page.broadcast-page .broadcast-main-video { width:100%; height:100%; max-height:100%; aspect-ratio:16/9; }
.watch-page.broadcast-page .video-frame.main-frame.is-split { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.watch-page.broadcast-page .video-frame.main-frame.is-split .broadcast-main-video { height:auto; }
.watch-page.broadcast-page .broadcast-main-video video { width:100%; height:100%; object-fit:contain; }
.watch-page.broadcast-page .video-controls { position:static; display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding:12px; width:100%; background:#152335; opacity:1; transform:none; pointer-events:auto; }
.video-toggle-anchor { display:contents; }
.m-page .video-toggle-anchor { display:block; position:relative; width:100%; }
@media (max-width: 900px) {
  .video-toggle-anchor { display:block; position:relative; width:100%; }
}
/* The stage alone controls the center button, including before scripts initialize. */
.video-stage .main-play-toggle:not(.is-visible) { visibility:hidden; pointer-events:none; }
.video-stage .main-play-toggle.is-visible { visibility:visible; opacity:1; pointer-events:auto; }
/* Only initialized viewing controls auto-hide; keep their space to avoid layout shifts. */
.watch-page.broadcast-page .video-panel.controls-auto-hide :is(.video-controls, .player-overlay) {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.watch-page.broadcast-page .video-panel.controls-auto-hide.is-controls-visible :is(.video-controls, .player-overlay) {
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .watch-page.broadcast-page .video-panel.controls-auto-hide :is(.video-controls, .player-overlay) { transition: none; }
}
.watch-page.broadcast-page .video-modes, .watch-page.broadcast-page .video-actions { flex-wrap:wrap; gap:4px; min-width:0; }
.watch-page.broadcast-page .video-mode-btn, .watch-page.broadcast-page .video-action-btn { min-height:36px; font-size:12px; padding:6px 8px; }
.watch-page.broadcast-page .player-overlay { position:static; width:100%; padding:12px; background:#152335; opacity:1; transform:none; pointer-events:auto; }
.watch-page.broadcast-page .video-frame.sub-frame { position:static; width:100%; max-width:100%; max-height:none; margin:0; padding:10px; opacity:1; transform:none; pointer-events:auto; }
.watch-page.broadcast-page .broadcast-sub-list { max-width:100%; width:100%; margin:0; justify-content:flex-start; overflow-x:auto; }
.watch-page.broadcast-page .side-panel { min-width:0; width:100%; min-height:0; max-height:none; flex:none; border:1px solid #e0e6ed; border-radius:14px; overflow:hidden; background:#fff; position:relative; }
.watch-page.broadcast-page .side-tabs { flex:none; }
.watch-page.broadcast-page .chat-panel { display:flex; flex:1; min-height:0; max-height:none; overflow:hidden; }
.watch-page.broadcast-page .chat-body, .watch-page.broadcast-page .participants-body { flex:1; min-height:0; height:auto; overflow-y:auto; overscroll-behavior:contain; padding:16px 12px; }
.watch-page.broadcast-page .chat-input { flex:none; padding:12px; }
.watch-page.broadcast-page .chat-input-row { min-width:0; }
.watch-page.broadcast-page .chat-input-row textarea { min-width:0; font-size:14px; }
.watch-page.broadcast-page .chat-panel .chat-body .chat-item { grid-template-columns:28px minmax(0,1fr); gap:4px 8px; margin-bottom:16px; }
.watch-page.broadcast-page .chat-panel .chat-body .chat-item.is-me { grid-template-columns:minmax(0,1fr); }
.watch-page.broadcast-page .chat-avatar { width:28px; height:28px; font-size:13px; }
.watch-page.broadcast-page .chat-meta { display:flex; flex-wrap:wrap; gap:3px 6px; min-width:0; font-size:11px; }
.watch-page.broadcast-page .chat-name { font-size:13px; overflow-wrap:anywhere; }
.watch-page.broadcast-page .chat-time, .watch-page.broadcast-page .chat-role { font-size:11px; }
.watch-page.broadcast-page .chat-panel .chat-body .chat-bubble { min-width:0; max-width:100%; font-size:14px; line-height:1.5; padding:8px 10px; }
.watch-page.broadcast-page .chat-text, .watch-page.broadcast-page .chat-file-name, .watch-page.broadcast-page .chat-attachment-name span { font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; text-overflow:clip; }
.watch-page.broadcast-page .chat-file-meta, .watch-page.broadcast-page .chat-attachment-info { min-width:0; }
.watch-page.broadcast-page .video-frame.main-frame:fullscreen { width:100vw; height:100vh; aspect-ratio:auto; background:#000; }
.watch-page.broadcast-page .video-panel:fullscreen { width:100vw; height:100vh; justify-content:center; }
.watch-page.broadcast-page .video-panel:fullscreen .video-frame.main-frame { max-height:80vh; }
@media(max-width:900px) {
  .watch-page.broadcast-page .broadcast-main { grid-template-columns:minmax(0,1fr); gap:20px; padding:0 16px 40px; }
  .watch-page.broadcast-page .side-panel { height:420px; min-height:0; order:initial; }
  .watch-page.broadcast-page .chat-input-row textarea { font-size:16px; }
  .watch-page.broadcast-page .session-meta { padding:22px 16px; flex-wrap:wrap; }
  .watch-page.broadcast-page .session-title { font-size:18px; }
  .watch-page.broadcast-page .event-sponsors-video { padding:0 16px; }
  .watch-page.broadcast-page .video-mode-btn, .watch-page.broadcast-page .video-action-btn { font-size:11px; padding:6px; }
}
.watch-page.broadcast-page .session-pill-live.is-waiting { background:#64748b; }
.watch-page.broadcast-page .video-frame.main-frame .broadcast-main-video video { object-fit:contain; }
.watch-footer.footer-v3 { background:#193c62; color:#fff; }
.watch-footer.footer-v3 .footer-v3-brand img { width:auto; max-width:100%; height:64px; object-fit:contain; }
.watch-footer.footer-v3 .footer-v3-grid > div { min-width:0; overflow-wrap:anywhere; }
.watch-page.broadcast-page .chat-panel .chat-body .chat-item { display:grid; flex:none; min-width:0; width:100%; }
.watch-page.broadcast-page .chat-panel .chat-body .chat-bubble .chat-text { font-size:14px; overflow-wrap:anywhere; word-break:normal; }
.watch-page.broadcast-page .video-stage:fullscreen { width:100vw; height:100vh; background:#000; justify-content:center; }
.watch-page.broadcast-page .video-stage:fullscreen .video-frame.main-frame { max-height:85vh; }
.watch-page.mplayrec-page .video-stage:fullscreen {
  width:100%; height:100%; min-height:0; padding:0; border:0; border-radius:0;
}
.watch-page.mplayrec-page .video-stage:fullscreen .video-toggle-anchor,
.watch-page.mplayrec-page .video-stage:fullscreen .video-frame.main-frame {
  width:100%; height:100%; max-height:none; aspect-ratio:auto;
}
.watch-page.mplayrec-page .video-stage:fullscreen .video-controls {
  position:absolute; inset:auto 0 0; z-index:6; box-sizing:border-box;
  padding:12px max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background:rgba(21,35,53,.85);
}
.watch-page.broadcast-page .video-mode-btn, .watch-page.broadcast-page .video-action-btn { color:#e2e8f0; background:transparent; border-color:#334155; }
.watch-page.broadcast-page .video-mode-btn.is-active { background:#344b67; color:#fff; }
.watch-page.broadcast-page .side-tabs:has(>button:only-child) { grid-template-columns:1fr; }

/* Stage design alignment: scoped to schedule pages; data and entry states stay authoritative. */
.stage-shell .stage-topbar-inner { gap:24px; padding-top:18px; padding-bottom:18px; }
.stage-shell .stage-topbar-left { flex:1; min-width:0; }
.stage-shell .stage-top-text { flex:1; min-width:0; }
.stage-shell .stage-top-title { white-space:normal; overflow-wrap:anywhere; font-size:16px; font-weight:650; }
.stage-shell .stage-top-subtitle { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:12px; line-height:1.5; }
.stage-shell .stage-top-actions { flex:0 0 auto; }
.stage-shell .stage-nav-tabs .auth-tabs { width:auto; gap:6px; }
.stage-shell .stage-nav-tabs .auth-tab { flex:0 0 auto; min-height:48px; padding:10px 16px; border:1px solid #1c4daf; border-radius:10px; }
.stage-shell .stage-nav-tabs .auth-tab.active { background:#143f75; border-color:#143f75; color:#fff; }
.stage-shell .event-sponsors-slot { margin-top:28px; margin-bottom:0; }
.stage-shell .container.stage-content.schedule-view { padding-top:28px; }
.stage-shell .group-timetable { gap:26px; }
.stage-shell .group-timetable .stream-choice { padding:20px; }
.stage-shell .group-timetable .timetable-heading { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.stage-shell .group-timetable .timetable-session { position:relative; grid-template-columns:200px minmax(0,1fr) 100px; gap:24px; min-height:176px; padding:18px 24px; }
.stage-shell .group-timetable .timetable-session:first-of-type { border-top:0; }
.stage-shell .group-timetable .timetable-time { display:flex; align-items:center; gap:10px; font-size:18px; font-weight:400; white-space:nowrap; color:#131926; }
.stage-shell .timetable-icon { width:20px; height:20px; flex:none; color:#6b7280; }
.stage-shell .group-timetable .timetable-place { display:flex; align-items:flex-start; gap:8px; }
.stage-shell .timetable-place .timetable-icon { width:16px; height:18px; }
.stage-shell .group-timetable .timetable-actions { align-self:stretch; align-items:flex-end; justify-content:flex-end; padding-top:42px; padding-bottom:2px; }
.stage-shell .group-timetable .session-badge { position:absolute; top:18px; right:24px; width:64px; height:32px; padding:0; border-radius:7px; font-size:13px; line-height:1; font-weight:700; }
.stage-shell .group-timetable .session-badge.live { background:#b43c45; }
.stage-shell .group-timetable .session-badge.upcoming { background:#f5a000; }
.stage-shell .group-timetable .session-badge.replay { background:#526a85; }
.stage-shell .group-timetable .session-cta { width:auto; min-width:90px; min-height:48px; padding:12px 20px; border-radius:10px; font-weight:650; white-space:normal; word-break:keep-all; max-width:100%; }
.stage-shell .event-sponsor-carousel .sponsor-slide { min-height:160px; }
.stage-shell .event-sponsor-promo { padding:24px 28px; }
.stage-shell .event-sponsor-promo > .event-sponsor-image { background:#f5f8fc; padding:6px 12px; border-radius:12px; box-shadow:0 6px 18px #142d4514; }
.stage-shell .event-sponsor-promo > .event-sponsor-image img { height:76px; }
.stage-shell .stage-sponsor-brand { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.stage-shell .stage-sponsor-brand img:first-child { width:34px; height:22px; object-fit:contain; }
.stage-shell .stage-sponsor-brand img:last-child { width:125px; height:22px; object-fit:contain; }
.stage-shell .event-sponsor-copy h2 { font-size:20px; font-weight:750; letter-spacing:-.5px; color:#17395d; }
@media(max-width:768px) {
  main.stage-shell { padding-top:0; }
  .stage-shell .stage-topbar { background:#fff; border-bottom:1px solid #e1e5eb; }
  .stage-shell .stage-topbar-inner { flex-direction:row; align-items:center; gap:12px; padding-top:18px; padding-bottom:18px; }
  .stage-shell .stage-topbar-left { flex:0 0 100%; width:100%; }
  .stage-shell .stage-top-thumb { width:40px; height:40px; }
  .stage-shell .stage-top-title { font-size:15px; line-height:1.5; }
  .stage-shell .stage-top-subtitle { white-space:nowrap; font-size:12px; }
  .stage-shell .stage-top-actions { flex:0 0 100%; justify-content:flex-end; }
  .stage-shell .stage-nav-tabs { width:auto; }
  .stage-shell .stage-nav-tabs .auth-tab { min-height:38px; padding:8px 12px; font-size:13px; }
  .stage-shell .stage-nav-tabs .tab-icon svg { width:18px; height:18px; }
  .stage-shell .event-sponsors-slot { margin-top:22px; }
  .stage-shell .container.stage-content.schedule-view { padding-top:28px; }
  .stage-shell .group-timetable { gap:26px; }
  .stage-shell .group-timetable .stream-choice { padding:14px 12px; }
  .stage-shell .group-timetable .timetable-session { grid-template-columns:minmax(0,1fr) 100px; grid-template-rows:32px minmax(0,1fr); gap:14px; min-height:208px; padding:20px 16px; }
  .stage-shell .group-timetable .timetable-time { grid-column:1/-1; padding-right:68px; font-size:18px; min-height:32px; }
  .stage-shell .group-timetable .timetable-details { align-self:start; }
  .stage-shell .group-timetable .timetable-actions { padding-top:0; }
  .stage-shell .group-timetable .session-badge { right:16px; }
  .stage-shell .group-timetable .session-cta { min-width:90px; min-height:48px; padding:12px 20px; }
}
@media(max-width:600px) {
  .stage-shell .event-sponsor-carousel .sponsor-slide { min-height:210px; }
  .stage-shell .event-sponsor-promo { padding:18px 14px; align-content:space-between; }
  .stage-shell .event-sponsor-copy h2 { font-size:16px; }
  .stage-shell .stage-sponsor-brand img:last-child { width:150px; }
}
@media(max-width:360px) {
  .stage-shell .event-sponsor-carousel .sponsor-slide { min-height:230px; }
  .stage-shell .group-timetable .timetable-time { gap:6px; font-size:15px; }
}

/* Live admission: keep empty/error presentation inside the video area. */
.broadcast-page .video-stage.is-live-empty .main-play-toggle,
.broadcast-page .video-stage.is-live-empty .video-label { display: none !important; }
.broadcast-page .video-stage.is-live-empty .main-frame {
  display: flex; align-items: center; justify-content: center;
}
.broadcast-page .video-stage.is-live-empty .video-placeholder {
  padding: 1rem; color: #e2e8f0; text-align: center; line-height: 1.6;
}
.broadcast-page .video-stage.is-live-error .video-placeholder { visibility: hidden; }
.live-fetch-error { padding: 12px; display: flex; align-items: center; gap: 12px; }
.live-fetch-error[hidden] { display: none; }
.live-schedule-list { margin: 20px 0; padding: 16px; border: 1px solid #dbe2ea; border-radius: 12px; background: #fff; }
.live-schedule-list summary { cursor: pointer; font-weight: 600; }
.live-schedule-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }
.live-schedule-row span:first-child { flex: 1; min-width: 180px; }
.live-schedule-dialog { margin: auto; max-height: calc(100vh - 32px); overflow: auto; word-break: keep-all; width: min(520px, calc(100vw - 32px)); box-sizing: border-box; border: 0; border-radius: 16px; padding: 24px; color: #172b4d; }
.live-schedule-dialog::backdrop { background: #0008; }
.live-schedule-dialog p { white-space: pre-line; line-height: 1.7; }
.live-schedule-dialog label { display: block; }
.live-schedule-dialog input { display: block; width: 100%; box-sizing: border-box; padding: 12px; margin: 8px 0 16px; }
.live-schedule-dialog .btn { margin: 4px; padding: 10px 16px; border-radius: 8px; border: 1px solid #dbe2ea; background: #fff; color: #172b4d; }
.live-schedule-dialog .btn:last-child { background: #143f72; color: #fff; border-color: #143f72; }

.password-checklist { list-style:none; padding:0; margin:0 0 12px; font-size:13px; line-height:1.6; color:#64748b; }
.password-checklist[hidden] { display:none; }
.password-checklist .is-met { color:#166534; }
.page-state-notice { padding:24px; margin:24px auto; line-height:1.7; }
.page-state-notice a { display:inline-block; margin:12px 16px 0 0; }
.event-status-ended { display:inline-block; margin-left:10px; padding:2px 8px; border-radius:6px; background:#eef2f6; color:#475569; font-size:12px; font-weight:600; }

.page-state-notice h1, .page-state-notice h2 { font-size: 1.5rem; word-break: keep-all; }
.page-state-notice button { padding: 10px 16px; border-radius: 8px; font: inherit; cursor: pointer; }

/* QA 5: shared public keyboard focus, with a white gap on dark controls. */
body.public-ui :is(a, button, input, select, textarea, [tabindex]):not(:disabled):not([aria-disabled="true"]):focus-visible,
body[data-recovery] .public-ui.public-surface #recoveryContent .public-cta:focus-visible {
  outline: 3px solid #143f75 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 3px #fff !important;
}
.event-sponsor-carousel .sponsor-caption {
  min-width: 0;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.event-sponsor-carousel .sponsor-actions { flex-shrink: 0; }
h1.gate-company-title { margin: 0; }

.stage-shell h1.stage-top-title { margin: 0; }

/* Distinct event roles; compact cards retain full text in the detail view. */
.event-organizations { min-width: 0; max-width: 100%; }
.event-organizations .event-organization-row { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.event-organizations.is-compact .event-organization-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#eventOrganizations { font-size: 14px; color: #64748b; margin: 8px 0; }

/* Administrator live camera stills; the selected main preview remains video. */
.session-details .detail-thumb { position: relative; }
.session-details .thumb-image { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; display: block; }
.session-details .thumb-image[hidden] { display: none; }
.session-details .detail-thumb-message { position: absolute; inset: auto 0 0; padding: 3px; background: rgba(0,0,0,.7); color: #fff; font-size: 10px; text-align: center; pointer-events: none; }
.session-details .detail-thumb-message:empty { display: none; }

/* Keep the visible volume rail aligned with a touch-sized native range. */
.watch-page.broadcast-page .volume-slider {
  width: 32px;
  height: 72px;
  flex-shrink: 0;
}
.watch-page.broadcast-page .volume-range {
  touch-action: none;
}
.watch-page.broadcast-page .volume-slider:focus-within {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
  border-radius: 6px;
}

.watch-page.broadcast-page .volume-popover {
  height: 116px;
}

/* A direct conversation owns the chat area until it is closed. */
.watch-page.broadcast-page .chat-panel:has(> .participant-chat-panel:not(.hidden)) > :not(.participant-chat-panel) {
  display: none;
}
.watch-page.broadcast-page .participant-chat-panel {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  border-top: 0;
}
.watch-page.broadcast-page .participant-chat-panel.hidden {
  display: none;
}
.watch-page.broadcast-page .participant-chat-header,
.watch-page.broadcast-page .participant-chat-tools,
.watch-page.broadcast-page .participant-chat-input {
  flex: none;
  min-width: 0;
}
.watch-page.broadcast-page .participant-chat-name {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.watch-page.broadcast-page .participant-chat-header > :not(.participant-chat-name),
.watch-page.broadcast-page .participant-chat-attach {
  flex-shrink: 0;
}
.watch-page.broadcast-page .participant-chat-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overscroll-behavior: contain;
}
.watch-page.broadcast-page .participant-chat-message {
  flex: none;
  min-width: 0;
}
.watch-page.broadcast-page .participant-chat-bubble {
  min-width: 0;
  overflow-wrap: anywhere;
}
.watch-page.broadcast-page .participant-chat-pending {
  flex: 1;
  min-width: 0;
  max-height: 72px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.watch-page.broadcast-page .participant-chat-pending-item {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.watch-page.broadcast-page .participant-chat-input {
  grid-template-columns: minmax(0, 1fr) auto;
}
.watch-page.broadcast-page .participant-chat-input input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.liveset { background:#f2f5f8; color:#152335; min-height:100vh; }
.liveset .container { display:block; max-width:720px; margin:32px auto; padding:clamp(16px,4vw,36px); background:white; border-radius:16px; box-sizing:border-box; }
.liveset h2 { margin:24px 0 8px; font-size:1.15rem; }
.liveset p { margin:12px 0; }
.liveset button, .liveset input, .liveset select { padding:10px 14px; border:1px solid #bcc8d5; border-radius:8px; background:white; color:inherit; font:inherit; }
.liveset #start { background:#17457a; color:white; width:auto; }
.liveset details, .liveset li { margin:12px 0; }
.liveset form { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-top:12px; }
.liveset label { display:grid; gap:4px; }
.liveset video { width:100%; aspect-ratio:16/9; background:#142030; }
.liveset [hidden] { display:none !important; }
