body.ax-studio.sec-yks:not(.side-mini) #app { --ax-sidebar: 260px; }
body.ax-studio.sec-yks #app { --ax-line:#56453a; --ax-panel:#25211e; --ax-ink:#fff1e5; --ax-soft:#deccbd; }
body.ax-studio.sec-yks #app #sidebar { background:#1a1715; }
body.ax-studio.sec-yks #app #sidebar .brand-row { padding-block:.9rem; }
body.ax-studio.sec-yks #app #sidebar .ax-nav { padding:1rem .85rem; }
body.ax-studio.sec-yks #app #sidebar #n-dash { min-height:3rem; border:1px solid #655042; }
body.ax-studio.sec-yks #app #sidebar .workspace-shortcuts { grid-template-columns:1fr; gap:.25rem; }
body.ax-studio.sec-yks #app #sidebar .workspace-shortcuts button {
  min-height:2.65rem; flex-direction:row; justify-content:start; gap:.75rem; padding:.45rem .7rem;
  font-size:.87rem; background:transparent; border-color:transparent;
}
body.ax-studio.sec-yks #app #sidebar .workspace-shortcuts button.on { background:#4c3325; border-color:#745643; }
body.ax-studio.sec-yks #app #sidebar .side-top { background:#251f1b; border-top:1px solid #544133; }
body.ax-studio.sec-yks #app .ax-workbar { background:#1b1816; min-height:3.65rem; padding-block:.7rem; }
body.ax-studio.sec-yks #app .ax-workbar #axPageName { font-size:1.16rem; }
.yks-board { display:grid; gap:1.15rem; color:#fff1e5; container-type:inline-size; }
.yks-board h2,.yks-board h3 { margin:0; font-family:Georgia,serif; }
.yks-board p { margin:.4rem 0; color:#dfccbd; }
.yks-board-head { display:flex; align-items:end; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.yks-board-head h2 { font-size:clamp(2.3rem,5vw,4.1rem); line-height:1; }
.yks-board-head p:first-child { color:#eab888; }
.yks-board-hero { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:stretch; overflow:hidden; border:1px solid #77563f; border-radius:10px; background:#2b221c; }
.yks-board-hero img { width:100%; height:100%; min-height:13rem; object-fit:cover; }
.yks-board-hero-copy { padding:clamp(1.1rem,4vw,3rem); align-self:center; }
.yks-board-hero h3 { font-size:clamp(1.6rem,3.2vw,3rem); line-height:1.1; }
.yks-board :is(.yks-primary,.yks-quiet,.yks-stat,.yks-board-links button) { font:inherit; cursor:pointer; border-radius:5px; padding:.55rem .85rem; }
.yks-board .yks-primary { margin-top:.65rem; background:#e6ac80; color:#241812; border:1px solid #e6ac80; font-weight:700; }
.yks-board :is(.yks-quiet,.yks-board-links button) { color:#f1c6a5; background:#29211c; border:1px solid #715541; }
.yks-board :is(.yks-quiet,.yks-board-links button,.yks-stat):hover { background:#463226; }
.yks-board-columns { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:1rem; align-items:stretch; }
.yks-board-card { display:flex; flex-direction:column; gap:.5rem; padding:clamp(.9rem,2vw,1.4rem); min-width:0; border:1px solid #574538; border-radius:8px; background:#24201d; }
.yks-board-card h3 { font-size:1.25rem; }
.yks-board-card ul { margin:0; padding-inline-start:1.2rem; overflow-wrap:anywhere; }
.yks-board-card .yks-quiet { margin-top:auto; align-self:start; }
.yks-board .yks-stat { display:flex; align-items:center; gap:.6rem; text-align:left; border:1px solid #574538; background:#302720; color:#fff1e5; }
.yks-board .yks-stat b,.yks-net { color:#f0bd96; font-size:1.4rem; }
.yks-board-goal { display:grid; align-items:center; grid-template-columns:minmax(0,1fr) minmax(4rem,1fr) auto; }
.yks-board-goal progress { accent-color:#e6ac80; width:100%; }
.yks-board-links { display:flex; flex-wrap:wrap; gap:.5rem; }
.yks-board-details { padding:.8rem 1rem; border:1px solid #624b3c; border-radius:6px; background:#241e1a; }
.yks-board-details summary { cursor:pointer; color:#edbd98; }
@container (max-width:680px) {
 .yks-board-columns { grid-template-columns:1fr; }
 .yks-board-hero { grid-template-columns:1fr; }
 .yks-board-hero img { min-height:0; aspect-ratio:2.55; }
 .yks-board-goal { grid-template-columns:1fr; }
}

@media (max-width: 1100px) {
  body.ax-studio.sec-yks #app .ax-workspace { margin-left: 0; width: 100%; }
  body.ax-studio.sec-yks #app #view { min-width: 0; }
  body.ax-studio.sec-yks #app #sidebar { width: min(19rem,86vw); }
  body.ax-studio.sec-yks #app .mtop { background: #1b1816 !important; }
}
@media (max-width: 900px) {
  body.ax-studio.sec-yks #app #view { padding: 1rem .875rem calc(5.75rem + env(safe-area-inset-bottom)) !important; }
  body.ax-studio.sec-yks #app .ax-workbar { min-height: 0; padding: .5rem .875rem; }
  body.ax-studio.sec-yks #app #bnav {
    display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
    background: #1b1816 !important; border-color: #624939 !important;
  }
  body.ax-studio.sec-yks #app #bnav button { min-width: 0; color: #e0cbb9; line-height: 1.2; }
  body.ax-studio.sec-yks #app #bnav button.on { color: #ffd5b0 !important; background: #4c3325; }
  .yks-board { min-width: 0; gap: .8rem; overflow-wrap: anywhere; }
  .yks-board-hero { grid-template-columns: minmax(0,1fr); }
  .yks-board-hero img { order: -1; height: auto; min-height: 0; aspect-ratio: 2.55; }
  .yks-board-hero-copy { padding: 1rem; }
  .yks-board-columns,.yks-board-goal { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .yks-board-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* A flat, icon-led index for frequently used study tools. */
body.ax-studio.sec-yks #app #sidebar .yks-directory {
  padding: .5rem .85rem 1rem;
}
body.ax-studio.sec-yks #app #sidebar .directory-group {
  margin: 0;
  padding: .7rem 0;
  border-top: 1px solid #44372f;
}
body.ax-studio.sec-yks #app #sidebar .directory-group:first-child { border-top: 0; }
body.ax-studio.sec-yks #app #sidebar .directory-group h2 {
  margin: 0 .7rem .35rem;
  color: #dfb89d;
  font: 650 .72rem/1.4 system-ui,sans-serif;
  letter-spacing: .045em;
}
body.ax-studio.sec-yks #app #sidebar .directory-group > button {
  min-height: 2.6rem;
  width: 100%;
  margin: .12rem 0;
  padding-inline: .65rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  text-align: start;
}
body.ax-studio.sec-yks #app #sidebar .directory-group > button.on {
  color: #fff0df;
  border-color: #795741;
  background: #392a21;
  box-shadow: none;
}
body.ax-studio.sec-yks #app #sidebar .directory-group > button .ico { color: #dfaa83; }
body.ax-studio.sec-yks #app #sidebar .directory-group .ax-nav-group { border-bottom-color: #44372f; }
@media (min-width: 1101px) {
  body.ax-studio.sec-yks.side-mini #app #sidebar .directory-group h2 { display: none; }
}
@media (max-width: 1100px) {
  body.ax-studio.sec-yks #app #sidebar .directory-group > button { min-height: 44px; }
}

/* A single study spread, with the directory as its persistent index. */
body.ax-studio.sec-yks #app #view:has(.yks-board) { max-width: 1540px; }
.yks-board { gap: clamp(.9rem,2vw,1.65rem); }
.yks-board-head { padding-bottom: .75rem; border-bottom: 1px solid #554339; }
.yks-board-head h2 { font-size: clamp(2.7rem,6vw,5rem); letter-spacing: -.035em; }
.yks-board-head p:last-child { margin-bottom: 0; }
.yks-board-hero {
  grid-template-columns: minmax(0,1fr) minmax(0,1.45fr);
  background: #272019;
  border-radius: .4rem;
}
.yks-board-hero-copy { padding: clamp(1.15rem,3vw,3rem); }
.yks-board-hero h3 { max-width: 12ch; font-size: clamp(2rem,4vw,3.65rem); }
.yks-board-hero picture { display: block; min-height: 0; overflow: hidden; }
.yks-board-hero img { display: block; transition: transform .45s ease; }
@media (hover:hover) {
  .yks-board-hero:hover img { transform: scale(1.035); }
}
.yks-board-columns { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: .95rem 1.3rem; }
.yks-board-plan { grid-row: span 2; }
.yks-board-card { border-radius: .4rem; }
.yks-board-card h3 { font-size: clamp(1.2rem,2vw,1.65rem); }
.yks-timeline { list-style: none; padding: 0; margin: .25rem 0 .7rem; }
.yks-timeline li { position: relative; padding: .65rem .65rem .65rem 1.35rem; border-bottom: 1px solid #574438; overflow-wrap: anywhere; }
.yks-timeline li::before { content: ""; position: absolute; left: .25rem; top: 1.13rem; width: .42rem; height: .42rem; border: 1px solid #e0a77f; border-radius: 50%; }
.yks-review-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.yks-review-panel h3 { grid-column: 1/-1; }
.yks-review-panel .yks-stat { min-width: 0; flex-wrap: wrap; }
.yks-exam-panel .yks-quiet { margin-top: .3rem; }
.yks-board .yks-primary:focus-visible,.yks-board button:focus-visible { outline: 2px solid #ffe0be; outline-offset: 3px; }
@container (max-width: 710px) {
  .yks-board-hero,.yks-board-columns { grid-template-columns: minmax(0,1fr); }
  .yks-board-plan { grid-row: auto; }
  .yks-board-hero picture { order: -1; }
  .yks-board-hero img { height: auto; max-height: 15rem; aspect-ratio: 16/8; }
}
@media (prefers-reduced-motion: reduce) {
  .yks-board-hero img { transition: none; }
  .yks-board-hero:hover img { transform: none; }
}

.yks-review-page { display: grid; gap: 1rem; max-width: 74rem; margin-inline: auto; }
.yks-review-head {
  padding: clamp(1rem,3vw,2.5rem);
  border: 1px solid #71513e;
  border-radius: .5rem;
  background: linear-gradient(105deg,#32241d,#1c1815);
}
.yks-review-head h2 { margin: 0 0 .4rem; font: 600 clamp(2rem,5vw,3.5rem)/1.1 Georgia,serif; color: #fff0dd; }
.yks-review-head p,.yks-review-row p { margin: 0; color: #d5bdab; }
.yks-review-page > section { display: grid; gap: .65rem; }
.yks-review-row {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem;
  padding: 1rem; border: 1px solid #5c4637; border-radius: .45rem; background: #251e19;
}
.yks-review-row > div:first-child { flex: 1 1 20rem; min-width: 0; overflow-wrap: anywhere; }
.yks-review-row small { color: #e5ad83; }
.yks-review-row h3 { color: #fff0dd; margin: .25rem 0 .45rem; font-size: 1.1rem; }
.yks-review-actions { display: flex; gap: .45rem; flex-wrap: wrap; }
.yks-review-page > button { justify-self: start; }
.yks-review-page button:focus-visible { outline: 2px solid #ffcfaa; outline-offset: 3px; }
@media (max-width: 520px) {
  .yks-review-actions { width: 100%; }
  .yks-review-actions > button { flex: 1 1 auto; min-height: 44px; }
}

.yks-course-scene {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: .3rem;
}
.yks-board :is(.yks-primary,.yks-quiet,.yks-stat) { min-height: 44px; }
.yks-board h3, .yks-board p { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .yks-board-hero-copy { order: -2; }
  .yks-board-hero picture { max-height: 8rem; }
  .yks-board-head .yks-quiet { justify-self: start; }
}
@media (prefers-reduced-motion: no-preference) {
  .yks-board :is(.yks-primary,.yks-quiet,.yks-stat) { transition: background-color .16s ease, border-color .16s ease; }
}
