/* Сайт с каталогом и кабинетами. Внешний вид: белый фон, чёрный текст, синие кнопки и ссылки, тонкие серые рамки, прямые углы, без теней.
   Переменные игры (style.css) переопределяются только здесь — сама игра выглядит как раньше. */
:root {
  --blue: #0b4ea2;
  --blue-2: #083c7d;
  --blue-soft: #e9f0fa;
  --banner: #d3dfef; /* фон баннеров с иллюстрациями */
  --teal: #2b6a73;
  --ink: #111;
  --line: #cfcfcf;
  --line-2: #e3e3e3;
  --serif: 'Source Serif 4', Georgia, serif;
  --accent: var(--blue);
  --accent-2: var(--blue-2);
  --accent-soft: var(--blue-soft);
  --navy: var(--ink);
  --heading: var(--ink);
  --text: #1f1f1f;
  --muted: #5f5f5f;
  --bg: #f5f5f5;
  --border: var(--line);
  --radius: 0;
  --shadow: none;
  font-family: Inter, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
}
body { background: #fff; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
.btn { border-radius: 0; font-weight: 700; }
.btn.primary { background: var(--blue); border-color: var(--blue); }
.btn.primary:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn.outline { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.btn.outline:hover { background: var(--blue-soft); }
.card { border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.chip { border-radius: 0; }
input[type='text'], input[type='search'], input[type='number'], select, textarea { border-radius: 0; border-color: #9a9a9a; }
input[type='search'] { font: inherit; color: var(--text); background: #fff; border: 1px solid #9a9a9a; padding: 8px 10px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.s-wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 640px) { .s-wrap { padding-left: 16px; padding-right: 16px; } }
main#page { min-height: calc(100vh - 240px); }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #333; }
.s-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.s-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.s-crumbs a { color: var(--muted); }

/* ---------- шапка ---------- */
/* Линии между рядами шапки — на всю ширину окна. */
.hd { background: #fff; position: relative; z-index: 30; border-bottom: 1px solid var(--line); }
.hd-main { display: flex; align-items: center; gap: 48px; height: 84px; }
.hd-sub { border-top: 1px solid var(--line); }
.logo { display: flex; align-items: center; color: var(--ink); flex: none; }
.logo:hover { text-decoration: none; }
.logo-img { display: none; height: 52px; width: auto; }
.logo.has-img .logo-img { display: block; }
.logo.has-img .logo-badge { display: none; }
.logo-badge { display: inline-flex; flex-direction: column; border: 3px solid var(--ink); padding: 4px 8px 5px; font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 600; text-transform: uppercase; font-size: 16px; line-height: 1; letter-spacing: 0.02em; }
.logo-badge b { font-weight: 600; }
.hd-nav { display: flex; align-items: center; gap: 36px; }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); cursor: pointer; }
.dd-btn svg, .who svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.dd-btn:hover, .dd-btn.on { color: var(--blue); }
.dd.open .dd-btn svg, .who.open svg { transform: rotate(180deg); }
.dd-menu { display: none; position: absolute; top: calc(100% + 10px); left: -16px; min-width: 240px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); padding: 8px 0; z-index: 40; }
.dd.open .dd-menu, .who.open .dd-menu { display: block; }
.dd-menu a, .dd-menu button { display: block; width: 100%; text-align: left; padding: 9px 16px; color: var(--ink); font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--bg); color: var(--blue); text-decoration: none; }
.dd-menu .sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.hd-search { margin-left: auto; display: flex; width: min(380px, 34vw); border: 1px solid #8f8f8f; }
.hd-search input { border: 0 !important; box-shadow: none !important; padding: 11px 12px; font-size: 15.5px; }
.hd-search button { background: #fff; border: 0; padding: 0 12px; cursor: pointer; color: #555; }
.hd-search button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hd-search:focus-within { border-color: var(--blue); }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 6px; cursor: pointer; }
.burger svg { width: 28px; height: 28px; stroke: var(--ink); stroke-width: 2; fill: none; }
.hd-sub-in { display: flex; justify-content: flex-end; align-items: center; gap: 26px; min-height: 48px; font-size: 15px; }
.hd-sub-in > a { color: var(--ink); font-weight: 500; white-space: nowrap; }
.hd-sub-in > a:hover { color: var(--blue); text-decoration: none; }
.who { position: relative; }
.who-btn { display: flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; cursor: pointer; color: var(--ink); text-align: left; padding: 4px 0; }
.who-btn small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); line-height: 1.1; }
.who-btn span { display: block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.who .dd-menu { left: auto; right: 0; }
@media (max-width: 900px) {
  .hd-main { height: 68px; gap: 16px; }
  .burger { display: block; }
  .hd-nav, .hd-search { display: none; }
  .hd.menu .hd-main { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 14px; }
  .hd.menu .hd-nav { display: flex; order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .hd.menu .hd-search { display: flex; order: 4; width: 100%; margin: 8px 0 0; }
  .hd.menu .hd-nav .dd-btn { pointer-events: none; padding: 14px 0 4px; font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
  .hd.menu .hd-nav .dd-btn svg, .hd.menu .hd-nav .sep { display: none; }
  .hd.menu .hd-nav .dd-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .hd.menu .hd-nav .dd-menu a { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
  .logo-badge { font-size: 14px; }
  .hd-sub-in { gap: 18px; font-size: 14px; }
  .hd-sub-in > a.wide { display: none; }
  .who-btn span { max-width: 240px; }
}

/* ---------- уведомление ---------- */
.ntf { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--blue); background: #fff; padding: 14px 18px; margin-bottom: 24px; }
.ntf-i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
.ntf-t { font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 0.03em; font-size: 15px; margin-bottom: 2px; }
.ntf.warn { border-color: #b3261e; }
.ntf.warn .ntf-i { background: #b3261e; }
.ntf.warn .ntf-t { color: #b3261e; }
.ntf .x { margin-left: auto; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }

/* ---------- главная: основная колонка + боковая ---------- */
.one { padding-top: 36px; padding-bottom: 64px; }
@media (max-width: 900px) { .one { padding-top: 20px; } }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; padding-top: 36px; padding-bottom: 64px; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; padding-top: 20px; } .two > aside { order: -1; } .two.sim > aside { order: 0; } }

/* баннер с иллюстрацией */
.feat { border: 1px solid var(--line); background: #fff; }
.feat + .feat { margin-top: 28px; }
.banner { display: grid; grid-template-columns: 1fr 1fr; background: var(--banner); min-height: 300px; color: var(--ink); }
.banner:hover { text-decoration: none; }
.banner-text { padding: 40px 0 36px 40px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.banner-kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.banner-title { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 12px; }
.banner-sub { font-size: 20px; margin-bottom: 22px; }
.banner-btn { background: var(--blue); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 16px; }
.banner:hover .banner-btn { background: var(--blue-2); }
.art { position: relative; display: grid; place-items: center; overflow: hidden; }
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art-ph { width: 62%; max-width: 220px; opacity: 0.9; }
.banner .art { padding: 20px; }
.feat-body { padding: 26px 32px 30px; }
.feat-body h2 { font-size: 26px; margin: 6px 0 10px; }
.feat-body h2 a { color: var(--ink); }
.feat-body h2 a:hover { color: var(--blue); text-decoration: none; }
.feat-body p { font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
@media (max-width: 640px) {
  .banner { grid-template-columns: 1fr; }
  .banner-text { padding: 26px 22px 6px; }
  .banner-title { font-size: 30px; }
  .banner .art { height: 200px; }
  .feat-body { padding: 20px; }
}

/* список симуляций */
.list-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 10px; }
.list-h h2 { margin: 0; }
.item { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); color: inherit; align-items: start; }
.item:last-child { border-bottom: 1px solid var(--line); }
.item:hover { text-decoration: none; }
.item:hover h3 { color: var(--blue); text-decoration: underline; }
.item .art { background: var(--banner); aspect-ratio: 1 / 1; }
.item .art-ph { width: 70%; }
.item h3 { font-size: 18px; margin: 4px 0 4px; }
.item p { margin: 0 0 6px; color: #333; }
.item .meta { font-size: 13px; color: var(--muted); }
.tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line); padding: 3px 8px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .item { grid-template-columns: 84px minmax(0, 1fr); } .item .tag { grid-column: 2; justify-self: start; } }

/* боковые карточки (как Welcome back / Recent Coursepacks) */
.side { border: 1px solid var(--line); background: #fff; padding: 28px 28px 30px; }
.side + .side { margin-top: 24px; }
.side.center { text-align: center; }
.side-small { font-size: 15px; margin-bottom: 2px; }
.side-name { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--teal); line-height: 1.15; margin-bottom: 18px; overflow-wrap: anywhere; }
.side p { margin: 0 0 16px; }
.facts { margin: 0 0 22px; display: grid; gap: 12px; font-size: 16px; }
.facts b { font-weight: 800; }
.side .btn.block { padding: 13px 14px; font-size: 15.5px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.side-head h3 { font-size: 20px; margin: 0; }
.collapse { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--blue); background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer; padding: 0; }
.collapse svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform 0.15s; }
.side.closed .collapse svg { transform: rotate(180deg); }
.side.closed .side-content { display: none; }
.side .hint { font-style: italic; font-size: 16px; line-height: 1.55; color: #222; }
.recent { list-style: none; padding: 0; margin: 0 0 14px; }
.recent li { padding: 10px 0; border-top: 1px solid var(--line-2); }
.recent li:last-child { border-bottom: 1px solid var(--line-2); }
.recent a { font-weight: 700; }
.recent small { display: block; color: var(--muted); margin-top: 2px; }
.keyfield { font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; font-size: 17px !important; padding: 12px !important; text-align: center; margin-bottom: 10px; }
.key-err { color: #b3261e; font-weight: 600; min-height: 20px; font-size: 13.5px; }

/* ---------- каталог ---------- */
.pagehead { padding-top: 32px; }
.pagehead h1 { font-size: 34px; margin-bottom: 6px; }
.pagehead .lead { font-size: 16px; color: #333; margin: 0; }
.cat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 64px; align-items: start; }
.facet h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.facet button { display: flex; justify-content: space-between; width: 100%; background: none; border: 0; padding: 7px 0; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.facet button:hover { color: var(--blue); }
.facet button.on { color: var(--blue); font-weight: 700; }
.facet button span { color: var(--muted); font-weight: 400; }
.cat-count { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 760px) { .cat { grid-template-columns: 1fr; gap: 16px; } .facet { display: flex; flex-wrap: wrap; gap: 6px; } .facet h3 { display: none; } .facet button { width: auto; border: 1px solid var(--line); padding: 6px 12px; gap: 6px; } }

/* ---------- страница симуляции ---------- */
.sim-main h1 { font-size: 36px; margin: 8px 0 8px; }
.sim-main .lead { font-size: 18px; color: #333; margin: 0 0 14px; }
.sim-main .banner { margin-bottom: 26px; }
.sim-main section { margin-top: 34px; }
.sim-main section h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sim-main section p { font-size: 16px; line-height: 1.65; }
.ticks { margin: 0; padding-left: 20px; }
.ticks li { margin-bottom: 8px; font-size: 16px; line-height: 1.55; }
.theories { margin: 0; display: grid; gap: 12px; }
.theories > div { border-left: 3px solid var(--blue); padding: 2px 0 2px 14px; }
.theories dt { font-weight: 700; }
.theories dd { margin: 2px 0 0; color: #333; line-height: 1.5; }
.flow { display: grid; gap: 14px; counter-reset: f; }
.flow > div { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.flow > div::before { counter-increment: f; content: counter(f); font-size: 22px; font-weight: 800; color: var(--blue); line-height: 1.1; }
.flow b { display: block; }
.flow span { color: #333; }
.specs { margin: 0 0 22px; text-align: left; }
.specs div { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.specs dt { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.specs dd { margin: 3px 0 0; }
.sticky { position: sticky; top: 20px; }

/* ---------- вход ---------- */
.login-wrap { display: grid; place-items: start center; padding-top: 48px; padding-bottom: 72px; }
.login-wrap .side { width: min(460px, 100%); }
.keytypes { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.keytypes div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 14px; color: #333; }
.keytypes code { display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); font-weight: 800; color: var(--ink); font-family: var(--mono); }

/* ---------- кабинеты ---------- */
.cab { padding-top: 30px; padding-bottom: 64px; }
.cab-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cab-head h1 { margin: 0; }
.cab .card { margin-bottom: 20px; }
.cab .card + .card { margin-top: 0; }
.keycode { font-family: var(--mono); font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
.statusdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #b5b5b5; margin-right: 6px; }
.statusdot.on { background: #2e7d32; }
.teamblock { border: 1px solid var(--line); margin-bottom: 14px; }
.teamblock-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.teamblock table { width: 100%; border-collapse: collapse; }
.teamblock td { padding: 8px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.teamblock tr:last-child td { border-bottom: 0; }
.teamblock td.act { text-align: right; white-space: nowrap; }
.empty { text-align: center; padding: 44px 20px; }
.newkey { background: var(--blue-soft); border: 1px dashed var(--blue); padding: 14px; margin: 12px 0 0; }
.newkey .keycode { font-size: 20px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.opt.on { border-color: var(--blue); background: var(--blue-soft); }
.opt input { margin-top: 3px; accent-color: var(--blue); }
.opt small { display: block; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .grid3, .cab .grid2 { grid-template-columns: 1fr; } }
.tbl-wrap { overflow-x: auto; }
.tbl th { background: var(--bg); }

/* ---------- помощь ---------- */
.help { padding-top: 28px; padding-bottom: 64px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.help nav { position: sticky; top: 20px; align-self: start; display: grid; }
.help nav a { color: var(--ink); font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.help nav a:hover { color: var(--blue); text-decoration: none; }
.help section { margin-bottom: 40px; scroll-margin-top: 20px; }
.help section h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.help ol li, .help ul li { margin-bottom: 9px; line-height: 1.6; font-size: 15.5px; }
.help details { border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.help summary { font-weight: 700; cursor: pointer; }
@media (max-width: 800px) { .help { grid-template-columns: 1fr; gap: 16px; } .help nav { position: static; } }

/* ---------- методичка преподавателя ---------- */
.guide p, .guide li { font-size: 15.5px; line-height: 1.6; }
.guide h3 { margin: 26px 0 8px; font-size: 17px; }
.g-tbl { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14.5px; }
.g-tbl th, .g-tbl td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.g-tbl thead th, .g-tbl tr > th:first-child { background: #f3f6fa; font-weight: 700; }
.g-tbl tr > th:first-child { width: 190px; }
.g-num td:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.guide .g-num { display: block; overflow-x: auto; font-size: 12.5px; }
.guide .g-num th, .guide .g-num td { padding: 5px 6px; }
.guide .g-num th { font-size: 12px; }
.g-note, .g-warn { border-left: 4px solid var(--blue); background: #eef3fb; padding: 10px 14px; margin: 14px 0; font-size: 15px; }
.g-warn { border-color: #d9534f; background: #fdf0ef; }
.g-f { background: #f6f8fb; border: 1px solid var(--line); padding: 12px 14px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.g-tag { font-size: 12px; font-weight: 600; color: #b2322d; border: 1px solid #e7b4b1; padding: 1px 7px; vertical-align: 2px; margin-left: 6px; }
@media print {
  .guide-print { color: #000; font-size: 10.5pt; }
  .guide-print h1 { font-size: 18pt; margin: 0 0 10pt; }
  .guide-print h2 { font-size: 14pt; margin: 16pt 0 6pt; border-bottom: 1px solid #999; padding-bottom: 3pt; }
  .guide-print section { break-inside: auto; }
  .guide-print .g-tbl, .guide-print .g-num { display: table; }
  .guide-print .g-tbl tr { break-inside: avoid; }
  .guide-print p, .guide-print li { font-size: 10.5pt; }
  .guide-print summary { font-weight: 700; }
}

/* ---------- подвал ---------- */
.ft { border-top: 1px solid var(--line); background: #fff; padding: 26px 0 34px; font-size: 14px; }
.ft nav { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 8px; }
.ft nav a { color: var(--ink); font-weight: 500; }
.ft p { margin: 0; color: var(--muted); }

/* ---------- печать ключей ---------- */
.print-only { display: none; }
@media print {
  body > *:not(#print) { display: none !important; }
  #print { display: block; }
  .pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
  .pcard { border: 1px dashed #999; padding: 6mm; break-inside: avoid; font-size: 11pt; color: #000; }
  .pcard .k { font-family: ui-monospace, Menlo, monospace; font-size: 17pt; font-weight: 700; letter-spacing: 0.06em; margin: 3mm 0; }
  .pcard .t { font-weight: 700; }
  .pcard small { color: #444; }
}

/* ---------- вкладки админки ---------- */
.tabs-s { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs-s button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; margin-bottom: -1px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs-s button:hover { color: var(--ink); }
.tabs-s button.on { color: var(--blue); border-bottom-color: var(--blue); }
.key-err:empty { display: none; }
.cab form .key-err { margin: 10px 0; }
.acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; min-width: 190px; }
.tsel { width: auto; padding: 3px 6px; font-size: 13px; }
