/* Refinements retain the existing rail, columns, presswall and page structure. */
html[data-crm-ui] { --crm-toolbar-height: 64px; }
html[data-crm-ui] [data-crm-toolbar] {
  box-sizing: border-box;
  min-height: var(--crm-toolbar-height);
  height: auto;
  flex-shrink: 0;
  gap: 12px;
  border-bottom: 1px solid var(--crm-border);
}
html[data-crm-ui] [data-crm-toolbar] h1 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0;
}
html[data-crm-ui] [data-crm-toolbar] button {
  min-width: 36px;
  min-height: 36px;
  flex-shrink: 0;
}
html[data-crm-ui] [data-crm-toolbar] svg { flex-shrink: 0; }
html[data-crm-ui] [data-crm-toolbar] > div { min-width: 0; }
html[data-crm-ui] [data-crm-navigation] > button {
  height: var(--crm-toolbar-height);
  min-height: var(--crm-toolbar-height);
}
html[data-crm-ui] [data-crm-navigation] nav button { letter-spacing: 0; }
html[data-crm-ui] [data-crm-navigation] > button,
html[data-crm-ui] [data-crm-navigation] nav button { color: rgba(255, 255, 255, .82) !important; }
html[data-crm-ui] [data-crm-navigation] nav button:is(:hover, :focus-visible),
html[data-crm-ui] [data-crm-navigation] nav button:has(.text-white) { color: #fff !important; }
html[data-crm-ui] [data-crm-navigation] nav button > span { color: inherit !important; }
html[data-crm-ui] [data-crm-navigation] nav button > svg { margin: 0; }
html[data-crm-ui] [data-crm-navigation] nav button > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 16px;
  line-height: 1.25;
}
html[data-crm-ui] [data-crm-chat] { min-width: 0; }
html[data-crm-ui] [data-crm-chat] [data-crm-toolbar] { padding-block: 8px; }
html[data-crm-ui] [data-crm-chat] [data-crm-composer] {
  padding: 10px 16px 12px;
  flex-shrink: 0;
}
html[data-crm-ui] [data-crm-composer-row] { max-width: none; padding: 0; gap: 8px; }
html[data-crm-ui] [data-crm-composer-field] {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 18px;
  box-shadow: none;
}
html[data-crm-ui] [data-crm-composer] textarea {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  line-height: 22px;
  padding: 0 !important;
}
html[data-crm-ui] [data-crm-composer] textarea:focus-visible {
  outline: none !important;
}
html[data-crm-ui] [data-crm-composer-field]:focus-within {
  border-color: var(--crm-brand);
  box-shadow: 0 0 0 2px rgb(0 82 155 / 12%);
}
html[data-crm-ui] [data-crm-composer-row] > button:not(.hidden) {
  width: 44px;
  height: 44px;
  padding: 9px;
}
html[data-crm-ui] [data-crm-composer-row] > button svg { width: 24px; height: 24px; }
html[data-crm-ui] [data-crm-messages] { scrollbar-gutter: stable; }
html[data-crm-ui] [data-crm-messages] p,
html[data-crm-ui] .markdown-body { overflow-wrap: anywhere; word-break: normal; }
html[data-crm-ui] .markdown-body :where(pre, table) { max-width: 100%; overflow-x: auto; }
html[data-crm-ui] .markdown-body pre { white-space: pre-wrap; }
html[data-crm-ui] .crm-forms-editor-pane [data-form-toolbar] {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}
html[data-crm-ui] .crm-forms-editor-pane input:is([aria-label="Текст кнопки отправки"],[aria-label="Сообщение после отправки формы"]) {
  background-color: inherit !important;
  color: inherit !important;
  border-color: color-mix(in srgb, currentColor 35%, transparent) !important;
  box-shadow: none !important;
}
html[data-crm-ui] .crm-forms-editor-pane input:is([aria-label="Текст кнопки отправки"],[aria-label="Сообщение после отправки формы"])::placeholder {
  color: currentColor;
  opacity: .7;
}
html[data-crm-ui] .crm-forms-editor-pane input:is([aria-label="Текст кнопки отправки"],[aria-label="Сообщение после отправки формы"]):focus-visible {
  outline-color: currentColor !important;
}
@media (max-width: 767px) {
  html[data-crm-ui] { --crm-toolbar-height: 60px; }
  html[data-crm-ui] [data-crm-toolbar] { gap: 8px; }
  html[data-crm-ui] [data-crm-toolbar] button { min-width: 44px; min-height: 44px; }
  html[data-crm-ui] [data-crm-chat] [data-crm-composer] { padding: 8px 10px max(10px, env(safe-area-inset-bottom)); }
}

.crm-skeleton {
  --skeleton-shift: -110%;
  position: relative;
  box-sizing: border-box;
  width: 100%; min-width: 0;
  padding: 20px;
  pointer-events: none;
}
.crm-skeleton *, .crm-skeleton *::after { box-sizing: border-box; }
.crm-skeleton-content { min-width: 0; }
.crm-skeleton-sr {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.crm-skeleton-shape {
  display: block; position: relative; overflow: hidden;
  flex-shrink: 0; border-radius: 5px;
  background: #e4e9ef;
}
.crm-skeleton-shape::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgb(255 255 255 / 75%) 48%, transparent 100%);
  transform: translateX(var(--skeleton-shift));
}
.crm-skeleton[data-reduced-motion] .crm-skeleton-shape::after { display: none; }
.crm-skeleton-line { height: 12px; max-width: 100%; }
.crm-skeleton-title { height: 18px; }
.crm-skeleton-number { height: 30px; }
.crm-skeleton-lines { display: grid; gap: 12px; width: 100%; }
.crm-skeleton-header { display: grid; gap: 10px; margin-bottom: 24px; min-height: 44px; }
.crm-skeleton-list { display: grid; }
.crm-skeleton-list-row { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #edf0f3; }
.crm-skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.crm-skeleton-list-body { display: grid; gap: 12px; flex: 1; min-width: 0; }
.crm-skeleton-form { display: grid; gap: 22px; width: min(100%, 880px); }
.crm-skeleton-field { display: grid; gap: 10px; }
.crm-skeleton-input { height: 44px; width: 100%; }
.crm-skeleton-action { width: 160px; height: 40px; }
.crm-skeleton--text, .crm-skeleton--summary { padding: 12px 0; }
.crm-skeleton-chat { display: grid; gap: 20px; padding: 10px 0; }
.crm-skeleton-bubble { width: min(76%, 420px); padding: 18px; background: #fff; border-radius: 10px; }
.crm-skeleton-bubble.is-outgoing { margin-left: auto; background: #eaf5e7; }
.crm-skeleton--chat { flex: 1; background: transparent; }
.crm-skeleton-table-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr; gap: 20px; padding: 22px 12px; border-bottom: 1px solid #edf0f3; }
.crm-skeleton-table-row:first-child { background: #f5f7fa; }
.crm-skeleton-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.crm-skeleton-stat { display: grid; gap: 16px; padding: 20px; background: #fff; border: 1px solid #e4e9ef; border-radius: 8px; }
.crm-skeleton-columns { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; }
.crm-skeleton-panel { min-height: 300px; padding: 24px; background: #fff; border: 1px solid #e4e9ef; border-radius: 8px; }
.crm-skeleton--profile .is-profile { width: 80px; height: 80px; margin-bottom: 24px; }
.crm-skeleton--inbox { height: 100%; padding: 0; }
.crm-skeleton--inbox > .crm-skeleton-content { height: 100%; }
.crm-skeleton-inbox { display: flex; height: 100%; }
.crm-skeleton-inbox-list { flex: 0 0 400px; padding: 20px; border-right: 1px solid #dce1e7; background: #fff; }
.crm-skeleton-inbox-chat { flex: 1; min-width: 0; padding: 20px; }
.crm-skeleton--shell { min-height: 100dvh; padding: 0; background: #f0f7ff; }
.crm-skeleton-shell { display: flex; min-height: 100dvh; }
.crm-skeleton-rail { flex: 0 0 96px; background: #00529b; }
.crm-skeleton-shell-page { flex: 1; min-width: 0; }
.crm-skeleton-shell-page > .crm-skeleton-header { background: #fff; padding: 20px 32px; margin: 0; min-height: 64px; }
.crm-chat-loading-frame { display:flex; flex-direction:column; height:100%; min-width:0; }
.crm-chat-loading-header { display:flex; align-items:center; gap:12px; padding:8px 16px; background:#fff; }
.crm-chat-loading-header strong { display:block; font-size:16px; font-weight:600; }
.crm-chat-loading-avatar { display:flex; align-items:center; justify-content:center; width:40px; height:40px; flex-shrink:0; border-radius:50%; background:#00529b; color:#fff; font-weight:600; }
.crm-chat-loading-number { font-size:12px; color:#596574; margin-top:2px; }
.crm-chat-loading-empty { margin:auto; color:#697585; font-size:14px; }
.crm-skeleton--forms-workspace,.crm-skeleton--public-form,.crm-form-skeleton { padding:0; }
.crm-skeleton--forms-workspace,.crm-skeleton--forms-workspace>.crm-skeleton-content,.crm-form-skeleton--workspace,.crm-form-skeleton--workspace>.crm-skeleton-content { flex:1; height:100%; min-height:0; overflow:auto; }
.crm-form-skeleton-workspace { display:grid; grid-template-columns:minmax(0,1fr); min-height:100%; }
.crm-form-skeleton-nav { padding:12px; background:#fff; border-bottom:1px solid #dce1e7; }
.crm-form-skeleton-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
.crm-form-skeleton-stats>div { display:grid; gap:12px; padding:12px; border-radius:8px; background:#f7f8fa; }
.crm-form-skeleton-stats .crm-skeleton-line { height:10px; }
.crm-form-skeleton-stats .crm-skeleton-title { height:24px; }
.crm-form-skeleton-selector { display:grid; gap:8px; }
.crm-form-skeleton-form-list { display:none; }
.crm-form-skeleton-form-list>div { display:grid; gap:14px; padding:16px; border:1px solid #edf0f3; border-radius:16px; margin-bottom:8px; }
.crm-form-skeleton-editor { padding:16px; min-width:0; }
.crm-form-skeleton-toolbar { display:flex; align-items:center; gap:8px; padding:12px; min-height:68px; background:#fff; border:1px solid #dce1e7; border-radius:8px; }
.crm-form-skeleton-toolbar>span { width:56px; height:40px; min-width:24px; }
.crm-form-skeleton-toolbar>span:nth-child(-n+2) { width:120px; }
.crm-form-skeleton-preview { padding:32px 16px 8px; max-width:768px; margin:16px auto 0; }
.crm-form-skeleton-preview[data-preview-size=mobile] { max-width:390px; }
.crm-form-skeleton-heading { display:flex; align-items:center; gap:12px; margin-bottom:32px; min-height:48px; }
.crm-form-skeleton-heading>div { display:grid; gap:4px; flex:1; min-width:0; }
.crm-form-skeleton-heading .crm-form-skeleton-title { height:24px; }
.crm-form-skeleton-heading-icon { width:48px; height:48px; border-radius:16px; }
.crm-form-skeleton-title { height:32px; }
.crm-form-skeleton-public { max-width:768px; margin-inline:auto; }
.crm-form-skeleton-card { padding:20px; border-radius:32px; border:1px solid rgba(255,255,255,.8); background:rgba(255,255,255,.55); }
.crm-form-skeleton-card>*+* { margin-top:24px; }
.crm-form-skeleton-form-header>.crm-form-skeleton-description { margin-top:8px; }
.crm-form-skeleton-form-header>.crm-form-skeleton-image { margin-top:20px; }
.crm-form-skeleton-description>.crm-skeleton-lines { gap:12px; }
.crm-form-skeleton-description .crm-skeleton-lines { gap:12px; }
.crm-form-skeleton-description .crm-skeleton-line { height:12px; }
.crm-form-skeleton-question { display:grid; gap:8px; }
.crm-form-skeleton-label { height:20px; }
.crm-form-skeleton-control { width:100%; height:50px; border-radius:16px; }
.crm-form-skeleton-control.is-textarea { height:146px; }
.crm-form-skeleton-image { width:100%; aspect-ratio:16/9; border-radius:24px; }
.crm-form-skeleton-options { display:grid; gap:8px; }
.crm-form-skeleton-option { display:flex; align-items:center; gap:12px; min-height:46px; padding:12px 16px; border-radius:16px; background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.8); }
.crm-form-skeleton-choice { width:16px; height:16px; border-radius:3px; }
.crm-form-skeleton-choice.is-radio { border-radius:50%; }
.crm-form-skeleton-consent { display:flex; align-items:flex-start; gap:12px; padding:16px; border:1px solid rgba(255,255,255,.8); border-radius:16px; }
.crm-form-skeleton-consent>.crm-skeleton-choice { margin-top:4px; }
.crm-form-skeleton-consent>.crm-skeleton-lines { flex:1; gap:8px; padding-block:4px; }
.crm-form-skeleton-submit { height:56px; width:180px; border-radius:16px; }
.crm-form-skeleton-analytics { display:none; min-width:0; padding:16px; background:#fff; border-left:1px solid #dce1e7; }
.crm-form-skeleton-chart { margin-top:32px; padding:16px; border:1px solid #dce1e7; border-radius:8px; }
@media(min-width:768px){
  .crm-form-skeleton-editor{padding:24px;}
  .crm-form-skeleton-preview{padding-top:48px;}
  .crm-form-skeleton-card{padding:32px;}
}
@media(min-width:1280px){
  .crm-form-skeleton--workspace,.crm-form-skeleton--workspace>.crm-skeleton-content{overflow:hidden;}
  .crm-form-skeleton-workspace{grid-template-columns:220px minmax(0,1fr) 300px;align-content:stretch;height:100%;min-height:0;grid-auto-rows:minmax(0,1fr);}
  .crm-form-skeleton-editor,.crm-form-skeleton-nav,.crm-form-skeleton-analytics{overflow-y:auto;min-height:0;}
  .crm-form-skeleton-nav{border-right:1px solid #dce1e7;border-bottom:0;}
  .crm-form-skeleton-selector{display:none;}
  .crm-form-skeleton-form-list,.crm-form-skeleton-analytics{display:block;}
}
@media(max-width:767px){
  .crm-form-skeleton-preview{padding-inline:0;}
  .crm-form-skeleton-submit{width:100%;}
  .crm-form-skeleton-toolbar{flex-wrap:wrap;}
  .crm-form-skeleton-editor{padding-inline:0;}
  .crm-form-skeleton-editor>.crm-form-skeleton-toolbar{margin-inline:8px;}
}
@media (max-width: 1279px) {
  .crm-skeleton-inbox-list { flex-basis: 350px; }
}
@media (max-width: 767px) {
  .crm-skeleton { padding: 16px; }
  .crm-skeleton--shell, .crm-skeleton--inbox, .crm-skeleton--text, .crm-skeleton--summary, .crm-skeleton--forms-workspace, .crm-skeleton--public-form, .crm-form-skeleton { padding: 0; }
  .crm-skeleton-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .crm-skeleton-columns { grid-template-columns: minmax(0, 1fr); }
  .crm-skeleton-rail, .crm-skeleton-inbox-chat { display: none; }
  .crm-skeleton-inbox-list { flex-basis: 100%; padding: 16px; }
  .crm-skeleton-table-row { grid-template-columns: 1.4fr 1fr; gap: 12px; }
  .crm-skeleton-table-row > :nth-child(n+3) { display: none; }
}

/* Dashboard-only refinements. Existing section order, columns and API behavior stay intact. */
html[data-crm-ui] .dashboard-ui {
  min-width: 0;
  min-height: 0;
  font-variant-numeric: tabular-nums;
}

html[data-crm-ui] .dashboard-content {
  min-height: 0;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

html[data-crm-ui] .dashboard-period-controls {
  border-radius: var(--crm-radius, 8px) !important;
  border-color: var(--crm-border, #dce1e7) !important;
}

html[data-crm-ui] .dashboard-period-fields > label {
  min-width: 0;
  line-height: 1.4;
}

html[data-crm-ui] .dashboard-period-fields :is(input, button) {
  min-height: 42px;
  box-sizing: border-box;
}

html[data-crm-ui] .dashboard-period-fields button {
  flex-shrink: 0;
  justify-content: center;
}

html[data-crm-ui] .dashboard-stats > section {
  min-width: 0;
}

html[data-crm-ui] .dashboard-stats > section > div > div:first-child {
  min-width: 0;
}

html[data-crm-ui] .dashboard-stats > section > div > div:last-child {
  flex-shrink: 0;
}

html[data-crm-ui] .dashboard-stats p:first-child {
  color: var(--crm-text-secondary, #596574);
  line-height: 1.4;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

html[data-crm-ui] .dashboard-middle > section {
  min-width: 0;
}

html[data-crm-ui] .dashboard-middle :is(h3, p) {
  overflow-wrap: anywhere;
}

html[data-crm-ui] .dashboard-middle .text-slate-400 {
  color: var(--crm-text-secondary, #596574);
}

html[data-crm-ui] .dashboard-summary-body {
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

html[data-crm-ui] .dashboard-summary-body pre {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* A seven-day week fits the card; longer selected ranges retain horizontal scrolling. */
html[data-crm-ui] .dashboard-timeline[data-compact="true"] > div {
  min-width: 0 !important;
  grid-template-columns: repeat(var(--dashboard-days, 7), minmax(0, 1fr)) !important;
  gap: 4px !important;
}

html[data-crm-ui] .dashboard-timeline[data-compact="true"] > div > div {
  min-width: 0;
}

html[data-crm-ui] .dashboard-timeline[data-compact="true"] > div > div > div > div {
  max-width: 80%;
}

html[data-crm-ui] .dashboard-timeline[data-compact="true"] > div > div > span {
  font-size: 11px !important;
}

@media (max-width: 639px) {
  html[data-crm-ui] .dashboard-period-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end !important;
    gap: 12px !important;
  }

  html[data-crm-ui] .dashboard-period-fields > label > input {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
  }

  html[data-crm-ui] .dashboard-period-fields > button {
    width: 100%;
    min-height: 44px;
  }

  html[data-crm-ui] .dashboard-period-fields > button:last-child:nth-child(5) {
    grid-column: 1 / -1;
  }

  html[data-crm-ui] .dashboard-summary > div:first-child > .flex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-crm-ui] .dashboard-summary > div:first-child > .flex > button {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
  }
}

/* Load after the retained CRM stylesheet. Hooks are added by build-appeals-list.mjs. */
.appeals-list-ui {
  min-width: 0;
  min-height: 0;
}

.appeals-list-ui .appeal-list-toolbar {
  gap: 8px;
  min-height: var(--crm-toolbar-height, 64px);
  height: var(--crm-toolbar-height, 64px);
}

.appeals-list-ui .appeal-list-search,
.appeals-list-ui .appeal-list-content,
.appeals-list-ui .appeal-list-identity,
.appeals-list-ui .appeal-list-name,
.appeals-list-ui .appeal-list-location {
  min-width: 0;
}

.appeals-list-ui .appeal-list-search > input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.appeals-list-ui .appeal-list-scroll {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  scroll-padding-block: 8px;
}

.appeals-list-ui .appeal-list-row {
  min-width: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
}

.appeal-hover-slot { width: 100%; flex-shrink: 0; pointer-events: none; }
.appeals-list-ui .appeal-list-row[data-appeal-hover-layer] {
  position: fixed !important;
  inset: auto !important;
  left: var(--appeal-hover-left) !important;
  top: var(--appeal-hover-top) !important;
  width: var(--appeal-hover-width) !important;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0 !important;
  border: 0;
  border-bottom: 1px solid #f9fafb;
  overflow: visible;
}
.appeals-list-ui .appeal-list-row[data-appeal-hover-layer]::backdrop { background: transparent; pointer-events: none; }

/* Pointer focus should not flash a ring; keyboard focus stays visible. */
.appeals-list-ui .appeal-list-row:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

.appeals-list-ui .appeal-list-avatar {
  margin-right: 12px;
}

.appeals-list-ui .appeal-list-row-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: baseline;
}

.appeals-list-ui .appeal-list-identity {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  overflow: hidden;
  gap: 4px;
  padding-right: 0;
}

.appeals-list-ui .appeal-list-name {
  grid-column: 1 / -1;
  width: 100%;
  flex: 1 1 auto;
  line-height: 1.35;
}

.appeals-list-ui .appeal-list-number {
  padding-inline: 4px;
  letter-spacing: 0;
}

.appeals-list-ui .appeal-list-time {
  align-self: start;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.4;
}

.appeals-list-ui .appeal-list-topic {
  min-width: 0;
  line-height: 1.4;
}

.appeals-list-ui .appeal-list-snippet {
  overflow-wrap: anywhere;
}

.appeals-list-ui .appeal-list-meta {
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.appeals-list-ui .appeal-list-location {
  flex: 1 1 auto;
}

.appeals-list-ui .appeal-list-status {
  max-width: 72%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0;
}

.appeals-list-ui[data-appeal-layout="true"] .appeal-list-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
}
.appeals-list-ui[data-appeal-layout="true"] .appeal-list-avatar {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  margin: 0;
}
.appeals-list-ui[data-appeal-layout="true"] .appeal-list-avatar > div:first-child {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.appeals-list-ui[data-appeal-layout="true"] .appeal-list-content { display: contents; }
.appeals-list-ui[data-appeal-layout="true"] .appeal-list-row-heading {
  grid-column: 2;
  grid-row: 1;
  min-height: 44px;
  margin-bottom: 0;
}
.appeals-list-ui[data-appeal-layout="true"] .appeal-list-content > :not(.appeal-list-row-heading) {
  grid-column: 1 / -1;
  min-width: 0;
}

.appeals-list-ui .appeal-list-filters {
  min-height: 0;
  max-height: min(40dvh, 260px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}

.appeals-list-ui .appeal-list-filter-sort {
  min-width: 0;
  flex: 1 1 170px;
}

.appeals-list-ui .appeal-filter-control {
  line-height: 1.35;
  letter-spacing: 0;
  white-space: normal;
}

.appeals-list-ui .appeal-list-filter-sort {
  white-space: nowrap;
}

.appeals-list-ui button,
.appeals-list-ui select,
.appeals-list-ui [role="button"] {
  cursor: pointer;
}

.appeals-list-ui button:disabled {
  cursor: default;
}

@media (max-width: 767px), (pointer: coarse) {
  .appeals-list-ui .appeal-list-toolbar {
    min-height: 60px;
    padding-inline: 12px;
    gap: 6px;
  }

  .appeals-list-ui .appeal-list-toolbar > button,
  .appeals-list-ui .appeal-filter-control {
    min-height: 44px;
    min-width: 44px;
  }

  .appeals-list-ui .appeal-list-search > input {
    min-height: 44px;
    font-size: 16px;
  }

  .appeals-list-ui .appeal-list-search > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 44px;
    right: 0;
  }

  .appeals-list-ui .appeal-list-row {
    padding-inline: 12px;
  }

  .appeals-list-ui .appeal-list-status {
    max-width: 76%;
  }
}

.refinement-info {
  min-width: 0;
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  color: #17242f;
  letter-spacing: 0;
}
.refinement-info *, .refinement-info *::before, .refinement-info *::after { box-sizing: border-box; }
.refinement-info button, .refinement-info select { cursor: pointer; }
.refinement-info button:disabled, .refinement-info select:disabled { cursor: default; }
.refinement-info :is(button, input, textarea, select):focus-visible { outline: 2px solid #00529b; outline-offset: 3px; }
.refinement-info :is(input, textarea, select) { min-width: 0; }
.refinement-info :is(p, h2, h3, span) { overflow-wrap: anywhere; letter-spacing: 0; }
.refinement-info__identity { flex-shrink: 0; padding-top: 20px !important; padding-bottom: 16px !important; box-shadow: none !important; }
.refinement-info__avatar { width: 64px !important; height: 64px !important; margin-bottom: 12px !important; box-shadow: none !important; font-size: 23px !important; flex-shrink: 0; }
.refinement-info__name { font-size: 18px !important; line-height: 1.35 !important; }
.refinement-info__metadata { padding-inline: 12px; align-items: center; }
.refinement-info__metadata > span { max-width: 100%; line-height: 1.5; }
.refinement-info section { min-width: 0; box-shadow: none; }
.refinement-info section > div > div.flex.items-center.gap-3 { min-width: 0; align-items: center; }
.refinement-info section > div > div.flex.items-center.gap-3 > div { min-width: 0; flex: 1; }
.refinement-info section > div > div.flex.items-center.gap-3 > svg { flex-shrink: 0; }
.refinement-info section > div > div.flex.items-center.gap-3 span { line-height: 1.45; }
.refinement-info section > button { min-height: 40px; gap: 8px; }
.refinement-info section > button > svg { flex-shrink: 0; }
.refinement-info__modes { margin-inline: 12px; padding: 3px !important; border-radius: 8px !important; }
.refinement-info__modes button { min-height: 40px; font-size: 12px !important; border-radius: 6px !important; }
.refinement-info__sections { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-inline: 12px !important; gap: 2px !important; }
.refinement-info__sections button { min-height: 44px; flex-direction: column; gap: 4px !important; padding: 6px 2px !important; border-radius: 6px !important; font-size: 10px !important; line-height: 1.2; }
.refinement-info__sections button svg { width: 16px !important; height: 16px !important; }
.refinement-info__sections button span { max-width: 100%; }
.refinement-info__document { padding: 12px !important; border-radius: 8px !important; background: #fff !important; border-color: #e1e8ee !important; }
.refinement-info__actions { position: static !important; display: flex; justify-content: flex-start !important; align-items: center; gap: 6px !important; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #edf0f3; }
.refinement-info__actions button { min-height: 36px; padding: 7px 8px !important; font-size: 10px !important; border-radius: 6px !important; box-shadow: none !important; white-space: normal; line-height: 1.3; }
.refinement-info__actions button svg { flex-shrink: 0; width: 14px !important; height: 14px !important; }
.refinement-info__output { margin-top: 0 !important; font-size: 14px !important; line-height: 1.65 !important; overflow-wrap: anywhere; min-width: 0; }
.refinement-info__output > :first-child, .refinement-info__output > div > :first-child { margin-top: 0; }
.refinement-info__output p { margin: 0 0 12px; }
.refinement-info__output :is(ul, ol) { padding-left: 21px; margin-block: 10px; }
.refinement-info__output li { margin-bottom: 6px; }
.refinement-info__output :is(h1,h2,h3,h4) { font-size: 15px; line-height: 1.4; margin: 16px 0 8px; }
.refinement-info__output :is(pre,table) { max-width: 100%; overflow-x: auto; }
.refinement-info__output pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.refinement-info__output table { display: block; font-size: 12px; }
.refinement-info__output a { color: #00529b; text-decoration: underline; text-underline-offset: 2px; }
.refinement-info button.aspect-square { display: block; padding: 0; min-width: 0; text-align: left; }
@media (max-width: 767px) {
  .refinement-info :is(input,textarea,select) { font-size: 16px !important; }
  .refinement-info__actions button { min-height: 44px; }
  .refinement-info__modes button { min-height: 44px; }
}

[data-crm-ui] [data-section-header] {
  position: relative !important;
  z-index: 20;
  display: flex !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  min-height: 82px !important;
  height: auto !important;
  padding: 16px 28px !important;
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  letter-spacing: 0 !important;
}
[data-crm-ui] [data-section-identity] {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  min-width: 0 !important;
}
[data-crm-ui] [data-section-title-group] {
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
[data-crm-ui] [data-section-title] {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
  color: #0f172a !important;
  overflow-wrap: anywhere;
}
[data-crm-ui] [data-section-subtitle] {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  letter-spacing: 0 !important;
  color: #64748b !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-crm-ui] [data-section-icon] {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  flex-shrink: 0 !important;
  color: #00529b !important;
  stroke-width: 2;
}
[data-crm-ui] [data-section-actions] { min-width: 0; margin-left: auto; }
[data-crm-ui] [data-section-header] > button:not([data-section-menu]) { margin-left: auto; }
[data-crm-ui] [data-section-menu] { display: none !important; }
@media (max-width: 767px) {
  [data-crm-ui] [data-section-header] { padding: 12px 16px !important; min-height: 76px !important; flex-wrap: wrap; gap: 12px !important; }
  [data-crm-ui] [data-section-identity] { gap: 12px !important; }
  [data-crm-ui] [data-section-actions] { margin-left: 0; max-width: 100%; }
  [data-crm-ui] [data-section-menu] { display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; }
  [data-crm-ui] [data-section-subtitle] { white-space: normal; overflow-wrap: anywhere; }
}

[data-crm-ui] button[data-access-action] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 32px !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  color: #00529b !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
[data-crm-ui] button[data-access-action] svg { flex-shrink: 0; width: 17px; height: 17px; }
[data-crm-ui] button[data-access-action]:hover:not(:disabled) { background: #e4effa !important; border-color: #b7d1e9 !important; }
[data-crm-ui] button[data-access-action="toggle"][data-active="true"] { color: #047857 !important; background: #ecfdf5 !important; }
[data-crm-ui] button[data-access-action="toggle"][data-active="false"] { color: #64748b !important; }
[data-crm-ui] button[data-access-action="delete"] { color: #b91c1c !important; background: #fff1f2 !important; }
[data-crm-ui] button[data-access-action="delete"]:hover:not(:disabled) { background: #ffe4e6 !important; border-color: #fecdd3 !important; }
[data-crm-ui] button[data-access-action]:focus-visible { outline: 2px solid #00529b !important; outline-offset: 2px; }
[data-crm-ui] button[data-access-action]:disabled { cursor: not-allowed; opacity: .42 !important; }
[data-crm-ui] button[data-access-action][data-create-access="true"] { width: auto !important; flex-basis: auto !important; padding: 0 10px !important; gap: 6px; font-size: 12px !important; white-space: nowrap; }
[data-crm-ui] article:has(> div > button[data-access-action]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
[data-crm-ui] article:has(> div > button[data-access-action]) > div:first-child {
  min-width: 0;
  margin-bottom: 0 !important;
}
[data-crm-ui] article:has(> div > button[data-access-action]) > div:first-child > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-crm-ui] article > div:has(> button[data-access-action]) {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 6px !important;
  justify-self: end;
}
@media (pointer: coarse) {
  [data-crm-ui] button[data-access-action] { width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; flex-basis: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  [data-crm-ui] button[data-access-action] { transition: none !important; }
}

html[data-crm-ui] .crm-topics-field { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
html[data-crm-ui] .crm-topics-field__label { display: block; font-size: 12px; line-height: 18px; font-weight: 700; color: inherit; }
html[data-crm-ui] :is(form, [role="dialog"]):has(.crm-topics-field) select { height: 41px; }
html[data-crm-ui] .crm-topics-field__details { position: relative; min-width: 0; }
html[data-crm-ui] .crm-topics-field__control {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  box-sizing: border-box; width: 100%; min-height: 41px; padding: 9px 11px;
  border: 1px solid var(--crm-field-border); border-radius: var(--crm-radius);
  background: var(--crm-surface); color: var(--crm-text); font-size: 14px;
  line-height: 21px; font-weight: 400; list-style: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgb(188 197 208 / 12%);
}
html[data-crm-ui] .crm-topics-field__control::-webkit-details-marker { display: none; }
html[data-crm-ui] .crm-topics-field__control::marker { content: ''; }
html[data-crm-ui] .crm-topics-field__control[aria-disabled="true"] { cursor: default; opacity: .6; }
html[data-crm-ui] .crm-topics-field__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-crm-ui] .crm-topics-field__chevron { flex-shrink: 0; color: var(--crm-text-secondary); }
html[data-crm-ui] .crm-topics-field__details[open] .crm-topics-field__chevron { transform: rotate(180deg); }
html[data-crm-ui] .crm-topics-field__menu {
  display: none; box-sizing: border-box; padding: 8px;
  background: var(--crm-surface); border: 1px solid var(--crm-field-border);
  color: var(--crm-text); border-radius: var(--crm-radius); box-shadow: var(--crm-popover-shadow);
}
html[data-crm-ui] .crm-topics-field__details[open] > .crm-topics-field__menu[data-floating-open="true"] {
  position: fixed !important; inset: auto !important; z-index: 120;
  left: var(--topics-left) !important; top: var(--topics-top) !important;
  width: var(--topics-width) !important; min-width: 0 !important; max-width: none !important;
  height: auto; max-height: var(--topics-max-height) !important; margin: 0 !important;
  display: flex !important; flex-direction: column; overflow: hidden;
}
html[data-crm-ui] .crm-topics-field__menu::backdrop { background: transparent; pointer-events: none; }
html[data-crm-ui] .crm-topics-field__search { position: relative; flex: 0 0 auto !important; }
html[data-crm-ui] .crm-topics-field__search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--crm-text-secondary); }
html[data-crm-ui] .crm-topics-field__search > input { width: 100%; box-sizing: border-box; padding: 9px 11px 9px 34px; font-size: 14px; line-height: 21px; border: 1px solid var(--crm-field-border); }
html[data-crm-ui] .crm-topics-field__options { max-height: 240px; overflow-y: auto; overscroll-behavior-y: contain; margin-top: 6px; }
html[data-crm-ui] .crm-topics-field__option { display: flex; align-items: flex-start; gap: 8px; padding: 8px; min-height: 36px; font-size: 14px; line-height: 20px; font-weight: 400; border-radius: 4px; cursor: pointer; overflow-wrap: anywhere; }
html[data-crm-ui] .crm-topics-field__clear { width: 100%; margin-top: 8px; padding: 7px 10px; background: var(--crm-surface-muted); color: var(--crm-brand); border: 1px solid var(--crm-border); border-radius: var(--crm-radius); font-size: 13px; font-weight: 600; cursor: pointer; }
html[data-crm-ui] .crm-topics-field__options { flex: 1 1 auto; min-height: 0; }
html[data-crm-ui] .crm-topics-field__clear { flex-shrink: 0; }
html[data-crm-ui] .crm-topics-field__single-option { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; }
html[data-crm-ui] .crm-topics-field__single-option[aria-selected="true"] { background: var(--crm-brand-light, #F0F7FF); color: var(--crm-brand); }
html[data-crm-ui] .crm-topics-field__single-option:hover { background: var(--crm-surface-muted); }
html[data-crm-ui] [data-contact-filters] > * { min-width: 0; }
@media (min-width: 768px) {
  html[data-crm-ui] main form:has([role="searchbox"]) > [data-contact-filters]:first-child {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: end;
  }
  html[data-crm-ui] [data-contact-filters] > :first-child { grid-column: span 2; }
}
@media (min-width: 1200px) {
  html[data-crm-ui] main form:has([role="searchbox"]) > [data-contact-filters]:first-child {
    grid-template-columns: minmax(310px, 1.8fr) minmax(140px, .85fr) minmax(160px, 1fr) minmax(150px, .85fr) minmax(160px, 1fr) !important;
  }
  html[data-crm-ui] [data-contact-filters] > :first-child { grid-column: auto; }
}
@media (max-width: 1023px), (pointer: coarse) {
  html[data-crm-ui] .crm-topics-field__control { min-height: 44px; }
  html[data-crm-ui] .crm-topics-field__option { min-height: 44px; }
}
@media (max-width: 767px) {
  html[data-crm-ui] .crm-topics-field__control { font-size: 16px; line-height: 24px; }
}

.workspace-settings{display:flex;flex-direction:column;min-width:0;height:100%;overflow:hidden;color:#14243a}
.workspace-settings [hidden]{display:none!important}
.workspace-settings-body{display:flex;flex:1;min-height:0;overflow:hidden}
.workspace-settings-nav{width:228px;flex-shrink:0;padding:20px 12px;background:#fff;border-right:1px solid #e1e7ed;overflow-y:auto}
.workspace-settings-nav>p{margin:10px 12px 8px;font-size:11px;font-weight:700;color:#738298}
.workspace-settings-nav>p:not(:first-child){margin-top:28px}
.workspace-settings-nav>button{display:flex;align-items:center;gap:10px;min-height:44px;width:100%;padding:10px 12px;margin:2px 0;border:0;border-radius:6px;background:transparent;color:#4b5c72;text-align:left;font-size:13px;font-weight:600;transition:background-color .15s,color .15s}
.workspace-settings-nav>button:hover{background:#f2f6fb;color:#00529b}
.workspace-settings-nav>button[aria-current=page]{background:#eaf3fc;color:#00529b}
.workspace-settings-nav svg{flex-shrink:0}
.workspace-settings-content{flex:1;min-width:0;overflow-y:auto;overscroll-behavior:contain}
.workspace-settings-profile{padding:28px 32px 40px;max-width:1100px}
.workspace-settings-profile form{background:#fff;border:1px solid #e1e7ed;border-radius:8px;overflow:hidden}
.workspace-settings-profile fieldset{border:0;min-width:0;margin:0;padding:0}
.workspace-settings-profile section{padding:24px 28px;border-bottom:1px solid #edf0f4}
.workspace-settings-profile h2{display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;margin:0 0 20px}
.workspace-settings-profile h2 svg{color:#00529b}
.workspace-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.workspace-setting-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px;font-weight:600;color:#42536a}
.workspace-setting-field.is-wide{grid-column:1/-1}
.workspace-setting-field input,.workspace-setting-field textarea{width:100%;box-sizing:border-box;border:1px solid #c6d1de;border-radius:6px;background:#fff;padding:10px 12px;min-height:42px;color:#15263d;font-size:14px;font-weight:400;line-height:20px;transition:border-color .15s,box-shadow .15s}
.workspace-setting-field textarea{resize:vertical;min-height:72px;max-height:240px}
.workspace-setting-field input:focus,.workspace-setting-field textarea:focus{outline:0;border-color:#00529b;box-shadow:0 0 0 3px #00529b14}
.workspace-setting-field input:disabled,.workspace-setting-field textarea:disabled{background:#f7f9fc}
.workspace-settings-profile footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:18px 28px;background:#fcfdff}
.workspace-settings-profile footer button,.workspace-settings-retry{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 16px;border:1px solid #d9e1ec;border-radius:6px;background:#fff;font-size:13px;font-weight:600;color:#475b74}
.workspace-settings-profile footer button[type=submit]{background:#00529b;color:#fff;border-color:#00529b}
.workspace-settings button:disabled{opacity:.5;cursor:default}
.workspace-settings button:focus-visible{outline:2px solid #00529b;outline-offset:2px}
.workspace-settings-notice{border:1px solid #b9dfcd;border-radius:6px;background:#edf9f2;color:#1e6243;padding:12px 16px;margin-bottom:18px;font-size:13px}
.workspace-settings-notice.is-error{border-color:#efc1bf;background:#fff2f1;color:#a33a35}
.workspace-settings-refresh{display:flex;align-items:center;justify-content:center;border:0;background:transparent;border-radius:6px;width:36px;height:36px;color:#5f7390}
.workspace-settings-refresh:hover{background:#edf4fb;color:#00529b}
.workspace-system-settings{height:100%;min-height:0}
.workspace-system-settings [data-section-header],.workspace-system-settings [data-settings-tabs]{display:none!important}
.workspace-system-settings form>fieldset>div{border-radius:8px}
@media(max-width:1100px){.workspace-settings-nav{width:200px}.workspace-settings-profile{padding:24px 20px}.workspace-settings-profile section{padding:22px}}
@media(max-width:767px){.workspace-settings-body{flex-direction:column}.workspace-settings-nav{display:flex;align-items:center;width:100%;padding:8px 12px;border-right:0;border-bottom:1px solid #e1e7ed;overflow-x:auto;overflow-y:hidden;gap:6px;flex-shrink:0}.workspace-settings-nav>p{display:none}.workspace-settings-nav>button{width:auto;white-space:nowrap;min-height:40px;font-size:12px}.workspace-settings-profile{padding:16px 12px 28px}.workspace-settings-profile section{padding:20px 16px}.workspace-settings-grid{grid-template-columns:minmax(0,1fr)}.workspace-settings-profile footer{padding:16px;flex-wrap:wrap}.workspace-setting-field input,.workspace-setting-field textarea{font-size:16px}.workspace-settings [data-section-menu]{display:flex}}

.crm-value-skeleton{display:inline;padding:0;width:auto}
.crm-value-skeleton>.crm-skeleton-shape{display:inline-block}
.crm-section-skeleton{display:flex;flex-direction:column;height:100%;min-height:0;min-width:0;overflow:hidden}
.crm-skeleton--dashboard,.crm-skeleton--appointments,.crm-skeleton--party,.crm-skeleton--contacts,.crm-skeleton--access,.crm-skeleton--settings,.crm-skeleton--profile{padding:0;height:100%;min-height:0}
.crm-skeleton--dashboard>.crm-skeleton-content,.crm-skeleton--appointments>.crm-skeleton-content,.crm-skeleton--party>.crm-skeleton-content,.crm-skeleton--contacts>.crm-skeleton-content,.crm-skeleton--access>.crm-skeleton-content,.crm-skeleton--settings>.crm-skeleton-content,.crm-skeleton--profile>.crm-skeleton-content{height:100%;min-height:0}
.crm-skeleton--inbox .crm-skeleton-list-row,.appeal-list-scroll .crm-skeleton-list-row{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px 16px;padding:12px 16px}
.crm-skeleton--inbox .crm-skeleton-avatar,.appeal-list-scroll .crm-skeleton-avatar{width:44px;height:44px;grid-column:1;grid-row:1}
.crm-skeleton--inbox .crm-skeleton-list-body,.appeal-list-scroll .crm-skeleton-list-body{display:grid;gap:8px;align-content:center;min-height:44px}
.crm-skeleton-list-wide{grid-column:1/-1;display:grid;gap:8px}
.appeal-list-scroll>.crm-skeleton--list{padding:0}
.crm-skeleton-list-wide>.crm-skeleton-line{height:14px}
.crm-skeleton-list-wide>.crm-skeleton-line:last-child{height:11px}
.crm-calendar-day-skeleton{padding:0;display:grid;gap:4px}
.crm-calendar-day-skeleton>.crm-skeleton-content{display:grid;gap:4px}
.crm-calendar-skeleton{border-radius:32px}
.crm-calendar-skeleton-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px}
.crm-party-rows-skeleton{padding:0}
.crm-party-stat-skeleton{border-radius:24px;display:grid;gap:16px;min-height:160px}
.crm-party-list-skeleton{border-radius:32px}
.crm-skeleton-dashboard-body{flex:1;min-height:0;overflow-y:auto;padding:32px}
.crm-skeleton-dashboard-body>.crm-skeleton-line{margin-bottom:20px}
.crm-skeleton-period-fields{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:20px}
.crm-skeleton-dashboard-body .crm-skeleton-stats{gap:12px;margin-bottom:20px}
.crm-skeleton-dashboard-body .crm-skeleton-stat{padding:16px;min-height:98px;gap:8px}
.crm-skeleton-timeline{height:194px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:8px;margin-top:28px}
.crm-skeleton-timeline>span{height:136px}
.crm-dashboard-chart-skeleton{padding:0;overflow:hidden}
.crm-dashboard-chart-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;min-height:200px;align-items:end}
.crm-dashboard-chart-grid>div{display:flex;flex-direction:column;align-items:center;min-width:0}
.crm-skeleton-collection-body{padding:20px;flex:1;overflow:auto}
.crm-skeleton-collection-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.crm-skeleton-contacts-filters{display:grid;grid-template-columns:1.8fr .85fr 1fr .85fr 1fr;gap:12px;margin-bottom:20px}
.crm-skeleton--appeal-info{padding:0;background:#fff}
.crm-appeal-info-skeleton-identity{padding:28px 16px 20px;display:flex;flex-direction:column;align-items:center;gap:12px;border-bottom:1px solid #e2e8f0}
.crm-appeal-info-skeleton-topic{padding:14px;width:100%;background:#f7f9fc;border:1px solid #edf0f4;border-radius:8px}
.crm-appeal-info-skeleton-contact{padding:16px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f3f6}
.crm-appeal-info-skeleton-contact>div{flex:1;display:grid;gap:8px}
.crm-skeleton--forms-page,.crm-skeleton--forms-page>.crm-skeleton-content{height:100%;padding:0;min-height:0}
.crm-skeleton--directory-list{padding:0}
.crm-directory-list-skeleton-row{display:flex;gap:16px;padding:12px 16px;border-bottom:1px solid #f3f4f6}
.crm-directory-list-skeleton-row>div{min-width:0;flex:1;display:grid;gap:8px}
.crm-skeleton--form-responses{padding:0}
.crm-document-skeleton{position:relative;display:flow-root;min-width:0;padding:0}
.crm-document-skeleton[aria-busy=true]{min-height:120px}
.crm-document-skeleton-shapes{position:absolute;inset:0;pointer-events:none}
.crm-skeleton-bubble{width:min(85%,480px);padding:8px 12px;border:1px solid #e5e7eb33;border-radius:18px 18px 18px 4px}
.crm-skeleton-bubble.is-outgoing{border-radius:18px 18px 4px 18px}
.crm-skeleton-chat{gap:12px;padding:0}
.crm-chat-loading-header{min-height:56px;box-sizing:border-box;flex-shrink:0}
.crm-chat-loading-empty{flex:1;min-height:0}
.crm-chat-loading-composer{display:flex;align-items:center;gap:12px;padding:10px 16px 12px;min-height:70px;border-top:1px solid #dce1e7;background:#fff;flex-shrink:0;box-sizing:border-box}
.crm-chat-loading-input{min-width:0;flex:1;height:44px;border:1px solid #d1d5db;border-radius:18px;background:#fff}
.crm-chat-loading-send{width:42px;height:42px;border-radius:50%;background:#00529b4d;flex-shrink:0}
.crm-form-skeleton-analytics-tabs{display:flex;gap:8px;margin-bottom:16px}
.crm-form-skeleton-analytics-tabs>span{flex:1;min-width:0;height:36px}
.crm-form-skeleton-analytics-fields>.crm-form-skeleton-chart:first-child{margin-top:0}
@media(max-width:1279px){
  .crm-form-skeleton-workspace[data-skeleton-mobile-pane=analytics]>.crm-form-skeleton-nav,
  .crm-form-skeleton-workspace[data-skeleton-mobile-pane=analytics]>.crm-form-skeleton-editor{display:none}
  .crm-form-skeleton-workspace[data-skeleton-mobile-pane=analytics]>.crm-form-skeleton-analytics{display:block;border-left:0}
}
@media(max-width:1279px){.crm-skeleton-dashboard-body .crm-skeleton-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-skeleton-dashboard-body .crm-skeleton-columns{grid-template-columns:minmax(0,1fr)}.crm-skeleton-contacts-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.crm-skeleton-dashboard-body{padding:16px}.crm-calendar-skeleton-controls{padding:16px}.crm-calendar-skeleton{border-radius:24px}.crm-skeleton-contacts-filters{grid-template-columns:minmax(0,1fr)}.crm-skeleton-collection-body{padding:16px}.crm-calendar-day-skeleton .crm-skeleton-shape{height:20px!important}}

.crm-workspace-settings-skeleton.crm-skeleton,
.crm-profile-settings-skeleton.crm-skeleton,
.crm-settings-content-skeleton.crm-skeleton {
  padding: 0;
}

/* Native, empty controls retain the loaded form's exact border box and baseline. */
.crm-skeleton .crm-settings-skeleton-control {
  color: transparent !important;
  caret-color: transparent;
  background-color: #e4e9ef !important;
  background-image: linear-gradient(90deg, transparent, rgb(255 255 255 / 75%), transparent);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  background-position: var(--skeleton-shift, -110%) 0;
  box-shadow: none !important;
  opacity: 1;
  -webkit-text-fill-color: transparent;
}

.crm-skeleton .crm-settings-skeleton-control::placeholder {
  color: transparent;
}

.crm-skeleton input[type=checkbox].crm-settings-skeleton-control {
  appearance: none;
}

.crm-settings-skeleton-icon {
  display: inline-block;
  flex: 0 1 auto;
  vertical-align: middle;
}

.crm-settings-skeleton-icon.shrink-0 {
  flex-shrink: 0;
}

.crm-settings-skeleton-range {
  flex-shrink: 1;
}

.crm-department-details-skeleton .min-w-0 {
  max-width: calc(100% - 28px);
}

.crm-settings-content-skeleton.is-embedded [data-settings-tabs],
.crm-profile-settings-skeleton.is-embedded [data-settings-tabs] {
  display: none;
}

.crm-skeleton[data-reduced-motion] .crm-settings-skeleton-control {
  background-image: none;
}

@media (prefers-reduced-motion: reduce) {
  .crm-skeleton .crm-settings-skeleton-control {
    background-image: none;
  }
}

@media (max-width: 767px) {
  html[data-crm-ui] .crm-skeleton form:has([data-settings-skeleton-topics]) .p-6 {
    padding: 16px;
  }
}
