/* School25 mirror custom styles (moved from inline) */
@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/unbounded/Unbounded-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
  }
  html, body, #site, .b8MmJW_page { max-width: 100%; overflow-x: clip; }
  button, a, label, .s25-item { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  #site, .qi49Na_content_homepage, ._6rtY2W_header, .s25-lcard, .s25-wc, .s25-btn, .s25-daynav, .s25-wcard {
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  }
  ._6rtY2W_inner_wrapper { overflow: visible !important; }
  ._6rtY2W_search_field_wrapper { position: relative !important; }
  .fAsRJq_input_wrapper { position: relative !important; }
  #s25-search-clear {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 28px; height: 28px; border: none; border-radius: 999px;
    background: var(--hover); color: var(--text-secondary);
    font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0;
  }
  #site[data-dark="true"] #s25-search-clear { background: rgba(255, 255, 255, 0.1); }
  #s25-search-clear[hidden] { display: none !important; }
  .s25-search-has-val input.fAsRJq_input { padding-right: 38px !important; }
  @media (max-width: 1024px) {
    .d6K8Fa_container { padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
    ._6rtY2W_inner {
      flex-wrap: wrap !important; gap: 10px !important;
      padding: 10px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)) !important;
    }
    ._6rtY2W_logo_wrapper { order: 0; }
    ._6rtY2W_mobile_actions { order: 1; margin-left: auto; display: flex !important; }
    ._6rtY2W_search_field_wrapper {
      display: block !important;
      flex: 1 0 100% !important;
      order: 2;
      width: 100% !important;
      margin: 0 !important;
    }
    ._6rtY2W_search_field { width: 100% !important; }
    ._6rtY2W_search_field input { height: 42px !important; font-size: 16px !important; }
  }
  @media (max-width: 768px) {
    ._6rtY2W_header { background: transparent !important; }
    ._6rtY2W_inner_wrapper {
      box-sizing: border-box !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 !important;
      border: 1px solid var(--global-border-color) !important;
      border-top: 0 !important;
      border-radius: 0 0 16px 16px !important;
    }
    .qi49Na_content_homepage {
      box-sizing: border-box !important;
      width: 100% !important;
      margin: 8px 0 0 !important;
      border: 1px solid var(--global-border-color) !important;
      border-radius: 16px !important;
      padding: 14px max(12px, env(safe-area-inset-right)) 20px max(12px, env(safe-area-inset-left)) !important;
    }
    .s25-banner { margin-bottom: 18px; }
  }
  #s25-search-drop {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1100;
    background: var(--global-bg); border: 1px solid var(--global-border-color);
    border-radius: 14px; padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    max-height: min(320px, 48dvh); overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; display: none;
  }
  #s25-search-drop.open { display: block; animation: iosPop .22s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .s25-drop-item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 8px 10px;
    border: none; background: transparent; color: var(--global-color); font: inherit;
    border-radius: 10px; cursor: pointer; text-align: left;
    transition: background .12s ease;
  }
  .s25-drop-item:hover { background: var(--hover); }
  #site[data-dark="true"] .s25-drop-item:hover { background: #26272b; }
  .s25-drop-badge {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 12px; color: #fff;
    background: linear-gradient(145deg, hsl(var(--h) 76% 52%), hsl(calc(var(--h) + 22) 72% 38%));
  }
  .s25-drop-empty { padding: 12px; text-align: center; color: var(--text-secondary); font-size: 13px; }
  @keyframes s25-rot { 100% { transform: rotate(360deg); } }
  @keyframes s25-worm {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
  }
  .s25-loader {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 56px 16px; gap: 12px; color: var(--text-secondary); font-size: 13px;
  }
  .s25-spinner { width: 40px; height: 40px; animation: s25-rot 1.4s linear infinite; }
  .s25-spinner circle {
    fill: none; stroke: #008DF2; stroke-width: 4; stroke-linecap: round;
    animation: s25-worm 1.2s ease-in-out infinite;
  }
  @keyframes iosPop {
    0% { opacity: 0; transform: scale(0.9) translateY(6px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
  }
  .s25-ios-anim { animation: iosPop .3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .s25-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 28px 36px; border-radius: 14px; margin-bottom: 32px;
    background: linear-gradient(112deg, #0b3d91 0%, #0a66d6 52%, #008DF2 100%);
    color: #fff; position: relative; overflow: hidden;
  }
  .s25-banner-kicker { font-size: 13px; font-weight: 500; opacity: .82; margin-bottom: 6px; }
  .s25-banner-title { font-family: 'Unbounded', sans-serif; font-size: clamp(22px, 3.2vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
  .s25-banner-sub { margin-top: 8px; font-size: 13px; opacity: .85; }
  .s25-banner-badge {
    flex-shrink: 0; font-size: 36px; font-weight: 800; letter-spacing: -0.03em;
    padding: 14px 22px; border-radius: 14px; background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(8px);
  }
  .s25-banner-swirl {
    position: absolute; right: -10px; bottom: -10px; height: 165%; width: auto;
    pointer-events: none; user-select: none; z-index: 0;
  }
  .s25-banner > div { position: relative; z-index: 1; }

  .qi49Na_game_section { margin-left: 0 !important; margin-right: 0 !important; }
  .qi49Na_game_section__header { padding-left: 0 !important; padding-right: 0 !important; }
  .qi49Na_game_section__all {
    justify-content: center;
    min-width: 28px;
    padding: 0 8px !important;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  ._51cSFq_inner.s25-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
    gap: 12px !important;
  }
  .s25-item { cursor: pointer; width: 100% !important; }
  .s25-tile-icon {
    width: 100%; height: 72px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 20px; color: #ffffff;
    border-radius: 16px !important;
    background: linear-gradient(145deg, hsl(var(--h) 76% 52%), hsl(calc(var(--h) + 22) 72% 38%));
    border: none;
    box-shadow: none;
    transition: filter .15s ease, box-shadow .15s ease, transform .12s ease;
  }
  .s25-item:hover .s25-tile-icon {
    filter: brightness(1.12);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  }
  .s25-item:active .s25-tile-icon { transform: scale(0.95); }
  .s25-item:hover ._51cSFq_title { color: var(--global-color); }

  /* Schedule View inside native container */
  .s25-sched-bar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--global-border-color);
  }
  .s25-btn {
    font: inherit; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 8px;
    background: var(--hover); color: var(--global-color); border: 1px solid var(--global-border-color);
    cursor: pointer; transition: background .15s ease, border-color .15s ease;
  }
  #site[data-dark="true"] .s25-btn { background: #26272b; }
  .s25-btn:hover:not(:disabled) { border-color: #008DF2; }
  .s25-btn:disabled { opacity: .4; cursor: default; }
  .s25-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .s25-class-head { display: inline-flex; align-items: center; gap: 8px; }
  .s25-copy-btn {
    position: relative; width: 34px; height: 34px; padding: 0; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hover); color: var(--text-secondary); border: 1px solid var(--global-border-color);
    cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, opacity .15s ease;
  }
  #site[data-dark="true"] .s25-copy-btn { background: #26272b; }
  .s25-copy-btn:hover:not(:disabled) { border-color: #008DF2; color: var(--global-color); }
  .s25-copy-btn:disabled { opacity: .4; cursor: default; }
  .s25-copy-btn[hidden] { display: none !important; }
  .s25-copy-btn .s25-ico-ok { display: none; }
  .s25-copy-btn.copied {
    border-color: #1db462 !important; color: #1db462 !important;
    background: rgba(29, 180, 98, 0.14) !important;
  }
  .s25-copy-btn.copied .s25-ico-copy { display: none; }
  .s25-copy-btn.copied .s25-ico-ok { display: block; }
  .s25-copy-tip {
    position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(4px);
    padding: 4px 8px; border-radius: 7px; font-size: 11px; font-weight: 600; white-space: nowrap;
    background: #1db462; color: #fff; pointer-events: none; opacity: 0;
    transition: opacity .16s ease, transform .16s ease;
  }
  .s25-copy-btn.copied .s25-copy-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
  .s25-seg {
    position: relative; display: inline-flex; align-items: center; padding: 3px; border-radius: 999px;
    background: var(--hover); border: 1px solid var(--global-border-color); isolation: isolate;
  }
  #site[data-dark="true"] .s25-seg { background: rgba(255, 255, 255, 0.05); }
  .s25-seg button {
    position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    border: none; background: transparent !important; color: var(--text-secondary);
    font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; padding: 6px 15px; border-radius: 999px;
    cursor: pointer; transition: color 0.2s ease;
  }
  .s25-seg button.on { color: #fff !important; }
  .s25-daynav {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 14px; margin-bottom: 16px; border-radius: 14px;
    background: var(--hover); border: 1px solid var(--global-border-color);
  }
  #site[data-dark="true"] .s25-daynav { background: #202124; }
  .s25-daypills {
    position: relative; display: flex; align-items: stretch; gap: 4px;
    overflow-x: auto; padding: 4px; margin-bottom: 16px; border-radius: 16px;
    background: var(--hover); border: 1px solid var(--global-border-color); isolation: isolate;
  }
  #site[data-dark="true"] .s25-daypills { background: rgba(255, 255, 255, 0.04); }
  .s25-dpill {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1 0 auto; min-width: 82px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
    background: transparent !important; border: none !important; color: var(--global-color);
    text-align: center; transition: color 0.2s ease;
  }
  .s25-dpill:not(.on):hover { opacity: 0.8; }
  .s25-dpill.on { color: #fff !important; }
  .s25-glider {
    position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #1ea3ff, #007ee0);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), width 0.25s ease;
    will-change: transform, width;
  }
  .s25-seg .s25-glider { border-radius: 999px; }
  @keyframes s25FadeOnly {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  .s25-anim-next, .s25-anim-prev, .s25-anim-pop { animation: s25FadeOnly .2s ease both; }
  .s25-dpill .dn { font-weight: 600; font-size: 14px; }
  .s25-dpill .dn-short, .s25-dpill .dd-short { display: none; }
  .s25-dpill .dd { font-size: 11px; opacity: 0.72; margin-top: 2px; }
  .s25-lessons { display: flex; flex-direction: column; gap: 8px; width: 100%; }
  .s25-lcard {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
    background: var(--hover); border: 1px solid var(--global-border-color); border-left: 4px solid #008DF2;
  }
  #site[data-dark="true"] .s25-lcard { background: #202124; }
  .s25-lcard-extra { margin-left:clamp(16px,4vw,48px); border-left-color:#8b5cf6; }
  .s25-lcard-extra .s25-lnum { color:#8b5cf6; background:rgba(139,92,246,.14); }
  .s25-extra-label { margin-top:4px; color:#a98af5; font-size:11px; font-weight:600; }
  .s25-extra-tag { color:#a98af5; background:rgba(139,92,246,.1); border-color:rgba(139,92,246,.2); }
  .s25-wc-extra { margin-left:14px; border-left-color:#8b5cf6 !important; }
  .s25-lnum {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums;
    background: rgba(0,141,242,0.14); color: #008DF2;
  }
  .s25-lbody { flex: 1; min-width: 0; }
  .s25-lhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .s25-lsubj { font-weight: 600; font-size: 15px; line-height: 1.3; word-break: break-word; }
  .s25-ltime { font-size: 12px; color: var(--text-secondary); white-space: nowrap; flex-shrink: 0; }
  .s25-tag {
    display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 500;
    background: var(--global-bg); border: 1px solid var(--global-border-color); color: var(--text-secondary);
    margin: 4px 6px 0 0;
  }
  .s25-week-wrap { overflow-x: auto; border: 1px solid var(--global-border-color); border-radius: 12px; padding: 10px; }
  .s25-wk { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 6px; min-width: 680px; }
  .s25-wk th { padding: 8px; border-radius: 8px; font-size: 13px; text-align: left; background: var(--hover); }
  #site[data-dark="true"] .s25-wk th { background: #26272b; }
  .s25-wk td { vertical-align: top; }
  .s25-wc {
    padding: 8px 10px; border-radius: 8px; margin-bottom: 6px;
    background: var(--hover); border: 1px solid var(--global-border-color); border-left: 3px solid #008DF2;
  }
  #site[data-dark="true"] .s25-wc { background: #202124; }
  .s25-week-mobile { display: none; }
  @media (max-width: 768px) {
    .s25-week-wrap { display: none; }
    .s25-week-mobile { display: flex; flex-direction: column; gap: 12px; }
    .s25-wcard {
      border-radius: 14px; padding: 12px;
      background: var(--global-bg); border: 1px solid var(--global-border-color);
    }
    .s25-wcard-head {
      display: flex; align-items: center; justify-content: space-between;
      font-weight: 700; font-size: 14px; padding-bottom: 8px; margin-bottom: 8px;
      border-bottom: 1px solid var(--global-border-color);
    }
    .s25-wcard-date { font-size: 12px; font-weight: 500; color: var(--text-secondary); }
    .s25-wcard-empty { font-size: 13px; color: var(--text-secondary); padding: 4px 0; }
    .s25-wcard .s25-wc:last-child { margin-bottom: 0; }
  }
  @media (max-width: 640px) {
    .s25-banner { padding: 18px; margin-bottom: 18px; gap: 12px; }
    .s25-banner-kicker { font-size: 12px; margin-bottom: 4px; }
    .s25-banner-title { font-size: 20px; }
    .s25-banner-sub { font-size: 12px; margin-top: 6px; }
    .s25-banner-badge { display: none; }
    .s25-banner-swirl { display: block; height: 125%; right: -18px; bottom: -18px; opacity: 0.25; }
    ._51cSFq_inner.s25-grid { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important; gap: 10px !important; }
    .s25-tile-icon { height: 60px; font-size: 18px; border-radius: 14px !important; }
    .s25-sched-bar { gap: 10px; padding-bottom: 12px; margin-bottom: 12px; }
    .s25-sched-bar .s25-btn { min-height: 40px; padding: 8px 12px; }
    .s25-copy-btn { width: 36px; height: 36px; }
    .s25-seg button { min-height: 36px; padding: 6px 12px; }
    .s25-daynav { padding: 8px 10px; margin-bottom: 12px; }
    .s25-daynav .s25-btn { min-height: 40px; padding: 8px 14px; }
    .s25-daypills {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
      gap: 4px; overflow: visible; padding: 4px; margin-bottom: 12px; border-radius: 14px;
    }
    .s25-dpill { min-width: 0; min-height: 44px; padding: 7px 3px; border-radius: 10px; }
    .s25-daypills .s25-glider { border-radius: 10px; }
    .s25-dpill .dn-full, .s25-dpill .dd-full { display: none; }
    .s25-dpill .dn-short { display: block; font-weight: 700; font-size: 13px; }
    .s25-dpill .dd-short { display: inline; }
    .s25-dpill .dd { font-size: 10px; margin-top: 2px; }
    .s25-lcard { align-items: flex-start; padding: 11px 12px; gap: 10px; }
    .s25-lnum { width: 32px; height: 32px; font-size: 13px; border-radius: 9px; margin-top: 1px; }
    .s25-lhead { flex-wrap: wrap; gap: 2px 8px; }
    .s25-lsubj { font-size: 14px; flex: 1 1 180px; }
    .s25-ltime { font-size: 12px; opacity: 0.85; }
    .s25-tag { font-size: 11px; padding: 2px 8px; margin: 4px 4px 0 0; }
  }
  @media (max-width: 440px) {
    .s25-sched-bar .s25-seg { width: 100%; }
    .s25-sched-bar .s25-seg button { flex: 1; }
  }

.s25-stage{margin-bottom:8px}
.s25-schedule-controls { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.s25-type-switch button:focus-visible { outline:2px solid #008df2; outline-offset:2px; }
.s25-demo-note { font-size:13px; color:var(--text-secondary); margin:0 0 14px; }
.s25-schedule-controls [hidden] { display:none!important; }
.s25-aftercare-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:52px 20px; border:1px dashed var(--global-border-color); border-radius:16px; }
.s25-aftercare-icon { display:grid; place-items:center; width:56px; height:56px; margin-bottom:18px; border-radius:16px; background:rgba(0,141,242,.12); color:#008df2; }
.s25-aftercare-empty h3 { font-size:18px; font-weight:600; margin:0 0 8px; }
.s25-aftercare-empty p { font-size:14px; color:var(--text-secondary); margin:0 0 24px; }
@media(max-width:640px) {
  .s25-schedule-controls { width:100%; justify-content:space-between; gap:10px; }
  .s25-type-switch { flex:1; }
  .s25-type-switch button { flex:1; padding:8px 10px; }
  .s25-aftercare-empty { padding:36px 16px; }
}
.s25-group-title{color:var(--School25-text);font-size:26px;font-weight:600;line-height:34px;margin:40px 0 18px}
#s25-content>.s25-stage:first-child .s25-group-title{margin-top:12px}
