:root {
  --bg: #ddeefc;
  --bg-dot: #b8d9f2;
  --surface: #ffffff;
  --border: #e8ecf1;
  --border-strong: #d7dde5;
  --text: #202124;
  --muted: #5f6368;   /* 6.05:1 на белом (было #80868b — 3.68:1, не проходило WCAG AA) */
  --accent: #1a73e8;
  --accent-soft: #e8f0fe;
  /* Акцент как ЦВЕТ ТЕКСТА. --accent (Blue 600) на подложке --accent-soft
     даёт лишь 3.93:1, поэтому надписи и мелкие иконки берут шаг темнее.
     Заливки, рамки и кольцо фокуса остаются на --accent — вид не меняется. */
  --accent-text: #1967d2;
  --ok: #137333;      /* 5.95:1 (было #1e8e3e — 4.21:1) */
  --ok-soft: #e6f4ea;
  --warn: #b06000;    /* 4.65:1 (было #e37400 — 3.10:1) */
  --err: #d93025;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(60, 64, 67, .1), 0 8px 24px rgba(60, 64, 67, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/*
 * Фокус с клавиатуры. :focus-visible, а не :focus, — чтобы кольцо появлялось
 * при табуляции, но не после клика мышью. Поля ввода ниже держат собственный
 * вложенный контур: у них есть рамка, и внешнее кольцо ложилось бы на соседа.
 */
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
input[type=checkbox]:focus-visible,
.editor:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  color: var(--text);
  font: 14px/1.5 "Inter", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

h1 { font-size: 17px; margin: 0; font-weight: 600; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 13px; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }

.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(60, 64, 67, .06);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand p { margin: 2px 0 0; font-size: 12.5px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}

.brand-mark svg { width: 21px; height: 21px; }

.tabs { display: flex; gap: 6px; }

.tab {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.tab:hover { background: #f1f3f4; color: var(--text); }
.tab.is-active { background: var(--accent-soft); color: var(--accent-text); }

main { max-width: 1060px; margin: 0 auto; padding: 28px 24px 48px; }

.view { display: none; }
.view.is-active { display: block; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { margin: 0; }

/* ---------- загрузка ---------- */

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  background: #fafbfc;
  transition: border-color .15s, background .15s;
}

.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone-empty { display: grid; gap: 4px; }
.dropzone-file { display: flex; align-items: center; gap: 12px; text-align: left; }
.dropzone-file > div { flex: 1; display: grid; }
.file-icon { width: 26px; height: 26px; color: var(--muted); flex: none; }

.upload-icon { width: 26px; height: 26px; color: var(--muted); margin: 0 auto 2px; }
.link-like { color: var(--accent-text); }
.skip-to-editor { display: inline-block; margin-top: 10px; color: var(--accent-text); text-decoration: underline; cursor: pointer; font-size: 13.5px; }

/* ---------- редактор документа ---------- */

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: var(--surface);
}

.editor-toolbar button {
  min-width: 34px;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: none;
  font-size: 14px;
  color: #3c4043;
}

.editor-toolbar button:hover { background: #f1f3f4; }
.editor-toolbar select { padding: 6px 8px; border: none; background: none; font-size: 13.5px; color: #3c4043; }
.tb-sep { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }

.tb-color {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  color: #3c4043;
  border-bottom: 3px solid #d93025;
  cursor: pointer;
}

.tb-color input { width: 0; height: 0; opacity: 0; border: none; padding: 0; }

.editor {
  min-height: 420px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  background: var(--surface);
  outline: none;
  font-size: 14.5px;
  line-height: 1.6;
  overflow-y: auto;
  max-height: 65vh;
}

.editor:focus { border-color: var(--accent); }
.editor h1 { font-size: 24px; margin: 12px 0 8px; }
.editor h2 { font-size: 19px; margin: 10px 0 6px; }
.editor h3 { font-size: 15px; margin: 8px 0 4px; text-transform: none; letter-spacing: 0; color: var(--text); }
.editor img { max-width: 100%; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }

input[type=text], input[type=tel], input[type=email], select {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- типы документов, формы, статусные цепочки ---------- */

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }

.type-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.type-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.type-icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.type-item:hover .type-icon { color: var(--accent-text); }

.pipeline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 4px 0 18px; }

.pipe-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.pipe-step::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #ccd6e4;
  flex: none;
}

.pipe-step:not(:first-child)::after { content: none; }
.pipe-step + .pipe-step { margin-left: 8px; }
.pipe-step.is-active { color: var(--text); font-weight: 600; }
.pipe-step.is-active::before { background: var(--accent); }
.pipe-step.is-done::before { background: var(--ok); }

textarea {
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

.file-row { margin: 14px 0 8px; }
.file-row input[type=file] { border: 1px dashed var(--border-strong); border-radius: 8px; padding: 10px; background: #fafbfc; }

.staff-rows { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }

.staff-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
}

.staff-row .grow { flex: 1; min-width: 0; }
.staff-row small { display: block; color: var(--muted); font-size: 11.5px; }

/* Управление доступом в справочнике сотрудников.
   Справочник шире прочих модалок: в строке помещаются роль и переключатель доступа. */
#staffModal .modal-body {
  max-width: 620px;
  /* .modal-body объявлен ниже .send-body и перебивает её text-align: left,
     поэтому выравнивание задаём явно — иначе ФИО и подписи полей встают по центру. */
  text-align: left;
}
#staffModal h2 { text-align: left; }
#staffModal .staff-row, #staffModal label { text-align: left; }
/* Управление доступом в справочнике сотрудников */
.staff-row select { padding: 5px 8px; font-size: 12.5px; border-radius: 6px; }
.staff-row .ghost.small { padding: 5px 9px; white-space: nowrap; }
.staff-role-static { font-size: 12.5px; white-space: nowrap; }

/* Отключённая запись: отличаем пунктиром, а не заливкой. Серый фон опускал
   контраст метки «доступ отключён» до 4.49:1 — ниже порога WCAG AA. */
.staff-row.is-off { border-style: dashed; }
.staff-row.is-off .grow > small { color: var(--muted); }
.staff-off {
  margin-left: 6px;
  font-style: normal;
  font-size: 11.5px;
  color: var(--warn);
  white-space: nowrap;
}

.staff-rows { max-height: 320px; }

.meta-table td:first-child { color: var(--muted); width: 180px; }

/* ---------- маршрут согласования ---------- */

.route-block {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfc;
}

.route-toggle { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; cursor: pointer; }
.route-toggle.small { font-weight: 400; color: var(--muted); }

#routeFields { margin-top: 12px; display: grid; gap: 8px; }
#routeSigners { display: grid; gap: 8px; }

.signer-row { display: grid; grid-template-columns: 24px 1fr 130px 1fr 30px; gap: 8px; align-items: center; }
@media (max-width: 640px) { .signer-row { grid-template-columns: 24px 1fr 1fr 30px; } .signer-row input[name=iin] { grid-column: 2; } }
.signer-row .num { color: var(--muted); font-size: 12.5px; text-align: center; }
.signer-remove { border: none; background: none; color: var(--muted); font-size: 16px; padding: 2px 6px; border-radius: 5px; }
.signer-remove:hover { background: #fce8e6; color: var(--err); }

.route-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.status-route { color: var(--accent-text); }
.status-route::before { background: var(--accent); }

/* маршрут в карточке документа */
.route-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.route-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; }
.route-list .who { flex: 1; }
.route-list .who small { display: block; color: var(--muted); font-size: 11.5px; }
.route-list .state-done { color: var(--ok); font-size: 13px; white-space: nowrap; }
.route-list .state-wait { color: var(--warn); font-size: 13px; white-space: nowrap; }
.route-list .state-queue { color: var(--muted); font-size: 13px; white-space: nowrap; }

/*
 * Селекторы намеренно не привязаны к <button>: те же классы висят и на <a>
 * (скачать оригинал, открыть карточку SIGEX, документ с подписью). Пока правила
 * были записаны как button.primary, ссылка a.primary не получала вообще ничего
 * и выпадала из ряда кнопок голой подчёркнутой строкой.
 */
button, .secondary, .primary, .ghost {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover, .secondary:hover { background: #f8f9fa; }
button:disabled { opacity: .55; cursor: progress; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: #1765cc; color: #fff; }
.ghost { border-color: transparent; color: var(--accent-text); background: none; padding: 6px 10px; }
.ghost:hover { background: var(--accent-soft); }

/* .small — ещё и текстовая утилита (<p class="small">), поэтому уменьшаем
   только в паре с классом кнопки: иначе правило зацепит обычные абзацы. */
button.small, .btn-small, .primary.small, .secondary.small, .ghost.small { padding: 6px 12px; font-size: 13px; }
.btn-small { white-space: nowrap; }

a { color: var(--accent-text); }

.log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.log li::before { content: "•"; color: var(--muted); margin-right: 8px; }
.log li.ok::before { content: "✔"; color: var(--ok); }
.log li.err::before { content: "✖"; color: var(--err); }

/* ---------- дашборд ---------- */

.dashboard { display: grid; grid-template-columns: 216px 1fr; gap: 18px; align-items: start; }

@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .sidebar { position: static; padding: 12px; }

  /* Лента с горизонтальной прокруткой: таблица остаётся в первом экране. */
  #folders, #customFolders {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
    /* Полосу прячем: подсказкой служит выглядывающая следующая «таблетка». */
    scrollbar-width: none;
  }

  #folders::-webkit-scrollbar, #customFolders::-webkit-scrollbar { display: none; }

  #folders .folder, #customFolders .folder {
    width: auto;
    flex: none;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
  }

  #folders .folder.is-active, #customFolders .folder.is-active { border-color: var(--accent); }
  #folders .count, #customFolders .count { margin-left: 6px; }

  /* Кнопка удаления живёт на :hover, которого на тач-экране нет. */
  .folder.custom .folder-delete { display: none !important; }

  .folders-section { margin-top: 8px; padding-top: 8px; }
  .sidebar .folders-toggle { display: none; }
}

/*
 * iOS Safari масштабирует страницу, когда фокус попадает в поле мельче 16px.
 * На узких экранах поднимаем именно поля — базовый кегль вёрстки не трогаем.
 */
@media (max-width: 640px) {
  input[type=text], input[type=tel], input[type=email], select, textarea { font-size: 16px; }
}

.sidebar { display: grid; gap: 2px; padding: 16px 12px; position: sticky; top: 82px; }

.create-btn {
  width: 100%;
  margin-bottom: 12px;
  background: var(--surface) !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--accent-text) !important;
  font-weight: 600;
}

.create-btn:hover { background: var(--accent-soft) !important; }

.folder {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #3c4043;
  text-align: left;
  font-weight: 400;
}

.folder:hover { background: #f1f3f4; }
.folder.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }
.folder .icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.folder.is-active .icon { color: var(--accent-text); }
.folder .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.folder.is-active .count { color: var(--accent-text); }

.sidebar .ghost { margin-top: 10px; justify-self: start; }

/* ---------- раздел «Папки» ---------- */

.folders-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.folders-toggle { font-weight: 500; }
.folders-toggle .chevron { margin-left: auto; color: var(--muted); font-size: 11px; }
.folders-section .ghost { margin-top: 4px; }
.folders-empty { margin: 4px 12px; }

.folder.custom { position: relative; }
.folder-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.folder-delete {
  display: none;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.folder.custom:hover .folder-delete { display: inline-block; }
.folder-delete:hover { background: #fce8e6; color: var(--err); }

.new-folder-row { display: flex; gap: 8px; }
.new-folder-row input { flex: 1; }

.dashboard-main { display: grid; gap: 16px; min-width: 0; }
.table-card { padding: 6px 8px 10px; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }

.doc-table { min-width: 460px; }
.doc-table tbody tr { cursor: pointer; }
.doc-table tbody tr:hover td { background: #f8f9fa; }
.doc-table .col-check { width: 34px; }
.doc-table .col-actions { width: 44px; }
.doc-title { font-weight: 600; font-size: 14.5px; }
.doc-title small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }

input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* статус с цветной точкой, как на макете: «• Создание» */
.status-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-waiting { color: var(--warn); }
.status-waiting::before { background: var(--warn); }
.status-signed { color: var(--ok); }
.status-signed::before { background: var(--ok); }

.row-menu { display: grid; place-items: center; border: none; background: none; color: var(--muted); padding: 7px; border-radius: 6px; }
.row-menu svg { width: 16px; height: 16px; }
.row-menu:hover { background: var(--accent-soft); color: var(--accent-text); }

.bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 6px 2px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 8px;
}

/* ---------- отправка ---------- */

.send-body { max-width: 430px; text-align: left; }
.send-body h2 { text-align: left; }
.send-field { margin: 10px 0; }
.send-options { display: grid; margin: 16px 0 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.send-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
}

.send-option:last-child { border-bottom: none; }
.send-option:hover { background: var(--accent-soft); }
.send-icon {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  flex: none;
}
.send-icon svg { width: 18px; height: 18px; }
.send-icon.blue { background: var(--accent-soft); color: var(--accent-text); }
.send-icon.orange { background: #fef0e6; color: var(--warn); }
.send-icon.green { background: var(--ok-soft); color: var(--ok); }

/* ---------- модальные окна ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, .45);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 10;
}

.modal-body {
  position: relative;
  background: var(--surface);
  border-radius: 16px;
  padding: 26px;
  max-width: 390px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(32, 33, 36, .25);
}

.modal-body img { margin: 16px auto; display: block; border-radius: 10px; background: #fff; padding: 8px; border: 1px solid var(--border); }
.modal-close { position: absolute; top: 10px; right: 10px; border: none; background: none; font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 8px; }
.modal-close:hover { color: var(--text); background: none; }
.egov-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.status { margin-top: 16px; font-size: 14px; }

/* ---------- страница подписания ---------- */

.sign-page { max-width: 620px; margin: 48px auto; padding: 0 16px; }

/* ---------- toast: «Успешно подписано» ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: 90vw;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(32, 33, 36, .2);
  border: 1px solid var(--border);
  z-index: 20;
}

.toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
  flex: none;
}

.toast.err { border-color: #f5c6c0; }
.toast.err::before { content: "✕"; background: #fce8e6; color: var(--err); }

/* ---------- страница входа ---------- */

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(60, 64, 67, .08);
}

.login-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 16px;
}

.login-logo svg { width: 28px; height: 28px; }

.login-box h1 { font-size: 20px; margin: 0 0 8px; }
.login-box .muted { margin: 0 0 24px; }

.login-actions { display: grid; gap: 10px; }
.login-actions button { width: 100%; justify-content: center; }

.login-error {
  margin: 16px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fce8e6;
  color: var(--err);
  font-size: 13.5px;
  text-align: left;
}

.login-hint {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: left;
}

/* Текущий пользователь в шапке */
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.user-chip strong { color: var(--text); font-weight: 500; }
.user-chip .role { font-size: 12px; color: var(--muted); }

.login-qr { display: grid; justify-items: center; gap: 12px; }
.login-qr img {
  width: 220px; height: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
.qr-status { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; }
.egov-link { font-size: 13.5px; }

/* ---------- prefers-reduced-motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
