/* Small layout repairs for existing Kraken screens. Keep module composition intact. */

/* The fifth dashboard card should occupy the unused half of the final row. */
.layout.os-layout-v10 .dashboss-lower-grid > .dashboss-messages-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* A short empty calendar should not reserve space for absent events. */
.layout.os-layout-v10 .dashboss-calendar-strip > .empty-state {
  min-height: auto;
  padding: 16px;
}

/* Keep icon, record text and status aligned; status badges must size to their text. */
.layout.os-layout-v10 .dashboss-action-row {
  grid-template-columns: 24px minmax(0, 1fr) auto;
  column-gap: 8px;
  row-gap: 4px;
}
.layout.os-layout-v10 .dashboss-action-row > span:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.layout.os-layout-v10 .dashboss-action-row > strong {
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
}
.layout.os-layout-v10 .dashboss-action-row > small {
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
}
.layout.os-layout-v10 .dashboss-action-row > .badge {
  grid-column: 3;
  grid-row: 1 / span 2;
}

/* Long linked-record titles need the same wrapping as message bodies. */
#app .inbox-message-foot > .link-button {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}
#app .inbox-message-foot > .link-button > .icon {
  flex: 0 0 auto;
}

/* Keep guest contact details inside their existing hero and details columns. */
#app .pms-guest-identity,
#app .pms-guest-card dl > div {
  min-width: 0;
}
#app .pms-guest-identity :is(h3, p),
#app .pms-guest-card dd {
  overflow-wrap: anywhere;
}

/* Scoped data-module fit corrections. Load after the existing stylesheets. */
@media screen {
  /* The visual overlay's overflow:hidden overrides the report rail's scrolling. */
  .layout.os-layout-v10 .report-window-rail {
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* This renderer deliberately supplies one detail panel to a two-column grid. */
  .layout.os-layout-v10 .strict-report-workspace > .report-detail-grid > :only-child {
    grid-column: 1 / -1;
  }

  /* Company records can be narrower than the browser in the record workspace. */
  .layout.os-layout-v10 .crm-account-360 {
    container: kraken-crm-account / inline-size;
    min-width: 0;
  }

  .layout.os-layout-v10 .crm-360-header {
    flex-wrap: wrap;
  }

  .layout.os-layout-v10 .crm-360-header > div:first-child {
    flex: 1 1 180px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .layout.os-layout-v10 .crm-360-metrics > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* A long billing email must not force the balance beyond the record edge. */
  .layout.os-layout-v10 .client-account-main {
    flex-wrap: wrap;
  }

  .layout.os-layout-v10 .client-account-main > div:first-child {
    flex: 1 1 180px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  /* Invoice/quotation delivery cards currently have no narrow-container rules. */
  .layout.os-layout-v10 .document-delivery-card {
    container: kraken-document-delivery / inline-size;
    min-width: 0;
  }

  /* Reports launchers serve Accounting, HR, Stock and Assets list panels. */
  .layout.os-layout-v10 .module-report-strip {
    container: kraken-module-reports / inline-size;
  }

  .layout.os-layout-v10 .module-report-inline > .module-report-exports {
    min-width: 0;
    flex-wrap: wrap;
  }

  @container kraken-crm-account (max-width: 360px) {
    .layout.os-layout-v10 .crm-360-metrics {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @container kraken-document-delivery (max-width: 480px) {
    .layout.os-layout-v10 .document-delivery-head {
      grid-template-columns: 42px minmax(0, 1fr);
    }

    .layout.os-layout-v10 .document-delivery-head > .document-template-chip {
      grid-column: 2;
      justify-self: start;
      max-width: 100%;
      white-space: normal;
      overflow-wrap: anywhere;
    }

    .layout.os-layout-v10 .document-delivery-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @container kraken-module-reports (max-width: 600px) {
    .layout.os-layout-v10 .module-report-inline {
      grid-template-columns: auto minmax(0, 1fr);
    }

    .layout.os-layout-v10 .module-report-inline > .module-report-exports {
      grid-column: 1 / -1;
      justify-content: flex-start;
    }

    .layout.os-layout-v10 .module-report-inline > .module-report-exports > .btn {
      max-width: 100%;
      white-space: normal;
    }
  }

  /* Match the established report-rail mobile breakpoint exactly. */
  @media (max-width: 900px) {
    .layout.os-layout-v10 .report-window-rail {
      overflow-x: auto;
      overflow-y: hidden;
    }
  }

  /* Preserve existing viewport rules, filling only the desktop-window gap. */
  @media (min-width: 1051px) {
    @container kraken-crm-account (max-width: 640px) {
      .layout.os-layout-v10 .crm-360-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    @container kraken-crm-account (max-width: 360px) {
      .layout.os-layout-v10 .crm-360-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
  }
}

@media screen {
/* Comfort changes spacing in the existing content, without resizing navigation,
   changing column counts or imposing fixed card heights. */
html[data-density="comfort"] #app .layout.os-layout-v10 {
  --section-gap: 14px;
  --panel-pad: 16px;
}
html[data-density="comfort"] #app .layout.os-layout-v10 .content :where(.panel-body, .card-body) {
  padding: 16px;
}
html[data-density="comfort"] #app .layout.os-layout-v10 .content :where(.field, .form-field) {
  gap: 8px;
}
html[data-density="comfort"] #app .layout.os-layout-v10 .content :where(.field, .form-field) > :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select) {
  min-height: 44px;
}
html[data-density="comfort"] #app .layout.os-layout-v10 .data-table > tbody > tr > td {
  padding-block: 11px;
}
@media (min-width: 901px) {
  html[data-density="comfort"] #app .layout.os-layout-v10 { --page-gutter: 18px; }
}

}

/* Keep the dashboard's primary action legible over the card-header button rule. */
.layout.os-layout-v10 .dashboss-card-head .btn.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.layout.os-layout-v10 .dashboss-card-head .btn.btn-primary:hover {
  background: var(--primary-strong);
  border-color: var(--primary-strong);
}

/* Resizing is opt-in; automatic table sizing remains the default. */
@media (min-width: 721px) {
  #app table[data-resizable-columns] th[data-header-column-drag] {
    padding-inline-end: 18px;
  }
  #app .table-column-resize-handle {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  #app .table-column-resize-handle::after {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    right: 3px;
    width: 2px;
    border-radius: 2px;
    background: var(--line);
  }
  #app .table-column-resize-handle:is(:hover, :focus-visible, .is-resizing)::after {
    background: var(--primary);
  }
  #app .table-column-resize-handle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
  }
  #app table[data-resizable-columns] .th-drag-handle { right: 14px; }
  #app table[data-resizable-columns].has-column-widths {
    table-layout: fixed;
    width: var(--table-columns-width);
    min-width: var(--table-columns-width);
    max-width: none;
  }
  #app table[data-resizable-columns].has-column-widths tbody td:not(.row-action-cell):not(.select-col):not(.record-grid-row-number) {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #app table[data-resizable-columns].has-column-widths .th-sort > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #app table[data-resizable-columns].has-column-widths .row-title { min-width: 0; max-width: 100%; }
}
@media (min-width: 721px) and (pointer: coarse) {
  #app .table-column-resize-handle { width: 18px; }
  #app table[data-resizable-columns] th[data-header-column-drag] { padding-inline-end: 26px; }
}
@media (max-width: 720px) {
  #app .table-column-resize-handle,
  #app colgroup[data-column-resize-group] { display: none; }
}
html.is-table-column-resizing,
html.is-table-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

/* Content-sized controls across forms, filters and task toolbars. */

/* A relational lookup is a small stack of controls, not a stretchable form row.
   Covers remote companies/products and the existing static linked-record fields. */
#app .field.lookup-field {
  min-width: 0;
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 6px;
}
#app .field.lookup-field > :is(label, .lookup-field-heading, .record-lookup-search, .lookup-pagination, select, .lookup-field-control-row, small) {
  min-width: 0;
  margin-block: 0;
}

/* The parent gap owns spacing. Previously the search, pager and count each
   added another margin, stretching both forms and toolbar/filter rows. */
#app .lookup-field > .record-lookup-search {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
}
#app .lookup-field > .lookup-pagination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: start;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
#app .lookup-field > .lookup-pagination > [data-lookup-count] {
  min-width: 0;
  margin: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
#app .lookup-field > .lookup-pagination > .btn {
  width: auto;
  min-width: 0;
  min-height: 32px;
  height: auto;
  padding: 5px 8px;
  white-space: nowrap;
}
@media (max-width: 640px), (pointer: coarse) {
  #app .lookup-field > .lookup-pagination > .btn {
    min-height: 44px;
    padding: 7px 10px;
  }
}

/* The existing view list has eight entries. Keep it in one row; allow scrolling
   when its own space is narrow (including split record views). */
#app .task-workspace .task-view-switch {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
#app .task-workspace .task-view-switch > button {
  flex: 1 0 78px;
  min-width: max-content;
  white-space: nowrap;
}

/* Active-filter summaries grow only with their chips, without separating the
   Clear action from the filters by the full board width. */
#app .task-workspace .task-active-filters {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  justify-self: start;
  align-self: start;
  align-items: center;
  align-content: start;
  gap: 6px;
  padding: 6px;
}
#app .task-workspace .task-active-filters > span {
  min-width: 0;
  max-width: 100%;
  padding-block: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#app .task-workspace .task-active-filters > .btn {
  flex: 0 0 auto;
  margin-inline-start: 0;
}

/* Shared advanced-filter chips also need to contain long search descriptions. */
#app .advanced-filter-strip {
  min-width: 0;
  align-content: start;
}
#app .advanced-filter-strip > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Local bar-fitting corrections; retain existing colors, controls and order. */
@media screen and (min-width: 721px) and (max-width: 1280px) {
  /* The base 1280px rule gives every report control a full-width row. */
  .layout.os-layout-v10 .report-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  }
  .layout.os-layout-v10 .report-controls > .filter-row {
    grid-column: 1 / -1;
  }
  .layout.os-layout-v10 .report-controls > .field {
    min-width: 0;
  }
}

@media screen and (max-width: 760px) {
  /* Five enrichment summary fields become two columns; Source is the last one. */
  .layout.os-layout-v10 .crm-enrichment-toolbar > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Keep ordinary task filters together; the searchable client picker has its own
   full-width row instead of determining the height of every neighboring field. */
#app .task-board-organizer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  container: task-organizer / inline-size;
}
#app .task-board-organizer > .task-board-organizer-copy { flex: 1 1 150px; }
#app .task-board-organizer > label { flex: 1 1 130px; min-width: 0; }
#app .task-board-organizer > label:first-of-type { flex: 1.3 1 180px; }
#app .task-board-organizer-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}
#app .task-board-organizer-actions > :is(.task-board-result-count, .task-board-reset) {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}
#app .task-board-organizer > .lookup-field {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: max-content minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 8px;
}
#app .task-board-organizer > .lookup-field > label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--muted);
}
@container task-organizer (max-width: 800px) {
  #app .task-board-organizer > .lookup-field { grid-template-columns: minmax(0, 1fr) auto minmax(140px, .8fr); }
  #app .task-board-organizer > .lookup-field > label { grid-column: 1 / -1; }
}
@container task-organizer (max-width: 640px) {
  #app .task-board-organizer > .task-board-organizer-copy { flex-basis: 100%; }
  #app .task-board-organizer > .lookup-field { grid-template-columns: minmax(0, 1fr); }
}

/* Workspace views: short context alongside the existing metrics and actions. */
#app .business-lens-panel {
  display: flex;
  container: business-lens / inline-size;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 12px 16px;
  align-items: center;
}
#app .business-lens-copy { flex: 1 1 220px; min-width: 0; }
#app .business-lens-copy > span { font-size: 10px; line-height: 1.3; }
#app .business-lens-copy h2 {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#app .business-lens-copy p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#app .business-lens-kpis {
  flex: 1.2 1 280px;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}
#app .business-lens-kpis .key-item { min-width: 0; gap: 8px; padding: 5px 0; }
#app .business-lens-kpis .key-item > :is(span, strong) { min-width: 0; overflow-wrap: anywhere; }
#app .business-lens-kpis .key-item > strong { flex-shrink: 0; white-space: nowrap; }
@container business-lens (max-width: 600px) {
  #app .business-lens-kpis { grid-template-columns: minmax(0, 1fr); }
}
#app .business-lens-actions {
  display: flex;
  flex: 1 1 340px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  gap: 6px;
  justify-content: flex-end;
}
#app .business-lens-actions > .btn { min-width: 0; max-width: 100%; white-space: normal; }
@media (max-width: 1000px) {
  #app .business-lens-actions { justify-content: flex-start; }
}

/* Compact the existing Settings right pane; preserve every value and action. */
@media screen {
  .layout.os-layout-v10 .settings-module-workspace {
    container: kraken-settings-content / inline-size;
  }

  /* The context card already supplies padding; its heading should not be a second box. */
  .layout.os-layout-v10 .settings-module-workspace > .settings-active-module {
    padding: 10px 12px;
    gap: 8px;
  }
  .layout.os-layout-v10 .settings-active-module > .settings-module-heading {
    padding: 0 0 8px;
    background: transparent;
  }
  .layout.os-layout-v10 .settings-active-module > .settings-module-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
    gap: 7px;
  }
  .layout.os-layout-v10 .settings-active-module > .settings-module-summary:has(> div:last-child:nth-child(3)) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .layout.os-layout-v10 .settings-active-module > .settings-module-summary > div {
    min-height: 0;
    padding: 8px 10px;
    align-content: start;
  }

  /* This specific health panel always has four items, not three. */
  .layout.os-layout-v10 .settings-admin-overview > .panel:first-child > .panel-body > .settings-health-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .layout.os-layout-v10 .settings-admin-overview > .settings-admin-console-grid > .settings-admin-card {
    min-height: 0;
  }

  @container kraken-settings-content (max-width: 760px) {
    .layout.os-layout-v10 .settings-admin-overview > .panel:first-child > .panel-body > .settings-health-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @container kraken-settings-content (max-width: 620px) {
    .layout.os-layout-v10 .settings-active-module > .settings-module-summary,
    .layout.os-layout-v10 .settings-active-module > .settings-module-summary:has(> div:last-child:nth-child(3)) {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .layout.os-layout-v10 .settings-active-module > .settings-module-summary > div:last-child:nth-child(odd) {
      grid-column: 1 / -1;
    }
  }
  @container kraken-settings-content (max-width: 340px) {
    .layout.os-layout-v10 .settings-admin-overview > .panel:first-child > .panel-body > .settings-health-grid {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  @container kraken-settings-content (max-width: 280px) {
    .layout.os-layout-v10 .settings-active-module > .settings-module-summary,
    .layout.os-layout-v10 .settings-active-module > .settings-module-summary:has(> div:last-child:nth-child(3)) {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  @media (max-width: 720px) {
    .layout.os-layout-v10 .settings-admin-overview > .panel:first-child > .panel-header > .badge {
      align-self: flex-start;
    }
  }
}

/* Keep account access usable; the avatar opens this existing-style quick panel. */
#app .profile-menu-shell {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
#app .profile-menu-shell > .profile-chip {
  display: inline-flex;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 3px;
}
#app .profile-chip > .avatar {
  display: inline-flex;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
}
#app .profile-chip > .profile-chip-name { display: none; }
#app .profile-chip:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
#app .profile-menu {
  position: absolute;
  z-index: 160;
  inset: calc(100% + 8px) 0 auto auto;
  box-sizing: border-box;
  width: 336px;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 80px);
  display: grid;
  padding: 6px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 36px rgba(15, 23, 42, .18);
  text-align: left;
  white-space: normal;
}
#app .profile-menu-identity {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 30px;
  align-items: start;
  gap: 8px;
  padding: 10px 8px 12px;
  border-bottom: 1px solid var(--line);
}
#app .profile-menu-identity > .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 12px;
}
#app .profile-menu-identity h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#app .profile-menu-identity p,
#app .profile-menu-identity small {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
#app .profile-menu .profile-menu-close {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}
#app .profile-menu-links { display: grid; gap: 3px; padding-block: 6px; }
#app .profile-menu-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 14px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  gap: 9px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  white-space: normal;
}
#app .profile-menu-link:is(:hover, :focus-visible) {
  background: var(--surface-2);
  outline: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
  outline-offset: -2px;
}
#app .profile-menu-link strong,
#app .profile-menu-link small { display: block; }
#app .profile-menu-link strong { font-size: 12px; line-height: 1.3; }
#app .profile-menu-link small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.3; }
#app .profile-quick-settings { display: grid; gap: 6px; padding: 8px; border-block: 1px solid var(--line); }
#app .profile-setting-row {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) minmax(0, auto);
  align-items: center;
  gap: 10px;
}
#app .profile-setting-row > span { font-size: 12px; }
#app .profile-setting-row :is(.business-switcher, .language-switch, .presence-control) {
  display: inline-flex;
  width: auto;
  max-width: 204px;
  min-width: 0;
  height: 36px;
  min-height: 36px;
}
#app .profile-setting-row .business-switcher > :is(span, .icon) { display: none; }
#app .profile-setting-row :is(.business-switcher, .presence-control) select {
  position: static;
  width: 100%;
  max-width: 190px;
  min-width: 0;
  height: 32px;
  min-height: 32px;
  padding: 0 18px 0 6px;
  font-size: 12px;
  opacity: 1;
}
#app .profile-setting-row .theme-switch {
  display: inline-grid;
  height: auto;
  min-height: 36px;
}
#app .profile-setting-row .theme-switch button {
  width: auto;
  min-width: 0;
  height: 30px;
  min-height: 30px;
  padding-inline: 7px;
  font-size: 11px;
}
#app .profile-setting-row .theme-switch button > span { display: inline; }
#app .profile-menu-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 8px 6px;
}
#app .profile-menu-footer .current-time-chip { display: flex; width: 100%; border: 0; background: transparent; padding: 0; }
#app .profile-menu-footer .current-time-chip > span { display: flex; gap: 8px; }
#app .profile-menu-footer :is(.clock-chip, .profile-sign-out) {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  min-width: 36px;
  height: auto;
  min-height: 36px;
  padding: 4px 9px;
  font-size: 12px;
}
#app .profile-menu-footer .clock-chip > span { display: grid; }
#app .profile-menu-footer .profile-sign-out > span { display: inline; }

/* Action buttons retain their own width. Use the actual header width, which
   already accounts for the sidebar, to move secondary controls into the menu. */
@media (min-width: 721px) {
  #app .layout.os-layout-v10 .topbar {
    container: kraken-topbar / inline-size;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 8px;
    overflow: visible;
  }
  #app .topbar > .search-wrap { width: 100%; min-width: 120px; max-width: 340px; }
  #app .topbar > .top-actions {
    display: flex;
    width: auto;
    min-width: 0;
    max-width: none;
    gap: 7px;
    overflow: visible;
  }
  #app .topbar .top-actions-utilities,
  #app .topbar .top-actions-primary {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    overflow: visible;
  }
  #app .top-actions-utilities > *,
  #app .top-actions-primary > * { flex: 0 0 auto; }
  #app .top-actions-utilities > :is(.business-switcher, .language-switch, .presence-control) { display: inline-flex; }
  #app .top-actions-utilities > .theme-switch { display: inline-grid; }
  #app .top-actions-utilities > .business-switcher { max-width: 190px; }
  #app .top-actions-utilities > .business-switcher > span { display: none; }
  #app .top-actions-utilities > .business-switcher select { min-width: 0; max-width: 160px; }
  #app .top-actions-primary > :is(.guidance-launcher, .ask-ai-launcher, .quick-create-launcher, .notification-bell, .clock-chip, .current-time-chip, .profile-menu-shell) {
    display: inline-flex;
  }
  #app .top-actions-primary > :is(.guidance-launcher, .ask-ai-launcher, .quick-create-launcher) {
    width: auto;
    min-width: 34px;
    padding-inline: 9px;
    gap: 5px;
    font-size: 11px;
    white-space: nowrap;
  }
  #app .top-actions-primary > :is(.guidance-launcher, .ask-ai-launcher, .quick-create-launcher) > span { display: inline; }
  #app .top-actions-primary > .btn > .icon { flex: 0 0 14px; width: 14px; min-width: 14px; }
  #app .top-actions-primary > .notification-bell { width: 34px; min-width: 34px; padding: 0; }
  #app .top-actions-primary > .clock-chip { width: auto; min-width: 34px; padding-inline: 8px; }
  #app .top-actions-primary > .clock-chip > span { display: grid; }
  #app .top-actions-utilities > .presence-control select {
    width: 104px;
    max-width: 104px;
    font-size: 11px;
  }
  @container kraken-topbar (max-width: 1420px) {
    #app .top-actions-utilities > .theme-switch { display: none; }
  }
  @container kraken-topbar (max-width: 1240px) {
    #app .top-actions-utilities > .theme-switch { display: none; }
  }
  @container kraken-topbar (max-width: 1100px) {
    #app .top-actions-utilities > .language-switch,
    #app .top-actions-primary > .current-time-chip,
    #app .top-actions-primary > .clock-chip { display: none; }
  }
  @container kraken-topbar (max-width: 960px) {
    #app .topbar .top-actions-utilities { display: none; }
  }
  @container kraken-topbar (max-width: 760px) {
    #app .top-actions-primary > .clock-chip { display: none; }
    #app .top-actions-primary > :is(.guidance-launcher, .ask-ai-launcher, .quick-create-launcher) { width: 34px; padding: 0; justify-content: center; }
    #app .top-actions-primary > :is(.guidance-launcher, .ask-ai-launcher, .quick-create-launcher) > span { display: none; }
  }
}
@media (min-width: 721px) and (max-width: 900px) {
  #app .layout.os-layout-v10 .topbar { grid-template-columns: 34px minmax(120px, 1fr) auto; }
}
@media (max-width: 720px) {
  #app .profile-menu-shell { display: none; }
}

/* The mobile quick-controls sheet is the same fallback for personal settings. */
@media (max-width: 720px) {
  #app .mobile-control-card .presence-control {
    display: inline-flex;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    padding-inline: 8px;
  }
  #app .mobile-control-card .presence-control select {
    position: static;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    padding: 0 16px 0 5px;
    color: inherit;
    font-size: 12px;
    opacity: 1;
  }
}
/* Readable record facts follow the available window width. */
.record-window-body .record-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 18px;
  margin-block: 8px 14px;
}
.record-window-body .record-summary .key-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  padding: 8px 0;
}
.record-window-body .record-summary .key-item > * { text-align: left; max-width: 100%; overflow-wrap: anywhere; }
[data-copy-content], [data-copy-content] * { -webkit-user-select: text !important; user-select: text !important; cursor: text; }
.clipboard-fallback { display: grid; gap: 6px; margin: 10px 0; font-size: 12px; }
.clipboard-fallback textarea { width: 100%; min-height: 90px; padding: 10px; resize: vertical; user-select: text; }
.pms-folio-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 14px; font-size: 12px; }
.pms-folio-options label { display: inline-flex; align-items: center; gap: 6px; }
.pms-folio-options input { width: auto; }
.pms-folio-options > span { margin-left: auto; color: var(--muted); }
#app .pms-folio-desk .pms-table-wrap { max-height: min(65vh, 720px); overflow: auto; }
#app .pms-folio-table { min-width: 2800px; table-layout: fixed; }
#app .pms-folio-table th { position: relative; padding: 8px; min-width: 150px; }
#app .pms-folio-table thead { position: sticky; top: 0; z-index: 3; background: var(--surface, #fff); }
#app .pms-folio-table thead th { position: relative; top: auto; }
#app .pms-folio-table td { padding: 10px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#app .pms-folio-table .is-number { text-align: right; font-variant-numeric: tabular-nums; }
.pms-folio-filter { display: grid; grid-template-columns: 1fr; gap: 4px; min-width: 0; }
#app .pms-folio-filter :is(input, select) { width: 100%; min-width: 0; height: 30px; padding: 4px 7px; font-size: 11px; }
#app .pms-folio-table .row-action-cell { white-space: normal; }
#app .pms-folio-table .pms-row-actions { display: flex; flex-wrap: nowrap; gap: 5px; }
#app .pms-folio-table .pms-row-actions button { white-space: nowrap; flex: 0 0 auto; padding: 5px 8px; min-height: 28px; font-size: 11px; }
#app .pms-folio-table th:last-child { width: 320px; }
#app .pms-folio-table tbody tr { height: auto; min-height: 0; }
#app .pms-folio-desk .pms-table-wrap { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; }
#app .pms-folio-desk .pms-search-box { width: clamp(240px, 26vw, 380px); }
#app .pms-folio-desk .pms-search-box input { width: 100%; min-width: 0; }
.pms-folio-options button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.pms-folio-history > summary { cursor: pointer; padding: 10px 14px; font-size: 12px; color: var(--muted); }
#app .pms-folio-table .pms-empty { align-items: flex-start; justify-items: start; text-align: left; min-height: 96px; }
@media (max-width: 720px) { #app .pms-folio-table, #app .pms-folio-table thead, #app .pms-folio-table tbody { display: table; } #app .pms-folio-table thead { display: table-header-group; } #app .pms-folio-table tbody { display: table-row-group; } #app .pms-folio-table tr { display: table-row; } #app .pms-folio-table :is(th, td) { display: table-cell; } }

/* Verified populated-module spacing, September 2026. Screen only. */
@media screen {
  /* Action labels keep their intrinsic width; crowded desktop rows wrap. */
  #app .layout.os-layout-v10 .page-actions > :is(.btn, .action-button),
  #app .layout.os-layout-v10 .panel-header > .btn {
    flex-shrink: 0;
  }
  #app .layout.os-layout-v10 .workspace-grid .panel-header {
    flex-wrap: wrap;
  }
  #app .layout.os-layout-v10 .workspace-grid .panel-header > div:first-child {
    flex: 1 1 180px;
    min-width: 0;
  }
  #app .layout.os-layout-v10 .workspace-strip {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  }
  /* Project health is inside a panel, often much narrower than the viewport. */
  #app .pm-command-center { container: kraken-project-command / inline-size; }
  #app .pm-panel { min-width: 0; }
  #app .pm-project-list { container: kraken-project-list / inline-size; }
  #app .pm-project-row {
    grid-template-columns: 10px minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 6px 12px;
    min-width: 0;
    min-height: 0;
    padding: 12px;
  }
  #app .pm-project-row > * { min-width: 0; }
  #app .pm-project-row > .pm-health { grid-column: 1; grid-row: 1 / 4; height: 100%; }
  #app .pm-project-row > strong { grid-column: 2 / 4; grid-row: 1; overflow-wrap: anywhere; }
  #app .pm-project-row > em { grid-column: 2 / 4; grid-row: 2; overflow-wrap: anywhere; }
  #app .pm-project-row > .badge { grid-column: 4; grid-row: 1 / 3; justify-self: end; align-self: start; width: max-content; }
  #app .pm-project-row > .pm-bars { grid-column: 2; grid-row: 3; margin-top: 6px; }
  #app .pm-project-row > .pm-evm { grid-column: 3 / 5; grid-row: 3; margin-top: 6px; }
  #app .pm-bars span { grid-template-columns: minmax(24px, 1fr) auto; }
  #app .pm-bars b { white-space: nowrap; font-variant-numeric: tabular-nums; }
  #app .pm-evm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)); }
  #app .pm-evm small { overflow-wrap: anywhere; }
  #app .pm-artifact {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 4px 8px;
    min-height: 64px;
  }
  #app .pm-artifact > span { grid-row: 1 / 3; }
  #app .pm-artifact > strong { overflow-wrap: anywhere; }
  #app .pm-artifact > em { grid-column: 2; font-size: 11px; font-style: normal; color: var(--muted); }
  #app .pm-kpi-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  @container kraken-project-command (max-width: 1100px) {
    #app .pm-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    #app .pm-layout { grid-template-columns: minmax(0, 1fr); }
    #app .pm-artifact-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
  }
  @container kraken-project-command (max-width: 550px) {
    #app .pm-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #app .pm-command-head { flex-wrap: wrap; }
  }
  @container kraken-project-list (max-width: 500px) {
    #app .pm-project-row { grid-template-columns: 8px minmax(0, 1fr) auto; }
    #app .pm-project-row > .pm-health { grid-row: 1 / 5; }
    #app .pm-project-row > strong { grid-column: 2; }
    #app .pm-project-row > em { grid-column: 2 / 4; }
    #app .pm-project-row > .badge { grid-column: 3; grid-row: 1; }
    #app .pm-project-row > .pm-bars { grid-column: 2 / 4; }
    #app .pm-project-row > .pm-evm { grid-column: 2 / 4; grid-row: 4; }
  }
  /* The icon selector also matched status badges and forced them to 34px. */
  #app .access-layer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
  #app .access-layer-card > .badge { width: max-content; max-width: 100%; height: auto; min-height: 22px; padding: 3px 7px; justify-self: start; overflow-wrap: anywhere; }
  /* Preserve full amounts in the chart without overlapping neighbouring bars. */
  #app .layout.os-layout-v10 .dashboss-vertical-chart {
    grid-template-columns: repeat(7, minmax(72px, 1fr));
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 8px;
  }
  #app .layout.os-layout-v10 .dashboss-column { padding-inline: 2px; }
}
@media screen and (min-width: 721px) {
  #app .layout.os-layout-v10 .page-actions { flex-wrap: wrap; min-width: 0; max-width: 100%; }
  #app .pms-program-header { flex-wrap: wrap; gap: 12px 20px; }
  #app .pms-brand { flex: 1 1 320px; }
  #app .pms-property-controls { flex: 0 1 auto; flex-wrap: wrap; max-width: 100%; }
  #app .pms-property-controls > :is(button, .pms-live) { flex-shrink: 0; }
  #app .pms-property-controls label { flex: 1 1 160px; min-width: 0; }
  #app .pms-property-controls select { width: 100%; min-width: 0; }
}
@media screen and (min-width: 721px) and (max-width: 1100px) {
  #app .layout.os-layout-v10 .workspace-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 720px) {
  #app .layout.os-layout-v10 .workspace-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen {
  #app .layout.os-layout-v10 .panel-header > .badge { flex-shrink: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  #app .layout.os-layout-v10 .enterprise-console .panel-header { flex-wrap: wrap; }
  #app .layout.os-layout-v10 .settings-module-heading > .badge { flex-shrink: 0; width: max-content; max-width: 100%; }
}
@media screen and (max-width: 720px) {
  #app .layout.os-layout-v10 .mobile-card-table td .badge { white-space: normal; overflow-wrap: anywhere; height: auto; line-height: 1.35; }
  #app .layout.os-layout-v10 .dashboss-operating-tools .saas-role-home { grid-template-columns: minmax(0, 1fr); }
}

@media screen {
  /* A lone title before full-width notes should use the otherwise empty row. */
  #app .record-edit-fieldset > .record-primary-field:first-child:has(+ .record-primary-field.span-2) {
    grid-column: 1 / -1;
  }
}

/* Shared page rhythm: headers size to their content and split panels align. */
@media screen {
  /* Panels now use relative positioning. Clear the inherited sticky topbar
     inset so it cannot push the side panel below the adjoining main panel. */
  #app .layout.os-layout-v10 .split-page > .context-panel:not(.lane-detail-panel) {
    top: 0;
    margin-block-start: 0;
    align-self: start;
  }
}
@media screen and (min-width: 721px) {
  #app .layout.os-layout-v10 .page-header {
    min-height: 0;
    height: auto;
    padding: 10px 14px;
    gap: 10px 12px;
    align-items: center;
  }
  #app .layout.os-layout-v10 .page-header > div:first-child {
    min-width: 0;
    gap: 3px;
  }
  /* The title and active workspace tab already identify the module. */
  #app .layout.os-layout-v10 .page-header .module-tag {
    display: none;
  }
  #app .layout.os-layout-v10 .page-header h1 {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  #app .layout.os-layout-v10 .page-header p {
    margin: 0;
  }
  #app .layout.os-layout-v10 .page-header .page-actions {
    align-self: center;
    align-items: center;
    row-gap: 6px;
  }
}
@media screen and (min-width: 721px) and (max-width: 1100px) {
  /* Keep short tablet headings beside their actions; long toolbars can wrap. */
  #app .layout.os-layout-v10 .page-header {
    grid-template-columns: minmax(180px, 1fr) minmax(0, auto);
  }
}
@media screen and (min-width: 641px) and (max-width: 900px) {
  /* Tablet record windows start below the app bar. Put the controller in that
     reserved strip so its toggle never covers the window's close button. */
  #app .layout.os-layout-v10.record-workspace-active .record-controller {
    top: max(8px, env(safe-area-inset-top));
  }
}

/* Search results are directly selectable in every company/catalogue picker. */
#app .layout.os-layout-v10 .lookup-field .record-lookup-search {
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  padding: 0 10px;
  min-height: 42px;
}
#app .layout.os-layout-v10 .lookup-field .record-lookup-search > input {
  width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
}
#app .lookup-search-results[hidden] { display: none; }
#app .lookup-search-results {
  max-height: 224px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
#app .lookup-search-result {
  display: grid;
  gap: 3px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}
#app .lookup-search-result:last-child { border-bottom: 0; }
#app .lookup-search-result:is(:hover, :focus-visible) {
  background: var(--surface-2);
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}
#app .lookup-search-result strong { font-size: 13px; }
#app .lookup-search-result small { margin: 0; font-size: 11px; color: var(--muted); }
#app .lookup-search-results > p { margin: 0; padding: 12px; font-size: 12px; color: var(--muted); }

#app .lookup-pagination.is-single-page > .btn { display: none; }
#app .lookup-pagination.is-single-page { display: block; }

/* Give the full uploaded campaign layout the width it needs to be reviewed. */
.email-design-studio:has(.tone-itd_digital_partner) { grid-template-columns: minmax(0, 1fr); }
.email-design-studio:has(.tone-itd_digital_partner) [data-email-design-preview] { min-width: 0; }
.email-design-studio:has(.tone-itd_digital_partner) .email-design-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.email-design-studio:has(.tone-itd_digital_partner) iframe { min-height: 640px; border-radius: 8px; }
.email-template-card.tone-itd_digital_partner { background: var(--surface); border-top: 4px solid #e50914; }
.catalogue-original-price { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); gap: 6px; }
@media (max-width: 600px) {
  .email-design-studio:has(.tone-itd_digital_partner) .email-design-fields { grid-template-columns: minmax(0, 1fr); }
}

/* A tall company picker must not stretch neighboring offer fields. */
#app [data-kind="offer_upload"] .form-grid > .field { align-self:start; }

/* Task-board progress supports direct mouse, touch and keyboard adjustment. */
.task-progress-control { min-width: 0; }
.task-progress-caption { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; line-height: 1.3; color: var(--muted); }
.task-progress-caption output { font-weight: 700; color: var(--text); }
.task-progress-control input[type="range"] {
  display: block; width: 100%; min-width: 0; min-height: 28px; height: 28px;
  margin: 0; padding: 0; border: 0; border-radius: 8px; box-shadow: none;
  appearance: none; -webkit-appearance: none; background: transparent;
  cursor: ew-resize; touch-action: pan-y; accent-color: var(--primary);
}
.task-progress-control input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(to right, var(--primary) 0%, var(--teal) var(--task-progress), rgba(148,163,184,.25) var(--task-progress), rgba(148,163,184,.25) 100%);
}
.task-progress-control input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 999px;
  background: linear-gradient(to right, var(--primary) 0%, var(--teal) var(--task-progress), rgba(148,163,184,.25) var(--task-progress), rgba(148,163,184,.25) 100%);
}
.task-progress-control input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 13px; height: 13px; margin-top: -4px;
  border: 2px solid var(--surface, #fff); border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.task-progress-control input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px; border: 2px solid var(--surface, #fff); border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 1px var(--primary);
}
.task-progress-control input[type="range"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.task-progress-control input[type="range"]:disabled { cursor: wait; opacity: .6; }
@media (pointer: coarse) { .task-progress-control input[type="range"] { min-height: 36px; height: 36px; } }

/* HR work report: a contained table on mobile, with clear metric definitions. */
.hr-work-report { display: grid; gap: 16px; min-width: 0; }
.hr-work-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hr-work-entry span, .hr-work-help { color: var(--muted, #536582); font-size: 13px; line-height: 1.6; }
.hr-work-report .panel { padding: 16px; min-width: 0; }
.hr-work-filters { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)) auto; align-items: end; gap: 12px; }
.hr-work-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.hr-work-summary strong { display: block; font-size: 24px; margin-top: 8px; }
.hr-work-table-wrap { overflow-x: auto; }
.hr-work-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.hr-work-table th, .hr-work-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border, #dee5f0); }
.hr-work-table th { font-weight: 650; }
.hr-work-table tbody th small { display: block; margin-top: 5px; font-weight: 400; }
.hr-work-table td { font-variant-numeric: tabular-nums; }
[data-live-work-duration] { font-variant-numeric: tabular-nums; }
@media(max-width: 900px) { .hr-work-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .hr-work-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 480px) { .hr-work-report .page-header { flex-wrap: wrap; } .hr-work-filters { grid-template-columns: minmax(0,1fr); } }

/* A readable progress control with room for touch, and quick values on demand. */
.task-progress-control { padding: 5px 0 2px; }
.task-progress-caption { align-items:center; min-height:24px; font-size:11px; }
.task-progress-label { display:flex; align-items:center; gap:7px; font-weight:600; color:var(--muted); }
.task-progress-label small { font-size:9px; font-weight:500; color:var(--teal); }
.task-progress-value { display:flex; align-items:center; gap:5px; padding:3px 7px; border:1px solid var(--line,#dbe4f3); border-radius:7px; background:var(--surface,#fff); color:var(--primary); cursor:pointer; font:inherit; }
.task-progress-value output { font-size:12px; font-variant-numeric:tabular-nums; color:inherit; }
.task-progress-value:hover, .task-progress-value[aria-expanded="true"] { background:var(--surface-2,#eef3ff); border-color:var(--primary); }
.task-progress-control input[type="range"] { height:28px; min-height:28px; margin:0; border-radius:8px; }
.task-progress-control input[type="range"]::-webkit-slider-runnable-track { height:7px; background:linear-gradient(to right,var(--primary) 0%,var(--teal) var(--task-progress),var(--surface-3,#e5eaf3) var(--task-progress),var(--surface-3,#e5eaf3) 100%); box-shadow:inset 0 1px 2px #132b5010; }
.task-progress-control input[type="range"]::-moz-range-track { height:7px; background:linear-gradient(to right,var(--primary) 0%,var(--teal) var(--task-progress),var(--surface-3,#e5eaf3) var(--task-progress),var(--surface-3,#e5eaf3) 100%); }
.task-progress-control input[type="range"]::-webkit-slider-thumb { width:17px; height:17px; margin-top:-5px; border:3px solid var(--surface,#fff); background:var(--primary); box-shadow:0 0 0 1px #254ecb66,0 2px 5px #18316d30; transition:box-shadow .15s; }
.task-progress-control input[type="range"]::-moz-range-thumb { width:12px; height:12px; border:3px solid var(--surface,#fff); background:var(--primary); }
.task-progress-control input[type="range"]:hover::-webkit-slider-thumb, .task-progress-control input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow:0 0 0 5px #2457df1c,0 2px 6px #18316d30; }
.task-progress-presets { padding:9px; border:1px solid var(--line,#dbe4f3); border-radius:10px; background:var(--surface-2,#f4f7fc); margin-bottom:8px; }
.task-progress-presets[hidden] { display:none; }
.task-progress-presets > span { font-size:10px; color:var(--muted); font-weight:600; }
.task-progress-presets > div { display:flex; gap:4px; margin:7px 0; }
.task-progress-presets button { flex:1; min-height:30px; padding:3px; border:1px solid var(--line,#dbe4f3); border-radius:6px; background:var(--surface,#fff); color:var(--primary); font-size:10px; cursor:pointer; }
.task-progress-presets button:hover { border-color:var(--primary); }
.task-progress-presets small { display:block; font-size:10px; line-height:1.5; color:var(--muted); }
.task-progress-readonly { display:grid; gap:7px; padding:6px 0; }
.task-progress-readonly > span { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); }
.task-more-button { font-size:23px; font-weight:700; flex-shrink:0; }
.record-context-menu { display:flex; flex-direction:column; max-height:min(580px,var(--context-space,calc(100dvh - 24px))); }
.record-context-menu .context-menu-header { flex-shrink:0; }
.record-context-menu .context-menu-list { overflow-y:auto; min-height:0; overscroll-behavior:contain; }
.context-menu-footer { border-top:1px solid var(--line,#dbe4f3); padding-top:7px; margin-top:5px; flex-shrink:0; }
.context-menu-footer .context-menu-button { width:100%; }
.context-menu-button:focus-visible, .task-progress-value:focus-visible, .task-progress-presets button:focus-visible { outline:2px solid var(--primary); outline-offset:-2px; background:var(--surface-2,#eef3ff); }
@media(pointer:coarse) { .task-progress-control input[type="range"] { height:36px; min-height:36px; } .task-progress-presets button { min-height:36px; } }
@media(prefers-reduced-motion:reduce) { .task-progress-control input[type="range"]::-webkit-slider-thumb { transition:none; } }
/* Override generic text-field chrome on the slider and its compact controls. */
#app .task-progress-control input[type="range"] { border:0; box-shadow:none; background:transparent; padding:0; }
#app .task-progress-control input[type="range"]:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
#app .task-progress-value { min-height:24px; font-size:11px; padding:3px 7px; }
#app .task-progress-presets button { min-width:0; font-size:10px; padding:3px 1px; }

/* Search and master refresh occupy one shared header cell. */
@media (min-width: 721px) {
  #app .topbar > .header-search-tools { display: flex; align-items: center; gap: 8px; min-width: 152px; width: 100%; max-width: 380px; }
  #app .header-search-tools > .search-wrap { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }
  #app .header-search-tools > .master-refresh { flex: 0 0 32px; }
}
@media (max-width: 720px) {
  #app .topbar > .header-search-tools { display: flex; align-items: center; gap: 4px; min-width: 0; }
  #app .header-search-tools > .search-wrap { flex: 1 1 0; width: auto; min-width: 0; }
  #app .header-search-tools > .master-refresh { flex: 0 0 32px; }
}
#app .layout.os-layout-v10 .commercial-detail-section { order: 3; }
#app .layout.os-layout-v10 .commercial-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { #app .layout.os-layout-v10 .commercial-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { #app .layout.os-layout-v10 .commercial-kpi-grid { grid-template-columns: 1fr; } }
@media (min-width: 721px) and (max-width: 1100px) {
  #app .layout.os-layout-v10 .topbar { grid-template-columns: 34px minmax(152px, 1fr) auto; }
}

/* Audit Volume 3: shared header, task and conversation controls. */
#app .sidebar-home-link { display:flex; align-items:center; flex:1; min-width:0; text-decoration:none; color:inherit; }
#app .sidebar-home-link:focus-visible { outline:2px solid var(--primary); outline-offset:3px; }
#app .inbox-channel-item .channel-hash:not(.is-person) { background:transparent; border:0; box-shadow:none; color:inherit; }
#app .task-lane-header-tools .lane-count { background:transparent; border:0; box-shadow:none; padding:0; color:var(--muted); }
#app .business-switcher > .icon { background:transparent; border:0; box-shadow:none; padding:0; flex-shrink:0; }
#app .current-time-chip [data-live-clock-time] { font-size:13px; line-height:1.2; font-variant-numeric:tabular-nums; }
#app .current-time-chip [data-live-clock-date] { font-size:10px; line-height:1.25; }
#app .task-detail-meta-line .task-detail-assignee { display:inline-flex; align-items:center; gap:6px; min-width:0; }
#app .task-detail-assignee > .avatar { flex:0 0 24px; width:24px; min-width:24px; height:24px; min-height:24px; margin:0; padding:0; border:0; justify-content:center; line-height:1; }
#app .task-detail-assignee-name { min-width:0; min-height:0; padding:0; border:0; background:transparent; border-radius:0; overflow:hidden; text-overflow:ellipsis; }
/* Every create/upload dialog uses the same viewport centering layer. */
#app .drawer-layer { position:fixed; inset:0; z-index:1750; display:flex; align-items:center; justify-content:center; padding:16px; pointer-events:none; }
#app .drawer-layer > .drawer-backdrop { position:absolute; inset:0; z-index:0; pointer-events:auto; }
#app .drawer-layer > .drawer.open { position:relative !important; inset:auto !important; transform:none !important; margin:0 !important; z-index:1; pointer-events:auto; max-height:calc(100dvh - 32px); max-width:100%; }
@media(max-width:720px) { #app .drawer-layer { padding:8px; } #app .drawer-layer > .drawer.open { max-height:calc(100dvh - 16px); } }

/* Keep the master refresh immediately recognizable in both themes. */
#app .topbar .master-refresh {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
  box-shadow: 0 2px 6px rgb(29 78 216 / 28%);
}
#app .topbar .master-refresh:hover:not(:disabled) { background: #1e40af; border-color: #1e3a8a; }
#app .topbar .master-refresh:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
#app .topbar .master-refresh:disabled { opacity: .7; }

/* A tab title and its close button share one visible container. */
#app .workspace-tab-list { gap: 8px; scroll-snap-type: x proximity; }
#app .workspace-tab-group {
  display: grid;
  grid-template-columns: minmax(68px, 1fr) 28px;
  align-items: center;
  grid-template-rows: minmax(0, 1fr);
  gap: 2px;
  padding: 2px 3px 2px 2px;
  height: 34px;
  box-sizing: border-box;
  border: 1px solid #d7e0ef;
  border-radius: 8px;
  background: #f5f7fc;
  scroll-snap-align: start;
}
#app .workspace-tab-group.is-active {
  border-color: #4665d8;
  background: #eaf0ff;
  box-shadow: inset 0 -2px 0 #4665d8;
}
#app .workspace-tab-group .workspace-tab {
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  min-width: 0;
  width: 100%;
  padding: 3px 7px;
  border: 0;
  border-radius: 5px;
  box-shadow: none;
  background: transparent;
}
#app .workspace-tab-group.is-active .workspace-tab { color: #193cad; }
#app .workspace-tab-group .workspace-tab-close {
  position: static;
  display: grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  box-sizing: border-box;
  height: 28px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #5b6c88;
}
#app .workspace-tab-group .workspace-tab-close:hover {
  background: #ffe5e9;
  color: #ad1730;
}
#app .workspace-tab-group :is(.workspace-tab, .workspace-tab-close):focus-visible {
  outline: 2px solid #4665d8;
  outline-offset: -2px;
}
html[data-theme="dark"] #app .workspace-tab-group { background: #17243b; border-color: #3d506c; }
html[data-theme="dark"] #app .workspace-tab-group.is-active { background: #203a64; border-color: #82adff; box-shadow: inset 0 -2px 0 #82adff; }
html[data-theme="dark"] #app .workspace-tab-group.is-active .workspace-tab { color: #e4edff; }
html[data-theme="dark"] #app .workspace-tab-group .workspace-tab-close { background: transparent; color: #b8c8df; }
html[data-theme="dark"] #app .workspace-tab-group .workspace-tab-close:hover { background: #593040; color: #ffd7df; }

/* Six summary cards; collection details live together in the money section. */
#app .dashboss-reference-top > .dashboss-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#app .dashboss-reference-top .dashboss-gauge-card { grid-column: span 1; }
@media (max-width: 1180px) { #app .dashboss-reference-top > .dashboss-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { #app .dashboss-reference-top > .dashboss-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 430px) { #app .dashboss-reference-top > .dashboss-kpi-grid { grid-template-columns: 1fr; } }

/* Task cards use the same readable rows in every Kanban status lane. */
#app .layout.os-layout-v10 .task-board-kanban .task-card-premium {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 8px; padding: 12px; border-radius: 10px; min-width: 0;
  height: auto; max-height: none; flex: 0 0 auto;
}
#app .task-board-kanban .task-card-head {
  display: grid; grid-template-columns: minmax(0, 1fr) 30px;
  align-items: start; gap: 6px; min-height: 64px; margin: 0;
}
#app .task-board-kanban .task-type-label {
  display: block; font-size: 10px; line-height: 16px; letter-spacing: .025em;
}
#app .task-board-kanban .task-card-head h3 {
  font-size: 13px; line-height: 18px; font-weight: 700;
  min-height: 36px; margin: 3px 0 0; overflow-wrap: anywhere;
}
#app .task-board-kanban .task-more-button {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px;
  min-width: 30px; min-height: 30px; padding: 0; margin: 0;
  border: 0; border-radius: 7px; background: transparent; box-shadow: none;
  color: var(--muted); font: 700 22px/1 sans-serif; cursor: pointer;
}
#app .task-board-kanban .task-more-button:hover {
  background: var(--surface-2, #eef3ff); color: var(--primary);
}
#app .task-board-kanban .task-more-button:focus-visible {
  outline: 2px solid var(--primary); outline-offset: -2px;
}
#app .task-board-kanban .task-card-context {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  justify-content: start; align-items: center; gap: 5px;
  min-height: 45px; overflow: visible;
}
#app .task-board-kanban .task-card-context .task-account-label {
  grid-column: 1 / -1; display: flex; align-items: center;
  min-width: 0; height: 18px; gap: 5px; font-size: 11px; line-height: 18px;
}
#app .task-board-kanban .task-account-label > span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
#app .task-board-kanban .task-card-context .icon {
  width: 13px; height: 13px; flex: 0 0 13px;
}
#app .task-board-kanban .task-department-chip {
  justify-self: start; max-width: 100%; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#app .task-board-kanban .task-card-context :is(.badge, .task-department-chip) {
  font-size: 10px; line-height: 16px; min-height: 22px; padding: 2px 6px;
  box-sizing: border-box; letter-spacing: 0;
}
#app .task-board-kanban :is(.task-progress-control, .task-progress-readonly) {
  display: grid; grid-template-rows: 28px 28px; gap: 0; padding: 0;
  min-height: 56px; align-content: start; margin: 0;
}
#app .task-board-kanban :is(.task-progress-caption, .task-progress-readonly > span) {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 28px; font-size: 11px; line-height: 16px; gap: 6px;
}
#app .task-board-kanban .task-progress-label { font-size: 11px; gap: 4px; }
#app .task-board-kanban .task-progress-label small { font-size: 9px; }
#app .task-board-kanban .task-progress-value { min-width: 48px; justify-content: center; flex-shrink: 0; }
#app .task-board-kanban .task-progress-readonly > span strong {
  min-width: 48px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums;
}
#app .task-board-kanban .task-progress-readonly .task-progress-line {
  align-self: center; height: 7px; margin: 0; width: 100%;
}
#app .task-board-kanban .task-progress-presets { grid-column: 1; margin-top: 4px; }
#app .layout.os-layout-v10 .task-board-kanban .task-card-foot {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px;
  min-height: 52px; align-items: center;
}
#app .task-board-kanban .task-card-dates {
  display: flex; align-items: center; justify-content: space-between;
  min-width: 0; gap: 4px; min-height: 22px;
}
#app .task-board-kanban .task-card-dates .due-chip {
  font-size: 10px; line-height: 16px; padding: 2px 6px;
  min-height: 22px; white-space: nowrap; gap: 4px; flex-shrink: 0;
}
#app .task-board-kanban .task-card-dates .due-chip .icon { width: 13px; height: 13px; }
#app .task-board-kanban .task-recent-badges {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; min-width: 0;
}
#app .task-board-kanban .task-recent-badges .badge {
  font-size: 9px; line-height: 14px; padding: 2px 4px; white-space: normal;
}
#app .task-board-kanban .task-card-foot .task-user-tags {
  width: 100%; min-height: 24px; justify-content: flex-start; gap: 4px;
}
#app .task-board-kanban .task-card-foot .task-user-tag {
  height: 24px; max-width: 100%; flex: 0 1 auto;
}
#app .task-board-kanban .task-card-foot .task-user-tag b { font-size: 10px; font-weight: 650; }
#app .task-board-kanban .task-card-foot .task-user-tag:is(.is-overflow, .is-unassigned) {
  flex: 0 0 auto; justify-self: start;
}
#app .layout.os-layout-v10 .task-board-kanban .task-card-actions {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px; margin-top: auto; padding-top: 2px; min-height: 34px;
}
#app .layout.os-layout-v10 .task-board-kanban .task-card-actions .btn {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; height: 34px; min-height: 34px; padding: 0 4px;
  gap: 4px; font-size: 11px; line-height: 16px; white-space: nowrap;
}
#app .task-board-kanban .task-card-actions .btn .icon { width: 12px; height: 12px; flex: 0 0 12px; }
#app .task-board-kanban .task-lane-header { min-height: 48px; align-items: start; }
#app .task-board-kanban .task-lane-header-tools { align-self: center; }
@media (pointer: coarse) {
  #app .task-board-kanban :is(.task-progress-control, .task-progress-readonly) { grid-template-rows: 28px 36px; min-height: 64px; }
  #app .layout.os-layout-v10 .task-board-kanban .task-card-actions .btn { height: 40px; min-height: 40px; }
}

#app .task-board-kanban .task-more-button > span { font: inherit; color: inherit; }

/* Focus mode uses a grid; its rows must grow with the full card content. */
#app .layout.os-layout-v10 .task-board-kanban.is-lane-focused .task-lane-body { grid-auto-rows: max-content; }
#app .layout.os-layout-v10 .task-board-kanban.is-lane-focused .task-card-premium { height: max-content; align-self: start; }

#app .task-board-kanban .task-lane-more { width: 100%; min-height: 36px; flex: 0 0 auto; grid-column: 1 / -1; font-size: 12px; }

/* The full editor follows the creation form, with a stable header and save bar. */
#app .drawer.record-full-editor { width:min(920px,calc(100vw - 32px)); }
#app .record-full-editor .drawer-body { padding:24px; overflow:auto; min-height:0; }
#app .record-full-editor .full-edit-summary { margin-bottom:24px; padding-bottom:18px; border-bottom:1px solid var(--border,#dbe3ef); }
#app .record-full-editor .full-edit-summary h3 { font-size:20px; margin:6px 0; }
#app .record-full-editor .full-edit-summary p { font-size:14px; line-height:1.5; margin:0; color:var(--muted,#536781); }
#app .full-record-fields { gap:20px; align-items:start; }
#app .full-record-fields .field { min-width:0; margin:0; }
#app .full-record-fields input,#app .full-record-fields select,#app .full-record-fields textarea { font-size:14px; min-height:42px; }
#app .full-record-fields textarea { min-height:92px; }
#app .full-record-fields .linked-quick-create-button { justify-self:start; }
#app .definition-catalogs { margin-bottom:16px; }
#app .definition-catalog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); padding:16px; gap:14px; }
#app .definition-catalog-grid article { border:1px solid var(--border,#dbe3ef); border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:10px; }
#app .definition-catalog-grid h3,#app .definition-catalog-grid p { margin:0; }
#app .definition-catalog-grid p { font-size:14px; line-height:1.5; color:var(--muted,#536781); flex:1; }
@media(max-width:600px) {
  #app .drawer.record-full-editor { width:100%; }
  #app .record-full-editor .drawer-body { padding:16px; }
  #app .full-record-fields { grid-template-columns:minmax(0,1fr); gap:16px; }
  #app .full-record-fields .span-2 { grid-column:1; }
}

#app .campaign-delivery-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#app .campaign-delivery-controls small { flex-basis:100%; font-size:12px; line-height:1.5; color:var(--muted,#526781); }
#app .campaign-delivery-controls.is-compact { min-width:250px; flex-wrap:nowrap; }
#app .campaign-delivery-controls .campaign-stop-button { color:#b42335; border-color:#e5b2b9; }
#app .campaign-delivery-controls button:disabled { opacity:.5; cursor:not-allowed; }
@media(max-width:600px) { #app .campaign-delivery-controls:not(.is-compact) { width:100%; } #app .campaign-delivery-controls:not(.is-compact) button { flex:1; } }

.notification-center-toolbar {padding:12px 16px;border-bottom:1px solid var(--border,#dce3ed);}
.notification-center-toolbar .row-actions {display:flex;gap:6px;flex-wrap:wrap;}
.notification-center-toolbar [aria-pressed="true"] {background:#1e40af;color:white;border-color:#1e40af;}
.notification-center-toolbar p,.notification-center-toolbar small {font-size:12px;color:var(--muted,#526480);margin:8px 0 0;line-height:1.5;}

.notification-center .notification-center-toolbar button[aria-pressed="true"] {background:#1e40af !important;color:#fff !important;border:2px solid #1e40af !important;box-shadow:0 0 0 2px rgba(37,99,235,.16);font-weight:800;}
.notification-center .notification-center-toolbar button[aria-pressed="false"] {background:transparent;color:var(--text,#142238);border:2px solid var(--border,#dce3ed);}
.notification-history-section h4 {display:flex;justify-content:space-between;align-items:center;margin:0;padding:12px 10px;font-size:13px;border-bottom:1px solid var(--border,#dce3ed);}
.notification-history-section h4 span {font-variant-numeric:tabular-nums;font-size:12px;}
.notification-history-section + .notification-history-section {margin-top:18px;border-top:2px solid var(--border,#dce3ed);}
.notification-history-empty {padding:12px;color:var(--muted,#526480);font-size:13px;}
.notification-history-more {display:block;width:calc(100% - 16px);margin:12px 8px;min-height:38px;}
/* Product updates share the workspace shell and keep release notes readable. */
.updates-workspace{max-width:1280px;margin:0 auto;padding-bottom:24px}.release-filters{display:flex;align-items:end;gap:12px;padding:16px;flex-wrap:wrap;margin:16px 0}.release-filters label,.release-composer label{display:grid;gap:7px;font-size:13px;font-weight:600}.release-search{flex:1;min-width:210px}.release-filters input,.release-filters select,.release-composer input,.release-composer textarea,.release-composer select{width:100%;min-height:40px;border:1px solid var(--border,#dce3f1);border-radius:8px;background:var(--surface,#fff);color:inherit;padding:9px;font:inherit}.release-filters label:not(.release-search){min-width:140px}.release-result-count{margin:16px 2px;color:var(--muted,#64748b);font-size:13px}.release-feed{display:grid;gap:16px}.release-note{padding:24px;background:var(--surface,#fff);border:1px solid var(--border,#dce3f1);border-radius:14px}.release-note h2{font-size:23px;line-height:1.3;margin:14px 0 10px}.release-note-meta{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--muted,#64748b)}.release-category{color:#1e40af;background:#eaf0ff;padding:5px 9px;border-radius:20px;font-weight:700}.release-summary{font-size:15px;line-height:1.65;max-width:850px;margin:0 0 16px}.release-body{white-space:pre-wrap;font-size:15px;line-height:1.8;border-top:1px solid var(--border,#dce3f1);padding-top:20px;overflow-wrap:anywhere;max-width:900px}.release-pagination{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:20px}.release-back{margin:16px 0}.release-empty{padding:32px;text-align:center}.release-composer{padding:24px;display:grid;gap:16px;margin-top:16px}.release-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.release-composer .release-confirm{display:flex;align-items:center;gap:10px}.release-confirm input{width:18px;min-height:18px}.release-composer [role=alert]{color:#b91c1c}.release-note p,.release-note h2{overflow-wrap:anywhere}@media(max-width:600px){.release-note,.release-composer{padding:18px}.release-form-grid{grid-template-columns:1fr}.release-filters label{flex:1;min-width:130px}.release-note h2{font-size:21px}}
.notification-push-compact{margin:8px 12px;border:1px solid var(--border,#dce3f1);border-radius:9px;background:var(--surface,#fff);font-size:12px}.notification-push-compact summary{display:flex;align-items:center;gap:8px;cursor:pointer;padding:9px 10px;min-height:36px;list-style:none}.notification-push-compact summary svg{width:15px;height:15px;flex:none}.notification-push-compact summary span{flex:1;font-weight:600}.notification-push-compact summary small{color:var(--muted,#64748b)}.notification-push-options{padding:0 10px 10px}.notification-push-options p{margin:0 0 8px}.notification-push-options>div{display:flex;gap:8px}.layout.os-layout-v10 .workspace-department-groups.single-department{grid-template-columns:minmax(0,1fr)!important}.layout.os-layout-v10 .single-department .workspace-people-list{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))!important;gap:8px}.layout.os-layout-v10 .workspace-department-groups{align-items:start}.task-repeat-dialog{width:min(540px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid var(--border,#dce3f1);border-radius:16px;padding:24px;background:var(--surface,#fff);color:var(--text,#172033)}.task-repeat-dialog::backdrop{background:rgba(15,23,42,.4)}.task-repeat-dialog form{display:grid;gap:14px}.task-repeat-dialog h2,.task-repeat-dialog p{margin:0}.task-repeat-dialog p{font-size:14px;line-height:1.6}.task-repeat-dialog label{display:grid;gap:6px;font-weight:600}.task-repeat-dialog input,.task-repeat-dialog select{min-height:42px;border:1px solid var(--border,#dce3f1);border-radius:8px;padding:9px;background:var(--surface,#fff);color:inherit}.task-repeat-dialog footer{display:flex;justify-content:end;gap:8px}.task-repeat-dialog [role=alert]{color:#b91c1c}.task-repeat-dialog [data-repeat-summary]{padding:12px;border-radius:8px;background:#eef4ff;color:#1e40af}
