:root {
  color-scheme: light;
  --ink: #232137;
  --muted: #666073;
  --paper: #f8f6f0;
  --surface: #fffdf9;
  --line: #e9e4e1;
  --night: #211e37;
  --accent: #ffce78;
  --purple: #4f3e72;
  --serif: 'Songti SC', STSong, SimSun, serif;
  --shadow: 0 8px 30px #2920370a;
  font-family: 'PingFang SC', 'Microsoft YaHei UI', 'Microsoft YaHei', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #8a70c5; outline-offset: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure { margin: 0; }
svg.icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }

.topbar { background: var(--paper); border-bottom: 1px solid #e9e4df; }
.topbar-inner { min-height: 70px; max-width: 1200px; margin: auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand, .brand-symbol { display: flex; align-items: center; }
.brand { gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: .055em; white-space: nowrap; }
.brand-symbol { justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent); color: var(--night); }
.header-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #ece4f1; color: var(--purple); }
.header-avatar .icon { width: 18px; height: 18px; }
.page { width: min(100%, 1200px); min-height: calc(100svh - 71px); margin: auto; padding: 26px 30px calc(128px + env(safe-area-inset-bottom)); }
.page:focus { outline: none; }
.inner-page { width: min(100%, 760px); margin-inline: auto; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(32px, 6vw, 53px); line-height: 1.16; letter-spacing: -.045em; }
.page-heading p { color: var(--muted); margin-top: 10px; line-height: 1.6; }

.hero { position: relative; isolation: isolate; min-height: 423px; display: flex; align-items: center; overflow: hidden; border-radius: 23px; background: radial-gradient(ellipse at 82% 34%, #7c6571 0%, transparent 42%), linear-gradient(122deg, #221c37, #382949 61%, #7b5860); color: #fff8ee; }
.hero-photo { position: absolute; z-index: -1; inset: -8% 0 auto auto; width: 57%; height: 142%; object-fit: contain; object-position: 68% top; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #221c35 0%, #221c3540 49%, transparent 66%), linear-gradient(0deg, #241e3733 0%, transparent 23%); pointer-events: none; }
.hero-copy { padding: 45px clamp(38px, 5.6vw, 78px); width: 66%; }
.hero-byline { display: flex; align-items: center; gap: 9px; color: #ffda9e; font-size: 14px; letter-spacing: .1em; margin-bottom: 19px; }
.hero-byline .icon { width: 18px; height: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(43px, 5.5vw, 74px); letter-spacing: -.04em; line-height: 1.19; font-weight: 800; }
.hero h1 span { display: block; }
.hero-summary { max-width: 370px; margin-top: 18px; color: #f0e8ea; font-size: 15px; line-height: 1.85; }
.hero .button { margin-top: 26px; }
.button { border: 1px solid transparent; border-radius: 13px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 10px 18px; font-size: 14px; font-weight: 750; line-height: 1.4; transition: background-color .18s ease, transform .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button .icon { width: 17px; height: 17px; }
.button-warm { background: var(--accent); color: #2a2231; }
.button-warm:hover { background: #ffdb9d; }
.button-dark { background: var(--night); color: #fffaf2; }
.button-dark:hover:not(:disabled) { background: #352c51; }
.button-line { border-color: #dcd5dc; background: #fffdfb; color: var(--ink); }
.button-line:hover { background: #f1edf3; }
.button:disabled { opacity: .44; }
.link-action { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 750; color: var(--purple); }
.link-action .icon { width: 17px; height: 17px; }

.assessment-strip { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 19px; margin-top: 18px; padding: 17px 22px; background: #eae4f2; border: 1px solid #e4dbed; border-radius: 17px; }
.assessment-strip:hover { background: #e6ddef; }
.assessment-mark, .round-icon { display: grid; place-items: center; border-radius: 16px; background: #dcd0ed; color: #543d76; }
.assessment-mark { width: 59px; height: 59px; }
.assessment-mark .icon { width: 29px; height: 29px; }
.strip-copy h2 { font-size: 20px; font-weight: 800; line-height: 1.4; }
.strip-copy p { color: #5f526b; font-size: 13px; margin-top: 4px; line-height: 1.6; }

.section { margin-top: 36px; }
.section-header { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 16px; }
.section-header h2 { font-size: clamp(25px, 4.4vw, 33px); letter-spacing: -.04em; }
.section-header p { margin-top: 5px; font-size: 13px; color: var(--muted); }
.section-header .link-action { white-space: nowrap; flex: 0 0 auto; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.course-card, .feature-card, .article-card, .panel, .tile { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; }
.course-card { display: block; overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.course-card:hover, .article-card:hover { transform: translateY(-2px); border-color: #cfc2d6; }
.cover { height: 132px; position: relative; isolation: isolate; display: flex; align-items: flex-end; padding: 14px; overflow: hidden; color: var(--art-ink); background: var(--art-bg); }
.cover::before, .cover::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.cover::before { width: 195px; height: 195px; top: -17px; right: -15px; background: var(--art-shape); }
.cover::after { width: 124px; height: 124px; right: 18px; top: 10px; border: 1px solid currentColor; opacity: .26; }
.course-cover-photo { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; object-position: center 25%; mask-image: linear-gradient(90deg, transparent, #000 28%); }
.course-cover-photo.is-cutout { inset: -2% -4% auto auto; width: 80%; height: 150%; object-fit: contain; object-position: right top; mask-image: none; }
.cover-label { display: grid; justify-items: start; align-content: end; gap: 7px; position: relative; }
.cover-teacher { padding: 4px 7px; border-radius: 6px; background: #fff9; color: var(--ink); font-size: 11px; font-weight: 750; }
.course-kind { position: relative; color: var(--art-ink); font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 7px; background: #fff8; }
.peach { --art-bg: #f8dfc8; --art-shape: #efd4a7; --art-ink: #845533; }
.iris { --art-bg: #e5ddf0; --art-shape: #d8c9e8; --art-ink: #5b487d; }
.sage { --art-bg: #e3eadc; --art-shape: #ceddc6; --art-ink: #3e644e; }
.sand { --art-bg: #f6e5c9; --art-shape: #ebd4aa; --art-ink: #8b6038; }
.rose { --art-bg: #f3e0e7; --art-shape: #e9cbd8; --art-ink: #88546d; }
.card-content { padding: 16px; }
.card-content h3 { font-size: 18px; line-height: 1.42; }
.card-content p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 16px; }
.price { color: #a34e32; font-weight: 850; font-size: 22px; letter-spacing: -.025em; white-space: nowrap; }
.purchases { color: var(--muted); font-size: 12px; white-space: nowrap; }
.catalog-group { margin-top: 28px; }
.catalog-group h2 { font-size: 23px; margin-bottom: 12px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.article-card { overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.article-cover { width: 100%; height: 157px; object-fit: cover; }
.article-card-copy { padding: 14px; }
.article-card h3 { font-size: 15px; line-height: 1.52; }
.article-summary { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.article-meta { margin-top: 9px; display: flex; align-items: center; flex-wrap: wrap; gap: 11px; color: var(--muted); font-size: 12px; }
.article-meta span { display: inline-flex; gap: 4px; align-items: center; }
.article-meta .icon { width: 14px; height: 14px; }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 31px; padding: 17px 1px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--purple); font-size: 13px; font-weight: 750; margin: 2px 0 17px; }
.back-link .icon { width: 17px; height: 17px; }
.detail-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 19px; background: #292239; color: #fff7ed; padding: 28px; min-height: 216px; display: flex; align-items: end; }
.detail-hero img { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 45%; height: 100%; object-fit: cover; object-position: 58% 24%; mask-image: linear-gradient(90deg, transparent, #000 40%); }
.detail-hero img.is-cutout { width: 49%; height: 141%; object-fit: contain; object-position: right top; mask-image: none; }
.detail-hero > div { max-width: 72%; }
.detail-hero .eyebrow { color: #ffdba3; }
.detail-hero h1 { margin: 9px 0; font-size: clamp(25px, 5vw, 42px); line-height: 1.24; letter-spacing: -.035em; }
.detail-hero p { color: #e8dfec; font-size: 13px; line-height: 1.55; }
.eyebrow { color: var(--purple); font-weight: 800; font-size: 13px; }
.panel { padding: 22px; margin-top: 15px; }
.panel h2 { font-size: 20px; margin-bottom: 11px; }
.panel p { color: var(--muted); line-height: 1.8; font-size: 14px; }
.panel p + p { margin-top: 12px; }
.lesson-list { counter-reset: lesson; padding: 0; margin: 0; list-style: none; }
.lesson-list li { counter-increment: lesson; padding: 13px 0; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #eee9e7; font-size: 14px; }
.lesson-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.lesson-list li::before { content: counter(lesson, decimal-leading-zero); display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--purple); background: #efe9f5; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.course-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.course-actions .price { display: block; margin-bottom: 4px; font-size: 27px; }
.action-group { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.article-body h1 { margin: 11px 0 8px; font-size: clamp(28px, 6vw, 45px); line-height: 1.26; letter-spacing: -.035em; }
.article-body .article-meta { margin-bottom: 18px; }
.article-body .article-deck { color: #5a5263; font-size: 17px; line-height: 1.6; }
.article-body figure { margin: 19px 0 29px; }
.article-body figure img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 13px; object-fit: cover; }
.article-section + .article-section { margin-top: 26px; }
.article-section h2 { color: var(--ink); }
.article-body p { font-size: 16px; line-height: 1.9; }
.article-body .button { margin-top: 18px; }
.article-body .button[aria-pressed=true] { color: #8b4165; background: #f5e3eb; }
.article-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 13px; }
.article-callout h2 { margin-bottom: 4px; }

.assessment-start { border: 1px solid #e0d7e9; border-radius: 22px; padding: clamp(24px, 5vw, 49px); background: radial-gradient(circle at 89% 0%, #dccdec, transparent 57%), #f1eaf6; }
.assessment-start .assessment-mark { margin-bottom: 21px; }
.assessment-start h1 { font-size: clamp(31px, 6.4vw, 49px); line-height: 1.18; letter-spacing: -.04em; }
.assessment-start p { margin-top: 12px; color: #5f526b; line-height: 1.7; font-size: 14px; }
.assessment-start .action-group { margin-top: 24px; }
.assessment-info { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 13px; }
.assessment-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 11px; align-items: center; }
.assessment-links .assessment-info { margin-top: 0; }
.interpretation { background: #f3eef7; border-color: #e5dceb; }
.interpretation h2 { display: flex; align-items: center; gap: 8px; }
.interpretation h2 .icon { color: var(--purple); }
.interpretation .button { margin-top: 12px; }
.editor-grid, .editor-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.editor-field { color: var(--ink); display: grid; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 750; }
.editor-field-wide { grid-column: 1 / -1; }
.editor-field input, .editor-field select, .editor-field textarea { width: 100%; min-height: 45px; border: 1px solid #ddd3e3; border-radius: 10px; padding: 9px 10px; font: inherit; font-weight: 400; font-size: 14px; line-height: 1.5; background: white; color: var(--ink); }
.editor-field textarea { min-height: 92px; resize: vertical; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.editor-actions .button { flex: 1 1 auto; }
.editor-main .editor-message { margin-top: 13px; font-weight: 700; }
.editor-section summary { cursor: pointer; font-weight: 850; padding: 2px 0; }
.editor-question { margin-top: 13px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.editor-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
#editor-auth .button { margin-top: 12px; }
.quiz-panel { padding: clamp(19px, 4vw, 32px); }
.progress-caption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--purple); font-weight: 750; }
.progress-track { margin-top: 9px; height: 7px; overflow: hidden; border-radius: 20px; background: #ebe4f0; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #8062b1; }
.quiz-panel h1 { margin: 21px 0 16px; font-size: clamp(24px, 5vw, 33px); line-height: 1.4; letter-spacing: -.025em; }
.quiz-options { margin: 0; padding: 0; border: 0; display: grid; gap: 9px; }
.option { cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 13px; min-height: 57px; font-size: 14px; border-radius: 13px; border: 1px solid #e6e0e9; line-height: 1.5; }
.option:has(input:checked) { border-color: #9279b6; background: #f2edf8; }
.option input { width: 18px; height: 18px; accent-color: #694f96; flex: 0 0 auto; margin: 0; }
.quiz-controls { margin-top: 19px; display: flex; justify-content: space-between; gap: 8px; }
.report-hero { background: #2d2543; color: #fff7ed; border-radius: 20px; padding: clamp(24px, 5vw, 41px); }
.report-hero .eyebrow { color: #f8d7a8; }
.report-hero h1 { margin: 8px 0; font-size: clamp(33px, 7vw, 53px); line-height: 1.2; letter-spacing: -.05em; }
.report-hero p { color: #ece3ea; font-size: 14px; line-height: 1.75; max-width: 510px; }
.practice-panel { background: #f9edda; border-color: #efdec2; }
.practice-panel h2 { display: flex; align-items: center; gap: 8px; }
.practice-panel h2 .icon { width: 20px; height: 20px; color: #855637; }
.report-link { margin-top: 15px; }

.member-hero { display: flex; align-items: center; gap: 16px; padding: 21px; background: #ede6f3; border: 1px solid #e6dfeb; border-radius: 19px; }
.member-avatar { width: 68px; height: 68px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #dcd0ed; color: #513c73; }
.member-avatar .icon { width: 35px; height: 35px; }
.member-hero h1 { font-size: 26px; line-height: 1.2; }
.member-hero p { margin-top: 5px; color: #5f526b; font-size: 13px; }
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.tile { text-align: left; padding: 13px 11px; color: var(--ink); min-height: 107px; }
.tile:hover { background: #f3eff7; }
.tile .round-icon { width: 36px; height: 36px; border-radius: 11px; margin-bottom: 8px; }
.tile .round-icon .icon { width: 19px; height: 19px; }
.tile:nth-child(2) .round-icon { color: #7b5429; background: #f6e7cc; }
.tile:nth-child(3) .round-icon { color: #436450; background: #e5ecdf; }
.tile strong, .tile small { display: block; }
.tile strong { font-size: 14px; }
.tile small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.account-links { display: grid; gap: 2px; padding: 4px 13px; }
.account-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 3px; border-bottom: 1px solid var(--line); }
.account-link:last-child { border-bottom: 0; }
.account-link > span { display: flex; align-items: center; gap: 9px; font-weight: 725; font-size: 14px; }
.account-link small { font-weight: 500; color: var(--muted); }
.account-link .icon { color: var(--purple); width: 18px; height: 18px; }
.record-list { display: grid; gap: 10px; }
.member-record { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 0; }
.member-record h2 { font-size: 16px; margin-bottom: 3px; }
.member-record .icon { color: var(--purple); }

.bottom-nav { position: fixed; z-index: 4; bottom: 13px; left: 50%; transform: translateX(-50%); width: min(calc(100% - 40px), 486px); padding: 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; border-radius: 20px; background: #fffdfaef; border: 1px solid #e6dfe5; box-shadow: 0 10px 38px #29203722; backdrop-filter: blur(12px); }
.tab-link { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; min-height: 50px; border-radius: 13px; color: #615b6c; font-size: 11px; font-weight: 650; white-space: nowrap; }
.tab-link .icon { width: 20px; height: 20px; }
.tab-link[aria-current='page'] { background: #eee6f5; color: #4e3971; font-weight: 850; }
.tab-link:hover { background: #f1eaf4; }

.modal { width: min(calc(100% - 28px), 475px); max-height: calc(100% - 30px); border: 1px solid #e2dbe5; border-radius: 21px; color: var(--ink); background: var(--surface); padding: 20px; box-shadow: 0 20px 70px #1c152950; }
.modal::backdrop { background: #231b37a3; }
.modal header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal h2 { font-size: 21px; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #f8f4f8; color: var(--ink); }
.icon-button .icon { width: 17px; height: 17px; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 8px 0; }
.modal .button { margin-top: 10px; }
.modal-list { padding: 0; margin: 9px 0 0; list-style: none; }
.modal-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 10px; }
.modal-list li:last-child { border: 0; }
.modal-list li span { color: var(--muted); font-size: 13px; }
.big-number { color: #694e8d; font-weight: 850; font-size: 39px; }
.share-card { margin: 9px 0 5px; padding: 15px; border-radius: 15px; background: #f0e8f4; }
.share-card strong, .share-card span { display: block; }
.share-card strong { margin: 6px 0; font-size: 18px; }
.share-card span { color: var(--muted); font-size: 12px; }
.copy-field { width: 100%; margin-top: 9px; padding: 8px; border: 1px solid #dacfe2; border-radius: 7px; background: white; color: var(--ink); }
.toast { position: fixed; bottom: calc(85px + env(safe-area-inset-bottom)); z-index: 10; width: max-content; max-width: calc(100% - 30px); left: 50%; transform: translateX(-50%); border-radius: 12px; color: white; background: #292139; padding: 10px 15px; font-size: 13px; box-shadow: 0 8px 35px #28213038; }
.toast:empty { display: none; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.chat-page { width: min(100%, 850px); margin-inline: auto; }
.chat-top, .chat-heading { display: flex; align-items: center; gap: 11px; }
.chat-top { justify-content: space-between; margin-bottom: 13px; }
.chat-heading .assessment-mark { width: 49px; height: 49px; border-radius: 15px; }
.chat-heading .assessment-mark .icon { width: 24px; height: 24px; }
.chat-heading h1 { font-size: clamp(21px, 4.2vw, 29px); line-height: 1.26; letter-spacing: -.04em; }
.chat-heading p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.chat-top .link-action { white-space: nowrap; }
.chat-panel { border: 1px solid #e7dfee; border-radius: 20px; background: #f8f5fa; overflow: hidden; box-shadow: var(--shadow); }
.chat-stream { height: clamp(315px, calc(100dvh - 310px), 665px); overflow-y: auto; overscroll-behavior-y: contain; padding: 20px; scrollbar-width: thin; }
.chat-turn { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.chat-turn:last-child { margin-bottom: 0; }
.chat-avatar { width: 38px; height: 38px; border-radius: 13px; background: #e9e1ed; overflow: hidden; flex: 0 0 auto; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 57% 16%; transform: scale(1.48); transform-origin: 57% 22%; }
.chat-turn-body { max-width: min(calc(100% - 48px), 635px); }
.chat-author { color: #685875; font-size: 11px; font-weight: 750; margin: 0 0 6px 2px; }
.chat-bubble { padding: 12px 14px; border: 1px solid #eae2ee; background: white; border-radius: 3px 14px 14px; color: var(--ink); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.chat-bubble p + p, .chat-question { margin-top: 7px; }
.chat-bubble > .chat-question:first-child { margin-top: 0; }
.chat-turn-user { justify-content: end; }
.chat-turn-user .chat-bubble { max-width: min(88%, 635px); border: 0; background: #e5d9f1; border-radius: 14px 4px 14px 14px; color: #302542; }
.chat-count { color: #694e91; font-size: 11px; font-weight: 800; margin-bottom: 5px; }
.chat-question p { color: #282139; font-weight: 800; }
.chat-choice-label { color: var(--muted); font-size: 12px; margin: 12px 0 6px 2px; }
.chat-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 9px; justify-items: start; }
.chat-starters { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 0; }
.chat-choice { display: inline-flex; justify-content: space-between; align-items: center; gap: 6px; text-align: left; padding: 8px 11px; background: #fffdfa; color: #574176; font-size: 12px; line-height: 1.45; font-weight: 750; min-height: 40px; width: fit-content; max-width: 100%; border: 1px solid #dfd3eb; border-radius: 10px; }
.chat-starters .chat-choice { width: 100%; }
.chat-choice:hover { background: #eae0f2; border-color: #c9b7df; }
.chat-choice .icon { width: 14px; height: 14px; }
.chat-working .chat-bubble { color: #65576c; font-size: 13px; padding: 8px 12px; }
.chat-working .chat-bubble span { display: inline-block; color: #725696; }
.chat-type { background: #fffdfd; border-top: 1px solid #ebe4ee; padding: 12px 15px 9px; }
.chat-type form { display: flex; align-items: stretch; gap: 7px; }
.chat-type textarea { resize: vertical; flex: 1; min-width: 0; min-height: 45px; max-height: 135px; padding: 11px 12px; border: 1px solid #e1d7e8; border-radius: 12px; font: inherit; font-size: 16px; line-height: 1.42; background: #fbf9fc; color: var(--ink); }
.chat-type textarea::placeholder { color: #716779; font-size: 13px; }
.chat-type .button { min-width: 82px; }
.chat-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 5px; color: #716779; font-size: 10px; }
.chat-reset { border: 0; padding: 4px 0; color: #645280; font-size: 11px; background: none; white-space: nowrap; }
.chat-note { padding: 7px 13px; border-top: 1px solid #ebe4ee; background: #fbf6e7; color: #68492a; display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12px; }
.chat-note .button { padding: 5px 8px; min-height: 32px; font-size: 11px; flex: 0 0 auto; }
.chat-analysis { background: #fffdf9; border: 1px solid #e8dccd; border-radius: 16px; padding: 16px; line-height: 1.75; font-size: 14px; }
.chat-analysis-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.chat-analysis-heading .round-icon { width: 39px; height: 39px; flex: 0 0 auto; }
.chat-analysis-heading > div > span { color: var(--purple); font-size: 11px; font-weight: 800; }
.chat-analysis-heading h2 { font-size: 20px; color: var(--ink); line-height: 1.2; }
.chat-practice { background: #fbefda; color: #4a3528; border-radius: 12px; margin-top: 11px; padding: 11px; }
.chat-practice strong { display: block; }
.chat-practice strong:not(:first-child) { margin-top: 7px; }
.chat-practice blockquote { margin: 3px 0 0; padding-left: 8px; border-left: 2px solid #c08347; }
.chat-recommendation { margin-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--purple); }
.chat-recommendation span { flex: 1; }
.chat-recommendation small, .chat-recommendation strong { display: block; }
.chat-recommendation small { font-size: 11px; }

@media (max-width: 760px) {
  .topbar-inner { min-height: 61px; padding: 0 16px; }
  .brand { font-size: 17px; }
  .brand-symbol { width: 33px; height: 33px; border-radius: 10px; }
  .brand-symbol .icon { width: 20px; height: 20px; }
  .header-avatar { width: 32px; height: 32px; }
  .page { padding: 14px 14px calc(99px + env(safe-area-inset-bottom)); }
  .hero { min-height: 343px; border-radius: 18px; }
  .hero-photo { inset: 0 -8% auto auto; width: 79%; height: 126%; object-position: 81% top; }
  .hero::after { background: linear-gradient(90deg, #221c35 0%, #221c3580 40%, transparent 71%), linear-gradient(0deg, #241e3755 0%, transparent 34%); }
  .hero-copy { padding: 24px 18px; width: 77%; }
  .hero-byline { font-size: 11px; margin-bottom: 15px; gap: 6px; }
  .hero-byline .icon { width: 15px; height: 15px; }
  .hero h1 { font-size: clamp(29px, 7.4vw, 49px); }
  .hero-summary { max-width: 190px; font-size: 12px; line-height: 1.72; margin-top: 13px; }
  .hero .button { margin-top: 18px; }
  .assessment-strip { grid-template-columns: 43px 1fr auto; gap: 9px; padding: 12px 10px; margin-top: 11px; border-radius: 14px; }
  .assessment-strip .assessment-mark { width: 42px; height: 42px; border-radius: 12px; }
  .assessment-strip .assessment-mark .icon { width: 23px; height: 23px; }
  .strip-copy h2 { font-size: 15px; }
  .strip-copy p { font-size: 11px; margin-top: 3px; }
  .assessment-strip .link-action { font-size: 11px; gap: 1px; }
  .assessment-strip .link-action .icon { width: 14px; height: 14px; }
  .section { margin-top: 25px; }
  .section-header { margin-bottom: 12px; }
  .card-grid { grid-template-columns: 1fr; gap: 10px; }
  .course-card { display: grid; grid-template-columns: minmax(86px, 29%) minmax(0, 1fr); padding: 8px; border-radius: 14px; }
  .course-card .cover { align-self: stretch; height: auto; min-height: 104px; padding: 7px; border-radius: 10px; }
  .course-card .cover::before { width: 121px; height: 121px; top: -10px; right: -23px; }
  .course-card .cover::after { width: 71px; height: 71px; top: 8px; right: 7px; }
  .course-card .course-kind { font-size: 10px; padding: 3px 5px; }
  .course-cover-photo { width: 100%; mask-image: linear-gradient(90deg, #0008, #000 40%); }
  .course-cover-photo.is-cutout { inset: 0 -14% 0 auto; width: 130%; height: 129%; }
  .cover-label { gap: 3px; }
  .cover-teacher { font-size: 9px; padding: 3px 4px; }
  .card-content { padding: 5px 7px 4px 12px; }
  .card-content h3 { font-size: 15px; }
  .card-content p { margin-top: 5px; font-size: 12px; line-height: 1.55; }
  .card-meta { margin-top: 8px; }
  .price { font-size: 18px; }
  .purchases { font-size: 11px; }
  .article-grid { grid-template-columns: 1fr; gap: 9px; }
  .article-card { display: grid; grid-template-columns: 93px 1fr; align-items: center; gap: 9px; padding: 8px; border-radius: 14px; }
  .article-cover { height: 76px; border-radius: 9px; }
  .article-card-copy { padding: 2px 3px; }
  .article-card h3 { font-size: 14px; }
  .page-heading { margin: 5px 0 16px; }
  .panel { padding: 16px; }
  .detail-hero { min-height: 181px; padding: 17px; }
  .detail-hero img { width: 54%; }
  .detail-hero img.is-cutout { width: 65%; height: 132%; right: -7%; }
  .detail-hero > div { max-width: 72%; }
  .editor-grid, .editor-options { grid-template-columns: 1fr; gap: 2px; }
  .site-footer { font-size: 11px; margin-top: 23px; }
  .bottom-nav { bottom: 0; width: 100%; padding: 5px 9px calc(5px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .tab-link { min-height: 48px; }
  .chat-top { margin-bottom: 9px; }
  .chat-heading .assessment-mark { width: 42px; height: 42px; border-radius: 12px; }
  .chat-top .link-action { font-size: 12px; }
  .chat-stream { height: clamp(275px, calc(100dvh - 270px), 655px); padding: 13px 11px; }
  .chat-turn { gap: 6px; }
  .chat-avatar { width: 31px; height: 31px; border-radius: 10px; }
  .chat-turn-body { max-width: calc(100% - 37px); }
  .chat-bubble, .chat-analysis { padding: 10px 11px; }
  .chat-starters { grid-template-columns: 1fr; }
  .chat-type { padding: 9px 9px 6px; }
  .chat-type .button { min-width: 69px; padding-inline: 9px; }
  .chat-footer { font-size: 10px; }
}

@media (max-width: 350px) {
  .assessment-strip .link-action span { display: none; }
  .hero-copy { padding-left: 14px; }
  .hero h1 { font-size: 27px; }
  .course-actions { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
