/* Segretaria — stylesheet unico minimal.
   Espandere per partial numerati quando cresce (vedi pattern dnd 01-tokens, 02-reset, ...). */

:root {
  --bg: #0f1115;
  --surface: #181b22;
  --surface-2: #1f232c;
  --border: #2a2e38;
  --border-soft: #232730;
  --text: #e8eaee;
  --muted: #9aa0ab;
  --brand: #6f9eff;
  --brand-soft: rgba(111, 158, 255, .14);
  --success: #6dd49a;
  --success-soft: rgba(109, 212, 154, .12);
  --danger: #e0626a;
  --danger-soft: rgba(224, 98, 106, .12);
  --warn: #e0c062;
  --warn-soft: rgba(224, 192, 98, .12);
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { font-family: "SF Mono", "Menlo", monospace; font-size: 12.5px; padding: 1px 5px; background: var(--surface-2); border-radius: 4px; }

h1 { font-size: 26px; letter-spacing: -.025em; margin: 0 0 4px; font-weight: 700; }
h2 { font-size: 16px; letter-spacing: -.01em; margin: 0 0 10px; font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 600; }

/* ---- Login ---- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.login-card h1 { margin: 0; font-size: 22px; }
.login-card form { display: grid; gap: 14px; margin-top: 18px; }
.login-card label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---- Inputs ---- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  width: 100%;
  transition: border-color .12s ease, box-shadow .12s ease;
}
textarea { resize: vertical; min-height: 80px; font-family: "SF Mono", "Menlo", monospace; font-size: 13px; line-height: 1.6; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(111, 158, 255, .2);
}
input::placeholder { color: var(--muted); opacity: .7; }
.hint { display: block; margin-top: 4px; }

/* ---- Alerts / toasts ---- */
.alert {
  background: var(--danger-soft);
  border: 1px solid rgba(224, 98, 106, .4);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 14px 0;
}
.toast {
  background: var(--brand-soft);
  border: 1px solid rgba(111, 158, 255, .4);
  color: var(--brand);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  margin: 14px 0;
}
.toast-success {
  background: var(--success-soft);
  border-color: rgba(109, 212, 154, .4);
  color: var(--success);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #0a0c10; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.06); border-color: var(--brand); color: #0a0c10; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 10px; font-size: 13px; }

/* ---- Topbar / tabs ---- */
.topbar {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 10;
  box-shadow: 0 1px 0 var(--border);
}
.brand {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.02em;
  color: var(--brand);
  flex-shrink: 0;
}
.tabs { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.tab {
  padding: 7px 13px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .12s ease, color .12s ease;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.logout-form { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---- Layout ---- */
.container { max-width: 1120px; margin: 28px auto; padding: 0 28px; }
.container-narrow { max-width: 640px; }
.container-fluid { max-width: 1600px; margin: 28px auto; padding: 0 40px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.row-spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-stack { display: grid; gap: 14px; }
.form-stack label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-block; margin: 0; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .18);
}
.card:last-child { margin-bottom: 0; }
.placeholder { text-align: center; padding: 48px 28px; }
.placeholder h2 { margin: 0 0 8px; }
.placeholder p { margin: 0; }

/* ---- Agent list ---- */
.agent-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.agent-card { padding: 0; }
.agent-card-link {
  display: block;
  padding: 18px 20px;
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color .12s ease;
}
.agent-card-link:hover { border-color: var(--brand); }
.agent-card .meta { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ---- Agent detail head ---- */
.agent-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.agent-head .container { margin-top: 18px; margin-bottom: 0; padding-bottom: 0; }
.agent-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; }
.agent-meta { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.back-link { display: inline-block; margin-bottom: 4px; }
.subtabs { display: flex; gap: 4px; padding: 6px 0; border-top: 1px solid var(--border-soft); margin-top: 8px; overflow-x: auto; }
.subtab {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13.5px;
  border-radius: 6px;
  white-space: nowrap;
}
.subtab:hover { color: var(--text); }
.subtab.active { background: var(--brand-soft); color: var(--brand); }

/* ---- Persona render ---- */
.persona-md {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 14px 16px;
  border-radius: 8px;
  max-height: 540px;
  overflow: auto;
}
.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.kv li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ---- Training samples ---- */
.distill-card { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.sample-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sample { background: var(--bg); border: 1px solid var(--border-soft); border-radius: 8px; padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.sample-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sample-body { white-space: pre-wrap; font-family: "SF Mono", "Menlo", monospace; font-size: 12.5px; line-height: 1.55; margin: 0; max-height: 240px; overflow: auto; color: var(--muted); }

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border-soft);
}
.badge.text { background: var(--brand-soft); color: var(--brand); border-color: rgba(111,158,255,.3); }
.badge.email { background: rgba(149, 110, 230, .14); color: #b89cf3; border-color: rgba(149, 110, 230, .35); }
.badge.image { background: var(--warn-soft); color: var(--warn); border-color: rgba(224,192,98,.3); }
.badge.sphere-professionale { background: rgba(80, 180, 255, .12); color: #7ec8ff; border-color: rgba(80, 180, 255, .3); }
.badge.sphere-personale { background: rgba(255, 145, 200, .12); color: #ffa3cc; border-color: rgba(255, 145, 200, .3); }
.badge.aud-esterna { background: rgba(109, 212, 154, .12); color: var(--success); border-color: rgba(109, 212, 154, .3); }
.badge.aud-interna { background: rgba(180, 180, 180, .12); color: var(--muted); border-color: rgba(180, 180, 180, .3); }
.badge.unclassified { background: var(--surface-2); color: var(--muted); border-color: var(--border); border-style: dashed; }
.badge.status-pending,
.badge.status-edited { background: var(--warn-soft); color: var(--warn); border-color: rgba(224,192,98,.3); }
.badge.status-tested { background: var(--success-soft); color: var(--success); border-color: rgba(109,212,154,.3); }
.badge.status-sent { background: var(--success-soft); color: var(--success); border-color: rgba(109,212,154,.3); }
.badge.status-failed { background: var(--danger-soft); color: var(--danger); border-color: rgba(224,98,106,.3); }
.badge.status-discarded { background: var(--surface-2); color: var(--muted); }
.badge.status-scheduled { background: var(--brand-soft); color: var(--brand); border-color: rgba(111,158,255,.3); }

/* ---- Draft preview ---- */
.preview-card { border-color: rgba(111, 158, 255, .35); }
.draft-readonly {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0;
}

/* ---- Modalità test (banner + output) ---- */
.test-banner {
  background: var(--warn-soft);
  border: 1px solid rgba(224, 192, 98, .35);
  color: var(--warn);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.discard-form { margin-top: 8px; }
.test-output-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.test-output-block h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.test-output {
  white-space: pre-wrap;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 13px;
  line-height: 1.65;
  background: #0b0d12;
  border: 1px solid rgba(109, 212, 154, .25);
  color: var(--text);
  padding: 16px 18px;
  border-radius: 8px;
  margin: 0 0 8px;
  max-height: 600px;
  overflow: auto;
}

/* ---- Tables ---- */
table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid th, table.grid td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-soft); }
table.grid th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
table.grid th:first-child { border-radius: 6px 0 0 0; }
table.grid th:last-child { border-radius: 0 6px 0 0; }
table.grid tbody tr:hover td { background: rgba(111,158,255,.04); }
table.grid tr.row-highlight { background: var(--brand-soft); }

/* ---- <details> styling (subdued cards) ---- */
.subdued-card { background: var(--surface-2); border-color: var(--border-soft); }
.subdued-card summary { cursor: pointer; user-select: none; padding: 4px 0; }
.subdued-card summary::-webkit-details-marker { color: var(--muted); }
.subdued-card[open] summary { margin-bottom: 12px; }

/* ---- Pipeline ---- */
.pipeline-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.pipeline-search {
  flex: 1;
  min-width: 200px;
  max-width: 340px;
}
.pipeline-filters select {
  width: auto;
  min-width: 160px;
}
.pipeline-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,.28);
}
.pipeline-table { min-width: 860px; border-radius: var(--radius); overflow: hidden; }
/* righe compatte */
.pipeline-table th { padding: 9px 14px; }
.pipeline-table td { padding: 7px 14px; border-bottom: 1px solid var(--border); }
/* separatori verticali tra colonne */
.pipeline-table th + th,
.pipeline-table td + td { border-left: 1px solid var(--border-soft); }
/* bordo inferiore thead più marcato */
.pipeline-table thead th { border-bottom: 2px solid var(--border); }
/* ultima riga: niente bordo inferiore */
.pipeline-table tbody tr:last-child td { border-bottom: none; }
.pipeline-row td { transition: background .1s ease; }
.contact-name-link { color: var(--text); font-weight: 600; }
.contact-name-link:hover { color: var(--brand); }
.deal-value { font-weight: 700; color: var(--text); }
/* deal multipli nella cella della pipeline */
.pipeline-deal { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pipeline-deal + .pipeline-deal { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border-soft); }
.pipeline-deal-name { min-width: 0; }
.pipeline-deal-total { margin-top: 7px; }
.deal-description-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}
.deal-line-items-text {
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 8px 12px;
}
.quote-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.quote-item {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}
.quote-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- Conversazione email (thread) ---- */
.email-thread { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.email-msg {
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--bg);
  min-width: 0;            /* item di grid: si restringe sotto la larghezza del contenuto */
  overflow-wrap: anywhere; /* ereditato: spezza URL/stringhe lunghe, niente overflow orizzontale */
  word-break: break-word;
}
.email-msg.email-outbound { border-left-color: var(--brand); }
.email-msg.email-inbound { border-left-color: var(--success); }
.email-msg-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.email-msg-subject { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.email-msg-body {
  white-space: pre-wrap;
  font: 12.5px/1.6 "SF Mono", "Menlo", monospace;
  color: var(--muted);
  margin: 0;
  max-height: 340px;
  overflow: auto;
}
.badge.email-dir-out { background: var(--brand-soft); color: var(--brand); border-color: rgba(111,158,255,.3); }
.badge.email-dir-in { background: var(--success-soft); color: var(--success); border-color: rgba(109,212,154,.3); }
.text-success { color: var(--success); }
.text-warn { color: var(--warn); }
.text-danger { color: var(--danger); }
.font-medium { font-weight: 500; }

/* ---- Overview section labels ---- */
.overview-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-soft);
}

/* ---- Stage badges ---- */
.stage-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid;
}
.stage-lead       { background: rgba(111,158,255,.14); color: var(--brand);   border-color: rgba(111,158,255,.3); }
.stage-qualified  { background: rgba(80,210,210,.12);  color: #6fe0e0;        border-color: rgba(80,210,210,.3); }
.stage-proposal   { background: rgba(149,110,230,.14); color: #b89cf3;        border-color: rgba(149,110,230,.3); }
.stage-decision   { background: rgba(224,192,98,.12);  color: var(--warn);    border-color: rgba(224,192,98,.3); }
.stage-contract   { background: rgba(224,140,60,.12);  color: #e8a06e;        border-color: rgba(224,140,60,.3); }
.stage-won        { background: var(--success-soft);   color: var(--success); border-color: rgba(109,212,154,.3); }
.stage-lost       { background: var(--danger-soft);    color: var(--danger);  border-color: rgba(224,98,106,.3); }
.stage-default    { background: var(--surface-2); color: var(--muted); border-color: var(--border-soft); }

/* ---- Silence badges ---- */
.silence-badge    { font-size: 12px; white-space: nowrap; }
.silence-ok       { background: var(--success-soft);   color: var(--success); border-color: rgba(109,212,154,.3); }
.silence-warn     { background: var(--warn-soft);       color: var(--warn);    border-color: rgba(224,192,98,.3); }
.silence-alert    { background: var(--danger-soft);     color: var(--danger);  border-color: rgba(224,98,106,.3); }
.silence-never    { background: var(--surface-2); color: var(--muted); border-color: var(--border-soft); border-style: dashed; }

/* ---- Contact detail head ---- */
.contact-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.contact-head .container { margin-top: 14px; margin-bottom: 0; padding-bottom: 0; }
.contact-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 14px;
}
.contact-identity h1 { margin-bottom: 4px; }
.contact-meta-line { display: flex; gap: 6px; flex-wrap: wrap; }
.contact-deal-card {
  min-width: 220px;
  text-align: right;
}
.deal-label { margin-bottom: 2px; }
.deal-name { font-weight: 600; margin-bottom: 4px; }
.deal-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

/* ---- Context preview (contact generate) ---- */
.context-preview {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  margin-bottom: 4px;
}

/* ---- Draft queue ---- */
.draft-queue { display: grid; gap: 16px; }
.draft-queue-item { padding: 20px 24px; }
.draft-queue-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.draft-queue-to { font-size: 15px; font-weight: 500; }
.draft-queue-subject { margin-bottom: 10px; }
.draft-queue-body {
  white-space: pre-wrap;
  font: 12.5px/1.6 "SF Mono", "Menlo", monospace;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0;
  max-height: 160px;
  overflow: auto;
}

/* ---- Settings steps ---- */
.settings-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.settings-step-head h2 { margin: 0; flex: 1; }
.settings-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(111, 158, 255, .35);
}
.settings-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}

/* ---- Settings owner map (table layout) ---- */
.owner-map-table { border-radius: 8px; overflow: hidden; }
.owner-map-table td { vertical-align: middle; padding: 11px 14px; }
.owner-map-table thead th { padding: 9px 14px; }
.owner-map-table tr.owner-mapped td:first-child strong { color: var(--brand); }
.owner-map-table tr.owner-mapped { background: rgba(111, 158, 255, .05); }
.owner-map-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.owner-map-form-row select { flex: 1; min-width: 0; }
/* pipeline deal cell link */
.deal-cell-link { color: inherit; display: block; text-decoration: none; }
.deal-cell-link:hover .stage-badge { filter: brightness(1.2); }
.deal-cell-link:hover .muted { color: var(--text); }

/* ---- Settings two-column grid (steps 3+4) ---- */
.settings-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}
.settings-two-col > .card { margin-bottom: 0; }

/* ---- Constrain forms in wide containers ---- */
.form-max { max-width: 520px; }

@media (max-width: 640px) {
  .owner-map-table td { padding: 10px 10px; }
  .owner-map-form-row { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .settings-two-col { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .settings-two-col > .card { margin-bottom: 20px; height: auto; }
}

/* ---- Mobile ---- */
@media (max-width: 720px) {
  .topbar { padding: 0 16px; height: 50px; gap: 14px; }
  .brand { font-size: 15px; }
  .container { margin: 16px auto; padding: 0 16px; }
  .card { padding: 18px 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .agent-head-row { flex-direction: column; }
  .agent-meta { text-align: left; }
  .contact-head-row { flex-direction: column; }
  .contact-deal-card { text-align: left; min-width: unset; }
  .deal-meta { justify-content: flex-start; }
  .pipeline-search { max-width: 100%; }
  .draft-queue-head { flex-direction: column; }
  .form-max { max-width: 100%; }
}
