/* A focused learning demo, a compact history explorer, and role-specific workdays. */
.learning-lab { position: relative; isolation: isolate; overflow: hidden; background: #f6f6f4; }
.learning-lab > :not(.lab-parallax) { position: relative; z-index: 1; }
.lab-parallax { position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
.lab-parallax img { position: absolute; top: 19%; right: -5%; width: min(58%,31rem); height: auto; opacity: .075; filter: grayscale(1); mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse at center,#000 26%,transparent 68%); mask-image: radial-gradient(ellipse at center,#000 26%,transparent 68%); transform: translate3d(0,var(--lab-parallax-y,0px),0); }
.learning-lab-grid { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: clamp(1.8rem,3vw,3rem); }
.training-guide { min-width: 0; margin-top: 1.8rem; padding: 1.35rem; border: 1px solid #c9cfcb; background: #fff; color: #171a19; }
.training-heading h3, .history-heading h3 { margin-top: .35rem; font-size: clamp(1.4rem,2vw,1.9rem); font-weight: 620; letter-spacing: -.055em; line-height: 1.15; }
.training-heading > p:last-child, .history-heading > p:last-child { margin-top: .38rem; color: #68716c; font-size: .81rem; line-height: 1.5; }
.training-stage-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: .25rem; margin-top: 1.35rem; padding: .25rem; background: #f1f2ef; }
.training-stage-nav button { min-height: 2.4rem; border: 0; background: transparent; color: #5e6762; font-size: .79rem; font-weight: 650; }
.training-stage-nav button[aria-pressed="true"] { background: #1a1d1b; color: #fff; }
.training-stage-nav span { margin-right: .2rem; font-size: .64rem; font-variant-numeric: tabular-nums; }
.no-js .training-stage-nav { display: none; }
.training-stage { min-height: 13.2rem; padding: 1.25rem 0 1rem; }
.training-prompt { width: fit-content; margin-left: auto; padding: .48rem .75rem; border-radius: 1.1rem; background: #191c1a; color: #fff; font-size: .72rem; line-height: 1.4; }
.training-status { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: 1rem; padding-bottom: .45rem; border-bottom: 1px solid #e1e4e1; color: #808984; font-size: .72rem; }
.training-status span { display: flex; align-items: center; gap: .4rem; }
.training-status i { width: .35rem; height: .35rem; border-radius: 50%; background: #292c2a; }
.training-status button { padding: .1rem 0; border: 0; border-bottom: 1px solid #bbc1bc; background: transparent; color: #4e5953; font-size: .71rem; }
.training-sentence { min-height: 4.7rem; padding: 1.2rem 0 .8rem; border-bottom: 1px solid #ebedeb; font-size: clamp(1.2rem,1.65vw,1.52rem); line-height: 1.4; letter-spacing: -.035em; }
.training-ending { display: inline-flex; align-items: baseline; gap: .35em; min-width: 7.1ch; white-space: nowrap; opacity: 1; transform: translateY(0); transition: opacity .25s, transform .25s; }
.training-ending.is-fading { opacity: 0; transform: translateY(-.2em); }
.training-ending strong { font-weight: 650; }
.training-ending small { padding: .12rem .34rem; border: 1px solid #dedfdd; border-radius: 1rem; color: #636b66; font-size: .65rem; font-weight: 650; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.training-explain { margin-top: .85rem; color: #626a65; font-size: .78rem; line-height: 1.55; }
.training-task { padding: .75rem .9rem; background: #f3f4f1; color: #303632; font-size: .83rem; line-height: 1.45; }
.training-task span { display: block; margin-bottom: .2rem; color: #6d7670; font-size: .63rem; font-weight: 750; letter-spacing: .11em; }
.training-choose { margin-top: .9rem; font-size: .77rem; font-weight: 700; }
.training-replies { display: grid; gap: .45rem; margin-top: .45rem; }
.training-replies button { display: flex; align-items: baseline; gap: .7rem; width: 100%; padding: .56rem .7rem; border: 1px solid #d8dcd8; background: #fff; color: #252c27; text-align: left; font-size: .77rem; line-height: 1.4; }
.training-replies button:hover, .training-replies button[aria-pressed="true"] { border-color: #343a36; background: #f4f5f2; }
.training-replies button span { font-weight: 750; }
.training-feedback { margin-top: .55rem; color: #333c35; font-size: .73rem; font-weight: 650; }
.training-equation { padding: .95rem .5rem; border-top: 1px solid #292f2a; border-bottom: 1px solid #292f2a; font-family: Georgia,'Times New Roman',serif; font-size: clamp(1.35rem,2.1vw,2rem); line-height: 1.3; text-align: center; white-space: nowrap; }
.training-equation sub { font-size: .55em; }
.training-flow { display: flex; align-items: center; justify-content: space-between; gap: .35rem; margin-top: 1rem; }
.training-flow span { display: grid; place-items: center; min-height: 2.7rem; padding: .4rem .25rem; border: 1px solid #d8dcd8; color: #4f5852; font-size: .65rem; line-height: 1.2; text-align: center; }
.training-flow b { color: #7c857f; font-weight: 400; }
.training-sources { display: flex; flex-wrap: wrap; gap: .15rem .7rem; margin-top: .75rem; padding-top: .65rem; border-top: 1px solid #e5e7e4; color: #727b75; font-size: .67rem; line-height: 1.4; }
.training-sources a { color: #2b3630; text-decoration: underline; text-underline-offset: 3px; }

.history-explorer { min-width: 0; margin-top: 1.8rem; padding: 1.35rem 0 0; }
.history-heading { padding-bottom: 1.35rem; border-bottom: 1px solid #c7cec7; }
.history-spotlight { min-height: 20rem; padding: 1.35rem 0 1.15rem; }
.history-overline { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.history-overline span:first-child { color: #242c27; font-size: clamp(1.65rem,2.45vw,2.35rem); font-weight: 660; letter-spacing: -.06em; font-variant-numeric: tabular-nums; line-height: 1; }
.history-overline span:last-child { color: #6e786f; font-size: .67rem; font-weight: 750; letter-spacing: .11em; text-align: right; }
.history-main { display: grid; grid-template-columns: minmax(0,1fr) 6.4rem; gap: 1rem; align-items: center; margin-top: .9rem; }
.history-spotlight h4 { max-width: 25rem; font-size: clamp(1.35rem,2vw,1.85rem); font-weight: 570; line-height: 1.2; letter-spacing: -.048em; }
.history-story p { max-width: 32rem; margin-top: .6rem; color: #58625c; font-size: .82rem; line-height: 1.55; }
.history-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; width: 6.4rem; height: 6.4rem; border: 1px solid #ccd3cc; background: rgba(255,255,255,.65); color: #2d3831; text-align: center; }
.history-art svg { width: 4.8rem; height: 4.8rem; }
.history-art img { width: 2.3rem; height: 2.3rem; object-fit: contain; }
.history-art span { max-width: 5.7rem; font-size: .7rem; font-weight: 760; line-height: 1.1; letter-spacing: -.02em; }
.history-art small { font-size: .46rem; font-weight: 700; letter-spacing: .09em; }
.history-art--claude img, .history-art--claude-code img { width: 2.8rem; height: 2.8rem; }
.history-art--claude span, .history-art--claude-code span { font-family: Georgia,serif; font-size: .84rem; font-weight: 500; }
.history-art--grok img { width: 2.8rem; height: 2.8rem; }
.history-art--gemini img { width: 3rem; height: 2.3rem; }
.history-art--gemini span { color: #3567a7; }
.history-art--vocabulary .history-art-quote { height: 2.2rem; font-family: Georgia,serif; font-size: 3.7rem; line-height: 1; font-weight: 400; }
.history-art .history-art-type { font-size: 2.4rem; font-weight: 580; letter-spacing: -.1em; }
.history-art .history-art-deepseek { color: #3d5ac5; }
.history-term { display: grid; grid-template-columns: auto auto minmax(0,1fr); gap: .35rem .65rem; align-items: baseline; margin-top: 1.1rem; padding-top: .7rem; border-top: 1px solid #d4dbd4; }
.history-term span { color: #768078; font-size: .58rem; font-weight: 790; letter-spacing: .1em; }
.history-term strong { color: #1e2b22; font-size: .77rem; font-weight: 760; }
.history-term small { color: #68736a; font-size: .68rem; line-height: 1.4; }
.history-source { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .65rem; }
.history-source a { padding-bottom: .1rem; border-bottom: 1px solid #88978b; color: #334239; font-size: .74rem; font-weight: 680; }
.history-source a:hover { color: #111; border-color: #111; }
.history-controls { display: flex; align-items: center; justify-content: space-between; padding: .65rem 0; border-top: 1px solid #c7cec7; border-bottom: 1px solid #c7cec7; }
.history-controls > span { color: #647066; font-size: .72rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.history-controls div { display: flex; gap: .45rem; }
.history-controls button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid #b9c2b9; border-radius: 50%; background: transparent; color: #202a23; font-size: 1.15rem; line-height: 1; }
.history-controls button:hover:not(:disabled) { border-color: #202a23; background: #202a23; color: #fff; }
.history-rail-wrap { overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: #aab8aa #e5e9e4; scrollbar-width: thin; }
.history-rail { position: relative; display: flex; width: max-content; min-width: 100%; gap: 0; margin: 0; padding: 1.4rem .25rem .65rem; list-style: none; }
.history-rail::before { content: ''; position: absolute; top: 1.74rem; right: 0; left: 0; height: 1px; background: #9fab9e; }
.history-rail li { min-width: 6.3rem; }
.history-point { position: relative; display: flex; flex-direction: column; gap: .18rem; width: 100%; min-height: 4rem; padding: 0 .35rem 0 0; border: 0; background: transparent; color: #69756b; text-align: left; }
.history-point-dot { z-index: 1; display: block; width: .72rem; height: .72rem; border: 1px solid #809081; border-radius: 50%; background: #f6f6f4; }
.history-point--agent .history-point-dot { border-radius: 2px; background: #dce3dc; }
.history-point[aria-pressed="true"] .history-point-dot { background: #24342a; border-color: #24342a; box-shadow: 0 0 0 .2rem #dce4dc; }
.history-point small { margin-top: .45rem; font-size: .62rem; line-height: 1.1; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-point strong { max-width: 6rem; font-size: .72rem; line-height: 1.2; font-weight: 570; }
.history-point[aria-pressed="true"] { color: #19261d; }
.history-point[aria-pressed="true"] strong { font-weight: 750; }
.history-point:hover { color: #111; }
.history-footnote { margin-top: .55rem; color: #788079; font-size: .69rem; line-height: 1.45; }

.sample-workday { min-width: 0; padding: 1.5rem; background: #fff; color: #222a25; }
.sample-heading h3 { margin-top: .25rem; font-size: 1.42rem; font-weight: 680; letter-spacing: -.055em; line-height: 1.15; }
.sample-heading p { margin-top: .26rem; color: #68736a; font-size: .76rem; }
.sample-role-picker { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: 1rem; }
.sample-role-picker button { min-height: 2.2rem; padding: .35rem .6rem; border: 1px solid #cbd3cb; background: #fff; color: #445047; font-size: .72rem; font-weight: 700; }
.sample-role-picker button[aria-pressed="true"] { border-color: #202b23; background: #202b23; color: #fff; }
.sample-role-picker button:hover:not([aria-pressed="true"]) { border-color: #5d6a60; }
.sample-display { display: grid; grid-template-columns: minmax(9rem,.9fr) minmax(0,1.1fr); gap: 1.1rem; align-items: center; margin-top: 1rem; }
.sample-chart svg { display: block; width: min(100%,15rem); height: auto; overflow: visible; }
.sample-chart path { opacity: .82; cursor: pointer; transform-origin: 130px 130px; transition: opacity .2s, transform .2s; }
.sample-chart path.is-selected { opacity: 1; transform: scale(1.025); }
.sample-chart svg text { fill: #334039; font: 750 12px/1 Arial,sans-serif; letter-spacing: 1.1px; }
.sample-chart svg #workday-center-value { font-size: 20px; letter-spacing: -.8px; }
.sample-chart svg .sample-center-caption { fill: #708076; font-size: 8px; letter-spacing: 1.3px; }
.sample-role-name { margin-bottom: .5rem; color: #3c4940; font-size: .79rem; font-weight: 720; }
.sample-legend { display: grid; gap: .18rem; margin: 0; padding: 0; list-style: none; }
.sample-legend button { display: grid; grid-template-columns: .55rem minmax(0,1fr) auto; gap: .5rem; align-items: center; width: 100%; padding: .3rem 0; border: 0; border-bottom: 1px solid #edf0ec; background: transparent; color: #5e6a60; text-align: left; font-size: .7rem; }
.sample-legend button[aria-pressed="true"] { color: #1c271f; font-weight: 700; }
.sample-legend button i { display: block; width: .5rem; height: .5rem; border-radius: 50%; }
.sample-legend button strong { font-variant-numeric: tabular-nums; }
.sample-task { margin-top: 1.15rem; padding: .8rem .9rem; border-left: 3px solid var(--task-color,#3d5ac5); background: color-mix(in srgb,var(--task-color,#3d5ac5) 8%,white); }
.sample-task > span { display: block; color: #44524a; font-size: .62rem; font-weight: 750; letter-spacing: .1em; }
.sample-task strong { display: block; margin-top: .2rem; font-size: .86rem; line-height: 1.35; }
.sample-task p { margin-top: .28rem; color: #58645b; font-size: .74rem; line-height: 1.5; }
.sample-note { margin-top: .9rem; padding-top: .65rem; border-top: 1px solid #e7ebe7; color: #647067; font-size: .72rem; line-height: 1.5; }
.sample-note strong { margin-right: .4rem; color: #3e4e43; font-size: .6rem; letter-spacing: .09em; }
.no-js .sample-role-picker { display: none; }

@media (max-width: 1100px) {
  .sample-display { grid-template-columns: 1fr; }
  .sample-chart svg { width: min(100%,11rem); margin-inline: auto; }
  .sample-legend { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .learning-lab-grid { grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 1.2rem; }
  .training-guide { padding: 1rem; }
  .training-stage-nav button { font-size: .7rem; }
  .training-stage-nav span { display: none; }
  .training-flow span { font-size: .58rem; }
  .history-overline { display: block; }
  .history-overline span:last-child { display: block; margin-top: .5rem; text-align: left; }
  .history-spotlight { min-height: 22rem; }
  .session-top { grid-template-columns: 1fr; }
  .sample-display { grid-template-columns: minmax(10rem,.8fr) minmax(0,1.2fr); }
  .sample-chart svg { width: min(100%,14rem); }
}
@media (max-width: 700px) {
  .learning-lab-grid { grid-template-columns: 1fr; }
  .lab-parallax img { top: 35%; right: -24%; width: 88%; opacity: .045; }
  .training-guide, .history-explorer { margin-top: 1.2rem; }
  .history-explorer { padding-top: 1.4rem; border-top: 1px solid #c7cec7; }
  .history-overline { display: flex; }
  .history-overline span:last-child { display: inline; margin: 0; text-align: right; }
  .history-spotlight { min-height: 19rem; }
  .history-main { grid-template-columns: minmax(0,1fr) 5.3rem; gap: .7rem; }
  .history-art { width: 5.3rem; height: 5.3rem; }
  .history-art svg { width: 4rem; height: 4rem; }
  .history-term { grid-template-columns: auto 1fr; }
  .history-term small { grid-column: 1 / -1; }
  .sample-display { grid-template-columns: minmax(8rem,.75fr) minmax(0,1.25fr); gap: .7rem; }
  .sample-chart svg { width: 100%; }
}
@media (max-width: 410px) {
  .sample-display { grid-template-columns: 1fr; }
  .sample-chart svg { width: min(100%,11rem); margin-inline: auto; }
  .training-flow { gap: .2rem; }
  .training-flow span { font-size: .56rem; }
}
@media (prefers-reduced-motion: reduce) {
  .training-ending, .sample-chart path { transition: none; }
  .lab-parallax img { transform: none !important; }
  .history-rail-wrap { scroll-behavior: auto; }
}
