/*
 * Окно трекеров на главной карте и карточка трекера (tracker-panel.js).
 * Одна таблица стилей для нового и прежнего оформления: цвета — из переменных
 * нового (theme.css), а где их нет — из запасных значений.
 */
.tp, .tp-card {
    --t-ink: var(--ink-strong, #1c2738);
    --t-text: var(--ink, #25324a);
    --t-muted: var(--muted, #6b7789);
    --t-line: var(--line, #e3e8ef);
    --t-soft: var(--canvas, #f7f8fb);
    --t-blue: var(--blue-dark, #0051a8);
    --t-blue-soft: var(--blue-soft, #e5f1ff);
    --t-good: var(--good, #0d8a5a);
    --t-good-bg: var(--good-bg, #e3f9ed);
    --t-wait: var(--wait, #a86400);
    --t-wait-bg: var(--wait-bg, #fff3d6);
    --t-bad: var(--bad, #d92d49);
    --t-bad-bg: var(--bad-bg, #ffe5e7);
    position: absolute;
    z-index: 800;                       /* над значками карты, под её выпадающими списками */
    color: var(--t-text);
    font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.tp[hidden], .tp-card[hidden] { display: none; }
.tp button, .tp-card button { font: inherit; min-height: 0; box-shadow: none; cursor: pointer; }
.tp button:focus-visible, .tp-card button:focus-visible, .tp .tp-q:focus-visible { outline: 2px solid var(--t-blue); outline-offset: 1px; }

/* Окно: правее кнопок масштаба, под строкой поиска, во всю высоту карты. Свёрнутое — одна кнопка. */
.tp { left: 54px; top: 54px; bottom: 26px; width: min(340px, calc(100% - 64px)); pointer-events: none; }
.tp > * { pointer-events: auto; }
.tp .tp-fab {
    display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 7px 12px;
    border: 2px solid rgba(0, 0, 0, .2); border-radius: 6px; background: #fff; background-clip: padding-box; color: var(--t-ink); font-weight: 600;
}
.tp .tp-fab b { padding: 0 7px; border-radius: 999px; background: var(--t-blue-soft); color: var(--t-blue); font-variant-numeric: tabular-nums; }
.tp .tp-win { display: none; }
.tp.open .tp-fab { display: none; }
.tp.open .tp-win {
    display: flex; flex-direction: column; gap: 8px; max-height: 100%; padding: 10px;
    border-radius: 10px; background: #fff; box-shadow: 0 8px 26px rgba(15, 30, 55, .22);
}
.tp .tp-head { display: flex; align-items: center; gap: 8px; }
.tp .tp-head strong { color: var(--t-ink); font-size: 15px; }
.tp .tp-x, .tp-card .tp-x {
    margin: 0 0 0 auto; padding: 0 6px; border: 0; background: none; color: var(--t-muted); font-size: 22px; line-height: 1;
}
.tp .tp-q {
    box-sizing: border-box; width: 100%; height: 36px; margin: 0; padding: 0 10px;
    border: 1px solid var(--t-line); border-radius: 8px; background: #fff; color: var(--t-ink); font: inherit; box-shadow: none;
}
.tp .tp-hint { margin: -4px 0 0; color: var(--t-muted); font-size: 12px; }
.tp .tp-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tp .tp-tabs button {
    margin: 0; padding: 4px 9px; border: 1px solid var(--t-line); border-radius: 8px; background: #fff; color: var(--t-text); font-size: 13px;
}
.tp .tp-tabs button b { color: var(--t-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.tp .tp-tabs button[aria-pressed="true"], .tp .tp-foot button[aria-pressed="true"] {
    border-color: var(--t-blue); background: var(--t-blue-soft); color: var(--t-blue); font-weight: 600;
}
.tp .tp-tabs button[aria-pressed="true"] b { color: var(--t-blue); }
.tp .tp-list { flex: 1 1 auto; min-height: 60px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.tp .tp-empty { margin: 0; padding: 14px 4px; color: var(--t-muted); }
.tp .tp-row {
    display: grid; gap: 3px; width: 100%; margin: 0; padding: 7px 6px; border: 1px solid transparent; border-radius: 8px;
    background: none; color: inherit; text-align: left;
}
.tp .tp-row:hover { background: var(--t-soft); }
.tp .tp-row.sel { border-color: var(--t-blue); background: var(--t-blue-soft); }
.tp .tp-l1, .tp .tp-l2 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
/* Номер трекера целиком, номер машины и склад в одну строку не всегда помещаются — переносятся. */
.tp .tp-l1 { flex-wrap: wrap; row-gap: 2px; }
.tp .tp-sn { flex: none; color: var(--t-ink); font: 600 14px/1.3 ui-monospace, Consolas, "Courier New", monospace; }
.tp .tp-sn i { color: var(--t-muted); font-style: normal; font-weight: 400; }
.tp .tp-plate { min-width: 0; overflow-wrap: anywhere; }
.tp .tp-wh { flex: none; margin-left: auto; padding: 0 7px; border: 1px solid var(--t-line); border-left-width: 4px; border-radius: 4px; font-size: 12px; }
.tp .tp-st { font-size: 13px; }
.tp .tp-st.go { color: var(--t-good); }
.tp .tp-st.wait { color: var(--t-wait); }
.tp .tp-st.lost { color: var(--t-bad); }
.tp .tp-km { flex: none; margin-left: auto; color: var(--t-muted); font-size: 13px; }
.tp .tp-km b { color: var(--t-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tp .tp-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-top: 6px; border-top: 1px solid var(--t-line); color: var(--t-muted); font-size: 12px; }
.tp .tp-foot button { margin: 0; padding: 3px 8px; border: 1px solid var(--t-line); border-radius: 6px; background: #fff; color: var(--t-text); font-size: 12px; }

/*
 * Карточка: рядом с окном трекеров, ниже кнопки «Геозона здесь». Не у правого
 * края: в режиме «карта во весь экран» там лежит панель складов и источников.
 */
.tp-card {
    left: min(404px, calc(100% - 340px)); top: 92px; width: min(330px, calc(100% - 20px)); max-height: calc(100% - 118px); overflow-y: auto;
    display: grid; gap: 10px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 8px 26px rgba(15, 30, 55, .22);
}
.tp-card .tp-card-head { display: flex; align-items: flex-start; gap: 8px; }
.tp-card .tp-card-head small { display: block; color: var(--t-muted); font-size: 12px; }
.tp-card .tp-card-head strong { color: var(--t-ink); font: 600 16px/1.3 ui-monospace, Consolas, "Courier New", monospace; overflow-wrap: anywhere; user-select: all; }
.tp-card .tp-pill { flex: none; margin-top: 2px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tp-card .tp-pill.go { background: var(--t-good-bg); color: var(--t-good); }
.tp-card .tp-pill.wait { background: var(--t-wait-bg); color: var(--t-wait); }
.tp-card .tp-pill.lost { background: var(--t-bad-bg); color: var(--t-bad); }
.tp-card .tp-facts { display: grid; gap: 5px; margin: 0; }
.tp-card .tp-facts div { display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 8px; }
.tp-card .tp-facts dt { color: var(--t-muted); }
.tp-card .tp-facts dd { margin: 0; color: var(--t-ink); overflow-wrap: anywhere; }
.tp-card .tp-facts small { color: var(--t-muted); font-size: 12px; }
.tp-card .tp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-card .tp-acts button { margin: 0; padding: 6px 10px; border: 1px solid var(--t-line); border-radius: 8px; background: #fff; color: var(--t-blue); font-size: 13px; font-weight: 600; }
/* Привязка номера из карточки (владелец, 15.10.2026): форма, расхождение с 1С, адрес. */
.tp-card .tp-acts button:disabled { opacity: .55; cursor: default; }
.tp-card .tp-acts button.tp-primary { background: var(--t-blue); border-color: var(--t-blue); color: #fff; }
.tp-card .tp-free { color: var(--t-wait); font-weight: 600; }
.tp-card .tp-claim { color: var(--t-bad); }
.tp-card .tp-osm { font-size: 11px; }
.tp-card .tp-form { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--t-line); border-radius: 8px; background: var(--t-wait-bg); }
.tp-card .tp-form.tp-claim-box { background: var(--t-bad-bg); }
.tp-card .tp-form p { margin: 0; }
.tp-card .tp-form label { display: grid; gap: 4px; font-size: 13px; color: var(--t-muted); }
.tp-card .tp-form input { padding: 6px 8px; border: 1px solid var(--t-line); border-radius: 6px; font: 600 15px/1.3 ui-monospace, Consolas, monospace; text-transform: uppercase; }
.tp-card .tp-form small { color: var(--t-muted); font-size: 12px; }
.tp-card .tp-err { color: var(--t-bad); font-size: 13px; }

/* Узкая карта (телефон): карточка — снизу во всю ширину, поверх окна. */
@media (max-width: 760px) {
    .tp-card { top: auto; bottom: 26px; left: 10px; right: 10px; width: auto; max-height: 60%; z-index: 801; }
}

/*
 * Карта во весь экран (владелец, 16.10.2026): верх карты — одной строкой, справа одна
 * панель: склады (#monitorPanel) и под ними таблица трекеров в пути (tracker-panel.js).
 * Левое окно в этом режиме спрятано — его список в таблице.
 */
.tp-side, .tp-side-toggle {
    --t-ink: var(--ink-strong, #1c2738);
    --t-text: var(--ink, #25324a);
    --t-muted: var(--muted, #6b7789);
    --t-line: var(--line, #e3e8ef);
    --t-soft: var(--canvas, #f7f8fb);
    --t-blue: var(--blue-dark, #0051a8);
    --t-blue-soft: var(--blue-soft, #e5f1ff);
    --t-good: var(--good, #0d8a5a);
    --t-wait: var(--wait, #a86400);
    --t-bad: var(--bad, #d92d49);
    color: var(--t-text);
    font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.tp-side[hidden], .tp-side-toggle[hidden], .tp-side .tp-side-panel[hidden] { display: none; }
.leaflet-container.tp-full .tp { display: none; }
.tp-side button, .tp-side-toggle button { font: inherit; min-height: 0; box-shadow: none; cursor: pointer; transform: none; }
.tp-side button:focus-visible, .tp-side-toggle button:focus-visible, .tp-side .tp-side-q:focus-visible { outline: 2px solid var(--t-blue); outline-offset: 1px; }

/* «Трекеры N» — справа от строки поиска. */
.leaflet-top.leaflet-left .tp-side-toggle { clear: none; margin-left: 8px; }
.tp-side-toggle button {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; margin: 0; padding: 0 12px;
    border: 2px solid rgba(0, 0, 0, .2); border-radius: 6px; background: #fff; background-clip: padding-box; color: var(--t-ink); font-weight: 600; white-space: nowrap;
}
.tp-side-toggle button b { padding: 0 7px; border-radius: 999px; background: var(--t-blue-soft); color: var(--t-blue); font-variant-numeric: tabular-nums; }
.tp-side-toggle button[aria-pressed="true"] { border-color: var(--t-blue); background: var(--t-blue); color: #fff; }
.tp-side-toggle button[aria-pressed="true"] b { background: rgba(255, 255, 255, .22); color: #fff; }
/* «Геозона здесь» — в одну строку со слоями карты, слева от них. */
.leaflet-container.tp-full .leaflet-top.leaflet-right .zone-here-control { clear: none; }
.leaflet-container.tp-full.tp-narrow .leaflet-top.leaflet-right .zone-here-control { clear: both; }
.leaflet-container.tp-narrower .leaflet-top.leaflet-left .tp-side-toggle { clear: both; margin-left: 10px; }
/* «Геозона здесь» на второй строке — панель и карточка ниже неё. */
.leaflet-container.tp-full.tp-narrow .tp-side, .leaflet-container.tp-full.tp-narrow .tp-card { top: 96px; }

.tp-side {
    position: absolute; z-index: 800; top: 54px; right: 10px; bottom: 26px; width: min(var(--tp-side-w, 405px), calc(100% - 20px));
    container-type: inline-size;
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: 10px; background: #fff; box-shadow: 0 8px 26px rgba(15, 30, 55, .24);
}
.tp-side .tp-side-nav { flex: 0 0 auto; max-height: 48%; overflow-y: auto; padding: 10px 12px 8px; border-bottom: 1px solid var(--t-line); }
.tp-side .tp-side-navhead { display: flex; align-items: baseline; gap: 8px; }
.tp-side .tp-side-navhead strong { color: var(--t-ink); font-size: 15px; }
.tp-side .tp-side-sum { flex: 1; min-width: 0; overflow: hidden; color: var(--t-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tp-side .tp-side-fold { margin: 0 0 0 auto; padding: 2px 4px; border: 0; background: none; color: var(--t-blue); font-size: 12px; white-space: nowrap; }
.tp-side .tp-side-panel { margin-top: 8px; }

/* Панель складов внутри — плотнее: источники и подразделения в строку, склады плитками. */
.tp-side .monitor-card { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.tp-side .monitor-head { margin: 0 0 4px; }
.tp-side .monitor-head h3 { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--t-muted); }
.tp-side .monitor-sources { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 8px; }
.tp-side .monitor-src { padding: 2px 0; }
.tp-side .monitor-divs { gap: 4px; margin: 0 0 8px; padding-bottom: 8px; }
.tp-side .monitor-divs .monitor-div { padding: 3px 9px; }
.tp-side .monitor-img { margin: 0 0 8px; }
.tp-side .monitor-tabs { margin: 2px 0 6px; }
.tp-side .monitor-tabs .monitor-tab { padding: 4px 8px; }
.tp-side .monitor-toggle { margin: 0 0 6px; font-size: 12px; }
.tp-side .monitor-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; max-height: none; margin: 0; padding: 0; overflow: visible; }
.tp-side button.monitor-row { gap: 3px 6px; padding: 5px 7px; border-color: var(--t-line); border-radius: 7px; }
.tp-side button.monitor-row[data-all="1"] { grid-column: 1 / -1; }
.tp-side .monitor-name { font-size: 12px; }
.tp-side .monitor-count { font-size: 12px; }
.tp-side .monitor-count strong { font-size: 13px; }
.tp-side .monitor-bar { height: 3px; }

/* Таблица: как нижняя таблица у поставщика — вкладки, колонки, сортировка по заголовку. */
.tp-side .tp-side-tbl { flex: 1 1 0; min-height: 180px; display: flex; flex-direction: column; }
.tp-side .tp-side-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px 6px; }
.tp-side .tp-side-head strong { color: var(--t-ink); font-size: 15px; white-space: nowrap; }
.tp-side .tp-side-q {
    flex: 1; min-width: 0; box-sizing: border-box; height: 32px; margin: 0; padding: 0 9px;
    border: 1px solid var(--t-line); border-radius: 7px; background: #fff; color: var(--t-ink); font: inherit; font-size: 13px; box-shadow: none;
}
.tp-side .tp-side-tabs { display: flex; padding: 0 6px; border-bottom: 1px solid var(--t-line); }
.tp-side .tp-side-tabs button {
    flex: 1; margin: 0; padding: 6px 4px 7px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    background: none; color: var(--t-muted); font-size: 13px; white-space: nowrap;
}
.tp-side .tp-side-tabs button b { font-variant-numeric: tabular-nums; }
.tp-side .tp-side-tabs button[aria-pressed="true"] { border-bottom-color: var(--t-blue); color: var(--t-blue); font-weight: 600; }
.tp-side .tp-side-grid { flex: 1 1 auto; min-height: 0; overflow: auto; }
.tp-side table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tp-side thead th { position: sticky; top: 0; z-index: 1; padding: 0; border-bottom: 1px solid var(--t-line); background: #f4f6f9; text-align: left; }
.tp-side thead th button {
    width: 100%; margin: 0; padding: 6px 8px; border: 0; border-radius: 0; background: none;
    color: var(--t-muted); font-size: 12px; font-weight: 600; text-align: inherit; white-space: nowrap;
}
.tp-side thead th[aria-sort] button { color: var(--t-blue); }
.tp-side thead th[aria-sort="ascending"] button::after { content: " ↑"; }
.tp-side thead th[aria-sort="descending"] button::after { content: " ↓"; }
.tp-side .tp-c-km { text-align: right; }
.tp-side tr.tp-srow { cursor: pointer; }
.tp-side tr.tp-srow td { padding: 7px 8px; border-bottom: 1px solid var(--t-soft); vertical-align: middle; white-space: nowrap; }
.tp-side tr.tp-srow:hover td { background: #eef5ff; }
.tp-side tr.tp-srow.sel td { background: var(--t-blue-soft); }
.tp-side .tp-sn { color: var(--t-ink); font: 600 13px/1.3 ui-monospace, Consolas, "Courier New", monospace; }
.tp-side .tp-sn i { color: var(--t-muted); font-style: normal; font-weight: 400; }
.tp-side .tp-c-plate { color: var(--t-ink); font-weight: 600; }
.tp-side .tp-wh { display: inline-block; max-width: 110px; overflow: hidden; padding: 0 6px; border: 1px solid var(--t-line); border-left-width: 4px; border-radius: 4px; font-size: 12px; text-overflow: ellipsis; vertical-align: middle; }
.tp-side tr.tp-srow td.tp-c-st { white-space: normal; }
.tp-side .tp-st { font-size: 12px; font-weight: 600; }
.tp-side .tp-st { white-space: nowrap; }
.tp-side .tp-ago { display: block; color: var(--t-muted); font-size: 11px; }
.tp-side .tp-st.go { color: var(--t-good); }
.tp-side .tp-st.wait { color: var(--t-wait); }
.tp-side .tp-st.lost { color: var(--t-bad); }
.tp-side .tp-c-km b { color: var(--t-ink); font-weight: 600; }
.tp-side .tp-c-km small { color: var(--t-muted); font-size: 12px; white-space: normal; }
.tp-side tr.tp-sacts td { padding: 2px 8px 8px; border-bottom: 1px solid var(--t-line); background: var(--t-blue-soft); }
.tp-side .tp-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-side .tp-acts button { margin: 0; padding: 4px 10px; border: 1px solid #b9d3f7; border-radius: 6px; background: #fff; color: var(--t-blue); font-size: 12px; font-weight: 600; }
.tp-side .tp-acts button:hover, .tp-side .tp-acts button[aria-pressed="true"] { border-color: var(--t-blue); background: var(--t-blue); color: #fff; }
.tp-side .tp-empty { padding: 20px 12px; color: var(--t-muted); text-align: center; white-space: normal; }
.tp-side .tp-side-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 7px 12px; border-top: 1px solid var(--t-line); color: var(--t-muted); font-size: 12px; }
.tp-side .tp-side-foot button { margin: 0; padding: 3px 8px; border: 1px solid var(--t-line); border-radius: 6px; background: #fff; color: var(--t-text); font-size: 12px; }
.tp-side .tp-side-foot button[aria-pressed="true"] { border-color: var(--t-blue); background: var(--t-blue-soft); color: var(--t-blue); font-weight: 600; }

/* Карточка — слева от панели, не поверх таблицы. */
.leaflet-container.tp-full .tp-card { left: auto; right: 10px; top: 54px; z-index: 801; }   /* над панелью, если панель растянули под неё (codex-188) */
/* Слева от панели; панель растянули так, что места не осталось, — карточка у левого края карты
   поверх панели, а не за краем экрана (codex-187 R1). */
.leaflet-container.tp-full-side .tp-card {
    right: min(calc(min(var(--tp-side-w, 405px), 100% - 20px) + 20px), calc(100% - min(330px, 100% - 20px) - 10px));
}

/* Ручка ширины на левом краю панели. */
.tp-side .tp-side-grip { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; touch-action: none; }
.tp-side .tp-side-grip::after { content: ''; position: absolute; left: 2px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px; background: var(--t-line); }
.tp-side .tp-side-grip:hover::after, .tp-side .tp-side-grip:focus-visible::after, .leaflet-container.tp-resizing .tp-side-grip::after { background: var(--t-blue); }
.tp-side .tp-side-grip:focus-visible { outline: none; }
.leaflet-container.tp-resizing, .leaflet-container.tp-resizing * { cursor: ew-resize !important; user-select: none; }
/* Склад под номером машины — только в узкой панели, где колонки «Склад» нет. */
.tp-side .tp-c-plate .tp-wh { display: none; }
@container (max-width: 480px) {
    .tp-side .tp-c-wh { display: none; }
    .tp-side .tp-c-plate .tp-wh { display: table; margin-top: 3px; font-weight: 400; }
    .tp-side .monitor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-side tr.tp-srow td, .tp-side thead th button { padding-left: 6px; padding-right: 6px; }
}

@media (max-width: 1100px) {
    .tp-side .monitor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Узкий экран: панель — снизу, карточка — сверху. */
@media (max-width: 760px) {
    .tp-side { top: auto; left: 10px; right: 10px; width: auto; height: 58%; }
    .tp-side .tp-side-grip { display: none; }
    .leaflet-container.tp-full.tp-narrow .tp-side { top: auto; }
    .leaflet-container.tp-full.tp-narrow .tp-card { top: 96px; }
    .tp-side tr.tp-srow td, .tp-side thead th button { padding-left: 5px; padding-right: 5px; }
    .leaflet-container.tp-full .tp-card, .leaflet-container.tp-full-side .tp-card { top: 54px; bottom: auto; left: 10px; right: 10px; width: auto; max-height: 38%; }
}

/* Карточка машины WeChat во всплывающем окне значка (app.js, wxCardHtml) — вид как у карточки трекера. */
.wx-pop .leaflet-popup-content { margin: 12px 14px; }
.wx-card {
    --t-ink: var(--ink-strong, #1c2738);
    --t-muted: var(--muted, #6b7789);
    --t-line: var(--line, #e3e8ef);
    --t-blue: var(--blue-dark, #0051a8);
    --t-good: var(--good, #0d8a5a);
    --t-good-bg: var(--good-bg, #e3f9ed);
    --t-bad: var(--bad, #d92d49);
    display: grid; gap: 10px; color: var(--t-ink);
    font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wx-card .wx-card-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; padding-right: 14px; }
.wx-card .wx-card-head small { flex-basis: 100%; color: var(--t-muted); font-size: 12px; margin-bottom: -6px; }
.wx-card .wx-card-head strong { font: 600 16px/1.3 ui-monospace, Consolas, "Courier New", monospace; user-select: all; }
.wx-card .tp-pill { flex: none; margin-top: 2px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.wx-card .tp-pill.go { background: var(--t-good-bg); color: var(--t-good); }
.wx-card .wx-facts { display: grid; gap: 5px; margin: 0; }
.wx-card .wx-facts > div { display: grid; grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 8px; }
.wx-card .wx-facts dt { color: var(--t-muted); }
.wx-card .wx-facts dd { margin: 0; overflow-wrap: anywhere; }
.wx-card .wx-facts small, .wx-card .wx-note { color: var(--t-muted); font-size: 12px; }
.wx-card .tp-osm { font-size: 11px; }
.wx-card .wx-warn { color: #e8590c; }
.wx-card .wx-bad { color: var(--t-bad); }
.wx-card .wx-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.wx-card .wx-acts button {
    margin: 0; padding: 6px 10px; min-height: 0; border: 1px solid var(--t-line); border-radius: 8px; background: #fff;
    color: var(--t-blue); font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; box-shadow: none; cursor: pointer;
}
