/* ============================================================
   Экспресс-оценка недвижимости — современный стиль (полная версия)
   ============================================================ */

:root {
  --bg-1: #eaf4ff;
  --bg-2: #d4e8ff;
  --brand: #1d3a8a;
  --brand-light: #3b6ee0;
  --brand-soft: #eff4ff;
  --text: #1a2540;
  --text-dim: #5a6a8a;
  --border: #e0e6ef;
  --border-strong: #c8d2e2;
  --card: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 4px 12px rgba(29, 58, 138, 0.06);
  --shadow-lg: 0 10px 30px rgba(29, 58, 138, 0.12);
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

body { counter-reset: card; }

a { color: var(--brand-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header / Topbar ===== */
header.topbar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(29, 58, 138, 0.18);
  flex-wrap: wrap;
}
header.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
header.topbar .logo {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  backdrop-filter: blur(8px);
  flex-shrink: 0;
}
header.topbar h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header.topbar .subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}
header.topbar .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
header.topbar .btn,
header.topbar button.topbar-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 13px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
header.topbar .btn:hover,
header.topbar button.topbar-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
header.topbar .tarrif-pill {
  background: rgba(255, 255, 255, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  font-weight: 600;
}
header.topbar .admin-btn {
  background: rgba(245, 158, 11, 0.25) !important;
  border: 1px solid rgba(245, 158, 11, 0.5) !important;
  font-weight: 600;
  color: #fff !important;
}
header.topbar .admin-btn:hover {
  background: rgba(245, 158, 11, 0.35) !important;
}

/* ===== Main container ===== */
.container {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px;
}

/* ===== Layout helpers ===== */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}
.sticky {
  position: sticky;
  top: 20px;
}
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
.col { display: flex; flex-direction: column; gap: 12px; }
.col-input { min-width: 0; }
.col-result { min-width: 0; }
.inline { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Cards ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  border: 1px solid var(--border);
}
.card.sticky { position: sticky; top: 20px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.card-header h2 {
  margin: 0;
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}
.card-body { }
.card-body.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-body.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 700px) {
  .card-body.grid-2, .card-body.grid-3 { grid-template-columns: 1fr; }
}
.card h2 {
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h2::before {
  content: counter(card);
  counter-increment: card;
  background: var(--brand);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== Form fields ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.field label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.field input,
.field select,
.field textarea {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px rgba(59, 110, 224, 0.12);
}
.field input[required] {
  border-color: var(--warning);
  background: #fffaf0;
}
.field-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  user-select: none;
}
.field-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--brand-light);
}
.filter-select {
  font-size: 13px;
  padding: 7px 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

/* ===== Buttons ===== */
.btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-light); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(59, 110, 224, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(59, 110, 224, 0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--brand-soft);
  border-color: var(--brand-light);
}
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #059669; }
.btn-remove {
  background: #fff;
  color: var(--danger);
  border: 1.5px solid #fecaca;
  padding: 5px 10px;
  font-size: 12px;
}
.btn-remove:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* ===== Notice / Warning banner ===== */
.notice {
  background: #fff8e1;
  border: 1.5px dashed var(--warning);
  color: #92400e;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: center;
  justify-content: center;
  font-weight: 500;
}

/* ===== Result box ===== */
.result {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 16px;
}
.result .label {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result .price {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 4px;
}
.result .range {
  font-size: 14px;
  opacity: 0.95;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th {
  text-align: left;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 10px 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid var(--border-strong);
}
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
tr:hover td { background: var(--brand-soft); }

/* ===== Analogue cards ===== */
.analogues-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.analogue-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: all 0.2s;
}
.analogue-card:hover {
  border-color: var(--brand-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.analogue-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.analogue-header .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}
.analogue-header .addr {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  flex: 1;
}
.analogue-header .meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 3px 9px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge.success { background: #d1fae5; color: #065f46; }
.badge.warning { background: #fef3c7; color: #92400e; }
.badge.danger { background: #fee2e2; color: #991b1b; }

/* ===== Hint ===== */
.hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}

/* ===== Stat cards (admin) ===== */
.stat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-card .num {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 4px;
}
.stat-card .lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.3s;
}
.modal.lg { max-width: 900px; }
.modal-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
}
.modal-header .close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-header .close:hover { background: rgba(255,255,255,0.3); }
.modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

/* ===== Account / Auth tabs ===== */
.account-tab,
.admin-tab {
  display: inline-block;
  padding: 8px 16px;
  background: #f1f5f9;
  color: var(--text-dim);
  border: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  margin-right: 2px;
  font-family: inherit;
}
.account-tab.active,
.admin-tab.active {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--border);
  border-bottom: 1px solid #fff;
  margin-bottom: -1px;
}
.account-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account-error {
  color: var(--danger);
  background: #fee2e2;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ===== Admin panel ===== */
.admin-pane {
  display: none;
}
.admin-pane.active { display: block; }

/* ===== Empty state ===== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
}
.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

/* ===== App footer ===== */
.app-footer {
  text-align: left;
  padding: 24px 32px;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 24px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

/* ===== Index for analogue list ===== */
.idx {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
  flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  header.topbar { padding: 14px 18px; }
  header.topbar h1 { font-size: 17px; }
  .container { padding: 0 14px; margin: 14px auto; }
  .card { padding: 16px; }
  .modal { max-width: 100%; }
  .modal-body { padding: 16px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===== Result box (big) ===== */
.result-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border: 2.5px solid var(--brand-light);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin: 14px 0 18px;
  box-shadow: 0 8px 24px rgba(59, 110, 224, 0.12);
}
.result-main {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 2px dashed var(--border);
  margin-bottom: 16px;
}
.result-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  font-weight: 600;
}
.result-price {
  font-size: 38px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(29, 58, 138, 0.08);
}
.result-meta {
  font-size: 13px;
  color: var(--text-dim);
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 700px) {
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-price { font-size: 28px; }
}
.result-stat {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  transition: all 0.2s;
}
.result-stat:hover {
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(59, 110, 224, 0.1);
}
.result-stat-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
  font-weight: 600;
}
.result-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.result-stat-val small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  display: block;
  margin-top: 2px;
}
.result-stat-val.reliability-high { color: #059669; }
.result-stat-val.reliability-medium { color: #ca8a04; }
.result-stat-val.reliability-low { color: #dc2626; }

/* ===== Adjustments breakdown table ===== */
.adj-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
}
.adj-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.adj-table thead th {
  background: linear-gradient(135deg, #1d3a8a 0%, #3b6ee0 100%);
  color: #fff;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.adj-table thead th:last-child { border-right: none; }
.adj-table thead th.adj-sum-head {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}
.adj-table thead th.adj-ana-head {
  min-width: 50px;
}
.adj-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.adj-table tbody tr:hover {
  background: var(--brand-soft);
}
.adj-table tbody tr.adj-total-row {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
  border-top: 2px solid var(--warning);
  font-weight: 700;
}
.adj-table tbody tr.adj-total-row:hover { background: #fde68a; }
.adj-table td {
  padding: 8px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.adj-table td:last-child { border-right: none; }
.adj-table td.adj-name {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.adj-table td.adj-val {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
}
.adj-table td.adj-val.pos { color: #16a34a; background: rgba(22, 163, 74, 0.06); }
.adj-table td.adj-val.neg { color: #dc2626; background: rgba(220, 38, 38, 0.06); }
.adj-table td.adj-val.zero { color: var(--text-dim); background: transparent; }
.adj-table td.adj-val.adj-avg {
  background: rgba(16, 185, 129, 0.08);
  border-left: 2px solid var(--success);
  color: #059669;
}
.adj-icon {
  display: inline-block;
  margin-right: 5px;
  font-size: 13px;
}

/* ============================================================
   Кабинет программы «Экспресс-оценка недвижимости»
   PATCH-VAL-CABINET-2026-11-06
   ============================================================ */
.cab-loading { padding: 28px; text-align: center; color: #6b7280; font-size: 14px; }
.cab-error {
  margin: 10px 0; padding: 10px 14px; border-radius: 8px;
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 13px;
}
/* Пустой блок ошибки не показываем — иначе под формой висит красная полоса. */
.cab-error:empty { display: none; }
.cab-card {
  border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px 18px;
  margin: 0 0 14px; background: #fff;
}
.cab-card h3 { margin: 0 0 10px; font-size: 16px; color: #1e293b; }
.cab-card--free { background: #f0fdf4; border-color: #bbf7d0; }
.cab-card--user { background: #f8fafc; }
.cab-list { margin: 0 0 8px; padding-left: 22px; font-size: 13px; line-height: 1.7; color: #334155; }
.cab-note { margin: 8px 0 0; font-size: 12px; color: #64748b; line-height: 1.5; }
.cab-user { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cab-user__name { font-size: 15px; font-weight: 700; color: #1e293b; }
.cab-user__email { font-size: 12px; color: #64748b; }
.cab-user__status { font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.cab-user__status.is-paid { background: #dcfce7; color: #166534; }
.cab-user__status.is-free { background: #fef3c7; color: #92400e; }
.cab-quota { margin-top: 10px; font-size: 12px; color: #64748b; }
.cab-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.cab-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.cab-plan {
  position: relative; border: 2px solid #e4e7ec; border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; background: #fff;
}
.cab-plan__badge {
  position: absolute; top: -9px; right: 12px; background: #2563eb; color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 8px;
}
.cab-plan__title { font-size: 14px; font-weight: 700; color: #334155; }
.cab-plan__price { font-size: 26px; font-weight: 800; color: #0f172a; margin: 2px 0 8px; }
.cab-plan__price small { font-size: 12px; font-weight: 500; color: #64748b; }
.cab-plan__features { margin: 0 0 12px; padding-left: 20px; font-size: 12px; line-height: 1.6; color: #475569; flex: 1; }
.cab-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.cab-tab {
  padding: 6px 14px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff;
  font-size: 13px; cursor: pointer; color: #475569;
}
.cab-tab.is-active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.cab-form { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.cab-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #475569; }
.cab-field input {
  padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px;
  font-size: 14px; background: #fff; color: #0f172a;
}
.cab-field input:focus { outline: 2px solid #bfdbfe; border-color: #2563eb; }
.cab-submit { align-self: flex-start; padding: 8px 20px; }
.cab-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cab-table th, .cab-table td { padding: 6px 8px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.cab-table th { background: #f8fafc; color: #475569; font-weight: 600; }
.cab-wm-note {
  margin-bottom: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12px;
  background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
}
.cab-inline {
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
  color: #2563eb; font-weight: 600; font-size: inherit; text-decoration: underline;
}
