/* Speak30 — independent static stylesheet, no frameworks or remote fonts */
:root {
    color-scheme: light;
    --bg: #f7f8f7;
    --surface: #fff;
    --surface-2: #f0f4f4;
    --ink: #172a31;
    --muted: #667a81;
    --line: #dfe7e6;
    --accent: #0d807b;
    --accent-hover: #096f69;
    --accent-soft: #d9f2eb;
    --blue: #244a91;
    --gold: #e9bd72;
    --shadow: 0 16px 45px rgba(28, 55, 63, 0.06);
    --radius: 18px;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0c151b;
    --surface: #132128;
    --surface-2: #1b2c33;
    --ink: #edf6f4;
    --muted: #a3b7b9;
    --line: #2b4249;
    --accent: #7cddd1;
    --accent-hover: #9beddf;
    --accent-soft: #163e3d;
    --blue: #96baff;
    --gold: #ffd092;
    --shadow: 0 16px 45px rgba(0, 0, 0, 0.16);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 15px;
    line-height: 1.65;
}
button,
input,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}
.icon {
    vertical-align: middle;
    flex: none;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    line-height: 1.24;
    letter-spacing: -0.028em;
}
h1 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
}
h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}
h3 {
    font-size: 1.06rem;
}
p {
    margin-bottom: 12px;
}
::selection {
    background: var(--accent-soft);
}
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}
.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
}
.dot {
    display: inline-block;
    height: 4px;
    width: 4px;
    background: currentColor;
    border-radius: 50%;
    margin: 0 8px;
    vertical-align: middle;
    opacity: 0.65;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--surface) 93%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    width: min(1280px, calc(100% - 40px));
    margin: auto;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 820;
    letter-spacing: -0.055em;
    line-height: 1;
}
.brand-mark {
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    width: 41px;
    height: 41px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.06em;
}
.brand-accent {
    color: var(--accent);
}
.brand small {
    display: block;
    font-size: 10px;
    letter-spacing: 0.075em;
    color: var(--muted);
    margin-top: 5px;
    text-transform: uppercase;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}
.desktop-nav a {
    height: 100%;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-weight: 650;
    position: relative;
}
.desktop-nav a.active,
.desktop-nav a:hover {
    color: var(--ink);
}
.desktop-nav a.active:after {
    position: absolute;
    content: "";
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
    left: 0;
    right: 0;
    bottom: 0;
}
.header-actions {
    display: flex;
    gap: 13px;
    align-items: center;
}
.header-stat {
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 12px;
    border-radius: 20px;
    padding: 6px 11px;
    font-weight: 750;
}
.icon-button {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ink);
}
.icon-button:hover {
    border-color: var(--accent);
}
.moon-icon {
    display: none;
}
:root[data-theme="dark"] .sun-icon {
    display: none;
}
:root[data-theme="dark"] .moon-icon {
    display: inline;
}
.mobile-menu-btn,
.mobile-nav {
    display: none;
}
.primary-btn,
.secondary-btn {
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 720;
    line-height: 1.3;
    padding: 11px 17px;
    min-height: 43px;
    transition: 0.15s ease;
    background: var(--accent);
    color: #fff;
}
.primary-btn:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
}
:root[data-theme="dark"] .primary-btn {
    color: #072725;
}
.secondary-btn {
    background: var(--surface);
    border-color: var(--line);
    color: var(--ink);
}
.secondary-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.primary-btn.large,
.secondary-btn.large {
    padding: 14px 20px;
    min-height: 50px;
}
.quiet-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    color: var(--accent);
    font-size: 13px;
}
.help-text {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 12px;
}
.help-text a,
.content-card p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.home-hero {
    background: linear-gradient(116deg, #102d39 0%, #143f43 53%, #12645c 100%);
    color: #fff;
    overflow: hidden;
}
.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 35px;
    min-height: 490px;
    align-items: center;
    position: relative;
}
.home-intro {
    z-index: 1;
    padding: 65px 0 76px;
}
.home-intro h1 {
    margin: 20px 0 20px;
    line-height: 1.14;
    font-weight: 790;
}
.home-intro h1 em {
    font-style: normal;
    color: #91e0ca;
}
.home-intro > p {
    color: #d4e6e6;
    font-size: 17px;
    max-width: 600px;
    line-height: 1.75;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 30px;
    padding: 7px 14px;
    color: #c4f2e3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
}
.pill span {
    opacity: 0.5;
}
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 24px;
}
.home-hero .primary-btn {
    background: #c8f7e8;
    color: #133a37;
}
.home-hero .primary-btn:hover {
    background: #fff;
    color: #133a37;
}
.home-hero .secondary-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.hero-mini {
    color: #b3d4d2;
    font-size: 12px;
    margin-top: 25px;
}
.hero-visual {
    min-height: 420px;
    position: relative;
    display: grid;
    place-items: center;
}
.sound-disc {
    width: 290px;
    height: 290px;
    border: 1px solid rgba(255, 255, 255, 0.33);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    z-index: 1;
    backdrop-filter: blur(8px);
}
.disc-eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: #b6e4d9;
    font-weight: 800;
}
.big-ipa {
    font-size: 55px;
    font-weight: 750;
    letter-spacing: -0.06em;
    line-height: 1.35;
}
.disc-word {
    font-size: 14px;
    letter-spacing: 0.35em;
    color: #d2f4ed;
}
.disc-desc {
    font-size: 11px;
    color: #dbf5ed;
    letter-spacing: 0.05em;
}
.waveform {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 55px;
    margin: 7px 0;
}
.waveform i {
    display: block;
    width: 4px;
    background: #91e0ca;
    border-radius: 4px;
    height: 15px;
}
.waveform i:nth-child(2),
.waveform i:nth-child(8) {
    height: 24px;
}
.waveform i:nth-child(3),
.waveform i:nth-child(7) {
    height: 39px;
}
.waveform i:nth-child(4),
.waveform i:nth-child(6) {
    height: 29px;
}
.waveform i:nth-child(5) {
    height: 45px;
}
.orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 380px;
    height: 380px;
}
.orbit-two {
    width: 480px;
    height: 480px;
}
.float-note {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: #1b4643;
    border-radius: 12px;
    padding: 9px 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
    font-weight: 800;
    font-size: 12px;
    z-index: 2;
    letter-spacing: 0.08em;
}
.float-note span {
    color: #158779;
}
.note-1 {
    left: 3%;
    top: 22%;
}
.note-2 {
    right: 1%;
    bottom: 23%;
}
.overview {
    padding-top: 32px;
}
.overview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 16px;
}
.progress-panel,
.summary-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}
.progress-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
}
.progress-text strong {
    font-size: 38px;
    line-height: 1;
}
.progress-text span {
    font-size: 13px;
    color: var(--muted);
}
.progress-ring {
    --pct: 0%;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--accent) var(--pct), var(--surface-2) var(--pct));
    position: relative;
    flex: none;
}
.progress-ring:before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--surface);
}
.progress-ring span {
    position: relative;
    font-size: 12px;
    font-weight: 800;
}
.summary-panel {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
}
.summary-icon {
    font-size: 11px;
    color: var(--accent);
    font-weight: 900;
}
.summary-panel strong {
    font-size: 18px;
    margin-top: 6px;
}
.summary-panel p {
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 0;
}
.search-bar {
    margin: 38px 0 10px;
}
.search-bar label {
    display: block;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 15px;
}
.search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    max-width: 580px;
    height: 49px;
    color: var(--muted);
}
.search-inner input {
    border: 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    outline: 0;
    color: var(--ink);
}
.clear-search {
    background: none;
    border: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 8px;
}
.chip {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}
.chip.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}
.weeks-wrap {
    padding: 10px 0 34px;
}
.week-section {
    padding: 26px 0 13px;
}
.week-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}
.week-heading h2 {
    margin: 4px 0;
}
.week-heading p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}
.week-progress {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 7px 13px;
    border-radius: 30px;
    font-size: 12px;
    white-space: nowrap;
    color: var(--muted);
    font-weight: 700;
}
.day-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.day-card {
    min-height: 188px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: 0.16s ease;
}
.day-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: var(--ink);
}
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.day-badge {
    font-size: 10px;
    letter-spacing: 0.12em;
    font-weight: 850;
    color: var(--accent);
}
.card-check {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: transparent;
}
.card-check.done {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.day-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.4;
}
.day-card p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    font-size: 11px;
    color: var(--muted);
}
.card-bottom > span:last-child {
    color: var(--accent);
    font-weight: 800;
}
.card-bottom .icon {
    width: 15px;
}
.empty-search {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: var(--muted);
}
.tools-section {
    margin-bottom: 75px;
    border-radius: 18px;
    border: 1px solid var(--line);
    padding: 26px 30px;
    background: var(--surface);
}
.tools-header h2 {
    margin: 5px 0;
}
.tools-header p {
    max-width: 750px;
    color: var(--muted);
    font-size: 13px;
}
.tool-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.file-upload {
    cursor: pointer;
}
.lesson-layout {
    width: min(1280px, calc(100% - 40px));
    margin: auto;
}
.lesson-container {
    display: grid;
    grid-template-columns: 265px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}
.sidebar {
    position: sticky;
    top: 74px;
    height: calc(100vh - 74px);
    overflow-y: auto;
    border-right: 1px solid var(--line);
}
.sidebar-inner {
    padding: 27px 16px 30px 0;
}
.sidebar-title {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: 19px;
}
.sidebar-week {
    margin-bottom: 20px;
}
.sidebar-week-label {
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 9px;
    color: var(--muted);
}
.sidebar-day {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}
.sidebar-day:hover {
    background: var(--surface-2);
}
.sidebar-day.selected {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
}
.side-num {
    font-weight: 900;
    min-width: 22px;
}
.side-tick {
    margin-left: auto;
    color: transparent;
}
.side-tick.done {
    color: var(--accent);
}
.side-tick .icon {
    width: 13px;
    height: 13px;
}
.lesson-main {
    padding: 34px 0 70px;
    max-width: 860px;
    min-width: 0;
}
.lesson-hero {
    margin-bottom: 22px;
}
.lesson-hero h1 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    margin: 12px 0;
}
.lesson-hero > p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
}
.goal-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 14px 17px;
    margin-bottom: 18px;
}
.goal-label {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.075em;
    min-width: 108px;
    padding-top: 3px;
}
.goal-box > span:last-child {
    font-size: 13px;
    font-weight: 650;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.complete-on {
    background: #166d57 !important;
    color: #fff !important;
}
.content-card {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px 28px;
    margin: 18px 0;
}
.section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.section-num {
    height: 35px;
    min-width: 35px;
    border-radius: 10px;
    background: var(--accent-soft);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}
.section-heading h2 {
    font-size: 20px;
    margin: 2px 0 5px;
}
.section-heading p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}
.timeline {
    border-left: 2px solid var(--line);
    margin-left: 42px;
    padding-left: 23px;
}
.timeline-item {
    display: flex;
    gap: 18px;
    position: relative;
    margin-bottom: 19px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item:before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border: 3px solid var(--surface);
    border-radius: 50%;
    left: -32px;
    top: 5px;
}
.timeline-hour {
    font-size: 12px;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 900;
    min-width: 48px;
}
.timeline-item strong {
    font-size: 14px;
}
.timeline-item p {
    font-size: 12px;
    color: var(--muted);
    margin: 3px 0 0;
}
.theory-text,
.foundation-text {
    font-size: 14px;
    line-height: 1.85;
}
.tip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid #d2e9e3;
    background: var(--accent-soft);
    border-radius: 13px;
    padding: 18px;
    margin: 18px 0;
}
.tip-icon {
    font-size: 19px;
    color: var(--accent);
    font-weight: bold;
    min-width: 20px;
}
.tip strong {
    font-size: 13px;
}
.tip p {
    margin: 5px 0 0;
    font-size: 13px;
}
.tip.softer {
    background: var(--surface-2);
    border-color: var(--line);
}
.foundation-text {
    margin-top: 17px;
}
.table-scroll {
    max-width: 100%;
    overflow-x: auto;
}
.vocab-table {
    border-collapse: collapse;
    text-align: left;
    width: 100%;
    font-size: 13px;
}
.vocab-table th {
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--surface-2);
    padding: 11px 12px;
    white-space: nowrap;
}
.vocab-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.vocab-table tr:last-child td {
    border-bottom: 0;
}
.vocab-table td:nth-child(1) {
    min-width: 155px;
}
.vocab-table td:nth-child(2) {
    min-width: 142px;
}
.vocab-table td:nth-child(3) {
    min-width: 142px;
    color: var(--muted);
}
.word-line,
.sentence > div,
.pair-item > div {
    display: flex;
    align-items: center;
    gap: 9px;
}
.ipa {
    color: var(--blue);
    font-family: "Segoe UI Symbol", ui-sans-serif, sans-serif;
    font-size: 13px;
    letter-spacing: 0.015em;
}
.sound-btn {
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--accent);
    padding: 0;
}
.sound-btn:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.sound-btn .icon {
    width: 14px;
    height: 14px;
}
.sound-btn.playing {
    background: var(--accent);
    color: #fff;
}
.pair-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 16px;
}
.pair-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px;
    background: var(--surface-2);
}
.pair-item strong {
    font-size: 14px;
}
.pair-item p {
    font-size: 11px;
    color: var(--muted);
    margin: 5px 0 0;
}
.vs {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
}
.listening-game {
    margin-top: 23px;
    padding: 19px;
    border: 1px dashed var(--accent);
    border-radius: 15px;
}
.game-head {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.game-head strong {
    font-size: 15px;
}
.game-head p,
.game-feedback {
    font-size: 12px;
    color: var(--muted);
}
.game-count {
    font-size: 11px;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 800;
}
.game-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 13px 0;
}
.game-choices {
    display: flex;
    gap: 9px;
}
.choice {
    flex: 1;
    min-height: 43px;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 10px;
    font-weight: 800;
    color: var(--ink);
}
.choice:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
.choice.correct {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}
.choice.wrong {
    border-color: #d88484;
    background: #fce8e8;
    color: #8b2929;
}
.game-feedback {
    margin: 10px 0 0;
}
.sentence {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.sentence:first-child {
    padding-top: 0;
}
.sentence:last-child {
    border-bottom: 0;
}
.sentence > div {
    justify-content: space-between;
}
.sentence strong {
    font-size: 14px;
}
.sentence p {
    color: var(--muted);
    font-size: 13px;
    margin: 5px 0 0;
}
.content-card h3 {
    margin: 20px 0 9px;
    font-size: 15px;
}
.drill-list {
    padding-left: 22px;
}
.drill-list li {
    padding-left: 5px;
    margin-bottom: 9px;
    font-size: 13px;
}
.quiz-q {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
    margin: 0 0 20px;
    min-width: 0;
}
.quiz-q legend {
    font-size: 14px;
    font-weight: 800;
    padding: 0;
    margin-bottom: 14px;
    max-width: 100%;
    line-height: 1.5;
}
.quiz-index {
    color: var(--accent);
    display: inline-block;
    margin-right: 12px;
    font-size: 11px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 6px 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 13px;
}
.quiz-option:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.quiz-option input {
    accent-color: var(--accent);
}
.quiz-q.right > legend {
    color: var(--accent);
}
.quiz-q.wrong > legend {
    color: #b95e50;
}
.quiz-q:after {
    content: attr(data-feedback);
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin: 8px 0 0;
}
.quiz-q:not(.right):not(.wrong):after {
    display: none;
}
.quiz-footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.quiz-result {
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
}
.tasks {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}
.task-check {
    display: flex;
    gap: 11px;
    align-items: center;
    font-size: 13px;
    cursor: pointer;
}
.task-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.notes-label {
    display: block;
    margin: 24px 0 10px;
    font-weight: 800;
    font-size: 13px;
}
textarea {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    width: 100%;
    resize: vertical;
    padding: 13px;
    font-size: 13px;
    min-height: 118px;
    outline: none;
}
textarea:focus {
    border-color: var(--accent);
}
.save-status {
    font-size: 11px;
    color: var(--muted);
    margin: 6px 0 0;
}
.bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.lesson-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 800;
    color: var(--accent);
    font-size: 12px;
    margin: 27px 0;
}
.script-box {
    border-left: 3px solid var(--accent);
    background: var(--surface-2);
    padding: 18px 20px;
    border-radius: 0 12px 12px 0;
    line-height: 1.9;
    margin-bottom: 16px;
}
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.rubric-grid > div {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: var(--surface-2);
}
.rubric-grid strong {
    font-size: 13px;
}
.rubric-grid span {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}
.info-page {
    padding: 55px 0 80px;
}
.info-page > h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin: 9px 0 14px;
}
.lead {
    font-size: 16px;
    max-width: 830px;
    color: var(--muted);
    line-height: 1.8;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 28px;
}
.info-grid .content-card {
    margin: 0;
}
.info-grid .full-span {
    grid-column: 1/-1;
}
.info-grid .content-card > h2 {
    margin-bottom: 16px;
}
.info-grid li {
    margin: 8px 0;
}
.numbered-list {
    padding-left: 22px;
}
.time-summary {
    display: grid;
    gap: 8px;
    margin: 16px 0;
}
.time-summary span {
    background: linear-gradient(90deg, var(--accent-soft) var(--w), var(--surface-2) var(--w));
    border: 1px solid var(--line);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
}
.time-summary b {
    color: var(--accent);
    margin-right: 10px;
}
.legend {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 18px 0;
}
.legend span {
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 12px;
}
.legend b {
    font-size: 16px;
    color: var(--accent);
    margin-right: 4px;
}
.sounds-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 22px 0;
}
.sounds-wrap .content-card {
    margin: 0;
}
.sound-ipa {
    font-size: 18px;
    font-weight: 700;
}
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 26px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 11px;
}
.footer-inner strong {
    color: var(--ink);
    font-size: 13px;
}
@media (max-width: 1080px) {
    .lesson-container {
        grid-template-columns: 205px minmax(0, 1fr);
        gap: 22px;
    }
    .sidebar-day {
        font-size: 11px;
    }
    .home-hero-inner {
        grid-template-columns: 1.18fr 0.82fr;
    }
    .hero-visual {
        transform: scale(0.82);
        transform-origin: center;
    }
    .day-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .overview-grid {
        grid-template-columns: 1.3fr 1fr;
    }
    .overview-grid .summary-panel:last-child {
        grid-column: 1/-1;
    }
}
@media (max-width: 760px) {
    .container,
    .lesson-layout {
        width: min(100% - 26px, 620px);
    }
    .header-inner {
        width: calc(100% - 26px);
        height: 64px;
    }
    .desktop-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: grid;
    }
    .mobile-nav {
        display: none;
        flex-direction: column;
        border-top: 1px solid var(--line);
        padding: 10px 18px;
        background: var(--surface);
    }
    .mobile-nav.open {
        display: flex;
    }
    .mobile-nav a {
        padding: 10px;
    }
    .header-stat {
        display: none;
    }
    .home-hero-inner {
        display: block;
        min-height: auto;
    }
    .home-intro {
        padding: 56px 0 30px;
    }
    .home-intro h1 {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }
    .home-intro > p {
        font-size: 15px;
    }
    .hero-visual {
        min-height: 280px;
        transform: scale(0.72);
        margin-top: -70px;
        margin-bottom: -30px;
    }
    .overview-grid {
        grid-template-columns: 1fr 1fr;
    }
    .overview-grid .progress-panel {
        grid-column: 1/-1;
    }
    .overview-grid .summary-panel:last-child {
        grid-column: auto;
    }
    .summary-panel {
        min-height: 155px;
    }
    .day-grid {
        grid-template-columns: 1fr;
    }
    .day-card {
        min-height: 155px;
    }
    .lesson-container {
        display: block;
    }
    .sidebar {
        display: none;
    }
    .lesson-main {
        padding-top: 23px;
    }
    .lesson-hero h1 {
        font-size: 2rem;
    }
    .content-card {
        padding: 19px 17px;
    }
    .goal-box {
        display: block;
    }
    .goal-label {
        display: block;
        margin-bottom: 5px;
    }
    .pair-grid,
    .info-grid,
    .sounds-wrap {
        grid-template-columns: 1fr;
    }
    .info-grid .full-span {
        grid-column: auto;
    }
    .timeline {
        margin-left: 9px;
        padding-left: 19px;
    }
    .timeline-item {
        gap: 12px;
    }
    .timeline-item:before {
        left: -28px;
    }
    .rubric-grid {
        grid-template-columns: 1fr;
    }
    .info-page {
        padding: 32px 0 55px;
    }
    .footer-inner {
        display: block;
    }
    .footer-inner > div + div {
        margin-top: 10px;
    }
}
@media (max-width: 430px) {
    .day-card {
        padding: 17px;
    }
    .progress-text strong {
        font-size: 32px;
    }
    .progress-ring {
        width: 72px;
        height: 72px;
    }
    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions {
        align-items: stretch;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .primary-btn {
        flex: none;
        width: 100%;
    }
    .hero-actions .quiet-link {
        justify-content: center;
        min-height: 38px;
    }
    .site-header .brand {
        font-size: 19px;
    }
    .brand-mark {
        width: 36px;
        height: 36px;
    }
    .week-heading {
        align-items: flex-start;
    }
    .week-progress {
        font-size: 10px;
    }
    .content-card .table-scroll {
        margin: 0 -7px;
    }
    .game-choices {
        flex-direction: column;
    }
    .tool-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .tool-actions button,
    .tool-actions label {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }
}

[hidden] {
    display: none !important;
}
