/* Jenova Academy — light, calm, large type. Accent: rose. */
:root {
  --bg: #fbf6f1; --card: #fff; --ink: #2a2630; --muted: #756e7c; --line: #ece3da;
  --accent: #b4476a; --accent-d: #953657; --accent-soft: #fbe9ef;
  --ok: #2c8a64; --ok-soft: #e4f4ec; --warn: #b7791f; --warn-soft: #fdf3dc; --bad: #c2413b; --bad-soft: #fdeceb;
  --blue-soft: #e8f0fb; --r: 16px; --shadow: 0 1px 2px rgba(60, 40, 30, .05), 0 8px 24px rgba(60, 40, 30, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h2 { font-size: 22px; line-height: 1.3; margin: 34px 0 10px; }
h3 { font-size: 18px; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
a { color: var(--accent-d); }
small { font-size: 13px; }
.muted { color: var(--muted); }
.center { text-align: center; }
code { background: #f3ece5; padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.ext { font-size: .8em; margin-left: 2px; opacity: .7; }

/* layout */
.side { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 20px 14px; z-index: 30; overflow-y: auto; }
.main { margin-left: 250px; padding: 36px 44px 90px; max-width: 1010px; }
.top, .tabbar, .shade { display: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 18px; padding: 0 8px 18px; }
.brand b { font-weight: 800; }
.brand__mark { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-family: Georgia, serif; font-size: 20px; flex: none; }
.brand__mark--big { width: 56px; height: 56px; font-size: 32px; border-radius: 18px; margin: 0 auto 12px; }
.menu { display: flex; flex-direction: column; gap: 2px; }
.menu__item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 16px; }
.menu__item:hover { background: #f7f0ea; }
.menu__item.is-on { background: var(--accent-soft); color: var(--accent-d); font-weight: 600; }
.menu__ico { width: 24px; text-align: center; }
.side__foot { margin-top: auto; padding-top: 16px; }
.devhelp { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed var(--accent); border-radius: 12px; text-decoration: none; color: var(--accent-d); background: #fff8fa; margin-bottom: 12px; position: relative; }
.devhelp.is-on { background: var(--accent-soft); }
.devhelp b { display: block; line-height: 1.2; } .devhelp small { color: var(--muted); }
.devhelp em { position: absolute; right: 10px; top: 10px; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; border-radius: 10px; padding: 0 7px; }
.who { display: flex; justify-content: space-between; align-items: center; padding: 0 8px; font-size: 14px; color: var(--muted); }
.linkbtn { background: none; border: 0; color: var(--accent-d); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.flash { background: var(--warn-soft); border: 1px solid #f0dca8; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; }

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border: 0; border-radius: 12px; padding: 11px 20px; font: 600 16px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover { background: var(--accent-d); } .btn:active { transform: translateY(1px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); } .btn--ghost:hover { background: #f7f0ea; }
.btn--soft { background: var(--accent-soft); color: var(--accent-d); } .btn--soft:hover { background: #f6d9e3; }
.btn--big { padding: 15px 28px; font-size: 18px; border-radius: 14px; }
.btn--wide { width: 100%; }
.btn--small { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn.is-done { background: var(--ok); }
.btn[disabled] { opacity: .5; cursor: default; }
label { display: block; font-size: 14px; font-weight: 600; color: #4a4450; margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font: 16px/1.4 inherit; font-family: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); display: inline-block; padding: 0; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-d); white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: var(--ok); } .pill--pay { background: var(--warn-soft); color: var(--warn); } .pill--bad { background: var(--bad-soft); color: var(--bad); }
.bar { height: 10px; background: #efe6dd; border-radius: 10px; overflow: hidden; margin-top: 10px; } .bar i { display: block; height: 100%; background: var(--ok); border-radius: 10px; transition: width .4s; }
.pagehead { margin-bottom: 22px; }
.search { max-width: 420px; }
.tablewrap { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf4ee; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* login */
.bare { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login__card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px 32px; width: min(400px, 100%); box-shadow: var(--shadow); text-align: center; }
.login__card form { text-align: left; margin-top: 22px; }

/* home */
.hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #fff 0%, #fdeef3 100%); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px; margin-bottom: 18px; }
.hero__hello { color: var(--accent-d); font-weight: 700; margin-bottom: 4px; }
.hero p:last-child { margin: 0; color: #55505c; max-width: 560px; }
.ring { --p: 0; width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #fff 78%, transparent 80%), conic-gradient(var(--ok) calc(var(--p) * 1%), #efe2e6 0); }
.ring b { font-size: 26px; line-height: 1; } .ring small { color: var(--muted); }
.nextcard { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center; background: #fff; border: 2px solid var(--accent); border-radius: 20px; padding: 22px 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); margin-bottom: 18px; }
.nextcard__label { color: var(--accent-d); font-size: 14px; font-weight: 700; grid-column: 1; }
.nextcard strong { font-size: 23px; line-height: 1.25; grid-column: 1; }
.nextcard__meta { color: var(--muted); font-size: 14px; grid-column: 1; }
.nextcard .btn { grid-column: 2; grid-row: 1 / span 3; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.stat b { display: block; font-size: 26px; line-height: 1.1; } .stat span { color: var(--muted); font-size: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile span { font-size: 28px; } .tile b { display: block; font-size: 18px; margin: 4px 0; } .tile p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* course */
.module { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; margin-bottom: 18px; }
.module__head { display: flex; gap: 16px; align-items: flex-start; }
.module__emoji { font-size: 34px; line-height: 1; width: 56px; height: 56px; background: #faf1ea; border-radius: 16px; display: grid; place-items: center; flex: none; }
.module__head h2 { margin: 0 0 2px; } .module__head p { margin: 0; font-size: 15px; } .module__head small { color: var(--accent-d); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.lessons { list-style: none; margin: 16px 0 0; padding: 0; }
.lessonrow { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.lessonrow:hover { background: #faf4ee; }
.lessonrow__dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--muted); flex: none; }
.lessonrow.is-done .lessonrow__dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.lessonrow.is-next { background: var(--accent-soft); } .lessonrow.is-next .lessonrow__dot { border-color: var(--accent); color: var(--accent-d); }
.lessonrow__title { flex: 1; } .lessonrow__time { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* lesson */
.lesson { max-width: 740px; }
.back { display: inline-block; text-decoration: none; font-size: 15px; margin-bottom: 14px; }
.lesson__crumb { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.lesson h1 { font-size: 34px; }
.lesson__goal { background: #fff; border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.prose { font-size: 18px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; } .prose li { margin-bottom: 7px; }
.prose .btn { margin: 4px 6px 4px 0; }
.note { border-radius: 14px; padding: 14px 18px; margin: 18px 0; background: var(--blue-soft); font-size: 17px; }
.note > :last-child { margin-bottom: 0; }
.note__title { font-weight: 800; margin-bottom: 4px; }
.note--tip { background: var(--warn-soft); } .note--warn { background: var(--bad-soft); } .note--key { background: var(--ok-soft); } .note--ex { background: #f4eefa; } .note--do { background: var(--blue-soft); }
.tasks { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.tasks h3 { margin: 0 0 10px; }
.tasks--plain { border: 0; padding: 0; margin: 14px 0 0; }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 9px 8px; margin: 0; font-weight: 400; font-size: 17px; color: var(--ink); border-radius: 10px; cursor: pointer; }
.task:hover { background: #faf4ee; }
.task input { margin-top: 3px; }
.task small { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 2px; }
.task:has(input:checked) > span { color: var(--muted); } .task:has(input:checked) > span > b { text-decoration: line-through; font-weight: 600; }
.quiz { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.quiz h3 { margin: 0 0 10px; }
.quiz__q { margin-bottom: 18px; } .quiz__text { font-weight: 700; margin-bottom: 8px; }
.quiz__a { display: block; width: 100%; text-align: left; background: #faf6f2; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 7px; font: inherit; font-size: 16.5px; cursor: pointer; color: var(--ink); }
.quiz__a:hover { border-color: var(--accent); }
.quiz__a.is-right { background: var(--ok-soft); border-color: var(--ok); } .quiz__a.is-wrong { background: var(--bad-soft); border-color: var(--bad); }
.quiz__q.is-locked .quiz__a { cursor: default; pointer-events: none; }
.quiz__why { font-size: 15.5px; color: #4d4753; background: #faf6f2; border-radius: 10px; padding: 9px 13px; margin: 4px 0 0; }
.quiz__result { font-weight: 700; color: var(--ok); margin: 0; }
.lesson__done { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.lesson__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lesson__nav a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.lesson__nav a.is-next { text-align: right; border-color: var(--accent); } .lesson__nav small { display: block; color: var(--accent-d); font-weight: 700; }

/* tools, glossary */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.toolcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; }
.toolcard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 18px; }
.toolcard p { font-size: 15px; margin-bottom: 8px; line-height: 1.5; } .toolcard__how { color: #55505c; flex: 1; } .toolcard .btn { align-self: flex-start; }
.gloss { margin: 0; display: grid; gap: 8px; }
.gloss__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.gloss dt { font-weight: 800; } .gloss dd { margin: 2px 0 0; color: #4d4753; font-size: 16px; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.calc fieldset { border: 1px solid var(--line); background: #fff; border-radius: var(--r); padding: 16px 18px 6px; margin: 0 0 14px; }
.calc legend { font-weight: 800; padding: 0 8px; font-size: 16px; }
.seg { display: flex; gap: 6px; background: #f3ebe4; padding: 4px; border-radius: 13px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 10px; font: 600 15px inherit; font-family: inherit; cursor: pointer; color: var(--muted); }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.result { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.result__big { text-align: center; padding: 14px; border-radius: 14px; margin-bottom: 14px; background: var(--ok-soft); }
.result__big b { display: block; font-size: 36px; line-height: 1.1; } .result__big span { font-size: 14px; }
.result__big.is-mid { background: var(--warn-soft); } .result__big.is-bad { background: var(--bad-soft); }
.lines { list-style: none; padding: 0; margin: 0 0 12px; font-size: 15px; }
.lines li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.lines li.is-sum { font-weight: 800; border-bottom: 0; padding-top: 8px; } .lines li.is-head { font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border: 0; padding-top: 10px; }
.verdict { font-size: 15px; line-height: 1.5; margin-bottom: 12px; }

/* lists (products, suppliers) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.icard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.icard h3 { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.icard dl { margin: 0 0 10px; font-size: 15px; } .icard dt { color: var(--muted); font-size: 12.5px; margin-top: 6px; } .icard dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.icard__actions { display: flex; gap: 8px; }
.empty { background: #fff; border: 2px dashed var(--line); border-radius: var(--r); padding: 30px; text-align: center; color: var(--muted); }
dialog { border: 0; border-radius: 20px; padding: 0; width: min(620px, 94vw); max-height: 90vh; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(40, 30, 40, .45); }
.dlg { padding: 24px; } .dlg h2 { margin-top: 0; } .dlg__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.tpl { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; }
.tpl h3 { margin: 0 0 4px; } .tpl pre { white-space: pre-wrap; font: 15px/1.5 inherit; font-family: inherit; background: #faf6f2; border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.tpl__langs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }
.tpl__langs button { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; padding: 5px 12px; font: 600 14px inherit; font-family: inherit; cursor: pointer; }
.tpl__langs button.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-d); }

/* practice shop */
.simhub { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.simcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.simcard:hover { box-shadow: var(--shadow); }
.simcard__logo { font-weight: 800; font-size: 24px; }
.simcard ul { list-style: none; padding: 0; margin: 6px 0 12px; font-size: 15px; } .simcard li { padding: 2px 0; color: var(--muted); } .simcard li.is-done { color: var(--ok); }
.sim { --pc: #d5641c; }
.sim[data-platform=shopify] { --pc: #2c7a4b; } .sim[data-platform=tiktok] { --pc: #1c1c22; }
.sim__banner { background: var(--warn-soft); border-radius: 12px; padding: 9px 14px; font-size: 14.5px; margin-bottom: 14px; }
.sim__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sim__tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 14px; font: 600 15px inherit; font-family: inherit; cursor: pointer; color: var(--ink); }
.sim__tabs button.is-on { border-color: var(--pc); box-shadow: inset 0 -3px 0 var(--pc); } .sim__tabs button.is-done::before { content: "✓ "; color: var(--ok); }
.sim__grid { display: grid; grid-template-columns: 1fr 330px; gap: 18px; align-items: start; }
.shop { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.shop__bar { background: var(--pc); color: #fff; padding: 11px 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.shop__body { padding: 20px; }
.shop__body h3:first-child { margin-top: 0; }
.coach { position: sticky; top: 20px; background: #fff; border: 2px solid var(--accent); border-radius: 18px; padding: 18px; }
.coach h3 { margin: 0 0 8px; } .coach p { font-size: 15.5px; line-height: 1.5; }
.coach__score { font-size: 30px; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 10px 0; font-size: 14.5px; line-height: 1.4; }
.checks li { padding: 6px 0 6px 26px; position: relative; border-bottom: 1px dashed var(--line); } .checks li::before { content: "○"; position: absolute; left: 2px; color: var(--muted); }
.checks li.ok { color: var(--ok); } .checks li.ok::before { content: "✓"; color: var(--ok); } .checks li small { display: block; color: var(--muted); }
.brief { background: #faf6f2; border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; font-size: 15.5px; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 14px; }
.photo { border: 2px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; cursor: pointer; font-size: 12.5px; line-height: 1.25; background: #faf6f2; user-select: none; }
.photo span { display: block; font-size: 30px; } .photo.is-on { border-color: var(--pc); background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .05); }
.photo em { display: none; font-style: normal; font-weight: 800; color: var(--pc); } .photo.is-on em { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .chips span { background: #f3ebe4; border-radius: 20px; padding: 3px 10px; font-size: 13.5px; font-weight: 500; }
.orders { width: 100%; } .orders tr.is-click { cursor: pointer; } .orders tr.is-click:hover td { background: #faf4ee; }
.pulse { animation: pulse 1.3s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(180, 71, 106, .55); } 100% { box-shadow: 0 0 0 14px rgba(180, 71, 106, 0); } }
.opt { display: block; width: 100%; text-align: left; background: #faf6f2; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-bottom: 8px; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); }
.opt:hover { border-color: var(--accent); } .opt.is-right { background: var(--ok-soft); border-color: var(--ok); } .opt.is-wrong { background: var(--bad-soft); border-color: var(--bad); }
.bubble { background: #f1eef6; border-radius: 16px 16px 16px 4px; padding: 12px 16px; margin-bottom: 12px; max-width: 520px; }
.bubble small { display: block; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.feedback { border-radius: 12px; padding: 10px 14px; margin: 8px 0 14px; font-size: 15.5px; } .feedback.ok { background: var(--ok-soft); } .feedback.no { background: var(--bad-soft); }
.win { text-align: center; padding: 26px 10px; } .win span { font-size: 54px; display: block; }

/* helper chat */
.chat { background: #fff; border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; height: min(70vh, 720px); }
.chat__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 16.5px; line-height: 1.55; } .msg > :last-child { margin-bottom: 0; }
.msg--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg--assistant { align-self: flex-start; background: #f6f0ea; border-bottom-left-radius: 4px; } .msg ul, .msg ol { padding-left: 22px; margin: 0 0 10px; }
.chat__form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); } .chat__form textarea { margin: 0; resize: none; }

/* admin */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }

/* phone */
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .side { transform: translateX(-100%); transition: transform .2s; width: 270px; box-shadow: 0 0 40px rgba(0, 0, 0, .2); }
  body.menu-open .side { transform: none; } body.menu-open .shade { display: block; position: fixed; inset: 0; background: rgba(40, 30, 40, .4); z-index: 25; }
  .top { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; background: rgba(251, 246, 241, .94); backdrop-filter: blur(8px); padding: 8px 12px; z-index: 20; border-bottom: 1px solid var(--line); }
  .top .brand { padding: 0; } .top__menu { background: none; border: 0; font-size: 24px; padding: 4px 8px; cursor: pointer; color: var(--ink); }
  .main { margin: 0; padding: 18px 16px 100px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; background: #fff; border-top: 1px solid var(--line); z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { text-align: center; text-decoration: none; color: var(--muted); font-size: 11px; padding: 7px 2px 8px; } .tabbar a span { display: block; font-size: 21px; line-height: 1.2; } .tabbar a.is-on { color: var(--accent-d); font-weight: 700; }
  h1 { font-size: 25px; } .lesson h1 { font-size: 27px; } .prose { font-size: 17px; }
  .hero { padding: 20px; } .ring { width: 84px; height: 84px; } .ring b { font-size: 20px; }
  .nextcard { grid-template-columns: 1fr; padding: 18px; } .nextcard .btn { grid-column: 1; grid-row: auto; margin-top: 8px; } .nextcard strong { font-size: 20px; }
  .stats { grid-template-columns: 1fr 1fr; } .grid3, .simhub { grid-template-columns: 1fr; }
  .calc, .sim__grid { grid-template-columns: 1fr; } .result, .coach { position: static; }
  .module { padding: 16px; } .module__emoji { width: 44px; height: 44px; font-size: 26px; }
  .photos { grid-template-columns: repeat(2, 1fr); } .lesson__nav { grid-template-columns: 1fr; }
}

/* profile, personal text size */
.profilelink { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); margin-bottom: 6px; }
.profilelink:hover, .profilelink.is-on { background: var(--accent-soft); }
.profilelink b { display: block; line-height: 1.2; font-size: 15px; } .profilelink small { color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-d); display: grid; place-items: center; font-weight: 800; flex: none; }
.avatar--big { width: 60px; height: 60px; font-size: 26px; }
.who { justify-content: flex-end; }
.profile { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
.profile__head { display: flex; gap: 14px; align-items: center; } .profile__head b { display: block; font-size: 20px; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.choice label { margin: 0; cursor: pointer; } .choice input { position: absolute; opacity: 0; }
.choice span { display: block; border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 16px; background: #fff; font-weight: 600; color: var(--ink); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-d); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.choice__normal { font-size: 15px; } .choice__large { font-size: 18px; } .choice__xlarge { font-size: 21px; }
body.text-large { font-size: 19px; } body.text-large .prose { font-size: 20.5px; } body.text-large .task, body.text-large .quiz__a { font-size: 19px; } body.text-large .menu__item { font-size: 17.5px; }
body.text-xlarge { font-size: 21.5px; } body.text-xlarge .prose { font-size: 23px; } body.text-xlarge .task, body.text-xlarge .quiz__a { font-size: 21px; } body.text-xlarge .menu__item { font-size: 19px; } body.text-xlarge .note { font-size: 21px; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } }
