/* Разделы кабинетов из 01Математики в оформлении 01Русского. */
.xs-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.xs-head .seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 14px; background: #eef2fb; }
.xs-head .seg button { padding: 8px 14px; border: 0; border-radius: 11px; background: transparent; color: var(--forest); font: inherit; font-weight: 600; cursor: pointer; }
.xs-head .seg button[aria-selected=true] { background: #fff; box-shadow: 0 1px 4px rgba(20, 28, 79, .16); }
.xs-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #4a5378; }
.xs-field select, .xs-field input { min-height: 40px; padding: 7px 10px; border: 1px solid #cfdbf0; border-radius: 10px; font: inherit; font-weight: 400; color: #1a2150; background: #fff; }
.xs-head #xs-csv { margin-left: auto; }
.xs-cards { margin-bottom: 16px; }
.xs-cards > div { display: grid; gap: 2px; }
.xs-late { color: #c0392b; }
.xs-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 10px; font-size: 13px; color: #4a5378; }
.xs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.xs-legend i { width: 16px; height: 16px; border-radius: 5px; }
.xs-l0 { background: #f1f3f8; } .xs-l1 { background: #fde2c4; } .xs-l2 { background: #fff2a8; } .xs-l3 { background: #c7ecd6; } .xs-l4 { background: #4fbf86; color: #fff; }
.xs-matrix-wrap { overflow: auto; max-height: 70vh; border: 1px solid #e3e8f4; border-radius: 14px; }
.xs-matrix { border-collapse: separate; border-spacing: 2px; font-size: 13px; }
.xs-matrix thead th { position: sticky; top: 0; z-index: 2; background: #fff; padding: 6px 2px; color: #4a5378; font-weight: 700; }
.xs-matrix thead th span { display: grid; place-items: center; width: 28px; height: 22px; border-radius: 6px; background: #eef2fb; }
.xs-matrix td { width: 28px; height: 28px; border-radius: 6px; text-align: center; font-weight: 700; color: rgba(26, 33, 80, .65); }
.xs-matrix .xs-name { position: sticky; left: 0; z-index: 1; min-width: 130px; padding: 0 10px; background: #fff; text-align: left; font-weight: 600; color: #1a2150; white-space: nowrap; }
.xs-matrix thead .xs-name { z-index: 3; }
.xs-matrix .xs-sum { padding: 0 8px; background: #eef2fb; color: var(--forest); white-space: nowrap; }
.xs-topics { columns: 2 280px; margin: 12px 0 0; padding-left: 26px; font-size: 13.5px; color: #4a5378; }
.xs-topics li { margin: 2px 0; break-inside: avoid; }
.xs-weak { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.xs-weak li { display: grid; grid-template-columns: 1fr 120px 48px auto; align-items: center; gap: 12px; }
.xs-weak li:only-child, .xs-weak li > a:only-child { grid-column: 1 / -1; }
@media (max-width: 640px) { .xs-weak li { grid-template-columns: 1fr 60px; } .xs-weak .btn { grid-column: 1 / -1; } .xs-head #xs-csv { margin-left: 0; } }

.xs-cert-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.xs-tip { margin: 12px 0 0; color: #4a5378; }
.xs-cert-preview { margin-top: 18px; overflow-x: auto; }
.xs-cert { width: 860px; max-width: 100%; aspect-ratio: 1.414; margin: 0 auto; padding: 22px; border-radius: 14px; background: radial-gradient(700px 300px at 100% 0, rgba(92, 193, 250, .25), transparent 60%), radial-gradient(600px 300px at 0 100%, rgba(255, 209, 102, .3), transparent 60%), #fffdf7; box-shadow: 0 18px 50px rgba(20, 28, 79, .18); color: #141c4f; }
.xs-cert-frame { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 28px; border: 3px double #1a3a9c; border-radius: 10px; text-align: center; }
.xs-cert-brand { font: 700 20px Ubuntu, sans-serif; color: #1a3a9c; } .xs-cert-brand b { color: #0066ff; }
.xs-cert h2 { margin: 10px 0 4px; font: 700 clamp(34px, 6vw, 62px)/1 Georgia, 'Times New Roman', serif; letter-spacing: .08em; text-transform: uppercase; color: #1a3a9c; }
.xs-cert-to { margin: 0; font-style: italic; color: #4a5378; }
.xs-cert-name { margin: 10px 0; font: 700 clamp(24px, 4vw, 40px)/1.15 Georgia, serif; border-bottom: 2px solid #ffd166; padding: 0 20px 6px; }
.xs-cert-why { margin: 4px 0 16px; font-size: 18px; }
.xs-cert-stats { display: flex; gap: 14px; }
.xs-cert-stats div { min-width: 110px; padding: 8px 12px; border-radius: 12px; background: rgba(26, 58, 156, .07); }
.xs-cert-stats b { display: block; font-size: 22px; color: #1a3a9c; } .xs-cert-stats span { font-size: 12px; color: #4a5378; }
.xs-cert-foot { display: flex; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 16px; font-size: 14px; color: #4a5378; }
.xs-cert-sign { display: grid; text-align: right; font-weight: 700; color: #141c4f; } .xs-cert-sign small { font-weight: 400; color: #4a5378; border-top: 1px solid #b8c3e0; padding-top: 2px; }

.xs-code { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.xs-code-val { padding: 10px 18px; border-radius: 14px; background: #141c4f; color: #fff; font: 700 24px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; }
.xs-code .feedback { flex-basis: 100%; margin: 0; }

.xs-parent-hero { padding: 26px 28px; border-radius: 22px; color: #fff; background: radial-gradient(500px 220px at 100% 0, rgba(92, 193, 250, .45), transparent 70%), linear-gradient(135deg, #141c4f, #1a3a9c); box-shadow: 0 18px 44px rgba(20, 28, 79, .22); margin-bottom: 18px; }
.xs-parent-hero h2 { margin: 6px 0 8px; color: #fff; font-size: clamp(24px, 4vw, 34px); }
.xs-parent-hero p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 640px; }
.xs-parent-hero .overline { color: #ffd166; }
.xs-parent-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.xs-parent-form input { flex: 1 1 220px; min-height: 46px; padding: 8px 16px; border: 0; border-radius: 23px; font: 700 18px ui-monospace, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: #141c4f; background: #fff; }
.xs-hw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid #eef2fb; }
.xs-hw .tag { margin-left: auto; }
.xs-days { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 6px; }
.xs-days div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.xs-days i { width: 100%; max-width: 22px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2f8bff, #1a3a9c); }
.xs-days small { font-size: 10.5px; color: #4a5378; }
@media print { body * { visibility: hidden; } .xs-cert, .xs-cert * { visibility: visible; } .xs-cert { position: absolute; left: 0; top: 0; } }
