/* Фрагменты интерфейса Mirador (корень помечен data-ui): внутри действуют конвенции продукта —
   свои мелкие радиусы, 1px границы контролов, тень у открытого диалога. */
[data-ui] { font-family: var(--font); font-size: 15px; line-height: 1.4; color: #111; text-align: left; }
[data-ui] .pane { background: #fff; border: 1px solid #dcdcd8; border-radius: 6px; overflow: hidden; }
[data-ui] .bar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: #f3f3f0; border-bottom: 1px solid #e3e3df; font-size: 13px; color: #555; }
[data-ui] .bar-top b { color: #111; font-weight: 500; }
[data-ui] .mk { width: 11px; height: 11px; background: #8b1e2d; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: -1px; }

/* заметка */
[data-ui] .note { padding: 18px 20px 16px; font-size: 14px; line-height: 1.45; }
[data-ui] .note h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 1.25; margin: 0 0 2px; }
[data-ui] .note .date { color: #555; font-size: 13px; margin-bottom: 10px; }
[data-ui] .note p { max-width: none; margin: 0 0 8px; }
[data-ui] .note a, [data-ui] .lnk { color: #0b4ec2; text-decoration: underline; text-underline-offset: 2px; }
[data-ui] .note .chk { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e3e3df; font-size: 13px; color: #555; }
[data-ui] .note .chk b { color: #111; font-weight: 500; }

/* цитаты с таймингом */
[data-ui] .quotes { padding: 14px 16px; display: grid; gap: 12px; font-size: 14px; }
[data-ui] .quotes .q { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
[data-ui] .quotes .t { color: #0b4ec2; text-decoration: underline; text-underline-offset: 2px; font-variant-numeric: tabular-nums; font-weight: 500; }
[data-ui] .quotes .orig { margin: 0; }
[data-ui] .quotes .tr { margin: 4px 0 0; color: #333; }
[data-ui] .quotes .tr b { font-weight: 500; color: #111; }
[data-ui] .quotes .src { color: #555; font-size: 13px; margin-top: 2px; }

/* дашборд */
[data-ui] .dash { padding: 14px 16px; display: grid; gap: 12px; }
[data-ui] .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
[data-ui] .tiles div { background: #f3f3f0; border-radius: 4px; padding: 10px 10px 8px; }
[data-ui] .tiles b { display: block; font-size: 22px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
[data-ui] .tiles b.neg { color: #c81e3c; }
[data-ui] .tiles span { display: block; font-size: 12px; color: #555; margin-top: 4px; line-height: 1.25; }
[data-ui] .sbar { display: flex; height: 26px; border-radius: 4px; overflow: hidden; font-size: 12px; font-weight: 500; }
[data-ui] .sbar i { font-style: normal; display: grid; place-items: center; color: #fff; }
[data-ui] .sbar .n { background: #c81e3c; } [data-ui] .sbar .z { background: #c9cdd1; color: #111; } [data-ui] .sbar .p { background: #1f9d55; }
[data-ui] .legend { font-size: 12px; color: #555; }

/* реестр источников */
[data-ui] .tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
[data-ui] .tbl th { text-align: left; font-weight: 500; font-size: 12px; color: #555; padding: 10px 12px 6px; border-bottom: 1px solid #e3e3df; }
[data-ui] .tbl td { padding: 8px 12px; border-bottom: 1px solid #efefec; vertical-align: top; }
[data-ui] .tbl tr:last-child td { border-bottom: 0; }
[data-ui] .tbl .num { font-variant-numeric: tabular-nums; text-align: right; }
[data-ui] .tbl tr.sel td { background: #f6eef0; }
[data-ui] .chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid; line-height: 1.5; }
[data-ui] .chip.gov { color: #1f6d3a; border-color: #bfe3cb; background: #eefaf2; }
[data-ui] .chip.opp { color: #a31331; border-color: #f0c0cb; background: #fdeff2; }
[data-ui] .chip.neu { color: #2b4f82; border-color: #c6d6ef; background: #eef3fb; }
[data-ui] .chip.mix { color: #7a5a00; border-color: #efe0a8; background: #fff8df; }

/* сообщение бота */
[data-ui] .tg { padding: 14px; background: #e9ecef; border-radius: 6px; display: grid; gap: 8px; }
[data-ui] .tg .msg { background: #fff; border-radius: 10px 10px 10px 2px; padding: 10px 12px; font-size: 14px; max-width: 95%; }
[data-ui] .tg .msg b { font-weight: 500; }
[data-ui] .tg .msg .time { display: block; text-align: right; font-size: 12px; color: #777; margin-top: 4px; }
[data-ui] .tg .from { font-size: 12px; color: #555; }

/* журнал обхода */
[data-ui] .log { padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
[data-ui] .log .row { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: baseline; }
[data-ui] .log .row .t { color: #555; font-variant-numeric: tabular-nums; }
[data-ui] .log .row .n { font-variant-numeric: tabular-nums; }
[data-ui] .log .row.now { font-weight: 500; }
[data-ui] .log .row.now .t::before { content: ""; display: inline-block; width: 8px; height: 8px; background: #8b1e2d; border-radius: 0 100% 0 0; margin-right: 6px; }

/* расшифровка */
[data-ui] .tx { padding: 12px 14px; font-size: 14px; display: grid; gap: 6px; }
[data-ui] .tx .l { display: grid; grid-template-columns: 52px 1fr; gap: 10px; }
[data-ui] .tx .l .t { color: #555; font-variant-numeric: tabular-nums; }
[data-ui] .tx .l.hit { background: #f6eef0; margin: 0 -6px; padding: 2px 6px; border-radius: 4px; }
[data-ui] .tx .l.hit mark { background: #f2dde1; color: inherit; }

/* вердикты */
[data-ui] .vd { padding: 12px 14px; display: grid; gap: 6px; font-size: 14px; }
[data-ui] .vd .r { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #efefec; }
[data-ui] .vd .r:last-child { border-bottom: 0; }
[data-ui] .vd .r small { display: block; color: #555; font-size: 12px; }
[data-ui] .st { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
[data-ui] .st.ok { background: #e3f6ea; color: #1f6d3a; } [data-ui] .st.part { background: #fff3cf; color: #7a5a00; } [data-ui] .st.na { background: #ececec; color: #555; }
[data-ui] .vd .sum { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #555; padding-top: 6px; }

/* диалог «Новая тема» */
[data-ui] .dialog { background: #fff; border-radius: 8px; box-shadow: 0 18px 50px rgba(0,0,0,0.28); padding: 20px; display: grid; gap: 14px; }
[data-ui] .dialog h3 { font-size: 18px; font-weight: 700; margin: 0; }
[data-ui] .dialog label { display: grid; gap: 6px; font-size: 13px; color: #555; }
[data-ui] .dialog input[type="text"] { font-size: 16px; padding: 10px 12px; border: 1px solid #c9c9c4; border-radius: 6px; background: #fff; color: #111; width: 100%; }
[data-ui] .dialog input[type="text"]:focus { outline: 2px solid #8b1e2d; outline-offset: 0; border-color: #8b1e2d; }
[data-ui] .seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c9c9c4; border-radius: 6px; overflow: hidden; }
[data-ui] .seg button { padding: 9px 10px; font-size: 14px; background: #fff; color: #111; }
[data-ui] .seg button[aria-pressed="true"] { background: #111; color: #fff; }
[data-ui] .dialog .go { display: flex; justify-content: center; align-items: center; min-height: 46px; background: #8b1e2d; color: #fff; border-radius: 6px; font-weight: 500; text-decoration: none; }
[data-ui] .dialog .go:hover { background: #6f1624; }
[data-ui] .dialog .hint { font-size: 12px; color: #555; }
[data-ui] .dialog .hint.alt { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
[data-ui] .dialog .hint.alt a { color: #111; text-decoration: underline; text-underline-offset: 2px; }
[data-ui] .dialog .copy { font: inherit; font-size: 12px; color: #8b1e2d; background: none; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
[data-ui] .dialog .copy:hover { color: #6f1624; }

/* увеличенные элементы на доске: заданы в em, масштаб через font-size корня */
[data-ui].el { font-size: 15px; }
[data-ui] .toggle { display: inline-flex; align-items: center; gap: 0.6em; font-weight: 500; }
[data-ui] .toggle .sw { width: 3.2em; height: 1.8em; border-radius: 1em; background: #1f9d55; position: relative; }
[data-ui] .toggle .sw::after { content: ""; position: absolute; top: 0.2em; right: 0.2em; width: 1.4em; height: 1.4em; border-radius: 50%; background: #fff; }
[data-ui] .figure { font-size: 4em; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
[data-ui] .figure small { font-size: 0.26em; font-weight: 400; letter-spacing: 0; margin-left: 0.3em; }
[data-ui] .keys { display: flex; gap: 0.5em; }
[data-ui] .keys kbd { font-family: inherit; font-size: 1.1em; font-weight: 500; padding: 0.45em 0.8em; background: #fff; border: 1px solid #c9c9c4; border-bottom-width: 3px; border-radius: 0.4em; }
[data-ui] .discs { display: flex; }
[data-ui] .discs span { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; font-size: 0.85em; font-weight: 500; color: #fff; border: 0.15em solid #fff; margin-left: -0.7em; }
[data-ui] .discs span:first-child { margin-left: 0; }
[data-ui] .pair { display: grid; gap: 0.4em; font-size: 1.05em; }
[data-ui] .pair span { background: #fff; border: 1px solid #c9c9c4; border-radius: 0.35em; padding: 0.4em 0.7em; white-space: nowrap; }
[data-ui] .pair span.tr { background: #111; color: #fff; border-color: #111; }
[data-ui] .range { width: 14em; height: 0.5em; background: #c9c9c4; position: relative; border-radius: 0; }
[data-ui] .range i { position: absolute; left: 0; top: 0; height: 100%; width: 29%; background: #111; }
[data-ui] .range b { position: absolute; top: -0.8em; left: 29%; width: 2.1em; height: 2.1em; background: #8b1e2d; border-radius: 0 100% 0 0; }
[data-ui] .range em { position: absolute; top: 1.2em; left: 0; font-style: normal; font-size: 0.95em; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-ui] .langs { display: flex; gap: 0.4em; }
[data-ui] .langs span { font-weight: 500; padding: 0.35em 0.7em; background: #fff; border: 1px solid #c9c9c4; border-radius: 0.35em; }
