/* Режим экзамена: бланк и текст важнее оформления. */
.xm-rules { margin: 10px 0 0; padding-left: 20px; } .xm-rules li { margin: 6px 0; }
.xm-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; margin-bottom: 18px; }
.xm-variant { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; color: var(--ink); text-decoration: none; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.xm-variant:hover { background: var(--mint); } .xm-variant b { font-size: 30px; color: var(--brand); } .xm-variant span { font-size: 13px; color: var(--ink-soft); }
.xm-run { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.xm-main { display: grid; gap: 14px; min-width: 0; }
.xm-text { background: var(--surface); border-radius: var(--r-lg); padding: 14px 20px; box-shadow: var(--shadow); } .xm-text summary { cursor: pointer; font-weight: 700; min-height: 32px; }
.xm-passage { font-size: 16px; line-height: 1.65; max-height: 42vh; overflow-y: auto; } .xm-passage p { margin: 6px 0; }
.xm-no { display: inline-block; margin-bottom: 8px; padding: 3px 10px; color: var(--brand); background: var(--mint); border-radius: 999px; font-size: 13px; font-weight: 700; }
.xm-ask { font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0 0 12px; }
.xm-sentence { font-size: 17px; line-height: 1.7; margin: 8px 0; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.xm-rows { margin: 8px 0 14px; padding-left: 26px; font-size: 16px; line-height: 1.55; } .xm-rows li { margin: 7px 0; }
.xm-match { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } .xm-match h4 { margin: 0 0 6px; font-size: 14px; color: var(--muted); } .xm-match p { margin: 8px 0; font-size: 16px; line-height: 1.5; }
.xm-label { display: block; margin: 16px 0 6px; font-size: 14px; color: var(--ink-soft); }
#xm-essay { width: 100%; padding: 12px; font: 16px/1.6 Ubuntu, sans-serif; border: 2px solid var(--line); border-radius: 8px; resize: vertical; }
.xm-count { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.xm-listen { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.xm-choices { display: grid; gap: 10px; margin: 10px 0; } .xm-choices label { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; cursor: pointer; } .xm-choices input { margin-top: 5px; width: auto; flex: none; }
.xm-side { position: sticky; top: 76px; display: grid; gap: 12px; }
.xm-timer { margin: 8px 0 12px; font: 700 34px/1 'Courier New', monospace; color: #fff; text-align: center; }
.xm-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 12px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.xm-nav button { min-height: 44px; font-weight: 700; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.xm-nav button.done { background: var(--mint-2); border-color: transparent; } .xm-nav button.on { color: #fff; background: var(--brand); border-color: transparent; }
.xm-manual { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } .xm-manual label { display: grid; gap: 6px; font-size: 14px; } .xm-manual input { height: 44px; padding: 0 10px; }
.xm-own { white-space: pre-wrap; line-height: 1.6; }
@media (max-width: 860px) { .xm-run { grid-template-columns: 1fr; } .xm-side { position: static; order: -1; } .xm-timer { font-size: 26px; margin: 4px 0 8px; } .xm-nav { grid-template-columns: repeat(7, 1fr); } .xm-match { grid-template-columns: 1fr; gap: 10px; } .xm-passage { max-height: 34vh; } }

/* Новые формы заданий */
.prs-palette { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.prs-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; background: #fff; border: 1px solid var(--mint-2); border-radius: 10px; font-size: 14px; cursor: pointer; }
.prs-tool.on { background: var(--mint); border-color: var(--brand); font-weight: 700; }
.prs-text { display: flex; flex-wrap: wrap; gap: 6px; font-size: 21px; line-height: 2; margin: 8px 0; }
.prs-word { min-height: 44px; padding: 2px 6px; background: none; border: 0; border-radius: 6px; font: inherit; color: var(--ink); cursor: pointer; }
.prs-word:hover { background: var(--mint); }
.m-p, .m-s, .m-o, .m-d { text-decoration-line: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.m-s { text-decoration-style: double; } .m-o { text-decoration-style: wavy; } .m-d { text-decoration-style: dashed; }
.m-b { padding-bottom: 5px; background: repeating-linear-gradient(90deg, var(--brand) 0 10px, transparent 10px 14px, var(--brand) 14px 16px, transparent 16px 20px) left bottom / 100% 2px no-repeat; }
.hunt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.hunt-word { min-height: 48px; padding: 8px; font-size: 17px; background: #fff; border: 1px solid var(--mint-2); border-radius: 10px; cursor: pointer; }
.hunt-word.on { color: #fff; background: var(--bad); border-color: transparent; text-decoration: line-through; }
.audio-peek { font-size: 24px; font-weight: 700; text-align: center; }
.blz { max-width: 620px; }
.blz-top { display: flex; justify-content: space-between; font-size: 17px; margin-bottom: 8px; }
.blz-bar { height: 6px; margin-bottom: 18px; background: var(--mint); border-radius: 3px; overflow: hidden; } .blz-bar i { display: block; width: 100%; height: 100%; background: var(--brand); transition: width .25s linear; }
.blz-card { min-height: 230px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); touch-action: pan-y; cursor: grab; user-select: none; }
.blz-card.good { animation: blz-good .3s; } .blz-card.bad { animation: blz-bad .3s; }
@keyframes blz-good { 30% { box-shadow: 0 0 0 4px var(--green); } } @keyframes blz-bad { 30% { box-shadow: 0 0 0 4px var(--bad); } }
.blz-sub { margin: 0; font-size: 15px; color: var(--ink-soft); } .blz-main { margin: 0; font-size: 28px; font-weight: 700; overflow-wrap: anywhere; }
.blz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.blz-actions button { min-height: 60px; font-size: 17px; font-weight: 700; color: #fff; border: 0; border-radius: 12px; cursor: pointer; } .blz-no { background: var(--bad); } .blz-yes { background: #128a58; }
.blz-hint { text-align: center; margin-top: 12px; } .blz-misses { margin: 8px 0 0; padding-left: 18px; } .blz-misses li { margin: 10px 0; }
@media (prefers-reduced-motion: reduce) { .blz-card.good, .blz-card.bad { animation: none; } }

/* Лист КИМ и бланк: выглядят как бумага, а не как интерфейс сайта */
.xm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; } .xm-modes div { padding: 12px 14px; background: var(--bg); border-radius: 10px; } .xm-modes p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); }
.xm-variants { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.xm-variant { gap: 8px; padding: 14px; } .xm-variant:hover { background: var(--surface); } .xm-variant .btn { width: 100%; justify-content: center; text-align: center; } .xm-last { min-height: 34px; text-align: center; }
.xm-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-bottom: 20px; } .xm-numbers a { display: grid; place-items: center; min-height: 48px; font-weight: 700; color: var(--brand); text-decoration: none; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); } .xm-numbers a:hover { background: var(--mint); }
.xm-paper-wrap { max-width: 820px; }
.xm-paper { padding: 26px 32px 24px; color: #111; background: #fff; border: 1px solid #d5d5d5; box-shadow: 0 6px 22px rgba(20,28,79,.12); font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.55; }
.xm-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid #111; font-size: 14px; }
.xm-title { font: 700 21px/1.3 Georgia, 'Times New Roman', serif; text-align: center; margin: 4px 0 14px; color: #111; } .xm-wish { text-align: center; font-weight: 700; }
.xm-paper .xm-text { padding: 0; margin-bottom: 16px; background: none; border-radius: 0; box-shadow: none; } .xm-paper .xm-text summary { font-weight: 700; font-style: italic; }
.xm-paper .xm-passage { font-size: 17px; text-align: justify; margin-top: 8px; }
.xm-task { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.xm-paper .xm-no { display: grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; color: #111; background: #fff; border: 2px solid #111; border-radius: 0; font: 700 18px/1 Arial, sans-serif; }
.xm-ask { margin: 0 0 10px; font: 700 17px/1.5 Georgia, 'Times New Roman', serif; }
.xm-paper .xm-sentence { background: none; padding: 0; font-size: 18px; }
.xm-paper .xm-rows { font-size: 17px; } .xm-paper .xm-match p { font-size: 16px; } .xm-paper .xm-match h4 { color: #111; text-align: center; font-size: 15px; }
.xm-letters { border-collapse: collapse; margin: 12px 0 2px; } .xm-letters th, .xm-letters td { width: 42px; height: 30px; border: 1px solid #111; text-align: center; font-family: Arial, sans-serif; font-size: 14px; }
.xm-label { font-family: Arial, sans-serif; color: #333; font-size: 13px; }
.xm-blank { position: relative; display: inline-block; max-width: 100%; }
.xm-blank input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: text; font-size: 16px; }
.xm-cells { display: flex; } .xm-cells i { display: grid; place-items: center; width: 30px; height: 40px; margin-right: -1px; font: 700 20px/1 'Courier New', monospace; text-transform: uppercase; color: #123a9c; background: #fff; border: 1px solid #111; }
.xm-blank input:focus + .xm-x, .xm-blank:focus-within .xm-cells i.cur { background: #fff0e9; box-shadow: inset 0 -3px 0 var(--brand); }
.xm-blank:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.xm-count { font-family: Arial, sans-serif; color: #555; }
.xm-lined { font-family: 'Courier New', monospace !important; line-height: 32px !important; padding-top: 0 !important; background: repeating-linear-gradient(#fff 0 31px, #b9c4dc 31px 32px); border: 1px solid #111 !important; border-radius: 0 !important; }
.xm-act { margin-top: 18px; font-family: Ubuntu, sans-serif; } .xm-flag { margin-left: auto; } .xm-flag.on { color: #fff; background: #c76c00; border-color: transparent; }
#xm-verdict .feedback { margin-top: 12px; font-family: Ubuntu, sans-serif; font-size: 15px; }
#xm-verdict .feedback a { color: inherit; }
.xm-timer.low { color: #ffd166; } .xm-notime { font-size: 20px; } .xm-warn { min-height: 18px; margin: 0 0 8px; font-size: 13px; color: #ffd166; text-align: center; }
.xm-navbox { padding: 12px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); } .xm-navbox .xm-nav { padding: 0; box-shadow: none; }
.xm-nav button.flag { box-shadow: inset 0 -4px 0 #c76c00; }
.xm-legend { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); } .xm-legend i { width: 12px; height: 12px; border-radius: 3px; } .xm-legend .d { background: var(--mint-2); } .xm-legend .f { margin-left: 8px; background: #c76c00; }
.xm-saved { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.xm-print { font-size: 14px; }
.xm-blocks { display: grid; gap: 12px; } .xm-blocks div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; } .xm-blocks em { grid-column: 1 / -1; height: 8px; background: var(--mint); border-radius: 4px; overflow: hidden; } .xm-blocks i { display: block; height: 100%; background: var(--brand); }
.xm-retry { margin: 14px 0; }
@media (max-width: 860px) { .xm-paper { padding: 16px 14px; font-size: 16px; } .xm-task { grid-template-columns: 1fr; gap: 8px; } .xm-cells i { width: 24px; height: 34px; font-size: 16px; } .xm-modes { grid-template-columns: 1fr; } .xm-flag { margin-left: 0; } .xm-print { display: none; } .xm-blank { overflow-x: auto; } }
@media print { .xm-side, .xm-act, #hdr, #ftr, .tools-btn, .xm-blank { display: none !important; } .xm-run { display: block; } .xm-paper { border: 0; box-shadow: none; padding: 0; } .xm-passage { max-height: none !important; overflow: visible !important; } }
@media (max-width: 860px) { .xm-blank { display: block; overflow: visible; } .xm-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); } .xm-cells i { width: auto; margin: 0 -1px -1px 0; } }
