/* Макеты EasyMath используют палитру, шрифты и компоненты исходного EasyEnglish. */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font); }
button, input { font-family: var(--font); }
button { color: var(--label); font-size: 15px; touch-action: manipulation; }
button svg { pointer-events: none; }
svg { display: block; }
[hidden] { display: none !important; }
#app { position: fixed; inset: 0; height: 100dvh; max-width: 460px; margin: auto; display: flex; flex-direction: column; background: var(--bg); }
.status { height: 52px; padding: 12px 27px 0; display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0; }
.status-time { font-size: 15px; font-weight: 650; }
.status-icons { display: flex; align-items: center; gap: 6px; padding-top: 2px; }
.status-icons svg { width: 18px; height: 14px; }
.status-icons .battery { width: 25px; }
.home-indicator { position: absolute; z-index: 15; bottom: 9px; left: calc(50% - 66px); width: 132px; height: 5px; border-radius: 4px; background: var(--label); pointer-events: none; }
.page { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 12px; scrollbar-width: none; }
.page::-webkit-scrollbar { display: none; }
.native-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 50px; padding: 0 13px; flex-shrink: 0; }
.native-nav strong { font-size: 17px; font-weight: 600; }
.native-nav > .nav-left { justify-self: start; }
.native-nav > .nav-right { justify-self: end; display: flex; align-items: center; }
.native-nav button { background: none; border: 0; padding: 9px; min-height: 44px; color: var(--tint); display: flex; align-items: center; gap: 3px; }
.native-nav svg { height: 23px; width: 23px; }
#app .large-title { padding: 3px 4px 17px; margin: 0; letter-spacing: .2px; font-size: 34px; }
.home-description { color: var(--label-2); font-size: 15px; margin: -6px 4px 19px; }
.level-hero { margin-top: 2px; }
.hero-badge { background: var(--green); }
.home-button { margin-bottom: 11px; }
.today-stats { display: flex; gap: 10px; margin: 20px 0 12px; }
.today-stat { background: var(--bg-elevated); border-radius: var(--radius); padding: 13px 10px; flex: 1; text-align: center; }
.today-stat strong { display: block; font-size: 23px; font-weight: 650; }
.today-stat span { display: block; font-size: 12px; color: var(--label-2); margin-top: 3px; }
.topic-group { background: var(--bg-elevated); border-radius: var(--radius); overflow: hidden; }
.topic-item { display: flex; width: 100%; align-items: center; gap: 13px; padding: 15px 16px; min-height: 69px; border: 0; border-bottom: .5px solid var(--separator); background: none; text-align: left; }
.topic-item:last-child { border-bottom: 0; }
.topic-item .topic-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--fill); color: var(--tint); font-size: 18px; flex-shrink: 0; }
.topic-item strong { font-size: 16px; font-weight: 500; display: block; }
.topic-item small { font-size: 12px; color: var(--label-2); display: block; margin-top: 4px; }
.topic-item .topic-body { flex: 1; min-width: 0; }
.topic-item > svg { color: var(--label-3); height: 16px; width: 16px; }
.program-heading { color: var(--label-2); font-size: 13px; margin: 24px 16px 8px; text-transform: uppercase; }
.topic-page .program-heading { margin-top: 14px; }
.topic-intro { color: var(--label-2); font-size: 15px; line-height: 1.4; margin: -8px 4px 16px; }
.session-nav { display: flex; align-items: center; gap: 14px; padding: 0 16px; height: 43px; flex-shrink: 0; }
.close-button { min-width: 28px; min-height: 40px; padding: 4px; background: none; border: 0; color: var(--label-2); }
.close-button svg { width: 21px; height: 21px; }
.round-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.round-progress i { display: block; height: 100%; border-radius: 3px; background: var(--green); }
.combo { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--orange); }
.combo svg { width: 14px; height: 17px; }
.task-page { padding-top: 12px; }
.task-kicker { display: flex; justify-content: space-between; color: var(--label-2); font-size: 12px; margin-bottom: 9px; }
.task-title { margin: 0; font-size: 27px; line-height: 1.15; font-weight: 650; letter-spacing: -.5px; }
.task-description { color: var(--label-2); font-size: 14px; line-height: 1.4; margin: 9px 0 15px; }
.checkpoints { display: flex; gap: 7px; margin: 13px 0; }
.checkpoint { display: flex; align-items: center; gap: 5px; flex: 1; font-size: 10px; color: var(--label-2); }
.checkpoint i { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 10px; background: var(--fill); }
.checkpoint.on { color: var(--tint); }
.checkpoint.on i { color: white; background: var(--tint); }
.checkpoint.done { color: var(--green); }
.checkpoint.done i { color: white; background: var(--green); }
.equation-card { background: var(--bg-elevated); border-radius: var(--radius); padding: 15px 16px; text-align: center; }
.equation-caption { display: none; }
.equation { font-size: 29px; font-weight: 500; line-height: 1.2; letter-spacing: -.4px; white-space: nowrap; }
.equation sup { font-size: .6em; vertical-align: super; line-height: 0; }
.scratch-section { margin-top: 9px; }
.scratch-toolbar { display: flex; align-items: center; gap: 3px; min-height: 41px; margin-bottom: 3px; }
.scratch-toolbar .scratch-title { flex: 1; font-size: 15px; font-weight: 600; }
.scratch-toolbar button { width: 38px; height: 40px; background: none; border: 0; display: grid; place-items: center; color: var(--tint); }
.scratch-toolbar button svg { width: 19px; height: 19px; }
.scratch-pad { position: relative; height: 230px; border-radius: var(--radius); background: var(--bg-elevated); overflow: hidden; border: .5px solid var(--separator); background-image: radial-gradient(var(--separator) .65px, transparent .7px); background-size: 18px 18px; }
.scratch-pad canvas { width: 100%; height: 100%; touch-action: none; display: block; }
.scratch-placeholder { position: absolute; left: 0; right: 0; top: 44%; text-align: center; color: var(--label-2); font-size: 14px; pointer-events: none; }
.scratch-placeholder small { display: block; margin-top: 7px; font-size: 12px; color: var(--label-3); }
.answer-section { margin-top: 13px; }
.answer-heading { font-size: 13px; color: var(--label-2); margin-bottom: 6px; }
.answer-row { display: flex; gap: 10px; }
.answer-field { display: flex; align-items: center; gap: 13px; padding: 0 15px; min-height: 55px; border: 1.5px solid var(--separator); background: var(--bg-elevated); border-radius: var(--radius); flex: 1; min-width: 0; }
.answer-field:focus-within { border-color: var(--tint); }
.answer-field span { font-size: 19px; font-weight: 500; white-space: nowrap; }
.answer-field input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--label); font-size: 18px; outline: 0; padding: 15px 0; caret-color: var(--tint); }
.answer-field input::placeholder { color: var(--label-3); font-size: 15px; }
.answer-field input.invalid { color: var(--red); }
.coefficient-fields .answer-field { padding: 0 10px; gap: 7px; }
.coefficient-fields .answer-field input { text-align: center; }
.coefficient-fields .answer-field span { font-size: 16px; }
.math-shortcuts { display: flex; gap: 7px; margin-top: 9px; }
.math-shortcuts button { padding: 0 11px; min-height: 32px; min-width: 40px; border: 0; color: var(--tint); background: var(--fill); border-radius: 8px; font-size: 16px; }
.session-footer { flex-shrink: 0; padding: 10px 16px 36px; border-top: .5px solid var(--separator); background: var(--bg); }
.hint-button { display: flex; gap: 5px; align-items: center; justify-content: center; border: 0; width: 100%; min-height: 39px; background: none; color: var(--tint); font-size: 14px; margin-bottom: 5px; }
.hint-button svg { width: 16px; height: 18px; }
.primary { width: 100%; border: 0; background: var(--tint); color: white; border-radius: var(--radius); padding: 15px; min-height: 51px; font-size: 17px; font-weight: 600; }
.secondary { width: 100%; border: 0; background: none; color: var(--tint); min-height: 44px; font-size: 15px; margin-top: 7px; }
.feedback { margin: 0 0 10px; color: var(--green); text-align: center; font-size: 14px; }
.toast { position: absolute; z-index: 50; bottom: 145px; left: 16px; right: 16px; padding: 16px; border: .5px solid var(--separator); border-radius: var(--radius); background: var(--bg-elevated); color: var(--label); font-size: 14px; line-height: 1.45; box-shadow: 0 4px 24px #00000018; }
.success-page { text-align: center; padding-top: 35px; }
.success-symbol { display: grid; place-items: center; margin: 0 auto 22px; height: 96px; width: 96px; border-radius: 50%; background: color-mix(in srgb,var(--green) 14%,var(--bg-elevated)); color: var(--green); }
.success-symbol svg { width: 50px; height: 50px; }
.success-title { font-size: 34px; margin: 0; font-weight: 700; }
.success-subtitle { font-size: 15px; line-height: 1.5; color: var(--label-2); margin: 13px auto 25px; }
.result-stats { display: flex; gap: 10px; }
.result-stat { flex: 1; padding: 18px 8px; background: var(--bg-elevated); border-radius: var(--radius); }
.result-stat strong { display: block; font-size: 26px; font-weight: 650; }
.result-stat span { display: block; font-size: 12px; color: var(--label-2); margin-top: 5px; }
.skill-card { margin-top: 22px; padding: 18px; background: var(--bg-elevated); border-radius: var(--radius); text-align: left; }
.skill-card strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.skill-card p { color: var(--label-2); font-size: 14px; line-height: 1.4; margin: 0; }
.mock-keyboard { display: none; flex-shrink: 0; background: var(--fill); padding: 9px 8px 35px; }
.mock-keyboard .keyboard-top { display: flex; justify-content: space-between; color: var(--label-2); font-size: 12px; padding: 0 8px 8px; align-items: center; }
.mock-keyboard .keyboard-top button { background: none; border: 0; color: var(--tint); font-size: 14px; min-height: 27px; }
.key-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.key-grid button { height: 43px; background: var(--bg-elevated); border: 0; border-radius: 5px; font-size: 22px; box-shadow: 0 1px 1px #00000022; }
.key-grid .key-special { background: none; font-size: 19px; }
#app.scratch-expanded .scratch-section { position: absolute; z-index: 20; inset: 97px 16px 58px; background: var(--bg); margin: 0; display: flex; flex-direction: column; }
#app.scratch-expanded .scratch-pad { flex: 1; height: auto; }
#app.scratch-expanded .scratch-toolbar { margin-bottom: 10px; }
#app.scratch-expanded .scratch-toolbar button[data-action="expand"] { border-radius: 8px; background: var(--fill); }

/* Рабочее приложение занимает видимую область браузера без декоративной клавиатуры. */
#app { max-width: 560px; margin: 0 auto; bottom: auto; overflow: hidden; box-shadow: 0 0 90px #00000008; }
.math-main { padding-top: var(--safe-top); }
.boot { margin: auto; display: flex; align-items: center; gap: 16px; flex-direction: column; color: var(--label-2); font-size: 14px; }
.boot img { border-radius: 18px; }
.boot strong { font-size: 27px; color: var(--label); }
.page { padding: 14px 18px 26px; overscroll-behavior-y: contain; scrollbar-width: thin; }
.native-nav { height: 55px; padding: 0 12px; }
.native-nav strong { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.native-nav .combo { font-size: 13px; }
.brand-dot { background: var(--tint); border-radius: 9px; color: white; width: 30px; height: 30px; display: grid; place-items: center; font-size: 22px; margin-left: 6px; font-weight: 650; }
#app .large-title { padding: 2px 0 17px; font-size: 33px; line-height: 1.12; letter-spacing: -.7px; }
.home-description { margin: -5px 0 23px; line-height: 1.4; }
.practice-hero { background: var(--bg-elevated); border-radius: 22px; padding: 20px; box-shadow: 0 3px 25px #007aff08; }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--label-2); }
.hero-badge { background: color-mix(in srgb, var(--green) 13%, transparent); color: var(--green); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; }
.practice-hero h2 { font-size: 25px; letter-spacing: -.5px; line-height: 1.2; margin: 19px 0 9px; }
.practice-hero p { font-size: 14px; color: var(--label-2); line-height: 1.5; margin: 0 0 20px; }
.home-button { margin: 0; display: flex; justify-content: space-between; align-items: center; }
.home-button span { font-size: 23px; font-weight: 400; }
.program-heading { font-size: 12px; font-weight: 500; letter-spacing: .4px; margin: 24px 14px 9px; }
.topic-item { cursor: pointer; }
.topic-item strong { line-height: 1.25; }
.topic-item small { line-height: 1.4; }
.topic-item .topic-icon { background: color-mix(in srgb, var(--tint) 9%, transparent); font-weight: 550; }
.topic-emblem { width: 66px; height: 66px; display: grid; place-items: center; background: color-mix(in srgb, var(--tint) 12%, transparent); color: var(--tint); border-radius: 18px; font-size: 29px; font-weight: 600; margin: 7px 0 18px; }
.topic-intro { line-height: 1.55; margin: -3px 0 21px; }
.lesson-item { padding: 20px 16px; gap: 15px; }
.lesson-number { display: grid; place-items: center; background: var(--fill); color: var(--label-2); width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; font-weight: 600; }
.lesson-number.is-done { color: var(--green); background: color-mix(in srgb,var(--green) 12%, transparent); }
.difficulty { display: block; color: var(--tint); font-size: 11px; margin-top: 9px; letter-spacing: .5px; }
.device-note { color: var(--label-2); font-size: 12px; line-height: 1.6; padding: 0 10px; margin-top: 20px; }
.bottom-nav { display: flex; justify-content: space-around; padding: 7px 6px calc(8px + var(--safe-bottom)); border-top: .5px solid var(--separator); background: var(--bg-elevated); flex-shrink: 0; }
.bottom-nav button { color: var(--tint); min-height: 42px; padding: 5px 10px; font-size: 13px; background: none; border: 0; }
.theory-button { background: var(--bg-elevated); padding: 14px 17px; width: 100%; border: 0; color: var(--tint); border-radius: var(--radius); text-align: left; display: flex; justify-content: space-between; font-size: 15px; min-height: 48px; }
.rule-card,.review-card { padding: 19px; margin: 0 0 16px; background: var(--bg-elevated); border-radius: 18px; }
.rule-card h2 { font-size: 18px; margin: 0 0 15px; }
.rule-formula { font-size: 22px; color: var(--tint); line-height: 1.6; overflow-wrap: anywhere; }
.rule-card p,.review-step p { font-size: 14px; color: var(--label-2); line-height: 1.6; margin: 9px 0 0; }
.session-nav { padding-top: 7px; height: 49px; }
.task-page { padding-top: 16px; padding-bottom: 16px; }
.task-description { margin-bottom: 13px; }
.equation { white-space: normal; font-size: 28px; overflow-wrap: anywhere; line-height: 1.4; }
.equation-card { padding: 13px 12px; }
.scratch-toolbar { flex-wrap: wrap; gap: 0; margin-top: 7px; }
.scratch-toolbar .scratch-title { font-size: 14px; min-width: 66px; }
.scratch-toolbar button { width: 34px; min-height: 42px; }
.scratch-toolbar .pan-toggle { width: auto; padding: 0 8px; font-size: 12px; border-radius: 8px; }
.pan-toggle[aria-pressed="true"] { background: color-mix(in srgb,var(--tint) 12%,transparent); }
.scratch-pad { height: 238px; }
.scratch-pad canvas { color: var(--label); }
.scratch-section, .scratch-section * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* Свайп по листу не должен захватывать текст соседних блоков учебного экрана. */
#app .math-main.math-task-active,
#app .math-main.math-task-active * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#app .math-main.math-task-active input,
#app .math-main.math-task-active textarea,
#app .math-main.math-task-active [contenteditable]:not([contenteditable="false"]) { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
.scratch-pad canvas { -webkit-user-drag: none; }
.scratch-caption { color: var(--label-2); font-size: 10px; display: flex; justify-content: space-between; margin: 7px 2px 0; gap: 6px; }
.scratch-placeholder { font-size: 13px; }
.scratch-placeholder small { font-size: 11px; padding: 0 8px; }
.answer-field { padding: 0 12px; gap: 8px; flex-wrap: wrap; }
.answer-field:has(span:first-child:not(:last-child)) { flex-wrap: nowrap; }
.answer-field span { font-size: 16px; }
.answer-field:has(input[name="answer"]) { flex-wrap: wrap; gap: 0; padding: 10px 14px; }
.answer-field:has(input[name="answer"]) span { font-size: 12px; color: var(--label-2); width: 100%; }
.answer-field:has(input[name="answer"]) input { padding: 3px 0 2px; }
.answer-field input { box-shadow: 0 0 0 1000px var(--bg-elevated) inset; -webkit-text-fill-color: var(--label); border-radius: 0; font-size: 17px; }
.answer-field input:-webkit-autofill { box-shadow: 0 0 0 1000px var(--bg-elevated) inset; -webkit-text-fill-color: var(--label); }
.answer-row:has(input[name="x1"]) { gap: 8px; }
.answer-row:has(input[name="x1"]) .answer-field { padding: 0 9px; gap: 4px; }
.answer-field input::placeholder { font-size: 13px; -webkit-text-fill-color: var(--label-3); }
.math-shortcuts { gap: 5px; }
.math-shortcuts button { flex: 1; padding: 0 4px; min-width: 0; min-height: 36px; }
.session-footer { padding: 4px 18px calc(12px + var(--safe-bottom)); }
.session-footer .hint-button { margin: 0; min-height: 37px; }
.hint-card { padding: 14px 16px; color: var(--label-2); background: color-mix(in srgb,var(--tint) 7%,var(--bg-elevated)); border-radius: var(--radius); font-size: 14px; line-height: 1.5; margin-top: 12px; }
.feedback { text-align: left; margin: 10px 3px 0; min-height: 0; font-size: 13px; }
.feedback:empty { display: none; }
.feedback.is-error { color: var(--red); }
.primary:disabled { opacity: .75; }
.primary,.secondary { cursor: pointer; }
.toast { position: absolute; bottom: calc(125px + var(--safe-bottom)); z-index: 80; }
.result-review { margin-top: 25px; }
.success-page { padding-top: 34px; }
.success-title { font-size: 32px; letter-spacing: -.6px; }
.success-symbol { height: 88px; width: 88px; margin-bottom: 23px; }
.review-card h2 { font-size: 22px; line-height: 1.5; font-weight: 600; margin: 12px 0 20px; overflow-wrap: anywhere; }
.review-step { margin-bottom: 17px; }
.review-step strong { font-size: 14px; }
.review-card .theory-button { background: var(--fill); }
.archive-scratch .scratch-pad { height: 55dvh; }
.stats-hero { text-align: center; background: var(--bg-elevated); border-radius: 22px; padding: 24px 18px; }
.stats-hero > svg { width: 74px; height: 88px; margin: auto; }
.stats-hero h2 { font-size: 33px; margin: 13px 0 3px; }
.stats-hero p { color: var(--label-2); font-size: 13px; }
.choice-backdrop { position: absolute; inset: 0; z-index: 90; background: #00000045; display: flex; align-items: end; }
.choice-sheet { width: 100%; border-radius: 24px 24px 0 0; padding: 24px 22px calc(20px + var(--safe-bottom)); background: var(--bg-elevated); box-shadow: 0 -8px 50px #00000010; }
.choice-sheet h2 { font-size: 22px; margin: 0 0 12px; }
.choice-sheet p { font-size: 14px; color: var(--label-2); line-height: 1.6; margin: 0 0 22px; }
#app.scratch-expanded .scratch-section { position: absolute; z-index: 20; inset: calc(49px + var(--safe-top)) 16px calc(18px + var(--safe-bottom)); border-radius: 18px; padding: 10px 8px; }
#app.scratch-expanded .scratch-caption { margin-top: 10px; }
/* При наборе остаются условие и ответ; лист возвращается после закрытия клавиатуры. */
@media (max-width: 350px) { .page { padding-left: 13px; padding-right: 13px; } #app .large-title { font-size: 29px; } .hero-top { flex-wrap: wrap; } .scratch-toolbar .scratch-title { min-width: 57px; font-size: 12px; } .scratch-toolbar button { width: 30px; } .answer-field span { font-size: 14px; } .coefficient-fields .answer-field { padding: 0 5px; gap: 3px; } .coefficient-fields input::placeholder { font-size: 11px; } .equation { font-size: 23px; } .session-nav { gap: 9px; } }
@media (prefers-reduced-motion: reduce) { .anim-fade,.scr-in-right,.scr-out-left,.scr-in-left,.scr-out-right { animation: none; } }

/* Учебное условие и ответ имеют одинаковые размеры до и после открытия клавиатуры. */
#app .task-page,
#app .task-page > .task-kicker,
#app .task-page > .task-title,
#app .task-page > .equation-card,
#app .task-page > .scratch-section,
#app .task-page > .answer-section { animation: none !important; }
.task-description { font-size: 12px; line-height: 17px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.scratch-section { overflow: hidden; transition: opacity 150ms ease; }
/* Скрываем содержимое, сохраняя размеры: браузер не зажимает scrollTop при фокусе. */
#app.answer-focused .scratch-section,
#app.answer-focused .hint-card,
#app.answer-focused .session-footer { visibility: hidden; opacity: 0; pointer-events: none; }
/* Нативная клавиатура перекрывает сцену, а не переставляет всё приложение. */
html.math-viewport-locked,
html.math-viewport-locked body { overflow: hidden; overscroll-behavior: none; }
html.math-viewport-locked body { position: fixed; inset: 0; width: 100%; }
#app .math-task-active .task-page { overflow-anchor: none; max-height: max(0px, calc(var(--math-visible-height, 100dvh) - 58px - var(--safe-top))); }
#app .fire-memory { display: flex; flex-direction: column; align-items: flex-end; gap: 0; width: 112px; flex-shrink: 0; min-height: 45px; padding: 0; background: none; border: 0; }
.fire-memory small { display: block; height: 13px; line-height: 13px; width: 112px; color: var(--label-2); font-size: 10px; font-weight: 400; white-space: nowrap; text-align: right; }
.session-nav { height: 58px; }
.native-nav .fire-memory { min-height: 45px; }
.native-nav strong { max-width: min(180px, max(72px, calc(100vw - 248px))); }
.record-card { display: flex; align-items: center; gap: 13px; margin-top: 20px; padding: 17px; background: var(--bg-elevated); border-radius: var(--radius); text-align: left; }
.record-card .record-symbol { font-size: 27px; color: var(--orange); }
.record-card .record-symbol svg { width: 28px; height: 28px; }
.stats-hero .fire-large { width: 74px; height: 88px; margin: auto; }
.stats-hero .fire-large > svg { width: 74px; height: 88px; }
.record-card strong { display: block; font-size: 16px; }
.record-card p { color: var(--label-2); font-size: 12px; line-height: 1.5; margin: 5px 0 0; }
.record-card.is-new { background: color-mix(in srgb,var(--orange) 9%,var(--bg-elevated)); }

/* Управление цифровым вводом занимает постоянное место, не перестраивая строку символов. */
#app .math-shortcuts .input-next { flex: none; width: 70px; padding: 0 5px; font-size: 12px; font-weight: 600; visibility: hidden; pointer-events: none; }
#app.answer-focused .math-shortcuts .input-next { visibility: visible; pointer-events: auto; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, var(--bg-elevated)); }

/* Знаки выражения расположены в двух устойчивых рядах с удобными целями касания. */
.math-shortcuts.expression-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
#app .math-shortcuts.expression-shortcuts .input-next { width: auto; }
