/* URETILDI: scripts/sync-shell.mjs (lyeli/src/styles.css kabuk kurallari). Elle duzenlemeyin;
   veli sitesine ozel duzeltmeler styles.css icindeki "kabuk" bolumune yazilir. */

:root {
  /* --- surfaces & ink (light) --- */
  --bg:            #F4F4FA;
  --bg-sunk:       #EAEAF4;
  --surface:       #FFFFFF;
  --surface-2:     #F6F6FC;
  --ink:           #1C2033;
  --ink-soft:      #333A55;
  --muted:         #676E90;
  --line:          #E3E3F0;
  --line-strong:   #CFCFE4;

  /* --- brand, straight off the logo --- */
  --brand:         #0F2D21;   /* the logo's deep green: the one brand colour */
  --blue:          #0F2D21;
  --violet:        #0F2D21;
  --orchid:        #0F2D21;
  --accent:        #0F2D21;
  --accent-hover:  #1C4A38;
  --accent-ink:    #FFFFFF;
  --accent-wash:   #E4ECE7;
  --grad:          linear-gradient(var(--brand), var(--brand));

  /* --- the AI mark's own gradient (YelAI + the lyeli wordmark logo) ---
     kept separate from --blue/--violet/--orchid above on purpose: this is
     the new logo gradient the reader chose, and it should be free to move
     independently of the discipline tints, which still borrow the old
     brand blue/orchid for --d-english/--d-arts further down. */
  --ai-1:          #0F2D21;
  --ai-2:          #0F2D21;
  --ai-3:          #0F2D21;
  --ai-grad:       linear-gradient(var(--brand), var(--brand));

  /* --- study colors, from the flashcard sample --- */
  --mint:          #0F2D21;
  --mint-soft:     #E4ECE7;
  --navy:          #22303F;
  --amber:         #E9A13B;
  --berry:         #D2455C;
  --berry-wash:    #FBE6EA;

  /* --- discipline tints (AP catalog) --- */
  --d-arts:        #0F2D21;
  --d-english:     #0F2D21;
  --d-history:     #C2743C;
  --d-math:        #0F2D21;
  --d-science:     #2A9CB8;
  --d-language:    #E0567F;
  --d-capstone:    #0F2D21;
  --d-career:      #0F2D21;
  --coral:         #E8734F;

  /* --- form --- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(28, 32, 51, .06), 0 2px 8px rgba(28, 32, 51, .05);
  --shadow-2: 0 4px 12px rgba(28, 32, 51, .08), 0 18px 40px rgba(45, 40, 90, .12);
  --shadow-3: 0 24px 70px rgba(30, 26, 66, .28);
  --glow:     0 14px 34px rgba(15, 45, 33, .28);
  --ring: 0 0 0 3px var(--accent-wash), 0 0 0 5px var(--accent);

  --maxw: 1180px;
  --header-h: 68px;

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-card: "Oswald", "Arial Narrow", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --font-hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --ease: cubic-bezier(.22, .68, .32, 1);
  --ease-out-back: cubic-bezier(.2, .9, .3, 1.28);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]):not([data-theme="dim"]) {
    --brand: #2F7D5B;
    --bg:          #000000;
    --bg-sunk:     #000000;
    --surface:     #0A0A0B;
    --surface-2:   #131315;
    --ink:         #F2F2F5;
    --ink-soft:    #CACAD3;
    --muted:       #9B9BA7;
    --line:        #1F1F23;
    --line-strong: #34343A;

    --blue:        #5FB48E;
    --violet:      #5FB48E;
    --orchid:      #5FB48E;
    --accent:      #5FB48E;
    --accent-hover:#7CC6A3;
    --accent-ink:  #0B0A1C;
    --accent-wash: #14261D;

    --ai-1:        #5FB48E;
    --ai-2:        #5FB48E;
    --ai-3:        #5FB48E;

    --mint:        #5FB48E;
    --mint-soft:   #14261D;
    --navy:        #D6E3EC;
    --amber:       #F0B45C;
    --berry:       #F27A8E;
    --berry-wash:  #3C1E27;

    --d-arts:      #5FB48E;
    --d-english:   #5FB48E;
    --d-history:   #DFA06A;
    --d-math:      #5FB48E;
    --d-science:   #55C3DE;
    --d-language:  #FF87A7;
    --d-capstone:  #5FB48E;
    --d-career:    #ADC95E;
    --coral:       #FF9569;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 6px 16px rgba(0, 0, 0, .45), 0 20px 46px rgba(0, 0, 0, .38);
    --shadow-3: 0 26px 80px rgba(0, 0, 0, .62);
    --glow:     0 14px 34px rgba(95, 180, 142, .3);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --brand: #2F7D5B;
  --bg:          #000000;
  --bg-sunk:     #000000;
  --surface:     #0A0A0B;
  --surface-2:   #131315;
  --ink:         #F2F2F5;
  --ink-soft:    #CACAD3;
  --muted:       #9B9BA7;
  --line:        #1F1F23;
  --line-strong: #34343A;

  --blue:        #5FB48E;
  --violet:      #5FB48E;
  --orchid:      #5FB48E;
  --accent:      #5FB48E;
  --accent-hover:#7CC6A3;
  --accent-ink:  #0B0A1C;
  --accent-wash: #14261D;

  --ai-1:        #5FB48E;
  --ai-2:        #5FB48E;
  --ai-3:        #5FB48E;

  --mint:        #5FB48E;
  --mint-soft:   #14261D;
  --navy:        #D6E3EC;
  --amber:       #F0B45C;
  --berry:       #F27A8E;
  --berry-wash:  #3C1E27;

  --d-arts:      #5FB48E;
  --d-english:   #5FB48E;
  --d-history:   #DFA06A;
  --d-math:      #5FB48E;
  --d-science:   #55C3DE;
  --d-language:  #FF87A7;
  --d-capstone:  #5FB48E;
  --d-career:    #ADC95E;
  --coral:       #FF9569;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, .45), 0 20px 46px rgba(0, 0, 0, .38);
  --shadow-3: 0 26px 80px rgba(0, 0, 0, .62);
  --glow:     0 14px 34px rgba(95, 180, 142, .3);

  color-scheme: dark;
}

:root[data-theme="dim"] {
  --brand: #2F7D5B;
  --bg:          #0C0D1A;
  --bg-sunk:     #07070F;
  --surface:     #16182B;
  --surface-2:   #1E2138;
  --ink:         #ECEDF7;
  --ink-soft:    #C7CAE0;
  --muted:       #949AC0;
  --line:        #262A45;
  --line-strong: #373C5E;

  --blue:        #5FB48E;
  --violet:      #5FB48E;
  --orchid:      #5FB48E;
  --accent:      #5FB48E;
  --accent-hover:#7CC6A3;
  --accent-ink:  #0B0A1C;
  --accent-wash: #14261D;

  --ai-1:        #5FB48E;
  --ai-2:        #5FB48E;
  --ai-3:        #5FB48E;

  --mint:        #5FB48E;
  --mint-soft:   #14261D;
  --navy:        #D6E3EC;
  --amber:       #F0B45C;
  --berry:       #F27A8E;
  --berry-wash:  #3C1E27;

  --d-arts:      #5FB48E;
  --d-english:   #5FB48E;
  --d-history:   #DFA06A;
  --d-math:      #5FB48E;
  --d-science:   #55C3DE;
  --d-language:  #FF87A7;
  --d-capstone:  #5FB48E;
  --d-career:    #ADC95E;
  --coral:       #FF9569;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 6px 16px rgba(0, 0, 0, .45), 0 20px 46px rgba(0, 0, 0, .38);
  --shadow-3: 0 26px 80px rgba(0, 0, 0, .62);
  --glow:     0 14px 34px rgba(95, 180, 142, .3);

  color-scheme: dark;
}

.lysearch input:focus-visible, .yelbar__input:focus-visible, .yc__form input:focus-visible { box-shadow: none; }

:root[data-theme="dark"] .cookiebar,
:root[data-theme="dim"] .cookiebar { background: var(--surface-2); color: var(--ink); }

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]):not([data-theme="dim"]) .cookiebar {
    background: var(--surface-2); color: var(--ink);
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}

.header__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.header__left, .header__right {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.header__right { justify-content: flex-end; }

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  transition: transform .3s var(--ease-out-back);
}

.brand:hover { transform: none; }

.brand__mark { height: 46px; width: auto; display: block; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(15, 45, 33, .22)); }

.brand:hover .brand__mark { filter: drop-shadow(0 4px 8px rgba(15, 45, 33, .22)); }

.iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  transition: background-color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}

.iconbtn:hover { background: var(--surface-2); border-color: var(--line); }

.iconbtn svg { width: 20px; height: 20px; }

.iconbtn:hover .avatar--guest { background: color-mix(in srgb, var(--accent) 14%, var(--accent-wash)); }

.menu { position: relative; }

.menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 236px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
  z-index: 40;
}

.menu__panel--left { right: auto; left: 0; transform-origin: top left; }

.menu:hover .menu__panel,
.menu:focus-within .menu__panel,
.menu.is-open .menu__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu__head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

.menu__name { font-weight: 700; font-size: .95rem; }

.menu__mail { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }

.menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r-xs);
  background: transparent;
  font-size: .9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color .14s var(--ease), color .14s var(--ease);
}

.menu__item:hover { background: var(--surface-2); color: var(--accent); }

.menu__item svg { width: 17px; height: 17px; flex: 0 0 auto; }

.menu__label {
  padding: 10px 10px 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.menu__sep { height: 1px; background: var(--line); margin: 6px 2px; }

.menu__item.is-on { color: var(--accent); background: var(--accent-wash); }

.menu__check { margin-left: auto; opacity: 0; }

.menu__item.is-on .menu__check { opacity: 1; }

.langmenu { max-height: min(70vh, 460px); overflow-y: auto; min-width: 250px; }

.langmenu .menu__native { margin-left: auto; color: var(--muted); font-size: .76rem; }

.menu__item svg.flag { width: 22px; height: 15px; }

.burger { display: none; }

.mobilenav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 20px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobilenav[hidden] { display: none; }

.mobilenav .navlink { width: 100%; text-align: left; padding: 11px 12px; }

.footer__brand { display: flex; flex-direction: column; gap: 10px; max-width: 30ch; }

.footer__brand svg, .footer__brand img { height: 38px; width: auto; display: block; align-self: flex-start; object-fit: contain; }

.quiz__qrow .iconbtn { flex: 0 0 auto; }

.swipebtns .iconbtn { flex: 0 0 auto; }

.pv-daynav .iconbtn { width: 34px; min-width: 34px; height: 34px; }

.pv-rangenav .iconbtn { width: 30px; min-width: 30px; height: 30px; }

.yeldock__head .iconbtn { min-width: 32px; height: 32px; flex: 0 0 auto; }

.yeldock__head .iconbtn svg { width: 18px; height: 18px; }

.yelhistory__head .iconbtn { min-width: 32px; height: 32px; flex: 0 0 auto; }

.yelhistory__head .iconbtn svg { width: 18px; height: 18px; }

@media (max-width: 1040px) {
.footer__brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 900px) {
.header__in { grid-template-columns: auto 1fr auto; }
.header__left .navlink, .header__right .navlink { display: none; }
.burger { display: inline-flex; }
}

.lysearch {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 2px solid var(--line);
  box-shadow: 0 6px 22px rgba(30,26,66,.08);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

.lysearch:focus-within {
  border-color: var(--accent); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30,26,66,.10);
  background: var(--surface);
}

.lysearch input {
  flex: 1; min-width: 0; border: 0; background: none; padding: 9px 4px;
  font: inherit; font-size: 1rem; color: var(--ink); outline: none;
}

.lysearch input::placeholder { color: var(--muted); }

.lysearch input::-webkit-search-cancel-button { display: none; }

.lysearch__mark {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--accent-wash); color: var(--accent);
}

.lysearch__mark svg { width: 18px; height: 18px; }

.lysearch__mark--mascot { background: linear-gradient(135deg, var(--accent-wash), var(--mint-soft)); overflow: hidden; }

.lysearch__mark--mascot svg { width: 30px; height: 30px; }

.lysearch__kbd { font-size: .7rem; color: var(--muted); padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; opacity: 0; transition: opacity .2s var(--ease); }

.lysearch:focus-within .lysearch__kbd { opacity: 1; }

.lysearch__clear, .lysearch__item, .yc__chip, .yc__x, .yc__send, .pk__navbtn, .dv__side-more, .dv__row, .privpick, .dvdrawer__x, .dv__slidecomm { border: 0; background: none; cursor: pointer; }

.lysearch__clear {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  color: var(--muted); background: var(--surface-2);
}

.lysearch__clear:hover { color: var(--ink); }

.lysearch__clear svg { width: 15px; height: 15px; }

.lysearch__clear[hidden] { display: none; }

.lysearch-wrap { position: relative; }

.lysearch__hint { margin-top: 10px; font-size: .8rem; color: var(--muted); text-align: center; }

.lysearch__drop {
  position: absolute; left: 0; right: 0; top: calc(100% - 26px); z-index: 60;
  max-height: min(520px, 70vh); overflow-y: auto; padding: 8px;
  border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-3); animation: vc-rise .18s var(--ease);
}

.lysearch-wrap--home .lysearch__drop { top: calc(100% - 22px); }

.lysearch__drop[hidden] { display: none; }

.lysearch__group + .lysearch__group { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 6px; }

.lysearch__glabel {
  display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px;
  font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

.lysearch__glabel .mono { font-weight: 600; letter-spacing: 0; text-transform: none; }

.lysearch__item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink);
}

.lysearch__item:hover, .lysearch__item:focus-visible { background: var(--accent-wash); outline: none; }

.lysearch__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--surface-2); color: var(--accent); }

.lysearch__icon svg { width: 17px; height: 17px; }

.lysearch__text { display: grid; gap: 1px; min-width: 0; flex: 1; }

.lysearch__text b { font-family: var(--font-display); font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lysearch__text small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lysearch__tag { flex: 0 0 auto; padding: 3px 8px; border-radius: var(--r-pill); background: var(--mint); color: var(--navy); font-size: .68rem; font-weight: 700; white-space: nowrap; }

.lysearch__none { padding: 18px; text-align: center; color: var(--muted); font-size: .9rem; }

@media (max-width: 720px) {
.lysearch input { font-size: .95rem; }
.lysearch__kbd { display: none; }
}

:root { --side-w: 240px; }

.header__in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: var(--header-h); padding-inline: 16px 18px;
}

.header .brand { padding: 4px 8px 4px 4px; margin-left: -4px; }

.header__search { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 720px; justify-self: start; width: 100%; }

.header__search .lysearch-wrap { flex: 1; min-width: 0; }

.lysearch-wrap--top .lysearch { padding: 3px 5px 3px 6px; border-width: 1.5px; box-shadow: none; background: var(--surface-2); }

.lysearch-wrap--top .lysearch:focus-within { background: var(--surface); box-shadow: 0 6px 18px rgba(30,26,66,.08); }

.lysearch-wrap--top .lysearch input { padding: 7px 4px; font-size: .94rem; }

.lysearch-wrap--top .lysearch__mark { width: 30px; height: 30px; }

.lysearch-wrap--top .lysearch__mark--mascot svg { width: 26px; height: 26px; }

.lysearch-wrap--top .lysearch__drop { top: calc(100% + 8px); }

.burger { width: 40px; padding: 0; }

.burger__lines { display: grid; gap: 4px; width: 18px; }

.burger__lines i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .22s var(--ease), opacity .18s var(--ease); }

body.has-mobilenav .burger__lines i:nth-child(1) { transform: translateY(6px) rotate(45deg); }

body.has-mobilenav .burger__lines i:nth-child(2) { opacity: 0; }

body.has-mobilenav .burger__lines i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sidebar {
  position: fixed; left: 0; top: var(--header-h); bottom: 0; z-index: 45;
  width: var(--side-w); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-right: 1px solid var(--line);
  scrollbar-width: thin;
}

body:has(.cookiebar:not([hidden])) .sidebar { top: calc(var(--header-h) + var(--cookie-h, 56px)); }

body:has(.cookiebar:not([hidden])) .header { top: var(--cookie-h, 56px); }

.sidebar__in { display: grid; gap: 14px; padding: 16px 12px 24px; }

.sidebar__group { display: grid; gap: 2px; }

.sidebar__label { padding: 8px 12px 4px; font-size: .64rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.sidebar__item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 13px; background: none; color: var(--ink-soft);
  font-weight: 600; font-size: .9rem; text-align: left; cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}

.sidebar__item:hover { background: var(--surface-2); color: var(--ink); transform: translateX(2px); }

.sidebar__icon {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}

.sidebar__icon svg { width: 18px; height: 18px; }

.sidebar__text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar__badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--orchid); color: #fff; font-size: .68rem; text-align: center; }

.sidebar__item.is-active { color: var(--accent); background: var(--accent-wash); }

.sidebar__item.is-active .sidebar__icon { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }

.sidebar__item.is-active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }

@media (max-width: 900px) {
:root { --side-w: 0px; }
.sidebar { display: none; }
.header__in { gap: 8px; padding-inline: 10px; }
.header .brand { padding: 2px 4px; margin-left: 0; }
.header .brand__mark { height: 34px; }
.lysearch-wrap--top .lysearch input { font-size: .9rem; padding: 6px 2px; }
.lysearch-wrap--top .lysearch__mark { width: 28px; height: 28px; }
.mobilenav {
    position: fixed; inset: 0; top: var(--header-h); z-index: 70; display: block;
    padding: 0; border: 0; background: none;
  }
body:has(.cookiebar:not([hidden])) .mobilenav { top: calc(var(--header-h) + var(--cookie-h, 56px)); }
.mobilenav__back { position: absolute; inset: 0; background: rgba(14,12,32,.45); backdrop-filter: blur(3px); animation: fade .2s var(--ease); }
.mobilenav__in {
    position: absolute; left: 0; top: 0; bottom: 0; width: min(330px, 88vw); overflow-y: auto;
    display: grid; gap: 14px; align-content: start; padding: 16px 12px calc(24px + env(safe-area-inset-bottom));
    background: var(--bg); border-right: 1px solid var(--line); box-shadow: var(--shadow-3);
    animation: slide-in .24s var(--ease);
  }
.mobilenav .sidebar__item.is-active::before { left: -12px; }
body.has-mobilenav { overflow: hidden; }
}

@media (max-width: 420px) {
.header .brand__mark { height: 29px; }
}

:root { --side-w: 170px; --dock-w: 84px; }

.header__in { grid-template-columns: 1fr minmax(0, 640px) 1fr; padding-inline: 16px; }

@media (min-width: 901px) {
.header__right { display: none; }
}

.header__lead { display: flex; align-items: center; gap: 4px; justify-self: start; min-width: 0; }

.header__search { justify-self: stretch; width: 100%; max-width: none; }

.header__right { justify-self: end; }

.lysearch__mark--ly { background: var(--surface); border: 1px solid var(--line); }

.lysearch__mark--ly svg { width: 20px; height: 20px; }

.lysearch:focus-within .lysearch__mark--ly { border-color: var(--line); }

.sidebar { overflow: hidden; }

.sidebar__in {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 12px 10px calc(10px + env(safe-area-inset-bottom));
}

.sidebar__grid {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 62px; align-content: start; gap: 8px; /* one column; each page button is as big as two foot buttons side by side */
}

.stile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px;
  min-height: 0; padding: 9px 10px 8px; overflow: hidden; text-align: left;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink);
  cursor: pointer;
  transition: transform .28s var(--ease-out-back), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.stile__wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 110% at 90% 8%, color-mix(in srgb, var(--tile-hue) 30%, transparent) 0%, transparent 62%),
    linear-gradient(155deg, color-mix(in srgb, var(--tile-hue) 12%, transparent) 0%, transparent 60%);
  transition: opacity .3s var(--ease);
}

.stile__icon {
  position: relative; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--tile-hue) 16%, var(--surface)); color: var(--tile-hue);
  transition: transform .4s var(--ease-out-back), background-color .25s var(--ease), color .25s var(--ease);
}

.stile__icon svg { width: 17px; height: 17px; }

.stile__name {
  position: relative; font-family: var(--font-display); font-weight: 600; font-size: .78rem; line-height: 1.15;
  letter-spacing: -.01em; overflow: hidden; max-width: 100%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.stile:hover, .stile:focus-visible {
  transform: translateY(-4px) scale(1.04); z-index: 2;
  box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--tile-hue) 50%, var(--line));
}

.stile:hover .stile__wash { opacity: 1.5; }

.stile:hover .stile__icon { transform: translateY(-3px) rotate(-8deg) scale(1.12); }

.stile:active { transform: translateY(-1px) scale(1.01); }

.stile.is-active { border-color: color-mix(in srgb, var(--tile-hue) 55%, var(--line)); }

.stile.is-active .stile__icon { background: var(--tile-hue); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--tile-hue) 35%, transparent); }

.stile.is-active .stile__name { color: var(--tile-hue); }

.stile.is-active .stile__wash { opacity: 1.6; }

.sidebar__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 0 0 auto; }

.sidebar__foot > .menu { min-width: 0; display: block; }

.sidebar__foot > .menu > .sbtn { width: 100%; }

.sbtn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 4px 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink-soft);
  cursor: pointer; min-width: 0; width: 100%; overflow: hidden;
  transition: transform .25s var(--ease-out-back), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.sbtn:hover, .sbtn:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--accent); color: var(--accent); z-index: 2; }

.sbtn.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }

.sbtn__icon { position: relative; width: 28px; height: 28px; display: grid; place-items: center; }

.sbtn__icon > svg { width: 20px; height: 20px; }

.sbtn__icon .flag { width: 24px; height: 16px; }

.sbtn__icon--avatar .avatar { width: 30px; height: 30px; box-shadow: 0 0 0 2px var(--accent); }

.sbtn__icon--avatar .avatar--leveled { box-shadow: none; }

.sbtn__icon .cart-count { top: -6px; right: -10px; }

.sbtn small { font-size: .64rem; font-weight: 700; letter-spacing: .02em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sbtn--hue { color: var(--ink-soft); }

.sbtn--hue .sbtn__icon { border-radius: 9px; background: color-mix(in srgb, var(--tile-hue) 16%, var(--surface)); color: var(--tile-hue); transition: transform .3s var(--ease-out-back), background-color .2s var(--ease), color .2s var(--ease); }

.sbtn--hue:hover, .sbtn--hue:focus-visible { border-color: color-mix(in srgb, var(--tile-hue) 55%, var(--line)); color: var(--tile-hue); }

.sbtn--hue:hover .sbtn__icon { transform: translateY(-2px) rotate(-8deg) scale(1.1); }

.sbtn--hue.is-active { color: var(--tile-hue); border-color: color-mix(in srgb, var(--tile-hue) 55%, var(--line)); background: color-mix(in srgb, var(--tile-hue) 10%, var(--surface)); }

.sbtn--hue.is-active .sbtn__icon { background: var(--tile-hue); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--tile-hue) 35%, transparent); }

.sidetoggle { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; color: var(--ink-soft); border-color: var(--line); margin-left: 4px; }

.sidetoggle svg { width: 22px; height: 22px; }

.sidetoggle:hover { color: var(--accent); background: var(--accent-wash); border-color: transparent; }

.sidetoggle__arrow { transition: transform .25s var(--ease); transform-origin: 14.5px 12px; }

body.side-closed .sidetoggle__arrow { transform: rotate(180deg); }

.sidebar { transition: transform .28s var(--ease), visibility .28s; }

body.side-closed .sidebar { transform: translateX(-100%); visibility: hidden; }

body.side-closed { --side-w: 0px; }

@media (max-width: 900px) {
.sidetoggle { display: none; }
}

.menu--up { position: relative; }

.sidebar .menu--up .menu__panel, .mobilenav .menu--up .menu__panel {
  top: auto; bottom: calc(100% + 8px); left: 0; right: auto; transform-origin: bottom left; min-width: 236px;
}

.sidebar .menu--up .menu__panel { position: fixed; left: 12px; bottom: 96px; top: auto; }

.sidebar .menu--up:hover .menu__panel, .sidebar .menu--up.is-open .menu__panel,
.mobilenav .menu--up:hover .menu__panel, .mobilenav .menu--up.is-open .menu__panel { transform: translateY(0) scale(1); }

.sidebar .menu--up .menu__panel, .mobilenav .menu--up .menu__panel { transform: translateY(6px) scale(.98); }

@media (max-height: 860px) {
.sidebar__in { gap: 8px; padding: 10px 8px calc(8px + env(safe-area-inset-bottom)); }
.sidebar__grid { gap: 6px; }
.stile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 7px; padding: 5px 7px; border-radius: 12px; }
.stile__icon { width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto; }
.stile__icon svg { width: 14px; height: 14px; }
.stile__name { font-size: .68rem; line-height: 1.12; }
.stile:hover .stile__icon { transform: rotate(-8deg) scale(1.12); }
.sidebar__foot { gap: 6px; }
.sbtn { padding: 5px 2px 4px; border-radius: 11px; gap: 2px; }
.sbtn__icon { width: 24px; height: 24px; }
.sbtn__icon > svg { width: 17px; height: 17px; }
.sbtn__icon--avatar .avatar { width: 26px; height: 26px; }
.sbtn small { font-size: .6rem; }
}

@media (max-width: 900px) {
.header__in { grid-template-columns: auto minmax(0, 1fr); padding-inline: 6px var(--dock-w); gap: 6px; }
.header__right { display: none; }
.header__lead { gap: 0; }
.header__search { width: 100%; }
.mobilenav__in { padding: 12px 10px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; width: min(340px, 92vw); }
.mobilenav .sidebar__grid { grid-template-rows: none; flex: 0 0 auto; min-height: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; }
.mobilenav .stile { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 84px; padding: 10px 6px 8px; border-radius: 14px; }
.mobilenav .stile__icon { width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto; }
.mobilenav .stile__icon svg { width: 16px; height: 16px; }
.mobilenav .stile__name { font-size: .7rem; line-height: 1.15; text-align: center; }
.mobilenav .stile:hover, .mobilenav .stile:focus-visible { transform: none; }
.mobilenav .sidebar__foot { flex: 0 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mobilenav .sbtn { padding: 9px 4px 8px; border-radius: 14px; gap: 4px; }
.mobilenav .sbtn:hover, .mobilenav .sbtn:focus-visible { transform: none; }
.mobilenav .sbtn__icon { width: 28px; height: 28px; }
.mobilenav .sbtn__icon > svg { width: 20px; height: 20px; }
.mobilenav .sbtn__icon--avatar .avatar { width: 30px; height: 30px; }
.mobilenav .sbtn small { display: block; font-size: .66rem; }
.mobilenav .menu--up .menu__panel { position: fixed; left: 12px; bottom: 90px; }
}

.xr__row .iconbtn { border-color: var(--line-strong); }

.xr__row .iconbtn.is-on { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }

@media (pointer: coarse) {
.header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.article__tocbtn { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 12px; cursor: pointer; transition: border-color .16s var(--ease), color .16s var(--ease); }

.article__tocbtn:hover { color: var(--accent); border-color: var(--accent); }

:root[data-theme="dark"] .coursecard--photo.coursecard--scene .coursecard__glyph {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ap-a) 74%, var(--surface)), color-mix(in srgb, var(--ap-b) 84%, var(--surface)));
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .coursecard--photo.coursecard--scene .coursecard__glyph {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ap-a) 74%, var(--surface)), color-mix(in srgb, var(--ap-b) 84%, var(--surface)));
  }
}

:root[data-theme="dark"] .coursecard--panel.coursecard--scene {
  background: linear-gradient(180deg, color-mix(in srgb, var(--ap-a) 74%, var(--surface)), color-mix(in srgb, var(--ap-b) 84%, var(--surface)));
}

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .coursecard--panel.coursecard--scene {
    background: linear-gradient(180deg, color-mix(in srgb, var(--ap-a) 74%, var(--surface)), color-mix(in srgb, var(--ap-b) 84%, var(--surface)));
  }
}

:root[data-theme="dark"] .topicbanner { background: linear-gradient(135deg, color-mix(in srgb, var(--ap-a) 74%, var(--surface)), color-mix(in srgb, var(--ap-b) 84%, var(--surface))); }

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .topicbanner { background: linear-gradient(135deg, color-mix(in srgb, var(--ap-a) 74%, var(--surface)), color-mix(in srgb, var(--ap-b) 84%, var(--surface))); }
}

.lysearch__item--word { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; cursor: pointer; }

.lysearch__wen { display: grid; gap: 1px; min-width: 0; }

.lysearch__wline { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }

.lysearch__wline b { font-family: var(--font-display); font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lysearch__ipa { color: var(--muted); font-family: var(--font-mono); font-size: .74rem; }

.lysearch__wmean { display: grid; gap: 1px; min-width: 0; text-align: right; }

.lysearch__wmean span { font-size: .88rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lysearch__wmean small { color: var(--muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

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

.sidebar .stile { flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px; padding: 0 10px; }

.sidebar .stile__name { font-size: .82rem; line-height: 1.1; }

.sidebar__grid { flex: 0 0 auto; }

.sidebar__ctx { flex: 1; min-height: 0; overflow-y: auto; margin-top: 4px; display: flex; flex-direction: column; gap: 6px;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }

.sidebar__ctx::-webkit-scrollbar { width: 5px; }

.sidebar__ctx::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 999px; }

.sidebar__ctxhead { padding: 4px 4px 0; font: 700 .62rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar__ctxgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }

.cbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; height: 52px; padding: 4px 2px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink-soft); cursor: pointer;
  transition: transform .2s var(--ease-out-back), border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }

.cbtn:hover, .cbtn:focus-visible { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }

.cbtn.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-wash); }

.cbtn__icon { display: grid; place-items: center; width: 20px; height: 20px; }

.cbtn__icon svg { width: 17px; height: 17px; }

.cbtn__lbl { max-width: 100%; font-size: .58rem; line-height: 1.1; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }

.mobilenav .sidebar__ctx { flex: 0 0 auto; overflow: visible; margin: 8px 0; }

.mobilenav .cbtn { height: 60px; }

.mobilenav .cbtn__lbl { font-size: .66rem; }

.sidebar__ctxhead, .sidebar__ctxgrid { flex: 0 0 auto; }

.cbtn__lbl { font-size: .56rem; word-break: normal; overflow-wrap: break-word; hyphens: auto; }

.sidebar__ctxgrid { flex: 1 1 auto; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(52px, 1fr); }

.cbtn { height: auto; min-height: 52px; }

.cbtn__icon svg { width: 19px; height: 19px; }

.mobilenav .sidebar__ctxgrid { grid-auto-rows: 60px; }

.sidebar__ctxgrid { flex: 1 1 auto; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(52px, 1fr); }

.cbtn { height: auto; min-height: 52px; }

.cbtn__icon svg { width: 19px; height: 19px; }

.mobilenav .sidebar__ctxgrid { grid-auto-rows: 60px; }

.sidebar__ctxgrid { grid-auto-rows: minmax(40px, 1fr); }

.cbtn { min-height: 40px; gap: 2px; }

.cbtn__icon { height: 18px; }

.cbtn__icon svg { width: 17px; height: 17px; }

.brand__mark { filter: none; }

.brand:hover .brand__mark { filter: none; }

.stile[data-route="#/"]                 { --tile-hue: #7C4DDB !important; }

.stile[data-route="#/discover"], .shelf .tile[data-route="#/discover"]                 { --tile-hue: var(--hue-disc) !important; }

.stile[data-route="#/discover"].is-active .stile__icon { color: var(--hue-disc-ink); }

.stile[data-route="#/sat"], .shelf .tile[data-route="#/sat"]                           { --tile-hue: #2F6BFF !important; }

.stile[data-route="#/english"], .shelf .tile[data-route="#/english"]                   { --tile-hue: #17A765 !important; }

.stile[data-route="#/planner/progress"], .shelf .tile[data-route="#/planner/progress"] { --tile-hue: #E5303B !important; }

.stile[data-route="#/planner"], .shelf .tile[data-route="#/planner"]                   { --tile-hue: #EC4899 !important; }

.stile[data-route] .stile__wash, .shelf .tile[data-route] .tile__wash {
  background:
    radial-gradient(90% 110% at 90% 8%, color-mix(in srgb, var(--tile-hue) 44%, transparent) 0%, transparent 62%),
    radial-gradient(70% 80% at 6% 100%, color-mix(in srgb, var(--tile-hue) 22%, transparent) 0%, transparent 65%),
    linear-gradient(155deg, color-mix(in srgb, var(--tile-hue) 14%, transparent) 0%, transparent 60%);
  opacity: 1;
}

.sbtn[data-route="#/upgrade"]    { --tile-hue: #7C4DDB !important; }

.sbtn[data-route="#/my-courses"] { --tile-hue: #1E3A8A !important; }

:root[data-theme="dark"] .vc__introcard .card3d__face--front .vc__introterm,
:root[data-theme="dim"] .vc__introcard .card3d__face--front .vc__introterm { color: var(--navy); }

@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]):not([data-theme="dim"]) .vc__introcard .card3d__face--front .vc__introterm { color: var(--navy); }
}

.sp-sbox .lysearch { background: var(--surface); }

.sp-sbox .lysearch__drop { top: calc(100% + 6px); }

.sp-sbox .lysearch__item.is-active { background: var(--accent-wash); }

.sp-sbox .lysearch__tag { background: var(--accent-wash); color: var(--accent); }

.sp-select__btn .lysearch__icon { width: 30px; height: 30px; border-radius: 9px; }

.sp-select__list .lysearch__item { cursor: pointer; }

.sp-select__list .lysearch__item.is-picked { background: var(--accent-wash); }

.sp-select__list .lysearch__item.is-picked b { color: var(--accent); }

:root {
  --sb-thumb: color-mix(in srgb, var(--accent) 38%, var(--surface-2));
  --sb-thumb-hover: color-mix(in srgb, var(--accent) 70%, var(--surface-2));
}

.lysearch__drop, .sp-select__list, .modal, .overlay { scrollbar-color: var(--sb-thumb) transparent; }

.sp-sbox .lysearch__drop, .sp-select__list { transform-origin: top center; animation: sp-drop .38s cubic-bezier(.16, 1, .3, 1); }

body.is-satmock #yeldock, body.is-satmock #cookiebar, body.is-satmock #header, body.is-satmock #sidebar, body.is-satmock #footer, body.is-satmock #mobilenav { display: none !important; }

.smmenu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 190px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3, 0 10px 30px rgba(0,0,0,.2)); display: grid; z-index: 5; }

.smmenu button { text-align: left; padding: 10px 12px; border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--ink); font: inherit; }

.smmenu button:hover { background: var(--surface-2); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes vc-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@keyframes sp-drop { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
