:root {
    color-scheme: light;
    --ink: #172b34;
    --muted: #526a72;
    --teal: #075e59;
    --teal-dark: #063f3c;
    --teal-light: #e9f5f2;
    --line: #dce7e6;
    --paper: #fff;
    --bg: #f3f7f7;
    --nav: #102b33;
    font: 100%/1.55 system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); }
a { color: var(--teal); }
button, input, select { font: inherit; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #188983; outline-offset: 4px; }
[hidden] { display: none !important; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.27; }
button, summary { cursor: pointer; }
.visually-hidden, .skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link:focus {
    position: absolute;
    z-index: 5;
    padding: 12px;
    background: var(--paper);
}
.shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 26px 16px 20px;
    color: #e8f4f4;
    background: var(--nav);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 2px 23px;
    color: white;
    text-decoration: none;
}
.brand strong { display: block; font-size: 1rem; letter-spacing: -.028em; white-space: nowrap; }
.brand small { display: block; color: #acced0; font-size: .78rem; white-space: nowrap; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    flex: none;
    color: #a5e7db;
    background: #1a4149;
    border: 1px solid #38646b;
    border-radius: 10px;
}
.sidebar-nav {
    display: grid;
    gap: 7px;
    border-top: 1px solid #284751;
    padding-top: 20px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #c9dddf;
    padding: 11px 12px;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: .92rem;
}
.sidebar-nav a:hover { background: #1a3942; }
.sidebar-nav a[aria-current] { color: #e9fffa; background: #225455; border-color: #37696a; font-weight: 650; }
.sidebar-nav svg { flex: none; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #284751; padding: 18px 6px 0; font-size: .875rem; }
.status-dot {
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: 2px;
    background: #7ce1b8;
}
.sidebar-local { display: block; margin: 3px 0 0 16px; font-size: .79rem; color: #aec8cd; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 63px;
    padding: 10px clamp(20px, 3vw, 42px);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: .875rem;
}
.topbar-label { font-weight: 625; }
.topbar-label a { text-underline-offset: 3px; }
.timezone-label { display: flex; align-items: center; gap: 6px; color: var(--muted); white-space: nowrap; }
.main-content { max-width: 1430px; margin-inline: auto; padding: 28px clamp(20px, 3vw, 42px) 42px; }
.page-heading { margin-bottom: 23px; }
.page-heading h1 { font-size: clamp(1.75rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.page-heading p { margin-top: 7px; color: var(--muted); }
.hero-grid, .card-grid, .detail-grid { display: grid; gap: 18px; align-items: start; }
.hero-grid { grid-template-columns: minmax(0, 1.95fr) minmax(290px, 1fr); align-items: stretch; }
.learning-panel, .learning-flow { margin-top: 18px; }
.hero {
    min-height: 296px;
    border-radius: 16px;
    background: linear-gradient(90deg, #071c29f0, #081d2ab5 47%, #0b29392a), #123541 url("aquarium.webp") center 51% / cover no-repeat;
    color: #fff;
    padding: 26px clamp(22px, 3.2vw, 38px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.hero-eyebrow { color: #b7efe9; font-size: .875rem; font-weight: 650; letter-spacing: .02em; }
.hero h2 { font-size: clamp(2.05rem, 4.1vw, 3.5rem); margin: 11px 0 10px; letter-spacing: -.045em; line-height: 1.11; }
.hero p:not(.hero-eyebrow) { color: #e8f4f5; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--teal);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 650;
}
.button:hover { background: var(--teal-dark); }
.button-light { background: #d0f4ed; color: #123a3c; margin-top: 16px; }
.button-light:hover { background: #adf0e3; }
.panel {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
    box-shadow: 0 2px 3px #1a394005;
    min-width: 0;
}
.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--line);
}
.icon-heading { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; }
.icon-heading svg { color: var(--teal); flex: none; }
.panel-meta { font-size: .83rem; color: var(--muted); white-space: nowrap; }
.deadline-panel { padding: 20px; }
.deadline-caption { margin: 17px 0 3px; color: var(--muted); font-size: .875rem; }
.deadline-active h3 { font-size: 1.12rem; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 13px 0; }
.timer-part {
    background: var(--teal-light);
    border: 1px solid #d2ebe4;
    border-radius: 8px;
    padding: 5px 1px;
    text-align: center;
    color: var(--teal-dark);
    font-size: .82rem;
}
.timer-value {
    display: block;
    font-size: clamp(1.18rem, 2.2vw, 1.65rem);
    font-weight: 720;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.05em;
    line-height: 1.23;
}
.deadline-zones { margin-bottom: 12px; color: var(--muted); font-size: .88rem; }
.deadline-zones p { display: flex; justify-content: space-between; gap: 6px; }
.deadline-zones p + p { margin-top: 3px; }
.deadline-zones time { font-variant-numeric: tabular-nums; color: var(--ink); }
.deadline-details { padding-top: 10px; border-top: 1px solid var(--line); font-size: .89rem; }
.deadline-details summary { color: var(--teal); font-weight: 650; }
.deadline-details ul { padding: 0; margin: 10px 0; list-style: none; }
.deadline-details li { display: grid; gap: 2px; margin-bottom: 10px; }
.deadline-details li span { font-size: .84rem; color: var(--muted); }
.deadline-empty { margin: 16px 0; }
.muted, .empty-note { color: var(--muted); }
.empty-note { padding: 22px; }
.empty-note p { margin: 9px 0 14px; }
.module-list, .qa-list { margin: 0; padding: 0; list-style: none; }
.module-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 63px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--line);
}
.module-row:last-child { border-bottom: 0; }
.module-row.is-open { background: #f3faf8; }
.module-number, .role-number {
    padding: 3px 6px;
    border-radius: 6px;
    color: #48616a;
    background: #eff4f5;
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    font-size: .84rem;
    font-weight: 650;
    white-space: nowrap;
}
.is-open .module-number { color: var(--teal-dark); background: #ceece4; }
.module-text h3 { font-weight: 650; font-size: .97rem; }
.module-text p { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.module-status {
    border-radius: 12px;
    padding: 3px 7px;
    color: #526a72;
    font-size: .81rem;
    white-space: nowrap;
}
.module-status.open { background: #d9f0e9; color: #17594f; text-decoration: none; font-weight: 650; }
.module-status.open:hover { text-decoration: underline; }
.learning-flow {
    padding: clamp(14px, 2vw, 22px);
    container-type: inline-size;
    scroll-margin-top: 16px;
}
.learning-flow > h2 { font-size: 1.25rem; }
.flow-intro { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.flow-chart {
    --flow-line: #93aeab;
    margin-top: 16px;
    padding: clamp(10px, 1.5vw, 18px);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f4f9f8 radial-gradient(circle, #d7e5e3 1px, transparent 1px) 0 0 / 18px 18px;
}
.flow-origin {
    max-width: 690px;
    margin-inline: auto;
    padding: 12px;
    border: 1px solid #bddbd4;
    border-radius: 10px;
    background: var(--teal-light);
    text-align: center;
}
.flow-origin h3 { font-size: 1rem; color: var(--teal-dark); }
.flow-common-steps, .flow-role-steps {
    display: grid;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}
.flow-common-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
.flow-chart li { position: relative; min-width: 0; }
.flow-common-steps > li + li::before, .flow-role-steps > li + li::before,
.flow-origin + .flow-branches::before, .flow-branch::before, .flow-branch::after {
    content: "";
    position: absolute;
    border-color: var(--flow-line);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
}
.flow-common-steps > li + li::before { top: 50%; left: -12px; width: 12px; border-top-width: 1px; }
.flow-chart a {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 6px 8px;
    height: 100%;
    border: 1px solid #d7e6e4;
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    font-size: .89rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.flow-chart a:hover { border-color: #8fbab1; text-decoration: underline; text-underline-offset: 3px; }
.flow-step-number {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--role-tint, var(--teal-light));
    color: var(--role-ink, var(--teal-dark));
    font: 700 .8rem/1 ui-monospace, "SF Mono", Consolas, monospace;
}
.flow-branches {
    --branch-gap: 12px;
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: var(--branch-gap);
}
.flow-origin + .flow-branches { padding-top: 28px; }
.flow-origin + .flow-branches::before { top: 0; left: 50%; height: 14px; border-left-width: 1px; }
.flow-branch { position: relative; scroll-margin-top: 16px; }
.flow-origin + .flow-branches .flow-branch::before {
    top: -14px;
    left: calc(var(--branch-gap) / -2);
    right: calc(var(--branch-gap) / -2);
    border-top-width: 1px;
}
.flow-origin + .flow-branches .flow-branch:where(:first-child)::before { left: 50%; }
.flow-origin + .flow-branches .flow-branch:where(:last-child)::before { right: 50%; }
.flow-origin + .flow-branches .flow-branch::after { top: -14px; left: 50%; height: 14px; border-left-width: 1px; }
.flow-s1 { --role-ink: #07534d; --role-tint: #e1f2ee; --role-line: #a7d1c7; }
.flow-s2 { --role-ink: #1a5178; --role-tint: #e6f1fa; --role-line: #b2cce1; }
.flow-s3 { --role-ink: #55447e; --role-tint: #f0ebf9; --role-line: #cec1e5; }
.flow-s4 { --role-ink: #774908; --role-tint: #fcf0dc; --role-line: #dfc598; }
.flow-s5 { --role-ink: #833e59; --role-tint: #f9edf2; --role-line: #ddbdcb; }
.flow-branch h3 a {
    min-height: 48px;
    border-color: var(--role-line, var(--line));
    background: var(--role-tint, var(--teal-light));
    color: var(--role-ink, var(--teal-dark));
    font-size: .93rem;
}
.flow-branch:is(:target, .is-current) h3 a { outline: 2px solid var(--role-ink, var(--teal)); outline-offset: 2px; }
.flow-branch h3 a:focus-visible { outline: 3px solid #188983; outline-offset: 4px; }
.flow-role-code { flex: none; font: 750 .82rem/1 ui-monospace, "SF Mono", Consolas, monospace; }
.flow-role-steps { gap: 6px; margin-top: 6px; }
.flow-role-steps > li + li::before { top: -6px; left: 19px; height: 6px; border-left-width: 1px; }
.flow-chart .flow-action { display: block; min-height: 44px; background: #fbfdfd; }
.flow-action-label { display: block; margin-bottom: 2px; color: var(--role-ink, var(--teal-dark)); font-size: .77rem; font-weight: 700; }
.flow-jump { display: none; }
.flow-current-task { margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--teal-light); font-size: .9rem; }
.flow-current-task p { margin-top: 3px; color: var(--muted); }
#first-practice, #team-handoff { scroll-margin-top: 16px; }
@container (max-width: 840px) {
    .flow-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .86rem; }
    .flow-jump a {
        display: grid;
        place-items: center;
        min-width: 40px;
        min-height: 40px;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: var(--teal-light);
        text-decoration: none;
        font-weight: 650;
    }
    .flow-jump a:hover { text-decoration: underline; }
    .flow-branches { grid-auto-flow: row; grid-auto-columns: auto; }
    .flow-origin + .flow-branches { padding: 14px 0 0 14px; }
    .flow-origin + .flow-branches::before { display: none; }
    .flow-origin + .flow-branches .flow-branch::before {
        inset: -14px auto auto -14px;
        width: 14px;
        height: calc(100% + var(--branch-gap));
        border-width: 0 0 0 1px;
    }
    .flow-origin + .flow-branches .flow-branch:last-child::before { height: 38px; }
    .flow-origin + .flow-branches .flow-branch::after {
        inset: 24px auto auto -14px;
        width: 14px;
        height: 0;
        border-width: 1px 0 0;
    }
}
@container (max-width: 520px) {
    .flow-common-steps { grid-auto-flow: row; grid-auto-columns: auto; gap: 6px; }
    .flow-common-steps > li + li::before {
        inset: -6px auto auto 19px;
        width: 0;
        height: 6px;
        border-width: 0 0 0 1px;
    }
}
.team-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(232px, 1fr); gap: 18px; align-items: start; }
.team-role-list, .study-steps, .role-tool-links { list-style: none; padding: 0; margin: 0; }
.team-role-list > li + li, .study-steps > li + li { border-top: 1px solid var(--line); }
.team-role-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px 17px;
    color: var(--ink);
    text-decoration: none;
}
.team-role-link:hover { background: var(--teal-light); }
.team-role-link:focus-visible { outline-offset: -3px; }
.team-role-link strong { display: block; color: var(--teal-dark); font-weight: 720; }
.team-role-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.team-role-badge, .study-step-number {
    display: inline-grid;
    place-items: center;
    color: var(--teal-dark);
    background: var(--teal-light);
    border: 1px solid #cfebe4;
    border-radius: 8px;
    font: 700 .9rem/1 ui-monospace, "SF Mono", Consolas, monospace;
}
.team-role-badge { width: 38px; height: 35px; }
.team-role-content > span { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }
.team-role-count { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.study-steps { padding-inline: 17px; }
.study-steps > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 13px 0; }
.study-step-number { width: 25px; height: 25px; }
.study-step-heading { display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: baseline; }
.study-step-heading a { color: var(--teal-dark); text-underline-offset: 3px; font-weight: 685; }
.study-step-text p { margin: 3px 0 0; color: var(--muted); font-size: .91rem; }
.role-practice, .role-handoffs { padding: 16px 18px; }
.role-practice { border-top: 1px solid var(--line); }
.role-practice h3, .role-handoffs h3 { font-size: 1rem; margin-bottom: 5px; }
.role-practice p { margin: 0; }
.role-tool-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.role-tool-links a { display: inline-block; padding: 4px 8px; border-radius: 6px; background: #f0f7f7; font-size: .87rem; text-underline-offset: 3px; }
.role-practice .role-tutor-link { margin-top: 9px; }
.practice-done { background: var(--teal-light); border-radius: 8px; padding: 9px 12px; margin: 13px 0 0; }
.practice-done dt { font-weight: 700; color: var(--teal-dark); font-size: .91rem; }
.practice-done dd { margin: 3px 0 0; font-size: .9rem; }
.role-handoffs dl { margin: 0 0 14px; }
.role-handoffs dl:last-child { margin-bottom: 0; }
.role-handoffs dl > div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.role-handoffs dt { color: var(--teal-dark); font-weight: 700; }
.role-handoffs dd { margin: 1px 0 0; color: var(--muted); font-size: .91rem; }
.tutor-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .88rem; }
.tutor-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.tutor-fields, .tutor-reply { padding: 16px 18px; }
.tutor-fields label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: 4px; }
.tutor-fields select {
    width: 100%;
    min-height: 42px;
    padding: 7px 10px;
    border: 1px solid #b9cccf;
    border-radius: 7px;
    color: var(--ink);
    background: var(--paper);
}
.tutor-fields select + label, .tutor-fields p, .tutor-fields .button { margin-top: 12px; }
.tutor-fields p { color: var(--muted); font-size: .91rem; }
.tutor-reply dl { margin: 0; }
.tutor-reply dl > div { margin-bottom: 9px; background: #f5f8f9; border-radius: 8px; padding: 8px 11px; }
.tutor-reply dl > .tutor-question { background: var(--teal-light); }
.tutor-reply dt { color: var(--teal-dark); font-size: .85rem; font-weight: 720; }
.tutor-reply dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.tutor-resource { margin: 11px 2px 0; }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.module-filter { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.module-filter a {
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    font-weight: 650;
    font-size: .875rem;
    text-decoration: none;
}
.module-filter a:hover { border-color: var(--teal); }
.module-filter a[aria-current] { background: var(--teal); color: #fff; border-color: var(--teal); }
.card-module + .card-module { margin-top: 27px; }
.card-module-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.card-module-heading h2 { font-size: 1.24rem; }
.card-tile { padding: 17px 19px; }
.tile-topic, .page-heading .tile-topic { margin: 10px 0 6px; color: var(--teal); font-size: .89rem; font-weight: 650; }
.card-tile .tile-topic { margin-top: 0; }
.card-tile h3 { font-size: 1.13rem; }
.card-tile h3 a { color: var(--ink); text-underline-offset: 3px; }
.card-tile h3 a:hover { color: var(--teal); }
.card-tile h3 + p, .info-panel p { color: var(--muted); margin-top: 8px; }
.text-link { display: inline-block; text-underline-offset: 3px; font-size: .92rem; font-weight: 650; }
.info-panel .text-link { margin-top: 14px; }
.prose { max-width: 790px; padding: clamp(19px, 4vw, 36px); line-height: 1.8; }
.prose h2 { font-size: 1.22rem; margin-top: 22px; }
.prose h2:first-child { margin-top: 0; }
.prose :is(p, ul, ol) { margin: 7px 0 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose img { display: block; max-width: 100%; height: auto; margin-block: 12px; }
.detail-grid { grid-template-columns: minmax(0, 1.75fr) minmax(230px, 1fr); }
.form-panel form { padding: 18px 20px 20px; }
.form-panel label:not(.qa-item) { display: block; font-size: .92rem; font-weight: 625; margin-bottom: 4px; }
.form-panel input[type="text"], .form-panel select {
    width: 100%;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid #aabfc1;
    border-radius: 7px;
    min-height: 44px;
    padding: 8px 9px;
}
.unit-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.info-panel { padding: 20px; }
.info-panel h2 { font-size: 1.065rem; }
.facts { margin: 12px 0; }
.facts div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.facts dt { font-weight: 650; }
.facts dd { margin: 0; text-align: right; }
.result { background: var(--teal-light); color: var(--teal-dark); padding: 12px 16px; margin: 0 20px 19px; border-radius: 9px; }
.result-label { font-size: .86rem; }
.result-value { font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-unit { font-weight: 650; }
.engineering-field + .engineering-field { margin-top: 13px; }
.engineering-input.has-unit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(104px, auto); gap: 8px; }
.engineering-layers { margin-top: 18px; }
.engineering-layers h3, .engineering-result h3, .info-panel h3 { font-size: 1rem; }
.engineering-layer {
    min-inline-size: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px 10px;
    margin: 8px 0;
}
.engineering-layer legend { padding-inline: 4px; color: var(--teal-dark); font-size: .9rem; font-weight: 650; }
.layer-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.layer-inputs :is(input, select) { display: block; margin-top: 4px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.secondary-button {
    padding: 7px 12px;
    min-height: 40px;
    border: 1px solid #afc9c7;
    border-radius: 8px;
    color: var(--teal-dark);
    background: var(--paper);
    font-weight: 650;
}
.secondary-button:not(:disabled):hover { background: var(--teal-light); }
.secondary-button:disabled { cursor: default; opacity: .55; }
.engineering-layer .secondary-button { margin-top: 4px; min-height: 35px; font-size: .85rem; }
.engineering-result { padding: 15px; }
.engineering-metrics { margin: 8px 0; }
.engineering-metrics div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding-block: 6px; border-bottom: 1px solid #bedbd5; }
.engineering-metrics dd { flex: none; margin: 0; font-variant-numeric: tabular-nums; font-weight: 720; text-align: right; white-space: nowrap; }
.engineering-check { margin-top: 9px; color: var(--teal-dark); font-size: .89rem; }
.engineering-check span { display: block; margin-top: 2px; overflow-wrap: anywhere; }
.engineering-note { padding: 8px 10px; margin-top: 9px; background: #f6fbfa; border-radius: 7px; }
.engineering-warning { background: #fff1d8; color: #64400b; }
.engineering-explain h3, .info-panel .facts + h3, .info-panel p + h3 { margin-top: 16px; }
.formula-list { padding-inline-start: 19px; margin: 8px 0 0; line-height: 1.65; }
.engineering-table { overflow-x: auto; padding: 0 20px 20px; }
.engineering-table table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.engineering-table caption { color: var(--teal-dark); font-weight: 700; text-align: left; padding: 5px 0 7px; }
.engineering-table :is(th, td) { padding: 6px; border-bottom: 1px solid var(--line); text-align: left; }
.engineering-table th { background: #f1f7f7; }
.engineering-table .selected-duct { color: var(--teal-dark); background: var(--teal-light); font-weight: 700; }
.engineering-field ~ [data-engineering-error] { margin-top: 12px; }
.feedback { margin: 0 0 12px; padding: 7px 10px; border-radius: 7px; }
.form-panel > .feedback { margin: 14px 20px 0; }
.failure { background: #fbecea; color: #842a32; }
.success { background: #e6f4eb; color: #225b40; }
.qa-list { margin: -7px 0 14px; }
.qa-list li { border-bottom: 1px solid var(--line); }
.qa-item {
    display: grid;
    grid-template-columns: 1.2rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 11px;
    padding: 12px 0;
    cursor: pointer;
}
.qa-item input { width: 1rem; height: 1rem; margin: 4px 0 0; accent-color: var(--teal); }
.qa-item > span:first-of-type span { display: block; color: var(--muted); font-size: .88rem; }
.sample-name { font-weight: 650; }
.evidence-list { padding-inline-start: 19px; margin: 7px 0 0; }
.evidence-list li + li { margin-top: 5px; }

.en-label { color: var(--muted); font-size: .8em; font-weight: 550; }
.page-heading h1 .en-label, .hero h2 .en-label { display: block; margin-top: 5px; font-size: .56em; letter-spacing: 0; }
.hero h2 .en-label { color: #afe0d9; font-size: .4em; }
.hero-eyebrow .en-label { color: #afe0d9; }
.button .en-label, [aria-current] .en-label { color: inherit; }
.button > .en-label { margin-inline-start: 5px; }
.sidebar-nav .en-label { display: block; color: #b8d2d4; line-height: 1.15; }
.sidebar-nav a { padding-block: 9px; }
.flow-chart .en-label { display: block; margin-top: 2px; }
.flow-chart .flow-action-label .en-label { display: inline; }
.flow-chart .flow-progress-link { height: auto; min-height: 34px; margin-top: 6px; gap: 4px; color: var(--role-ink, var(--teal)); }
.flow-jump > span .en-label { display: block; }

.priority-p0 { --priority-ink: #07584d; --priority-bg: #e4f3ed; --priority-line: #388b77; }
.priority-p1 { --priority-ink: #754710; --priority-bg: #fbf1de; --priority-line: #b58132; }
.priority-p2 { --priority-ink: #57446f; --priority-bg: #f1edf7; --priority-line: #8770a5; }
.priority-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.priority-tag {
    display: inline-block;
    padding: 4px 9px;
    border: 1px solid var(--priority-line);
    border-radius: 7px;
    background: var(--priority-bg);
    color: var(--priority-ink);
    font-size: .85rem;
    font-weight: 700;
    text-underline-offset: 3px;
}
.priority-tag .en-label { color: inherit; }
.priority-group { scroll-margin-top: 12px; }
.priority-group > .card-module-heading {
    padding: 9px 12px;
    border-left: 4px solid var(--priority-line);
    border-radius: 6px;
    background: var(--priority-bg);
    color: var(--priority-ink);
}
.priority-card { border-top: 3px solid var(--priority-line); }
.priority-card h3 .en-label, .progress-card-link .en-label { display: block; margin-top: 3px; }
.study-card { border-top: 4px solid var(--priority-line); }
.study-glossary, .study-extension, .study-answer {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f6faf9;
}
.study-glossary, .study-problem, .study-extension { margin-bottom: 18px; }
.study-extension:last-child { margin-bottom: 0; }
.study-glossary summary, .study-extension summary, .study-answer summary, .drawer-assumptions summary {
    color: var(--teal-dark);
    font-weight: 700;
}
.study-glossary dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 5px 12px; margin: 5px 0 0; }
.study-glossary dl div { padding-block: 4px; border-bottom: 1px solid var(--line); }
.study-glossary dt { font-size: .92rem; font-weight: 650; }
.study-glossary dd { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.study-problem { padding: 12px; border: 1px solid var(--line); border-radius: 9px; scroll-margin-top: 12px; }
.study-theory + .study-problem { margin-top: 20px; }
.study-problem-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 7px; }
.study-problem-heading h2 { margin: 0; }
.study-answer { margin-top: 9px; }
.study-extension { border-color: #dcd3e7; background: #f8f5fa; }
.calculator-trigger, .calculator-launch { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.calculator-trigger { font-size: .84rem; }
.calculator-launch { position: fixed; right: 16px; bottom: 16px; z-index: 6; box-shadow: 0 3px 16px #012c3430; }
.calculator-drawer {
    position: fixed;
    z-index: 11;
    top: 12px;
    right: 12px;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: min(372px, calc(100vw - 24px));
    max-height: min(85dvh, 690px);
    border-color: #aac6c4;
    box-shadow: 0 8px 36px #12343c42;
    overflow: hidden;
}
.calculator-drawer.is-positioned { right: auto; bottom: auto; }
.calculator-drawer-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    background: var(--teal-light);
    border-bottom: 1px solid var(--line);
}
.calculator-drawer-bar h2 { flex: 1; font-size: 1rem; }
.calculator-drawer-bar .en-label { display: block; }
.calculator-drawer-bar button { padding: 4px 7px; min-height: 36px; font-size: .81rem; }
[data-calculator-move] { cursor: grab; touch-action: none; user-select: none; }
[data-calculator-move]:active { cursor: grabbing; }
.calculator-drawer-picker { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.calculator-drawer-body { overflow-y: auto; }
.calculator-drawer form { padding: 11px 12px; }
.calculator-drawer :is(.result, .engineering-table) { margin-inline: 12px; }
.calculator-drawer .engineering-table { padding-inline: 0; }
.drawer-assumptions { margin: 0 12px 12px; padding: 8px; background: var(--bg); border-radius: 6px; font-size: .86rem; }
.drawer-assumptions :is(p, ul) { margin: 5px 0 0; }
.drawer-assumptions ul { padding-inline-start: 17px; }
@media (min-width: 1080px) {
    .calculator-open .study-card { max-width: min(790px, calc(100% - 360px)); }
}
@media (max-width: 720px) {
    .calculator-drawer { top: auto; bottom: 12px; max-height: 64dvh; }
}

.progress-role + .progress-role { margin-top: 20px; }
.progress-summary { padding: 15px 17px; margin-bottom: 14px; }
.progress-summary h2 { font-size: 1.22rem; }
.progress-summary p { margin-top: 5px; color: var(--muted); }
.progress-meter { display: grid; grid-template-columns: auto minmax(70px, 1fr) auto; gap: 9px; align-items: center; margin-top: 11px; }
.progress-meter progress { width: 100%; accent-color: var(--teal); }
.progress-meter output, .progress-stage h3 output { font-variant-numeric: tabular-nums; color: var(--teal-dark); font-size: .87rem; font-weight: 700; }
.progress-roles { position: sticky; top: 0; z-index: 3; padding: 6px 0; background: var(--bg); }
.progress-role, [data-progress-mark] { scroll-margin-top: 84px; }
.progress-summary .progress-next { padding: 6px 8px; border-radius: 6px; background: var(--teal-light); color: var(--ink); font-size: .88rem; }
.progress-stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.progress-stage h3 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
}
.progress-stage output { margin-inline-start: auto; }
.progress-list, .progress-handoff-list { list-style: none; margin: 0; padding: 0; }
.progress-list > li, .progress-stage-body { padding: 10px 14px; }
.progress-list > li + li, .progress-handoff-list > li + li { border-top: 1px solid var(--line); }
.progress-card-link { font-weight: 675; text-underline-offset: 3px; }
.progress-marks { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; }
.progress-mark { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; font-size: .86rem; cursor: pointer; }
.progress-mark input { flex: none; width: 17px; height: 17px; accent-color: var(--teal); }
.progress-mark .en-label { display: block; line-height: 1.13; }
.progress-mark:has(input:checked) { color: var(--teal); }
.progress-handoff-list { margin-top: 5px; }
.progress-handoff-list li { padding: 5px 0; }
.progress-handoff-list p { margin: 2px 0 4px 26px; color: var(--muted); font-size: .88rem; }
@media (max-width: 780px) {
    .progress-stages { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
    .shell { grid-template-columns: 195px minmax(0, 1fr); }
    .sidebar { padding-inline: 12px; }
    .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(258px, 1fr); }
    .deadline-panel { padding-inline: 15px; }
    .module-row { gap: 7px; padding-inline: 13px; }
}
@media (max-width: 850px) {
    .shell { display: block; }
    .sidebar { position: static; height: auto; padding: 9px 15px; }
    .brand { padding: 3px 0 9px; }
    .sidebar-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; padding-top: 0; gap: 4px; }
    .sidebar-nav a { gap: 5px; justify-content: center; padding: 6px 4px; min-height: 44px; }
    .sidebar-foot { display: none; }
    .topbar { min-height: 45px; }
}
@media (max-width: 660px) {
    .team-layout { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
    .hero-grid, .card-grid, .detail-grid { grid-template-columns: 1fr; gap: 12px; }
    .main-content { padding: 18px 13px 30px; }
    .topbar { padding-inline: 13px; }
    .hero { min-height: 250px; background-position: 59% center; }
    .sidebar { padding-inline: 9px; }
    .sidebar-nav a { flex-direction: column; gap: 2px; font-size: .8rem; text-align: center; }
    .sidebar-nav a svg { width: 15px; height: 15px; }
    .learning-panel, .learning-flow { margin-top: 12px; }
    .panel-heading { padding: 13px; }
    .page-heading { margin-bottom: 15px; }
    .timer-value { font-size: 1.6rem; }
}
@media (max-width: 345px) {
    .sidebar-nav a svg { display: none; }
    .sidebar-nav a { font-size: .79rem; }
    .module-status { font-size: .76rem; }
    .team-role-link { grid-template-columns: auto minmax(0, 1fr); padding-inline: 11px; }
    .team-role-count { grid-column: 2; }
}
