/* ZP-MOP — кастомный CSS, без фреймворков. */

:root {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --line: #e4e7ec;
  --line-2: #eef2f6;
  --text: #101828;
  --ink2: #344054;
  --text-muted: #667085;
  --text-subtle: #98a2b3;
  --faint: #cbd5e1;
  --primary: #1f4ed8;
  --primary-hover: #1841b8;
  --primary-soft: #e8efff;
  --accent: #1f4ed8;
  --accent-soft: #e8efff;
  --chip: #eef2f7;
  --danger: #b42318;
  --danger-soft: #fde7e4;
  --success: #027a48;
  --success-soft: #d1fadf;
  --warning: #b54708;
  --warning-soft: #fef0c7;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 40px rgba(16, 24, 40, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }

p { margin: 0 0 8px; }

/* --- Layout --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f4ed8, #7c3aed);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-link:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.nav-link.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 6px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}
.container-wide {
  max-width: min(1760px, 100vw);
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-header h1 { margin: 0; }
.page-header .muted { color: var(--text-muted); }

/* --- Cards / panels --- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-body { padding: 18px; }
.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s ease;
  text-decoration: none;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(2px);
}
.page-loader.is-visible {
  display: flex;
}
.page-loader-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
}
.page-loader-spinner {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 3px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loader-spin 0.8s linear infinite;
}
.page-loader-text {
  line-height: 1.35;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-primary:disabled { background: var(--primary); border-color: var(--primary); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { filter: brightness(0.95); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 5px 10px; font-size: 13px; }
.btn .icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Forms --- */
label.lbl, .form-label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
}
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-elev);
  transition: border 0.12s ease, box-shadow 0.12s ease;
}
.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 216, 0.15);
}
.input:disabled, select.input:disabled, textarea.input:disabled {
  color: var(--text);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 1;
  padding-left: 0;
  padding-right: 0;
  pointer-events: none;
}
.input::placeholder { color: var(--text-subtle); }

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.row .grow { flex: 1 1 auto; }

.field { margin-bottom: 14px; }

/* --- Flash --- */
.flash-wrap {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}
.flash {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 14px;
  animation: fadeSlide 0.2s ease;
}
.flash.success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.flash.error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.flash.warning { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.flash.info { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Login --- */
.login-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.12), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(31, 78, 216, 0.12), transparent 40%),
    var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.login-card h1 {
  font-size: 22px;
  margin-bottom: 6px;
}
.login-card .muted { color: var(--text-muted); margin-bottom: 24px; }

/* --- Tables --- */
.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 2;
}
.table tbody tr:nth-child(even) { background: var(--surface-2); }
.table tbody tr:hover { background: var(--accent-soft); }
.table tbody tr:last-child td { border-bottom: none; }
.table td.num, .table th.num {
  text-align: right;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.table td.id, .table th.id { color: var(--text-muted); font-variant-numeric: tabular-nums; width: 1%; white-space: nowrap; }
.table td.tight, .table th.tight { width: 1%; white-space: nowrap; }

.table th a.sortable-head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.table th a.sortable-head:hover { color: var(--text); }
.table th a.sortable-head.active { color: var(--primary); }
.table th a.sortable-head.active .sort-arrow { color: var(--accent); opacity: 1; }
.table th a.sortable-head .sort-arrow { font-size: 11px; opacity: 0.8; }

/* --- Pagination --- */
.pager {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pager .pager-info { color: var(--text-muted); margin-right: 8px; }
.pager a, .pager span.cur {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  background: var(--bg-elev);
}
.pager a:hover { background: var(--bg); text-decoration: none; }
.pager span.cur { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager .gap { padding: 0 2px; color: var(--text-subtle); }

/* --- Editable grid --- */
.grid-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.grid-toolbar .grow { flex: 1 1 260px; }
.grid-status {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 120px;
}
.grid-status.dirty { color: var(--warning); font-weight: 600; }

.grid {
  font-size: 14px;
  min-width: 1540px;
}
.grid th, .grid td { padding: 11px 14px; }
.grid .offer-name {
  min-width: 280px;
  max-width: 520px;
}
.grid .cell-editable {
  position: relative;
  padding: 0;
  min-width: 140px;
  background: #fff;
}
.grid .cell-editable.readonly-sample {
  background: #fafbfc;
}
.grid .cell-input, .grid .cell-select {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  height: 100%;
}
.grid .auto-badge {
  position: absolute;
  right: 6px;
  bottom: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  line-height: 1.3;
  pointer-events: auto;
  cursor: help;
}
.grid td[data-field="bonus"] .cell-input {
  padding-right: 52px;
}
.quick-tip {
  position: fixed;
  z-index: 2000;
  max-width: 380px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #101828;
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-line;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.06s ease, transform 0.06s ease;
}
.quick-tip.show {
  opacity: 1;
  transform: translateY(0);
}
/* Числовые ячейки: inputs выравниваем по правому краю под заголовок */
.grid td.num .cell-input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.grid .cell-input:focus, .grid .cell-select:focus {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 2px var(--primary);
}
.grid .cell-editable.dirty {
  background: #fff7ed;
}
.grid .cell-editable.dirty::before {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--warning);
}
.grid .cell-editable.invalid {
  background: var(--danger-soft);
}
.grid .cell-editable.invalid::before {
  background: var(--danger);
}
.grid .cell-editable.selected {
  box-shadow: inset 0 0 0 2px var(--primary);
  z-index: 1;
}
.grid .cell-editable.range {
  background: var(--primary-soft);
}
.fill-handle {
  display: none;
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border: 2px solid #fff;
  border-radius: 2px;
  cursor: crosshair;
  z-index: 3;
}
/* Показываем fill-handle при наведении на строку или когда ячейка selected */
.grid tbody tr:hover .cell-editable .fill-handle,
.grid .cell-editable.selected .fill-handle {
  display: block;
}

.grid-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.badge.cat-1 { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge.cat-2 { background: #fef3c7; color: #92400e; border-color: transparent; }
.badge.cat-3 { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge.empty { background: transparent; color: var(--text-subtle); border-color: var(--border); }

.muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

/* --- Calc icon + custom tooltip --- */
.calc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  font-size: 13px;
  color: var(--text-subtle);
  text-decoration: none;
  cursor: help;
  border-radius: 50%;
  transition: background 0.12s, color 0.12s;
}
.calc-icon:hover {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.info-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--bg-elev);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}
.info-popover:hover,
.info-popover:focus {
  color: var(--primary);
  border-color: var(--primary);
  outline: none;
}
.info-popover-box {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 1000;
  display: none;
  width: min(520px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}
.info-popover-box code {
  font-size: 12px;
}
.info-popover:hover .info-popover-box,
.info-popover:focus .info-popover-box {
  display: block;
}

.calc-tip {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text);
  min-width: 420px;
  max-width: 640px;
  pointer-events: none;
  animation: tipShow 0.12s ease;
}
@keyframes tipShow {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}
.calc-tip .tip-head {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.calc-tip .tip-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}
.calc-tip .tip-table th {
  text-align: left;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}
.calc-tip .tip-table th.num { text-align: right; }
.calc-tip .tip-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #f2f4f7;
  vertical-align: middle;
}
.calc-tip .tip-table tr:last-child td { border-bottom: none; }
.calc-tip .tip-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-tip .tip-name { max-width: 260px; }

.calc-tip .tip-muted { color: var(--text-muted); }

.calc-tip .tip-foot {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.calc-tip .tip-foot .tip-total {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.tip-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-muted);
  white-space: nowrap;
}
.tip-tag.tip-anchor { background: var(--primary-soft); color: var(--primary); }
.tip-tag.tip-plus   { background: var(--success-soft); color: var(--success); }
.tip-tag.tip-1p     { background: #fef3c7; color: #92400e; }
.tip-tag.tip-nocat  { background: var(--danger-soft); color: var(--danger); }

/* --- Multiselect (поиск с чипами) --- */
.ms-field { position: relative; }
.ms-chips {
  min-height: 38px;
  padding: 4px 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  display: flex; flex-wrap: wrap; gap: 4px;
  align-items: center; cursor: text;
  transition: border 0.12s, box-shadow 0.12s;
}
.ms-field:focus-within .ms-chips {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,78,216,0.15);
}
.ms-chip {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 260px;
}
.ms-chip > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-chip-x {
  cursor: pointer; opacity: 0.7; font-size: 11px;
  padding: 0 2px;
}
.ms-chip-x:hover { opacity: 1; color: var(--danger); }
.ms-input {
  border: 0; outline: 0; background: transparent;
  font-size: 14px; padding: 4px;
  min-width: 140px; flex: 1;
  font-family: inherit; color: var(--text);
}
.ms-input::placeholder { color: var(--text-subtle); }
.ms-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  z-index: 80; background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 280px; overflow-y: auto;
  margin-top: 4px;
}
.ms-opt {
  padding: 8px 12px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid #f2f4f7;
}
.ms-opt:last-child { border-bottom: none; }
.ms-opt:hover, .ms-opt.active { background: var(--primary-soft); }
.ms-opt mark { background: #fff3bf; color: var(--text); padding: 0; border-radius: 2px; }
.ms-opt-meta { font-size: 11px; color: var(--text-muted); display: block; margin-top: 2px; }
.ms-opt.ms-inactive { opacity: 0.65; }
.ms-opt.ms-empty { color: var(--text-muted); cursor: default; font-style: italic; }

/* Warn icon + warn tooltip sections */
.warn-icon {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 600;
  cursor: help;
  white-space: nowrap;
}
.warn-icon:hover { filter: brightness(0.95); }
.calc-tip .tip-warn-sec { margin-top: 8px; }
.calc-tip .tip-warn-sec:first-of-type { margin-top: 4px; }
.calc-tip .tip-warn-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.calc-tip .tip-warn-sec ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-muted);
  max-height: 200px;
  overflow-y: auto;
}
.calc-tip .tip-warn-sec li { padding: 1px 0; }

/* --- Misc --- */
.hr { height: 1px; background: var(--border); border: 0; margin: 16px 0; }

@media (max-width: 720px) {
  .topbar-inner { padding: 10px 16px; }
  .container { padding: 16px; }
  .nav .label { display: none; }
}
