.crm {
  --crm-accent: var(--potok-orange, #f26522);
  --crm-orange-text: #9f4011;
  --crm-inbound: #3d77b7;
  --crm-outbound: #d36b29;
  --crm-paper: #fff;
  --crm-soft: #f6f6f5;
  --crm-line: var(--potok-line, #e7e7e4);
  --crm-muted: #666662;
  --crm-red: #a82720;
  min-width: 0;
  max-width: 1750px;
  margin-inline: auto;
  color: var(--potok-ink, #232323);
  font-size: 14px;
  line-height: 1.45;
}
.crm [hidden] { display: none !important; }
.crm h1,.crm h2,.crm h3,.crm h4,.crm p { margin: 0; }
.crm h2 { font-size: 21px; letter-spacing: -.35px; }
.crm h3 { font-size: 16px; }
.crm h4 { font-size: 13px; margin-bottom: 7px; }
.crm small { color: var(--crm-muted); line-height: 1.45; }
.crm :is(button,a,input,textarea,select,summary):focus-visible { outline: 2px solid #866243; outline-offset: 3px; }
.crm-header,.crm-header-actions,.crm-inline-actions,.crm-drawer-actions,.crm-drawer-totals { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.crm-header { justify-content: space-between; gap: 16px; padding: 12px 18px; background: white; border: 1px solid var(--crm-line); border-radius: 9px 9px 0 0; }
.crm-standalone { width: 100%; max-width: none; min-height: 100dvh; }
.crm-standalone .crm-header { position: sticky; z-index: 20; top: 0; padding-inline: 22px; min-height: 64px; border-width: 0 0 1px; border-radius: 0; }
.crm-brand-group,.crm-brand { display: flex; align-items: center; gap: 12px; color: #262623; flex: 0 0 auto; }
.crm-brand img { width: 76px; height: auto; flex: 0 0 auto; }
.crm-brand span { border-left: 1px solid var(--crm-line); padding-inline-start: 12px; font-weight: 700; font-size: 19px; }
.crm-brand-module { border-left: 1px solid var(--crm-line); padding-inline-start: 12px; font-weight: 700; color: #534f49; }
.crm-menu-toggle { display: none !important; }
.crm-search-entry { display: flex; flex: 1 1 185px; max-width: 500px; align-items: center; gap: 8px; padding: 7px 9px; min-height: 37px;
  color: #5b5952; text-align: left; background: #f8f8f6; border: 1px solid var(--crm-line); border-radius: 7px; white-space: nowrap; min-width: 0; }
.crm-search-entry:hover { border-color: #cec8bf; background: #fff; }
.crm-search-entry svg,.crm-rail svg { width: 17px; height: 17px; }
.crm-search-entry span { overflow: hidden; text-overflow: ellipsis; }
.crm-search-entry kbd { margin-left: auto; font: 11px Arial,sans-serif; border: 1px solid #dfded8; border-radius: 4px; background: white; padding: 2px 4px; }
.crm-account { position: relative; padding-inline-start: 6px; }
.crm-account summary,.crm-person { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.crm-account summary::-webkit-details-marker { display: none; }
.crm-person { cursor: inherit; }
.crm-avatar,.crm-person > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto;
  background: #eceee8; color: #4e6254; border-radius: 50%; font-size: 11px; font-weight: 700; }
.crm-account-copy { display: grid; line-height: 1.3; font-size: 12px; max-width: 23ch; }
.crm-account-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-account-menu { position: absolute; z-index: 25; right: 0; top: calc(100% + 8px); border: 1px solid var(--crm-line); box-shadow: 0 8px 20px #2222;
  border-radius: 8px; padding: 5px; background: #fff; display: grid; width: max-content; }
.crm-account-menu :is(a,button) { padding: 8px 10px; color: #333; text-align: left; background: transparent; border: 0; border-radius: 5px; }
.crm-account-menu :is(a,button):hover { background: #fff2e8; }
.crm-layout { display: grid; grid-template-columns: 219px minmax(0,1fr); align-items: stretch; min-height: 520px; }
.crm-standalone .crm-layout { min-height: calc(100dvh - 64px); }
.crm-rail { background: #fff; border: 1px solid var(--crm-line); border-top: 0; display: flex; flex-direction: column;
  justify-content: space-between; gap: 28px; padding: 14px 10px; min-width: 0; }
.crm-standalone .crm-rail { position: sticky; top: 64px; align-self: start; min-height: calc(100dvh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; border-width: 0 1px 0 0; }
.crm-rail nav { display: grid; gap: 4px; }
.crm-rail button[data-page] { display: flex; align-items: center; gap: 9px; text-align: left; width: 100%; min-height: 39px; padding: 7px 10px;
  border: 0; border-radius: 7px; border-inline-start: 3px solid transparent; background: transparent; color: #494843; font: 600 13px Arial,sans-serif; }
.crm-rail button[data-page]:hover { background: #f5f5f2; }
.crm-rail button[data-page][aria-current] { background: #fff1e8; color: var(--crm-orange-text); border-inline-start-color: var(--crm-accent); }
.crm-rail button b { margin-left: auto; border-radius: 10px; padding: 3px 6px; background: #ecece8; color: #555; font: 700 11px Arial,sans-serif; }
.crm-rail button[data-page="day"] b { background: #ffede7; color: var(--crm-red); }
.crm-rail-divider { margin: 11px 0 3px; padding: 10px 11px 0; border-top: 1px solid var(--crm-line); font-size: 11px; color: var(--crm-muted); }
.crm-rail-shade { display: none; }
.crm-week-plan { background: #faf9f6; border: 1px solid var(--crm-line); border-radius: 8px; padding: 10px; }
.crm-week-plan > span { display: block; color: #4e4c46; font-weight: 600; font-size: 12px; margin-bottom: 3px; }
.crm-week-plan > strong { font-size: 17px; }
.crm-week-plan progress { display: block; margin: 7px 0; }
.crm-main { min-width: 0; padding: 22px clamp(14px,2vw,34px) 28px; }
.crm-btn,.crm-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  appearance: none; min-height: 37px; padding: 7px 11px; border: 1px solid #deded9; border-radius: 7px;
  background: var(--crm-paper); color: #2c2b28; font: 600 13px/1.2 Arial, sans-serif; white-space: nowrap;
  text-decoration: none; cursor: pointer;
}
.crm-btn:hover,.crm-icon-btn:hover { background: #f6f4f0; border-color: #c9c7c0; }
.crm-btn.primary { background: var(--crm-accent); border-color: var(--crm-accent); color: #23160f; }
.crm-btn.primary:hover { background: #ff7d3f; border-color: #e96325; }
.crm-btn svg,.crm-icon-btn svg,.crm-priority-icon svg,.crm-transition-label svg { width: 17px; height: 17px; }
.crm-icon-btn { width: 38px; padding: 0; position: relative; }
.crm-icon-btn [data-bell-count] {
  position: absolute; min-width: 16px; height: 16px; top: -5px; right: -5px; padding-inline: 3px;
  border-radius: 8px; background: var(--crm-red); color: #fff; font-size: 9px; line-height: 16px;
}
.crm-small { min-height: 31px; padding: 5px 8px; font-size: 12px; }
.crm-small svg { width: 14px; height: 14px; }
.crm-tabs,.crm-detail-tabs,.crm-stepper { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: thin; }
.crm-tabs { border-bottom: 1px solid #dcdcd7; margin-bottom: 18px; }
.crm-tabs button,.crm-detail-tabs button,.crm-stepper button {
  flex: 0 0 auto; border: 0; background: transparent; color: #575650; font: 600 13px Arial, sans-serif;
  min-height: 42px; padding: 9px 13px; white-space: nowrap; border-bottom: 2px solid transparent;
}
.crm-tabs button:hover,.crm-detail-tabs button:hover { background: #f0efeb; }
.crm-tabs button[aria-current],.crm-detail-tabs button[aria-pressed="true"] { color: var(--crm-orange-text); border-color: var(--crm-accent); }
.crm-content { min-width: 0; }
.crm-section-heading { margin: 0 0 17px; display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.crm-section-heading h1 { font-size: clamp(26px,2.7vw,36px); line-height: 1.12; letter-spacing: -.85px; }
.crm-section-heading p { color: var(--crm-muted); margin-bottom: 6px; font-size: 13px; }
.crm-panel { background: var(--crm-paper); border: 1px solid var(--crm-line); border-radius: 10px; min-width: 0; }
.crm-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--crm-line); }
.crm-panel-head h2 { font-size: 16px; }
.crm-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.crm-kpi { display: flex; flex-direction: column; gap: 7px; padding: 16px; min-height: 117px; }
.crm-kpi > span { font-weight: 600; color: #4e4c46; }
.crm-kpi > strong { font-size: clamp(20px,2vw,30px); letter-spacing: -.7px; line-height: 1.15; }
.crm-kpi small { margin-top: auto; }
.crm-money { white-space: nowrap; font-variant-numeric: tabular-nums; }
.crm progress { appearance: none; width: 100%; height: 7px; border: 0; border-radius: 9px; background: #eae8e2; color: var(--crm-accent); }
.crm progress::-webkit-progress-bar { background: #eae8e2; border-radius: 9px; }
.crm progress::-webkit-progress-value { background: var(--crm-accent); border-radius: 9px; }
.crm progress::-moz-progress-bar { background: var(--crm-accent); border-radius: 9px; }
.crm-day-grid { display: grid; grid-template-columns: minmax(0,2.65fr) minmax(225px,1fr); align-items: start; gap: 14px; }
.crm-day-side,.crm-stacked { display: grid; gap: 14px; min-width: 0; }
.crm-tip { background: #fff8f2; border-color: #eedacc; }
.crm-tip .crm-panel-head { border-color: #eedacc; }
.crm-tip p,.crm-knowledge-row,.crm-empty { padding: 14px 17px; }
.crm-empty p { margin-top: 4px; color: var(--crm-muted); }
.crm-priority-row { display: grid; grid-template-columns: auto minmax(110px,1fr) auto; align-items: start; gap: 9px 12px; padding: 12px 16px; border-bottom: 1px solid var(--crm-line); }
.crm-priority-row:last-child,.crm-side-row:last-child,.crm-list-row:last-child { border-bottom: 0; }
.crm-priority-row .crm-inline-actions { grid-column: 2 / -1; }
.crm-priority-icon { width: 33px; height: 33px; border-radius: 8px; display: grid; place-items: center; color: #665f55; background: #f3f1ed; }
.crm-priority-icon.is-urgent { color: var(--crm-orange-text); background: #fff0e6; }
.crm-priority-text,.crm-priority-value,.crm-side-row > span,.crm-list-row small { display: grid; gap: 2px; min-width: 0; }
.crm-priority-text span,.crm-priority-text small { overflow-wrap: anywhere; }
.crm-priority-value { text-align: right; font-weight: 700; }
.crm-late,.crm small.crm-late { color: var(--crm-red) !important; }
.crm-side-row,.crm-list-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 17px;
  width: 100%; text-align: left; border: 0; background: transparent; border-bottom: 1px solid var(--crm-line); overflow-wrap: anywhere;
}
.crm-side-row:hover,.crm-result:hover,.crm-text-btn:hover { color: var(--crm-orange-text); background: #fff8f2; }
.crm-pill { display: inline-flex; border-radius: 20px; padding: 2px 8px; align-items: center; font-size: 11px; font-weight: 600; background: #efefec; color: #55544d; }
.crm-pill.inbound { color: #214f80; background: #e8f1fb; }
.crm-pill.outbound,.crm-pill.warning { color: #8b3d0b; background: #fff0e6; }
.crm-pill.danger { color: #97231d; background: #fff0ed; }
.crm-filters { display: flex; flex-wrap: wrap; align-items: end; padding: 12px 14px; gap: 10px; margin-bottom: 13px; }
.crm-field { display: grid; gap: 4px; align-content: start; font-size: 12px; font-weight: 600; color: #45443e; min-width: 0; }
.crm-field :is(input,select,textarea) {
  width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid #d9d8d2; border-radius: 6px;
  background: white; color: #22211e; font: 400 14px/1.35 Arial,sans-serif;
}
.crm-field textarea { resize: vertical; }
.crm-filter-search { flex: 1 1 210px; }
.crm-filters .crm-field:not(.crm-filter-search) { max-width: 245px; }
.crm-filters[data-alone] .crm-field { max-width: none; }
.crm-board { display: grid; grid-auto-flow: column; grid-auto-columns: 246px; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; min-height: 400px; }
.crm-column { min-width: 0; background: #f0f0ed; border: 1px solid #e2e2de; border-radius: 9px; }
.crm-column.is-drop-target { background: #fff1e7; border-color: var(--crm-accent); }
.crm-column header { display: grid; align-content: start; gap: 5px; min-height: 75px; padding: 10px 12px; border-bottom: 1px solid #dddcd7; }
.crm-column header > div { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.crm-column header h3 { font-size: 14px; line-height: 1.25; margin: 0; }
.crm-column header small span { margin-inline: 4px; }
.crm-column-body { display: grid; align-content: start; gap: 8px; padding: 8px; max-height: 68vh; overflow-y: auto; }
.crm-column-empty { color: var(--crm-muted); padding: 8px 5px; font-size: 13px; }
.crm-card {
  display: grid; gap: 4px; width: 100%; text-align: left; border: 1px solid #ddded8;
  border-inline-start: 3px solid var(--crm-outbound); border-radius: 7px; background: white;
  padding: 9px; color: #282723; cursor: grab; overflow-wrap: anywhere;
}
.crm-card.inbound { border-inline-start-color: var(--crm-inbound); }
.crm-card:hover { box-shadow: 0 2px 8px #17171714; }
.crm-card-meta { display: flex; justify-content: space-between; gap: 5px; font-size: 11px; color: var(--crm-muted); }
.crm-card-meta .crm-pill { padding-inline: 5px; }
.crm-card-step { border-top: 1px solid var(--crm-line); padding-top: 5px; color: #585750; font-size: 12px; }
.crm-table-wrap { overflow: auto; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; background: white; }
.crm-table th,.crm-table td { padding: 11px 14px; border-bottom: 1px solid var(--crm-line); vertical-align: top; }
.crm-table th { color: #55534d; background: #f8f8f6; font-weight: 600; white-space: nowrap; }
.crm-table tbody tr:last-child td { border-bottom: 0; }
.crm-table tr:hover td { background: #fdfcf9; }
.crm-table td small { display: block; margin-top: 4px; }
.crm-table td progress { width: 95px; }
.crm-sort,.crm-text-btn { padding: 0; border: 0; color: inherit; background: transparent; font-weight: 700; text-align: left; }
.crm-text-btn { text-decoration: underline; text-decoration-color: #cfad97; }
.crm-pager { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px; color: var(--crm-muted); }
.crm-tenders,.crm-analytics-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.crm-tender { padding: 14px; }
.crm-tender .crm-panel-head { padding: 0 0 9px; margin-bottom: 10px; }
.crm-tender h3 { margin-bottom: 4px; }
.crm-tender p { color: var(--crm-muted); }
.crm-tender-facts { display: flex; justify-content: space-between; padding-block: 9px; }
.crm-checklist { display: grid; gap: 7px; margin-bottom: 12px; }
.crm-checklist label,.crm-check { display: flex; align-items: start; gap: 7px; font-size: 13px; }
.crm input[type="checkbox"],.crm input[type="radio"] { margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--crm-accent); }
.crm-bar-row { display: grid; grid-template-columns: minmax(105px,1.2fr) minmax(0,1fr) 30px; align-items: center; gap: 8px; padding: 7px 14px; font-size: 12px; }
.crm-knowledge-row { border-bottom: 1px solid var(--crm-line); }
.crm-knowledge-row:last-child { border-bottom: 0; }
.crm-knowledge-row summary { cursor: pointer; font-weight: 600; }
.crm-knowledge-row p { margin-top: 9px; }
.crm-error { border: 1px solid #eac5bd; background: #fff0ed; color: #8d251c; border-radius: 7px; padding: 10px 13px; }
.crm-loading,.crm-retry { padding: 15px; color: var(--crm-muted); }
.crm-modal,.crm-drawer { overflow: hidden; }
.crm-modal { width: min(640px,calc(100vw - 24px)); max-width: none; }
.crm-modal-head,.crm-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 17px; border-bottom: 1px solid var(--crm-line); }
.crm-modal-foot { border: 0; border-top: 1px solid var(--crm-line); justify-content: flex-end; }
.crm-modal-body { display: grid; align-content: start; gap: 11px; padding: 16px 18px; overflow: auto; max-height: calc(100dvh - 170px); }
.crm-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.crm-kind-choice,.crm-new-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.crm-kind-choice { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.crm-kind-choice legend { font-weight: 600; margin-bottom: 5px; }
.crm-kind-choice label { display: grid; grid-template-columns: auto 1fr; gap: 3px 6px; border: 1px solid #deded7; border-inline-start: 3px solid var(--crm-outbound); border-radius: 7px; padding: 8px; cursor: pointer; }
.crm-kind-choice label.inbound { border-inline-start-color: var(--crm-inbound); }
.crm-kind-choice label:has(:checked) { background: #fff5ec; }
.crm-kind-choice label small { grid-column: 2; }
.crm-new-fields { display: grid; gap: 10px; }
.crm-drawer {
  inset: 0 0 0 auto; height: 100dvh; max-height: none; width: min(1050px,95vw); max-width: 100vw;
  margin: 0; border-radius: 0; border-block: 0; border-right: 0; padding: 0;
}
.crm-drawer[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.crm-drawer-head { padding: 16px 21px; border-bottom: 1px solid var(--crm-line); }
.crm-drawer-overline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--crm-muted); font-size: 12px; }
.crm-drawer-overline .crm-icon-btn { margin-left: auto; }
.crm-drawer-head h2 { font-size: 27px; overflow-wrap: anywhere; }
.crm-drawer-head > p { color: var(--crm-muted); overflow-wrap: anywhere; }
.crm-drawer-totals { gap: 8px 16px; margin-top: 10px; }
.crm-drawer-totals span strong { margin-inline-start: 5px; }
.crm-response { color: #435165; font-size: 12px; }
.crm-drawer-body { min-height: 0; overflow: auto; padding: 14px 21px 20px; background: #fcfcfb; }
.crm-stepper { margin-bottom: 10px; }
.crm-stepper button { border: 1px solid var(--crm-line); background: var(--crm-paper); border-radius: 6px; min-height: 32px; padding: 5px 8px; font-size: 12px; }
.crm-stepper button:hover,.crm-stepper button.is-active { color: var(--crm-orange-text); background: #fff0e7; border-color: #eac3aa; opacity: 1; }
.crm-stepper button.is-reached { color: #326449; background: #eaf2eb; border-color: #d3e3d7; }
.crm-next-step { position: sticky; z-index: 1; top: -14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 11px 0; background: #fff5eb; border: 1px solid #ecd5c3; border-radius: 8px; padding: 8px 11px; }
.crm-next-step div { display: grid; gap: 3px; overflow-wrap: anywhere; }
.crm-next-step.is-late { border-color: #dca39a; background: #fff0ed; }
.crm-next-step form { display: grid; grid-template-columns: minmax(120px,1fr) auto auto; align-items: end; gap: 8px; flex: 1; }
.crm-record-fields { padding: 0; margin: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.crm-record-fields input[readonly] { background: #f9f9f6; color: #595852; }
.crm-drawer-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(220px,1fr); gap: 13px; }
.crm-drawer-main,.crm-assistant { min-width: 0; }
.crm-drawer-main { background: white; border: 1px solid var(--crm-line); border-radius: 9px; padding: 11px; }
.crm-detail-tabs { border-bottom: 1px solid var(--crm-line); margin-bottom: 10px; }
.crm-detail-tabs button { min-height: 33px; }
.crm-drawer-main form { display: grid; gap: 10px; max-height: none; }
.crm-drawer-main form button { justify-self: start; }
.crm-facts { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 0 0 10px; }
.crm-facts dt { color: var(--crm-muted); font-size: 12px; }
.crm-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.crm-assistant { background: #f5f5f1; border: 1px solid var(--crm-line); padding: 11px; border-radius: 9px; align-self: start; }
.crm-assistant-box { background: var(--crm-paper); padding: 10px; margin-top: 7px; border: 1px solid var(--crm-line); border-radius: 7px; }
.crm-assistant-box p + p,.crm-assistant-box details + details { margin-top: 6px; }
.crm-assistant-box ul { padding-inline-start: 17px; margin: 4px 0; }
.crm-assistant-box summary { cursor: pointer; }
.crm-script { white-space: pre-wrap; overflow-wrap: anywhere; margin-block: 6px !important; }
.crm-drawer-error { padding: 19px; }
.crm-receipt { border: 1px solid #d8d8d0; padding: 10px; border-radius: 7px; min-width: 0; display: grid; gap: 6px; margin: 0; }
.crm-receipt legend { font-weight: 600; }
.crm-transition-label { display: flex; align-items: center; gap: 6px; overflow-wrap: anywhere; }
.crm-inline-warning { padding: 9px; background: #fff5e8; border: 1px solid #eacfb2; border-radius: 7px; }
.crm-inline-warning ul { margin-top: 4px; }
.crm-suggestions,.crm-search-results { max-height: 270px; overflow: auto; }
.crm-duplicate { padding: 7px; border-bottom: 1px solid var(--crm-line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.crm-duplicate small,.crm-result small { display: block; }
.crm-duplicate > div:last-child { width: 100%; }
.crm-result { border: 0; border-bottom: 1px solid var(--crm-line); background: white; text-align: left; padding: 8px 6px; width: 100%; overflow-wrap: anywhere; }
@media(max-width: 1160px) {
  .crm-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .crm-day-grid { grid-template-columns: minmax(0,2fr) minmax(185px,1fr); }
}
@media(max-width: 700px) {
  .crm-day-grid,.crm-analytics-grid,.crm-tenders,.crm-drawer-grid { grid-template-columns: minmax(0,1fr); }
  .crm-header { align-items: flex-start; gap: 8px; }
  .crm-header h1 { font-size: 29px; }
  .crm-header-actions { gap: 5px; align-self: flex-end; }
  .crm-search-button { width: 36px; padding: 0; }
  .crm-search-button span { position: absolute; clip-path: inset(50%); }
  .crm-kpis { gap: 7px; }
  .crm-kpi { padding: 10px; min-height: 98px; font-size: 12px; }
  .crm-kpi small { font-size: 11px; }
  .crm-tabs { margin-bottom: 12px; }
  .crm-tabs button { padding-inline: 9px; }
  .crm-filters { padding: 9px; }
  .crm-filters .crm-field { max-width: 100% !important; }
  .crm-filters .crm-field:not(.crm-filter-search) { min-width: min(125px,100%); }
  .crm-drawer { width: 100vw; }
  .crm-drawer-head,.crm-drawer-body { padding: 11px; }
  .crm-next-step { top: -11px; }
  .crm-priority-row { padding: 8px; gap: 6px; }
  .crm-priority-row .crm-inline-actions { grid-column: 1 / -1; }
  .crm-drawer-totals { font-size: 12px; }
}
@media(min-width: 1250px) {
  .crm-standalone .crm-priority-row { grid-template-columns: auto minmax(160px,1fr) auto minmax(200px,auto); align-items: center; }
  .crm-standalone .crm-priority-row .crm-inline-actions { grid-column: auto; justify-content: end; }
}
@media(max-width: 900px) {
  .crm-layout { display: block; }
  .crm-menu-toggle { display: inline-flex !important; }
  .crm-rail,.crm-standalone .crm-rail { position: fixed; inset: 0 auto 0 0; width: min(260px,82vw); min-height: 100dvh;
    max-height: 100dvh; z-index: 55; overflow: auto; visibility: hidden; transform: translateX(-100%); transition: transform .16s ease; }
  .crm-rail-open .crm-rail { visibility: visible; transform: translateX(0); }
  .crm-rail-open .crm-rail-shade { display: block; position: fixed; z-index: 54; inset: 0; border: 0; background: #27252166; }
  .crm-account-copy { display: none; }
}
@media(max-width: 620px) {
  .crm-standalone .crm-header,.crm-header { padding: 8px 10px; gap: 7px; min-height: 55px; }
  .crm-standalone .crm-header { position: static; }
  .crm-brand-group,.crm-brand { gap: 7px; }
  .crm-brand img { width: 56px; }
  .crm-header .crm-brand span { display: none; }
  .crm-brand-module { padding-inline-start: 7px; font-size: 12px; }
  .crm-header-actions { gap: 4px; }
  .crm-header .crm-btn { padding-inline: 6px; }
  .crm-open-domain { order: 5; }
  .crm-header [data-new] > span { display: none; }
  .crm-header .crm-icon-btn,.crm-header [data-new] { width: 34px; min-height: 34px; }
  .crm-avatar { width: 30px; height: 30px; }
  .crm-account { padding-inline-start: 0; }
  .crm-search-entry { flex: 0 0 32px; justify-content: center; width: 32px; min-height: 34px; padding: 0; background: white; }
  .crm-search-entry span,.crm-search-entry kbd { display: none; }
  .crm-main { padding: 13px 12px 20px; }
  .crm-section-heading h1 { font-size: 26px; }
  .crm-next-step form { grid-template-columns: minmax(0,1fr) auto; }
  .crm-next-step form .crm-field:first-child { grid-column: 1 / -1; }
}
