
/* Unified static B Top: all supported pages receive markup in their HTML. */
@media(max-width:760px){
 body[data-cike-unified-top] .timetable-v4-top,
 body[data-cike-unified-top] .events-top,
 body[data-cike-unified-top] .account-top{display:none!important}
 body[data-cike-unified-top] .cike-unified-top{
   --cike-unified-button-size:46px;
   position:sticky;top:0;z-index:35;display:flex;flex-direction:column;align-items:stretch;
   box-sizing:border-box;width:100%;min-width:0;margin:0;padding:4px 10px 6px;
   color:var(--cike-text,#243247);
   background:color-mix(in srgb,var(--cike-surface,#fff) 97%,transparent);
   backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
   border-bottom:1px solid var(--cike-line,#e4eaf1);
   font:inherit;
 }
 body[data-cike-unified-top] .cike-unified-top-row{
   box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;
   width:100%;min-width:0;height:48px;gap:6px;
 }
 body[data-cike-unified-top] .cike-unified-identity{
   display:flex;align-items:center;gap:7px;min-width:0;flex:0 1 auto;white-space:nowrap;
   font-size:16px;line-height:1.1;font-weight:700;color:var(--cike-text-strong,#19263a);
 }
 body[data-cike-unified-top] .cike-unified-identity>svg{width:21px;height:21px;flex:0 0 21px;stroke:var(--cike-brand,#cf5551)}
 body[data-cike-unified-top] .cike-unified-name{font-size:16px;font-weight:700;letter-spacing:-.02em}
 body[data-cike-unified-top] .cike-unified-nav{
   display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;
   min-width:0;gap:3px;margin-left:auto;
 }
 body[data-cike-unified-top] .cike-unified-nav-button{
   box-sizing:border-box;display:inline-flex;flex:0 0 var(--cike-unified-button-size);
   align-items:center;justify-content:center;flex-direction:column;gap:1px;
   width:var(--cike-unified-button-size);height:48px;min-width:var(--cike-unified-button-size);
   min-height:48px;margin:0;padding:0;border:0;border-radius:12px;
   background:transparent;box-shadow:none;text-decoration:none;color:var(--cike-text,#243247);
   cursor:pointer;
 }
 body[data-cike-unified-top] .cike-unified-nav-button svg,
 body[data-cike-unified-top] .cike-unified-context-action svg{
   display:block;width:21px;height:21px;flex:0 0 21px;
 }
 body[data-cike-unified-top] .cike-unified-nav-button span{
   font-size:8px;line-height:1;font-weight:650;letter-spacing:.045em;
 }
 body[data-cike-unified-top] .cike-unified-nav-button:hover,
 body[data-cike-unified-top] .cike-unified-nav-button:focus-visible{
   background:var(--cike-surface-soft,#f0f3f7);outline-offset:1px;
 }
 body[data-cike-unified-top] .cike-unified-context-action{
   background:var(--cike-brand,#cf5551);color:#fff;
 }
 body[data-cike-unified-top] .cike-unified-context-action:hover,
 body[data-cike-unified-top] .cike-unified-context-action:focus-visible{
   background:var(--cike-brand-hover,#bb4a46);color:#fff;
 }
 body[data-cike-unified-top] .cike-unified-subtitle{
   display:flex;align-items:center;gap:6px;box-sizing:border-box;
   min-width:0;width:100%;min-height:24px;
   padding:0 4px 1px 28px;color:var(--cike-muted,#65738a);
   font-size:11px;line-height:1.3;white-space:nowrap;
 }
 body[data-cike-unified-top] .cike-unified-subtitle:empty{display:none}
 body[data-cike-unified-top] .cike-unified-subtitle .events-status{
   margin:0!important;padding:0!important;min-width:0;width:100%;
   overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
   font-size:11px;font-weight:450;line-height:19px;color:var(--cike-muted,#65738a);
 }
 body[data-cike-unified-top="events"] .events-browse-bar{display:none!important}
 body[data-cike-unified-top="events"] .events-filter-bar{
   display:flex;align-items:center;flex-wrap:nowrap;gap:5px;
 }
 body[data-cike-unified-top="events"] .events-filter-bar #category-group{
   flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none;
 }
 body[data-cike-unified-top="events"] .cike-unified-filter-actions{
   display:flex;align-items:center;flex:0 0 auto;gap:5px;
 }
 body[data-cike-unified-top="events"] .events-filter-bar .events-view-switch{
   flex:0 0 auto;white-space:nowrap;margin:0;
 }
 body[data-cike-unified-top] .cike-unified-subtitle .timetable-school-picker{
   display:inline-flex;align-items:center;flex:0 0 auto;min-width:0;height:24px;
 }
 body[data-cike-unified-top] .cike-unified-subtitle #schedule-school-trigger{
   display:inline-flex;max-width:110px;min-height:24px!important;height:24px!important;
   padding:0 3px!important;font-size:11px!important;font-weight:650!important;
   color:var(--cike-muted,#65738a)!important;background:transparent!important;
 }
 body[data-cike-unified-top] .cike-unified-subtitle .timetable-brand-meta{
   display:flex;align-items:center;min-width:0;width:auto;height:24px;
   padding:0!important;overflow:hidden;flex:1 1 auto;
 }
 body[data-cike-unified-top] .cike-unified-subtitle .timetable-brand-meta-label{
   display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
   font-size:11px;line-height:1.2;
 }
 body[data-cike-unified-top] .cike-unified-subtitle .timetable-brand-meta:before{
   content:'·';margin-right:7px;font-weight:600;color:var(--cike-muted,#65738a)
 }
 body[data-cike-unified-top] .cike-unified-timetable-menu{
   position:relative;display:flex;align-items:center;flex:0 0 auto;
 }
 body[data-cike-unified-top] .cike-unified-timetable-menu #timetable-menu-button{
   box-sizing:border-box;display:grid;place-items:center;width:28px;min-width:28px;
   height:26px;min-height:26px;padding:0!important;border:0!important;border-radius:7px;
   color:var(--cike-muted,#65738a)!important;background:transparent!important;
 }
 body[data-cike-unified-top] .cike-unified-timetable-menu #timetable-menu-button svg{
   width:18px;height:18px;
 }
 body[data-cike-unified-top] .cike-unified-timetable-menu .timetable-menu{
   top:calc(100% + 5px)!important;right:0!important;left:auto!important;z-index:100;
 }
 body[data-cike-unified-top] .cike-unified-back{
   display:inline-flex!important;align-items:center;justify-content:center;
   width:auto!important;min-width:68px!important;height:44px!important;min-height:44px!important;
   padding:0 5px!important;margin:0!important;border:0!important;border-radius:10px!important;
   color:var(--cike-text,#243247);background:transparent!important;box-shadow:none!important;
   font-size:14px!important;white-space:nowrap;
 }
 body[data-cike-unified-top="account"] .cike-unified-top{
   margin-bottom:0;
 }
 body[data-cike-unified-top] .cike-unified-nav-button:focus-visible,
 body[data-cike-unified-top] .cike-unified-secondary-action:focus-visible{
   outline:2px solid var(--cike-focus,#428cff);outline-offset:2px;
 }
}
@media(max-width:355px){
 body[data-cike-unified-top] .cike-unified-top{--cike-unified-button-size:44px;padding-left:6px;padding-right:6px}
 body[data-cike-unified-top] .cike-unified-nav{gap:2px}
 body[data-cike-unified-top] .cike-unified-top-row{gap:4px}
 body[data-cike-unified-top] .cike-unified-identity{gap:5px}
 body[data-cike-unified-top] .cike-unified-name{font-size:15px}
}

@media(max-width:760px){
 body[data-cike-unified-top] .cike-unified-back::before{display:none!important}
}

@media(max-width:760px){
 body[data-cike-unified-top] .cike-unified-context-action svg{width:19px;height:19px;flex:0 0 19px}
 body[data-cike-unified-top] .cike-unified-context-action .cike-unified-action-label{
   display:block;max-width:100%;font-size:8px;font-weight:720;
   line-height:1;white-space:nowrap;letter-spacing:0;
 }
}

@media(max-width:760px){
 body[data-cike-unified-top] .cike-unified-brand-entry {
   display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;
   box-sizing:border-box;width:40px;height:48px;min-width:40px;min-height:48px;
   border:0;border-radius:11px;text-decoration:none;
   color:var(--cike-brand,#a52b3d);background:transparent;
 }
 body[data-cike-unified-top] .cike-unified-brand-entry:hover,
 body[data-cike-unified-top] .cike-unified-brand-entry:focus-visible{
   background:var(--cike-surface-soft,#f3f4f7);
   outline-offset:1px;
 }
 body[data-cike-unified-top] .cike-unified-brand-mark{
   display:block;max-width:23px;max-height:23px;object-fit:contain;
 }
}
@media(max-width:355px){
 body[data-cike-unified-top] .cike-unified-brand-entry{
   width:36px;min-width:36px;flex-basis:36px;
 }
}
@supports (view-transition-name: none){
 @media (prefers-reduced-motion:no-preference){
  ::view-transition-old(cike-top-primary-action){
    animation: cike-top-action-exit .22s ease-in both;
  }
  ::view-transition-new(cike-top-primary-action){
    animation: cike-top-action-enter .32s cubic-bezier(.2,.8,.2,1) both;
  }
 }
}
@keyframes cike-top-action-exit{
 to{opacity:.35;transform:scale(.78)}
}
@keyframes cike-top-action-enter{
 from{opacity:.45;transform:scale(.82)}
 to{opacity:1;transform:scale(1)}
}
@media (prefers-reduced-motion:reduce){
 ::view-transition-old(root),::view-transition-new(root),
 ::view-transition-old(cike-top-primary-action),
 ::view-transition-new(cike-top-primary-action){
  animation-duration:.01ms!important;
 }
}

/* Unified mobile Top refinements: one account shortcut at the leading edge. */
@media(max-width:760px){
 body[data-cike-unified-top] .cike-unified-top{
   padding-left:max(8px,var(--cike-safe-left,0px));
   padding-right:max(8px,var(--cike-safe-right,0px));
 }
 body[data-cike-unified-top] .cike-unified-identity{gap:5px}
 body[data-cike-unified-top] .cike-unified-brand-entry{
   flex:0 0 44px;width:44px;min-width:44px;height:48px;
   min-height:48px;justify-content:flex-start;padding-left:2px;
 }
 body[data-cike-unified-top] .cike-unified-name{
   font-size:17px;line-height:22px;font-weight:700;letter-spacing:-.025em;
 }
 body[data-cike-unified-top] .cike-unified-subtitle{
   min-height:22px;padding:0 3px 2px 49px;
   align-items:center;gap:5px;
 }
 body[data-cike-unified-top="events"] .cike-unified-subtitle .events-status{
   font-size:11.5px;font-weight:450;line-height:18px;
   letter-spacing:0;color:var(--cike-muted,#647084);
 }
 body[data-cike-unified-top] .cike-unified-context-action{
   background:transparent!important;box-shadow:none!important;
   color:var(--cike-text,#26354c)!important;
 }
 body[data-cike-unified-top] .cike-unified-context-action:hover,
 body[data-cike-unified-top] .cike-unified-context-action:focus-visible{
   background:var(--cike-surface-soft,#f2f4f7)!important;
   color:var(--cike-text,#26354c)!important;
 }
 body[data-cike-unified-top] .cike-unified-context-action svg{
   width:21px;height:21px;flex:0 0 21px;
 }
}
@media(max-width:355px){
 body[data-cike-unified-top] .cike-unified-brand-entry{
   flex-basis:40px;width:40px;min-width:40px;
 }
 body[data-cike-unified-top] .cike-unified-name{font-size:16px}
 body[data-cike-unified-top] .cike-unified-subtitle{padding-left:44px}
}


@media(max-width:760px){
  /* Source provenance remains available in the ledger, but do not surface a count. */
  body[data-cike-unified-top="events"] #ledger-summary-count{display:none!important}
}


/* Compact two-line page identity inside the Top main row. */
@media(max-width:760px){
 body[data-cike-unified-top] .cike-unified-top-row{
   height:50px;min-height:50px;align-items:center;
 }
 body[data-cike-unified-top] .cike-unified-identity{
   display:flex;flex:1 1 auto;align-items:center;gap:7px;min-width:0;
 }
 body[data-cike-unified-top] .cike-unified-brand-entry{
   display:grid;place-items:center;padding:0!important;
   flex:0 0 34px;width:34px;min-width:34px;height:34px;min-height:34px;
   border-radius:50%;background:var(--account-avatar-bg,var(--cike-brand,#8b2533));
   color:var(--account-avatar-fg,#fff);
 }
 body[data-cike-unified-top] .cike-unified-brand-entry:hover{
   background:var(--account-avatar-bg,var(--cike-brand,#8b2533));
   filter:brightness(.94);
 }
 body[data-cike-unified-top] .cike-unified-brand-mark{
   display:block;width:19px;height:19px;max-width:none;max-height:none;
   background:currentColor;
   -webkit-mask:url('/brand-mark.svg') center/contain no-repeat;
   mask:url('/brand-mark.svg') center/contain no-repeat;
 }
 body[data-cike-unified-top] .cike-unified-title-stack{
   display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
   gap:2px;flex:1 1 auto;min-width:0;max-width:100%;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .cike-unified-name{
   display:block;font-size:16px;line-height:20px;min-width:0;
   font-weight:720;letter-spacing:-.02em;white-space:nowrap;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .cike-unified-subtitle{
   display:flex;flex-direction:row;align-items:center;gap:4px;
   box-sizing:border-box;width:100%;max-width:100%;min-width:0;
   min-height:15px;height:16px;margin:0;padding:0!important;
   white-space:nowrap;line-height:15px;
 }
 body[data-cike-unified-top] .cike-unified-current-events{
   display:block;min-width:0;max-width:100%;
   overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
   color:var(--cike-muted,#65738a);font-size:10.5px;font-weight:450;
 }
 body[data-cike-unified-top] .cike-unified-source-status{
   position:absolute!important;width:1px!important;height:1px!important;
   overflow:hidden!important;clip-path:inset(50%)!important;
   white-space:nowrap!important;pointer-events:none!important;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .timetable-brand-meta{
   flex:1 1 auto;display:flex;align-items:center;min-width:0;height:16px;
   max-width:100%;overflow:hidden;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .timetable-brand-meta-label{
   display:block;font-size:10px;line-height:15px;
   overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
 body[data-cike-unified-top] .cike-unified-title-stack #schedule-school-trigger{
   height:16px!important;min-height:16px!important;max-height:16px!important;
   padding:0!important;font-size:10px!important;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .timetable-school-picker{
   height:16px;min-height:16px;flex:0 0 auto;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .timetable-brand-meta:before{
   margin-right:3px;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .cike-unified-timetable-menu{
   flex:0 0 auto;align-self:center;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .cike-unified-secondary-action{
   flex:0 0 23px;width:23px;height:22px;min-height:22px;
 }
 body[data-cike-unified-top] .cike-unified-nav{
   flex:0 0 auto;gap:2px;margin-left:auto;
 }
}
@media(max-width:355px){
 body[data-cike-unified-top] .cike-unified-identity{gap:4px}
 body[data-cike-unified-top] .cike-unified-title-stack .cike-unified-name{font-size:15px}
 body[data-cike-unified-top] .cike-unified-brand-entry{
   flex-basis:32px;width:32px;min-width:32px;height:32px;min-height:32px;
 }
}


@media(max-width:760px){
  body[data-cike-unified-top] .cike-unified-brand-entry.account-entry-link.account-avatar-link{
    display:inline-grid;place-items:center;
    width:34px;min-width:34px;height:34px;min-height:34px;
    flex:0 0 34px;padding:0!important;border:0!important;border-radius:50%;
    background:var(--account-avatar-bg,var(--cike-brand,#8b2533));
    color:var(--account-avatar-fg,#fff);
    box-shadow:none;
  }
  body[data-cike-unified-top] .cike-unified-brand-entry.account-entry-link.account-avatar-link::before{
    content:"";display:block;width:18px;height:18px;
    background:currentColor;
    -webkit-mask:url('/brand-mark.svg') center/contain no-repeat;
    mask:url('/brand-mark.svg') center/contain no-repeat;
  }
}
@media(max-width:355px){
  body[data-cike-unified-top] .cike-unified-brand-entry.account-entry-link.account-avatar-link{
    width:32px;min-width:32px;height:32px;min-height:32px;flex-basis:32px;
  }
}


/* Explicit, consistently rendered filter glyph in the compact events row. */
@media(max-width:760px){
 body[data-cike-unified-top="events"] .events-filter-bar #events-more-toggle{
   display:inline-flex;align-items:center;justify-content:center;gap:5px;
   flex:0 0 auto;white-space:nowrap;
 }
 body[data-cike-unified-top="events"] .cike-unified-filter-icon{
   display:inline-flex;align-items:center;justify-content:center;
   flex:0 0 16px;width:16px;height:16px;color:inherit;
 }
 body[data-cike-unified-top="events"] .cike-unified-filter-icon svg{
   display:block;width:16px;height:16px;stroke:currentColor;
 }
 body[data-cike-unified-top="events"] .events-filter-chevron{display:none!important}
}

/* Same edge-to-edge shell geometry across schedule, events and account.
   Business content still uses its own page inset. */
@media(max-width:760px){
 body[data-cike-unified-top="events"] .cike-unified-top,
 body[data-cike-unified-top="account"] .cike-unified-top{
   width:calc(100% + 28px);
   margin-left:-14px;
   margin-right:-14px;
 }
 body[data-cike-unified-top="account"] .cike-unified-top{
   margin-top:2px;
 }
}
@supports (view-transition-name:none){
 ::view-transition-group(cike-top-shell){animation:none!important;transform:none!important}
 @media(prefers-reduced-motion:no-preference){
   ::view-transition-old(cike-top-shell),
   ::view-transition-new(cike-top-shell){
     animation-duration:.16s;
     animation-timing-function:ease-out;
   }
 }
 @media(prefers-reduced-motion:reduce){
   ::view-transition-old(cike-top-shell),
   ::view-transition-new(cike-top-shell){animation:none!important}
 }
}

/* Production timetable account entry parity.
   Verified against https://cikeapp.org/schedule at 390px and 320px:
   x=16px, y=30.5px, 34x34px circle, 18x18px brand mask.
   Keep the actual account-avatar-link element and avatar state. */
@media(max-width:760px){
 body[data-cike-unified-top] .cike-unified-top{
   padding-left:max(16px,var(--cike-safe-left,0px));
 }
 body[data-cike-unified-top] .cike-unified-brand-entry.account-entry-link.account-avatar-link{
   width:34px;min-width:34px;height:34px;min-height:34px;
   max-width:34px;max-height:34px;flex:0 0 34px;
   transform:translateY(2.5px);
 }
}
@media(max-width:355px){
 body[data-cike-unified-top] .cike-unified-brand-entry.account-entry-link.account-avatar-link{
   width:34px;min-width:34px;height:34px;min-height:34px;
   max-width:34px;max-height:34px;flex:0 0 34px;
 }
}



/* Production timetable avatar uses a 34px grid track, not a min-content
   18px track. Without the full track the "此" mask sits off-centre. */
@media(max-width:760px){
 body[data-cike-unified-top] .cike-unified-brand-entry.account-entry-link.account-avatar-link{
   display:grid!important;
   grid-template-columns:34px!important;
   grid-template-rows:34px!important;
   align-items:center;justify-items:center;
   line-height:normal!important;
 }
 body[data-cike-unified-top] .cike-unified-brand-entry.account-entry-link.account-avatar-link::before{
   width:18px;height:18px;
 }
}


@media(max-width:760px){
 body[data-cike-unified-top="schedule"] .cike-unified-title-stack .timetable-brand-meta {
   position:absolute!important;width:1px!important;height:1px!important;
   overflow:hidden!important;clip-path:inset(50%)!important;
   pointer-events:none!important;
 }
 body[data-cike-unified-top] .cike-unified-title-stack .timetable-brand-meta:before {
   content:none!important;display:none!important;
 }
 body[data-cike-unified-top="schedule"] .cike-unified-school-term {
   flex:1 1 auto;min-width:0;display:block;
   overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
   color:var(--cike-muted,#65738a);font-size:10px;line-height:15px;
 }
 body[data-cike-unified-top="schedule"] .cike-unified-subtitle {
   gap:0!important;
 }
}

/* Desktop fallback for the single-source B Top: never render a legacy header.
   Retains the same navigation and account functionality without mobile density. */
@media(min-width:761px){
 .cike-unified-top{
   position:sticky;top:0;z-index:35;display:block;box-sizing:border-box;
   width:100%;max-width:100%;height:64px;min-height:64px;
   padding:8px 16px;border-bottom:1px solid var(--cike-line,#e4eaf1);
   background:var(--cike-surface,#fff);
 }
 .cike-unified-top-row{display:flex;align-items:center;justify-content:space-between;gap:12px;height:48px}
 .cike-unified-identity{display:flex;flex:1 1 auto;align-items:center;gap:10px;min-width:0}
 .cike-unified-brand-entry{display:inline-grid;place-items:center;flex:0 0 34px;width:34px;height:34px}
 .cike-unified-title-stack{display:flex;flex-direction:column;gap:2px;min-width:0}
 .cike-unified-name{font-size:17px;font-weight:700;line-height:20px}
 .cike-unified-subtitle{display:flex;align-items:center;min-width:0;gap:5px}
 .cike-unified-current-events,.cike-unified-school-term{font-size:11px;color:var(--cike-muted,#65738a)}
 .cike-unified-source-status,.cike-unified-title-stack .timetable-brand-meta{
   position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;
   clip-path:inset(50%)!important;
 }
 .cike-unified-nav{display:flex;align-items:center;gap:8px;margin-left:auto}
 .cike-unified-nav-button{box-sizing:border-box;display:flex;flex-direction:column;gap:1px;
   align-items:center;justify-content:center;width:46px;height:46px;min-height:46px;
   border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--cike-text,#263343);
   cursor:pointer;text-decoration:none}
 .cike-unified-nav-button svg{width:21px;height:21px;display:block;fill:none;stroke:currentColor;stroke-width:1.8}
 .cike-unified-nav-button span{font-size:8px;line-height:1}
 .cike-unified-nav-button:hover,.cike-unified-nav-button:focus-visible{background:var(--cike-surface-soft,#f4f6f9)}
 .cike-unified-back{box-sizing:border-box;display:inline-flex;align-items:center;
   justify-content:center;min-width:70px;height:44px;padding:0 7px;border:0;background:transparent;
   color:var(--cike-text,#263343);white-space:nowrap}
 .cike-unified-timetable-menu{position:relative;display:inline-flex}
 .cike-unified-timetable-menu #timetable-menu-button{min-height:22px;width:26px;padding:0;
   border:0;background:transparent;color:var(--cike-muted,#65738a)}
 .cike-unified-timetable-menu #timetable-menu-button svg{width:20px;height:20px}
 .cike-unified-timetable-menu .timetable-menu{position:absolute;right:0;top:100%;z-index:100}
 .cike-unified-subtitle .timetable-school-picker{display:none}
 .cike-unified-subtitle .timetable-brand-meta:before{display:none!important;content:none!important}
}

/* The whole timetable title and subtitle are the menu trigger.
   A quiet chevron replaces the extra ellipsis button. */
.cike-unified-timetable-switch{
  position:relative;
  min-width:0;
}
.cike-unified-timetable-switch .cike-unified-name::after{
  content:"";display:inline-block;vertical-align:3px;
  width:6px;height:6px;margin-left:7px;
  border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;
  opacity:.56;transform:rotate(45deg);
  transition:transform .16s ease,opacity .16s ease;
}
.cike-unified-timetable-switch:has(#timetable-menu-button[aria-expanded="true"]) .cike-unified-name::after{
  transform:translateY(3px) rotate(225deg);opacity:.85;
}
.cike-unified-timetable-switch .cike-unified-title-hitbox#timetable-menu-button{
  position:absolute!important;inset:0!important;display:block!important;
  box-sizing:border-box!important;
  width:100%!important;max-width:none!important;height:100%!important;
  min-height:0!important;margin:0!important;padding:0!important;
  opacity:0!important;border:0!important;background:transparent!important;
  cursor:pointer!important;z-index:2;
}
.cike-unified-timetable-switch:focus-within{
  outline:2px solid var(--cike-focus,#428cff);
  outline-offset:3px;border-radius:5px;
}
body[data-cike-unified-top="schedule"] .cike-unified-top > #timetable-menu{
  position:absolute!important;
  top:calc(100% + 6px)!important;
  left:max(16px,var(--cike-safe-left,0px))!important;
  right:auto!important;
  box-sizing:border-box;
  width:min(280px,calc(100vw - 32px))!important;
  max-height:min(65dvh,460px)!important;
  overflow-y:auto;
  overscroll-behavior:contain;
  z-index:100;
}
@media(prefers-reduced-motion:reduce){
  .cike-unified-timetable-switch .cike-unified-name::after{transition:none}
}


/* Keep the switcher menu legible above timetable content. */
.cike-unified-timetable-switch:focus-within{outline:none}
.cike-unified-timetable-switch:has(.cike-unified-title-hitbox:focus-visible){
  outline:2px solid var(--cike-focus,#428cff);
  outline-offset:3px;border-radius:5px;
}
body[data-cike-unified-top="schedule"] .cike-unified-top > #timetable-menu{
  background:var(--cike-surface,#fff)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:0 10px 30px rgba(22,37,59,.14);
}

/* Same overflow-only, bidirectional marquee as the map Course Sheet status. */
.cike-unified-school-term{
  display:block;min-width:0;flex:1 1 auto;
  overflow:hidden;white-space:nowrap;text-overflow:clip;
}
.cike-unified-school-term-track{
  display:inline-block;min-width:max-content;white-space:nowrap;
  transform:translateX(0);will-change:auto;
}
.cike-unified-school-term.is-overflowing .cike-unified-school-term-track{
  will-change:transform;
  animation:cike-status-marquee var(--status-marquee-duration,9s) ease-in-out infinite;
}
@media(prefers-reduced-motion:reduce){
  .cike-unified-school-term.is-overflowing .cike-unified-school-term-track{
    animation:none!important;transform:none!important;will-change:auto;
  }
}

@keyframes cike-status-marquee{0%,14%{transform:translateX(0)}44%,56%{transform:translateX(calc(-1 * var(--status-marquee-distance,0px)))}86%,100%{transform:translateX(0)}}

/* Secondary pages share the same edge-to-edge mobile Top as Account.
   Their page content retains its own 14px inset. */
@media(max-width:760px){
  body[data-cike-unified-top="reminders"] .cike-unified-top,
  body[data-cike-unified-top="about"] .cike-unified-top{
    width:calc(100% + 28px);
    margin-left:-14px;
    margin-right:-14px;
  }
  body[data-cike-unified-top="reminders"] .cike-unified-identity,
  body[data-cike-unified-top="about"] .cike-unified-identity{
    min-width:0;
  }
  body[data-cike-unified-top="reminders"] .cike-unified-title-stack,
  body[data-cike-unified-top="about"] .cike-unified-title-stack{
    min-width:0;
    overflow:hidden;
  }
  body[data-cike-unified-top="reminders"] .cike-unified-name,
  body[data-cike-unified-top="about"] .cike-unified-name{
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* All document routes share one Top placement contract. Secondary shells
   formerly used a 2px header margin atop 14px of content padding. */
@media(max-width:760px){
  body[data-cike-unified-top="account"] > .account-shell,
  body[data-cike-unified-top="reminders"] > .reminders-shell,
  body[data-cike-unified-top="about"] > .about-shell{
    padding-top:0px;
  }
  body[data-cike-unified-top="account"] .cike-unified-top,
  body[data-cike-unified-top="reminders"] .cike-unified-top,
  body[data-cike-unified-top="about"] .cike-unified-top{
    margin-top:0;
    margin-bottom:0;
  }
  /* Single-line titles belong in the vertical center of their Top row.
     Do not simulate a missing subtitle merely to match the two-line pages. */
  body[data-cike-unified-top="reminders"] .cike-unified-title-stack,
  body[data-cike-unified-top="about"] .cike-unified-title-stack{
    min-height:0;
    justify-content:center;
  }
}


/* About content must follow the full shared Top in normal document flow.
   Preserve the former page's header-to-card spacing, not its absolute y. */
body[data-cike-unified-top="about"] .about-card{
  margin-top:var(--cike-space-5,20px);
}
@media(max-width:760px){
  body[data-cike-unified-top="about"] .about-card{
    margin-top:14px;
  }
}

/* Static timetable placeholder: reserve a stable content frame while workspace
   data loads, rather than revealing the week selector ahead of the timetable. */
body[data-cike-unified-top="schedule"] .cike-schedule-loading-panel{
  position:relative;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  gap:15px;
  min-height:330px;
  margin:8px 14px 12px;
  padding:15px 12px;
  border:1px solid var(--cike-line,#e4eaf1);
  border-radius:14px;
  background:var(--cike-surface,#fff);
}
body[data-cike-unified-top="schedule"] .cike-schedule-loading-line{
  display:block;
  width:68%;
  height:17px;
  border-radius:7px;
  background:var(--cike-surface-soft,#eef1f5);
}
body[data-cike-unified-top="schedule"] .cike-schedule-loading-copy{
  font-size:11px;
  color:var(--cike-muted,#66768b);
}
body[data-cike-unified-top="schedule"] .cike-schedule-loading-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  min-height:218px;
}
body[data-cike-unified-top="schedule"] .cike-schedule-loading-grid span{
  display:block;
  border-radius:9px;
  background:var(--cike-surface-soft,#eef1f5);
  opacity:.65;
}
@media(min-width:761px){
  body[data-cike-unified-top="schedule"] .cike-schedule-loading-panel{
    min-height:420px;
    margin:14px 18px 20px;
    padding:20px;
  }
}

/* Give the first Account content card the same Top clearance as About. */
@media(max-width:760px){
  body[data-cike-unified-top="account"] .cike-unified-top ~ .account-promo{
    margin-top:14px;
  }
}

/* Preserve the About public language switcher after replacing the legacy header. */

/* Keep the safe area inside the sticky header throughout scrolling. */
@media(max-width:760px){body[data-cike-unified-top] .cike-unified-top{height:calc(61px + var(--cike-safe-top,0px));min-height:calc(61px + var(--cike-safe-top,0px));padding-top:calc(4px + var(--cike-safe-top,0px))}}
