/* Local, CSP-compatible dashboard skin. No remote fonts or assets. */
/* Shared full-content dialog: only the body scrolls, never ordinary panels. */
html.has-portal-dialog { overflow: hidden; }
.portal-dialog { padding: 0; width: min(880px, calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 32px); color: var(--web-secondary); background: var(--web-panel); border: 1px solid var(--web-border); border-radius: var(--web-radius); overflow: hidden; }
.portal-dialog[open] { display: flex; flex-direction: column; }
.portal-dialog::backdrop { background: var(--web-bg); opacity: .85; }
.portal-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: var(--web-space-4); padding: var(--web-space-4) var(--web-space-5); border-bottom: 1px solid var(--web-border-soft); }
.portal-dialog-header h2 { min-width: 0; overflow-wrap: anywhere; }
.portal-dialog-header .btn { flex-shrink: 0; }
.portal-dialog-body { padding: var(--web-space-5); min-height: 0; overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.portal-dialog-body a { overflow-wrap: anywhere; }
.portal-dialog-footer { display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; justify-content: flex-end; gap: var(--web-space-3); padding: var(--web-space-4) var(--web-space-5); border-top: 1px solid var(--web-border-soft); }
.portal-dialog-footer form { margin: 0; }
@media (max-width: 640px) {
  .portal-dialog { width: calc(100% - 16px); max-width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .portal-dialog-header, .portal-dialog-body, .portal-dialog-footer { padding: var(--web-space-4); }
}
:root {
  color-scheme: dark;
  --web-bg: #08090c;
  --web-panel: #101116;
  --web-raised: #181920;
  --web-border: #282a34;
  --web-border-soft: #20222a;
  --web-text: #f0f1f5;
  --web-secondary: #d0d3df;
  --web-muted: #a1a5b3;
  --web-accent: #a6adff;
  --web-primary: #5e6ad2;
  --web-action-bg: #242a35;
  --web-action-hover-bg: #2e3542;
  --web-action-active-bg: #363f4e;
  --web-action-disabled-bg: #171b24;
  --web-action-text: #e1e5ed;
  --web-action-border: #596477;
  --web-action-hover-border: #6a768d;
  --web-action-active-border: #79869e;
  --web-action-focus: #93a0ba;
  --web-highlight: #1c2038;
  --web-green: #78dbaa;
  --web-red: #f797a2;
  --web-amber: #dfbe84;
  --web-radius: 8px;
  --web-radius-control: 6px;
  --web-control-bg: #0c0d12;
  --web-control-border: #626778;
  --web-control-height: 44px;
  --web-control-compact: 36px;
  --web-space-1: 4px;
  --web-space-2: 8px;
  --web-space-3: 12px;
  --web-space-4: 16px;
  --web-space-5: 20px;
  --web-space-6: 24px;
  --web-space-8: 32px;
  --web-text-body: 14px;
  --web-text-title-large: 36px;
  --web-text-label: 12px;
  --web-text-small: 11px;
  --web-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --bs-body-bg: var(--web-bg);
  --bs-body-color: var(--web-text);
  --bs-border-color: var(--web-border);
  --bs-primary: var(--web-primary);
  --bs-link-color: var(--web-accent);
  --bs-link-hover-color: #c1c5ff;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: min(280px, 100%);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--web-bg);
  color: var(--web-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--web-accent); }
button, input, select, textarea { font: inherit; }
button, summary, select { touch-action: manipulation; }
:focus-visible {
  outline: 2px solid var(--web-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: #343c79; color: #fff; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(23px, 2.4vw, 29px); font-weight: 590; line-height: 1.25; letter-spacing: -.65px; }
h2 { margin-bottom: 0; font-size: 14px; font-weight: 590; line-height: 1.5; }
h3 { margin-bottom: 4px; font-size: 14px; font-weight: 590; }
p { margin-bottom: 12px; }
strong { font-weight: 590; }
.muted, .meta { color: var(--web-muted); }
.meta { font-size: 12px; line-height: 1.5; }
.eyebrow { margin-bottom: 8px; color: var(--web-muted); font-size: 11px; font-weight: 590; letter-spacing: .075em; text-transform: uppercase; }
.text-link { color: var(--web-accent); font-size: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--web-accent); color: var(--web-bg); border-radius: 6px; }
.skip-link:focus { top: 12px; color: var(--web-bg); }
.app-header {
  min-height: 65px;
  display: flex;
  align-items: center;
  gap: 38px;
  padding: 0 32px;
  border-bottom: 1px solid var(--web-border-soft);
  background: #0e0f13;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 590; white-space: nowrap; }
.brand:hover { color: var(--web-text); }
.brand-mark { display: inline-block; flex: 0 0 auto; width: 32px; height: 32px; background: url("../brand/logo.4a5a06a7c91c.svg") center / contain no-repeat; }
.private-label { color: var(--web-muted); font-size: 11px; font-weight: 400; }
.brand .private-label { margin-left: 6px; padding-left: 15px; border-left: 1px solid var(--web-border); }
.auth-label { margin-left: auto; }
.primary-nav { display: flex; align-self: stretch; gap: 24px; }
.primary-nav a { display: inline-flex; align-items: center; color: var(--web-muted); font-size: 13px; border-bottom: 2px solid transparent; padding: 12px 2px 10px; }
.primary-nav a:hover { color: var(--web-text); }
.primary-nav a[aria-current] { border-bottom-color: #8e98fc; color: var(--web-text); }
.header-controls { display: flex; align-items: center; gap: var(--web-space-3); margin-left: auto; min-width: 0; max-width: 100%; position: relative; }
.header-controls > .owner-menu { margin-left: 0; min-width: 0; flex-shrink: 0; max-width: 40vw; }   /* the account control never shrinks; a very long name wraps inside 40vw (the limit text is not in this group since HEADER-USAGE) */
.header-controls .owner-name { min-width: 0; overflow-wrap: anywhere; }
.header-controls .owner-dot { flex-shrink: 0; }
.owner-menu { position: relative; margin-left: auto; font-size: 12px; z-index: 20; }
/* The whole account control (dot + name) is the target: a quiet highlight on hover, while the menu is open and on keyboard focus (owner 2026-11-08: no chevron, the area lights up). A constant 1px border keeps the size still. */
.owner-menu summary { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 9px; border: 1px solid transparent; border-radius: var(--web-radius-control); cursor: pointer; list-style: none; color: var(--web-secondary); transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.owner-menu summary:hover, .owner-menu[open] > summary { background: #ffffff08; border-color: #353743; color: var(--web-text); }
.owner-menu summary:focus-visible { outline: 2px solid var(--web-action-focus); outline-offset: 2px; border-radius: var(--web-radius-control); }
.owner-menu summary::-webkit-details-marker { display: none; }
.owner-dot { height: 7px; width: 7px; background: #9b9eb1; border-radius: 50%; }
.owner-menu-panel { position: absolute; right: 0; top: calc(100% + 5px); min-width: 230px; padding: 8px; border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-raised); box-shadow: 0 12px 30px #0006; }
.menu-label { display: block; padding: 6px 10px 10px; color: var(--web-muted); font-size: 11px; }
.owner-menu-panel a, .menu-logout { display: block; width: 100%; padding: 9px 10px; text-align: left; border: 0; border-radius: 4px; background: transparent; color: var(--web-secondary); font-size: 13px; }
.owner-menu-panel a:hover, .menu-logout:hover { background: #ffffff08; color: var(--web-text); }
.owner-menu-panel form { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--web-border); }
/* --- OV-BUILD --- the header's quotes left of the owner's name (owner 2026-11-27): two stacked pairs, BTC over ETH (the
   symbol, the site's minute price, its 24-h change) and SPX over DXY (the symbol, the value) — 11px tabular digits in fixed
   columns, each as wide as its widest value (a pair's rows share them: subgrid), so nothing moves when a value changes;
   greyed while stale. The bar keeps its 65px and never scrolls sideways (OV-REVIEW F-11, measured with the fixtures'
   23-character account name and a 15px scrollbar): at 1100px and below the change goes, at 950px and below SPX / DXY, at
   840px and below the quotes. A phone: all four at 10px, no change. Tokens only, no new colour. */
.header-controls > .header-quotes { display: flex; align-items: center; gap: var(--web-space-4); flex-shrink: 0; }
.header-quotes-pair { display: grid; grid-template-columns: max-content 11ch 7.5ch; column-gap: 6px; row-gap: 1px; font-size: 11px; line-height: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.header-quotes-pair + .header-quotes-pair { grid-template-columns: max-content 9ch; }
.header-quote { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; color: var(--web-secondary); }
.header-quote-symbol { color: var(--web-muted); font-weight: 590; }
.header-quote-value, .header-quote-change { text-align: right; }
.header-quote-change { color: var(--web-muted); }
.header-quote-change.is-gain { color: var(--web-green); }
.header-quote-change.is-loss { color: var(--web-red); }
.header-quote.is-stale > .header-quote-value, .header-quote.is-stale > .header-quote-change { opacity: .55; }
@media (min-width: 641px) and (max-width: 1100px) {   /* a narrower bar keeps its one row of 65px: the change goes first */
  .header-quotes-pair { grid-template-columns: max-content 11ch; }
  .header-quotes-pair + .header-quotes-pair { grid-template-columns: max-content 9ch; }
  .header-quote-change { display: none; }
}
@media (min-width: 641px) and (max-width: 950px) { .header-quotes-pair + .header-quotes-pair { display: none; } }   /* then SPX / DXY */
@media (min-width: 641px) and (max-width: 840px) { .header-controls > .header-quotes { display: none; } }          /* then all */
@media (max-width: 640px) {   /* the phone: all four at 10px beside the brand; a long account name takes the next row */
  .app-header .header-controls { flex-wrap: wrap; justify-content: flex-end; row-gap: 2px; }
  .header-controls > .header-quotes { gap: var(--web-space-2); }
  .header-quotes-pair { grid-template-columns: max-content 11ch; column-gap: 4px; font-size: 10px; line-height: 13px; }
  .header-quotes-pair + .header-quotes-pair { grid-template-columns: max-content 9ch; }
  .header-quote-change { display: none; }
}
/* --- /OV-BUILD --- */
.main-content { flex: 1; width: 100%; max-width: 1504px; margin: 0 auto; padding: 30px 40px 48px; min-width: 0; }
.main-content:focus { outline: none; }
.main-content--wide { max-width: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.page-heading p:last-child { margin-bottom: 0; font-size: 13px; }
.page-heading > .btn { flex-shrink: 0; }
.page-heading--large h1 { font-size: clamp(30px, 3vw, var(--web-text-title-large)); }
.panel { min-width: 0; border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-panel); }
.section-heading { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--web-border-soft); }
.section-heading h2 { display: flex; align-items: center; gap: 9px; }
.section-band, .data-table .section-band { margin: 0; padding: var(--web-space-3); background: var(--web-raised); color: var(--web-secondary); border-top: 1px solid var(--web-border); border-bottom: 1px solid var(--web-border); font-size: var(--web-text-body); font-weight: 590; line-height: 1.5; }
.panel-footnote { padding: 10px 18px; margin: 0; color: var(--web-muted); font-size: 11px; line-height: 1.65; }
.chip, .count-badge { display: inline-flex; align-items: center; white-space: nowrap; font-size: 11px; font-weight: 400; line-height: 1.6; }
.chip { gap: 5px; padding: 3px 8px; border: 1px solid #363946; border-radius: 5px; color: var(--web-muted); }
.count-badge { justify-content: center; min-width: 22px; padding: 1px 6px; border-radius: 4px; background: #ffffff08; color: var(--web-secondary); font-variant-numeric: tabular-nums; }
.btn { --bs-btn-focus-box-shadow: none; min-height: calc(var(--web-control-height) * var(--web-control-scale, 1)); display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 6px; font-size: 12px; font-weight: 510; padding: 7px 12px; white-space: normal; box-shadow: none; transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease; }
.btn-quiet { --bs-btn-color: var(--web-secondary); --bs-btn-bg: #ffffff04; --bs-btn-border-color: #353743; --bs-btn-hover-color: var(--web-text); --bs-btn-hover-bg: #ffffff0a; --bs-btn-hover-border-color: #51566d; --bs-btn-active-bg: #242735; --bs-btn-active-color: var(--web-text); --bs-btn-active-border-color: #626b9c; --bs-btn-disabled-color: var(--web-muted); --bs-btn-disabled-bg: #ffffff02; --bs-btn-disabled-border-color: var(--web-border); }
.btn-primary { --bs-btn-color: var(--web-action-text); --bs-btn-bg: var(--web-action-bg); --bs-btn-border-color: var(--web-action-border); --bs-btn-hover-bg: var(--web-action-hover-bg); --bs-btn-hover-border-color: var(--web-action-hover-border); --bs-btn-hover-color: var(--web-action-text); --bs-btn-active-bg: var(--web-action-active-bg); --bs-btn-active-color: var(--web-action-text); --bs-btn-active-border-color: var(--web-action-active-border); --bs-btn-disabled-color: var(--web-muted); --bs-btn-disabled-bg: var(--web-action-disabled-bg); --bs-btn-disabled-border-color: var(--web-border); }
.btn:focus-visible { box-shadow: none; outline: 2px solid var(--web-action-focus); outline-offset: 3px; }
/* Segmented two-state toggle (Status, Daily checks): quiet graphite; the pressed half uses the action surface. */
.segmented { display: inline-flex; flex-wrap: nowrap; min-width: 0; }
.segmented > .btn { min-width: 5.5rem; margin: 0; border-radius: 0; }
.segmented > .btn:first-child { border-radius: var(--web-radius-control) 0 0 var(--web-radius-control); }
.segmented > .btn + .btn { margin-left: -1px; }
.segmented > .btn:last-child { border-radius: 0 var(--web-radius-control) var(--web-radius-control) 0; }
.segmented > .btn[aria-pressed="true"], .segmented > .btn[aria-current="true"], .segmented > .btn:has(> .segmented-input:checked) { --bs-btn-bg: var(--web-action-bg); --bs-btn-color: var(--web-action-text); --bs-btn-border-color: var(--web-action-border); --bs-btn-hover-bg: var(--web-action-bg); --bs-btn-hover-color: var(--web-action-text); --bs-btn-hover-border-color: var(--web-action-border); --bs-btn-active-bg: var(--web-action-bg); --bs-btn-disabled-bg: var(--web-action-disabled-bg); --bs-btn-disabled-color: var(--web-secondary); --bs-btn-disabled-border-color: var(--web-action-border); position: relative; z-index: 1; cursor: default; }
.segmented[aria-busy="true"] > .btn { cursor: progress; }
/* Choice segments inside one form (Settings → Prosea «Модель»): a native radio, visually hidden inside its label. */
.segmented-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.segmented > .btn:has(> .segmented-input) { position: relative; cursor: pointer; }
.segmented > .btn:has(> .segmented-input:focus-visible) { outline: 2px solid var(--web-action-focus); outline-offset: 3px; }
.btn:disabled { cursor: not-allowed; opacity: .52; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.monitor-notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; padding: 12px 15px; border: 1px solid var(--web-border-soft); border-radius: 6px; background: #111216; font-size: 12px; }
.monitor-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 16px; }
.status-chip { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; font-size: 12px; font-weight: 510; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: currentColor; }
.status-paused { color: var(--web-amber); }
.status-connected { color: var(--web-green); }
.status-error { color: var(--web-red); }
.budget-note { flex-shrink: 0; color: var(--web-muted); font-size: 11px; }
.budget-note strong { color: var(--web-secondary); font-family: var(--web-mono); font-size: 11px; }
.watchlist-panel { margin-bottom: 22px; }
/* Compact Monitor action disclosure uses the shared Configure controls. */
.watchlist-add { margin-bottom: var(--web-space-4); max-width: 460px; }
.watchlist-add > summary { display: inline-flex; color: var(--web-secondary); }
.watchlist-add > .panel { margin-top: var(--web-space-2); }
.watchlist-add h2 { margin-bottom: var(--web-space-4); }
.watchlist-add .helptext { margin-bottom: 0; }
.watchlist-remove { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: var(--web-space-3); margin-bottom: var(--web-space-4); }
.watchlist-remove > button { color: var(--web-red); min-width: 88px; }
.watchlist-remove > [role="status"] { max-width: 430px; }
.watchlist-remove > noscript { flex-basis: 100%; text-align: right; }
.watchlist-grid {
  display: grid;
  grid-template-rows: repeat(3, 60px);
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 270px);
  justify-content: start;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: #4e536c var(--web-panel);
  padding: 12px 16px;
  background: repeating-linear-gradient(to bottom, transparent 0 65px, #ffffff02 65px 66px);
}
.watchlist-account { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 12px; border: 1px solid var(--web-border); border-radius: 6px; background: #15171e; }
.watchlist-account.tracking-on { border-color: #345347; }
.watchlist-account.tracking-off { border-color: #65424a; }
.watchlist-account:hover, .watchlist-account:focus-visible, .watchlist-account.is-account-highlighted { background: var(--web-highlight); border-color: #596299; color: var(--web-text); }
.watchlist-empty { grid-row: 1 / -1; align-self: center; margin: 0; padding: 8px; color: var(--web-muted); font-size: 13px; }
.watchlist-account .account-identity strong { font-size: 12px; }
.watchlist-account .meta { font-size: 10px; }
.card-arrow { color: var(--web-muted); margin-left: auto; font-size: 15px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #232638; border: 1px solid #393d50; }
.avatar-fallback { color: #c5caee; font-size: 12px; font-weight: 510; }
.account-link { display: flex; align-items: center; gap: 9px; max-width: 100%; min-width: 0; padding: 3px 0; }
.account-identity { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.account-identity strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-identity .meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.filter-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--web-border-soft); }
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-field label { font-size: var(--web-text-label); color: var(--web-secondary); }
.filter-field select { --web-control-scale: 1.1; min-width: 185px; padding-right: 30px; }
.filter-toolbar > .text-link { padding: 8px 0; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #4e536c var(--web-panel); border-radius: 0 0 var(--web-radius) var(--web-radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 10px 18px; color: var(--web-muted); background: #13141a; font-size: 11px; font-weight: 510; line-height: 1.4; text-align: left; }
.data-table td { padding: 8px 18px; border-top: 1px solid var(--web-border-soft); vertical-align: middle; }
.event-table { min-width: 640px; table-layout: fixed; }
.event-table th:first-child, .event-table th:nth-child(3) { width: 29%; }
.event-table th:nth-child(2) { width: 20%; }
.event-table th:nth-child(4) { width: 22%; }
.data-table tr[data-account-id]:hover td, .data-table tr[data-account-id]:focus-within td, .data-table tr.is-account-highlighted td { background: var(--web-highlight); }
.data-table tr.is-account-highlighted td:first-child { box-shadow: inset 2px 0 #9ba4ff; }
.data-table tr:focus-visible { outline-offset: -2px; }
.action-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 1px solid var(--web-border); border-radius: 4px; color: var(--web-muted); white-space: nowrap; font-size: 11px; font-weight: 510; }
.action-badge > span { font-size: 14px; line-height: 1; }
.action-follow { color: var(--web-green); background: #11352880; border-color: #25523f; }
.action-unfollow { color: var(--web-red); background: #3a1c2380; border-color: #5c3039; }
.time-cell { color: var(--web-secondary); white-space: nowrap; font-family: var(--web-mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.time-detail { display: block; color: var(--web-muted); font-size: 10px; margin-top: 2px; }
.data-table .empty-cell { padding: 0; }
.empty-state { padding: 36px 24px; text-align: center; }
.empty-symbol { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; color: var(--web-muted); border: 1px solid var(--web-border); border-radius: 7px; font-size: 22px; }
.empty-state h3 { margin-bottom: 8px; color: var(--web-secondary); }
.empty-state p { max-width: 540px; margin: 0 auto; color: var(--web-muted); font-size: 12px; line-height: 1.8; }
.pagination-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--web-border-soft); }
.pagination-actions { display: flex; gap: 8px; }
.pagination-actions .btn { min-height: 32px; padding: 4px 9px; font-size: 11px; }
.breadcrumb-nav { display: flex; gap: 10px; margin-bottom: 19px; font-size: 12px; color: var(--web-muted); }
.breadcrumb-nav a { color: var(--web-secondary); }
.profile-summary { margin: 27px 0 25px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: start; }
#profile-summary { display: contents; }
#profile-summary > .profile-identity { grid-column: 1; grid-row: 1; min-width: 0; }
#profile-summary > .metric-grid { grid-column: 1 / -1; grid-row: 2; }
.profile-command-error { grid-column: 1 / -1; grid-row: 3; }
[data-profile-job-feedback] { grid-column: 1 / -1; grid-row: 4; margin: 0; color: var(--web-muted); font-size: var(--web-text-label); }
.profile-commands { position: relative; z-index: 10; grid-column: 2; grid-row: 1; justify-self: end; min-width: 0; max-width: 44vw; }
.profile-commands > summary { cursor: pointer; list-style: none; width: fit-content; margin-left: auto; }
.profile-commands > summary::-webkit-details-marker { display: none; }
.profile-command-list { position: absolute; top: calc(100% + 8px); right: 0; width: min(270px, calc(100vw - 32px)); max-height: min(70vh, 440px); padding: 8px; background: var(--web-raised); border: 1px solid var(--web-border); border-radius: var(--web-radius); box-shadow: 0 12px 30px rgb(0 0 0 / 35%); overflow-wrap: anywhere; overflow-y: auto; overscroll-behavior: contain; }
.profile-command-list > form { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; }
.profile-command-list > form + form { border-top: 1px solid var(--web-border); margin-top: 8px; padding-top: 8px; }
.profile-command-list .btn { width: 100%; text-align: left; justify-content: flex-start; min-width: 0; }
.profile-command-list .meta, .profile-command-list .helptext { margin: 0; font-size: 11px; }
.profile-command-list noscript { text-align: left; }
.chip.tracking-on { border-color: #345347; }
.chip.tracking-off { border-color: #65424a; }
.profile-identity { display: flex; align-items: flex-start; gap: 16px; }
.avatar-large { width: 58px; height: 58px; font-size: 21px; }
.profile-copy { flex: 1; min-width: 0; }
.profile-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.profile-title-row h1 { margin-bottom: 0; overflow-wrap: anywhere; }
.profile-title-row .chip { max-width: 100%; white-space: normal; }
.profile-handle { overflow-wrap: anywhere; }
.profile-handle { margin: 4px 0 8px; color: var(--web-muted); font-size: 12px; }
.profile-bio { margin-bottom: 8px; max-width: 820px; color: var(--web-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-refresh-link { margin-left: auto; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 12px; margin: 22px 0 11px; padding: 16px 0; border-top: 1px solid var(--web-border-soft); border-bottom: 1px solid var(--web-border-soft); }
.metric-grid > div { padding: 0 16px; border-left: 1px solid var(--web-border-soft); }
.metric-grid > div:first-child { padding-left: 0; border-left: 0; }
.metric-grid dt { margin-bottom: 4px; color: var(--web-muted); font-size: 11px; font-weight: 400; }
.metric-grid dd { margin-bottom: 0; color: var(--web-text); font-size: 17px; font-weight: 510; font-variant-numeric: tabular-nums; }
.metric-grid .metric-timestamp dd { font-size: 12px; padding-top: 4px; }
.profile-workspace { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; }
.settings-workspace { width: 100%; min-width: 0; }
.settings-content { min-width: 0; }
.settings-journal-link { margin-top: var(--web-space-4); }
.source-link-list { list-style: none; padding: 0; margin: 0; }
.source-link-entry + .source-link-entry { border-top: 1px solid var(--web-border-soft); margin-top: var(--web-space-5); padding-top: var(--web-space-5); }
.source-link-url { white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext; font-family: ui-monospace, monospace; font-size: var(--web-text-label); }
.source-link-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--web-space-4); margin: var(--web-space-4) 0 0; }
.source-link-facts > div { min-width: 0; overflow-wrap: anywhere; }
.source-link-facts dt { color: var(--web-muted); font-size: var(--web-text-label); font-weight: 400; }
.source-link-facts dd, .source-link-facts ul { margin: 0; }
.source-link-facts ul { padding-left: var(--web-space-4); }
.settings-navigation { display: flex; gap: var(--web-space-2); margin-bottom: var(--web-space-4); min-width: 0; }
.settings-navigation .btn { min-height: 44px; white-space: nowrap; }
.settings-navigation [aria-selected="true"], .settings-navigation [aria-current="page"] { background: var(--web-action-bg); color: var(--web-action-text); border-color: var(--web-action-border); }
.settings-workspace [data-settings-panel][hidden], .settings-workspace [data-info-panel][hidden] { display: none !important; }
.settings-info-navigation { flex-wrap: wrap; }
.settings-info-content { min-width: 0; }
/* Legacy bookmarks still reveal their native section when JS is unavailable. */
.settings-workspace:not([data-settings-enhanced]):has(:target) [data-settings-panel] { display: none !important; }
.settings-workspace:not([data-settings-enhanced]):has(:target) [data-settings-panel]:has(:target) { display: block !important; }
.settings-account > #account { display: none; }
@media (max-width: 640px) {
  .settings-navigation { gap: var(--web-space-1); }
  .settings-navigation .btn { flex: 1 1 auto; padding-inline: var(--web-space-2); }
}
.profile-header-refresh { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: var(--web-space-3); margin-bottom: var(--web-space-3); }
.profile-header-refresh [data-refresh-feedback] { color: var(--web-muted); font-size: var(--web-text-label); }
.profile-header-refresh .refresh-submit { width: auto; min-height: var(--web-control-height); font-size: var(--web-text-body); }
[data-profile-navigation] { min-width: 0; }
[data-profile-navigation][aria-busy="true"] .profile-data { opacity: .65; }
[data-profile-feedback] { color: var(--web-secondary); padding: 10px 0; font-size: 12px; }
.profile-handle a { color: inherit; }
.profile-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; gap: 22px; padding: 0 18px; border-bottom: 1px solid var(--web-border); }
.profile-tabs :is(a, button) { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 50px; padding: 12px 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 12px; color: var(--web-muted); }
.profile-tabs a[aria-current], .profile-tabs button[aria-selected="true"] { border-bottom-color: #929cff; color: var(--web-text); }
.coverage-notice { padding: 17px 18px 13px; border-bottom: 1px solid var(--web-border-soft); font-size: 12px; }
.coverage-notice p { margin-bottom: 5px; }
.coverage-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.coverage-heading strong { color: var(--web-amber); font-size: 12px; }
.relationship-table { min-width: 470px; }
.relationship-table .account-link { max-width: 260px; }
.refresh-panel { scroll-margin-top: 20px; }
.refresh-intro { margin: 0; padding: 12px 16px 6px; color: var(--web-muted); font-size: 11px; }
.gate-note { margin: 0; padding: 4px 16px 12px; color: var(--web-amber); font-size: 11px; }
.refresh-form { padding: 14px 16px; border-top: 1px solid var(--web-border-soft); }
.refresh-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.refresh-form-heading h3 { font-size: 12px; margin: 0; }
.refresh-form-heading .meta { font-size: 10px; }
.refresh-cost { color: var(--web-secondary); font-size: 11px; margin: 0 0 4px; }
.refresh-cost strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.refresh-time { margin-bottom: 9px; color: var(--web-muted); font-size: 10px; }
.refresh-consent { display: flex; align-items: flex-start; gap: 7px; padding: 5px 0 9px; color: var(--web-muted); font-size: 10px; }
.refresh-consent input { margin-top: 2px; accent-color: #9ba4ff; flex-shrink: 0; }
.refresh-submit { width: 100%; min-height: 32px; font-size: 11px; }
.refresh-form .gate-note { padding: 7px 0 0; }
.jobs-panel { margin-top: 22px; }
.jobs-table { min-width: 710px; }
.job-state { white-space: nowrap; font-size: 11px; }
.job-result { max-width: 360px; color: var(--web-secondary); overflow-wrap: anywhere; font-size: 11px; }
.post-entry { padding: 20px 18px; border-bottom: 1px solid var(--web-border-soft); }
.post-entry:last-child { border-bottom: 0; }
.post-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.post-heading .account-link { max-width: 300px; }
.post-text { font-size: 13px; color: var(--web-secondary); white-space: pre-wrap; overflow-wrap: anywhere; }
.post-metrics { display: flex; flex-wrap: wrap; gap: 16px; color: var(--web-muted); font-size: 11px; margin: 12px 0; }
.post-cache-time { display: flex; flex-wrap: wrap; gap: 5px; font-size: 10px; margin: 0; }
.post-id { margin-left: auto; font-family: var(--web-mono); }
.service-directory { display: grid; gap: var(--web-space-4); max-width: 1040px; margin-top: var(--web-space-6); }
.service-row { display: flex; align-items: center; gap: var(--web-space-5); min-width: 0; min-height: 88px; padding: var(--web-space-6); border: 1px solid var(--web-border); border-radius: var(--web-radius); background: var(--web-panel); color: var(--web-text); transition: background-color 140ms ease, border-color 140ms ease; }
.service-row:hover { color: var(--web-text); background: var(--web-action-bg); border-color: var(--web-action-hover-border); }
.service-row:focus-visible { outline: 2px solid var(--web-action-focus); outline-offset: 3px; background: var(--web-action-bg); border-color: var(--web-action-hover-border); }
.service-row:active { background: var(--web-action-hover-bg); border-color: var(--web-action-active-border); }
.service-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--web-border); border-radius: 9px; font-size: 23px; }
.service-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: var(--web-space-1); overflow-wrap: anywhere; }
.service-copy strong { font-size: 17px; }
.service-copy > span { color: var(--web-muted); font-size: 12px; }
.service-arrow { color: var(--web-muted); font-size: 19px; flex-shrink: 0; }
.directory-note { padding: 13px 20px; border-top: 1px solid var(--web-border-soft); font-size: 12px; }
.hub-note { max-width: 690px; margin-top: 30px; padding-left: 1px; }
.hub-note h2 { margin-bottom: 9px; }
.hub-note p { color: var(--web-muted); font-size: 13px; line-height: 1.8; }
.auth-page .main-content { display: grid; place-items: center; min-height: 100svh; max-width: none; padding: 24px; }
.auth-page .auth-layout { width: 100%; min-height: 0; padding: 0; }
.auth-layout { display: grid; place-items: center; min-height: calc(100svh - 250px); padding: 38px 0; }
.auth-panel { width: 100%; max-width: 420px; padding: 32px; border: 1px solid var(--web-border); border-radius: 10px; background: var(--web-panel); }
.auth-panel-wide { max-width: 490px; }
.auth-panel h1 { font-size: 25px; margin-bottom: 10px; }
.auth-panel > .muted { font-size: 13px; line-height: 1.8; }
.auth-brand { margin-bottom: var(--web-space-6); font-size: 20px; }
.auth-form { margin-top: 26px; }
.form-field { margin-bottom: 20px; }
.form-field > label { display: block; margin-bottom: 7px; color: var(--web-secondary); font-size: 12px; }
/* Shared fields: Configure, authentication and Monitor filters. */
.field-control, .form-field input:not([type="hidden"]):not([type="checkbox"]), .filter-field select, .form-field select, .form-field textarea { width: 100%; max-width: 100%; min-width: 0; min-height: calc(var(--web-control-height) * var(--web-control-scale, 1)); border: 1px solid var(--web-control-border); border-radius: var(--web-radius-control); background: var(--web-control-bg); color: var(--web-text); padding: calc(10px * var(--web-control-scale, 1)) calc(12px * var(--web-control-scale, 1)); font-size: calc(var(--web-text-body) * var(--web-control-scale, 1)); }
.filter-field select, .filter-toolbar > .btn { --web-control-scale: 1.1; min-height: calc(var(--web-control-height) * var(--web-control-scale)); font-size: calc(var(--web-text-body) * var(--web-control-scale)); line-height: 1.25; }
.filter-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20d%3D%22m1%201.5%205%205%205-5%22%20fill%3D%22none%22%20stroke%3D%22%23a1a5b3%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-size: 12px 8px; background-position: right calc(12px * var(--web-control-scale)) center; padding-inline-end: calc(36px * var(--web-control-scale)); }
@media (forced-colors: active) { .filter-field select { appearance: auto; background-image: none; } }
.field-control:focus, .form-field input:focus, .filter-field select:focus { border-color: var(--web-accent); }
.field-control::placeholder { color: var(--web-muted); opacity: 1; }
.field-control:disabled { opacity: .55; cursor: not-allowed; }
.filter-field select:disabled { opacity: .55; cursor: not-allowed; }   /* bridges-filters: a filter that does not apply (Bridges › «Показать» under a filter) — the cue of .field-control:disabled */
.stack { display: grid; gap: var(--web-space-4); min-width: 0; }
.stack > p { margin: 0; }
.panel-body { padding: var(--web-space-5); min-width: 0; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); align-items: start; gap: var(--web-space-6); max-width: 1120px; }
.summary-list { margin: 0 0 var(--web-space-4); }
.summary-list > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--web-space-3); padding: var(--web-space-3) 0; border-bottom: 1px solid var(--web-border-soft); }
.summary-list dt { color: var(--web-secondary); font-size: var(--web-text-label); font-weight: 400; }
.summary-list dd { margin: 0; }
.masked-value { font-family: var(--web-mono); letter-spacing: .12em; color: var(--web-secondary); }
.code-value { display: block; overflow-wrap: anywhere; color: var(--web-secondary); font: 12px/1.7 var(--web-mono); }
.disclosure > summary { min-height: calc(var(--web-control-height) * var(--web-control-scale, 1)); display: flex; align-items: center; gap: var(--web-space-2); cursor: pointer; list-style: none; color: var(--web-accent); font-size: 13px; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: '+'; font-family: var(--web-mono); }
.disclosure[open] > summary::before { content: '−'; }
.settings-form { padding-top: var(--web-space-4); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--web-space-4); }
.form-grid .form-field { min-width: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--web-space-3); }
.form-actions form { margin: 0; }
.form-checkline { display: flex; align-items: center; gap: var(--web-space-2); min-height: calc(var(--web-control-height) * var(--web-control-scale, 1)); color: var(--web-secondary); font-size: var(--web-text-label); margin-bottom: var(--web-space-3); cursor: pointer; }
.form-checkline input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--web-primary); }
.form-warning { margin: 0 0 var(--web-space-2); color: var(--web-amber); font-size: var(--web-text-label); }
.form-field input:autofill { -webkit-text-fill-color: var(--web-text); box-shadow: 0 0 0 100px #171927 inset; }
.has-errors input, .field-control[aria-invalid="true"] { border-color: var(--web-red); }
.helptext { margin-top: 8px; color: var(--web-muted); font-size: 11px; line-height: 1.7; }
.helptext ul { padding-left: 17px; margin: 0; }
.errorlist { margin: 8px 0 0; padding-left: 17px; color: var(--web-red); font-size: 12px; }
.form-error-summary { padding: 12px; margin-bottom: 20px; background: #391c2580; border: 1px solid #6d3f4b; border-radius: 6px; }
.form-error-summary .errorlist { margin: 0; }
.auth-submit { width: 100%; min-height: calc(var(--web-control-height) * var(--web-control-scale, 1)); font-size: 13px; }
.auth-footnote { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--web-border-soft); color: var(--web-muted); font-size: 11px; line-height: 1.8; }
.confirmation-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 22px; color: var(--web-accent); border: 1px solid #3e4573; border-radius: 50%; font-size: 18px; }
.messages { margin-bottom: 22px; }
.notice { padding: 12px 16px; margin-bottom: 8px; background: #1b1f35; border: 1px solid #444b7a; border-radius: 6px; color: var(--web-secondary); font-size: 13px; overflow-wrap: anywhere; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; width: 100%; padding: 16px 32px; border-top: 1px solid var(--web-border-soft); color: var(--web-muted); font-size: 10px; }
.app-footer span span { color: #666c85; padding: 0 5px; }
@media (max-width: 1100px) {
  .brand .private-label { display: none; }
  .app-header { gap: 30px; }
  .main-content { padding: 26px 24px 40px; }
  .monitor-notice { align-items: flex-start; }
  .monitor-summary { display: grid; gap: 4px; }
  .profile-workspace { grid-template-columns: minmax(0, 1fr); }
  .refresh-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .refresh-panel > .section-heading, .refresh-panel > .refresh-intro, .refresh-panel > .gate-note, .refresh-panel > .panel-footnote { grid-column: 1 / -1; }
  .refresh-form:nth-of-type(even) { border-left: 1px solid var(--web-border-soft); }
}
@media (max-width: 640px) {
  .settings-layout { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .panel-body { padding: var(--web-space-4); }
  .field-control, .form-field input:not([type="hidden"]):not([type="checkbox"]), .filter-field select, .filter-toolbar > .btn { font-size: calc(16px * var(--web-control-scale, 1)); }
  .form-actions > form, .form-actions > .btn { flex: 1 1 auto; }
  .form-actions > form .btn { width: 100%; }
  .section-heading { flex-wrap: wrap; }
  html { scroll-padding-top: 16px; }
  .app-header { padding: 9px 16px 0; gap: 2px 14px; flex-wrap: wrap; min-height: 59px; position: relative; }
  .app-header .header-controls, .header-controls > .owner-menu { position: static; }
  .header-controls .owner-menu-panel { right: var(--web-space-4); z-index: 20; }
  .brand { font-size: 16px; }
  .app-header > .brand { min-height: var(--web-control-height); }
  .brand-mark { width: 26px; height: 26px; font-size: 14px; }
  .primary-nav { order: 3; flex-basis: 100%; gap: 22px; min-height: 40px; }
  .primary-nav a { font-size: 12px; padding: 8px 2px; }
  .owner-menu { font-size: 11px; }
  .owner-menu summary { min-height: 40px; }
  .auth-label { padding-bottom: 9px; font-size: 10px; }
  .main-content { padding: 22px 16px 32px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
  .page-heading > .btn { min-height: 38px; }
  h1 { font-size: 23px; }
  .page-heading p:last-child { font-size: 12px; }
  .monitor-notice { flex-direction: column; gap: 8px; padding: 11px 12px; }
  .monitor-summary { font-size: 11px; }
  .budget-note { border-top: 1px solid var(--web-border-soft); padding-top: 8px; width: 100%; }
  .section-heading { padding: 11px 12px; align-items: flex-start; }
  .section-heading > .meta { display: none; }
  .watchlist-grid { padding: 10px 12px; grid-auto-columns: minmax(226px, 245px); }
  .watchlist-panel { margin-bottom: 18px; }
  .panel-footnote { padding-left: 12px; padding-right: 12px; }
  .filter-toolbar { padding: 12px; gap: 10px; }
  .filter-field { flex: 1 1 180px; min-width: min(100%, 180px); }
  .filter-field select { min-width: 0; width: 100%; min-height: calc(var(--web-control-height) * var(--web-control-scale)); }
  .filter-toolbar > .btn { min-height: calc(var(--web-control-height) * var(--web-control-scale)); }
  .data-table th, .data-table td { padding-left: 12px; padding-right: 12px; }
  .event-table { min-width: 620px; }
  .empty-cell .empty-state { max-width: calc(100vw - 34px); margin-left: 0; padding: 32px 18px; }
  .empty-state h3 { font-size: 13px; }
  .empty-state p { font-size: 12px; }
  .pagination-bar { padding: 11px 12px; gap: 8px; flex-wrap: wrap; }
  .pagination-actions .btn { min-height: 40px; }
  .profile-identity { gap: 12px; flex-wrap: wrap; }
  .avatar-large { width: 46px; height: 46px; font-size: 18px; }
  .profile-copy { flex-basis: calc(100% - 65px); }
  .profile-title-row { gap: 8px; }
  .profile-title-row h1 { font-size: 21px; }
  .profile-refresh-link { margin-left: 58px; min-height: 39px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 8px; }
  .metric-grid > div { padding: 0 12px; }
  .metric-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric-grid dd { font-size: 15px; }
  .profile-tabs { gap: 20px; padding: 0 12px; }
  .profile-tabs :is(a, button) { min-height: 48px; }
  .coverage-notice { padding: 14px 12px; }
  .coverage-heading strong { font-size: 11px; }
  .refresh-panel { display: block; }
  .refresh-form:nth-of-type(even) { border-left: 0; }
  .refresh-submit { min-height: 41px; }
  .refresh-consent { min-height: 42px; align-items: center; font-size: 11px; }
  .refresh-consent input { width: 16px; height: 16px; margin: 0; }
  .post-entry { padding: 16px 12px; }
  .post-heading { gap: 9px; }
  .post-heading .account-link { max-width: 100%; }
  .post-id { margin-left: 0; width: 100%; }
  .service-row { padding: var(--web-space-5) var(--web-space-4); gap: var(--web-space-3); flex-wrap: nowrap; }
  .service-icon { width: 35px; height: 35px; font-size: 20px; }
  .service-copy { flex-basis: auto; }
  .service-row > .chip { margin-left: 47px; }
  .service-arrow { margin-left: auto; }
  .directory-note { padding: 12px 14px; font-size: 11px; }
  .auth-layout { padding: 18px 0; min-height: calc(100svh - 230px); }
  .auth-panel { padding: 24px 20px; }
  .btn, .page-heading > .btn, .filter-toolbar > .btn, .pagination-actions .btn, .refresh-submit, .profile-refresh-link, .filter-field select, .primary-nav a, .owner-menu summary, .owner-menu-panel a, .menu-logout { min-height: calc(var(--web-control-height) * var(--web-control-scale, 1)); }
  .app-footer { padding: 15px 16px; flex-direction: column; gap: 4px; }
}
/* Unitor «Logs» › «Маршруты» and the «Bridges» list: the net after a route (green plus, grey loss) and the route text.
   Additions only: shared tokens; no new palette. */
.unitor-after { color: var(--web-secondary); font-variant-numeric: tabular-nums; }
.unitor-after.is-pos { color: var(--web-green); }
.unitor-after.is-neg { color: var(--web-red); }
.unitor-after.is-quiet { color: var(--web-muted); }
.unitor-route-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.unitor-route-text:focus-visible { outline: 2px solid var(--web-action-focus); outline-offset: 3px; }
.unitor-route-text { color: var(--web-secondary); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .action-badge, .status-chip, .chip { border: 1px solid CanvasText; }
  .is-account-highlighted { outline: 2px solid Highlight; }
}
/* Claude usage — the subscription limit (owner 2026-11-08), the coordinator chat's context (owner 2026-11-13) and, since
   owner 2026-11-19, ONE line «A% (F%) · C% (Ck) · ⚡» in the centre of the header bar: the week, the Fable week, the
   context as a share and in thousands of tokens, and a small bolt only while the coordinator is working right now. Quiet
   text in the header's muted tone; amber from 80 %, danger red from 95 % (or the API's own severity); the context amber
   from 75 %, red from 85 % (the gateway compresses at 85 %); greyed with a small «!» when the limits have not updated (the
   context greys on its own). Every part always shown and nothing cut — a dash stands for a value the document lacks — and
   the bolt hangs off the context's right edge, out of the flow, so the figures never move when it comes and goes. In the
   centre of the bar from 1280px, out of the flow, so nothing else in the header moves; below that a line of its own under
   the bar (the bar keeps its row; on a phone the line follows the navigation row). Tokens only, no new colour.
   static/web/claude-usage.js keeps the same markup when it updates the text in place. */
.claude-usage { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex-shrink: 1; color: var(--web-muted); font-size: 12px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: default; }
.claude-usage-text { min-width: 0; }
.claude-usage-sep { color: #666c85; }
.claude-usage .is-warn { color: var(--web-amber); }
.claude-usage .is-alert { color: var(--web-red); }
.claude-usage.is-stale .claude-usage-text, .claude-usage.is-empty .claude-usage-text, .claude-usage.is-empty .claude-usage-context { opacity: .55; }
.claude-usage.is-stale .claude-usage-text .is-warn, .claude-usage.is-stale .claude-usage-text .is-alert { color: inherit; }
.claude-usage-stale { flex-shrink: 0; color: var(--web-secondary); font-size: 11px; font-weight: 700; line-height: 1; cursor: help; }
.claude-usage-context { position: relative; flex-shrink: 0; }
.claude-usage-context.is-stale { opacity: .55; }
.claude-usage-live { position: absolute; left: 100%; top: 50%; display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; transform: translateY(-50%); cursor: help; }
.claude-usage-bolt { display: inline-block; width: 7px; height: 12px; background: var(--web-text); clip-path: polygon(62% 0, 6% 56%, 44% 56%, 34% 100%, 94% 38%, 56% 38%); }
/* Owner 2026-11-09: the header shows only the figures (percent and dollars) — the window names stay in the title and for
 * screen readers (visually hidden on every width). */
.claude-usage-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (min-width: 1280px) {
  /* The centre of the bar, out of the flow; never wider than the room between the navigation (it ends before 450px)
     and the account control: a text that long ends in «…» (its parts stay in the title). */
  .app-header { position: relative; }
  .app-header > .claude-usage { position: absolute; inset: 0; width: fit-content; height: fit-content; max-width: calc(100% - 900px); margin: auto; }
}
@media (min-width: 641px) and (max-width: 1279px) {
  /* A line of its own under the bar: the bar keeps its 64px row, the text sits centred in a 26px band below it. */
  .app-header { position: relative; min-height: 91px; padding-bottom: 26px; }
  .app-header > .claude-usage { position: absolute; left: 0; right: 0; bottom: 5px; width: fit-content; max-width: calc(100% - 64px); margin: 0 auto; }
}
@media (max-width: 640px) {
  /* The phone: a line of its own after the navigation row, centred; every part shown on one line (a break between the
     limits and the context only as a safety net at a width the line cannot fit in). */
  .app-header { padding-bottom: 8px; }
  .app-header > .claude-usage { order: 4; flex: 1 0 100%; flex-wrap: wrap; justify-content: center; row-gap: 0; }
}
/* General: the stacked panels space themselves (the Prosea tab's bottom margin of the «Модель» block would double the gap). */
.settings-account > .prosea-model { margin-bottom: 0; }
.claude-usage-form .claude-usage-row { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); align-items: center; gap: var(--web-space-2) var(--web-space-4); min-width: 0; }
.claude-usage-row > label { margin: 0; color: var(--web-secondary); overflow-wrap: anywhere; }
.claude-usage-value { display: inline-flex; align-items: center; gap: var(--web-space-2); min-width: 0; }
.claude-usage-input.field-control { width: 5rem; text-align: right; font-variant-numeric: tabular-nums; }
.claude-usage-unit { color: var(--web-muted); font-size: var(--web-text-label); }
.claude-usage-form .errorlist { grid-column: 2; margin: 0; }
.claude-usage-form .form-actions { margin-top: var(--web-space-4); }
.claude-usage-form [data-claude-feedback] { min-height: 1.55em; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .claude-usage-form .claude-usage-row { grid-template-columns: minmax(0, 1fr); gap: var(--web-space-1); }
  .claude-usage-form .errorlist { grid-column: 1; }
}
/* /Claude usage */
/* Hermes settings — Settings → General «Hermes» (owner 2026-11-14: «Hermes - старое "Лимит Claude"»; «Пинг по тишине
   ставить … время и возможность включать / выключать»): the row «Пинг по тишине» under the Claude limit interval, in the
   same form and the same label column — the shared segmented «Вкл · Выкл» (radio segments; the form's one «Сохранить»
   saves them), then «через [N] мин» with the interval's 5rem field. «Выкл» dims the minutes (.55), as an «Выкл» row of
   Settings → «Unitor» dims its value; the minutes stay editable and are kept. Layout and density only: shared tokens,
   no new colour, surface or button skin. */
.claude-usage-form .silence-ping-row { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); align-items: center; gap: var(--web-space-2) var(--web-space-4); min-width: 0; margin-top: var(--web-space-3); }
.silence-ping-label { color: var(--web-secondary); overflow-wrap: anywhere; }
.silence-ping-value { display: flex; flex-wrap: wrap; align-items: center; gap: var(--web-space-2) var(--web-space-4); min-width: 0; }
.silence-ping-value > .segmented > .btn { min-width: 4.75rem; }
.silence-ping-after { display: inline-flex; align-items: center; gap: var(--web-space-2); min-width: 0; }
.silence-ping-after > label { margin: 0; color: var(--web-secondary); }
.silence-ping-input.field-control { width: 5rem; text-align: right; font-variant-numeric: tabular-nums; }
.silence-ping-unit { color: var(--web-muted); font-size: var(--web-text-label); }
.silence-ping-row:has(.segmented-input[value="off"]:checked) .silence-ping-after { opacity: .55; }
.claude-usage-form .silence-ping-row .errorlist { grid-column: 2; margin: 0; }
@media (max-width: 640px) {
  .claude-usage-form .silence-ping-row { grid-template-columns: minmax(0, 1fr); gap: var(--web-space-1); }
  .claude-usage-form .silence-ping-row .errorlist { grid-column: 1; }
}
/* /Hermes settings */
/* --- HERMES-SETTINGS --- Settings → General «Hermes» (owner 2026-11-23: «Кнопку на сайте, которая "включать и выключать
   скрипт, который бережёт папки агентов от удаления" - добавить»; «Хранить папки агентов -> Пинг папки агентов»): the row
   «Пинг папки агентов» under «Пинг по тишине», in the same form and the same label column — the shared segmented
   «Вкл · Выкл» (radio segments; saved with the block, in place or by its «Сохранить»). It stands where the row «Аккаунт
   Claude» stood, which left with its switch. Layout and density only: shared tokens, no new colour, surface or button
   skin. */
.claude-usage-form .agent-folders-row { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); align-items: center; gap: var(--web-space-2) var(--web-space-4); min-width: 0; margin-top: var(--web-space-3); }
.agent-folders-label { color: var(--web-secondary); overflow-wrap: anywhere; }
.agent-folders-value { display: flex; flex-wrap: wrap; align-items: center; gap: var(--web-space-2) var(--web-space-4); min-width: 0; }
.agent-folders-value > .segmented > .btn { min-width: 4.75rem; }
.claude-usage-form .agent-folders-row .errorlist { grid-column: 2; margin: 0; }
@media (max-width: 640px) {
  .claude-usage-form .agent-folders-row { grid-template-columns: minmax(0, 1fr); gap: var(--web-space-1); }
  .claude-usage-form .agent-folders-row .errorlist { grid-column: 1; }
}
/* --- /HERMES-SETTINGS --- */
/* --- SETTINGS-GENERAL --- Settings → General (owner 2026-11-19: «помести Hermes и API Model блоки рядом - Hermes первый
   слева, а тот справа. Новый блок Account, в свернутом варианте изначально, там будут вместе Логин и Пароль (для смены)»;
   «Вкладку Twitter перенести в General Account, под Логин над Пароль»). Above 1200px «Hermes» | «API Model» in one row of
   two equal columns — the shorter block stretches to the taller one's bottom (his rule for the columns of the Settings
   tabs, «Все окна до конца окна») — and «Account» across both under them; one column below, «Hermes» first. «Account» is
   the shared panel disclosure (as «Подробности и источники» of a Prosea job), its summary as tall as a panel heading;
   its parts «Логин», «X / Twitter» and «Пароль» stand under shared section bands whose text lines up with the panel
   body. Layout and density only: shared tokens, no new colour, surface or button skin. */
@media (min-width: 1201px) {
  .settings-account { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-account > .settings-account-block { grid-column: 1 / -1; }
}
.settings-account-block > summary { min-height: 49px; padding: var(--web-space-3) 18px; }
.settings-account-part > .section-band { display: flex; align-items: center; justify-content: space-between; gap: var(--web-space-3); padding-inline: var(--web-space-5); }
.settings-account-part > .section-band > h3 { margin: 0; font-size: inherit; line-height: inherit; }
@media (max-width: 640px) {
  .settings-account-block > summary { padding: 11px var(--web-space-3); }
  .settings-account-part > .section-band { flex-wrap: wrap; padding-inline: var(--web-space-4); }
}
/* --- /SETTINGS-GENERAL --- */
/* --- OVERVIEW --- the header's fifth link «Overview» (owner 2026-11-22): below 360px the five links keep their one
   row (12px apart instead of 22px; at 320px they need 273px of the 288px row) */
@media (max-width: 359px) {
  .primary-nav { gap: var(--web-space-3); }
}
/* --- /OVERVIEW --- */
/* --- OVERVIEW2 --- the header without the limit line (owner 2026-11-24: «Сверху сайта можно убрать лимиты и загрузку
   контекста, перенесется в Данные по серверам»): the line stands in the Overview's «Серверы» › «Main» › «Limits» now; the
   band it took under the bar at 641–1279px and the space it took after the navigation row on a phone are given back, so the
   header is the bar alone at every width (a header that still carries the line keeps its band) */
@media (min-width: 641px) and (max-width: 1279px) {
  .app-header:not(:has(> .claude-usage)) { min-height: 65px; padding-bottom: 0; }
}
@media (max-width: 640px) {
  .app-header:not(:has(> .claude-usage)) { padding-bottom: 0; }
}
/* --- /OVERVIEW2 --- */
/* --- HEADINGS --- the page title left the pages (2026-11-27): a heading row that keeps only its action (Prosea,
   «Добавить проект») holds it at the right edge, where it stood beside the title */
.project-search .page-heading > .btn:only-child { margin-left: auto; }
/* --- /HEADINGS --- */
/* --- WITHDRAWALS --- the chip field (window.PortalChipField, app.js block WITHDRAWALS; DESIGN.md › Components › Chip
   field; owner 2026-11-27): a .field-control box that holds the chosen values as chips — the shared .chip with a real
   remove button — and the text field; its suggestions a listbox on the raised surface under the box, the shared row
   highlight on the option in hand, an inner scroll only when it overflows. Shared tokens only (the field's border, its
   accent focus and the 2px ring, the quiet surfaces, the popover's shadow): no colour of its own; ≤900px 44px targets. */
.chip-field { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--web-space-1) var(--web-space-2); cursor: text; }
.chip-field:focus-within { border-color: var(--web-accent); }
.chip-field:has(> .chip-field-input:focus-visible) { outline: 2px solid var(--web-accent); outline-offset: 3px; }
.chip-field-chips { display: flex; flex-wrap: wrap; gap: var(--web-space-1); min-width: 0; max-width: 100%; margin: 0; padding: 0; list-style: none; }
.chip-field-chips:empty { display: none; }
.chip-field-chip { gap: 2px; padding: 0 0 0 var(--web-space-2); color: var(--web-secondary); font-size: var(--web-text-label); cursor: default; }
.chip-field-remove { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--web-muted); font: inherit; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
.chip-field-remove:hover { color: var(--web-text); background: var(--web-highlight); }
.chip-field-remove:focus-visible { outline: 2px solid var(--web-action-focus); outline-offset: 1px; }
.chip-field-input { flex: 1 1 6rem; min-width: 4rem; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.5; }
.chip-field-input::placeholder { color: var(--web-muted); opacity: 1; }
.chip-field-input:focus, .chip-field-input:focus-visible { outline: none; }
.chip-field-list { position: absolute; z-index: 10; top: calc(100% + 4px); left: -1px; right: -1px; max-height: calc(7 * var(--web-control-compact) + 2 * var(--web-space-1)); margin: 0; padding: var(--web-space-1) 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; background: var(--web-raised); border: 1px solid var(--web-border); border-radius: var(--web-radius-control); box-shadow: 0 12px 30px rgb(0 0 0 / 35%); scrollbar-width: thin; scrollbar-color: #4e536c var(--web-raised); }
.chip-field-option { display: flex; align-items: center; min-height: var(--web-control-compact); padding: 0 var(--web-space-3); color: var(--web-secondary); font-size: var(--web-text-body); cursor: pointer; }
.chip-field-option:hover, .chip-field-option[aria-selected="true"] { color: var(--web-text); background: var(--web-highlight); }
@media (max-width: 900px) {
  .chip-field { padding-block: 1px; }
  .chip-field-chip { padding-left: var(--web-space-3); }
  .chip-field-remove { width: 44px; height: 44px; }
  .chip-field-input { min-height: 44px; }
  .chip-field-option { min-height: 44px; }
  .chip-field-list { max-height: calc(7 * 44px + 2 * var(--web-space-1)); }
}
@media (prefers-reduced-motion: reduce) {
  .chip-field-remove { transition: none; }
}
/* --- /WITHDRAWALS --- */
/* --- WD-SEARCH --- the combobox (window.PortalCombobox, app.js block WD-SEARCH; owner 2026-11-27, «Withdrawals» › the
   search): one value in a .field-control box — the text and the clear control inside it (a quiet ×, shown while the field
   holds a value or text) —; its suggestions the chip field's listbox (.chip-field-list, .chip-field-option of the block
   WITHDRAWALS: the raised surface under the box, the shared row highlight). Shared tokens only (the field's border, its
   accent focus and the 2px ring, the quiet surfaces): no colour of its own; ≤900px 44px targets. */
.combo-field { position: relative; display: flex; align-items: center; gap: var(--web-space-1); cursor: text; }
.combo-field:focus-within { border-color: var(--web-accent); }
.combo-field:has(> .combo-field-input:focus-visible) { outline: 2px solid var(--web-accent); outline-offset: 3px; }
.combo-field-input { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; line-height: 1.5; text-overflow: ellipsis; }
.combo-field-input::placeholder { color: var(--web-muted); opacity: 1; }
.combo-field-input:focus, .combo-field-input:focus-visible { outline: none; }
.combo-field-clear { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: -4px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--web-muted); font: inherit; font-size: 15px; line-height: 1; text-decoration: none; cursor: pointer; transition: background-color 140ms ease, color 140ms ease; }
.combo-field-clear[hidden] { display: none; }
.combo-field-clear:hover { color: var(--web-text); background: var(--web-highlight); }
.combo-field-clear:focus-visible { outline: 2px solid var(--web-action-focus); outline-offset: 1px; }
@media (max-width: 900px) {
  .combo-field { padding-block: 1px; }
  .combo-field-input { min-height: 44px; }
  .combo-field-clear { width: 44px; height: 44px; margin-right: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .combo-field-clear { transition: none; }
}
/* --- /WD-SEARCH --- */
/* --- SET-STRUCT --- Settings → General (owner 2026-11-27): «Hermes» › «Пинг по тишине» holds one row per server under its one
   label — Main, Server KATE, Server DAD, Server ROMA: the server's name (secondary, one line), the shared segmented «Вкл ·
   Выкл» and «через [N] мин» —, the label in the block's label column beside the first row, every row on one line; at 640px
   and below the label goes above the rows and each row is its name over one line of its segments and minutes (the minutes'
   field 4.5rem there, as in Settings → «Unitor»). INNER-MODEL (owner 2026-11-27): «Hermes» no longer spans the row — it
   stands left of «Inner AI Model» (app.css INNER-MODEL). Layout and density only: shared tokens, no new colour, surface or
   button skin. */
.claude-usage-form .silence-ping-group { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); align-items: start; gap: var(--web-space-2) var(--web-space-4); min-width: 0; }
.silence-ping-group > .silence-ping-label { padding-block: 10px; line-height: 1.5; }
.silence-ping-servers { display: grid; gap: var(--web-space-3); min-width: 0; }
.claude-usage-form .silence-ping-servers > .silence-ping-row { grid-template-columns: 6.5rem minmax(0, 1fr); gap: var(--web-space-2) var(--web-space-4); margin-top: 0; }
.silence-ping-server { color: var(--web-secondary); white-space: nowrap; }
.claude-usage-form .silence-ping-group + .agent-folders-row { margin-top: var(--web-space-3); }
@media (max-width: 640px) {
  .claude-usage-form .silence-ping-group { grid-template-columns: minmax(0, 1fr); gap: var(--web-space-1); }
  .silence-ping-group > .silence-ping-label { padding-block: 0; }
  .claude-usage-form .silence-ping-servers > .silence-ping-row { grid-template-columns: minmax(0, 1fr); gap: var(--web-space-1); }
  .silence-ping-servers .silence-ping-value { column-gap: var(--web-space-2); }
  .silence-ping-servers .silence-ping-input.field-control { width: 4.5rem; }
}
/* --- /SET-STRUCT --- */
/* --- REFRESH-UI --- one size for every «Обновлено» / «Устарело · …» line (2026-11-27): the Overview's blocks say «Устарело · HH:MM»
   in `.overview-stale`, loaded after this file — the extra class outweighs it; the Unitor pages' line: unitor.css `.unitor-refresh-status` */
.overview-head .overview-stale { font-size: var(--web-text-small); }
/* --- /REFRESH-UI --- */
/* --- USAGE-ROW --- Settings → General › «Hermes» (owner 2026-11-27): the row «Claude Usages Update · каждые [N] мин» is the
   block's first row, above «Пинг по тишине», standing above the block's own form in the block's label column: the label, then
   «каждые», the interval's 5rem field and the muted «мин» — the look of «через [N] мин» of the ping rows —; one row's gap
   (12px) to the form under it. At 640px and below the label goes above its value, the field 4.5rem (as every row of the
   block). Layout and density only: shared tokens, no new colour, surface or button skin. */
.limits-update-row { display: grid; grid-template-columns: minmax(9rem, 15rem) minmax(0, 1fr); align-items: center; gap: var(--web-space-2) var(--web-space-4); min-width: 0; margin-bottom: var(--web-space-3); }
.limits-update-label { color: var(--web-secondary); overflow-wrap: anywhere; }
.limits-update-value { display: inline-flex; align-items: center; gap: var(--web-space-2); min-width: 0; }
.limits-update-prefix { color: var(--web-secondary); }
.limits-update-input.field-control { width: 5rem; text-align: right; font-variant-numeric: tabular-nums; }
.limits-update-unit { color: var(--web-muted); font-size: var(--web-text-label); }
.limits-update-row .errorlist { grid-column: 2; margin: 0; padding: 0; }
@media (max-width: 640px) {
  .limits-update-row { grid-template-columns: minmax(0, 1fr); gap: var(--web-space-1); }
  .limits-update-input.field-control { width: 4.5rem; }
  .limits-update-row .errorlist { grid-column: 1; }
}
/* --- /USAGE-ROW --- */
/* --- INNER-MODEL --- Settings → General (owner 2026-11-27): «Hermes» | «Inner AI Model» in one row of two equal columns above
   1200px — his layout of 2026-11-19 (SETTINGS-GENERAL's grid; the shorter block stretches to the taller one's bottom) —, then
   «Account» across both; one column below, «Hermes» first. In that row the two blocks' label columns are 10.5rem (the longest
   label, «Claude Usages Update», fits it) and the servers' names 6rem («Server ROMA» fits it), so every row of «Hermes» — the
   four servers' «Вкл · Выкл · через [N] мин» too — stays on one line at the owner's 1470px, a classic scrollbar's width to
   spare (measured by inner-model-browser), and the block keeps its height; at 640px and below each row's label goes above
   its control as before. Layout and density only: shared tokens, no new colour, surface or button skin. */
@media (min-width: 1201px) {
  .settings-account > .claude-usage-settings .limits-update-row,
  .settings-account > .claude-usage-settings .claude-usage-form .silence-ping-group,
  .settings-account > .claude-usage-settings .claude-usage-form .agent-folders-row,
  .settings-account > .prosea-model .prosea-model-row { grid-template-columns: 10.5rem minmax(0, 1fr); }
  .settings-account > .claude-usage-settings .claude-usage-form .silence-ping-servers > .silence-ping-row { grid-template-columns: 6rem minmax(0, 1fr); }
}
/* --- /INNER-MODEL --- */
