/* Tender Workspace — светлая сине-голубая дизайн-система (раздел 26 ТЗ).
   Все цвета — только через токены ниже. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Inter-Bold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); }

:root {
  --background: #F5F8FD;
  --surface: #FFFFFF;
  --surface-blue: #EFF6FF;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-pressed: #1E40AF;
  --sky: #38BDF8;
  --text: #0F172A;
  --text-2: #475569;
  --text-muted: #64748B;
  --border: #DCE6F2;
  --input-border: #94A3B8;
  --success-text: #166534; --success-bg: #F0FDF4; --success-border: #BBF7D0;
  --warning-text: #92400E; --warning-bg: #FFFBEB; --warning-border: #FDE68A;
  --error-text: #B91C1C; --error-bg: #FEF2F2; --error-border: #FECACA;
  --info-text: #1E40AF; --info-bg: #EFF6FF; --info-border: #BFDBFE;
  --orange-text: #9A3412; --orange-bg: #FFF7ED; --orange-border: #FED7AA;
  --shadow: 0 8px 28px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --radius-btn: 11px;
  --radius-card: 16px;
  --radius-modal: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar-w: 248px;
  --focus: 0 0 0 3px rgba(37, 99, 235, .35);
}

* { box-sizing: border-box; }
svg[aria-hidden="true"] { width: 20px; height: 20px; flex: none; vertical-align: middle; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text);
  background: var(--background); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); margin: 0; font-style: normal; letter-spacing: -0.01em; }
h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 20px; font-weight: 600; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.text-2 { color: var(--text-2); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 4px } .mt-2 { margin-top: 8px } .mt-3 { margin-top: 12px } .mt-4 { margin-top: 16px } .mt-6 { margin-top: 24px } .mt-8 { margin-top: 32px }
.mb-2 { margin-bottom: 8px } .mb-3 { margin-bottom: 12px } .mb-4 { margin-bottom: 16px } .mb-6 { margin-bottom: 24px }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.top { align-items: flex-start; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.measure { max-width: 68ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: var(--radius-btn); border: 1px solid transparent; font: 600 14px/1 var(--font); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s; white-space: nowrap;
  text-decoration: none !important; user-select: none;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); color: #fff; }
.btn-primary:active:not(:disabled) { background: var(--primary-pressed); }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: #BFD3F2; }
.btn-secondary:hover:not(:disabled) { background: var(--surface-blue); border-color: var(--primary); color: var(--primary-hover); }
.btn-tertiary { background: transparent; color: var(--text-2); }
.btn-tertiary:hover:not(:disabled) { background: var(--surface-blue); color: var(--primary); }
.btn-danger { background: var(--surface); color: var(--error-text); border-color: var(--error-border); }
.btn-danger:hover:not(:disabled) { background: var(--error-bg); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-icon { width: 40px; padding: 0; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: rgba(255,255,255,.9) rgba(255,255,255,.9) transparent transparent;
  animation: spin .7s linear infinite;
}
.btn-secondary.loading::after, .btn-tertiary.loading::after { border-color: var(--primary) var(--primary) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--text); }
.req { color: var(--error-text); margin-left: 2px; }
.hint { font-size: 12.5px; color: var(--text-muted); }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: 10px;
  background: var(--surface); font: 400 15px/1.4 var(--font); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
textarea.input { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; }
.input:hover { border-color: #64748B; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input.invalid { border-color: var(--error-text); }
.field-error { font-size: 12.5px; color: var(--error-text); display: flex; gap: 4px; align-items: center; }
.input-sm { height: 34px; font-size: 13.5px; padding: 0 10px; border-radius: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 0; margin: 0; padding: 0; }
.error-summary {
  border: 1px solid var(--error-border); background: var(--error-bg); color: var(--error-text);
  border-radius: 12px; padding: 12px 14px; font-size: 14px;
}

/* ---------- Карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-body { padding: 20px 24px; }
.card-foot { padding: 14px 24px; border-top: 1px solid var(--border); background: #FBFCFE; border-radius: 0 0 var(--radius-card) var(--radius-card); }
@media (max-width: 720px) { .card-pad, .card-body { padding: 16px; } .card-head { padding: 14px 16px; } }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v { font: 700 26px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13px; color: var(--text-muted); }
.icon-bubble { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-blue); color: var(--primary); display: grid; place-items: center; flex: none; }
.icon-bubble svg { width: 20px; height: 20px; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 600 12px/1 var(--font); border: 1px solid transparent; white-space: nowrap;
}
.badge svg { width: 14px; height: 14px; }
.badge-success { color: var(--success-text); background: var(--success-bg); border-color: var(--success-border); }
.badge-warning { color: var(--warning-text); background: var(--warning-bg); border-color: var(--warning-border); }
.badge-error { color: var(--error-text); background: var(--error-bg); border-color: var(--error-border); }
.badge-info { color: var(--info-text); background: var(--info-bg); border-color: var(--info-border); }
.badge-orange { color: var(--orange-text); background: var(--orange-bg); border-color: var(--orange-border); }
.badge-neutral { color: var(--text-2); background: #F1F5F9; border-color: #E2E8F0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Таблицы ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th {
  position: sticky; top: 0; z-index: 1; background: var(--surface-blue); color: var(--text); text-align: left;
  font-weight: 600; font-size: 13px; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid #EDF2F8; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #F8FBFF; }
.table tr.selected td { background: var(--surface-blue); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .row-link { cursor: pointer; }
.table-compact td { padding: 8px 12px; }

/* ---------- Каркас приложения ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font: 700 17px/1.2 var(--font-head); color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--sky)); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.nav-section { font-size: 11.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; padding: 14px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--text-2);
  font-weight: 500; font-size: 14.5px; text-decoration: none !important; transition: background .15s, color .15s;
}
.nav-link svg { width: 20px; height: 20px; flex: none; }
.nav-link:hover { background: #F4F8FE; color: var(--text); }
.nav-link.active { background: var(--surface-blue); color: var(--primary); font-weight: 600; }
.nav-link .count { margin-left: auto; font-size: 12px; background: var(--primary); color: #fff; border-radius: 999px; padding: 1px 7px; }
.sidebar-foot { margin-top: auto; padding-top: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: rgba(245, 248, 253, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
}
.content { padding: 28px; max-width: 1320px; width: 100%; margin: 0 auto; }
@media (max-width: 720px) { .content { padding: 16px; } .topbar { padding: 0 12px; } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-2); margin-top: 6px; }
.crumbs { font-size: 13px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); }
.tenant-switch { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; max-width: 320px; font: inherit; color: inherit; }
.tenant-switch:hover { border-color: #BFD3F2; }
.tenant-switch .name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-switch .role { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-blue); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.menu-btn { display: none; }
@media (max-width: 1024px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .scrim { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 55; }
}
.env-banner { background: var(--warning-bg); color: var(--warning-text); border-bottom: 1px solid var(--warning-border); padding: 8px 28px; font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
@media (max-width: 720px) { .env-banner { padding: 8px 12px; font-size: 12.5px; } }
.env-banner svg { width: 16px; height: 16px; flex: none; }

/* ---------- Вкладки ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; margin-bottom: 22px; }
.tab {
  padding: 11px 14px; color: var(--text-2); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap;
  text-decoration: none !important; display: inline-flex; gap: 6px; align-items: center; margin-bottom: -1px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-family: inherit;
}
.tab:hover { color: var(--text); background: #F4F8FE; border-radius: 8px 8px 0 0; }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab .badge { height: 20px; padding: 0 7px; font-size: 11px; }

/* ---------- Уведомления, состояния ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.alert-info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
.alert-error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
.alert-success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
.alert .alert-title { font-weight: 600; margin-bottom: 2px; }
.alert p:last-child { margin-bottom: 0; }
.empty { text-align: center; padding: 48px 24px; color: var(--text-2); }
.empty .icon-bubble { margin: 0 auto 14px; width: 52px; height: 52px; }
.empty .icon-bubble svg { width: 26px; height: 26px; }
.empty h3 { margin-bottom: 6px; }
.skeleton { background: linear-gradient(90deg, #EEF3FA 25%, #F7FAFE 50%, #EEF3FA 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.progress { height: 8px; background: #E8EFF8; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--sky)); border-radius: 999px; transition: width .3s; }
.job-line { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--info-border); background: var(--info-bg); border-radius: 12px; color: var(--info-text); font-size: 14px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--primary); border-color: var(--primary) var(--primary) transparent transparent; animation: spin .7s linear infinite; flex: none; }

/* ---------- Окна ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: var(--radius-modal); box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .18s ease-out; }
.modal.wide { max-width: 920px; }
.modal.xwide { max-width: 1200px; }
.modal-head { padding: 20px 24px 12px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.modal-body { padding: 4px 24px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--border); flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--text); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: pop .2s; }
.toast.error { background: var(--error-text); }
.toast.success { background: var(--success-text); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.dropdown { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 80; min-width: 240px; }
.dropdown button, .dropdown a { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 12px; border: 0; background: none; border-radius: 8px; font: inherit; color: var(--text); cursor: pointer; text-align: left; text-decoration: none !important; }
.dropdown button:hover, .dropdown a:hover { background: var(--surface-blue); }
.dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }

/* ---------- Загрузка файлов ---------- */
.dropzone { display: block;
  border: 2px dashed #9CC3F5; background: #F7FBFF; border-radius: 16px; padding: 28px; text-align: center; color: var(--text-2);
  transition: background .15s, border-color .15s; cursor: pointer;
}
.dropzone:hover, .dropzone.drag { background: var(--surface-blue); border-color: var(--primary); }
.dropzone .icon-bubble { margin: 0 auto 10px; }
.dropzone strong { color: var(--primary); }

/* ---------- Страницы входа ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--background); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 448px; margin: 0 auto; }
.auth-card h1 { font-size: 32px; margin: 26px 0 8px; }
.auth-card .lead { color: var(--text-2); font-size: 16px; margin-bottom: 26px; }
.auth-aside {
  position: relative; overflow: hidden; background: linear-gradient(160deg, #F8FBFF 0%, #EAF3FF 55%, #E0F2FE 100%);
  border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; padding: 56px;
}
.auth-aside::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(56,189,248,.25), rgba(56,189,248,0) 70%); }
.auth-aside h2 { font-size: 26px; max-width: 460px; position: relative; }
.auth-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; position: relative; max-width: 480px; }
.auth-aside li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.auth-aside li .icon-bubble { background: #fff; }
.mock { margin-top: 34px; position: relative; max-width: 500px; }
.mock .card { padding: 16px 18px; }
.mock .card + .card { margin-top: -6px; margin-left: 36px; }
@media (max-width: 1024px) { .auth { grid-template-columns: 1fr; } .auth-aside { display: none; } }
@media (max-width: 480px) { .auth-card h1 { font-size: 26px; } }

/* ---------- Прочее ---------- */
.kv { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr); gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }
.quote { border-left: 3px solid #93C5FD; background: #F8FBFF; padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--text-2); }
.quote.invalid { border-left-color: var(--error-text); background: var(--error-bg); }
.src-link { font-size: 12.5px; display: inline-flex; gap: 4px; align-items: center; }
.src-link svg { width: 14px; height: 14px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.checklist li.done { color: var(--text-muted); background: #FAFCFF; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #CBD5E1; display: grid; place-items: center; flex: none; }
.checklist li.done .tick { background: var(--success-text); border-color: var(--success-text); color: #fff; }
.checklist .tick svg { width: 14px; height: 14px; }
.doc-viewer { font-size: 14px; line-height: 1.6; }
.doc-block { padding: 8px 12px; border-radius: 8px; border-left: 3px solid transparent; white-space: pre-wrap; }
.doc-block .where { font-size: 11.5px; color: var(--text-muted); display: block; }
.doc-block.hl { background: #FEF9C3; border-left-color: #EAB308; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; } }
.field-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid #EDF2F8; }
.field-row:last-child { border-bottom: 0; }
.swatch { width: 14px; height: 14px; border-radius: 4px; margin-top: 4px; border: 1px solid rgba(0,0,0,.08); }
.sw-filled { background: #E2F5E9; } .sw-needs_review { background: #FFE0B2; } .sw-missing { background: #FFF59D; } .sw-conflict { background: #FFCDD2; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: 12px 0; border-bottom: 1px solid #EDF2F8; }
.list-plain > li:last-child { border-bottom: 0; }
.list-plain.card-body { padding: 4px 24px; }
@media (max-width: 720px) { .list-plain.card-body { padding: 4px 16px; } }
.checklist li svg { width: 18px; height: 18px; color: var(--text-muted); }
.checklist .tick svg { color: #fff; }
.tenant-switch svg { width: 16px; height: 16px; color: var(--text-muted); }
.crumbs svg { width: 14px; height: 14px; }
.badge svg { width: 13px; height: 13px; }
.alert svg { width: 20px; height: 20px; }
details.disclosure > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; color: var(--primary); font-size: 13.5px; font-weight: 500; }
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary svg { width: 16px; height: 16px; transition: transform .15s; }
details.disclosure[open] > summary svg { transform: rotate(90deg); }
.pill-group { display: inline-flex; background: #EEF3FA; border-radius: 10px; padding: 3px; gap: 2px; }
.pill-group button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: 500 13px var(--font); color: var(--text-2); cursor: pointer; }
.pill-group button.active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(15,23,42,.08); font-weight: 600; }
.kbd { font: 12px/1 ui-monospace, monospace; background: #F1F5F9; border: 1px solid #E2E8F0; border-radius: 6px; padding: 2px 6px; }
.code { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #F1F5F9; padding: 2px 6px; border-radius: 6px; }
.offer-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); }
.status-strip { width: 4px; border-radius: 4px; align-self: stretch; flex: none; }
.cand { display: flex; gap: 14px; }
.notif-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--error-text); border-radius: 50%; }
.rel { position: relative; }
.hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .sidebar, .topbar { display: none; } .app { display: block; } }

#page:focus, #page:focus-visible { outline: none; box-shadow: none; }
@media (max-width: 720px) {
  .crumbs { display: none; }
  .topbar { gap: 6px; }
  .topbar .grow-spacer { flex: 1; }
  .tenant-switch { max-width: 190px; padding: 5px 8px; margin-left: auto; }
  .tenant-switch .icon-bubble, .tenant-switch .role { display: none; }
  .tenant-switch .name { font-size: 13px; }
  .page-head h1 { font-size: 24px; }
  .page-head > .row { width: 100%; }
  .tabs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .card-head h2 { font-size: 18px; }
  .table-wrap { margin-left: 0; }
}
