:root {
    --paper: #f7f8f2;
    --white: #fff;
    --ink: #253d34;
    --body: #667169;
    --green: #276249;
    --green-dark: #194a36;
    --mint: #e6efdc;
    --line: #dce2d7;
    --font: 'DM Sans', 'Segoe UI', sans-serif;
    --heading: 'Manrope', 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { flex-shrink: 0; vertical-align: middle; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #b26925; outline-offset: 6px; border-radius: 5px; }
::selection { background: #d5e7bd; color: #193c2b; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
.shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.icon { width: 22px; height: 22px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; padding: 12px 20px; color: white; background: var(--green-dark); }
.skip-link:focus { top: 8px; }
.preview-bar { background: #243e33; color: #e6eee7; font-size: 11px; letter-spacing: .025em; }
.preview-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.preview-inner > span, .preview-inner a { display: inline-flex; align-items: center; gap: 8px; }
.preview-inner a:hover { text-decoration: underline; }
.preview-inner .icon { width: 14px; height: 14px; }
.preview-dot { width: 5px; height: 5px; border-radius: 50%; background: #c3dcab; }
.site-header { min-height: 109px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 44px; height: 45px; display: grid; grid-auto-flow: column; align-content: center; justify-content: center; background: var(--green); border-radius: 13px 13px 13px 3px; color: white; font-family: var(--heading); font-size: 31px; font-weight: 750; letter-spacing: -3px; line-height: 1; padding: 0 3px 5px 0; }
.brand-mark span { color: #c7e1a7; }
.brand-name { font-family: var(--heading); font-size: 17px; font-weight: 800; letter-spacing: -.55px; line-height: 1.4; }
.brand-name small { display: block; margin-top: 3px; font-family: var(--font); font-size: 10px; color: var(--body); font-weight: 450; letter-spacing: .035em; }
.main-nav { display: flex; gap: 32px; font-size: 13px; }
.main-nav a { position: relative; padding: 9px 0; color: var(--body); }
.main-nav a[aria-current], .main-nav a:hover { color: var(--green); }
.main-nav a[aria-current] { font-weight: 700; }
.main-nav a[aria-current]::after { content: ''; width: 4px; height: 4px; background: var(--green); border-radius: 50%; position: absolute; bottom: 0; left: calc(50% - 2px); }
.portal-link { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 16px; border: 1px solid #cdd6ca; border-radius: 7px; font-size: 12px; font-weight: 650; max-width: 230px; overflow-wrap: anywhere; }
.portal-link .icon { width: 17px; height: 17px; }
.portal-link:hover { background: var(--mint); border-color: #b2c4a7; }
.home-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; padding-top: 69px; padding-bottom: 65px; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--green); }
.green-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.home-hero h1 { position: relative; font-size: clamp(44px, 4.9vw, 68px); font-weight: 650; line-height: 1.12; letter-spacing: -3.6px; margin-top: 20px; }
.accent-word { color: var(--green); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; }
.title-spark { position: absolute; font-family: Arial, sans-serif; color: #779259; font-size: 55px; margin-left: 22px; transform: rotate(10deg); font-weight: 400; }
.hero-description { max-width: 430px; margin-top: 24px; color: var(--body); font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 27px; padding: 14px 21px; border-radius: 7px; font-size: 12px; font-weight: 600; transition: background .18s, transform .18s; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.button .icon { width: 18px; height: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.topic-list { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 33px; color: var(--body); font-size: 10px; }
.topic-list span:not(:first-child)::before { content: '·'; margin-right: 16px; color: #9ba88e; }
.hero-visual { position: relative; min-width: 0; height: 450px; isolation: isolate; display: flex; align-items: center; justify-content: center; }
.hero-visual::before { content: ''; position: absolute; z-index: -2; width: 400px; height: 400px; max-width: 100%; background: #e8eddc; border-radius: 50%; }
.hero-visual::after { content: ''; position: absolute; inset: 6px; z-index: -1; background-image: radial-gradient(#91a27b 1px, transparent 1px); background-size: 17px 17px; opacity: .25; mask-image: radial-gradient(ellipse at center, #000 35%, transparent 69%); }
.visual-orbit { position: absolute; width: 88%; height: 88%; border: 1px solid #d6ddca; border-radius: 50%; z-index: -1; transform: rotate(-22deg); }
.orbit-one { width: 100%; height: 69%; }
.orbit-two { width: 69%; height: 100%; transform: rotate(35deg); }
.visual-card-wrap { width: 91%; transform: rotate(-3deg); }
.code-window { background: #fff; border: 1px solid #dce3d6; box-shadow: 0 18px 40px -20px #39532840; border-radius: 11px; overflow: hidden; font-size: 10px; }
.window-top { height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f9faf6; border-bottom: 1px solid #e6e9e0; padding: 0 15px; color: #707c69; font-size: 9px; }
.window-top > .icon { width: 14px; height: 14px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 5px; height: 5px; background: #d1d8c8; border-radius: 50%; }
.window-dots i:first-child { background: #dda898; }
.window-dots i:nth-child(2) { background: #dec89a; }
.window-dots i:nth-child(3) { background: #a6bb99; }
.code-content { padding: 23px 18px; font-family: Consolas, 'Courier New', monospace; font-size: 13px; line-height: 2; color: #46574a; background: #fdfefb; }
.line-number { display: inline-block; margin-right: 20px; color: #acb4a7; font-size: 10px; user-select: none; }
.sql-keyword { color: #2b7859; font-weight: 700; }
.sql-value { color: #bb8050; }
.query-result { padding: 0 17px 17px; }
.result-heading { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 8px; color: #7b8775; }
.result-check { display: inline-flex; align-items: center; gap: 3px; color: #467b46; }
.result-check .icon { width: 11px; height: 11px; }
.query-result table { border-collapse: collapse; width: 100%; text-align: left; font-size: 9px; }
.query-result th { background: #f1f5eb; color: #6c7c60; font-family: Consolas, monospace; font-weight: 400; }
.query-result th, .query-result td { border: 1px solid #e7ebdf; padding: 8px 10px; }
.query-result td { color: #6c7368; }
.floating-label { position: absolute; z-index: 2; background: white; display: flex; align-items: center; gap: 8px; border: 1px solid #e0e6d7; box-shadow: 0 7px 20px #2c452d08; border-radius: 6px; font-size: 10px; padding: 11px 15px; }
.floating-label .icon { width: 17px; height: 17px; color: #7d975c; }
.label-top { top: 34px; right: 26px; transform: rotate(5deg); }
.floating-note { position: absolute; bottom: 30px; left: 20px; background: #fff; border: 1px solid #e0e6d7; display: flex; gap: 11px; align-items: center; padding: 14px 21px 14px 14px; border-radius: 9px; box-shadow: 0 8px 20px #2c452d08; transform: rotate(3deg); font-size: 11px; font-weight: 600; }
.floating-note small { display: block; margin-top: 3px; color: #84907b; font-size: 9px; font-weight: 400; }
.note-icon { width: 33px; height: 33px; display: grid; place-items: center; background: #edf4e5; color: #648c49; border-radius: 50%; }
.note-icon .icon { width: 17px; height: 17px; }
.visual-cross { position: absolute; font-size: 25px; font-weight: 400; color: #9bae81; }
.cross-one { top: 43px; left: 45px; }
.cross-two { bottom: 44px; right: 24px; }
.visual-caption { position: absolute; bottom: -14px; right: 0; font-size: 7px; letter-spacing: .1em; color: #839172; display: flex; align-items: center; gap: 9px; }
.visual-caption span { width: 22px; height: 1px; background: #bdcaaa; }
.spaces-section { border-top: 1px solid var(--line); padding-top: 37px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading h2 { font-size: 25px; font-weight: 650; letter-spacing: -.95px; margin-top: 8px; }
.section-heading > p { color: var(--body); font-size: 12px; line-height: 1.7; }
.spaces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.space-card { position: relative; display: block; border: 1px solid var(--line); border-radius: 13px; padding: 27px 30px 29px; transition: transform .18s, box-shadow .18s, background .18s; cursor: pointer; }
.space-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px -18px #2b483980; }
.space-card:focus-visible { outline: 3px solid rgba(39, 98, 73, 0.45); outline-offset: 4px; }
.student-space { background: #eaf0df; border-color: #dde5d0; }
.student-space:hover { background: #e1eacc; }
.teacher-space { background: #fdfefb; }
.teacher-space:hover { background: #f5f7ee; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green); background: #e7efdf; border-radius: 11px; }
.student-space .card-icon { background: #dbe7cc; }
.space-number { position: absolute; top: 29px; right: 30px; font-size: 10px; color: #92a183; font-family: Consolas, monospace; }
.space-card h3 { font-size: 21px; font-weight: 700; letter-spacing: -.6px; margin-top: 18px; }
.space-card p { margin-top: 8px; max-width: 400px; color: var(--body); font-size: 13px; line-height: 1.8; }
.card-link { display: inline-flex; align-items: center; gap: 22px; font-size: 12px; font-weight: 650; color: var(--green); }
.card-link .icon { width: 18px; height: 18px; transition: transform .18s; }
a:hover .card-link .icon, a.card-link:hover .icon { transform: translateX(4px); }
.space-card > .card-link, .teacher-links { margin-top: 22px; }
.teacher-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 22px; }
.small-link { font-size: 10px; color: var(--body); display: inline-flex; align-items: center; gap: 4px; }
.small-link .icon { width: 14px; height: 14px; }
.small-link:hover { text-decoration: underline; }
.curiosity-strip { display: flex; align-items: center; gap: 25px; padding-block: 45px; }
.strip-icon { color: #7d9469; font-size: 38px; line-height: 1; }
.curiosity-strip h2 { font-size: 17px; line-height: 1.6; font-weight: 650; letter-spacing: -.3px; }
.curiosity-strip h2 span { color: #789063; }
.curiosity-strip > p { margin-left: auto; color: var(--body); font-size: 11px; line-height: 1.9; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 25px 30px; border-top: 1px solid var(--line); font-size: 10px; color: var(--body); }
.footer-signature { display: flex; gap: 15px; align-items: center; }
.footer-mark { font-family: var(--heading); font-size: 26px; font-weight: 800; letter-spacing: -3px; color: var(--green); padding-right: 3px; }
.footer-signature small { display: block; font-size: 9px; color: #85907c; margin-top: 2px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer nav a { display: inline-flex; align-items: center; gap: 4px; }
.site-footer nav .icon { width: 12px; height: 12px; }
.site-footer nav a:hover { color: var(--green); text-decoration: underline; }
.breadcrumb { display: flex; gap: 13px; align-items: center; margin-top: 25px; color: #88917e; font-size: 10px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--green); }
.student-hero { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding-block: 33px 43px; }
.student-hero h1 { margin-top: 13px; font-size: clamp(40px, 4.5vw, 60px); line-height: 1.14; letter-spacing: -2.7px; font-weight: 650; }
.student-hero > div > p:last-child { margin-top: 19px; color: var(--body); font-size: 13px; line-height: 1.85; }
.learning-note { position: relative; background: #ecf0df; border-radius: 2px 2px 30px 2px; padding: 31px 37px 28px; width: 258px; transform: rotate(4deg); margin-right: 42px; border: 1px solid #e2e8d3; }
.learning-note::before { content: ''; position: absolute; background: #f2eee1c9; border: 1px solid #e8e2ce8c; width: 80px; height: 22px; top: -12px; left: calc(50% - 40px); transform: rotate(-9deg); }
.learning-doodle { position: absolute; right: 23px; top: 30px; color: #94a66e; }
.learning-doodle .icon { width: 27px; height: 27px; }
.learning-note p { font-family: var(--heading); font-size: 18px; line-height: 1.5; letter-spacing: -.5px; }
.learning-note p strong { font-weight: 600; color: var(--green); }
.note-signature { display: block; margin-top: 20px; font-size: 9px; color: #7e8d68; }
.workspace .section-heading { border-top: 1px solid var(--line); padding-top: 25px; }
.section-note { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; color: #7d8b70; }
.section-note .icon { width: 17px; height: 17px; transform: rotate(45deg); }
.workspace-grid { display: grid; grid-template-columns: 1fr 1.12fr; grid-template-rows: auto auto; gap: 18px; }
.resource-card { border: 1px solid var(--line); border-radius: 12px; transition: transform .18s, box-shadow .18s; }
.resource-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px -18px #2b483980; }
.lab-card { grid-row: span 2; background: #e7eedb; border-color: #dbe4ce; padding: 25px 27px; min-width: 0; display: flex; flex-direction: column; }
.lab-card-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.lab-card-top .card-icon { background: #d8e4c7; }
.tag { font-size: 8px; letter-spacing: .09em; color: #6a8051; font-weight: 600; }
.lab-card h3 { font-size: 29px; letter-spacing: -1.1px; line-height: 1.22; margin-top: 19px; font-weight: 650; }
.lab-card > p { font-size: 13px; line-height: 1.85; color: #5e714f; margin-top: 12px; }
.compact-code { margin-top: 22px; transform: rotate(-1deg); box-shadow: 0 7px 20px -10px #3f572430; }
.compact-code .window-top { height: 29px; font-size: 8px; }
.compact-code .code-content { padding: 12px 15px; font-size: 11px; line-height: 1.8; }
.compact-code .line-number { font-size: 9px; }
.compact-code .query-result { padding: 0 13px 12px; }
.compact-code .query-result th, .compact-code .query-result td { padding: 5px 7px; font-size: 8px; }
.compact-code .result-heading { padding-block: 5px; }
.lab-bottom { margin-top: auto; padding-top: 23px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 12px; }
.access-note { font-size: 8px; color: #768763; }
.activity-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fdfefb; padding: 24px 26px; min-width: 0; }
.activity-content { min-width: 0; }
.activity-content .card-icon { margin-bottom: 15px; background: #edf1e6; }
.resource-kicker { font-size: 8px; letter-spacing: .12em; font-weight: 600; color: #859173; }
.activity-card h3 { font-size: 19px; font-weight: 650; letter-spacing: -.6px; margin-top: 4px; }
.activity-card p { font-size: 13px; color: var(--body); line-height: 1.8; max-width: 300px; margin-top: 9px; }
.activity-card .card-link { margin-top: 18px; }
.activity-illustration { flex: 0 0 90px; position: relative; width: 90px; height: 115px; transform: rotate(9deg); }
.mini-table { position: absolute; top: 22px; right: 6px; width: 77px; height: 79px; border-radius: 5px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 14px repeat(2, 1fr); overflow: hidden; background: #fcfdf8; border: 1px solid #d8e2cb; box-shadow: 4px 5px 0 #eaf0de; }
.mini-table i { border: .5px solid #d8e2cb; }
.mini-table i:nth-child(-n+3) { background: #c9d9af; }
.mini-pencil { position: absolute; width: 7px; height: 73px; background: #a5b885; border: 1px solid #95a776; right: 7px; top: 2px; transform: rotate(22deg); border-radius: 2px; }
.mini-pencil::after { content: ''; position: absolute; bottom: -9px; left: -1px; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-top: 8px solid #6d765f; }
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.delivery-card { background: #fdfefb; padding: 24px 23px; }
.delivery-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -.5px; margin-top: 16px; }
.delivery-card p { color: var(--body); font-size: 13px; margin-top: 8px; line-height: 1.8; }
.delivery-card .card-link { margin-top: 22px; gap: 16px; font-size: 11px; }
.peach-icon { background: #f5eadc; color: #a38157; }
.lilac-icon { background: #edebf1; color: #8e829f; }
.student-help { margin-top: 22px; border: 1px solid var(--line); border-radius: 10px; background: #f4f6ef; }
.student-help summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 22px; cursor: pointer; list-style: none; font-size: 12px; font-weight: 550; }
.student-help summary::-webkit-details-marker { display: none; }
.student-help summary > span { display: inline-flex; gap: 12px; align-items: center; }
.student-help summary > span > .icon { width: 17px; height: 17px; color: #7d925f; }
.help-summary-label { font-weight: 400; color: var(--body); font-size: 10px; }
.student-help[open] .help-summary-label .icon { transform: rotate(180deg); }
.help-steps { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px 22px 23px; gap: 25px; }
.help-steps > div > span { color: #78945b; font-family: Consolas, monospace; font-size: 11px; }
.help-steps h3 { margin-top: 8px; font-size: 13px; font-weight: 650; }
.help-steps p { font-size: 11px; margin-top: 8px; color: var(--body); line-height: 1.8; }
.student-signoff { display: flex; align-items: center; gap: 11px; padding: 30px 0; }
.student-signoff > span { font-size: 23px; color: #8ca377; }
.student-signoff > p { font-size: 11px; color: var(--body); }
.student-signoff > a { margin-left: auto; font-size: 10px; }
.student-signoff > a .icon { width: 15px; height: 15px; }
@media (min-width: 1500px) {
    .home-hero { padding-block: 85px; }
}
@media (max-width: 1000px) {
    .shell { width: calc(100% - 56px); }
    .home-hero { gap: 20px; padding-top: 50px; }
    .home-hero h1 { font-size: 54px; letter-spacing: -3px; }
    .hero-visual { height: 390px; }
    .hero-visual::before { width: 330px; height: 330px; }
    .code-content { font-size: 11px; padding: 18px 14px; }
    .query-result th, .query-result td { font-size: 8px; padding: 7px; }
    .hero-actions { gap: 17px; }
    .title-spark { font-size: 42px; margin-left: 16px; }
    .topic-list { gap: 5px 10px; }
    .topic-list span:not(:first-child)::before { margin-right: 10px; }
    .learning-note { margin-right: 15px; }
    .workspace-grid { grid-template-columns: 1fr 1.05fr; }
    .lab-card, .activity-card { padding: 22px; }
    .activity-illustration { display: none; }
    .tag { font-size: 7px; }
    .delivery-card { padding: 20px 16px; }
    .delivery-card h3 { font-size: 16px; }
    .delivery-card .card-link { gap: 8px; }
    .lab-card h3 { font-size: 26px; }
}
@media (max-width: 760px) {
    .shell { width: calc(100% - 40px); }
    .site-header { flex-wrap: wrap; min-height: 113px; padding-top: 20px; gap: 12px; }
    .brand-name { font-size: 15px; }
    .brand-name small { font-size: 9px; }
    .brand-mark { width: 37px; height: 39px; font-size: 27px; border-radius: 11px 11px 11px 3px; }
    .main-nav { order: 3; width: 100%; justify-content: center; gap: 30px; padding-bottom: 10px; font-size: 12px; }
    .portal-link { font-size: 10px; padding: 8px 10px; gap: 7px; max-width: 145px; }
    .portal-link .icon { width: 14px; height: 14px; }
    .home-hero { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 42px; gap: 20px; }
    .home-hero h1 { font-size: clamp(47px, 8vw, 64px); }
    .hero-description { max-width: 470px; font-size: 14px; }
    .hero-visual { width: min(490px, 100%); margin: 0 auto; height: 385px; }
    .hero-visual::before { width: 350px; height: 350px; }
    .visual-card-wrap { width: 89%; }
    .code-content { font-size: 12px; }
    .label-top { top: 16px; }
    .floating-note { bottom: 8px; }
    .visual-caption { bottom: -16px; font-size: 6px; }
    .section-heading h2 { font-size: 24px; }
    .section-heading > p { display: none; }
    .spaces-section { padding-top: 28px; }
    .spaces-grid { grid-template-columns: 1fr; gap: 15px; }
    .space-card { padding: 24px; }
    .curiosity-strip { padding-block: 30px; gap: 17px; flex-wrap: wrap; }
    .curiosity-strip h2 { font-size: 16px; }
    .curiosity-strip > p { margin-left: 44px; }
    .site-footer { align-items: flex-start; flex-direction: column; gap: 20px; }
    .site-footer nav { gap: 25px; }
    .student-hero { padding-block: 27px 32px; }
    .student-hero h1 { font-size: 46px; }
    .learning-note { display: none; }
    .workspace .section-heading { padding-top: 22px; }
    .section-note { display: none; }
    .workspace-grid { grid-template-columns: 1fr; gap: 15px; }
    .lab-card { grid-row: auto; padding: 25px; }
    .lab-card h3 { font-size: 29px; }
    .lab-card h3 br { display: none; }
    .lab-card > p { font-size: 12px; }
    .tag { font-size: 8px; }
    .compact-code { width: 100%; max-width: 430px; align-self: center; margin-block: 24px 5px; }
    .compact-code .code-content { font-size: 12px; }
    .activity-card { padding: 24px; }
    .activity-illustration { display: block; }
    .delivery-grid { gap: 15px; }
    .delivery-card { padding: 22px; }
    .delivery-card h3 { font-size: 18px; }
    .delivery-card p { font-size: 12px; }
    .delivery-card .card-link { font-size: 11px; }
    .help-steps { grid-template-columns: 1fr; gap: 20px; }
    .help-summary-label { font-size: 0; }
    .help-steps p { font-size: 12px; }
    .student-signoff { flex-wrap: wrap; gap: 8px; }
    .student-signoff > a { margin-left: 30px; flex-basis: 100%; }
}
@media (max-width: 400px) {
    .shell { width: calc(100% - 32px); }
    .preview-inner { font-size: 10px; }
    .preview-extra { display: none; }
    .brand { gap: 8px; }
    .brand-name { font-size: 13px; }
    .brand-name small { font-size: 8px; }
    .portal-link { max-width: 115px; padding-inline: 8px; }
    .home-hero h1 { font-size: 47px; letter-spacing: -2.6px; }
    .title-spark { margin-left: 12px; font-size: 38px; }
    .hero-actions { gap: 18px; }
    .button { padding-inline: 17px; gap: 15px; }
    .text-link { font-size: 11px; gap: 6px; }
    .hero-visual { height: 345px; }
    .hero-visual::before { width: 280px; height: 280px; }
    .visual-card-wrap { width: 95%; }
    .code-content { font-size: 11px; }
    .floating-note { font-size: 10px; padding: 10px; }
    .floating-note small { font-size: 8px; }
    .label-top { font-size: 9px; right: 4px; padding: 8px 10px; }
    .curiosity-strip h2 { font-size: 14px; }
    .student-hero h1 { font-size: 41px; }
    .delivery-card { padding: 19px 15px; }
    .delivery-card h3 { font-size: 16px; }
    .delivery-card p { font-size: 11px; }
    .delivery-card .card-link { font-size: 10px; gap: 8px; }
    .delivery-card .card-link .icon { width: 15px; }
    .activity-illustration { display: none; }
    .lab-card { padding: 21px; }
    .tag { font-size: 7px; }
    .lab-card h3 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Ejercicios por nivel */
.workspace-grid .lab-card { grid-row: span 3; }
.practice-card { display:flex; align-items:center; justify-content:space-between; gap:22px; background:#f2f5ea; padding:24px 26px; min-width:0; }
.practice-card-copy { min-width:0; }
.practice-card .card-icon { margin-bottom:15px; background:#dde9d3; }
.practice-card h3 { font-size:19px; font-weight:650; letter-spacing:-.6px; margin-top:4px; }
.practice-card p { font-size:13px; color:var(--body); line-height:1.8; max-width:410px; margin-top:9px; }
.practice-card .card-link { margin-top:18px; }
.practice-levels { display:grid; gap:7px; flex:0 0 78px; transform:rotate(3deg); }
.practice-levels span { display:grid; place-items:center; min-height:36px; border:1px solid #cedbc3; background:#fbfcf8; border-radius:8px; color:var(--green); font-family:var(--heading); font-weight:700; box-shadow:3px 3px 0 #e2e9d9; }
.exercise-main,.practice-main { padding-bottom:48px; }
.exercise-hero { max-width:720px; padding:46px 0 40px; }
.exercise-hero h1,.exercise-level-heading h1 { margin-top:11px; font-size:clamp(38px,4.3vw,58px); line-height:1.12; letter-spacing:-2.5px; font-weight:650; }
.exercise-hero>p:last-child,.exercise-level-heading>p:last-child { max-width:660px; color:var(--body); margin-top:18px; line-height:1.85; }
.level-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.level-card { min-height:370px; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:14px; padding:26px; background:#fff; transition:transform .18s,box-shadow .18s; }
.level-card:hover { transform:translateY(-4px); box-shadow:0 16px 32px -22px #28453680; }
.level-number { display:grid; place-items:center; width:68px; height:68px; border-radius:20px 20px 20px 5px; background:#e2ebd7; color:var(--green); font:700 25px var(--heading); margin-bottom:40px; }
.level-card h2 { font-size:26px; letter-spacing:-1px; margin-top:6px; }
.level-card p { color:var(--body); margin-top:11px; line-height:1.8; font-size:13px; }
.level-footer { margin-top:auto; padding-top:25px; border-top:1px solid #edf0e9; display:flex; flex-direction:column; gap:10px; color:#879083; font-size:10px; }
.level-footer .card-link { font-size:12px; }
.level-8 .level-number { background:#e8e4ef; color:#6f627f; }
.level-9 .level-number { background:#f2e7d9; color:#8b673e; }
.exercise-admin-link { display:flex; align-items:center; justify-content:center; gap:12px; margin-top:27px; color:#7c867e; font-size:11px; }
.exercise-admin-link a { color:var(--green); font-weight:650; display:inline-flex; gap:8px; align-items:center; }
.exercise-admin-link .icon { width:15px; }
.exercise-level-heading { padding:38px 0 34px; max-width:760px; }
.level-pill { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#e5eddc; color:var(--green); font-size:9px; letter-spacing:.09em; font-weight:700; }
.topic-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.topic-card { min-height:280px; display:flex; flex-direction:column; border:1px solid var(--line); border-radius:13px; background:#fff; padding:23px; }
.topic-card-top { display:flex; justify-content:space-between; align-items:center; }
.topic-index { font:500 11px Consolas,monospace; color:#8ca17c; }
.difficulty-chip { display:inline-flex; padding:5px 8px; border-radius:999px; background:#f0f3eb; color:#718067; font-size:9px; }
.topic-card h2 { margin-top:32px; font-size:20px; letter-spacing:-.6px; }
.topic-card p { margin-top:10px; color:var(--body); font-size:12px; line-height:1.8; }
.topic-card .card-link,.topic-soon { margin-top:auto; padding-top:24px; }
.topic-soon { color:#9ca39c; font-size:11px; }
.empty-practice { grid-column:1/-1; text-align:center; padding:50px; border:1px dashed #cfd7cb; border-radius:12px; }
.empty-practice p { color:var(--body); margin-top:9px; }
.exercise-back { margin-top:28px; }
.practice-shell { width:min(790px,100%); margin:38px auto 0; }
.practice-top { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:17px; }
.practice-top h1 { margin-top:8px; font-size:27px; letter-spacing:-1px; }
.question-card { border:1px solid var(--line); border-radius:16px; background:#fff; padding:32px; box-shadow:0 18px 45px -42px #193c2b; }
.question-card.correct { border-color:#bdd5b9; }
.question-card.incorrect { border-color:#e1c2ba; }
.question-number { color:#879477; letter-spacing:.12em; font-size:9px; font-weight:700; }
.question-card h2 { margin-top:11px; font-size:25px; line-height:1.45; letter-spacing:-.7px; font-weight:650; }
.answer-list { display:grid; gap:11px; margin-top:27px; }
.answer-option { display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:12px; border:1px solid #dfe4da; border-radius:10px; padding:12px 14px; cursor:pointer; transition:border .15s,background .15s; }
.answer-option:hover { border-color:#aec2a6; background:#fafbf7; }
.answer-option input { position:absolute; opacity:0; pointer-events:none; }
.answer-letter { display:grid; place-items:center; width:31px; height:31px; border-radius:8px; background:#eff3ea; color:#5f755a; font-weight:700; font-size:11px; }
.answer-option:has(input:checked) { border-color:#86a482; background:#f4f8ef; }
.answer-option:has(input:checked) .answer-letter { background:#dce9d4; color:var(--green); }
.answer-option.right { border-color:#88ad84; background:#eef7eb; }
.answer-option.right strong { color:#3f7650; font-size:18px; }
.answer-option.wrong { border-color:#d59d91; background:#fff3f0; }
.answer-option.wrong strong { color:#a34c42; font-size:20px; }
.practice-button { margin-top:9px; border:0; border-radius:8px; background:var(--green); color:#fff; padding:13px 18px; display:inline-flex; align-items:center; justify-content:center; gap:18px; font-weight:650; cursor:pointer; font-size:12px; }
.practice-button:hover { background:var(--green-dark); }
.practice-button .icon { width:17px; }
.feedback-box { margin-top:22px; border-radius:10px; padding:17px 18px; }
.feedback-box.success { background:#e8f2e5; color:#315f40; }
.feedback-box.error { background:#f8ebe7; color:#80443e; }
.feedback-box strong { font-family:var(--heading); }
.feedback-box p { margin-top:6px; color:inherit; line-height:1.7; font-size:12px; }
.practice-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:16px; }
.practice-actions .practice-button { margin:0; }
@media(max-width:1000px){.level-grid,.topic-grid{grid-template-columns:repeat(2,1fr)}.level-card:last-child,.topic-card:last-child{grid-column:auto}.practice-levels{display:none}}
@media(max-width:760px){.workspace-grid .lab-card{grid-row:auto}.practice-card{padding:24px}.level-grid,.topic-grid{grid-template-columns:1fr}.level-card{min-height:310px}.level-number{margin-bottom:28px}.exercise-hero{padding:35px 0 28px}.exercise-hero h1,.exercise-level-heading h1{font-size:43px}.question-card{padding:23px}.question-card h2{font-size:21px}.practice-shell{margin-top:28px}.practice-top{align-items:flex-start;flex-direction:column}.practice-actions{align-items:flex-start;flex-direction:column}.answer-option{grid-template-columns:31px 1fr auto}.exercise-admin-link{flex-wrap:wrap}}
@media(max-width:400px){.exercise-hero h1,.exercise-level-heading h1{font-size:38px}.question-card{padding:19px}.answer-option{padding:10px}.level-card{padding:22px}}

/* Ejercicios v1.1 · progreso local */
.practice-progress{display:grid;grid-template-columns:1fr auto;gap:13px 24px;align-items:end;margin-bottom:18px;padding:17px 18px;border:1px solid var(--line);border-radius:13px;background:#f8faf5}.practice-progress-copy{display:grid;gap:4px}.practice-progress-copy>span{font-size:8px;letter-spacing:.12em;font-weight:700;color:#7f8d78}.practice-progress-copy strong{font-size:13px;font-weight:650;color:var(--ink)}.practice-progress-copy b,.practice-progress-stats b{font:700 15px var(--heading);color:var(--green)}.practice-progress-stats{display:flex;align-items:center;justify-content:flex-end;gap:14px;color:var(--body);font-size:10px;white-space:nowrap}.practice-progress-stats button{border:0;background:transparent;color:#8a918a;text-decoration:underline;cursor:pointer;padding:0;font-size:10px}.practice-progress-track{grid-column:1/-1;height:6px;border-radius:999px;background:#e4e9df;overflow:hidden}.practice-progress-track i{display:block;height:100%;width:0;border-radius:inherit;background:var(--green);transition:width .3s ease}.topic-progress-mini{display:grid;gap:6px;margin-top:15px}.topic-progress-mini span{font-size:9px;color:#7a8678}.topic-progress-mini i{display:block;height:4px;border-radius:999px;background:#e7ebe3;overflow:hidden}.topic-progress-mini em{display:block;width:0;height:100%;background:var(--green);border-radius:inherit}.topic-progress-mini[hidden]{display:none}@media(max-width:620px){.practice-progress{grid-template-columns:1fr;align-items:start}.practice-progress-stats{justify-content:flex-start;flex-wrap:wrap}.practice-progress-track{grid-column:auto}}

/* Ejercicios v1.2 · práctica aleatoria */
.random-challenge-card{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:24px;padding:24px 26px;border:1px solid #dce5d5;border-radius:14px;background:linear-gradient(135deg,#f3f8ee,#fbfcf8)}
.random-challenge-card h2{margin-top:5px;font-size:21px;letter-spacing:-.7px}.random-challenge-card p{max-width:560px;margin-top:8px;color:var(--body);font-size:12px;line-height:1.75}.random-challenge-actions{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex:0 0 auto}.random-challenge-actions .practice-button{margin:0}.random-setup{width:min(850px,100%);margin:42px auto 0}.random-setup-copy{max-width:720px}.random-setup-copy h1{margin-top:13px;font-size:clamp(36px,4vw,54px);line-height:1.12;letter-spacing:-2px;font-weight:650}.random-setup-copy p{margin-top:16px;color:var(--body);line-height:1.85}.random-form{margin-top:30px;padding:25px;border:1px solid var(--line);border-radius:14px;background:#fff}.random-field{display:grid;gap:8px}.random-field>span,.random-quantity legend{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#6f7c6b}.random-field select{width:100%;border:1px solid #d9dfd4;border-radius:9px;background:#fff;padding:12px 13px;font:inherit;color:var(--ink)}.random-quantity{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0 0;border:0;padding:0}.random-quantity legend{width:100%;margin-bottom:2px}.random-quantity label{cursor:pointer}.random-quantity input{position:absolute;opacity:0;pointer-events:none}.random-quantity span{display:grid;place-items:center;min-width:72px;height:43px;padding:0 15px;border:1px solid #d9dfd4;border-radius:9px;background:#fafbf8;font-weight:700;font-size:12px}.random-quantity input:checked+span{border-color:#86a482;background:#eaf2e5;color:var(--green)}.random-quantity input:disabled+span{opacity:.35;cursor:not-allowed}.random-availability{margin-top:13px;color:#7c8779;font-size:10px}.random-form>.practice-button{margin-top:20px}.random-quiz-shell{margin-top:36px}.random-quiz-progress{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px;margin-bottom:19px}.random-quiz-progress>div{display:grid;gap:3px}.random-quiz-progress span{font-size:8px;letter-spacing:.12em;font-weight:700;color:#7d8b77}.random-quiz-progress strong{font-size:12px}.random-quiz-progress>i{height:7px;border-radius:999px;background:#e5eae1;overflow:hidden}.random-quiz-progress>i>em{display:block;height:100%;background:var(--green);border-radius:inherit;transition:width .3s}.random-cancel{text-align:center;margin-top:18px}.random-cancel button{border:0;background:transparent;color:#8c938c;text-decoration:underline;font-size:10px;cursor:pointer}.random-results{width:min(850px,100%);margin:38px auto 0}.random-score-card{padding:29px;border:1px solid #dbe4d6;border-radius:16px;background:#f5f9f1}.random-score{display:flex;align-items:flex-end;justify-content:space-between;margin-top:24px}.random-score strong{font:700 clamp(54px,8vw,82px)/.9 var(--heading);letter-spacing:-4px;color:var(--green)}.random-score strong small{font-size:.34em;letter-spacing:-1px;color:#81907d}.random-score>span{font:700 22px var(--heading);color:#5d7558}.random-score-card h1{margin-top:21px;font-size:28px;letter-spacing:-1px}.random-score-card>p{margin-top:8px;color:var(--body);font-size:12px}.random-score-track{height:8px;margin-top:20px;border-radius:999px;background:#dfe7da;overflow:hidden}.random-score-track i{display:block;height:100%;background:var(--green);border-radius:inherit}.random-review{display:grid;gap:14px;margin-top:22px}.review-card{padding:22px;border:1px solid var(--line);border-radius:13px;background:#fff}.review-card.correct{border-left:4px solid #6f9a6c}.review-card.incorrect{border-left:4px solid #bd7468}.review-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.review-head span{font-size:10px;font-weight:700}.review-card.correct .review-head span{color:#4d7d50}.review-card.incorrect .review-head span{color:#a65349}.review-head small{color:#8a9388}.review-card h2{margin-top:13px;font-size:17px;line-height:1.5;letter-spacing:-.35px}.review-answer{display:grid;gap:4px;margin-top:15px;padding:11px 13px;border-radius:8px;background:#f7f8f5}.review-answer span{font-size:8px;letter-spacing:.08em;text-transform:uppercase;color:#879083}.review-answer strong{font-size:11px}.review-answer.correct-answer{background:#edf5e9}.review-explanation{margin-top:13px;color:var(--body);font-size:11px;line-height:1.7}.random-result-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px}.random-result-actions .practice-button{margin:0}.random-result-actions form{margin:0}
@media(max-width:760px){.random-challenge-card{align-items:flex-start;flex-direction:column}.random-challenge-actions{align-items:flex-start}.random-form{padding:20px}.random-quiz-progress{grid-template-columns:1fr}.random-score-card{padding:23px}.random-result-actions{align-items:flex-start;flex-direction:column}.random-score{align-items:flex-start;flex-direction:column;gap:13px}.review-head{align-items:flex-start;flex-direction:column}}
.random-public-error{margin-bottom:18px;padding:12px 14px;border-radius:9px;background:#f8ebe7;color:#80443e;font-size:11px}

/* Tarjeta pública de calificaciones en la portada. */
.spaces-grid.has-grades { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grades-space { background: #f1f0f8; border-color: #e3e0f0; }
.grades-space:hover { background: #e8e6f4; }
.grades-space .card-icon { color: #645786; background: #e2def1; }
.grades-space .space-number { color: #9187ad; }
@media (min-width: 761px) and (max-width: 1010px) {
    .spaces-grid.has-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spaces-grid.has-grades .grades-space { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .spaces-grid.has-grades { grid-template-columns: minmax(0, 1fr); }
    .spaces-grid.has-grades .grades-space { grid-column: auto; }
}
