/*
 * admin-ui.css — визуальный слой админки (волна 1, 2026-10-06).
 * Подключается в _modules/header.tpl после manage.css и nav.css.
 * Только оформление: разметку, поля и поведение форм не меняет.
 * Откат — убрать строку подключения из header.tpl.
 */

:root {
    --ui-text: #1f2328;
    --ui-muted: #656d76;
    --ui-border: #d0d7de;
    --ui-line: #e6e9ed;
    --ui-bg: #f6f7f9;
    --ui-panel: #ffffff;
    --ui-accent: #1f6feb;
    --ui-accent-hover: #1a5fd0;
    --ui-accent-soft: #eef4ff;
    --ui-ok-bg: #e9f7ef;
    --ui-ok-text: #1a7f37;
    --ui-err-bg: #fdecec;
    --ui-err-text: #b42318;
    --ui-nav-h: 44px;
}

/* Основа */
html {
    scroll-padding-top: calc(var(--ui-nav-h) + 8px);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ui-text);
    background: var(--ui-bg);
    margin: 0 24px 24px 24px;
}

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

a:hover {
    color: var(--ui-accent-hover);
    text-decoration: underline;
}

h1 {
    color: var(--ui-text);
    font-size: 22px;
    font-weight: 600;
    margin: 20px 0 16px 0;
}

h1 a {
    font-size: 15px !important;
    font-weight: 500;
}

small {
    color: var(--ui-muted);
}

/* Поля ввода */
form, input, select, textarea, button {
    font-family: inherit;
    font-size: 14px;
    color: var(--ui-text);
}

input[type="text"],
input[type="password"],
input:not([type]),
select,
textarea {
    box-sizing: border-box;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background: #fff;
    line-height: 1.35;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

input[type="text"]:focus,
input[type="password"]:focus,
input:not([type]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--ui-accent);
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.18);
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0 4px 0 0;
    accent-color: var(--ui-accent);
    vertical-align: middle;
    cursor: pointer;
}

input[type="file"] {
    font-size: 13px;
    padding: 4px 0;
}

/* Кнопки */
input[type="submit"],
input[type="button"],
button {
    box-sizing: border-box;
    padding: 7px 16px;
    border: 1px solid var(--ui-accent);
    border-radius: 6px;
    background: var(--ui-accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.3;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background: var(--ui-accent-hover);
    border-color: var(--ui-accent-hover);
}

input[type="submit"]:disabled,
button:disabled {
    opacity: 0.55;
    cursor: default;
}

/* Шапка: город и пользователь (справа, в одну строку) */
#header {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
    color: var(--ui-muted);
    font-size: 13px;
}

.ui-account {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ui-account form {
    margin: 0;
}

#header .ui-city select {
    min-width: 150px;
    padding: 5px 28px 5px 10px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background-color: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ui-text);
    cursor: pointer;
}

span.ui-city {
    font-weight: 600;
    color: var(--ui-text);
}

.ui-user {
    padding: 5px 10px;
    border-radius: 6px;
    background: #eaeef2;
    color: var(--ui-text);
    font-weight: 600;
}


/* Главное меню: закреплено сверху */
#nav {
    clear: both; /* плавающий выбор города из #header не должен сдвигать пункты меню */
    position: sticky;
    top: 0;
    z-index: 500;
    height: auto;
    min-height: var(--ui-nav-h);
    margin: 0 -24px;
    padding: 0 16px;
    background: #24292f;
    border: 0;
    font: 14px/1 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

#nav::after {
    content: "";
    display: block;
    clear: both;
}

#nav li a {
    height: var(--ui-nav-h);
    line-height: var(--ui-nav-h);
    margin: 0;
    padding: 0 14px;
    color: #d0d7de;
}

#nav li:hover > a,
#nav li:hover a {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.08);
}

#nav li:last-child {
    float: right;
}

/* Сообщения и ошибки */
.message {
    color: var(--ui-ok-text);
    background: var(--ui-ok-bg);
    border: 1px solid #b7e1c4;
    border-left: 4px solid var(--ui-ok-text);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
    line-height: 1.45;
}

.error {
    color: var(--ui-err-text);
    background: var(--ui-err-bg);
    border: 1px solid #f5c2c0;
    border-left: 4px solid var(--ui-err-text);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
}

/* Списки: шапка, строки */
.thead {
    position: sticky;
    top: var(--ui-nav-h);
    z-index: 100;
    box-sizing: border-box;
    margin: 12px 0 0 0;
    padding: 9px 10px;
    background: #eaeef2;
    color: var(--ui-muted);
    border: 1px solid var(--ui-border);
    border-radius: 6px 6px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    white-space: normal;
}

/* Нижняя шапка с кнопкой «Сохранить изменения» прилипает к низу экрана */
.tlist ~ .thead {
    top: auto;
    bottom: 0;
    margin-top: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.06);
}

/* Колонки списков: отступ между ними и перенос длинных слов, чтобы текст не залезал на соседнюю колонку */
.thead > div[class^="row_"],
.tlist > div[class^="row_"] {
    box-sizing: border-box;
    padding-right: 8px;
    overflow-wrap: anywhere;
}

.tlist,
.tlist:hover {
    box-sizing: border-box;
    margin: 0;
    padding: 10px 10px 8px 10px;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line);
    border-top: 0;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.tlist:hover {
    background: var(--ui-accent-soft);
    border-left-color: var(--ui-accent);
}

.tlist img {
    border-radius: 4px;
}

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

/* Ссылки-действия под строкой списка («Выпуски», «Ведущие», «Расписание»…) — в виде кнопок */
a.submenu,
.submenu a {
    display: inline-block;
    margin: 4px 3px 0 0;
    padding: 1px 7px;
    border: 1px solid var(--ui-border);
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ui-text);
    text-decoration: none;
    white-space: nowrap;
}

a.submenu:hover,
.submenu a:hover {
    border-color: var(--ui-accent);
    background: var(--ui-accent-soft);
    color: var(--ui-accent);
    text-decoration: none;
}

/* «+» (добавить в расписание) приклеен к кнопке «Расписание» */
a.submenu:has(+ a.submenu-add) {
    margin-right: 0;
    border-radius: 4px 0 0 4px;
}

a.submenu.submenu-add {
    margin-left: -4px;
    padding: 1px 7px;
    border-radius: 0 4px 4px 0;
    font-weight: 700;
    color: var(--ui-accent);
}

/* Кнопки «Редактировать / Удалить» (2026-10-06): вместо картинок — контурные иконки (Lucide, ISC)
   через mask, цвет — currentColor. Находятся по alt картинки, шаблоны не меняются. */
a:has(> img[alt="Редактировать"]),
a:has(> img[alt="Удалить"]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    margin: 0 2px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background: #fff;
    color: var(--ui-muted);
    vertical-align: middle;
    text-decoration: none;
    transition: color .12s, background-color .12s, border-color .12s;
}

a:has(> img[alt="Редактировать"]) > img,
a:has(> img[alt="Удалить"]) > img {
    display: none;
}

a:has(> img[alt="Редактировать"])::before,
a:has(> img[alt="Удалить"])::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: var(--ui-icon) center / contain no-repeat;
    mask: var(--ui-icon) center / contain no-repeat;
}

a:has(> img[alt="Редактировать"]) {
    --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z'/%3E%3Cpath d='m15 5 4 4'/%3E%3C/svg%3E");
}

a:has(> img[alt="Удалить"]) {
    --ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E");
}

a:has(> img[alt="Редактировать"]):hover {
    color: var(--ui-accent);
    border-color: var(--ui-accent);
    background: var(--ui-accent-soft);
}

a:has(> img[alt="Удалить"]):hover {
    color: var(--ui-err-text);
    border-color: #f5c2c0;
    background: var(--ui-err-bg);
}

a:has(> img[alt="Редактировать"]):focus-visible,
a:has(> img[alt="Удалить"]):focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.25);
}

/* Блок над списком («Добавить…»). Единый ритм раздела: заголовок → 16px → кнопка → 16px → содержимое */
.menu_ico {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 0;
    margin: 0 0 16px 0;
}

/* Форма редактирования (генерирует _lib/form.lib.php: table cellspacing=0 cellpadding=10).
   Прямые потомки — чтобы не задеть таблицы панели TinyMCE внутри полей. */
table[cellspacing="0"][cellpadding="10"] {
    max-width: 1180px;
    margin: 8px 0 24px 0;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line);
    border-radius: 8px;
    border-collapse: separate;
}

table[cellspacing="0"][cellpadding="10"] > tbody > tr > td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--ui-line);
    vertical-align: top;
}

table[cellspacing="0"][cellpadding="10"] > tbody > tr:last-child > td {
    border-bottom: 0;
    background: #fafbfc;
}

table[cellspacing="0"][cellpadding="10"] > tbody > tr > td:first-child:not([colspan]) {
    width: 220px;
    padding-top: 16px;
    color: var(--ui-muted);
    font-weight: 600;
    font-size: 13px;
}

/* Пагинация (pagelist.tpl): текущая страница — обычный текст, выделяется жирным */
td.head2 {
    font-weight: 700;
    font-size: 15px;
}

td.head2 a {
    display: inline-block;
    min-width: 30px;
    padding: 4px 6px;
    margin: 2px 0;
    border: 1px solid var(--ui-line);
    border-radius: 6px;
    background: var(--ui-panel);
    font-weight: 400;
    text-align: center;
    text-decoration: none;
}

td.head2 a:hover {
    border-color: var(--ui-accent);
    background: var(--ui-accent-soft);
}

/* Страница входа */
#login {
    margin: 24px 0;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line);
    border-radius: 8px;
}

#login input[type="text"],
#login input[type="password"],
#login select {
    width: 260px;
}

/* Панель фильтров над списком (news/list.tpl и далее) */
.ui-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 14px;
    margin: 4px 0 16px 0;
    padding: 14px 16px;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line);
    border-radius: 8px;
}

.ui-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ui-field > span {
    color: var(--ui-muted);
    font-size: 12px;
    font-weight: 600;
}

.ui-field select {
    max-width: 260px;
}

.ui-field-grow {
    flex: 1 1 240px;
}

.ui-field-grow input[type="text"] {
    width: 100%;
}

.ui-daterange {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ui-daterange input {
    width: 110px;
}

.ui-daterange .ui-cal {
    cursor: pointer;
    opacity: 0.8;
}

.ui-daterange .ui-cal:hover {
    opacity: 1;
}

.ui-dash {
    color: var(--ui-muted);
}

.ui-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ui-reset {
    font-size: 13px;
    color: var(--ui-muted);
}

/* Всплывающий календарь jscal2 — поверх закреплённых меню и шапок списков */
.DynarchCalendar-topCont {
    z-index: 1000 !important;
}

.DynarchCalendar-topCont .DynarchCalendar {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* «Сохранить изменения» в верхней и нижней полосе списка — в одном месте: у правого края, одной ширины */
.thead > div:has(> input[type="submit"]) {
    float: right;
    width: auto;
    margin: -3px 0;
    text-align: right;
}

.thead input[type="submit"] {
    min-width: 220px;
}

/* Фильтр по первой букве и поиск (_alphabet.tpl) */
.ui-alpha {
    margin: 4px 0 16px 0;
    padding: 12px 14px;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line);
    border-radius: 8px;
}

.ui-alpha-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 0;
}

.ui-alpha-search input[type="text"] {
    width: 320px;
}

.ui-alpha-row {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 4px;
}

.ui-alpha-row a,
.ui-alpha-row span.is-empty {
    box-sizing: border-box;
    min-width: 30px;
    padding: 4px 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.ui-alpha-row a {
    color: var(--ui-text);
    background: #f3f5f7;
}

.ui-alpha-row a:hover {
    border-color: var(--ui-accent);
    background: var(--ui-accent-soft);
    color: var(--ui-accent);
    text-decoration: none;
}

.ui-alpha-row a.is-active,
.ui-alpha-row a.is-active:hover {
    background: var(--ui-accent);
    border-color: var(--ui-accent);
    color: #fff;
}

.ui-alpha-row span.is-empty {
    color: #c3c9d0;
    cursor: default;
}

.ui-alpha-row .ui-alpha-all {
    min-width: 52px;
}

/* Пустое место под «Все», чтобы латиница стояла под кириллицей */
.ui-alpha-gap {
    width: 52px;
    flex: none;
}

.ui-count {
    margin: 0 0 8px 0;
    color: var(--ui-muted);
    font-size: 13px;
}

/* «Добавить …» под заголовком раздела — в виде кнопки (ссылки *_add вне строк списка) */
body > a[href*="_add"]:not(:has(img)),
body > p > a[href*="_add"]:not(:has(img)),
.menu_ico > a[href*="_add"]:not(:has(img)) {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 16px;
    border: 1px solid var(--ui-accent);
    border-radius: 6px;
    background: var(--ui-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

body > a[href*="_add"]:not(:has(img))::before,
body > p > a[href*="_add"]:not(:has(img))::before,
.menu_ico > a[href*="_add"]:not(:has(img))::before {
    content: "+";
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

body > a[href*="_add"]:not(:has(img)):hover,
body > p > a[href*="_add"]:not(:has(img)):hover,
.menu_ico > a[href*="_add"]:not(:has(img)):hover {
    background: var(--ui-accent-hover);
    border-color: var(--ui-accent-hover);
    color: #fff;
    text-decoration: none;
}

/* Старые разделы: иконка-дубль рядом с кнопкой «Добавить» не нужна */
.menu_ico > a[href*="_add"]:has(img) {
    display: none;
}

/* Кнопка без обёртки или в абзаце — тот же отступ 16px до содержимого */
body > p:has(> a[href*="_add"]),
body > a[href*="_add"]:not(:has(img)) {
    margin: 0 0 16px 0;
}

/* Таблицы данных (статистика) */
.ui-h2 {
    margin: 24px 0 10px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--ui-text);
}

.ui-h2 small {
    font-size: 13px;
    font-weight: 400;
}

.ui-table {
    width: 100%;
    max-width: 1180px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ui-panel);
    border: 1px solid var(--ui-line);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 0 6px 0;
}

.ui-table th,
.ui-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ui-line);
    text-align: left;
    vertical-align: middle;
}

.ui-table th {
    background: #eaeef2;
    color: var(--ui-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.ui-table th small {
    font-weight: 400;
}

.ui-table tbody tr:hover td {
    background: var(--ui-accent-soft);
}

.ui-table tr:last-child td {
    border-bottom: 0;
}

.ui-table tfoot td {
    background: #f6f8fa;
    font-weight: 700;
    border-top: 2px solid var(--ui-border);
}

.ui-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.ui-table .muted,
.ui-stat-note,
.muted {
    color: var(--ui-muted);
}

.ui-table tr.is-current td {
    background: #fff8e1;
}

.ui-table tr.is-unknown td:first-child {
    color: #9a6700;
}

.ui-stat-note {
    margin: 4px 0 0 0;
    font-size: 12.5px;
    flex: 1 1 300px;
}

.ui-stat-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    max-width: 1180px;
}

.ui-stat-col {
    flex: 1 1 420px;
    min-width: 0;
}

/* Горизонтальные столбики */
.ui-bars td.label {
    width: 40%;
}

.ui-bars td.rank {
    width: 28px;
    color: var(--ui-muted);
    text-align: right;
}

.ui-bars td.bar {
    width: 45%;
}

.ui-bars td.bar span {
    display: block;
    height: 10px;
    min-width: 2px;
    border-radius: 5px;
    background: var(--ui-accent);
}

/* Проверка данных */
.ui-checks td.state {
    width: 24px;
    font-weight: 700;
    text-align: center;
}

.ui-checks tr.is-warn td.state,
.ui-checks tr.is-warn td.num {
    color: var(--ui-err-text);
    font-weight: 700;
}

.ui-checks tr.is-info td.state {
    color: var(--ui-accent);
}

.ui-checks tr.is-ok td.state {
    color: var(--ui-ok-text);
}

/* ID записи в списках (например, гостя) */
.ui-id {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    border: 1px solid var(--ui-line);
    border-radius: 4px;
    background: #f6f8fa;
    color: var(--ui-muted);
    font-size: 11.5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    cursor: copy;
    user-select: all;
}

/* Чёрный список гостей (2026-10-06) */
.ui-blacklist {
    display: inline-block;
    margin: 4px 0 2px;
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--ui-err-text);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
}
.ui-blacklist-reason {
    font-weight: 400;
}
.ui-blacklist-warn {
    line-height: 1.5;
}
.ui-blacklist-actions {
    margin-top: 8px;
}
.ui-blacklist-actions a {
    display: inline-block;
    margin-right: 12px;
    padding: 4px 12px;
    border: 1px solid #f5c2c0;
    border-radius: 4px;
    background: #fff;
}
.ui-blacklist-actions a.ui-blacklist-go {
    border-color: var(--ui-err-text);
    background: var(--ui-err-text);
    color: #fff;
}
.ui-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 10px 0;
    border-bottom: 1px solid var(--ui-line);
}
.ui-tabs a {
    padding: 6px 14px;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-bottom: -1px;
    color: var(--ui-muted);
}
.ui-tabs a.is-active {
    border-color: var(--ui-line);
    background: #fff;
    color: inherit;
    font-weight: 600;
}

/* Логотип сайта слева в шапке админки: тот же белый logo-clean.svg, что в шапке сайта,
   на тёмной плашке цвета шапки сайта (--ink #171817) */
.ui-logo {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 6px;
    background: #171817;
    line-height: 0;
}

.ui-logo img {
    display: block;
    width: 88px;
    height: 32px;
}

.ui-logo:hover {
    opacity: 0.85;
}

/* Две панели фильтров подряд (например, отдел над алфавитом у «Ведущих») */
form + .ui-alpha,
form + .ui-filters {
    margin-top: 12px;
}

/* «Открыть на сайте» в строке списка (2026-10-07) — в стиле кнопок «Редактировать / Удалить» */
a.ui-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    margin: 0 2px;
    border: 1px solid var(--ui-border);
    border-radius: 6px;
    background: #fff;
    color: var(--ui-muted);
    vertical-align: middle;
    text-decoration: none;
    transition: color .12s, background-color .12s, border-color .12s;
}

a.ui-view::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

a.ui-view:hover {
    color: var(--ui-ok-text);
    border-color: #b7e1c4;
    background: var(--ui-ok-bg);
}

a.ui-view:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.25);
}

/* Возможные дубли (2026-10-07) */
.ui-dupe {
    max-width: 1180px;
    margin: 0 0 18px 0;
}

.ui-dupe-head {
    margin: 0 0 6px 0;
    font-size: 15px;
}

.ui-dupe-table td {
    vertical-align: top;
}

.ui-dupe-c {
    width: 90px;
    text-align: center !important;
}

.ui-dupe-c input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--ui-accent);
}

.ui-dupe-who {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 220px;
}

.ui-dupe-who img,
.ui-dupe-nopic {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #eaeef2;
}

.ui-dupe-about {
    margin-top: 2px;
    font-size: 12.5px;
}

.ui-dupe-flag {
    display: inline-block;
    margin: 4px 0 0 4px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #eaeef2;
    color: var(--ui-muted);
    font-size: 11.5px;
}

.ui-dupe-flag.is-danger {
    background: var(--ui-err-bg);
    color: var(--ui-err-text);
}

.ui-dupe-links {
    width: 80px;
    white-space: nowrap;
}

.ui-dupe-actions {
    margin-top: 8px;
}
