/* Shared colours for the workspace and the First Tender guide. */
:root {
  --bg: #f4f7f1; --paper: #fff; --ink: #1d302c; --ink-2: #3b4a43; --muted: #646f6a; --faint: #5f6b66;
  --green: #194c40; --green-2: #24614f; --lime: #d7f49a; --olive: #6b7a72;
  /* Main actions: lime with dark text — the one thing on a screen the eye goes to first. */
  --cta: #c8f07a; --cta-hover: #b8e566; --on-cta: #123a30;
  --cover: #18483f; --section-rule: #a7cf68;
  --line: #dce5d9; --line-2: #d1dccf; --soft: #eef5e8; --soft-2: #f4f7f1;
  --ok: #507830; --ok-soft: #e8f4dd; --warn: #94691b; --warn-soft: #fff0d8; --hot: #9b4b3a; --hot-soft: #f9e8e3; --info: #3d6a8a; --info-soft: #e7eff5;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: var(--green); }
h1, h2, h3, p { margin: 0; }
input, select, textarea { border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); padding: 10px 11px; min-width: 0; font-size: 13.5px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #96b9a6; outline-offset: 0; }
textarea { resize: vertical; line-height: 1.7; }
input[type=checkbox], input[type=radio] { accent-color: var(--green); width: 15px; height: 15px; flex-shrink: 0; margin: 0; }
code { font-size: 13.5px; background: var(--soft); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.neg { color: var(--hot) !important; }
.ico { width: 15px; height: 15px; flex: none; }
.ico.tiny { width: 11px; height: 11px; vertical-align: -1px; }

/* ---------- shell (sidebar + topbar) */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; background: #fff; border-right: 1px solid var(--line); padding: 30px 20px 22px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { width: fit-content; max-width: 100%; padding: 9px 13px 9px 9px; border-radius: 11px; text-decoration: none; font-size: 25px; letter-spacing: -1.3px; font-weight: 750; display: flex; align-items: center; white-space: nowrap; color: #f6faf7; background: var(--cover); }
/* The «Вывеска» mark (ui/logo-mark.svg): a shop awning over Т — «Тендерная» like «булочная». */
.brand-icon { display: block; width: 36px; height: 36px; flex: none; margin-right: 9px; }
.brand-dot { color: #5d733e; }
.brand .brand-dot { color: var(--cta); }
.workspace-label { color: #686e66; font-size: 12px; letter-spacing: 1.5px; font-weight: 700; margin: 29px 0 13px; padding: 0 11px 10px; border-bottom: 1px solid var(--section-rule); }
.navlist { display: flex; flex-direction: column; }
.nav { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 9px; margin-bottom: 6px; font-weight: 550; color: #5c6963; text-decoration: none; font-size: 14.5px; }
.nav > span { font-size: 19px; line-height: 1; width: 23px; text-align: center; }
.nav b { margin-left: auto; font-size: 13.5px; background: #f0f3ed; padding: 2px 7px; border-radius: 6px; font-weight: 600; }
.nav b.accent { background: var(--green); color: #fff; }
.nav:hover { background: var(--soft-2); }
.nav.active { background: #e9f4df; color: var(--green); box-shadow: inset 3px 0 var(--section-rule); }
.nav.active b { background: #dce9d4; }
.nav.active b.accent { background: var(--green); }
.sidebar-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 24px; }
.sidebar-section > span { font-size: 12px; color: #606a65; letter-spacing: 1.2px; font-weight: 700; margin: 0 9px; }
.profile { display: flex; gap: 10px; margin: 17px 5px; text-decoration: none; color: var(--ink); }
.profile-icon { background: #f0f3e9; border: 1px solid #e4e9db; border-radius: 8px; align-self: flex-start; padding: 6px; color: #4f6a5c; font-size: 13.5px; }
.profile strong { font-size: 13.5px; }
.profile small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.side-title { font-size: 12px; color: #606a65; letter-spacing: 1.2px; font-weight: 700; margin: 22px 9px 8px; }
.side-item { display: grid; grid-template-columns: 9px 1fr; gap: 1px 8px; padding: 7px 9px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; }
.side-item:hover { background: var(--soft-2); }
.side-item .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: #6f8a7c; }
.side-item .dot.warn { background: #d1a046; } .side-item .dot.hot { background: #c0644f; }
.side-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.side-item small { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 24px 9px 0; font-size: 13.5px; }
.sidebar-bottom p { color: var(--muted); margin: 9px 0 14px; line-height: 1.7; }
.sidebar-bottom .text-button { font-size: 13.5px; display: block; margin: 8px 0; text-decoration: none; }
.conn { display: flex; align-items: center; gap: 7px; }
.conn strong { font-size: 13.5px; }
.privacy-dot { display: inline-block; width: 7px; height: 7px; background: #a9b3ad; border-radius: 50%; flex: none; }
.conn.online .privacy-dot { background: #6f8a7c; }
.conn.offline .privacy-dot { background: #c0644f; }
.main-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 73px; border-bottom: 1px solid var(--line); background: #ffffff99; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; }
.crumb { color: var(--muted); }
.slash { color: #626a66; margin: 0 13px; }
.topbar strong { font-weight: 500; }
.private-pill { display: flex; gap: 7px; align-items: center; color: #5e7157; background: #edf2e7; border-radius: 20px; padding: 6px 11px; font-size: 12.5px; }
.private-pill i { width: 5px; height: 5px; background: #84a66a; border-radius: 50%; }
main { padding: 32px 42px 0; max-width: 1600px; width: 100%; margin: 0 auto; outline: none; flex: 1; }
.foot { display: flex; gap: 20px; justify-content: space-between; color: #696e62; font-size: 12px; margin: 37px 42px 0; border-top: 1px solid var(--line); padding: 16px 0 20px; }

/* ---------- headings, buttons, primitives */
.page-head { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--section-rule); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--faint); margin-bottom: 10px; text-transform: uppercase; }
h1 { font-size: clamp(26px, 2.6vw, 37px); font-weight: 730; line-height: 1.18; letter-spacing: -1.3px; }
.page-head h1::after { content: "."; color: var(--olive); }
.page-head p { color: var(--muted); font-size: 13.5px; margin-top: 11px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; text-decoration: none; border: 1px solid transparent; border-radius: 9px; font-size: 13.5px; font-weight: 600; padding: 11px 16px; white-space: nowrap; min-height: 40px; background: none; color: var(--green); }
.btn svg { width: 14px; height: 14px; }
.btn.primary { background: var(--cta); color: var(--on-cta); border-color: var(--on-cta); }
.btn.primary:hover { background: var(--cta-hover); }
/* Secondary filled button: the brand green (e.g. «Попробовать 3 дня» next to the lime search button). */
.btn.strong { background: var(--green); color: #fff; }
.btn.strong:hover { background: var(--green-2); }
.btn.ghost { border-color: #c9d6cf; background: transparent; color: var(--green); }
.btn.ghost:hover { background: #e7ece9; }
.btn.saved { background: #e8f0eb; color: var(--green); border-color: #d0ddd5; }
.btn.text, .text-button { background: none; border: 0; color: var(--green); font-size: 13.5px; padding: 0; font-weight: 550; min-height: 0; text-align: left; }
.btn.text:hover, .text-button:hover { text-decoration: underline; }
.btn.small { padding: 7px 11px; font-size: 13.5px; min-height: 32px; border-radius: 8px; }
.btn.text.small { padding: 0; min-height: 0; font-size: 13.5px; }
.btn.big { padding: 12px 22px; min-height: 44px; }
.btn.wide { flex: 1; }
.btn b:not(:empty) { background: var(--lime); color: var(--green); border-radius: 6px; font-size: 12.5px; padding: 0 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; color: #4f6a5c; font-size: 20px; line-height: 1; text-decoration: none; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--soft-2); border-color: var(--line); }
.icon-btn.on { color: var(--green); background: #e8f0eb; }
.badge, .pill, .tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 3px 7px; font-size: 11px; color: #5f7252; background: #f0f4e9; white-space: nowrap; line-height: 1.4; font-weight: 500; }
.tag.law { background: #e6eedd; color: var(--green); font-weight: 650; }
.tag.faint { background: transparent; border: 1px dashed #cdd6c4; color: #606a65; }
.tag.warn, .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.hot { background: var(--hot-soft); color: var(--hot); }
.pill.over, .pill.muted, .pill.none { background: #eef1ef; color: #626a66; }
.tag.status { background: #e7eff5; color: var(--info); }
.tag.s-won { background: var(--ok-soft); color: var(--ok); }
.tag.s-prepare, .tag.s-submitted { background: var(--warn-soft); color: var(--warn); }
.tag.s-lost, .tag.s-declined { background: #eef1ef; color: #626a66; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 550; color: #5a6862; }
.field small { font-weight: 400; color: var(--faint); font-size: 12.5px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #53644e; cursor: pointer; line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid2.tight { gap: 10px; }
.grid2 .wide { grid-column: 1 / -1; }
.loading-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--olive); animation: pulse 1s infinite ease-in-out; vertical-align: 1px; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.skeleton { display: inline-block; width: 80px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #eaeeeb 25%, #f7f9f3 50%, #eaeeeb 75%) 0 0 / 200% 100%; animation: shimmer 1.3s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- connection panel (ЕИС · живые данные) */
.connection-panel { display: flex; align-items: center; gap: 18px; padding: 20px 25px; border: 1px solid #dce6dc; border-radius: 16px; background: linear-gradient(115deg, #eaf2e8, #f7faf4 75%); margin-bottom: 22px; }
.connection-orb { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e1e6dc; color: #676f5f; font-size: 25px; flex-shrink: 0; }
.connection-orb.online { background: #21563f; color: #d8efaf; box-shadow: 0 4px 14px #1e54301c; }
.connection-orb.offline { background: #f3e2dc; color: #a4513e; }
.connection-copy { flex: 1; }
.connection-copy .eyebrow { font-size: 9.5px; letter-spacing: 1.8px; margin-bottom: 6px; }
.connection-copy strong { font-size: 16px; color: #254a36; }
.connection-copy p { font-size: 13.5px; color: #627159; margin: 7px 0 0; line-height: 1.65; }

/* ---------- registry search form */
.registry-search { background: var(--paper); padding: 28px 30px 0; border-radius: 15px; border: 1px solid var(--line); box-shadow: 0 8px 28px #21483d0b; margin-bottom: 26px; }
.registry-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; }
.registry-heading > div { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 14px; }
.registry-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 730; letter-spacing: -.9px; color: var(--green); }
.registry-heading .section-index { flex: none; background: var(--cta); color: var(--on-cta); padding: 5px 7px; border-radius: 5px; font-size: 12.5px; font-weight: 750; letter-spacing: .06em; }
.registry-caption { color: var(--faint); font-size: 13.5px; }
.registry-heading > button { font-size: 13.5px; color: #5e7250; }
.filter-row { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 26px; border-bottom: 1px solid #e7ece2; padding: 15px 0; align-items: center; }
.keyword-row { align-items: start; padding-top: 0; }
.row-label { font-size: 13.5px; font-weight: 500; color: #53674d; line-height: 1.5; }
.keyword-row > .row-label { padding-top: 12px; }
.row-content { min-width: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.row-content > input, .row-content > textarea { font-size: 13.5px; padding: 9px 11px; border-radius: 6px; border-color: #d9e0d3; }
.row-content .wide-control { width: min(100%, 680px); }
.row-content > textarea { width: 100%; height: 84px; flex: 1; min-width: 200px; }
.exact-control { align-self: flex-start; padding-top: 8px; min-width: 150px; flex-direction: column; align-items: flex-start !important; gap: 10px !important; display: flex; }
.quick-topics { width: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.quick-topics button { border: 1px solid #e1e7e3; background: #f4f6f4; border-radius: 13px; padding: 3px 10px; font-size: 12.5px; color: #617253; display: inline-flex; gap: 4px; align-items: center; }
.quick-topics button:hover { border-color: #b5c6bc; }
.quick-topics .profile-chip { background: #e8f1e0; border-color: #c9d8cf; font-weight: 600; }
.quick-topics .tpl svg { width: 10px; height: 10px; }
.inline-hint { font-size: 12.5px; color: #677060; line-height: 1.7; }
.check-grid { display: grid; gap: 12px 17px; width: 100%; grid-template-columns: repeat(4, minmax(130px, max-content)); }
.amount-range, .date-range { display: flex; align-items: center; gap: 8px; color: #666f5e; flex-wrap: wrap; }
.amount-range input, .date-range input { width: 150px; padding: 8px; font-size: 13.5px; border-radius: 5px; }
.currency-label { color: #5e724f; font-size: 13.5px; }
.segmented { display: inline-flex; border: 1px solid #dce5d2; border-radius: 6px; overflow: hidden; max-width: 100%; flex-wrap: wrap; }
.segmented button { border: 0; border-right: 1px solid #e3e9da; background: #fff; color: #627158; font-size: 12px; padding: 8px 11px; white-space: nowrap; }
.segmented button:last-child { border-right: 0; }
.segmented button.selected { background: #24573f; color: #fff; }
.search-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 18px 0; background: #fff; position: sticky; bottom: 0; z-index: 2; border-top: 1px solid #e6ebdf; margin-top: -1px; }
.search-actions .btn.primary { min-width: 120px; }
.search-actions .reset-action { margin-left: auto; color: #5f6b66; }
.search-actions select { font-size: 12px; padding: 7px 9px; max-width: 190px; border-radius: 6px; background: #f9faf9; }
.search-availability { margin: 0 -30px; padding: 12px 30px 16px; background: #fafcf7; border-radius: 0 0 15px 15px; border-top: 1px solid #e6ece8; font-size: 12.5px; color: #5f6b66; line-height: 1.8; }
.search-availability::before { content: ''; display: inline-block; width: 5px; height: 5px; background: #a9b3ad; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
/* The full workspace keeps the common filters in the collapsed form. Guests get a shorter form. */
.registry-search.collapsed .filter-row:not(.keyword-row):not(.core), .registry-search.collapsed .search-availability, .registry-search.collapsed .full-hint { display: none; }
.compact-search .connection-panel,
.compact-search .registry-caption,
.compact-search .filter-row:not(.keyword-row):not(.region-row),
.compact-search :is(.quick-topics, .exact-control, #saveTpl, #tplSelect, #resetFilters) { display: none; }
.compact-search .registry-search { padding: 14px 18px 0; margin-bottom: 14px; }
.compact-search .registry-heading { gap: 12px; margin-bottom: 10px; }
.compact-search .registry-heading h2 { font-size: 21px; }
.compact-search .keyword-row { display: block; padding: 0 0 8px; }
.compact-search .keyword-row > .row-label { padding: 0; margin-bottom: 4px; }
.compact-search .keyword-row textarea { height: 48px; min-width: 0; }
.compact-search .region-row { display: flex; gap: 12px; padding: 7px 0; }
.compact-search .region-row .row-label { margin: 0; }
.compact-search .search-actions { position: static; gap: 12px; padding: 10px 0; }
.compact-search .search-scope { padding: 8px 12px; margin-bottom: 12px; }
.quick-topics a.profile-chip { border: 1px solid #c9d8cf; border-radius: 13px; padding: 3px 10px; font-size: 12.5px; text-decoration: none; color: #3e5a35; }

/* ---------- results + cards */
.results-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 17px; min-height: 44px; flex-wrap: wrap; }
.results-toolbar h2 { font-size: 17px; font-weight: 600; letter-spacing: -.4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.results-toolbar h2 .count { font-size: 13.5px; color: #5f6b66; background: #e6ece8; border-radius: 6px; padding: 2px 6px; }
.results-toolbar p { font-size: 12.5px; color: #686f61; margin-top: 4px; line-height: 1.8; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.toolbar-actions select { font-size: 12px; background: transparent; border-color: #dce2d4; padding: 8px; max-width: 190px; }
.rows { display: flex; flex-direction: column; }
.tender-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 20px; margin-bottom: 13px; transition: box-shadow .18s, border-color .18s; }
.tender-card:hover { border-color: #b7cbb0; box-shadow: 0 7px 24px #234a2710; }
.tender-card.seen .card-title { color: #5f6f63; }
.tender-card.is-hidden { opacity: .55; }
.tender-card.placeholder { height: 200px; background: linear-gradient(90deg, #fff 25%, #f6f8f2 50%, #fff 75%) 0 0 / 200% 100%; animation: shimmer 1.3s infinite linear; }
.card-top { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.card-top .favorite { margin-left: auto; }
.card-top .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tender-card { min-width: 0; overflow: hidden; }
.favorite { border: 0; background: transparent; color: #4f6a5c; font-size: 22px; padding: 0 4px; line-height: 1.2; }
.favorite.selected { color: #866820; }
.tender-card h3 { font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: -.2px; margin: 13px 0 7px; overflow-wrap: anywhere; }
.card-title { color: var(--ink); text-decoration: none; }
.card-title:hover { color: #3e7942; }
.card-customer { font-size: 12px; color: #676e60; overflow-wrap: anywhere; }
.card-values { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 10px; border-top: 1px solid #eaeeeb; border-bottom: 1px solid #eaeeeb; padding: 15px 0; margin: 16px 0; }
.card-values small { display: block; font-size: 11px; color: #606a65; margin-bottom: 4px; }
.card-values strong { font-size: 14.5px; font-weight: 550; line-height: 1.65; }
.card-values .price { font-size: 20px; letter-spacing: -.6px; }
.card-checks { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.card-checks span { font-size: 11px; color: #66705a; }
.card-checks span + span::before { content: '·'; margin-right: 7px; }
.saved-note { font-size: 13.5px; color: #5f6b66; background: #f4f6f4; padding: 9px 11px; border-radius: 6px; white-space: pre-wrap; margin: 0 0 13px; max-height: 100px; overflow: auto; overflow-wrap: anywhere; }
.card-bottom { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.card-bottom .check { margin: 0; font-size: 12px; }
.card-bottom .text-button { font-size: 12px; }
.card-bottom .text-button.muted { color: #5f6b66; }
.card-bottom a.source { font-size: 12px; color: var(--green); margin-left: auto; text-decoration: none; border-bottom: 1px solid #cbd8bf; }
.card-bottom a.source + a.source { margin-left: 0; }
.status-select { width: auto; padding: 5px 8px; font-size: 12px; border-radius: 6px; }
.rows.compact .tender-card { padding: 16px; margin-bottom: 10px; }
.rows.compact .tender-card h3 { font-size: 15.5px; margin-top: 9px; }
.rows.compact .card-values { margin: 12px 0; padding: 11px 0; }
.rows.compact .card-values .price { font-size: 17px; }
.more { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 0 18px; color: var(--muted); font-size: 13.5px; }

.notice { display: flex; gap: 12px; padding: 15px; border-radius: 9px; margin-bottom: 18px; font-size: 13.5px; flex-wrap: wrap; }
.notice.warn { background: #fff1df; border: 1px solid #ecd0a3; color: #805c26; }
.notice.error { background: #fff1df; border: 1px solid #ecd0a3; color: #805c26; flex-direction: column; gap: 7px; }
.notice.info { background: #f0f5e7; border: 1px solid #dfe8d2; color: var(--ink-2); }
.notice.info > svg { color: var(--olive); margin-top: 2px; }
.notice-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.empty { border: 1px dashed #cbd5c1; background: linear-gradient(155deg, #fff, #f1f5e9); border-radius: 16px; text-align: center; padding: 46px 24px 37px; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-mark { display: grid; place-items: center; width: 64px; height: 70px; background: #e9f1da; border: 1px solid #d5e2be; border-radius: 15px; color: #4a6a58; margin-bottom: 21px; box-shadow: 6px 6px 0 #f2f5e9; transform: rotate(-4deg); }
.empty-mark svg { width: 26px; height: 26px; }
.empty h3 { font-size: 23px; letter-spacing: -.7px; font-weight: 550; }
.empty p { font-size: 13.5px; color: #66705d; max-width: 400px; line-height: 1.8; margin: 12px auto 20px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- stats / tabs */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 23px; }
.tile { background: #fff; border: 1px solid var(--line); padding: 18px 20px; border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.tile > span { font-size: 13.5px; color: #63705f; }
.tile strong { font-size: 28px; line-height: 1.3; margin: 7px 0 5px; font-weight: 500; letter-spacing: -1px; overflow-wrap: anywhere; }
.tile small { font-size: 12.5px; color: #696f64; }
.tile.main { background: #eef3ef; border-color: #dce7c8; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; flex-wrap: wrap; }
.tab { padding: 7px 12px; border: 1px solid #e1e7e3; border-radius: 15px; background: #f4f6f4; color: #5d734d; font-size: 13.5px; font-weight: 550; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tab b { font-size: 12.5px; background: #e6ece8; border-radius: 6px; padding: 0 5px; color: #5f6b66; }
.tab.on { background: var(--green); border-color: var(--green); color: #fff; }
.tab.on b { background: #ffffff26; color: #fff; }
.list-tools { margin-bottom: 16px; }
.search-input { display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dbe3d3; border-radius: 8px; background: #f9faf9; color: #627157; max-width: 380px; }
.search-input input { border: 0; background: none; padding: 9px 0; outline: none !important; width: 100%; }

/* ---------- tender page */
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--green); text-decoration: none; }
.crumbs svg { width: 13px; height: 13px; }
.tender-loading { padding: 60px; text-align: center; color: var(--muted); font-size: 13.5px; }
.tender-head { padding: 26px 28px 24px; margin-bottom: 20px; border-radius: 16px; }
.tender-head h1 { font-size: clamp(21px, 2vw, 27px); letter-spacing: -.7px; line-height: 1.35; margin: 14px 0 9px; max-width: 1000px; }
.tender-state { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13.5px; }
.tender-state .deadline { font-weight: 650; }
.countdown { font-size: 12.5px; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.countdown.ok { color: var(--ok); background: var(--ok-soft); } .countdown.warn { color: var(--warn); background: var(--warn-soft); } .countdown.hot { color: var(--hot); background: var(--hot-soft); }
.tender-meta { color: #676e60; font-size: 13px; }
.tender-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }
.tender-head .tiles { margin: 0; }
.tender-head .tile strong { font-size: 21px; }
.tender-head .tile.main strong { font-size: 25px; color: #24543b; }
.participation { border-top: 1px solid var(--line); padding-top: 18px; }
.participation h2 { font-size: 19px; margin: 0 0 13px; }
.participation .tile { min-width: 0; }
.participation .tile strong { font-size: clamp(15px, 1.5vw, 20px); overflow-wrap: anywhere; }
.participation .tile.main strong { font-size: clamp(17px, 1.7vw, 22px); }
.participation-terms { margin: 15px 0 0; }
.participation-terms h3 { font-size: 15.5px; margin: 0 0 6px; }
.participation-terms p, .participation-terms ul { margin: 5px 0; }
.participation .tender-actions { margin: 14px 0 0; }
#docs, #reqs { scroll-margin-top: 18px; }
.tender-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.tender-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tender-aside { position: sticky; top: 20px; }
.block { padding: 22px 24px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.block-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.4px; display: flex; align-items: center; gap: 8px; }
.block h3 { font-size: 13.5px; font-weight: 650; color: #53674d; margin: 16px 0 8px; }
.block h3:first-child { margin-top: 0; }
.block-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; font-size: 13.5px; }
.kvs { margin: 0; }
.kv { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid #e7ece3; font-size: 13.5px; line-height: 1.75; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.verdict { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 11px; margin-bottom: 14px; }
.verdict.good { background: #eef3ef; } .verdict.maybe { background: #fff4e2; } .verdict.bad { background: #f9ebe6; }
.verdict strong { font-size: 17px; font-weight: 600; }
.verdict p { margin-top: 3px; font-size: 12px; }
.score { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #fff; flex: none; line-height: 1; border: 1px solid var(--line); }
.score b { font-size: 21px; font-weight: 650; } .score span { font-size: 10px; color: var(--muted); }
.verdict.good .score b { color: var(--ok); } .verdict.maybe .score b { color: var(--warn); } .verdict.bad .score b { color: var(--hot); }
.estimate-lock { display: grid; place-items: center; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--soft); }
.estimate-preview, .estimate-prompt { grid-area: 1 / 1; }
.estimate-preview { align-self: stretch; width: 100%; display: flex; align-items: center; gap: 18px; filter: blur(5px); pointer-events: none; }
.estimate-preview > span { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--line-2); }
.estimate-preview > div { flex: 1; display: grid; gap: 12px; }
.estimate-preview i { display: block; width: 88%; height: 9px; border-radius: 8px; background: var(--line-2); }
.estimate-preview i:nth-child(2) { width: 64%; }
.estimate-preview i:nth-child(3) { width: 76%; }
.estimate-prompt { position: relative; width: min(100%, 380px); padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-align: center; }
.estimate-prompt p { margin: 4px 0 10px; }
@media (max-width: 520px) {
  .estimate-lock { grid-template-rows: 40px auto; gap: 12px; }
  .estimate-preview > span { width: 38px; height: 38px; }
  .estimate-prompt { grid-area: 2 / 1; }
}
.checks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checks-list li { position: relative; padding-left: 25px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.checks-list li::before { position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.checks-list .pro::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.checks-list .con::before { content: "!"; background: var(--hot-soft); color: var(--hot); }
.checks-list .note::before { content: "i"; background: #eef2e6; color: #4f6a5c; font-style: italic; }
.doc-group + .doc-group { margin-top: 16px; }
.docs { list-style: none; padding: 0; margin: 0; }
.docs a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 6px; border-radius: 7px; color: var(--ink); text-decoration: none; }
.docs a:hover { background: var(--soft-2); }
.docs a:hover .doc-name { color: var(--green); text-decoration: underline; }
.file { display: grid; place-items: center; height: 24px; border-radius: 5px; background: #e7eff5; color: #3d6a8a; font-size: 12px; font-weight: 800; letter-spacing: .03em; }
.file.pdf { background: #f9e8e3; color: #9b4b3a; } .file.xls, .file.xlsx { background: #e8f4dd; color: #507830; } .file.zip, .file.rar, .file.7z { background: #fff0d8; color: #8e651a; }
.doc-name { overflow-wrap: anywhere; font-size: 13.5px; }
.doc-date { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.doc-group.old { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.doc-group.old summary { cursor: pointer; color: #64705a; font-size: 13.5px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #eff3e7; font-weight: 550; text-align: left; padding: 11px 12px; vertical-align: bottom; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .code { white-space: nowrap; }
.table.compare th { min-width: 200px; }
.table.compare th a { display: block; margin-bottom: 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
.table.compare td:first-child { font-weight: 600; color: #627058; min-width: 140px; }
.table.compare td.best { background: #eef3ef; color: var(--ok); font-weight: 600; }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.source-note { font-size: 12.5px; color: #5f6b66; padding: 0 4px; line-height: 1.8; }
.work { padding: 18px; display: flex; flex-direction: column; gap: 13px; border-radius: 16px; }
.work-top { display: flex; gap: 8px; }
.work-top .icon-btn { width: 40px; height: 40px; border: 1px solid #c9d6cf; }
.calc { font-size: 13.5px; color: var(--ink-2); background: #f4f6f4; border-radius: 7px; padding: 9px 11px; }
.checklist { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.checklist-head { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 650; color: #5a6862; }
.saved-at { text-align: center; font-size: 12.5px; }
.tpl + .tpl { margin-top: 14px; }
.about p + p, .about ul { margin-top: 10px; }
.about p { font-size: 13.5px; color: #62715a; line-height: 1.9; }

/* ---------- dialogs & toast */
.dialog { border: 1px solid #d8dfd1; border-radius: 18px; padding: 0; width: min(680px, calc(100vw - 32px)); max-height: 90vh; color: var(--ink); box-shadow: 0 30px 100px #14271f33; }
.dialog.small { width: min(440px, calc(100vw - 32px)); }
.dialog::backdrop { background: #18382e80; backdrop-filter: blur(3px); }
.dialog-body { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.dialog-body header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-body h2 { font-size: 23px; letter-spacing: -.5px; font-weight: 600; }
.dialog-body > p { font-size: 13.5px; line-height: 1.8; }
.dialog .icon-btn { background: #eff3e9; border-radius: 50%; width: 30px; height: 30px; font-size: 21px; color: var(--ink); }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#manualFields { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); display: flex; align-items: center; gap: 15px; padding: 13px 20px; background: #183f34; color: #fff; border-radius: 11px; box-shadow: 0 8px 30px #0002; z-index: 30; max-width: calc(100vw - 30px); font-size: 13.5px; }
.toast button { background: #d5eea6; border: 0; color: #25452c; border-radius: 5px; padding: 4px 8px; white-space: nowrap; }

/* ---------- responsive (breakpoints of version 1) */
@media (max-width: 1190px) {
  .sidebar { width: 215px; flex-basis: 215px; padding: 26px 15px; }
  .brand { font-size: 22px; }
  main { padding: 28px 25px 0; } .topbar { padding: 0 25px; } .foot { margin: 37px 25px 0; }
  .filter-row { grid-template-columns: 130px minmax(0, 1fr); gap: 19px; }
  .registry-search { padding: 23px 22px 0; } .search-availability { margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
  .check-grid { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
  .card-values { grid-template-columns: 1fr 1fr; } .card-values > div:first-child { grid-column: 1 / -1; }
  .tender-grid { grid-template-columns: 1fr; } .tender-aside { position: static; order: -1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .sidebar { width: 180px; flex-basis: 180px; padding: 24px 12px; }
  .brand { font-size: 19px; letter-spacing: -1px; } .brand-icon { width: 30px; height: 30px; font-size: 21px; }
  .nav { gap: 6px; font-size: 13.5px; padding: 10px; } .profile-icon { display: none; }
  .filter-row { grid-template-columns: 110px minmax(0, 1fr); gap: 16px; }
  .check-grid { grid-template-columns: repeat(2, minmax(95px, 1fr)); }
  .kv { grid-template-columns: 150px minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 18px 17px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-label, .sidebar-section, .sidebar-bottom { display: none; }
  .navlist { flex-direction: row; gap: 5px; margin-top: 16px; overflow-x: auto; }
  .nav { flex-shrink: 0; font-size: 13.5px; padding: 9px 11px; margin: 0; } .nav > span { display: none; } .nav b { margin-left: 4px; font-size: 12px; }
  .topbar { height: 49px; padding: 0 18px; font-size: 12.5px; }
  main { padding: 22px 16px 0; } .foot { display: block; margin: 30px 16px 0; line-height: 1.8; } .foot span { display: block; }
  h1 { font-size: 27px; letter-spacing: -1px; }
  .connection-panel { flex-wrap: wrap; padding: 16px; gap: 12px; } .connection-orb { width: 38px; height: 38px; border-radius: 10px; } .connection-copy { flex-basis: 70%; }
  .registry-search { padding: 18px 15px 0; border-radius: 12px; } .search-availability { margin: 0 -15px; padding: 11px 15px 15px; }
  .registry-heading h2 { font-size: 25px; } .registry-caption { display: none; }
  .filter-row { display: block; } .row-label { display: block; margin-bottom: 9px; font-size: 13.5px; } .keyword-row > .row-label { padding-top: 0; }
  .row-content > textarea { min-width: 100%; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .amount-range input, .date-range input { width: calc(50% - 14px); }
  .search-actions { gap: 10px; } .search-actions .reset-action { margin-left: 0; }
  .card-values { grid-template-columns: 1fr 1fr; } .tender-card { padding: 16px; } .tender-card h3 { font-size: 16px; } .card-bottom a.source { margin-left: 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 9px; } .tile { padding: 14px; } .tile strong { font-size: 22px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .tender-head { padding: 18px; } .block { padding: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .docs a { grid-template-columns: 32px minmax(0, 1fr); } .doc-date { grid-column: 2; }
  .dialog-body { padding: 21px 17px; }
}
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .foot, .tender-actions, .tender-aside, .block-actions, .crumbs, .card-bottom, #similar, .toast { display: none !important; }
  .shell { display: block; } main { padding: 0; max-width: none; }
  .card, .tender-head { break-inside: avoid; } .tender-grid { display: block; }
}

/* official EIS data service */
.token-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 10px; }
.token-form input { flex: 1; min-width: 220px; max-width: 460px; }
#official ol.plain { gap: 9px; margin: 12px 0; }
#official q { display: block; margin: 6px 0; padding: 9px 11px; background: #f4f6f4; border-radius: 7px; color: var(--ink-2); quotes: none; }

/* industry picker (as in Kontur: section -> subsections) */
.picker-trigger { border: 0; background: transparent; color: #3d7456; padding: 3px 0; font-size: 13.5px; text-align: left; max-width: 100%; line-height: 1.7; }
.picker-trigger::after { content: '⌄'; margin-left: 9px; color: #5f6b66; }
.picker-trigger.has-selection { font-weight: 600; }
.industry-dialog { width: min(760px, calc(100vw - 32px)); }
.ind-list { max-height: 56vh; overflow: auto; border: 1px solid #e2e9d9; border-radius: 9px; background: #fcfdf9; }
.ind-section { border-bottom: 1px solid #eaeeeb; }
.ind-section summary { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; }
.ind-section summary::-webkit-details-marker { display: none; }
.ind-section summary::before { content: '›'; color: #5f6b66; width: 10px; transition: transform .15s; }
.ind-section[open] summary::before { transform: rotate(90deg); }
.ind-section summary .check { font-weight: 600; font-size: 13.5px; }
.ind-section summary b { margin-left: auto; font-size: 12.5px; background: var(--green); color: #fff; border-radius: 6px; padding: 0 6px; }
.ind-section summary b:empty { display: none; }
.ind-subs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; padding: 4px 16px 14px 36px; }
.ind-subs .check { align-items: flex-start; font-size: 13px; }
.ind-subs .check input { margin-top: 2px; }
@media (max-width: 640px) { .ind-subs { grid-template-columns: 1fr; padding-left: 24px; } }

.search-pager{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding:20px 0;font-size: 13.5px;color:var(--muted)}.search-pager>div{display:flex;align-items:center;gap:15px}.search-pager b{font-weight:500;min-width:40px;text-align:center}.search-scope{border:1px solid var(--line);border-radius:11px;padding:15px 19px;margin:0 0 18px;background:#f3f7ee;font-size: 13.5px;color:#5f6b66}.search-scope summary{cursor:pointer;color:var(--green)}.search-scope p{font-size: 13.5px;line-height:1.85;margin-top:12px}.source-count-controls{display:flex;align-items:end;gap:15px;flex-wrap:wrap;margin-top:15px}.source-count-controls label{display:grid;gap:6px;font-size: 12.5px;max-width:420px;flex:1}.source-count-controls select{width:100%;font-size: 13.5px}.search-scope li{margin-top:7px;line-height:1.75}.refresh-search{margin-bottom:17px} @media(max-width:650px){.search-pager{justify-content:center}.source-count-controls{align-items:stretch;flex-direction:column}.source-count-controls label{max-width:none}.search-pager>span{width:100%;text-align:center}}

/* Connected source coverage */
.coverage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 28px}.coverage-grid article{display:flex;align-items:center;gap:12px;padding:18px;border:1px solid var(--line,#e3e8e5);border-radius:14px;background:var(--surface,#fff)}.coverage-grid strong{font-size:15.5px}.coverage-grid p{font-size:13.5px;line-height:1.5;color:var(--muted,#65736c);margin:5px 0 0}.source-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;font-weight:700;flex-shrink:0}.source-mark.government{background:#e6efe9;color:#276443}.source-mark.commercial{background:#e9edfa;color:#4f5da0}.source-mark.small-source{background:#fff0d9;color:#906415}.search-scope li{margin:7px 0}@media(max-width:850px){.coverage-grid{grid-template-columns:1fr}}
/* source tiles: which trade types are switched on */
.coverage-grid article.on { border-color: #8fae9c; background: #f3f8ee; box-shadow: inset 0 0 0 1px #8fae9c; }
.coverage-grid article:not(.on) { opacity: .7; }
.coverage-grid article .text-button { display: inline-block; margin-top: 6px; }
.coverage-grid .coverage-all { grid-column: 1 / -1; justify-self: start; }

/* ---------- search form readability pass (larger, darker type; one grid) */
.registry-search .row-label { font-size: 14.5px; font-weight: 600; color: #34463a; }
.registry-search .check { font-size: 14.5px; color: #2f4034; }
.registry-search input[type=checkbox] { width: 16px; height: 16px; }
.registry-search .inline-hint { font-size: 13.5px; color: #5f6b66; line-height: 1.6; }
.registry-search .full-hint { flex-basis: 100%; }
.registry-search input, .registry-search select, .registry-search textarea { font-size: 14.5px; }
.registry-caption { font-size: 14.5px; color: #5f6b66; }
.filter-row { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; padding: 16px 0; }
.row-content { gap: 12px 16px; }
.row-content > textarea { font-size: 14.5px; line-height: 1.6; }
.row-content .wide-control { width: min(100%, 640px); }
.amount-range input, .date-range input { width: 160px; font-size: 14.5px; padding: 9px 10px; border-radius: 6px; }
.check-grid { grid-template-columns: repeat(auto-fit, minmax(min(138px, 100%), 1fr)); gap: 12px 18px; }
.picker-trigger { font-size: 14.5px; }
.quick-topics button { font-size: 13.5px; padding: 4px 11px; }
.segmented button { font-size: 13.5px; padding: 8px 12px; }
.search-availability { font-size: 13.5px; }
.suggest { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.suggest:empty { display: none; }
.suggest button { border: 1px solid #e3e8dd; background: #f4f6f1; border-radius: 13px; padding: 4px 11px; font-size: 13.5px; color: #55664f; }
.suggest button:hover { border-color: #b5c6bc; color: var(--green); }
.suggest .more-suggest { background: none; border-color: transparent; color: var(--green); font-weight: 600; }
.query-assistant { width: 100%; padding: 10px 12px; margin: 5px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.query-assistant-title { margin: 0 0 7px; color: var(--muted); font-size: 13.5px; font-weight: 650; }
.query-suggestion { display: inline-flex; max-width: 100%; }
.query-suggestion [data-add] { flex: 0 0 28px; border-radius: 13px 0 0 13px; padding-inline: 0; font-size: 16px; font-weight: 650; }
.query-suggestion [data-pick] { border-radius: 0 13px 13px 0; border-inline-start: 0; }
.query-suggestion [data-add]:disabled { opacity: .45; }
.query-suggestion-count { display: inline-block; margin-inline-start: 6px; padding: 0 4px; border-radius: 7px; background: var(--soft); color: var(--ink); font-size: 11.5px; }
.query-assistant button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.ind-subs.list-subs { padding: 12px 16px; }
@media (max-width: 1200px) { .filter-row { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; } .check-grid { grid-template-columns: repeat(2, minmax(130px, max-content)); } }
@media (max-width: 640px) { .registry-search .row-label { font-size: 13.5px; } .amount-range input, .date-range input { width: calc(50% - 14px); } .check-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- denser form + "?" hints */
.filter-row { padding: 10px 0; gap: 24px; }
.keyword-row { padding-top: 0; }
.registry-search .row-label { display: flex; align-items: center; gap: 6px; }
.help { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid #aebba4; color: #64715c; font-size: 12.5px; font-weight: 600; cursor: help; flex: none; line-height: 1; }
.help:hover, .help:focus { border-color: var(--green); color: var(--green); outline: none; }
.help::after { content: attr(data-tip); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 280px; padding: 10px 12px; border-radius: 8px; background: #183f34; color: #fff; font-size: 13.5px; font-weight: 400; line-height: 1.5; box-shadow: 0 8px 24px #0003; z-index: 20; opacity: 0; pointer-events: none; transition: opacity .12s; text-align: left; white-space: normal; }
.help:hover::after, .help:focus::after { opacity: 1; }
.customer-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 640px); }
.customer-controls input { width: 100%; font-size: 14.5px; padding: 9px 10px; border-radius: 6px; }
@media (max-width: 640px) { .customer-controls { grid-template-columns: 1fr; } .help::after { left: auto; right: -10px; top: 22px; transform: none; width: 240px; } }

/* ---------- notifications, templates empty state, instructions */
.notify-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.notify-grid h2 { font-size: 17px; font-weight: 600; letter-spacing: -.3px; margin-bottom: 14px; }
.notify-side { background: #eef3e8; border-color: #dce6d2; }
.notify-side.attention { box-shadow: inset 0 0 0 2px #c9dcae; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.switch-line { font-weight: 600; margin-bottom: 12px; }
.sub-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.sub-list li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--soft-2); }
.inline-field { flex-direction: row; align-items: center; gap: 10px; margin: 6px 0 10px; } .inline-field select { width: auto; }
.tg-steps { padding-left: 18px; gap: 8px; font-size: 13.5px; }
.tpl-empty .tpl-tips { text-align: left; max-width: 520px; margin: 10px auto 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: #4d5e48; line-height: 1.6; }
.tpl-empty p { margin: 10px auto 18px; }
.sub-toggle { font-size: 13.5px; margin-right: 6px; }
.tpl-form .check-grid { grid-template-columns: repeat(2, max-content); }
.help-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.help-toc { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.help-toc a { padding: 8px 10px; border-radius: 7px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.help-toc a:hover { background: var(--soft-2); } .help-toc a.on { background: #e8f0eb; color: var(--green); font-weight: 600; }
.help-body { display: flex; flex-direction: column; gap: 12px; }
.help-article summary { cursor: pointer; list-style: none; } .help-article summary::-webkit-details-marker { display: none; }
.help-article summary h2 { font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; } .help-article summary h2::after { content: '⌄'; color: #5f6b66; }
.help-article[open] { border-inline-start: 4px solid var(--section-rule); }
.help-article[open] summary h2 { color: var(--green); }
.help-article[open] summary h2::after { content: '⌃'; }
.help-text { margin-top: 12px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); } .help-text p + p, .help-text ul, .help-text ol { margin-top: 10px; } .help-text ul, .help-text ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 920px) { .notify-grid, .help-grid { grid-template-columns: 1fr; } .help-toc { position: static; } }
/* ---------- accessibility: keyboard focus, skip link, readable footer */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible, input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 3px solid #2f6f55; outline-offset: 2px; border-radius: 6px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #2f6f55; outline-offset: 0; }
/* The page area gets focus after each screen change (for screen readers); it is not a control, so no frame. */
main:focus, main:focus-visible, [tabindex="-1"]:focus { outline: none !important; }
.notice.info > svg { color: #4a6a58; }
.help:focus-visible { outline: 3px solid #2f6f55; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.foot { display: block; font-size: 13.5px; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.foot-links a, .foot-links .text-button { color: #555d52; font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; padding: 0; background: none; border: 0; }
.foot-links a:hover, .foot-links .text-button:hover { color: var(--green); }
.foot-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- cookie banner: two equal choices */
.cookie-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); z-index: 60; display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; box-shadow: 0 10px 30px #0002; }
.cookie-banner strong { font-size: 14.5px; } .cookie-banner p { margin-top: 3px; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { min-width: 150px; justify-content: center; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; align-items: stretch; } .cookie-actions { flex-direction: column; } }

/* ---------- legal documents */
.legal-text h3 { font-size: 15.5px; font-weight: 650; margin-top: 18px; color: var(--ink); }
.legal-text h3:first-child { margin-top: 0; }
.req-table th { text-align: left; width: 200px; color: var(--muted); font-weight: 500; }
.req-table th, .req-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.wipe-form { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.wipe-form fieldset { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; margin: 0; }
.wipe-form legend { font-weight: 600; padding: 0 6px; }
.wipe-form .field { max-width: 360px; }
.neg-btn { background: var(--hot) !important; border-color: var(--hot) !important; color: #fff !important; }
.consent-check { flex-basis: 100%; font-size: 13px; line-height: 1.5; align-items: flex-start; margin-top: 8px; }
.consent-check input { margin-top: 2px; }

/* ---------- personal account (web version) */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.account-grid h2 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.account-grid h3 { font-size: 14.5px; font-weight: 600; margin: 16px 0 6px; }
.access-line { font-size: 15.5px; margin-bottom: 12px; } .access-line.ok b { color: var(--green); }
.plan-box { display: flex; gap: 16px; justify-content: space-between; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--soft-2); }
.plan-price { font-size: 24px; font-weight: 700; color: var(--green); white-space: nowrap; }
.ref-link { display: flex; gap: 8px; margin: 12px 0; } .ref-link input { flex: 1; font-size: 14.5px; }
.ref-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.ref-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.ref-stats span { font-size: 13.5px; color: var(--muted); } .ref-stats strong { font-size: 17px; }
.payout-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; align-items: flex-start; } .payout-form .field { width: 100%; }
.auth-card { max-width: 460px; } .auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.auth-card .tabs a { text-decoration: none; }
a.private-pill { text-decoration: none; }
@media (max-width: 920px) { .account-grid { grid-template-columns: 1fr; } .ref-stats { grid-template-columns: repeat(2, 1fr); } }
.contact-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; background: var(--soft-2); }
.contact-box h3 { margin: 0 0 6px; }
.contact-box p { margin: 4px 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle { font-size: 17px; line-height: 1; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.account-bar { display: flex; align-items: center; gap: 8px; }
.pass-wrap { display: flex; align-items: center; gap: 8px; }
.pass-wrap input { flex: 1; }
.form-error { color: var(--hot); background: var(--hot-soft); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }

/* ---------- AI analysis on the purchase card */
.tag.neg-tag { background: var(--hot-soft); color: var(--hot); }
.ai-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-tags .tag { font-size: 12.5px; padding: 4px 9px; }
.ai-summary { font-size: 16px; font-weight: 500; color: var(--ink); }
.ai-wait { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; }
.ai-wait p { margin: 4px 0 0; }
.ai-risks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.ai-risks li { border-left: 3px solid var(--line-2); padding: 4px 0 4px 12px; }
.ai-risks li.high { border-left-color: var(--hot); }
.ai-risks li.medium { border-left-color: var(--warn); }
.ai-risks blockquote { margin: 6px 0 0; padding: 6px 10px; background: var(--soft-2); border-radius: 6px; font-size: 13.5px; color: var(--ink-2); }
.ai-risks cite { display: block; margin-top: 3px; font-style: normal; color: var(--muted); font-size: 12.5px; }
#ai h3 { font-size: 14.5px; margin: 14px 0 6px; }
.ai-provider { display: grid; gap: 6px; margin: 10px 0 4px; }
.ai-risks blockquote.retold { background: transparent; border: 1px dashed var(--line-2); font-style: italic; }
/* Account columns flow independently so a tall referral card does not leave a blank row. */
.account-column{display:flex;flex-direction:column;gap:16px;min-width:0}.access-balance{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;margin:7px 0 8px;border-bottom:1px solid var(--line)}.access-balance strong{font-size:23px;letter-spacing:-.03em;color:var(--ink)}.access-balance span{font-size:11px;color:var(--muted);max-width:150px;text-align:right}.workspace-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.workspace-stats a{display:grid;gap:4px;padding:16px;background:var(--soft);border:1px solid var(--line);border-radius:12px;text-decoration:none}.workspace-stats strong{font-size:28px;line-height:1.1;color:var(--ink)}.workspace-stats span{font-size:11px;color:var(--muted)}.workspace-profile{display:flex;gap:14px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:13px}.workspace-profile>span{font-size:27px;color:var(--green-2)}.workspace-profile p{font-size:12px;color:var(--muted);margin:6px 0 8px}.workspace-profile a{font-size:12px;font-weight:600}.workspace-links{display:grid;margin:10px 0 16px}.workspace-links a{display:flex;justify-content:space-between;padding:10px 0;font-size:13px;text-decoration:none}.workspace-links a:hover{text-decoration:underline}.upgrade-panel{border-color:#9880c36b;margin:22px 0;background-image:radial-gradient(ellipse at right top,#9071dc0e,transparent 60%)}.upgrade-panel h2{margin:7px 0 12px}.upgrade-panel p{margin:12px 0;max-width:880px}.upgrade-breakdown{max-width:650px;margin:20px 0;border-top:1px solid var(--line)}.upgrade-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:12px 0;border-bottom:1px solid var(--line)}.upgrade-breakdown dt{font-size:13px;color:var(--muted)}.upgrade-breakdown dd{font-size:17px;font-weight:650;margin:0;white-space:nowrap}.upgrade-breakdown .upgrade-total dt{font-weight:650;color:var(--ink)}.upgrade-total dd{font-size:27px;color:var(--green-2)}.pricing-next-label{margin:30px 0 -20px;font-size:13px;font-weight:650;color:var(--muted)}
@media(max-width:600px){.access-balance{align-items:start;flex-direction:column;gap:5px}.access-balance span{text-align:left;max-width:none}.upgrade-breakdown>div{gap:12px}.upgrade-breakdown dt{font-size:12px}.upgrade-breakdown dd{font-size:15px}.upgrade-total dd{font-size:22px}}
