/* ==========================================================================
   Визы ОАЭ — дизайн-система CRM
   Мобильный — основной сценарий. Касание ≥ 44 px, шаг сетки 4 px.
   Компоненты: .btn .chip .tile .app-card .card .list-row .field .seg .meter
               .stepper .notice .screen-head .actionbar .sheet .tabbar
   ========================================================================== */

:root {
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --ink: #12161C;
  --ink-2: #3A414D;
  --muted: #5B6472;
  --line: #E3E6EB;
  --line-strong: #D5D9E0;
  --accent: #2747D9;
  --accent-ink: #1A33A8;
  --accent-bg: #EBEFFD;
  --ok: #1A7F45;    --ok-bg: #E7F5EC;
  --warn: #A15C00;  --warn-bg: #FFF4E0;  --warn-ink: #6E3F00;
  --bad: #C2261E;   --bad-bg: #FDECEA;
  --r-field: 10px;
  --r-card: 14px;
  --r-sheet: 22px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --tabbar-h: 72px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--font); background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1 { font-size: 24px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.mono { font-family: var(--mono); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.total { font-weight: 600; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ---------- каркас ---------- */
.topbar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 16px 16px calc(var(--tabbar-h) + 24px); }
.page--narrow { max-width: 640px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 4px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
  font-size: 11px; font-weight: 500; color: var(--muted); position: relative; }
.tabbar a.is-active { color: var(--accent); }
.tabbar .tabbar-plus { justify-content: center; }
.tabbar .tabbar-plus span { width: 48px; height: 48px; border-radius: 16px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; }
.tabbar .dot { position: absolute; top: 0; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }

@media (min-width: 900px) {
  .tabbar { display: none; }
  .page { padding: 28px 32px 48px; }
  .topbar { display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 24px;
    background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar .brand { font-weight: 600; font-size: 16px; color: var(--ink); margin-right: 16px; }
  .topbar nav { display: flex; gap: 4px; }
  .topbar nav a { height: 40px; padding: 0 12px; border-radius: var(--r-field); display: flex; align-items: center; color: var(--ink); font-size: 15px; }
  .topbar nav a.is-active { background: var(--accent-bg); color: var(--accent-ink); font-weight: 600; }
  .topbar .spacer { flex: 1; }
  .topbar form input { width: 260px; height: 40px; }
  .topbar .who { font-size: 14px; color: var(--muted); margin: 0 8px 0 12px; }
}

/* ---------- заголовок экрана ---------- */
.screen-head { display: flex; align-items: center; gap: 4px; margin: -16px -16px 12px; padding: 10px 8px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.screen-head .titles { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.screen-head .title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.screen-head .sub { font-size: 13px; color: var(--muted); }
.screen-head + .progress { margin: -12px -16px 12px; padding: 4px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .screen-head { margin: 0 0 16px; padding: 0; background: none; border: 0; position: static; }
  .screen-head .title { font-size: 24px; }
  .screen-head + .progress { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-card); border: 0; }
}
.progress-caption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 8px; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.page-title .eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.page-title h1 { margin: 0; }

/* ---------- кнопки ---------- */
button, .btn { font: 600 15px var(--font); height: 48px; padding: 0 18px; border-radius: var(--r-field); border: 1px solid transparent;
  background: var(--accent); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; white-space: nowrap; }
.btn:hover, button:hover { color: #fff; filter: brightness(0.95); }
button.ghost, .btn.ghost, .btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); font-weight: 500; }
button.ghost:hover, .btn.ghost:hover, .btn--secondary:hover { color: var(--ink); background: #F9FAFB; }
.btn--quiet, button.btn--quiet { background: var(--accent-bg); color: var(--accent-ink); }
.btn--quiet:hover, button.btn--quiet:hover { color: var(--accent-ink); }
button.danger, .btn--danger { background: var(--bad-bg); color: var(--bad); border-color: transparent; font-weight: 500; }
button.danger:hover, .btn--danger:hover { color: var(--bad); }
button.small, .btn.small, .btn--sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn--icon, button.btn--icon { width: 44px; height: 44px; padding: 0; background: transparent; color: var(--ink); border: 0; flex: none; }
.btn--icon:hover, button.btn--icon:hover { background: var(--bg); color: var(--ink); filter: none; }
.btn--icon.boxed { border: 1px solid var(--line-strong); background: var(--surface); }
.btn--block { width: 100%; }
.btn--lg { height: 52px; font-size: 16px; border-radius: 12px; }
button:disabled { opacity: .5; cursor: default; }
form.inline { display: inline; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row > .grow { flex: 1; }

/* ---------- поля ---------- */
input, select, textarea { font: 400 15px var(--font); color: var(--ink); height: 48px; padding: 0 14px; border: 1px solid var(--line-strong);
  border-radius: var(--r-field); background: var(--surface); max-width: 100%; }
textarea { height: auto; min-height: 88px; padding: 12px 14px; width: 100%; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; padding: 0; accent-color: var(--accent); flex: none; }
input[type=file] { height: auto; padding: 10px; }
label, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
label > input, label > select, label > textarea { width: 100%; }
label.inline, .check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; color: var(--ink); min-height: 44px; margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.fields > .full { grid-column: 1 / -1; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: var(--r-field); background: var(--bg); margin-bottom: 12px; }
.seg label { flex: 1; margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,22,28,.12); }
.chip-choice { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-choice label { margin: 0; position: relative; }
.chip-choice input { position: absolute; opacity: 0; }
.chip-choice span { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; font-weight: 400; color: var(--ink); display: inline-flex; align-items: center; cursor: pointer; }
.chip-choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* ---------- карточки и блоки ---------- */
.card, .panel { background: var(--surface); border-radius: var(--r-card); padding: 16px; margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-head h2 { margin: 0; font-size: 15px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 12px; }
.grid.two, .grid.three { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* плитки-счётчики */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-card); background: var(--surface); color: var(--ink); }
.tile b { font: 500 22px var(--mono); }
.tile span { font-size: 12px; font-weight: 500; color: var(--muted); }
.tile--bad { background: var(--bad-bg); color: var(--bad); } .tile--bad span { color: var(--bad); }
.tile--warn { background: var(--warn-bg); color: var(--warn); } .tile--warn span { color: var(--warn); }
a.tile:hover { color: inherit; filter: brightness(0.98); }
@media (max-width: 899px) { .tile--desktop { display: none; } }

/* чипы-фильтры */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 0 16px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .chips { flex-wrap: wrap; margin: 0 0 16px; padding: 0; } }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 14px; display: inline-flex; align-items: center; white-space: nowrap; }
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }

/* метки */
.badge, .tag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.ok, .tag--ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn, .tag--warn { background: var(--warn-bg); color: var(--warn); }
.badge.overdue, .badge.bad, .tag--bad { background: var(--bad-bg); color: var(--bad); }
.badge.out, .tag--info { background: var(--accent-bg); color: var(--accent-ink); }
.pill { border-radius: 999px; height: 26px; padding: 0 10px; }

/* цвет срока */
.sla-ok { color: var(--ok); } .sla-warn { color: var(--warn); font-weight: 600; } .sla-overdue { color: var(--bad); font-weight: 600; } .sla-none { color: var(--muted); }

/* карточка заявки в списке */
.app-list { display: grid; gap: 10px; }
@media (min-width: 900px) { .app-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.app-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); color: var(--ink); }
.app-card:hover { color: var(--ink); box-shadow: 0 0 0 2px var(--accent-bg); }
.app-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.app-card .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-card .term { font-size: 13px; white-space: nowrap; }
.app-card .meta { font-size: 13px; color: var(--muted); }
.app-card .todo { font-size: 14px; font-weight: 500; }
.todo--bad { color: var(--bad); } .todo--warn { color: var(--warn); } .todo--info { color: var(--accent-ink); }
.app-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.section-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 8px; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-card); }

/* строки списков */
.list-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row .body > :first-child { overflow-wrap: anywhere; }
.list-row .sub { font-size: 12px; color: var(--muted); }
.list-row .sub.ok { color: var(--ok); font-weight: 500; } .list-row .sub.warn { color: var(--warn); font-weight: 500; }
.check-ok { width: 24px; height: 24px; border-radius: 50%; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; flex: none; }
.check-empty { width: 24px; height: 24px; border-radius: 7px; border: 1.5px dashed #9AA3B0; flex: none; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; min-height: 40px; align-items: center; border-top: 1px solid var(--line); font-size: 14px; }
.kv-row:first-child { border-top: 0; }
.kv-row > :first-child { color: var(--muted); }
.kv-row > :last-child { text-align: right; overflow-wrap: anywhere; }

/* прогресс */
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.stepper { display: flex; gap: 4px; }
.stepper span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.stepper span.done { background: var(--ok); }
.stepper span.now { background: var(--accent); }
.stepper span.bad { background: var(--bad); }

/* уведомления */
.notice, .alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r-field); font-size: 14px; line-height: 1.4;
  background: var(--bg); color: var(--ink-2); margin-bottom: 12px; }
.notice svg { flex: none; margin-top: 1px; }
.notice--warn, .alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice--bad, .alert.bad { background: var(--bad-bg); color: #8A1C16; }
.notice--ok, .alert.ok-alert { background: var(--ok-bg); color: #145C33; }
.notice--info { background: var(--accent-bg); color: var(--accent-ink); }

/* нижняя панель действий */
.actionbar { position: sticky; bottom: var(--tabbar-h); z-index: 15; margin: 16px -16px 0; padding: 12px 16px;
  background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 900px) { .actionbar { position: static; margin: 16px 0 0; padding: 0; border: 0; background: none; flex-direction: row; } }

/* экран-шторка (смена статуса) */
.sheet { background: var(--surface); border-radius: var(--r-sheet); padding: 8px 16px 16px; }
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 10px; }
.option { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); margin: 0; font-weight: 400; cursor: pointer; }
.option .hint { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.option.is-next .hint { color: var(--accent-ink); }
.option.is-done { color: var(--muted); }
.option.is-disabled { color: #9AA3B0; cursor: default; }
.option.is-danger { color: var(--bad); }
.option:has(input:checked) { background: var(--accent-bg); margin: 0 -16px; padding: 0 16px; font-weight: 600; }

/* сообщение клиенту */
.message-card { border-left: 4px solid #F0B429; }
.message-card.sent { border-left-color: #34A853; }
.message-card textarea { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }

/* разделы заявки (плитки-ссылки) */
.section-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.section-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-card); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; }
.section-links a span { font-size: 12px; font-weight: 500; color: var(--muted); }
.section-links a span.ok { color: var(--ok); } .section-links a span.warn { color: var(--warn); }

/* раскрывающиеся блоки */
details.card > summary, details.fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 28px; font-weight: 600; color: var(--ink); margin: 0; }
details.card > summary::-webkit-details-marker, details.fold > summary::-webkit-details-marker { display: none; }
details.card > summary::after, details.fold > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 4px 4px 8px; flex: none; }
details[open].card > summary::after, details[open].fold > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
details.card[open] > summary { margin-bottom: 12px; }
details.fold { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
details.fold > summary { font-weight: 500; color: var(--accent); min-height: 40px; }
details summary { cursor: pointer; color: var(--accent); margin: 8px 0; font-weight: 500; }

/* таблицы (десктоп и отчёты) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
th { font-weight: 500; color: var(--muted); font-size: 12px; }
td.num, th.num { text-align: right; white-space: nowrap; }
table.docs .doc-name a { word-break: break-all; }
.doc-section { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel { overflow-x: auto; }

/* совместимость со старыми экранами */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat { background: var(--surface); border-radius: var(--r-card); padding: 12px; border: 1px solid var(--line); }
.stat b { display: block; font: 500 18px var(--mono); }
.stat.bad b { color: var(--bad); } .stat.warn b { color: var(--warn); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 10px; font-size: 14px; }
.kv div:nth-child(odd) { color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.timeline li:first-child { border-top: 0; }
.login { max-width: 360px; margin: 12vh auto; }
.drop { display: flex; flex-direction: column; gap: 4px; border: 1.5px dashed #9AA6C8; border-radius: var(--r-card); padding: 20px 16px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 400; }
.drop .drop-title { font-weight: 600; font-size: 16px; color: var(--accent-ink); }
.confirm-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .confirm-grid { grid-template-columns: 3fr 2fr; align-items: start; } }
.previews img { max-width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.previews img.photo { max-width: 160px; }
.avatar { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); flex: none; }
label.upload-btn { display: inline-flex; flex-direction: row; margin: 0; }
label.upload-btn input { display: none !important; }
.doc-card .actions { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border-radius: var(--r-field); }
.message-panel { border-left: 4px solid #F0B429; }
.message-panel.sent { border-left-color: #34A853; }

/* меню документа */
.doc-menu { position: relative; flex: none; }
.doc-menu > summary { list-style: none; margin: 0; }
.doc-menu > summary::-webkit-details-marker { display: none; }
.doc-menu-body { position: absolute; right: 0; top: 46px; z-index: 30; width: 240px; padding: 8px; border-radius: 12px; background: var(--surface);
  box-shadow: 0 8px 24px rgba(18,22,28,.16); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.doc-menu-body > a { min-height: 40px; display: flex; align-items: center; padding: 0 8px; border-radius: 8px; color: var(--ink); }
.doc-menu-body > a:hover { background: var(--bg); }
.link-btn { height: 36px; padding: 0 8px; align-items: center; color: var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; }
@media (min-width: 900px) { .topbar .brand { white-space: nowrap; } .topbar nav a { white-space: nowrap; } }

/* инициалы вместо фото */
.initials { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-bg); color: var(--accent-ink); font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex: none; }
.initials--lg { width: 56px; height: 56px; font-size: 18px; }
.drop .row { flex-wrap: nowrap; align-items: center; }

/* деньги: четыре главных числа */
.money-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.money-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-field); background: var(--bg); }
.money-grid span { font-size: 12px; font-weight: 500; color: var(--muted); }
.money-grid b { font-size: 18px; }
a.card.list-row { border-top: 0; }

/* вкладки-сегменты ссылками */
.seg-link { flex: 1; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg-link:hover { color: var(--ink); }
.seg-link.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(18,22,28,.12); }
@media (max-width: 420px) { .tiles .tile b { font-size: 18px; } }
@media (min-width: 900px) { .mobile-only { display: none !important; } }

/* часть оплаты к получению */
.pay-item { padding: 12px 0; border-top: 1px solid var(--line); }
.pay-item .chip-choice span { height: 34px; font-size: 13px; padding: 0 12px; }

/* поиск партнёра */
.partner-picker { position: relative; margin-bottom: 12px; }
.picker-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: 260px; overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(18,22,28,.16); }
.picker-item { width: 100%; height: auto; min-height: 48px; padding: 6px 8px; justify-content: flex-start; gap: 10px; background: transparent;
  color: var(--ink); border: 0; font-weight: 400; text-align: left; }
.picker-item:hover, .picker-item:focus { background: var(--bg); color: var(--ink); filter: none; }
.picker-new { padding: 8px; }
