:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --border: #e3e6eb;
  --text: #1d2330;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-h: #4338ca;
  --danger: #dc2626;
  --ok: #16a34a;
  --warn: #d97706;
  --st-new: #64748b;
  --st-contact: #0ea5e9;
  --st-proposal: #8b5cf6;
  --st-negotiation: #f59e0b;
  --st-won: #16a34a;
  --st-lost: #dc2626;
  --shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 1px 3px rgba(0, 0, 0, .06);
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --surface: #181b23;
    --surface-2: #222630;
    --border: #2b303b;
    --text: #e6e8ee;
    --muted: #9097a5;
    --primary: #6366f1;
    --primary-h: #818cf8;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: var(--primary); }
h2 { font-size: 16px; margin: 0 0 12px; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.logo { font-weight: 700; font-size: 18px; padding: 0 12px 18px; }
.logo span { color: var(--primary); }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
nav a:hover { background: var(--surface-2); }
nav a.active { background: var(--primary); color: #fff; }
.sidebar-foot { margin-top: auto; }

.main { min-width: 0; padding: 24px 28px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.topbar h1 { font-size: 22px; margin: 0; flex: 1; min-width: 0; }
#page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-h); }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; }

input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
textarea { resize: vertical; min-height: 70px; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex: none; }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input { flex: 1; min-width: 200px; width: auto; }
.toolbar select { width: auto; }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  cursor: pointer;
}
.tabs button.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs .count { opacity: .6; margin-left: 4px; }

/* ---------- Cards / tables ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-head h2 { margin: 0; }

.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.clickable { cursor: pointer; }
.clickable:hover { background: var(--surface-2); }

.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 24px !important; }

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--c, var(--muted));
  background: color-mix(in srgb, var(--c, var(--muted)) 14%, transparent);
}

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 24px; font-weight: 700; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-side { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.funnel-row { display: grid; grid-template-columns: 150px 1fr 120px; align-items: center; gap: 10px; padding: 6px 0; }
.funnel-bar { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.funnel-bar div { height: 100%; background: var(--c); border-radius: 5px; }
.funnel-row .amount { text-align: right; font-variant-numeric: tabular-nums; }

.list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Tasks ---------- */
.task { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.task:last-child { border-bottom: none; }
.task-main { flex: 1; min-width: 0; cursor: pointer; }
.task-title { font-weight: 500; }
.task-meta { font-size: 12px; color: var(--muted); }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.due { font-size: 12px; color: var(--muted); white-space: nowrap; }
.due.overdue { color: var(--danger); font-weight: 600; }
.due.today { color: var(--warn); font-weight: 600; }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.column {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  border: 2px dashed transparent;
}
.column.over { border-color: var(--primary); }
.column header { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.column .count { margin-left: auto; color: var(--muted); font-weight: 500; }
.col-sum { font-size: 12px; color: var(--muted); margin: 2px 0 10px 16px; }
.col-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.col-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 20px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: grab;
  box-shadow: var(--shadow);
}
.deal-card:hover { border-color: var(--primary); }
.deal-card.dragging { opacity: .4; }
.deal-card .title { font-weight: 500; margin-bottom: 4px; }
.deal-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.deal-card .amount { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Client page ---------- */
.info dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 10px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; word-break: break-word; }

.note { padding: 10px 0; border-bottom: 1px solid var(--border); }
.note:last-child { border-bottom: none; }
.note-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.note-text { white-space: pre-wrap; margin-top: 2px; }
.link-btn { border: none; background: none; color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }
.link-btn:hover { color: var(--danger); }
.note-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.note-form button { align-self: flex-end; }

/* ---------- Modal / form ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 18, .5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
  overflow-y: auto;
  z-index: 10;
}
.modal.hidden { display: none; }
.modal-box {
  background: var(--surface);
  border-radius: 12px;
  width: 100%;
  max-width: 520px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.form { display: flex; flex-direction: column; gap: 12px; }
.form h2 { font-size: 18px; margin-bottom: 4px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.field .req { color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 8px; margin-top: 6px; }
.spacer { flex: 1; }

#toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 20; }
.toast {
  background: var(--text);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  animation: pop .2s ease-out;
}
.toast.error { background: var(--danger); color: #fff; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

#incoming-notices { display: grid; gap: 8px; width: min(320px, calc(100vw - 40px)); }
#incoming-notices:empty { display: none; }
.incoming-notice {
  display: flex;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
  animation: pop .2s ease-out;
}
.incoming-open, .incoming-close {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.incoming-open {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
  padding: 12px 8px 12px 13px;
  text-align: left;
}
.incoming-preview { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.incoming-preview:empty { display: none; }
.incoming-action { color: var(--primary-h); font-size: 13px; font-weight: 600; }
.incoming-close { width: 32px; height: 32px; margin: 5px; font-size: 21px; line-height: 1; }
.incoming-open:hover, .incoming-close:hover { background: var(--surface-2); }
.incoming-open:focus-visible, .incoming-close:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .incoming-notice { animation: none; } }

.hidden { display: none !important; }
.small { font-size: 12px; }
.list-row.plain { color: var(--text); text-decoration: none; }
.preview-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }

nav a { display: flex; align-items: center; gap: 8px; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
}
.sidebar-foot { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* ---------- Chats ---------- */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  height: calc(100vh - 110px);
  min-height: 440px;
}
.chat-list-card { padding: 10px; display: flex; flex-direction: column; min-height: 0; }
.chat-list-card .tabs { margin-bottom: 8px; }
#chat-list { overflow-y: auto; flex: 1; }
.chat-item { display: block; padding: 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.active { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.chat-item-top, .chat-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chat-item-top strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-top .small { white-space: nowrap; }
.chat-item.unread strong { font-weight: 700; }
.chat-item-bottom .preview-line { flex: 1; min-width: 0; }
.unread-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  flex: none;
}

.chat-pane { padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-placeholder { margin: auto; max-width: 340px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.chat-head .grow { flex: 1; min-width: 180px; }
.chat-head .small a { color: inherit; }
.chat-title { font-weight: 600; font-size: 15px; }
.chat-link { width: auto; max-width: 200px; padding: 5px 8px; font-size: 13px; }
.chat-back { display: none; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.msg { max-width: 75%; display: flex; flex-direction: column; align-items: flex-start; }
.msg.operator { align-self: flex-end; align-items: flex-end; }
.msg .bubble {
  padding: 8px 12px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--border);
}
.msg.operator .bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
}
.msg-time { font-size: 11px; color: var(--muted); margin-top: 2px; }
.day-sep { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; margin: 6px 0; }
.chat-reply { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-reply textarea { min-height: 44px; max-height: 160px; }

/* ---------- Settings / login ---------- */
.settings { max-width: 760px; }
.settings p { margin: 0 0 10px; }
.code-row { display: flex; gap: 8px; align-items: center; margin: 10px 0; }
.code-row code, .code-block {
  flex: 1;
  min-width: 0;
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}
.warn-box {
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: 8px;
  padding: 10px 12px;
}
.check { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; font-size: 14px !important; cursor: pointer; }
input[type="color"] { width: 64px; height: 38px; padding: 3px; cursor: pointer; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login-box { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.login-box #login-body { display: flex; flex-direction: column; gap: 12px; }
.login-box .logo { padding: 0; }
.login-box h2, .login-box p { margin: 0; }
.login-error { color: var(--danger); font-size: 13px; min-height: 1em; }

/* ---------- Deals: site leads, specification ---------- */
.new-leads { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); margin-bottom: 16px; }
.deal-card.unseen { border-color: var(--danger); }
.card-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.preview-line.text { color: var(--text); font-size: 14px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
h3 { font-size: 14px; margin: 16px 0 8px; }

.spec td { vertical-align: top; }
.spec .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spec-details { white-space: pre-wrap; color: var(--muted); font-size: 12px; margin-top: 2px; }
.spec tfoot td { font-weight: 600; border-top: 2px solid var(--border); border-bottom: none; }
.spec + .btn { margin-top: 10px; }
.table-wrap + .btn { margin-top: 12px; }

.kv { display: grid; grid-template-columns: minmax(110px, 35%) 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.files { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.inline-form .grow { flex: 1; min-width: 220px; }
.inline-form .field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
pre.code-block { margin: 0; white-space: pre; }

/* ---------- Catalog, picker, calculator ---------- */
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr.inactive td { opacity: .55; }
.head-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.card-head { gap: 10px; flex-wrap: wrap; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }

.modal-box.wide { max-width: 920px; }
.pick-list { max-height: 55vh; overflow-y: auto; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; }
.pick-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.pick-item:last-child { border-bottom: none; }
.pick-item:hover, .pick-item:focus-visible { background: var(--surface-2); }
.pick-item > span:last-child { white-space: nowrap; }

.calc-params { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.calc td { vertical-align: middle; padding: 8px 10px; }
.calc select { min-width: 0; max-width: 300px; padding: 6px 8px; }
.calc .qty { width: 90px; text-align: right; padding: 6px 8px; }
.calc tfoot td { font-weight: 600; border-top: 2px solid var(--border); }

/* ---------- Orders ---------- */
.kanban.orders { grid-template-columns: repeat(9, minmax(210px, 1fr)); }
.deal-card.overdue-card { border-color: var(--danger); }
.attention { margin-bottom: 16px; border-color: color-mix(in srgb, var(--warn) 50%, var(--border)); }
.kpi.clickable:hover { border-color: var(--primary); }

.mockup { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.mockup:last-child { border-bottom: none; }
.mockup-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mockup-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.mockup.approved { border-left: 3px solid var(--ok); padding-left: 10px; }
.ok-text { color: var(--ok); }
.danger-text { color: var(--danger); }

.events { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.event { border-left: 2px solid var(--border); padding-left: 10px; }
.site-logos { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
input[type="file"] { padding: 6px; }

/* ---------- Payments, repeat sales, settings ---------- */
.nav-badge.soft { background: var(--primary); }
.pay-summary { margin-bottom: 6px; }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-bottom: 8px; }
.progress div { height: 100%; background: var(--ok); border-radius: 4px; }
.card-head.pad { padding: 14px 14px 0; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 6px; }
.attention.clickable { cursor: pointer; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; min-width: 0; }
.value.danger-text { color: var(--danger); }

/* ---------- Staff ---------- */
.me { display: flex; flex-direction: column; padding: 0 12px 8px; line-height: 1.3; }
.owner {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  white-space: nowrap;
}
.owner.none { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.owner-filter { width: auto; padding: 7px 10px; }
#page-actions { align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-2, .grid-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 8px 12px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    z-index: 5;
  }
  .logo { padding: 0 8px 0 0; }
  nav { flex-direction: row; }
  .sidebar-foot { margin: 0 0 0 8px; flex-direction: row; align-items: center; }
  .sidebar-foot .me, #export-btn { display: none; }
  .main { padding: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 110px 1fr 90px; }
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 140px); }
  .chat-layout.has-active .chat-list-card { display: none; }
  .chat-layout:not(.has-active) .chat-pane { display: none; }
  .chat-back { display: inline-flex; }
  .msg { max-width: 88%; }
  .calc-params, .form-row.cols-3 { grid-template-columns: 1fr 1fr; }
}
