/*
 * CURRENT: Apple Blue UI / 20261031-apple-blue-10
 * Specification: docs/frontend-ui-spec/apple-list-form.md (highest visual priority).
 * Earlier R2/R3/R5 sections below are compatibility foundations, not current visual defaults.
 * Theme: ct-apple-blue-theme; form layout: ct-apple-list-form (one field per row).
 * Primary #007AFF; surface #FFFFFF; page #F5F5F7; body 13px; label 140px, right aligned.
 * Shared tokens and component overrides are maintained in the Apple Blue sections below.
 * Load after legacy framework styles in every page/iframe; CtUI.mount adds the theme class.
 * CSS cannot theme unmounted third-party surfaces or canvas charts without their adapters.
 */
/* V1.5.1-R3 (20261029-r3): preserves R2, fixes radio :indeterminate default state; legacy choice opt-in. */
/* V1.5.1-R2 / 20261029-r2. FULL FILE; replaces previous same-name stylesheet.
 * One business surface = one root. Detached dialogs/portals have independent roots.
 * Geometry/lifecycle belong to the existing host, not this stylesheet.
 */
/*
 * FastAdmin UI/UX V1.5.1 | Global-load / opt-in stylesheet
 * Source: WEB_ADMIN_UI_SPEC_V1.5.1.md and compact-admin-ui_V1.5.1.css
 * Install globally AFTER Bootstrap3/AdminLTE/FastAdmin styles in EACH document/iframe.
 * Enable on a page root: class="ct-app ct-compact-ui ct-ui-standard".
 * No broad body/.row/.btn/.modal overrides: avoid breaking legacy modules.
 * Stronger declarations target ONLY opt-in roots. CSS cannot promise precedence
 * over later !important rules, inline !important, or foreign cascade origins.
 */
/*
 * Compact Admin UI | Demo-based visual baseline v1.3
 * Source: deepseek_html_20261024_d859e7.html
 * Scope: ONLY opt-in pages with class="ct-app ct-compact-ui".
 * D (demo-exact): tokens, colors, type, density, component states.
 * R (responsive addition): container queries and smaller layouts.
 * P (production addition): semantic focus, errors, disabled states,
 *    module-local scrolling instead of the demo's viewport-fixed footer.
 *
 * Integration note: For the three-region scrolling layout, the module's
 * host container MUST have a defined block-size, and the root must also
 * carry "ct-compact-ui--fill". Otherwise use natural page scrolling.
 * Do not replace existing global FastAdmin/Bootstrap/AdminLTE rules.
 */

.ct-app.ct-compact-ui {
  /* D: exact demo palette */
  --ui-bg: #F5F5F7;
  --ui-card: #FFFFFF;
  --ui-text: #1D1D1F;
  --ui-text-sub: #86868B;
  --ui-border: #D2D2D7;
  --ui-blue: #007AFF;
  --ui-blue-bg: #F0F7FE;
  --ui-green: #34C759;
  --ui-red: #FF3B30;
  --ui-strip: #FAFAFC;
  --ui-blue-border: #CFE4F9;
  --ui-toggle-border: #B0D4F5;
  --ui-hover-border: #B0B0B5;
  --ui-blue-hover: #0066D6;
  --ui-disabled-bg: #E5E5EA;
  --ui-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --ui-body-size: 13px;
  --ui-content-max: 900px;
  --ui-label-width: 110px;
  --ui-main-pad: 24px;
  --ui-card-pad: 20px;
  --ui-row-gap: 16px;

  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--ui-bg);
  color: var(--ui-text);
  font: 400 var(--ui-body-size) var(--ui-font);
  -webkit-font-smoothing: antialiased;
  container-type: inline-size; /* R: respond to available module width */
}

/* P: only the opt-in module, never a global reset */
.ct-app.ct-compact-ui,
.ct-app.ct-compact-ui *,
.ct-app.ct-compact-ui *::before,
.ct-app.ct-compact-ui *::after { box-sizing: border-box; }

.ct-app.ct-compact-ui.ct-compact-ui--fill { height: 100%; }
.ct-app.ct-compact-ui button,
.ct-app.ct-compact-ui input,
.ct-app.ct-compact-ui select,
.ct-app.ct-compact-ui textarea { font-family: var(--ui-font); }

/* === D: top area === */
.ct-app.ct-compact-ui .ct-workbench-top {
  flex: none;
  display: flex;
  flex-direction: column;
  background: var(--ui-card);
  border-bottom: 1px solid var(--ui-border);
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
  z-index: 100;
  min-width: 0;
}
.ct-app.ct-compact-ui .ct-project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--ui-border);
  min-width: 0;
}
.ct-app.ct-compact-ui .ct-project-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ct-app.ct-compact-ui .ct-project-meta {
  flex: none;
  color: var(--ui-text-sub);
  background: var(--ui-bg);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
}
.ct-app.ct-compact-ui .ct-product-strip {
  display: flex;
  gap: 12px;
  padding: 12px 24px;
  min-width: 0;
  overflow-x: auto;
  background: var(--ui-strip);
  scrollbar-width: thin;
  scrollbar-color: var(--ui-border) transparent;
}
.ct-app.ct-compact-ui .ct-product-strip::-webkit-scrollbar { height: 6px; }
.ct-app.ct-compact-ui .ct-product-strip::-webkit-scrollbar-thumb {
  background: var(--ui-border);
  border-radius: 3px;
}
.ct-app.ct-compact-ui .ct-product-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  min-width: 220px;
  max-width: 260px;
  padding: 12px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  background: var(--ui-card);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.ct-app.ct-compact-ui .ct-product-card:hover { border-color: var(--ui-hover-border); }
.ct-app.ct-compact-ui .ct-product-card.is-active {
  border-color: var(--ui-blue);
  box-shadow: 0 0 0 2px rgba(0,122,255,.1);
}
.ct-app.ct-compact-ui .ct-card-type {
  color: var(--ui-blue);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.ct-app.ct-compact-ui .ct-card-name {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.ct-app.ct-compact-ui .ct-card-count {
  color: var(--ui-text-sub);
  font-size: 10px;
  text-align: right;
}
.ct-app.ct-compact-ui .ct-card-count.is-warning { color: var(--ui-red); font-weight: 600; }
.ct-app.ct-compact-ui .ct-product-add {
  display: flex;
  flex: none;
  min-width: 120px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px dashed var(--ui-border);
  border-radius: 8px;
  background: transparent;
  color: var(--ui-text-sub);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ct-app.ct-compact-ui .ct-product-add:hover {
  color: var(--ui-blue);
  border-color: var(--ui-blue);
  background: var(--ui-blue-bg);
}

/* === D: main form and sticky name configuration === */
.ct-app.ct-compact-ui .ct-workbench-main {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
  min-height: 0; /* P: essential inside flex scroll layouts */
  padding: var(--ui-main-pad);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
}
.ct-app.ct-compact-ui .ct-form-stack {
  display: flex;
  flex-direction: column;
  flex: 0 1 var(--ui-content-max);
  width: 100%;
  max-width: var(--ui-content-max);
  min-width: 0;
  gap: 16px;
  padding-bottom: 80px; /* D: demo had a viewport-fixed action bar */
}
.ct-app.ct-compact-ui .ct-name-panel {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: var(--ui-blue-bg);
  border: 1px solid var(--ui-blue-border);
  border-radius: 12px;
}
.ct-app.ct-compact-ui .ct-config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ct-app.ct-compact-ui .ct-config-title {
  color: var(--ui-blue);
  font-size: 14px;
  font-weight: 600;
}
.ct-app.ct-compact-ui .ct-name-count {
  flex: none;
  color: var(--ui-blue);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.ct-app.ct-compact-ui .ct-name-count.is-warning { color: var(--ui-red); }
.ct-app.ct-compact-ui .ct-name-preview {
  min-height: 40px;
  padding: 10px 12px;
  color: var(--ui-text);
  background: var(--ui-card);
  border: 1px solid var(--ui-blue-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ct-app.ct-compact-ui .ct-field-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.ct-app.ct-compact-ui .ct-field-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  color: var(--ui-blue);
  background: var(--ui-card);
  border: 1px solid var(--ui-toggle-border);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.ct-app.ct-compact-ui .ct-field-toggle::before {
  content: '\2713';
  width: 0;
  opacity: 0;
  font-size: 10px;
  transition: opacity .2s;
}
.ct-app.ct-compact-ui .ct-field-toggle.is-active {
  color: #FFFFFF;
  background: var(--ui-blue);
  border-color: var(--ui-blue);
}
.ct-app.ct-compact-ui .ct-field-toggle.is-active::before { width: auto; opacity: 1; }

/* === D: section cards and form rows === */
.ct-app.ct-compact-ui .ct-section-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: var(--ui-card-pad);
  background: var(--ui-card);
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.02);
}
.ct-app.ct-compact-ui .ct-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ui-border);
  font-size: 15px;
  font-weight: 600;
}
.ct-app.ct-compact-ui .ct-step {
  color: var(--ui-text-sub);
  font-size: 12px;
  font-weight: 400;
}
.ct-app.ct-compact-ui .ct-form-row {
  display: flex;
  align-items: flex-start;
  gap: var(--ui-row-gap);
  min-width: 0;
  margin: 0; /* P: do not use Bootstrap .row negative margins */
}
.ct-app.ct-compact-ui .ct-form-label {
  display: block;
  flex: 0 0 var(--ui-label-width);
  width: var(--ui-label-width);
  padding: 6px 0 0;
  color: var(--ui-text-sub);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ct-app.ct-compact-ui .ct-form-content {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.ct-app.ct-compact-ui .ct-option-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  color: var(--ui-text);
  background: #FFFFFF;
  border: 1px solid var(--ui-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color .1s, border-color .1s, color .1s;
}
.ct-app.ct-compact-ui .ct-option-chip:hover { background: var(--ui-bg); }
.ct-app.ct-compact-ui .ct-option-chip.is-selected,
.ct-app.ct-compact-ui .ct-option-chip[aria-pressed='true'] {
  color: #FFFFFF;
  background: var(--ui-blue);
  border-color: var(--ui-blue);
}
.ct-app.ct-compact-ui .ct-option-chip.is-selected:hover,
.ct-app.ct-compact-ui .ct-option-chip[aria-pressed='true']:hover { background: var(--ui-blue); }
.ct-app.ct-compact-ui .ct-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.ct-app.ct-compact-ui .ct-option-grid .ct-option-chip {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.ct-app.ct-compact-ui .ct-option-grid .ct-option-chip small {
  font-size: 10px;
  font-weight: 400;
  opacity: .7;
}

/* === D: unit inputs and band table === */
.ct-app.ct-compact-ui .ct-unit-input {
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 34px;
  min-width: 0;
  padding: 6px 10px;
  background: var(--ui-bg);
  border: 1px solid transparent;
  border-radius: 6px;
}
.ct-app.ct-compact-ui .ct-unit-input:focus-within {
  background: #FFFFFF;
  border-color: var(--ui-blue);
}
.ct-app.ct-compact-ui .ct-unit-input input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0; /* P: prevent layout blowout */
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  color: var(--ui-text);
  font-size: 13px;
}
.ct-app.ct-compact-ui .ct-unit {
  flex: none;
  margin-left: 6px;
  color: var(--ui-text-sub);
  font-size: 12px;
  white-space: nowrap;
}
.ct-app.ct-compact-ui .ct-unit-input--short { width: 80px; }
.ct-app.ct-compact-ui .ct-unit-input--medium { width: 160px; }
.ct-app.ct-compact-ui .ct-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.ct-app.ct-compact-ui .ct-data-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  font-size: 12px;
}
.ct-app.ct-compact-ui .ct-data-table th {
  padding: 8px;
  color: var(--ui-text-sub);
  border-bottom: 1px solid var(--ui-border);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}
.ct-app.ct-compact-ui .ct-data-table td {
  padding: 4px 8px;
  border-bottom: 1px solid var(--ui-border);
}
.ct-app.ct-compact-ui .ct-data-table td input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]) {
  width: 100%;
  min-width: 0;
  padding: 6px;
  color: var(--ui-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  font-size: 12px;
}
.ct-app.ct-compact-ui .ct-data-table td input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus {
  background: #FFFFFF;
  border-color: var(--ui-blue);
  box-shadow: 0 0 0 2px rgba(0,122,255,.1);
}
.ct-app.ct-compact-ui .ct-data-table td input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"])[readonly] {
  color: var(--ui-text-sub);
  background: var(--ui-strip);
}

/* === D visual, P layout: module-local footer rather than fixed viewport === */
.ct-app.ct-compact-ui .ct-action-bar {
  display: flex;
  flex: none;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 24px;
  background: #FFFFFF;
  border-top: 1px solid var(--ui-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,.03);
  z-index: 50;
}
.ct-app.ct-compact-ui .ct-primary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 32px;
  color: #FFFFFF;
  background: var(--ui-blue);
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s;
}
.ct-app.ct-compact-ui .ct-primary-action:hover { background: var(--ui-blue-hover); }
.ct-app.ct-compact-ui .ct-primary-action:disabled {
  color: var(--ui-text-sub);
  background: var(--ui-disabled-bg);
  cursor: not-allowed;
}
/* P: when footer is in the flex flow, excessive bottom safety space isn't needed. */
.ct-app.ct-compact-ui.ct-compact-ui--fill .ct-form-stack { padding-bottom: 16px; }

/* === P: complete form + text component library (Demo-aligned extension) === */
/* Headers and text: 18/15/14/13 align with the original Demo. */
.ct-app.ct-compact-ui .ct-page-heading,
.ct-app.ct-compact-ui .ct-subsection-heading,
.ct-app.ct-compact-ui .ct-page-subtitle,
.ct-app.ct-compact-ui .ct-text-body,
.ct-app.ct-compact-ui .ct-text-muted,
.ct-app.ct-compact-ui .ct-text-caption { margin: 0; overflow-wrap: anywhere; }
.ct-app.ct-compact-ui .ct-page-heading { color: var(--ui-text); font-size: 18px; font-weight: 600; line-height: 1.4; }
.ct-app.ct-compact-ui .ct-subsection-heading { color: var(--ui-text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.ct-app.ct-compact-ui .ct-page-subtitle { color: var(--ui-text-sub); font-size: 12px; font-weight: 400; line-height: 1.5; }
.ct-app.ct-compact-ui .ct-text-body { color: var(--ui-text); font-size: 13px; font-weight: 400; line-height: 1.5; }
.ct-app.ct-compact-ui .ct-text-muted { color: var(--ui-text-sub); font-size: 12px; line-height: 1.5; }
.ct-app.ct-compact-ui .ct-text-caption { color: var(--ui-text-sub); font-size: 11px; line-height: 1.5; }
.ct-app.ct-compact-ui .ct-text-emphasis { color: var(--ui-text); font-weight: 600; }
.ct-app.ct-compact-ui .ct-heading-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.ct-app.ct-compact-ui .ct-section-heading { margin-top: 0; line-height: 1.4; }
.ct-app.ct-compact-ui .ct-required { color: #B42318; margin-left: 2px; font-size: 12px; }
.ct-app.ct-compact-ui .ct-field-control { display: flex; flex: 1 1 260px; flex-direction: column; gap: 4px; width: auto; max-width: 100%; min-width: 0; }
.ct-app.ct-compact-ui .ct-field-control--full { flex-basis: 100%; width: 100%; }
.ct-app.ct-compact-ui .ct-field-control--short { flex: 0 1 110px; }
.ct-app.ct-compact-ui .ct-field-control--medium { flex: 0 1 220px; }
.ct-app.ct-compact-ui .ct-field-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-width: 0; flex-wrap: wrap; }
.ct-app.ct-compact-ui .ct-char-counter { margin-left: auto; white-space: nowrap; color: var(--ui-text-sub); font-size: 12px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ct-app.ct-compact-ui .ct-char-counter.is-warning { color: #B42318; font-weight: 600; }
.ct-app.ct-compact-ui .ct-field-help,
.ct-app.ct-compact-ui .ct-field-error { margin: 0; }
.ct-app.ct-compact-ui .ct-form-row fieldset { min-width: 0; }
.ct-app.ct-compact-ui fieldset.ct-form-row { padding: 0; margin: 0; border: 0; }
.ct-app.ct-compact-ui legend.ct-form-label { display: block; margin: 0; border: 0; font-family: inherit; font-size: 13px; line-height: 1.5; }

/* V1.3 P: text/number/date/textarea and retained search selects have the field name ABOVE.
 * Finite option selects are now label-left + chip-right choice groups, not form-field selects. */
.ct-app.ct-compact-ui .ct-form-row--fields { display:flex; flex-direction:column; align-items:stretch; gap:0; }
.ct-app.ct-compact-ui .ct-form-row--fields > .ct-form-content {
  display:flex; flex:1 1 auto; align-items:flex-start; flex-wrap:wrap;
  width:100%; min-width:0; gap:12px;
}
.ct-app.ct-compact-ui .ct-form-row--fields .ct-field-control { flex:1 1 180px; gap:6px; }
.ct-app.ct-compact-ui .ct-form-row--fields .ct-field-control--full { flex:1 1 100%; }
.ct-app.ct-compact-ui .ct-form-row--fields .ct-field-control--medium { flex:1 1 220px; }
.ct-app.ct-compact-ui .ct-field-label {
  display:block; width:100%; padding:0; margin:0; min-width:0;
  color:var(--ui-text-sub); font-size:13px; font-weight:400; line-height:1.4;
  overflow-wrap:anywhere;
}
/* V1.2: choosing a value is a left-label + right-side chips row, INCLUDING sample charging. */
.ct-app.ct-compact-ui .ct-form-row--choice { flex-direction:row; align-items:center; }
.ct-app.ct-compact-ui .ct-form-row--choice > .ct-form-label { padding-top:0; align-self:center; }
.ct-app.ct-compact-ui .ct-choice-fieldset {
  display:block; flex:1 1 0; width:auto; min-width:0; padding:0; margin:0; border:0;
}
.ct-app.ct-compact-ui .ct-choice-fieldset > .ct-form-content { width:100%; align-items:center; }
.ct-app.ct-compact-ui .ct-visually-hidden {
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;
}

/* Unified edit controls: default 34px, demo-gray background and blue focus. */
.ct-app.ct-compact-ui .ct-text-input,
.ct-app.ct-compact-ui .ct-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: none;
  box-shadow: none;
  color: var(--ui-text);
  background: var(--ui-bg);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .15s, background-color .15s;
}
.ct-app.ct-compact-ui .ct-text-input { height: 34px; }
.ct-app.ct-compact-ui .ct-textarea { min-height: 88px; padding: 8px 10px; resize: vertical; }
.ct-app.ct-compact-ui .ct-text-input::placeholder,
.ct-app.ct-compact-ui .ct-textarea::placeholder { color: var(--ui-text-sub); opacity: 1; }
.ct-app.ct-compact-ui .ct-text-input:not(:disabled):not([readonly]):hover,
.ct-app.ct-compact-ui .ct-textarea:not(:disabled):not([readonly]):hover { border-color: var(--ui-border); }
.ct-app.ct-compact-ui .ct-text-input:focus,
.ct-app.ct-compact-ui .ct-textarea:focus { border-color: var(--ui-blue); background: var(--ui-card); }
.ct-app.ct-compact-ui .ct-text-input[readonly],
.ct-app.ct-compact-ui .ct-textarea[readonly] { color: var(--ui-text-sub); background: var(--ui-strip); cursor: text; }
.ct-app.ct-compact-ui .ct-text-input:disabled,
.ct-app.ct-compact-ui .ct-textarea:disabled { color: var(--ui-text-sub); background: var(--ui-disabled-bg); border-color: transparent; cursor: not-allowed; opacity: 1; }
.ct-app.ct-compact-ui .ct-text-input.is-invalid,
.ct-app.ct-compact-ui .ct-text-input[aria-invalid='true'],
.ct-app.ct-compact-ui .ct-textarea.is-invalid,
.ct-app.ct-compact-ui .ct-textarea[aria-invalid='true'] { border-color: var(--ui-red); }
.ct-app.ct-compact-ui .ct-text-input.is-invalid:focus,
.ct-app.ct-compact-ui .ct-text-input[aria-invalid='true']:focus,
.ct-app.ct-compact-ui .ct-textarea.is-invalid:focus,
.ct-app.ct-compact-ui .ct-textarea[aria-invalid='true']:focus { box-shadow: 0 0 0 2px rgba(255,59,48,.12); }

/* Exception ONLY: searchable/large/remote native select remains semantic. */
.ct-app.ct-compact-ui .ct-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ui-bg);
  transition: background-color .15s, border-color .15s;
}
.ct-app.ct-compact-ui .ct-select-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ui-text-sub);
  border-bottom: 1.5px solid var(--ui-text-sub);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.ct-app.ct-compact-ui .ct-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 100%;
  padding: 6px 28px 6px 10px;
  min-width: 0;
  color: var(--ui-text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: none;
  outline: 0;
  cursor: pointer;
  font-family: var(--ui-font);
  font-size: 13px;
  line-height: 1.5;
}
.ct-app.ct-compact-ui .ct-select-wrap:not(.is-disabled):hover { border-color: var(--ui-border); }
.ct-app.ct-compact-ui .ct-select-wrap:focus-within { border-color: var(--ui-blue); background: var(--ui-card); }
.ct-app.ct-compact-ui .ct-select-wrap.is-invalid,
.ct-app.ct-compact-ui .ct-select-wrap:has(.ct-select[aria-invalid='true']) { border-color: var(--ui-red); }
.ct-app.ct-compact-ui .ct-select-wrap.is-disabled,
.ct-app.ct-compact-ui .ct-select-wrap:has(.ct-select:disabled) { background: var(--ui-disabled-bg); cursor: not-allowed; }
.ct-app.ct-compact-ui .ct-select:disabled { color: var(--ui-text-sub); cursor: not-allowed; }
.ct-app.ct-compact-ui .ct-select:required:invalid { color: var(--ui-text-sub); }

/* V1.3 P: short fixed-option dropdown fields are REPLACED by native-radio Chip rows.
 * Use the exact .ct-choice-text blue/white selection of the material field.
 * Keep original option values and name on radio inputs, without proxy selects or duplicate hidden fields.
 * Long/remote/searchable data sources remain real searchable selects (documented exception). */
.ct-app.ct-compact-ui .ct-form-row--select-choice > .ct-form-label {
  align-self: flex-start;
  padding-top: 7px;
}
.ct-app.ct-compact-ui .ct-form-row--select-choice > .ct-choice-fieldset { min-width:0; }
.ct-app.ct-compact-ui .ct-form-row--select-choice .ct-choice-group--converted-select {
  width:100%; min-width:0; gap:8px;
}
.ct-app.ct-compact-ui .ct-form-row--select-choice .ct-choice--select { max-width:100%; }
.ct-app.ct-compact-ui .ct-form-row--select-choice .ct-choice-text { max-width:100%; overflow-wrap:anywhere; }
.ct-app.ct-compact-ui .ct-form-row--select-choice .ct-choice-fieldset.is-invalid .ct-choice-text {
  border-color:var(--ui-red);
}
.ct-app.ct-compact-ui .ct-form-row--select-choice .ct-choice-fieldset.is-invalid .ct-choice-input:focus-visible ~ .ct-choice-text {
  outline-color:var(--ui-red);
}

/* V1.2 P: semantic native radio/checkbox with the SAME chip visuals as material choices.
 * Selection is pure CSS using input:checked ~ .ct-choice-text (no JS needed).
 * .ct-choice-mark remains supported ONLY for icon-only list-table checkboxes. */
.ct-app.ct-compact-ui .ct-choice-group { display:flex; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; }
.ct-app.ct-compact-ui .ct-choice-group--vertical { flex-direction:column; align-items:flex-start; gap:8px; }
.ct-app.ct-compact-ui .ct-choice {
  position:relative; display:inline-flex; align-items:center; justify-content:flex-start;
  min-width:0; min-height:0; padding:0; margin:0;
  color:var(--ui-text); font-size:13px; font-weight:400; line-height:1.4;
  cursor:pointer; user-select:none; vertical-align:middle;
}
.ct-app.ct-compact-ui .ct-choice-input {
  position:absolute; width:1px; height:1px; overflow:hidden; padding:0; margin:-1px;
  clip:rect(0, 0, 0, 0); clip-path:inset(50%); white-space:nowrap; border:0;
}
.ct-app.ct-compact-ui .ct-choice-text {
  display:inline-flex; align-items:center; justify-content:center; min-height:34px;
  max-width:100%; min-width:0; padding:6px 14px;
  border:1px solid var(--ui-border); border-radius:6px;
  color:var(--ui-text); background:#FFFFFF;
  font-size:13px; font-weight:400; line-height:1.4;
  overflow-wrap:anywhere; text-align:center;
  transition:background-color .1s, border-color .1s, color .1s;
}
.ct-app.ct-compact-ui .ct-choice:hover .ct-choice-input:not(:disabled) ~ .ct-choice-text { background:var(--ui-bg); }
.ct-app.ct-compact-ui .ct-choice-input:checked ~ .ct-choice-text,
.ct-app.ct-compact-ui .ct-choice:hover .ct-choice-input:checked ~ .ct-choice-text {
  color:#FFFFFF; background:var(--ui-blue); border-color:var(--ui-blue);
}
.ct-app.ct-compact-ui .ct-choice-input:focus-visible ~ .ct-choice-text {
  outline:2px solid var(--ui-blue); outline-offset:2px;
}
.ct-app.ct-compact-ui .ct-choice-input[type="checkbox"]:indeterminate ~ .ct-choice-text {
  color:var(--ui-blue); background:var(--ui-blue-bg); border-color:var(--ui-blue);
  border-style:dashed;
}
.ct-app.ct-compact-ui .ct-choice-input:disabled ~ .ct-choice-text {
  color:var(--ui-text-sub); background:var(--ui-disabled-bg);
  border-color:var(--ui-border); opacity:.75; cursor:not-allowed;
}
.ct-app.ct-compact-ui .ct-choice:has(.ct-choice-input:disabled) { cursor:not-allowed; }
/* Compatibility: icon-only checkbox used by the list table, not the labeled form choices. */
.ct-app.ct-compact-ui .ct-choice-mark {
  position:relative; display:inline-block; flex:0 0 16px; width:16px; height:16px;
  border:1px solid var(--ui-border); border-radius:4px; background:#FFFFFF;
  transition:background-color .1s, border-color .1s;
}
.ct-app.ct-compact-ui .ct-choice--radio .ct-choice-mark { border-radius:50%; }
.ct-app.ct-compact-ui .ct-choice:hover .ct-choice-input:not(:disabled) + .ct-choice-mark { border-color:var(--ui-hover-border); }
.ct-app.ct-compact-ui .ct-choice-input:focus-visible + .ct-choice-mark { outline:2px solid var(--ui-blue); outline-offset:2px; }
.ct-app.ct-compact-ui .ct-choice--radio .ct-choice-input:checked + .ct-choice-mark { border-color:var(--ui-blue); }
.ct-app.ct-compact-ui .ct-choice--radio .ct-choice-input:checked + .ct-choice-mark::after {
  content:''; position:absolute; inset:3px; border-radius:50%; background:var(--ui-blue);
}
.ct-app.ct-compact-ui .ct-choice--checkbox .ct-choice-input:checked + .ct-choice-mark,
.ct-app.ct-compact-ui .ct-choice--checkbox .ct-choice-input:indeterminate + .ct-choice-mark {
  border-color:var(--ui-blue); background:var(--ui-blue);
}
.ct-app.ct-compact-ui .ct-choice--checkbox .ct-choice-input:checked + .ct-choice-mark::after {
  content:''; position:absolute; left:5px; top:1px; width:5px; height:9px;
  border:solid white; border-width:0 2px 2px 0; transform:rotate(45deg);
}
.ct-app.ct-compact-ui .ct-choice--checkbox .ct-choice-input:indeterminate + .ct-choice-mark::after {
  content:''; position:absolute; left:3px; top:6px; width:8px; height:2px; background:white;
}
.ct-app.ct-compact-ui .ct-choice-input:disabled + .ct-choice-mark { opacity:.55; background:var(--ui-disabled-bg); }

/* Standard 34px action buttons, separate from Demo's tall submit button. */
.ct-app.ct-compact-ui .ct-button-group { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ct-app.ct-compact-ui .ct-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex: none;
  max-width: 100%;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ui-text);
  background: var(--ui-card);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.ct-app.ct-compact-ui .ct-btn--sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.ct-app.ct-compact-ui .ct-btn--primary { color: #FFFFFF; background: var(--ui-blue); border-color: var(--ui-blue); }
.ct-app.ct-compact-ui .ct-btn--primary:hover { color: #FFFFFF; background: var(--ui-blue-hover); border-color: var(--ui-blue-hover); }
.ct-app.ct-compact-ui .ct-btn--secondary { color: var(--ui-text); background: #FFFFFF; border-color: var(--ui-border); }
.ct-app.ct-compact-ui .ct-btn--secondary:hover { background: var(--ui-bg); }
.ct-app.ct-compact-ui .ct-btn--outline { color: var(--ui-blue); background: #FFFFFF; border-color: var(--ui-blue); }
.ct-app.ct-compact-ui .ct-btn--outline:hover { background: var(--ui-blue-bg); }
.ct-app.ct-compact-ui .ct-btn--text { color: var(--ui-blue); background: transparent; border-color: transparent; }
.ct-app.ct-compact-ui .ct-btn--text:hover { background: var(--ui-blue-bg); }
.ct-app.ct-compact-ui .ct-btn--danger { color: #FFFFFF; background: #C62828; border-color: #C62828; }
.ct-app.ct-compact-ui .ct-btn--danger:hover { color: #FFFFFF; background: #AD2424; border-color: #AD2424; }
.ct-app.ct-compact-ui .ct-btn:focus-visible { outline: 2px solid var(--ui-blue); outline-offset: 2px; }
.ct-app.ct-compact-ui .ct-btn:disabled { color: var(--ui-text-sub); background: var(--ui-disabled-bg); border-color: var(--ui-disabled-bg); opacity: 1; cursor: not-allowed; }
.ct-app.ct-compact-ui .ct-btn[aria-busy='true'],
.ct-app.ct-compact-ui .ct-primary-action[aria-busy='true'] { cursor: progress; }
.ct-app.ct-compact-ui .ct-btn[aria-busy='true']::before {
  content: '';
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ct-ui-spin .8s linear infinite;
}
@keyframes ct-ui-spin { to { transform: rotate(360deg); } }


/* === P: missing but necessary production states === */
.ct-app.ct-compact-ui .ct-product-card:focus-visible,
.ct-app.ct-compact-ui .ct-product-add:focus-visible,
.ct-app.ct-compact-ui .ct-option-chip:focus-visible,
.ct-app.ct-compact-ui .ct-field-toggle:focus-visible,
.ct-app.ct-compact-ui .ct-primary-action:focus-visible {
  outline: 2px solid var(--ui-blue);
  outline-offset: 2px;
}
.ct-app.ct-compact-ui .ct-option-chip:disabled,
.ct-app.ct-compact-ui .ct-field-toggle:disabled,
.ct-app.ct-compact-ui .ct-product-add:disabled { opacity: .55; cursor: not-allowed; }
.ct-app.ct-compact-ui .ct-unit-input.is-invalid { border-color: var(--ui-red); }
.ct-app.ct-compact-ui .ct-field-error { color: #B42318; font-size: 12px; line-height: 1.4; }
.ct-app.ct-compact-ui .ct-field-help { color: var(--ui-text-sub); font-size: 12px; line-height: 1.4; }
.ct-app.ct-compact-ui .ct-primary-action[aria-busy='true'] { cursor: progress; opacity: .75; }
/* P: keep primary-button color during a real in-flight state, instead of gray. */
.ct-app.ct-compact-ui .ct-btn.ct-btn--primary[aria-busy='true']:disabled { color: #FFFFFF; background: var(--ui-blue); border-color: var(--ui-blue); opacity: .76; }
.ct-app.ct-compact-ui .ct-primary-action[aria-busy='true']:disabled { color: #FFFFFF; background: var(--ui-blue); opacity: .76; }
/* P: opt-in if AA contrast for small secondary text is required. */
.ct-app.ct-compact-ui.ct-compact-ui--accessible { --ui-text-sub: #606068; }

/* === R: RESPONSIVE ADDITIONS (NOT PRESENT IN SOURCE DEMO) === */
@container (max-width: 1199px) {
  .ct-app.ct-compact-ui .ct-project-header { padding: 12px 16px; }
  .ct-app.ct-compact-ui .ct-product-strip { padding: 10px 16px; }
  .ct-app.ct-compact-ui .ct-workbench-main { --ui-main-pad: 16px; }
  .ct-app.ct-compact-ui .ct-section-card { --ui-card-pad: 16px; }
  .ct-app.ct-compact-ui .ct-form-row { --ui-row-gap: 12px; --ui-label-width: 100px; }
  .ct-app.ct-compact-ui .ct-action-bar { padding: 10px 16px; }
}
@container (max-width: 799px) {
  .ct-app.ct-compact-ui .ct-workbench-main { --ui-main-pad: 12px; }
  .ct-app.ct-compact-ui .ct-section-card { --ui-card-pad: 12px; }
  .ct-app.ct-compact-ui .ct-form-row { --ui-row-gap: 10px; --ui-label-width: 92px; }
  .ct-app.ct-compact-ui .ct-name-panel { padding: 12px; }
  .ct-app.ct-compact-ui .ct-form-stack { gap: 12px; }
}
@container (max-width: 599px) {
  .ct-app.ct-compact-ui .ct-project-header { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .ct-app.ct-compact-ui .ct-project-title { flex-wrap: wrap; gap: 6px; font-size: 16px; }
  .ct-app.ct-compact-ui .ct-product-strip { gap: 8px; padding: 8px 12px; }
  .ct-app.ct-compact-ui .ct-product-card { min-width: 180px; max-width: 240px; padding: 10px; }
  .ct-app.ct-compact-ui .ct-product-add { min-width: 92px; }
  .ct-app.ct-compact-ui .ct-form-row { flex-direction: column; gap: 6px; }
  .ct-app.ct-compact-ui .ct-form-row--choice { flex-direction:row; align-items:center; gap:8px; }
  .ct-app.ct-compact-ui .ct-form-row--choice > .ct-form-label { flex:0 0 82px; width:82px; }
  .ct-app.ct-compact-ui .ct-form-row--choice > .ct-choice-fieldset { flex:1 1 0; width:auto; }
  .ct-app.ct-compact-ui .ct-form-row--choice .ct-form-content { flex:1 1 auto; }
  .ct-app.ct-compact-ui .ct-form-row--fields { flex-direction:column; }
  .ct-app.ct-compact-ui .ct-form-row--fields > .ct-form-content { gap:10px; }
  .ct-app.ct-compact-ui .ct-choice-group { gap:6px; }
  .ct-app.ct-compact-ui .ct-choice-text { padding:6px 10px; }
  .ct-app.ct-compact-ui .ct-form-label {
    flex: none;
    width: 100%;
    padding-top: 0;
  }
  .ct-app.ct-compact-ui .ct-form-content { flex: none; width: 100%; }
  .ct-app.ct-compact-ui .ct-name-panel { position: static; } /* R: preserve visible form area */
  .ct-app.ct-compact-ui .ct-action-bar { padding: 8px 12px; }
  .ct-app.ct-compact-ui .ct-primary-action { padding: 10px 18px; }
  .ct-app.ct-compact-ui .ct-page-heading { font-size: 16px; }
  .ct-app.ct-compact-ui .ct-text-input { height: 38px; }
  .ct-app.ct-compact-ui .ct-select-wrap { height: 38px; }
  .ct-app.ct-compact-ui .ct-btn { min-height: 38px; }
  .ct-app.ct-compact-ui .ct-btn--sm { min-height: 34px; }
  .ct-app.ct-compact-ui .ct-option-grid { grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); }
}

/* P: motion accommodation */
@media (prefers-reduced-motion: reduce) {
  .ct-app.ct-compact-ui .ct-product-card,
  .ct-app.ct-compact-ui .ct-field-toggle,
  .ct-app.ct-compact-ui .ct-option-chip,
  .ct-app.ct-compact-ui .ct-primary-action,
  .ct-app.ct-compact-ui .ct-btn,
  .ct-app.ct-compact-ui .ct-text-input,
  .ct-app.ct-compact-ui .ct-textarea,
  .ct-app.ct-compact-ui .ct-select-wrap { transition: none; }
  .ct-app.ct-compact-ui .ct-btn[aria-busy='true']::before { animation: none; }
}

/* R: conservative fallback when container queries are unavailable.
 * Viewport width is less accurate than module content width after sidebar;
 * this block is for legacy browsers only. */
@supports not (container-type: inline-size) {
  @media (max-width: 1199px) {
    .ct-app.ct-compact-ui .ct-project-header { padding: 12px 16px; }
    .ct-app.ct-compact-ui .ct-product-strip { padding: 10px 16px; }
    .ct-app.ct-compact-ui .ct-workbench-main { --ui-main-pad: 16px; }
    .ct-app.ct-compact-ui .ct-section-card { --ui-card-pad: 16px; }
    .ct-app.ct-compact-ui .ct-form-row { --ui-row-gap: 12px; --ui-label-width: 100px; }
    .ct-app.ct-compact-ui .ct-action-bar { padding: 10px 16px; }
  }
  @media (max-width: 799px) {
    .ct-app.ct-compact-ui .ct-workbench-main { --ui-main-pad: 12px; }
    .ct-app.ct-compact-ui .ct-section-card { --ui-card-pad: 12px; }
    .ct-app.ct-compact-ui .ct-form-row { --ui-row-gap: 10px; --ui-label-width: 92px; }
    .ct-app.ct-compact-ui .ct-name-panel { padding: 12px; }
    .ct-app.ct-compact-ui .ct-form-stack { gap: 12px; }
  }
  @media (max-width: 599px) {
    .ct-app.ct-compact-ui .ct-project-header { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
    .ct-app.ct-compact-ui .ct-project-title { flex-wrap: wrap; gap: 6px; font-size: 16px; }
    .ct-app.ct-compact-ui .ct-product-strip { gap: 8px; padding: 8px 12px; }
    .ct-app.ct-compact-ui .ct-product-card { min-width: 180px; max-width: 240px; padding: 10px; }
    .ct-app.ct-compact-ui .ct-product-add { min-width: 92px; }
    .ct-app.ct-compact-ui .ct-form-row { flex-direction: column; gap: 6px; }
    .ct-app.ct-compact-ui .ct-form-row--choice { flex-direction:row; align-items:center; gap:8px; }
    .ct-app.ct-compact-ui .ct-form-row--choice > .ct-form-label { flex:0 0 82px; width:82px; }
    .ct-app.ct-compact-ui .ct-form-row--choice > .ct-choice-fieldset { flex:1 1 0; width:auto; }
    .ct-app.ct-compact-ui .ct-form-row--choice .ct-form-content { flex:1 1 auto; }
    .ct-app.ct-compact-ui .ct-form-row--fields { flex-direction:column; }
    .ct-app.ct-compact-ui .ct-form-row--fields > .ct-form-content { gap:10px; }
    .ct-app.ct-compact-ui .ct-choice-group { gap:6px; }
    .ct-app.ct-compact-ui .ct-choice-text { padding:6px 10px; }
    .ct-app.ct-compact-ui .ct-form-label { flex: none; width: 100%; padding-top: 0; }
    .ct-app.ct-compact-ui .ct-form-content { flex: none; width: 100%; }
    .ct-app.ct-compact-ui .ct-name-panel { position: static; }
    .ct-app.ct-compact-ui .ct-action-bar { padding: 8px 12px; }
    .ct-app.ct-compact-ui .ct-primary-action { padding: 10px 18px; }
    .ct-app.ct-compact-ui .ct-page-heading { font-size: 16px; }
    .ct-app.ct-compact-ui .ct-text-input { height: 38px; }
    .ct-app.ct-compact-ui .ct-select-wrap { height: 38px; }
    .ct-app.ct-compact-ui .ct-btn { min-height: 38px; }
    .ct-app.ct-compact-ui .ct-btn--sm { min-height: 34px; }
    .ct-app.ct-compact-ui .ct-option-grid { grid-template-columns: repeat(auto-fill, minmax(100px,1fr)); }
  }
}

/* =========================================================
 * V1.4 / P+R: layer-like dialogs, richer business components
 * Class scope is always .ct-app.ct-compact-ui (no global BS3 reset).
 * TL resize is a CUSTOM addition: layui layer core resizes BR only.
 * ========================================================= */
.ct-app.ct-compact-ui .ct-v14-workspace { width:100%; max-width:1280px; margin:0 auto; padding:20px 24px 48px; display:flex; flex-direction:column; gap:16px; min-width:0; }
.ct-app.ct-compact-ui .ct-v14-top { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:12px; }
.ct-app.ct-compact-ui .ct-v14-note { font-size:12px; color:var(--ui-text-sub); line-height:1.55; }
.ct-app.ct-compact-ui .ct-v14-hint { color:#606068; font-size:12px; line-height:1.5; }
.ct-app.ct-compact-ui .ct-v14-row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; min-width:0; }
.ct-app.ct-compact-ui .ct-v14-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; min-width:0; }
.ct-app.ct-compact-ui .ct-v14-grid--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ct-app.ct-compact-ui .ct-v14-field { display:flex; flex-direction:column; gap:6px; min-width:0; flex:1 1 180px; }
.ct-app.ct-compact-ui .ct-v14-field > label {font-size:13px;color:#606068;line-height:1.4;}
.ct-app.ct-compact-ui .ct-v14-stack { display:flex; flex-direction:column; gap:12px; min-width:0; }
.ct-app.ct-compact-ui .ct-v14-well { padding:12px; background:var(--ui-bg); border-radius:8px; min-width:0; }
.ct-app.ct-compact-ui .ct-v14-header-label { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-bottom:10px; border-bottom:1px solid var(--ui-border); }
.ct-app.ct-compact-ui .ct-v14-panel { background:white; border:1px solid var(--ui-border); border-radius:12px; padding:16px; min-width:0; }
.ct-app.ct-compact-ui .ct-v14-kpi { display:flex; flex-direction:column; gap:6px; flex:1 1 150px; padding:12px; border:1px solid var(--ui-border); border-radius:8px; background:white; }
.ct-app.ct-compact-ui .ct-v14-kpi strong {font-size:20px;font-weight:600;letter-spacing:-.4px;font-variant-numeric:tabular-nums;}
.ct-app.ct-compact-ui .ct-v14-kpi small {font-size:12px;color:#606068;}
.ct-app.ct-compact-ui .ct-v14-pill {display:inline-flex;gap:4px;align-items:center;padding:3px 8px;border-radius:999px;background:var(--ui-blue-bg);color:var(--ui-blue);font-size:11px;font-weight:600;white-space:nowrap;}
.ct-app.ct-compact-ui .ct-v14-badge {display:inline-flex;align-items:center;gap:4px;max-width:100%;padding:3px 8px;border:1px solid #CFE4F9;border-radius:6px;background:var(--ui-blue-bg);color:var(--ui-blue);font-size:12px;font-weight:500;}
.ct-app.ct-compact-ui .ct-v14-badge--muted {background:#FAFAFC;color:#606068;border-color:#D2D2D7;}
.ct-app.ct-compact-ui .ct-v14-badge--success {background:#EFFBF3;color:#237A3B;border-color:#BDEBC8;}
.ct-app.ct-compact-ui .ct-v14-badge--warning {background:#FFF6E9;color:#965400;border-color:#F7D5A0;}
.ct-app.ct-compact-ui .ct-v14-badge--danger {background:#FFF1F0;color:#B42318;border-color:#FBC5C0;}
.ct-app.ct-compact-ui .ct-v14-card {display:flex;flex-direction:column;gap:8px;background:white;border:1px solid var(--ui-border);border-radius:12px;padding:16px;box-shadow:0 1px 4px rgba(0,0,0,.02);min-width:0;}
.ct-app.ct-compact-ui .ct-v14-card h3 {margin:0;font-size:15px;font-weight:600;line-height:1.4;}
.ct-app.ct-compact-ui .ct-v14-card p {margin:0;color:#606068;font-size:12px;line-height:1.55;}
.ct-app.ct-compact-ui .ct-v14-inline-code {font:12px ui-monospace,SFMono-Regular,Consolas,monospace;color:#606068;background:#F5F5F7;padding:2px 5px;border-radius:4px;}
.ct-app.ct-compact-ui .ct-v14-scroll {overflow:auto;min-height:0;min-width:0;overscroll-behavior:contain;}
.ct-app.ct-compact-ui .ct-v14-table-wrap {overflow:auto;min-height:0;min-width:0;width:100%;border:1px solid var(--ui-border);border-radius:8px;background:#FFF;}
.ct-app.ct-compact-ui .ct-v14-table {border-collapse:collapse;width:100%;min-width:620px;font-size:12px;font-variant-numeric:tabular-nums;}
.ct-app.ct-compact-ui .ct-v14-table thead {position:sticky;top:0;background:#FAFAFC;z-index:1;}
.ct-app.ct-compact-ui .ct-v14-table th,.ct-app.ct-compact-ui .ct-v14-table td {padding:9px 10px;border-bottom:1px solid #E5E5EA;text-align:left;vertical-align:middle;}
.ct-app.ct-compact-ui .ct-v14-table th {color:#606068;font-weight:600;white-space:nowrap;}
.ct-app.ct-compact-ui .ct-v14-table tbody tr:hover {background:#F7FAFE;}
.ct-app.ct-compact-ui .ct-v14-table tbody tr:last-child td {border-bottom:0;}
.ct-app.ct-compact-ui .ct-v14-table .ct-v14-num{text-align:right;white-space:nowrap;}
.ct-app.ct-compact-ui .ct-v14-table .ct-v14-nowrap{white-space:nowrap;}
.ct-app.ct-compact-ui .ct-v14-tree-toggle {display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid var(--ui-border);border-radius:4px;background:#FFF;color:var(--ui-blue);font-size:12px;cursor:pointer;margin-right:6px;}
.ct-app.ct-compact-ui .ct-v14-tree-toggle[aria-expanded='false'] {color:#606068;}
.ct-app.ct-compact-ui .ct-v14-tree-depth1 {padding-left:28px!important;}
.ct-app.ct-compact-ui .ct-v14-pagination {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;color:#606068;font-size:12px;padding-top:8px;}
.ct-app.ct-compact-ui .ct-v14-page-buttons {display:flex;align-items:center;flex-wrap:wrap;gap:4px;}
.ct-app.ct-compact-ui .ct-v14-page-btn {min-width:30px;height:30px;border:1px solid var(--ui-border);border-radius:6px;background:#FFF;color:var(--ui-text);cursor:pointer;font-size:12px;}
.ct-app.ct-compact-ui .ct-v14-page-btn[aria-current='page'] {border-color:var(--ui-blue);background:var(--ui-blue);color:#FFF;}
.ct-app.ct-compact-ui .ct-v14-page-btn:disabled {cursor:not-allowed;background:var(--ui-disabled-bg);color:#86868B;}
.ct-app.ct-compact-ui .ct-v14-tabs {display:flex;align-items:center;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--ui-border);padding:0 0 8px;}
.ct-app.ct-compact-ui .ct-v14-tab {background:transparent;color:#606068;padding:7px 13px;border:1px solid transparent;border-radius:6px 6px 0 0;font-size:13px;cursor:pointer;}
.ct-app.ct-compact-ui .ct-v14-tab[aria-selected='true'] {color:var(--ui-blue);background:var(--ui-blue-bg);border-color:#CFE4F9;font-weight:600;}
.ct-app.ct-compact-ui .ct-v14-tab-panel[hidden] {display:none!important;}
.ct-app.ct-compact-ui .ct-v14-tab-panel {padding:14px 0;line-height:1.6;}
.ct-app.ct-compact-ui .ct-v14-progress {height:9px;width:100%;background:#E5E5EA;border-radius:9px;overflow:hidden;}
.ct-app.ct-compact-ui .ct-v14-progress > span {display:block;height:100%;width:0;background:var(--ui-blue);border-radius:inherit;transition:width .2s;}
.ct-app.ct-compact-ui .ct-v14-timeline {position:relative;padding-left:22px;margin:0;list-style:none;display:flex;flex-direction:column;gap:16px;}
.ct-app.ct-compact-ui .ct-v14-timeline::before {content:'';position:absolute;left:6px;top:7px;bottom:8px;width:1px;background:var(--ui-border);}
.ct-app.ct-compact-ui .ct-v14-timeline > li {position:relative;min-width:0;}
.ct-app.ct-compact-ui .ct-v14-timeline > li::before {content:'';position:absolute;left:-21px;top:6px;width:12px;height:12px;border:3px solid #FFF;box-shadow:0 0 0 1px var(--ui-blue);border-radius:50%;background:var(--ui-blue);}
.ct-app.ct-compact-ui .ct-v14-timeline time {display:block;color:#606068;font-size:12px;margin-bottom:3px;}
.ct-app.ct-compact-ui .ct-v14-timeline strong {font-weight:600;font-size:13px;}
.ct-app.ct-compact-ui .ct-v14-rating {display:flex;align-items:center;gap:2px;}
.ct-app.ct-compact-ui .ct-v14-rating button {background:none;border:0;padding:3px;font-size:22px;line-height:1;color:#C0C0C5;cursor:pointer;}
.ct-app.ct-compact-ui .ct-v14-rating button.is-on {color:#E5A600;}
.ct-app.ct-compact-ui .ct-v14-range {width:100%;max-width:360px;accent-color:var(--ui-blue);cursor:pointer;}
.ct-app.ct-compact-ui .ct-v14-upload {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.ct-app.ct-compact-ui .ct-v14-file-list {display:flex;flex-wrap:wrap;gap:6px;font-size:12px;color:#606068;}
.ct-app.ct-compact-ui .ct-v14-file {display:inline-flex;align-items:center;gap:8px;border:1px solid var(--ui-border);border-radius:6px;padding:5px 8px;background:#FAFAFC;max-width:100%;overflow-wrap:anywhere;}
.ct-app.ct-compact-ui .ct-v14-file button {background:transparent;border:0;color:#B42318;cursor:pointer;}
.ct-app.ct-compact-ui .ct-v14-popover-anchor {position:relative;display:inline-block;}
.ct-app.ct-compact-ui .ct-v14-popover {position:absolute;left:0;top:calc(100% + 8px);z-index:8;display:flex;flex-direction:column;gap:8px;padding:12px;width:min(270px,80vw);background:white;border:1px solid var(--ui-border);border-radius:8px;box-shadow:0 8px 26px rgba(0,0,0,.12);font-size:12px;line-height:1.5;}
.ct-app.ct-compact-ui .ct-v14-popover[hidden] {display:none;}
.ct-app.ct-compact-ui .ct-v14-popover::before {content:'';position:absolute;top:-5px;left:14px;width:8px;height:8px;background:white;border-left:1px solid var(--ui-border);border-top:1px solid var(--ui-border);transform:rotate(45deg);}
.ct-app.ct-compact-ui .ct-v14-banner {display:flex;flex-direction:column;gap:6px;padding:14px 16px;background:var(--ui-blue-bg);border:1px solid #CFE4F9;border-radius:10px;}
.ct-app.ct-compact-ui .ct-v14-divider {height:1px;background:var(--ui-border);margin:8px 0;flex:none;}
.ct-app.ct-compact-ui .ct-v14-blocktitle {font-size:14px;font-weight:600;color:var(--ui-text);line-height:1.4;}
.ct-app.ct-compact-ui .ct-v14-compact-list {display:flex;flex-direction:column;min-height:0;overflow:auto;gap:2px;}
.ct-app.ct-compact-ui .ct-v14-list-item {display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:6px;font-size:12px;line-height:1.4;color:var(--ui-text);background:transparent;border:0;text-align:left;cursor:pointer;}
.ct-app.ct-compact-ui .ct-v14-list-item:hover {background:var(--ui-blue-bg);}
.ct-app.ct-compact-ui .ct-v14-list-item[aria-selected='true'] {background:var(--ui-blue-bg);color:var(--ui-blue);font-weight:600;}

/* Dialog shell: only .ct-popup-host is promoted to the host body / layer skin. */
.ct-app.ct-compact-ui.ct-popup-host {position:fixed;inset:0;width:100vw;height:100dvh;z-index:7000;display:block;min-height:0;isolation:isolate;pointer-events:auto;background:rgba(29,29,31,.32);container-type:normal;}
.ct-app.ct-compact-ui.ct-popup-host[hidden] {display:none!important;}
.ct-app.ct-compact-ui .ct-v14-dialog {position:fixed;display:flex;flex-direction:column;overflow:hidden;min-width:0;min-height:0;width:auto;height:auto;max-width:100vw;max-height:100dvh;background:#FFF;border:1px solid #D2D2D7;border-radius:12px;box-shadow:0 15px 40px rgba(0,0,0,.16);container:ct-v14-modal/inline-size;touch-action:auto;}
.ct-app.ct-compact-ui .ct-v14-dialog[hidden] {display:none!important;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='full'] {border-radius:0;}
.ct-app.ct-compact-ui .ct-v14-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;min-height:44px;background:#FFF;border-bottom:1px solid var(--ui-border);flex:none;cursor:move;user-select:none;}
.ct-app.ct-compact-ui .ct-v14-dialog-title {display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;min-width:0;font-size:15px;font-weight:600;}
.ct-app.ct-compact-ui .ct-v14-dialog-title small {font-size:11px;font-weight:400;color:#606068;}
.ct-app.ct-compact-ui .ct-v14-dialog-close {display:inline-flex;justify-content:center;align-items:center;width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:6px;color:#606068;font-size:20px;line-height:1;cursor:pointer;background:white;}
.ct-app.ct-compact-ui .ct-v14-dialog-close:hover {background:var(--ui-bg);border-color:var(--ui-border);}
.ct-app.ct-compact-ui .ct-v14-dialog-main {display:flex;flex:1;flex-direction:column;gap:10px;min-height:0;min-width:0;overflow:hidden;padding:12px;}
.ct-app.ct-compact-ui .ct-v14-dialog-main--scroll {overflow:auto;}
.ct-app.ct-compact-ui .ct-v14-dialog-foot {display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;padding:9px 12px;background:#FFF;border-top:1px solid var(--ui-border);flex:none;}
.ct-app.ct-compact-ui .ct-v14-dialog-foot .ct-v14-note {margin-right:auto;}
.ct-app.ct-compact-ui .ct-v14-dialog-filter-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex:none;min-width:0;}
.ct-app.ct-compact-ui .ct-v14-dialog-filter-list {display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;gap:6px;}
.ct-app.ct-compact-ui .ct-v14-dialog-filter-list .ct-v14-table-wrap {flex:1;min-height:0;}
.ct-app.ct-compact-ui .ct-v14-dialog-form {display:flex;flex-direction:column;gap:12px;overflow:auto;min-height:0;min-width:0;flex:1;}
.ct-app.ct-compact-ui .ct-v14-dialog-form .ct-v14-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
.ct-app.ct-compact-ui .ct-v14-dialog-form .ct-section-card {flex:none;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-v14-dialog-head {min-height:34px;padding:3px 9px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-v14-dialog-title {font-size:13px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-v14-dialog-main {padding:7px;gap:4px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-v14-dialog-foot {padding:4px 7px;gap:4px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-btn {min-height:28px;font-size:12px;padding:0 8px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-text-input {height:28px;font-size:12px;}
.ct-app.ct-compact-ui .ct-v14-resize {position:absolute;z-index:5;display:flex;align-items:center;justify-content:center;width:19px;height:19px;padding:0;background:#EFF6FF;border:1px solid #B0D4F5;color:var(--ui-blue);font-size:11px;line-height:1;cursor:nwse-resize;touch-action:none;user-select:none;}
.ct-app.ct-compact-ui .ct-v14-resize--tl {top:0;left:0;border-top:0;border-left:0;border-radius:0 0 5px 0;}
.ct-app.ct-compact-ui .ct-v14-resize--br {bottom:0;right:0;border-right:0;border-bottom:0;border-radius:5px 0 0 0;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='full'] .ct-v14-resize {z-index:7;}
.ct-app.ct-compact-ui .ct-v14-dialog button:focus-visible,.ct-app.ct-compact-ui .ct-v14-page-btn:focus-visible,.ct-app.ct-compact-ui .ct-v14-tab:focus-visible,.ct-app.ct-compact-ui .ct-v14-rating button:focus-visible,.ct-app.ct-compact-ui .ct-v14-tree-toggle:focus-visible {outline:2px solid var(--ui-blue);outline-offset:2px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='full'] .ct-v14-dialog-main {background:var(--ui-bg);}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='full'] .ct-v14-dialog-form {max-width:1180px;width:100%;margin:0 auto;}
/* Popup responds to actual dialog width, not physical monitor width. */
@container ct-v14-modal (max-width:750px) {
  .ct-v14-dialog-form .ct-v14-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .ct-v14-dialog-filter-grid {grid-template-columns:1fr!important;}
  .ct-v14-dialog-main {padding:10px!important;}
}
@container ct-v14-modal (max-width:500px) {
  .ct-v14-dialog-form .ct-v14-grid {grid-template-columns:1fr!important;}
  .ct-v14-dialog-foot .ct-v14-note {flex-basis:100%;}
  .ct-v14-dialog-title small {display:none;}
}
/* Global demo toast/loading are scoped with explicit v1.4 prefix; not modifying body/base UI. */
.ct-v14-load-screen {position:fixed;inset:0;z-index:7990;background:rgba(29,29,31,.24);display:flex;align-items:center;justify-content:center;}
.ct-v14-load-screen[hidden] {display:none!important;}
.ct-v14-load-card {display:flex;align-items:center;gap:12px;background:white;padding:16px 20px;border-radius:10px;box-shadow:0 12px 32px rgba(0,0,0,.15);font:13px -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',Arial,sans-serif;color:#1D1D1F;}
.ct-v14-spinner {width:22px;height:22px;flex:none;border:3px solid #D7E9FF;border-top-color:#007AFF;border-radius:50%;animation:ct-ui-spin .7s linear infinite;}
.ct-v14-toast-host {position:fixed;top:20px;right:20px;z-index:8000;display:flex;flex-direction:column;gap:8px;max-width:min(360px,calc(100vw - 24px));pointer-events:none;}
.ct-v14-toast {padding:11px 14px;border-radius:8px;background:#FFF;border:1px solid #BDEBC8;box-shadow:0 8px 28px rgba(0,0,0,.12);color:#237A3B;font-size:13px;line-height:1.5;pointer-events:auto;}
.ct-v14-toast.is-error {border-color:#FBC5C0;color:#B42318;}
.ct-v14-tips {position:fixed;z-index:8100;max-width:240px;padding:6px 10px;border-radius:6px;background:#1D1D1F;color:#FFF;font-size:12px;line-height:1.45;box-shadow:0 4px 12px rgba(0,0,0,.15);pointer-events:none;}
.ct-v14-tips[hidden] {display:none!important;}
@media(max-width:800px) {
 .ct-app.ct-compact-ui .ct-v14-workspace {padding:12px;gap:12px;}
 .ct-app.ct-compact-ui .ct-v14-grid--three {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px) {
 .ct-app.ct-compact-ui .ct-v14-grid,.ct-app.ct-compact-ui .ct-v14-grid--three {grid-template-columns:1fr;}
 .ct-app.ct-compact-ui .ct-v14-dialog-head {padding:7px 10px 7px 22px;}
 .ct-app.ct-compact-ui .ct-v14-dialog-foot {padding:7px 8px;}
 .ct-v14-toast-host {top:10px;right:10px;}
}
@media(prefers-reduced-motion:reduce){.ct-v14-spinner {animation:none;border-top-color:#007AFF;} .ct-app.ct-compact-ui .ct-v14-progress > span {transition:none;}}

/* Sort buttons are semantic controls, no global table th overrides. */
.ct-app.ct-compact-ui .ct-v14-th-sort {border:0;background:transparent;color:#606068;font:600 12px var(--ui-font);padding:0;cursor:pointer;text-align:inherit;}
.ct-app.ct-compact-ui .ct-v14-th-sort:hover{color:var(--ui-blue);}
.ct-app.ct-compact-ui .ct-v14-th-sort:focus-visible{outline:2px solid var(--ui-blue);outline-offset:2px;}

/* Keep drag grips clear of the title and action buttons. */
.ct-app.ct-compact-ui .ct-v14-dialog-head {padding-left:27px;}
.ct-app.ct-compact-ui .ct-v14-dialog-foot {padding-right:32px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-v14-dialog-head {padding-left:27px;}
.ct-app.ct-compact-ui .ct-v14-dialog[data-kind='prompt'] .ct-v14-dialog-foot {padding-right:26px;}
@media(max-width:600px){.ct-app.ct-compact-ui .ct-v14-dialog-head {padding-left:27px;}.ct-app.ct-compact-ui .ct-v14-dialog-foot {padding-right:30px;}}

/* ==============================================================
 * V1.5 | override and additions, strictly scoped to opt-in UI.
 * V1.3 palette and font size stay unchanged.
 * Distinguish transient messages from result dialogs.
 * ============================================================ */
.ct-app.ct-compact-ui {
  --ct-v15-error: #B42318;
  --ct-v15-success: #237A3B;
  --ct-v15-success-icon: #34C759;
  --ct-v15-result-blue: #007AFF;
  --ct-v15-sticky-top: 0px;
}
.ct-app.ct-compact-ui .ct-v15-message--error,
.ct-app.ct-compact-ui .ct-field-error,
.ct-app.ct-compact-ui [data-message-state="error"] {color:var(--ct-v15-error)!important;}
.ct-app.ct-compact-ui .ct-v15-message--success,
.ct-app.ct-compact-ui [data-message-state="success"] {color:var(--ct-v15-success)!important;}
.ct-v14-toast.is-error,.ct-v15-toast.is-error {color:#B42318;border-color:#FBC5C0;}
.ct-v14-toast:not(.is-error),.ct-v15-toast:not(.is-error) {color:#237A3B;border-color:#BDEBC8;}
.ct-v15-toast strong,.ct-v15-toast span{color:inherit;}
/* Results: success icon GREEN, success dialog message BLUE; failure both RED. */
.ct-app.ct-compact-ui .ct-v15-result {display:flex;align-items:flex-start;gap:10px;padding:12px 0;min-width:0;}
.ct-app.ct-compact-ui .ct-v15-result-icon {font:700 26px/1.1 var(--ui-font);flex:none;min-width:27px;text-align:center;}
.ct-app.ct-compact-ui .ct-v15-result-text {font-size:13px;font-weight:600;line-height:1.5;min-width:0;overflow-wrap:anywhere;}
.ct-app.ct-compact-ui .ct-v15-result.is-success .ct-v15-result-icon {color:var(--ct-v15-success-icon);}
.ct-app.ct-compact-ui .ct-v15-result.is-success .ct-v15-result-text {color:var(--ct-v15-result-blue);}
.ct-app.ct-compact-ui .ct-v15-result.is-error .ct-v15-result-icon,
.ct-app.ct-compact-ui .ct-v15-result.is-error .ct-v15-result-text {color:var(--ct-v15-error);}

/* V1.5 scroll policy: normal pages use a SINGLE vertical page scroll;
   if a horizontal data table is too wide, only its X axis may scroll.
   Never hide vertical overflow on body, section, or table just for looks. */
.ct-app.ct-compact-ui.ct-v15-page {height:auto!important;min-height:100%;overflow:visible!important;}
.ct-app.ct-compact-ui.ct-v15-page .ct-v14-workspace {overflow:visible;}
.ct-app.ct-compact-ui.ct-v15-scroll-standard .ct-v14-scroll,
.ct-app.ct-compact-ui.ct-v15-scroll-standard .ct-v14-compact-list,
.ct-app.ct-compact-ui.ct-v15-scroll-standard .ct-v14-dialog-form {overflow:visible;height:auto;max-height:none;}
.ct-app.ct-compact-ui.ct-v15-scroll-standard .ct-v14-table-wrap {overflow-x:auto;overflow-y:visible;max-height:none;height:auto;}
/* Inside a bounded MODAL: one body scroll is the inevitable exception. */
.ct-app.ct-compact-ui.ct-popup-host .ct-v14-dialog-main {overflow-y:auto;overflow-x:hidden;}
.ct-app.ct-compact-ui.ct-popup-host .ct-v14-dialog-form {overflow:visible!important;flex:none;min-height:auto;}
.ct-app.ct-compact-ui.ct-popup-host .ct-v14-dialog-filter-list {overflow:visible;flex:none;min-height:auto;}
.ct-app.ct-compact-ui.ct-popup-host .ct-v14-dialog-filter-list .ct-v14-table-wrap {overflow-x:auto;overflow-y:visible;flex:none;min-height:auto;height:auto;max-height:none;}
.ct-app.ct-compact-ui.ct-popup-host .ct-v14-compact-list {overflow:visible!important;max-height:none!important;}
.ct-app.ct-compact-ui.ct-popup-host .ct-v14-dialog-foot {position:relative;z-index:1;}

/* V1.5 table: the accessible native table scrolls ONLY horizontally;
   a visual sticky header is a sibling synchronized in X via JS. */
.ct-app.ct-compact-ui .ct-v15-grid {position:relative;min-width:0;width:100%;isolation:isolate;border:1px solid var(--ui-border);border-radius:8px;background:#FFF;}
.ct-app.ct-compact-ui .ct-v15-grid-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 8px;}
.ct-app.ct-compact-ui .ct-v15-grid-caption {font-size:12px;color:#606068;flex:1;}
.ct-app.ct-compact-ui .ct-v15-sticky-head {position:sticky;top:var(--ct-v15-sticky-top,0px);z-index:22;min-width:0;background:#FAFAFC;border-radius:8px 8px 0 0;border-bottom:1px solid #D2D2D7;}
.ct-app.ct-compact-ui .ct-v15-head-viewport {width:100%;overflow:hidden;min-width:0;}
.ct-app.ct-compact-ui .ct-v15-x {width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;}
.ct-app.ct-compact-ui .ct-v15-x:focus-visible {outline:2px solid #007AFF;outline-offset:2px;}
.ct-app.ct-compact-ui .ct-v15-grid-table {margin:0;border-spacing:0;border-collapse:separate;table-layout:fixed;font-size:12px;color:#1D1D1F;min-width:100%;font-variant-numeric:tabular-nums;}
.ct-app.ct-compact-ui .ct-v15-grid-table th,
.ct-app.ct-compact-ui .ct-v15-grid-table td {box-sizing:border-box;padding:9px 10px;border-bottom:1px solid #ECECF0;vertical-align:middle;overflow-wrap:anywhere;}
.ct-app.ct-compact-ui .ct-v15-grid-table th {font-weight:600;color:#606068;text-align:left;background:#FAFAFC;white-space:nowrap;position:relative;padding-right:17px;}
.ct-app.ct-compact-ui .ct-v15-grid-table tr:last-child td {border-bottom:0;}
.ct-app.ct-compact-ui .ct-v15-grid-table tbody tr:hover td {background:#F7FAFE;}
.ct-app.ct-compact-ui .ct-v15-grid-table .ct-v15-left {position:sticky;left:0;z-index:3;background:#FFF;box-shadow:2px 0 4px rgba(0,0,0,.035);}
.ct-app.ct-compact-ui .ct-v15-grid-table .ct-v15-right {position:sticky;right:0;z-index:3;background:#FFF;box-shadow:-2px 0 4px rgba(0,0,0,.04);}
.ct-app.ct-compact-ui .ct-v15-grid-table th.ct-v15-left,
.ct-app.ct-compact-ui .ct-v15-grid-table th.ct-v15-right {z-index:5;background:#FAFAFC;}
.ct-app.ct-compact-ui .ct-v15-grid-table tbody tr:hover .ct-v15-left,
.ct-app.ct-compact-ui .ct-v15-grid-table tbody tr:hover .ct-v15-right {background:#F7FAFE;}
.ct-app.ct-compact-ui .ct-v15-a11y-head {position:absolute!important;left:0;top:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.ct-app.ct-compact-ui .ct-v15-resize-handle {position:absolute;right:0;top:4px;bottom:4px;width:10px;z-index:8;cursor:col-resize;touch-action:none;border-right:2px solid transparent;background:transparent;outline-offset:-1px;}
.ct-app.ct-compact-ui .ct-v15-resize-handle:hover,
.ct-app.ct-compact-ui .ct-v15-resize-handle:focus-visible,
.ct-app.ct-compact-ui .ct-v15-resize-handle.is-resizing {border-right-color:#007AFF;background:rgba(0,122,255,.06);outline:0;}
.ct-app.ct-compact-ui .ct-v15-grid-table .ct-v15-cell-action {white-space:nowrap;text-align:center;}
.ct-app.ct-compact-ui .ct-v15-action {border:1px solid #CFE4F9;border-radius:5px;color:#007AFF;background:#F0F7FE;font:500 12px var(--ui-font);padding:5px 10px;cursor:pointer;}
.ct-app.ct-compact-ui .ct-v15-action:focus-visible {outline:2px solid #007AFF;outline-offset:2px;}
.ct-app.ct-compact-ui .ct-v15-grid-fallback {font-size:12px;color:#606068;}

/* External popup host adapter: CSS only styles an existing host and panel.
   It must NOT create a second body overlay or override all .layui-layer. */
.ct-v15-host {position:fixed;inset:0;display:block;z-index:7000;background:rgba(29,29,31,.30);}
.ct-v15-host[hidden] {display:none!important;}
.ct-app.ct-compact-ui .ct-v15-modal {position:absolute;display:flex;flex-direction:column;background:#FFF;border:1px solid #D2D2D7;border-radius:12px;box-shadow:0 14px 44px rgba(0,0,0,.16);min-width:0;min-height:0;max-width:100%;max-height:100%;overflow:hidden;container:ct-v15-modal/inline-size;}
.ct-app.ct-compact-ui .ct-v15-modal.is-full {border-radius:0;}
.ct-app.ct-compact-ui .ct-v15-modal-titlebar {flex:none;display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:42px;padding:8px 12px 8px 29px;background:#FFF;border-bottom:1px solid var(--ui-border);cursor:move;user-select:none;}
.ct-app.ct-compact-ui .ct-v15-modal-titlebar strong {font-size:15px;font-weight:600;}
.ct-app.ct-compact-ui .ct-v15-modal-titlebar button {width:28px;height:28px;flex:none;border:0;background:#FFF;border-radius:6px;cursor:pointer;color:#606068;font-size:20px;line-height:1;}
.ct-app.ct-compact-ui .ct-v15-modal-titlebar button:hover {background:#F5F5F7;}
.ct-app.ct-compact-ui .ct-v15-modal-main {flex:1;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;padding:12px;display:flex;flex-direction:column;gap:12px;}
.ct-app.ct-compact-ui .ct-v15-modal-main > * {flex:none;}
.ct-app.ct-compact-ui .ct-v15-modal-foot {flex:none;display:flex;justify-content:flex-end;gap:8px;align-items:center;flex-wrap:wrap;min-height:42px;padding:6px 30px 6px 12px;border-top:1px solid #D2D2D7;background:#FFF;}
.ct-app.ct-compact-ui .ct-v15-modal-handle {position:absolute;z-index:9;width:21px;height:21px;background:#F0F7FE;border:1px solid #B0D4F5;color:#007AFF;font-size:12px;display:flex;align-items:center;justify-content:center;cursor:nwse-resize;touch-action:none;padding:0;}
.ct-app.ct-compact-ui .ct-v15-modal-handle[data-corner="tl"] {top:0;left:0;border-radius:0 0 5px 0;}
.ct-app.ct-compact-ui .ct-v15-modal-handle[data-corner="br"] {bottom:0;right:0;border-radius:5px 0 0 0;}
.ct-app.ct-compact-ui .ct-v15-modal-handle:focus-visible {outline:2px solid #007AFF;outline-offset:2px;}
.ct-app.ct-compact-ui .ct-v15-inline-note {font-size:12px;color:#606068;line-height:1.5;}
.ct-app.ct-compact-ui .ct-v15-chip-line {display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.ct-app.ct-compact-ui .ct-v15-chip-button {border:1px solid #D2D2D7;border-radius:6px;background:#FFF;color:#1D1D1F;font:13px var(--ui-font);padding:6px 14px;cursor:pointer;}
.ct-app.ct-compact-ui .ct-v15-chip-button[aria-pressed="true"] {background:#007AFF;border-color:#007AFF;color:#FFF;}
.ct-app.ct-compact-ui .ct-v15-chip-button:focus-visible {outline:2px solid #007AFF;outline-offset:2px;}
.ct-app.ct-compact-ui .ct-v15-form-line {display:flex;flex-wrap:wrap;gap:12px;}
.ct-app.ct-compact-ui .ct-v15-form-line label {flex:1 1 180px;display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;color:#606068;}
.ct-app.ct-compact-ui .ct-v15-form-line input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]) {height:34px;padding:6px 10px;background:#F5F5F7;border:1px solid transparent;border-radius:6px;font-size:13px;min-width:0;width:100%;}
.ct-app.ct-compact-ui .ct-v15-form-line input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):focus {outline:0;background:#FFF;border-color:#007AFF;}
.ct-app.ct-compact-ui .ct-v15-small-list {border:1px solid #D2D2D7;border-radius:6px;display:flex;flex-direction:column;gap:0;background:#FFF;}
.ct-app.ct-compact-ui .ct-v15-small-list > div {padding:9px 10px;border-bottom:1px solid #ECECF0;font-size:12px;}
.ct-app.ct-compact-ui .ct-v15-small-list > div:last-child {border-bottom:0;}
.ct-v15-locked {overflow:hidden!important;}
.ct-v15-load-overlay {position:fixed;inset:0;z-index:9000;background:rgba(29,29,31,.22);display:flex;align-items:center;justify-content:center;}
.ct-v15-load-overlay[hidden] {display:none!important;}
.ct-v15-load-card {display:flex;gap:10px;align-items:center;background:#FFF;border:1px solid #D2D2D7;padding:14px 18px;border-radius:10px;font:13px -apple-system,BlinkMacSystemFont,'PingFang SC',Arial,sans-serif;box-shadow:0 8px 20px rgba(0,0,0,.12);}
.ct-v15-spinner {width:22px;height:22px;border-radius:50%;border:3px solid #CFE4F9;border-top-color:#007AFF;animation:ct-ui-spin .7s linear infinite;}
.ct-v15-toast-host {position:fixed;right:18px;top:18px;z-index:9500;display:flex;flex-direction:column;gap:8px;max-width:min(360px,calc(100vw - 30px));pointer-events:none;}
.ct-v15-toast {background:#FFF;border:1px solid #BDEBC8;color:#237A3B;box-shadow:0 8px 24px rgba(0,0,0,.12);border-radius:8px;padding:11px 14px;display:flex;align-items:flex-start;gap:8px;font:500 13px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',Arial,sans-serif;pointer-events:auto;}
.ct-v15-toast.is-error {border-color:#FBC5C0;color:#B42318;}
@container ct-v15-modal (max-width:540px){.ct-v15-form-line{flex-direction:column;}.ct-v15-modal-main{padding:10px!important;}}
@media(max-width:680px){.ct-app.ct-compact-ui .ct-v15-demo-workspace {padding:12px!important;}.ct-app.ct-compact-ui .ct-v15-sticky-head {top:var(--ct-v15-sticky-top,0px);}}
@media(prefers-reduced-motion:reduce){.ct-v15-spinner {animation:none;}}


/* V1.5.1 list-page extensions: scoped search / actions / pagination */
/* Opt-in list components. Existing Bootstrap / FastAdmin layouts outside these classes are untouched. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search {
  display:block;min-width:0;margin:0 0 10px;padding:12px;background:#fff;
  border:1px solid #D2D2D7;border-radius:8px;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__fields {
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 12px;min-width:0;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field {
  flex:1 1 170px;min-width:140px;max-width:280px;display:flex;flex-direction:column;gap:5px;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field--wide {flex-basis:240px;max-width:380px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field > label {
  display:block;margin:0;color:#1D1D1F;font-size:12px;font-weight:600;line-height:1.4;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field :is(.form-control,.ct-text-input,.ct-select) {
  width:100%;min-width:0;max-width:100%;box-sizing:border-box;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__actions {
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:34px;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__fields + .ct-list-search__actions {margin-top:10px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-toolbar {
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:8px 12px;min-width:0;margin:0 0 10px;padding:8px 10px;
  background:#fff;border:1px solid #D2D2D7;border-radius:8px;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-list-toolbar__primary,.ct-list-toolbar__secondary,.ct-list-toolbar__group) {
  display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-toolbar__secondary {margin-left:auto;}
/* Scope Bootstrap buttons to the two opt-in list regions only. */
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-list-search__actions,.ct-list-toolbar) .btn {
  display:inline-flex;align-items:center;justify-content:center;gap:5px;
  min-height:34px;padding:6px 11px;font-size:12px;font-weight:500;line-height:20px;
  border-radius:6px;box-sizing:border-box;white-space:nowrap;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-list-search__actions,.ct-list-toolbar) .btn.btn-sm {
  min-height:30px;padding:4px 9px;line-height:20px;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-list-search__actions,.ct-list-toolbar) .btn:focus-visible {
  outline:2px solid #007AFF;outline-offset:2px;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-list-search__actions,.ct-list-toolbar) .btn[disabled] {
  opacity:.55;cursor:not-allowed;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content {min-width:0;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content__scroll {
  width:100%;max-width:100%;overflow-x:auto;overflow-y:visible;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-pagination {
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:8px 12px;margin-top:10px;color:#606068;font-size:12px;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-pagination .pagination {margin:0;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-pagination .pagination > li > a,
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-pagination .pagination > li > span {
  padding:5px 9px;font-size:12px;line-height:20px;
}
@media (max-width:767px) {
  .ct-app.ct-compact-ui.ct-ui-standard .ct-list-search {padding:10px;}
  .ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field {
    flex:1 1 calc(50% - 12px);min-width:min(100%,150px);max-width:none;
  }
  .ct-app.ct-compact-ui.ct-ui-standard .ct-list-toolbar__secondary {margin-left:0;}
}
@media (max-width:480px) {
  .ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field {flex-basis:100%;min-width:0;}
  .ct-app.ct-compact-ui.ct-ui-standard .ct-list-toolbar {padding:8px;}
  .ct-app.ct-compact-ui.ct-ui-standard .ct-list-pagination {align-items:flex-start;}
}

/* === R2 COMPONENT CONTRACTS: explicit opt-in, no catch-all input/select rule === */
.ct-app.ct-compact-ui.ct-ui-standard {
 --ct-ui-revision:20261029; --ui-control-h:34px; --ui-muted-readable:#606068;
 --ui-error:#B42318; --ui-success:#237A3B;
 font-family:var(--ui-font)!important; font-size:13px!important; color:#1D1D1F!important;
 line-height:1.5; min-width:0; min-height:0;
}
.ct-app.ct-compact-ui.ct-ui-standard [hidden] {display:none!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-field-control {min-width:0;max-width:100%;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-field-label,
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field > label {
 display:block;margin:0 0 6px;padding:0;border:0;background:transparent;
 font-size:13px!important;font-weight:400!important;color:#606068!important;line-height:1.5;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-form-label {color:#606068;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-fields {
 display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-start;min-width:0;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-fields > .ct-field-control {flex:1 1 240px;min-width:0;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-fields > .ct-field-control--full {flex-basis:100%;}
/* Add ct-text-input/ct-filter-input explicitly to actual editable controls.
 * Never add these classes to a wrapper, radio, checkbox, hidden or file input. */
.ct-app.ct-compact-ui.ct-ui-standard input.ct-text-input,
.ct-app.ct-compact-ui.ct-ui-standard input.ct-filter-input,
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-search__field > input.form-control {
 box-sizing:border-box;display:block;float:none;width:100%;min-width:0;max-width:100%;
 height:34px!important;min-height:34px!important;max-height:none!important;
 margin:0!important;padding:6px 10px!important;border:1px solid var(--ct-input-border,transparent)!important;
 border-radius:6px!important;background:#F5F5F7!important;color:#1D1D1F!important;
 font-family:var(--ui-font)!important;font-size:13px!important;font-weight:400;line-height:20px!important;
 box-shadow:none!important;outline:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard textarea.ct-textarea {
 box-sizing:border-box;display:block;float:none;width:100%;min-width:0;max-width:100%;
 height:auto!important;min-height:88px!important;padding:8px 10px!important;margin:0!important;
 border:1px solid var(--ct-input-border,transparent)!important;border-radius:6px!important;
 background:#F5F5F7!important;color:#1D1D1F!important;font:400 13px/1.5 var(--ui-font)!important;
 resize:vertical;box-shadow:none!important;outline:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard textarea.ct-textarea[data-ct-autogrow="on"]:not([data-ct-autogrow-max]){max-height:none!important;overflow-y:hidden;resize:none;}
.ct-app.ct-compact-ui.ct-ui-standard :is(input.ct-text-input,input.ct-filter-input,textarea.ct-textarea,.ct-list-search__field > input.form-control):focus {
 background:#FFF!important;border-color:#007AFF!important;box-shadow:0 0 0 2px rgba(0,122,255,.1)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(input.ct-text-input,input.ct-filter-input,textarea.ct-textarea)[readonly] {
 background:#FAFAFC!important;color:#606068!important;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(input.ct-text-input,input.ct-filter-input,textarea.ct-textarea):disabled {
 background:#E5E5EA!important;color:#606068!important;cursor:not-allowed;opacity:1;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(input.ct-text-input,input.ct-filter-input,textarea.ct-textarea)[aria-invalid="true"],
.ct-app.ct-compact-ui.ct-ui-standard :is(input.ct-text-input,input.ct-filter-input,textarea.ct-textarea).is-invalid {
 border-color:#B42318!important;box-shadow:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(input.ct-text-input,input.ct-filter-input,textarea.ct-textarea)[aria-invalid="true"]:focus {
 box-shadow:0 0 0 2px rgba(180,35,24,.12)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-field-error {color:#B42318!important;font-size:12px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-field-success {color:#237A3B!important;font-size:12px;}
/* SINGLE VISUAL OWNER: the shell paints border/focus; its one input never does. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input {
 display:flex;align-items:center;gap:6px;width:100%;min-width:0;max-width:100%;box-sizing:border-box;
 height:34px!important;min-height:34px!important;padding:0 10px!important;margin:0;
 border:1px solid var(--ct-input-border,transparent)!important;border-radius:6px!important;
 background:#F5F5F7!important;box-shadow:none!important;outline:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:focus-within {
 border-color:#007AFF!important;background:#FFF!important;box-shadow:0 0 0 2px rgba(0,122,255,.1)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input:focus,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input:focus-visible,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input[readonly],
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input:disabled,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input[aria-invalid="true"] {
 flex:1 1 0%!important;float:none!important;width:0!important;min-width:0!important;max-width:100%;
 height:100%!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
 outline:0!important;box-shadow:none!important;background:transparent!important;
 font:400 13px/20px var(--ui-font)!important;color:inherit!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > .ct-unit {flex:0 0 auto;margin:0!important;white-space:nowrap;color:#606068;font-size:12px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.is-disabled,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:has(> input:disabled) {background:#E5E5EA!important;color:#606068;cursor:not-allowed;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.is-invalid,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:has(> input[aria-invalid="true"]) {border-color:#B42318!important;box-shadow:none!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.is-invalid:focus-within,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:has(> input[aria-invalid="true"]):focus-within {box-shadow:0 0 0 2px rgba(180,35,24,.12)!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-inputs {display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-inputs > .ct-unit-input {flex:1 1 80px;width:auto;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-inputs > .ct-separator {flex:none;color:#606068;}
/* CHIP: native input + ONE painted text span; never nest another button/chip. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-choice-group {display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0;max-width:100%;}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice {
 position:relative;display:inline-flex;align-items:center;flex:0 1 auto;min-width:0;max-width:100%;
 padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;
 box-shadow:none!important;font-size:13px!important;font-weight:400!important;cursor:pointer;
}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > input.ct-choice-input {
 position:absolute!important;float:none!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;
 padding:0!important;margin:-1px!important;border:0!important;outline:0!important;box-shadow:none!important;
 clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap;
}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > .ct-choice-text {
 display:inline-flex;align-items:center;justify-content:center;min-width:0;max-width:100%;min-height:34px;
 padding:6px 14px!important;border:1px solid #D2D2D7!important;border-radius:6px!important;
 background:#FFF!important;color:#1D1D1F!important;font:400 13px/20px var(--ui-font)!important;
 box-shadow:none!important;white-space:normal;overflow-wrap:anywhere;text-align:center;
}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice:hover > input:not(:disabled) ~ .ct-choice-text {background:#F5F5F7!important;}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > input:checked ~ .ct-choice-text,
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice:hover > input:checked ~ .ct-choice-text {
 border-color:#007AFF!important;background:#007AFF!important;color:#FFF!important;
}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > input:focus-visible ~ .ct-choice-text {outline:2px solid #007AFF;outline-offset:2px;}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > input:disabled ~ .ct-choice-text {opacity:.65;cursor:not-allowed;}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > input:disabled:not(:checked) ~ .ct-choice-text {background:#E5E5EA!important;color:#606068!important;}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > input[type="checkbox"]:indeterminate ~ .ct-choice-text {border-style:dashed!important;background:#F0F7FE!important;color:#007AFF!important;}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice > .ct-choice-mark {display:none!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-choice-group[aria-invalid="true"] .ct-choice-text {border-color:#B42318!important;}
/* Native small checkboxes for table selection are NOT Chip controls. */
.ct-app.ct-compact-ui.ct-ui-standard input.ct-table-check {width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;padding:0!important;margin:0!important;vertical-align:middle;accent-color:#007AFF;}
/* Explicit button owners: no site-wide .btn rule. */
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn) {
 display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px!important;max-width:100%;
 padding:6px 14px!important;margin:0;border:1px solid #D2D2D7!important;border-radius:6px!important;
 background:#FFF!important;color:#1D1D1F!important;font:500 13px/20px var(--ui-font)!important;
 box-shadow:none!important;cursor:pointer;white-space:normal;text-decoration:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn--primary,.btn.ct-ui-btn.btn-primary) {background:#007AFF!important;border-color:#007AFF!important;color:#FFF!important;}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn--primary,.btn.ct-ui-btn.btn-primary):hover:not(:disabled) {background:#0066D6!important;border-color:#0066D6!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-btn--danger {color:#B42318!important;border-color:#B42318!important;background:#FFF!important;}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn):focus-visible {outline:2px solid #007AFF;outline-offset:2px;}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn):disabled,
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn)[aria-disabled="true"] {background:#E5E5EA!important;border-color:#E5E5EA!important;color:#606068!important;cursor:not-allowed;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-btn--small {min-height:30px!important;padding:4px 10px!important;}
/* Explicit soft-danger variant: outrank the shared white .btn.ct-ui-btn owner. */
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn).ct-btn--danger-soft:not(:disabled):not([aria-disabled="true"]){color:#B42318!important;background:#FFF1F0!important;border-color:#FBC5C0!important;}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn).ct-btn--danger-soft:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible){color:#912018!important;background:#FFE4E1!important;border-color:#F4A69E!important;}
/* One table-cell editor, not the entire cell, owns its input dimensions. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-table-editor {min-width:120px;max-width:100%;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-table-editor .ct-field-error {display:block;margin-top:4px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-frequency-split {display:flex;flex-wrap:wrap;gap:16px;min-width:0;align-items:flex-start;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-frequency-pane {flex:1 1 320px;min-width:0;max-width:100%;border:1px solid #D2D2D7;border-radius:8px;padding:12px;background:#FFF;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-frequency-pane .ct-choice-group {margin-top:10px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-filter-actions {display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;}
/* Surface contract. Never add ct-app to body, iframe element or a Layer shell. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-modal-body {flex:1 1 auto;min-width:0;min-height:0;width:100%;overflow:auto;padding:12px;gap:12px;background:#F5F5F7;}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-modal-footer {flex:none;container-type:normal;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;gap:8px;padding:10px 16px;border-top:1px solid #D2D2D7;background:#FFF;width:auto;}
/* Skin only: the host still owns position, dimensions, stacking and lifecycle. */
.ct-ui-shell,.layui-layer.ct-ui-layer {--ui-font:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue",Arial,sans-serif;background:#FFF;color:#1D1D1F;font:13px/1.5 var(--ui-font);border:1px solid #D2D2D7;border-radius:8px;box-shadow:0 10px 32px rgba(0,0,0,.14);}
.ct-ui-shell__layout {display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;}
.ct-ui-shell__title,.layui-layer.ct-ui-layer > .layui-layer-title {
 box-sizing:border-box;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;
 min-height:42px;height:auto!important;padding:8px 16px!important;border-bottom:1px solid #D2D2D7!important;
 background:#FFF!important;color:#1D1D1F!important;font:600 15px/24px var(--ui-font)!important;
}
.ct-ui-shell__title > button {flex:none;width:28px;height:28px;padding:0;border:0;border-radius:6px;background:#FFF;color:#606068;cursor:pointer;font:22px/28px Arial;}
.ct-ui-shell__title > button:focus-visible {outline:2px solid #007AFF;outline-offset:2px;}
.layui-layer.ct-ui-layer > .layui-layer-content {color:#1D1D1F;background:#FFF;font:13px/1.5 var(--ui-font);}
.layui-layer.ct-ui-layer > .layui-layer-btn {padding:10px 16px!important;border-top:1px solid #D2D2D7;background:#FFF!important;}
.layui-layer.ct-ui-layer > .layui-layer-btn > a {box-sizing:border-box;min-height:34px!important;height:auto!important;padding:6px 14px!important;margin:0 0 0 8px!important;border:1px solid #D2D2D7!important;border-radius:6px!important;background:#FFF!important;color:#1D1D1F!important;font:500 13px/20px var(--ui-font)!important;}
.layui-layer.ct-ui-layer > .layui-layer-btn > .layui-layer-btn0 {background:#007AFF!important;border-color:#007AFF!important;color:#FFF!important;}
.layui-layer.ct-ui-layer > .layui-layer-btn > a:focus-visible {outline:2px solid #007AFF;outline-offset:2px;}
/* Popups must be mounted in the ACTIVE owner's slot, outside its scroller.
 * The slot belongs inside the dialog/focus scope; not in an inert ancestor. */
.ct-ui-popup-slot {position:absolute;inset:0;pointer-events:none;overflow:visible;z-index:6;}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal {
 position:absolute;container-type:normal;display:block;min-width:0;min-height:0;max-width:100%;
 padding:6px;background:#FFF;border:1px solid #D2D2D7;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);
 pointer-events:auto;z-index:auto;line-height:1.5;
}
/* Self-contained searchable picker. No Select2/Selectpage/bootstrap-select skin hacks. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select {display:block;position:relative;min-width:0;width:100%;max-width:100%;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__trigger {
 display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;min-width:0;max-width:100%;
 height:34px!important;min-height:34px!important;padding:6px 10px!important;
 border:1px solid var(--ct-input-border,transparent)!important;border-radius:6px!important;background:#F5F5F7!important;
 color:#1D1D1F!important;font:400 13px/20px var(--ui-font)!important;text-align:left;cursor:pointer;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__trigger[aria-expanded="true"],
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__trigger:focus-visible {background:#FFF!important;border-color:#007AFF!important;box-shadow:0 0 0 2px rgba(0,122,255,.1)!important;outline:0;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__trigger:disabled {background:#E5E5EA!important;color:#606068!important;cursor:not-allowed;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__trigger[aria-invalid="true"] {border-color:#B42318!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__value {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__arrow {flex:none;width:0;height:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:5px solid #606068;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__placeholder {color:#606068;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__list {max-height:220px;min-height:0;overflow:auto;list-style:none;margin:6px 0 0;padding:0;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__option {display:block;width:100%;box-sizing:border-box;min-height:32px;padding:6px 9px;border:1px solid transparent;border-radius:5px;background:#FFF;color:#1D1D1F;font:400 13px/20px var(--ui-font);white-space:normal;overflow-wrap:anywhere;cursor:pointer;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__option.is-active {background:#F0F7FE;border-color:#B0D4F5;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__option[aria-selected="true"] {background:#007AFF;color:#FFF;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__option[aria-disabled="true"] {color:#606068;opacity:.6;cursor:not-allowed;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__pagination {display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;padding-top:6px;margin-top:6px;border-top:1px solid #D2D2D7;font-size:12px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__page-btn {min-height:28px;padding:3px 8px;border:1px solid #D2D2D7;border-radius:5px;background:#FFF;color:#1D1D1F;font:400 12px/20px var(--ui-font);cursor:pointer;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__page-btn:disabled {color:#606068;opacity:.5;cursor:not-allowed;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__page-btn:focus-visible {outline:2px solid #007AFF;outline-offset:1px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__empty {padding:12px 8px;color:#606068;font-size:12px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select__empty.is-error {color:#B42318;}
@container (max-width:680px) {
 .ct-app.ct-compact-ui.ct-ui-standard .ct-frequency-pane {flex-basis:100%;}
 .ct-app.ct-compact-ui.ct-ui-standard .ct-fields {gap:12px;}
 .ct-app.ct-compact-ui.ct-ui-standard .ct-fields > .ct-field-control {flex-basis:220px;}
}
@media(max-width:680px) {.ct-app.ct-compact-ui.ct-ui-standard .ct-frequency-pane {flex-basis:100%;}}
@media(prefers-reduced-motion:reduce) {.ct-app.ct-compact-ui.ct-ui-standard * {scroll-behavior:auto;}}
/* Custom-host layout: ONE root wraps title/body/footer. Portal slot is a sibling. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-modal-root {height:100%;min-height:0;container-type:normal;overflow:hidden;background:#FFF;}
.ct-app.ct-compact-ui.ct-ui-standard > .ct-ui-modal-body {flex:1 1 auto;min-width:0;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:12px;background:#F5F5F7;container-type:inline-size;}
.ct-app.ct-compact-ui.ct-ui-standard > .ct-ui-modal-body > * {flex:none;}
.ct-app.ct-compact-ui.ct-ui-standard > .ct-ui-modal-footer {flex:none;display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 16px;border-top:1px solid #D2D2D7;background:#FFF;}
/* A detached root can itself be hidden; descendant-only selectors are insufficient. */
.ct-app.ct-compact-ui.ct-ui-standard[hidden] {display:none!important;}
/* Selection groups retain a left label even in compact containers. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-form-row--choice {display:flex;flex-direction:row;align-items:flex-start;gap:12px;min-width:0;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-form-row--choice > .ct-form-label {flex:0 0 100px;width:100px;max-width:100px;padding-top:7px;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-form-row--choice > .ct-form-content {flex:1 1 0;min-width:0;width:auto;}
@container(max-width:600px){.ct-app.ct-compact-ui.ct-ui-standard .ct-form-row--choice > .ct-form-label{flex-basis:82px;width:82px;max-width:82px;}}
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice::before,
.ct-app.ct-compact-ui.ct-ui-standard label.ct-choice::after {display:none!important;content:none!important;}


/* ===== V1.5.1-R3: initial state and legacy button-choice compatibility =====
 * IMPORTANT: :indeterminate applies to radio groups without a checked item;
 * ONLY real checkboxes may use the blue dashed indeterminate treatment.
 * Native label.ct-choice + input.ct-choice-input + span.ct-choice-text
 * already paints from :checked and needs NO JS active class.
 * The following legacy support is scoped to explicit legacy groups only.
 */
.ct-app.ct-compact-ui.ct-ui-standard :is(
  .btn-group[data-toggle="buttons"],
  .radio-toolbar,
  .checkbox-toolbar,
  [data-ct-choice-sync="legacy"]
) {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  min-width:0;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(
  .btn-group[data-toggle="buttons"] > label.btn,
  .radio-toolbar > label,
  .checkbox-toolbar > label,
  [data-ct-choice-sync="legacy"] > label.ct-choice-item,
  [data-ct-choice-sync="legacy"] > label.ct-radio-tag,
  [data-ct-choice-sync="legacy"] > label.ct-checkbox-tag
) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  min-width:0;
  max-width:100%;
  margin:0!important;
  padding:6px 12px!important;
  border:1px solid #D2D2D7!important;
  border-radius:6px!important;
  background:#FFF!important;
  color:#1D1D1F!important;
  box-shadow:none!important;
  font:400 13px/20px var(--ui-font)!important;
  white-space:normal;
  cursor:pointer;
}
/* Property-backed :has covers initial render in modern browsers;
   CtUI.syncChoiceState also sets classes for Bootstrap3/older engines. */
.ct-app.ct-compact-ui.ct-ui-standard :is(
  .btn-group[data-toggle="buttons"] > label.btn,
  .radio-toolbar > label,
  .checkbox-toolbar > label,
  [data-ct-choice-sync="legacy"] > label.ct-choice-item,
  [data-ct-choice-sync="legacy"] > label.ct-radio-tag,
  [data-ct-choice-sync="legacy"] > label.ct-checkbox-tag
):is(.active,.is-checked,.is-selected,:has(input:checked)) {
  background:#007AFF!important;
  color:#FFF!important;
  border-color:#007AFF!important;
}
.ct-app.ct-compact-ui.ct-ui-standard :is(
  .btn-group[data-toggle="buttons"] > label.btn,
  .radio-toolbar > label,
  .checkbox-toolbar > label,
  [data-ct-choice-sync="legacy"] > label.ct-choice-item,
  [data-ct-choice-sync="legacy"] > label.ct-radio-tag,
  [data-ct-choice-sync="legacy"] > label.ct-checkbox-tag
):is(.disabled,.is-disabled,:has(input:disabled)) {opacity:.55;cursor:not-allowed;}
.ct-app.ct-compact-ui.ct-ui-standard :is(
  .btn-group[data-toggle="buttons"] > label.btn,
  .radio-toolbar > label,
  .checkbox-toolbar > label,
  [data-ct-choice-sync="legacy"] > label.ct-choice-item,
  [data-ct-choice-sync="legacy"] > label.ct-radio-tag,
  [data-ct-choice-sync="legacy"] > label.ct-checkbox-tag
):focus-within {outline:2px solid #007AFF;outline-offset:2px;}
.ct-app.ct-compact-ui.ct-ui-standard :is(
  .btn-group[data-toggle="buttons"] > label.btn,
  .radio-toolbar > label,
  .checkbox-toolbar > label,
  [data-ct-choice-sync="legacy"] > label.ct-choice-item,
  [data-ct-choice-sync="legacy"] > label.ct-radio-tag,
  [data-ct-choice-sync="legacy"] > label.ct-checkbox-tag
) > input:is([type="radio"],[type="checkbox"]) {
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;
  overflow:hidden!important;
  opacity:0;
}
/* Never add a generic .active handler to label.ct-choice: native :checked is canonical. */


/* ============================================================================
 * V1.5.1-R4 | Unit-field + calendar containment contract | 2026-10-29
 * This patch EXTENDS R3, it does not reset all inputs or plugin widgets.
 * A unit field has ONE visible shell border. The date widget is PLUGIN OWNED.
 * ============================================================================ */

/* A. Native one-shell numeric+unit input.  Only explicit .ct-unit-input. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input {
  display:flex!important;align-items:center!important;gap:8px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  padding:0 10px!important;height:34px!important;min-height:34px!important;
  border:1px solid var(--ct-input-border,transparent)!important;border-radius:6px!important;
  background:#F5F5F7!important;box-shadow:none!important;overflow:hidden;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:focus-within {
  background:#FFF!important;border-color:#007AFF!important;
  box-shadow:0 0 0 2px rgba(0,122,255,.1)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input.form-control,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input.ct-text-input {
  display:block!important;flex:1 1 0%!important;order:0!important;
  width:0!important;min-width:0!important;max-width:none!important;
  height:32px!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  outline:0!important;box-shadow:none!important;background:transparent!important;
  color:#1D1D1F!important;font:400 13px/20px var(--ui-font)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input:focus,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input:focus-visible {
  background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > :is(.ct-unit,.ct-unit-suffix) {
  position:static!important;display:inline-block!important;flex:0 0 auto!important;
  order:1!important;align-self:center!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  height:auto!important;min-height:0!important;line-height:20px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  color:#606068!important;font-size:12px!important;font-weight:400!important;
  text-align:right!important;white-space:nowrap!important;pointer-events:none;
}
/* For numbers with explicit unit labels, remove platform spinners occupying suffix space.
   type=number, min/max/step and keyboard increments remain unchanged. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input[type="number"],
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-unit-group > input[type="number"] {
  appearance:textfield!important;-moz-appearance:textfield!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input[type="number"]::-webkit-inner-spin-button,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input[type="number"]::-webkit-outer-spin-button,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-unit-group > input[type="number"]::-webkit-inner-spin-button,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-unit-group > input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance:none!important;margin:0!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:has(> input:disabled),
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.is-disabled {background:#E5E5EA!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:has(> input[aria-invalid="true"]),
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.is-invalid {border-color:#B42318!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input:has(> input[aria-invalid="true"]):focus-within,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.is-invalid:focus-within {
 box-shadow:0 0 0 2px rgba(180,35,24,.12)!important;
}
/* B. Explicit opt-in adaptation for existing Bootstrap3 input-group markup.
   Add ct-ui-unit-group to the existing .input-group, don't nest a second shell. */
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group {
  display:flex!important;align-items:center!important;gap:8px!important;
  box-sizing:border-box;position:relative;width:100%!important;min-width:0!important;
  height:34px!important;padding:0 10px!important;
  border:1px solid var(--ct-input-border,transparent)!important;border-radius:6px!important;
  background:#F5F5F7!important;box-shadow:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group:focus-within {
  border-color:#007AFF!important;background:#FFF!important;
  box-shadow:0 0 0 2px rgba(0,122,255,.1)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group > input.form-control,
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group > input.ct-text-input {
  display:block!important;flex:1 1 0%!important;float:none!important;
  width:0!important;min-width:0!important;max-width:none!important;
  height:32px!important;min-height:0!important;max-height:none!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  outline:0!important;box-shadow:none!important;background:transparent!important;
  color:#1D1D1F!important;font:400 13px/20px var(--ui-font)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group > input.form-control:focus,
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group > input.ct-text-input:focus {
  background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group > .input-group-addon,
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group > .ct-unit {
  position:static!important;display:inline-block!important;flex:0 0 auto!important;
  width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;color:#606068!important;box-shadow:none!important;
  font:400 12px/20px var(--ui-font)!important;white-space:nowrap!important;pointer-events:none;
}
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group:has(> input[aria-invalid="true"]) {border-color:#B42318!important;}
.ct-app.ct-compact-ui.ct-ui-standard .input-group.ct-ui-unit-group:has(> input:disabled) {background:#E5E5EA!important;}

/* C. Eonasdan Bootstrap 3 datetimepicker: preserve plugin-owned calendar geometry.
   Scope to actual business root, explicit portal, OR explicitly-tagged widget.
   Do not style generic .datepicker/.dropdown-menu/.table globally.
   The vendor bootstrap-datetimepicker.css MUST be loaded (this is only an adapter). */
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs),
.ct-ui-date-portal .bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs),
.bootstrap-datetimepicker-widget.dropdown-menu.ct-ui-date-widget:not(.timepicker-sbs) {
  box-sizing:border-box!important;
  width:19em!important;min-width:19em!important;
  max-width:calc(100vw - 24px)!important;
  height:auto!important;min-height:0!important;
  padding:4px!important;overflow:visible!important;
  flex:none!important;grid-column:auto!important;
  border:1px solid #D2D2D7;border-radius:8px;background:#FFF;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  font-size:13px;line-height:1.4;
}
/* Side-by-side timepicker has its own documented width. */
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs,
.ct-ui-date-portal .bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs,
.bootstrap-datetimepicker-widget.dropdown-menu.ct-ui-date-widget.timepicker-sbs {
  width:38em!important;min-width:0!important;max-width:calc(100vw - 24px)!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget .datepicker-days table,
.ct-ui-date-portal .bootstrap-datetimepicker-widget .datepicker-days table,
.bootstrap-datetimepicker-widget.ct-ui-date-widget .datepicker-days table {
  display:table!important;width:100%!important;min-width:0!important;max-width:100%!important;
  table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;
  margin:0!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget .datepicker-days table thead,
.ct-ui-date-portal .bootstrap-datetimepicker-widget .datepicker-days table thead,
.bootstrap-datetimepicker-widget.ct-ui-date-widget .datepicker-days table thead {display:table-header-group!important;}
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget .datepicker-days table tbody,
.ct-ui-date-portal .bootstrap-datetimepicker-widget .datepicker-days table tbody,
.bootstrap-datetimepicker-widget.ct-ui-date-widget .datepicker-days table tbody {display:table-row-group!important;}
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget .datepicker-days table tr,
.ct-ui-date-portal .bootstrap-datetimepicker-widget .datepicker-days table tr,
.bootstrap-datetimepicker-widget.ct-ui-date-widget .datepicker-days table tr {
  display:table-row!important;position:static!important;width:auto!important;min-width:0!important;
}
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget .datepicker-days table td,
.ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget .datepicker-days table th,
.ct-ui-date-portal .bootstrap-datetimepicker-widget .datepicker-days table td,
.ct-ui-date-portal .bootstrap-datetimepicker-widget .datepicker-days table th,
.bootstrap-datetimepicker-widget.ct-ui-date-widget .datepicker-days table td,
.bootstrap-datetimepicker-widget.ct-ui-date-widget .datepicker-days table th {
  display:table-cell!important;width:auto!important;min-width:0!important;max-width:none!important;
  float:none!important;position:static!important;padding:3px 2px!important;
  height:30px!important;line-height:24px!important;
  border:0!important;box-sizing:border-box!important;text-align:center!important;
  white-space:nowrap!important;vertical-align:middle!important;
}
/* Popup top positioning and z-index belong to the plugin/active dialog manager.
   No global z-index:999999, forced left/top, or appendTo(body). */
.ct-app.ct-compact-ui.ct-ui-standard .ct-date-field,
.ct-ui-date-portal {position:relative;min-width:0;}
@media(max-width:480px) {
  .ct-app.ct-compact-ui.ct-ui-standard .bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs),
  .ct-ui-date-portal .bootstrap-datetimepicker-widget.dropdown-menu:not(.timepicker-sbs),
  .bootstrap-datetimepicker-widget.dropdown-menu.ct-ui-date-widget:not(.timepicker-sbs) {
    min-width:0!important;width:min(19em,calc(100vw - 24px))!important;
  }
}
/* Chromium spinner fallback for typed unit controls; business type/step unchanged. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input[type="number"]::-webkit-inner-spin-button,
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input > input[type="number"]::-webkit-outer-spin-button,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-unit-group > input[type="number"]::-webkit-inner-spin-button,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-unit-group > input[type="number"]::-webkit-outer-spin-button {
 display:none!important;width:0!important;opacity:0!important;
}


/* ================================================================
 * FastAdmin compact UI V1.5.1-R5 | section / choice / auto-textarea
 * Scoped contracts: no global .panel-heading/.btn/.form-control reset.
 * Do not hide real table dividers, form validation, or modal borders.
 * ================================================================ */
.ct-app.ct-compact-ui.ct-ui-standard {
  --ct-ui-r5: 1;
}
/* Section headings MUST NOT draw a redundant rule under their titles.
   Existing CSS uses .ct-section-heading border-bottom; remove it here.
   Keep section CARD borders and data table lines intact. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-section-heading {
  /* Explicit heading components must not inherit Bootstrap h2/h3 top gaps. */
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 8px !important;
  background-image: none !important;
}
/* Some legacy title templates create the second rule with a pseudo. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading::before,
.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading::after,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-section-heading::before,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-section-heading::after {
  content: none !important;
  display: none !important;
}
/* Explicit opt-in for nonstandard legacy section templates.
   Add .ct-ui-section-card to the actual card and .ct-ui-section-heading
   to the REAL heading; remove duplicated HR created immediately after it. */
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-section-heading,.ct-ui-section-heading) + :is(hr, .ct-title-divider, .ct-section-divider, .ct-v14-divider),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-section-card > :is(.ct-ui-title-underline, .ct-title-divider, .ct-section-divider) {
  display: none !important;
}
/* CHOICE GROUP: screenshot 4 is the standard. ONLY mark the selection's
   existing group/wrapper .ct-ui-choice-plain (not the whole form field).
   The group does not paint a second gray bar or border. */
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-choice-group, .ct-choice-fieldset, .ct-radio-group, .ct-checkbox-group, .radio-toolbar, .checkbox-toolbar, .btn-group[data-toggle="buttons"]).ct-ui-choice-plain,
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > :is(.ct-choice-group, .ct-choice-fieldset, .ct-radio-group, .ct-checkbox-group, .radio-toolbar, .checkbox-toolbar, .btn-group[data-toggle="buttons"]) {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  align-content: flex-start !important;
  gap: 4px !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}
/* When a legacy fieldset is the wrapper, it can keep its label outside.
   Only the group itself loses padding/border; the section card remains. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain:is(.ct-choice-fieldset, .ct-radio-toolbar-wrap, .ct-checkbox-toolbar-wrap),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > .ct-form-content {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
/* Bootstrap 3 .btn-group uses clearfix pseudo-elements that interfere
   with flex gap/wrapping when upgraded to .ct-ui-choice-plain. */
.ct-app.ct-compact-ui.ct-ui-standard .btn-group[data-toggle="buttons"].ct-ui-choice-plain::before,
.ct-app.ct-compact-ui.ct-ui-standard .btn-group[data-toggle="buttons"].ct-ui-choice-plain::after {
  display: none !important;
  content: none !important;
}
/* Legacy BUTTON choices, not native ct-choice labels: single painted chip.
   Native labels .ct-choice > .ct-choice-text stay CSS-driven by checked. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > :is(label.btn, label.ct-choice-item, label.ct-radio-tag, label.ct-checkbox-tag, label[data-ct-choice-item]),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > .btn-group[data-toggle="buttons"] > label.btn {
  position: relative !important;
  float: none !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid #D2D2D7 !important;
  border-radius: 6px !important;
  background: #FFFFFF !important;
  color: #1D1D1F !important;
  box-shadow: none !important;
  font: 400 13px/20px var(--ui-font) !important;
  white-space: normal !important;
  text-align: center !important;
  cursor: pointer;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > :is(label.btn, label.ct-choice-item, label.ct-radio-tag, label.ct-checkbox-tag, label[data-ct-choice-item]):is(.active,.is-checked,.is-selected),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > :is(label.btn, label.ct-choice-item, label.ct-radio-tag, label.ct-checkbox-tag, label[data-ct-choice-item]):has(> input:checked),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > .btn-group[data-toggle="buttons"] > label.btn:is(.active,.is-checked,.is-selected),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > .btn-group[data-toggle="buttons"] > label.btn:has(> input:checked) {
  background: #007AFF !important;
  border-color: #007AFF !important;
  color: #FFFFFF !important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > :is(label.btn, label.ct-choice-item, label.ct-radio-tag, label.ct-checkbox-tag, label[data-ct-choice-item]):has(> input:focus-visible),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > .btn-group[data-toggle="buttons"] > label.btn:has(> input:focus-visible) {
  outline: 2px solid #007AFF !important;
  outline-offset: 2px !important;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > :is(label.btn, label.ct-choice-item, label.ct-radio-tag, label.ct-checkbox-tag, label[data-ct-choice-item]):has(> input:disabled),
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-choice-plain > .btn-group[data-toggle="buttons"] > label.btn:has(> input:disabled) {
  opacity: .55;
  cursor: not-allowed;
}
/* TEXTAREA: keep the initial min height, but runtime sets inline height
   from scrollHeight for each independent business surface. Native textareas
   with data-ct-autogrow="off" or plugin ownership are excluded at runtime. */
.ct-app.ct-compact-ui.ct-ui-standard textarea.ct-textarea:not([data-ct-autogrow="off"]),
.ct-app.ct-compact-ui.ct-ui-standard textarea.form-control:not([data-ct-autogrow="off"]),
.ct-app.ct-compact-ui.ct-ui-standard textarea.ct-auto-grow:not([data-ct-autogrow="off"]) {
  box-sizing: border-box !important;
  min-height: 88px !important;
  max-height: none;
  overflow-y: hidden;
  resize: vertical;
  overflow-wrap: anywhere;
}

/* R6: list headers stay on one line; exclude calendar/plugin internals by table class. */
.ct-app.ct-compact-ui.ct-ui-standard table.table>thead>tr>th,
.ct-app.ct-compact-ui.ct-ui-standard table.ct-data-table>thead>tr>th,
.ct-app.ct-compact-ui.ct-ui-standard table[data-ct-column-resize]>thead>tr>th,
.ct-app.ct-compact-ui.ct-ui-standard table.table>thead>tr>th .th-inner{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.ct-app.ct-compact-ui.ct-ui-standard table[data-ct-column-resize]>thead>tr>th{position:relative;padding-right:18px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resizer{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;user-select:none;z-index:3;border-right:2px solid transparent}
.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resizer:hover,
.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resizer:focus-visible{border-right-color:#1677ff;background:#dbeafe;outline:none}

/* Form actions: explicitly mark the business form footer; never capture list toolbars.
   CtUI.mount measures horizontal bounds and reserves content space without moving buttons. */
.ct-app.ct-compact-ui.ct-ui-standard [data-ct-form-footer] {
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;
  margin:0;padding:8px 12px;padding-bottom:calc(8px + env(safe-area-inset-bottom, 0px));
  background:#fff;border-top:1px solid #d2d2d7;box-sizing:border-box;
}
.ct-app.ct-compact-ui.ct-ui-standard [data-ct-form-footer].ct-ui-form-footer-fixed {
  position:fixed;left:var(--ct-footer-left,0px);width:var(--ct-footer-width,100%);
  bottom:0;z-index:100;max-height:40vh;overflow:auto;
}
.ct-app.ct-compact-ui.ct-ui-standard .ct-ui-form-footer-spacer {flex:none;pointer-events:none;}
.ct-app.ct-compact-ui.ct-ui-standard [data-ct-form-footer] > .btn {margin:0;float:none;}

/* Explicit required-field contract; no implicit validation of unrelated controls. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-required-label::before{content:"*";color:#b42318;margin-right:4px;font-weight:600}
.ct-app.ct-compact-ui.ct-ui-standard .ct-field-error{display:block;color:#b42318!important;font-size:12px;line-height:18px;margin-top:4px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-field-error[hidden]{display:none}
.ct-app.ct-compact-ui.ct-ui-standard .note-editor.ct-required-invalid{border:1px solid #b42318!important;box-shadow:none!important}

/* R5 responsive adapters: explicit opt-in, no generic table/layer overrides. */
.ct-responsive-layer.layui-layer{display:flex;flex-direction:column;box-sizing:border-box;min-width:0}
.ct-responsive-layer.layui-layer>.layui-layer-title,.ct-responsive-layer.layui-layer>.layui-layer-btn{flex-shrink:0}
.ct-responsive-layer.layui-layer>.layui-layer-btn{text-align:center}
.ct-responsive-layer.layui-layer>.layui-layer-content{flex:1 1 auto;min-height:0;height:auto!important;overflow:auto;box-sizing:border-box}
.ct-app.ct-compact-ui.ct-ui-standard .ct-table-scroll{min-width:0;overflow:auto}
.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table{min-width:0;table-layout:fixed}
.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table th,.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table td{overflow:hidden;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table td:first-child,.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table th:first-child{position:sticky;left:0;z-index:2;background:#fff}
.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table td:last-child,.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table th:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-1px 0 #e5e7eb}
.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table th{position:sticky;top:0;background:#f5f6f8;z-index:1;padding-right:14px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table th:first-child,.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table th:last-child{z-index:3;background:#f5f6f8}
.ct-app.ct-compact-ui.ct-ui-standard .ct-cell-preview{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resize{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;z-index:2}
.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resize:hover,.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resize:focus-visible{background:#eaf4ff;border-right:2px solid #007aff;outline:none}
.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resizing,.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resizing *{cursor:col-resize!important;user-select:none}
.ct-overflow-preview.ct-app.ct-compact-ui.ct-ui-standard{box-sizing:border-box;height:auto;min-height:0;min-width:0;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);position:fixed;z-index:19891013;width:min(480px,calc(100vw - 16px));padding:6px 8px;background:#fff;border:1px solid #d2d2d7;border-radius:6px;box-shadow:0 4px 16px rgba(0,0,0,.14);white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;font-size:11px!important;line-height:1.35!important}
.ct-overflow-preview[hidden]{display:none!important}

.ct-app.ct-compact-ui.ct-ui-standard .ct-help-trigger{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;min-width:16px;min-height:16px;margin:0;padding:0;border:1px solid #d2d2d7;border-radius:50%;background:#fff;color:#686870;font-size:11px;line-height:1;cursor:help}
.ct-app.ct-compact-ui.ct-ui-standard .ct-help-trigger:focus-visible{outline:2px solid #007aff;outline-offset:2px}

/* R5 explicit list surfaces: left aligned headers and cells. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content table th,.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content table td,.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table th,.ct-app.ct-compact-ui.ct-ui-standard .ct-responsive-table td{text-align:left!important}

/* R5 explicit list checkbox alignment; no effect on form choices. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content th.bs-checkbox,
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content td.bs-checkbox{padding:8px!important;text-align:left!important;vertical-align:middle;box-sizing:border-box}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content th.bs-checkbox .th-inner{padding:0!important;margin:0;line-height:1;text-align:left!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content .bs-checkbox input[type="checkbox"]{display:block;position:static;float:none;width:13px;height:13px;margin:0!important}

/* Explicit compact pickers: option-sized trigger and one-row footer. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select.ct-search-select--compact{flex:0 1 auto;max-width:100%}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-select--compact .ct-search-select__trigger{height:32px;min-height:32px;padding:4px 9px;font-size:12px;line-height:20px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact{box-sizing:border-box;padding:6px!important;font-size:12px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact[hidden]{display:none!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-filter-input{height:30px!important;min-height:30px!important;padding:4px 8px!important;font-size:12px!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__option{min-height:28px;padding:4px 7px;font-size:12px;line-height:20px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__footer{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;border-top:1px solid #e5e7eb;margin-top:6px;padding-top:6px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__pagination{display:flex;flex:1 1 auto;align-items:center;flex-wrap:nowrap;gap:4px;border:0;margin:0;padding:0;min-width:0;font-size:11px;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-filter-actions{display:flex;flex:0 0 auto;margin:0;padding:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__pagination[hidden],.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-filter-actions[hidden]{display:none!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__page-btn{min-height:26px;padding:2px 5px;font-size:11px;line-height:20px;white-space:nowrap}

/* Compact footer owns spacing; legacy pagination must not add a second line. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__footer>.ct-search-select__pagination,
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__footer>.ct-filter-actions{
    flex-wrap:nowrap;align-items:center;margin:0;padding:0;border:0;min-height:26px;
}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__footer .ct-search-select__page-btn{height:26px;min-height:26px;flex-shrink:0;margin:0;box-sizing:border-box}

/* Shared compact picker sizing; JS limits this to actual available space. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact{
    --ct-picker-list-max-height:280px;height:auto;min-height:0;
}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal.ct-search-select--compact .ct-search-select__list{
    max-height:var(--ct-picker-list-max-height);overflow-y:auto;overscroll-behavior:contain;
}

/* Opt-in inline filters: keyword search must not consume all free space. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-inline{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-inline>.ct-search-keyword{flex:0 1 var(--ct-search-keyword-width,340px);width:var(--ct-search-keyword-width,340px);min-width:160px;max-width:100%}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-inline>.ct-search-extra.open{display:contents}

/* Always-visible filters share the inline search layout without a toggle. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-inline>.ct-search-extra.ct-search-extra--visible{display:contents}

/* Shared list headers align their text with body cell inset. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content th:not(.bs-checkbox){padding-left:8px!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-list-content th:not(.bs-checkbox)>.th-inner{padding-left:0!important;margin-left:0!important;text-align:left!important;justify-content:flex-start}

/* Keep resize targets inside the header so adjacent cells cannot cover them. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-column-resize{right:0;width:8px;touch-action:none}

/* Plain keyword fields have no leading decorative icon or reserved space. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-keyword--plain>i{display:none}
.ct-app.ct-compact-ui.ct-ui-standard .ct-search-keyword--plain>.ct-filter-input{padding-left:10px!important;background-image:none!important}

/* R5 opt-in record form: retain legacy DOM and plugin/event ownership. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form{--crm-blue:#007AFF;--crm-blue-soft:#eef6ff;background:#f5f7fa;padding:0 0 76px;min-height:100vh;font-size:13px}
.ct-record-form .crm-form-workspace{display:block;max-width:1440px;margin:auto;padding:12px}
.ct-record-form .crm-form-content{width:100%;min-width:0;margin:0}
.ct-record-form .crm-section{padding:14px;margin:0 0 12px;border:1px solid #dce2ea;border-radius:8px;background:#fff;box-shadow:none;overflow:visible;scroll-margin-top:12px}
.ct-record-form .crm-section-title{padding:0;margin:0 0 14px;border:0;box-shadow:none;gap:8px;flex-wrap:wrap}
.ct-record-form .crm-section-title h4{font-size:15px;font-weight:600;line-height:22px;margin:0}
.ct-record-form .crm-section-title p{font-size:12px;line-height:18px;color:#788596;margin:3px 0 0}
.ct-record-form .crm-section-title>div>span{width:26px;height:26px;line-height:26px;border-radius:6px;background:#eef6ff;color:#007AFF;font-size:12px}
.ct-record-form .crm-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:start}
.ct-record-form .crm-field{min-width:0;margin:0}
.ct-record-form .crm-field.crm-wide{grid-column:1/-1}
.ct-record-form .crm-field>label{display:block;font-size:13px;line-height:20px;margin:0 0 6px;font-weight:500}
.ct-record-form .crm-field>p{font-size:12px;line-height:18px;margin:5px 0 0;color:#788596}
.ct-record-form .crm-field .form-control:not(textarea):not(.bootstrap-select){height:34px;min-height:34px;font-size:13px;border-radius:6px;padding:6px 10px}
.ct-record-form .crm-field textarea.form-control{min-height:88px;font-size:13px;line-height:20px;border-radius:6px;padding:8px 10px}
.ct-record-form .crm-field .bootstrap-select{width:100%!important;min-width:0}
.ct-record-form .bootstrap-select>.dropdown-toggle{height:34px;min-height:34px;border-radius:6px;font-size:13px;padding:6px 28px 6px 10px}
.ct-record-form .bootstrap-select .dropdown-menu{font-size:13px;max-width:100%;border-radius:6px}
.ct-record-form .bootstrap-select .dropdown-menu li a{white-space:normal;overflow-wrap:anywhere;padding:6px 10px}
.ct-record-form .crm-choice-group.ct-ui-choice-plain{gap:6px;padding:0;background:transparent;border:0;min-height:0;height:auto;box-shadow:none;display:flex;flex-wrap:wrap;max-width:100%}
.ct-record-form .crm-choice-group label.ct-choice,.ct-record-form label.crm-role-choice.ct-choice{margin:0;padding:0;border:0;background:transparent;min-height:0;width:auto;display:inline-flex;position:relative}
.ct-record-form label.ct-choice>.ct-choice-text{font-size:12px;line-height:18px;padding:5px 10px;border-radius:6px;min-height:30px;white-space:normal;display:inline-flex;align-items:center;gap:5px;background:#fff;border:1px solid #d5dce5;color:#425269}
.ct-record-form label.ct-choice>input:checked~.ct-choice-text{background:#007AFF;border-color:#007AFF;color:#fff}
.ct-record-form label.ct-choice>input:focus-visible~.ct-choice-text{outline:2px solid #007AFF;outline-offset:2px}
.ct-record-form label.ct-choice>input:disabled~.ct-choice-text{opacity:.6;cursor:not-allowed}
.ct-record-form .crm-repeater-card{border:1px solid #dce2ea;border-radius:6px;box-shadow:none;margin-bottom:10px;overflow:visible}
.ct-record-form .crm-repeater-head{padding:10px 12px;background:#f7f9fc;border-radius:6px 6px 0 0;gap:8px;flex-wrap:wrap}
.ct-record-form .crm-repeater-body{padding:12px}
.ct-record-form .crm-role-grid{display:flex;flex-wrap:wrap;gap:8px}
.ct-record-form .crm-role-grid>div{background:transparent;border:0;padding:0;min-width:100px}
.ct-record-form .crm-primary-role{font-size:12px;line-height:20px;margin:4px 0 0}
.ct-record-form .crm-section-title-actions,.ct-record-form .crm-card-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ct-record-form .btn{font-size:12px;border-radius:6px;min-height:30px;padding:5px 10px}
.ct-record-form .btn-primary{background:#007AFF;border-color:#007AFF;color:#fff}
.ct-record-form .btn-primary:hover,.ct-record-form .btn-primary:focus{background:#0066D6;border-color:#0066D6}
.ct-record-form .crm-form-foot{position:fixed;left:0;right:0;bottom:0;min-height:60px;height:auto;padding:10px 16px;display:flex;justify-content:center;align-items:center;gap:12px;background:#fff;border-top:1px solid #dce2ea;box-shadow:0 -2px 8px rgba(30,50,80,.04);z-index:100}
.ct-record-form .crm-form-foot>div:last-child{display:flex;gap:8px;justify-content:center;flex-shrink:0}
.ct-record-form .crm-form-foot>div:first-child{font-size:12px;color:#788596}
.ct-record-form .crm-form-foot .btn{margin:0;min-width:88px;height:34px}
@media(max-width:1100px){.ct-record-form .crm-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.ct-record-form .crm-form-workspace{padding:8px}.ct-record-form .crm-section{padding:12px}.ct-record-form .crm-field-grid{grid-template-columns:minmax(0,1fr)}.ct-record-form .crm-form-foot{flex-direction:column;gap:4px;padding:8px}.ct-record-form .crm-form-foot>div:first-child{font-size:11px}.ct-record-form .crm-company-name-heading{flex-wrap:wrap;gap:4px}.ct-record-form .crm-section-title>div{min-width:0}}

.ct-record-form .crm-choice-group .ct-choice-text::before,.ct-record-form .crm-role-choice .ct-choice-text::before{content:none!important;display:none!important}
.ct-record-form .crm-customer-type-option{flex:0 0 auto;max-width:100%}
.ct-record-form .crm-customer-type-option .ct-choice-text{white-space:nowrap;width:auto;box-shadow:none}
.ct-record-form .crm-choice-group input:checked+.ct-choice-text{box-shadow:none}
.ct-record-form .crm-form-foot>div:first-child{flex:0 1 auto}

.row.ct-record-form-host{margin-left:0;margin-right:0}
.row.ct-record-form-host>.col-xs-12{padding-left:0;padding-right:0}
.ct-record-form .crm-form-foot>div:first-child{position:absolute;left:16px;max-width:calc(50% - 150px)}
@media(max-width:900px){.ct-record-form .crm-form-foot>div:first-child{position:static;max-width:100%}.ct-record-form .crm-form-foot{flex-direction:column;gap:4px}}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form{display:block!important}
.ct-record-form .crm-form-workspace{width:100%;min-width:0;box-sizing:border-box}
.ct-record-form .crm-customer-type-help{max-width:min(340px,calc(100vw - 64px))}
@media(max-width:600px){.ct-record-form .crm-customer-type-help{left:0;transform:none}.ct-record-form .crm-customer-type-option:hover .crm-customer-type-help{transform:none}}
.ct-record-form .crm-customer-type-help{display:none}
.ct-record-form .crm-customer-type-option:hover .crm-customer-type-help,.ct-record-form .crm-customer-type-option:focus-within .crm-customer-type-help{display:block}
@media(max-width:600px){.ct-record-form .crm-customer-type-help{position:fixed;left:16px;top:16px;bottom:auto;width:calc(100vw - 32px);max-width:calc(100vw - 32px)}}

/* Customer record custom dialog; explicitly mounted, independent of Layer. */
/* Own shell only; the iframe retains the existing form and its nested product editors. */
.ct-record-window{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;padding:var(--ct-sp-3);background:rgba(15,23,42,.34);font:var(--ct-fs-body)/var(--ct-lh) var(--ct-font);color:var(--ct-text)}
.ct-record-window *{box-sizing:border-box}
.ct-record-window [hidden]{display:none!important}
.ct-record-window-panel{position:relative;display:flex;flex-direction:column;width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;background:var(--ct-card);border:1px solid var(--ct-border);border-radius:var(--ct-radius-lg);box-shadow:var(--ct-shadow)}
.ct-record-window-head{display:flex;align-items:center;justify-content:space-between;gap:var(--ct-sp-3);flex:0 0 auto;min-height:44px;padding:var(--ct-sp-2) var(--ct-sp-4);border-bottom:1px solid var(--ct-border);cursor:move;touch-action:none;user-select:none}
.ct-record-window-head:focus-visible{outline:2px solid var(--ct-primary);outline-offset:-2px}
.ct-record-window-head h2{margin:0;min-width:0;font-size:var(--ct-fs-h3);font-weight:var(--ct-fw-semibold);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.ct-record-window-controls{display:flex;flex:0 0 auto;gap:var(--ct-sp-2)}
.ct-record-window button{height:var(--ct-control-h-sm);padding:0 var(--ct-sp-3);border:1px solid var(--ct-border);border-radius:var(--ct-radius-sm);font:inherit;white-space:nowrap;cursor:pointer;background:var(--ct-card);color:var(--ct-text-2)}
.ct-record-window button:hover{border-color:var(--ct-primary);color:var(--ct-primary)}
.ct-record-window button:focus-visible{outline:2px solid var(--ct-primary);outline-offset:2px}
.ct-record-window-body{position:relative;display:flex;flex:1 1 auto;min-height:0;min-width:0}
.ct-record-window-frame{display:block;width:100%;height:100%;border:0;flex:1 1 auto;min-height:0;min-width:0}
.ct-record-window-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:var(--ct-sp-3);background:var(--ct-bg);color:var(--ct-muted)}
.ct-record-window-notice{flex:0 0 auto;padding:var(--ct-sp-2) var(--ct-sp-4);color:var(--ct-warning);background:var(--ct-warning-soft)}
.ct-record-window-confirm{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:calc(100% - 32px);max-width:420px;padding:var(--ct-sp-5);border:1px solid var(--ct-border);border-radius:var(--ct-radius);background:var(--ct-card);box-shadow:var(--ct-shadow);text-align:right}
.ct-record-window-confirm p{margin:0 0 var(--ct-sp-4);text-align:left}
.ct-record-window-confirm button+button{margin-left:var(--ct-sp-2)}
.ct-record-window .ct-record-window-discard{background:var(--ct-danger);border-color:var(--ct-danger);color:var(--ct-card)}
.ct-record-window-focus{position:absolute;width:1px;height:1px;overflow:hidden}
.ct-record-window.has-custom-bounds .ct-record-window-panel{position:absolute}
.ct-record-window .ct-record-window-resize{position:absolute;right:1px;bottom:1px;z-index:var(--ct-z-base);width:22px;height:22px;padding:0;border:0;border-radius:0;background:transparent;cursor:nwse-resize;touch-action:none}
.ct-record-window-resize:after{content:"";position:absolute;right:4px;bottom:4px;width:10px;height:10px;border-right:2px solid var(--ct-muted);border-bottom:2px solid var(--ct-muted)}
.ct-record-window.is-moving,.ct-record-window.is-moving *{cursor:move!important;user-select:none}
.ct-record-window.is-resizing,.ct-record-window.is-resizing *{cursor:nwse-resize!important;user-select:none}
.ct-record-window.is-moving iframe,.ct-record-window.is-resizing iframe{pointer-events:none}
.ct-record-window.is-maximized{padding:0}
.ct-record-window.is-maximized .ct-record-window-panel{position:absolute;left:0!important;top:0!important;width:100%!important;height:100%!important;border-radius:0}
.ct-record-window.is-maximized .ct-record-window-head{cursor:default}
.ct-record-window.is-maximized .ct-record-window-resize{display:none}
@media(max-width:1023px){.ct-record-window{padding:var(--ct-sp-1)}.ct-record-window-head{padding:var(--ct-sp-2)}}

/* Custom record dialog: one compact inset, no centered page-width cap. */
.content.ct-record-dialog-content{padding:0!important;margin:0;min-width:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form--dialog{margin:0;width:100%;max-width:none}
.ct-record-form--dialog .crm-form-workspace{max-width:none;width:100%;margin:0;padding:8px;box-sizing:border-box}
.ct-record-form--dialog .crm-form-content{max-width:none;margin:0}

/* Record sections share a quiet blue outline in normal and active states. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form{--ct-record-section-border:#d6e7fa}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-section,
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-record-section,
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-section.is-active,
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-section.is-jump{border-color:var(--ct-record-section-border);box-shadow:none}

/* Expanded company/contact summary rows; collapsed rows retain their base surface. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form{--ct-record-expanded-bg:#D6E7FA}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-company-card:not(.is-collapsed)>.crm-company-summary,
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-contact-card:not(.is-collapsed)>.crm-contact-summary,
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-repeater-card:not(.is-collapsed)>.ct-record-summary{background-color:var(--ct-record-expanded-bg)}

/* Explicit form row contracts override automatic field-grid breakpoints. */
.ct-record-form .crm-field-grid.ct-form-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}
.ct-record-form .crm-field-grid.ct-form-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}
.ct-record-form .crm-field-grid+.crm-field-grid{margin-top:12px}

.ct-record-form .crm-field-grid.ct-form-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}

/* Record form input states: preserve validation priority over focus. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form :is(input.ct-text-input,textarea.ct-textarea):not(:disabled):not([readonly]):hover:not(:focus){border-color:#D2D2D7!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form :is(input.ct-text-input,textarea.ct-textarea):focus-visible{outline:none!important;border-color:#007AFF!important;box-shadow:0 0 0 2px rgba(0,122,255,.1)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-has-error :is(input.ct-text-input,textarea.ct-textarea),
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form :is(input.ct-text-input,textarea.ct-textarea):is(.is-invalid,.n-invalid,[aria-invalid="true"]){border-color:#FF3B30!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-has-error :is(input.ct-text-input,textarea.ct-textarea):focus,
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form :is(input.ct-text-input,textarea.ct-textarea):is(.is-invalid,.n-invalid,[aria-invalid="true"]):focus{box-shadow:0 0 0 2px rgba(255,59,48,.12)!important}

/* Label actions share the ordinary 20px label line, never push the input down. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-company-name-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:6px;height:20px;min-height:20px;margin:0 0 6px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-company-name-heading>label{flex:0 0 auto;white-space:nowrap;font-size:13px;line-height:20px;margin:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-company-lookup-actions{display:flex;align-items:center;flex-wrap:nowrap;flex:0 0 auto;gap:4px;margin:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-company-lookup{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;height:20px;min-height:20px;padding:0 5px;font-size:11px;line-height:18px;border-radius:4px;white-space:nowrap;margin:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .crm-company-lookup:focus-visible{outline:2px solid #007AFF;outline-offset:1px}

/* Unified requirement-form baseline: neutral fill, unobtrusive default outline. */
.ct-app.ct-compact-ui.ct-ui-standard{--ct-input-border:transparent}

/* Five-field company rows keep explicit business order; choices wrap inside cells. */
.ct-record-form .crm-field-grid.ct-form-grid-five{grid-template-columns:repeat(5,minmax(0,1fr));align-items:start}
.ct-record-form .ct-company-form-rows>.crm-field-grid{width:100%;min-width:0}

/* Contact row fields share a label baseline and top-aligned controls. */
.ct-record-form .ct-contact-form-rows>.crm-field-grid{align-items:start}
.ct-record-form .ct-contact-form-rows>.crm-field-grid>.crm-field>label{display:block;min-height:20px;line-height:20px;margin:0 0 6px}

/* R5 shipping surface: shared form controls and compact, readable row actions. */
.ct-record-form .ct-shipping .ct-shipping-paste{padding:12px;background:#f5f8fc;border:1px solid #D6E7FA;border-radius:6px;margin-bottom:12px}
.ct-record-form .ct-shipping .ct-shipping-paste>label{display:block;font-size:13px;line-height:20px;margin:0 0 6px}
.ct-record-form .ct-shipping .ct-shipping-actions{gap:6px;margin-top:8px}
.ct-record-form .ct-shipping .ct-shipping-actions p{font-size:12px;line-height:18px}
.ct-record-form .ct-shipping #crm-shipping-status:empty{display:none}
.ct-record-form .ct-shipping .ct-shipping-table{--shipping-number-width:40px;--shipping-person-width:180px;--shipping-actions-width:210px;overflow-x:auto;border:1px solid #D6E7FA;border-radius:6px}
.ct-record-form .ct-shipping .ct-shipping-table-head,.ct-record-form .ct-shipping .ct-shipping-summary{gap:12px;padding:10px 12px;min-width:620px;text-align:left}
.ct-record-form .ct-shipping .ct-shipping-table-head{background:#f1f5fa;font-size:12px;min-height:38px}
.ct-record-form .ct-shipping .ct-shipping-col-no{text-align:left}
.ct-record-form .ct-shipping .ct-shipping-col-actions{flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;gap:6px}
.ct-record-form .ct-shipping .ct-shipping-col-actions .btn{flex:0 0 auto;width:auto!important;min-width:0;height:30px;min-height:30px;padding:4px 8px!important;line-height:20px;font-size:12px;white-space:nowrap!important;word-break:normal;overflow-wrap:normal;color:#007AFF}
.ct-record-form .ct-shipping .ct-shipping-col-actions .crm-remove-shipping{color:#dc3545}
.ct-record-form .ct-shipping .is-editing>.ct-shipping-summary{background:#D6E7FA}
.ct-record-form .ct-shipping .ct-shipping-default-badge{color:#007AFF;background:#eef6ff;border-color:#D6E7FA}
.ct-record-form .ct-shipping .ct-shipping-editor{padding:12px;background:#f5f7fa;border-top:1px solid #D6E7FA}
.ct-record-form .ct-shipping .ct-shipping-card-head{margin-bottom:12px;gap:8px;font-size:13px}
.ct-record-form .ct-shipping .ct-shipping-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
.ct-record-form .ct-shipping .crm-field{display:block;min-width:0}
.ct-record-form .ct-shipping .crm-field>label{display:block;line-height:20px;padding:0;margin:0 0 6px;font-size:13px}
.ct-record-form .ct-shipping .ct-shipping-area-grid{gap:12px}
.ct-record-form .ct-shipping .ct-shipping-editor-footer{justify-content:center;gap:6px;margin-top:12px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-shipping select.form-control{height:34px;min-height:34px;border:1px solid #CBD5E1!important;border-radius:6px;background:#F5F5F7;color:#1D1D1F;font-size:13px;padding:6px 10px;box-shadow:none;outline:none}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-shipping select.form-control:focus{border-color:#007AFF!important;background:#fff;outline:none;box-shadow:0 0 0 2px rgba(0,122,255,.1)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-shipping .crm-has-error select.form-control{border-color:#FF3B30!important;box-shadow:0 0 0 2px rgba(255,59,48,.12)}
.ct-record-form .ct-shipping .ct-shipping-default-choice{min-height:30px;margin:0}
@media(max-width:600px){.ct-record-form .ct-shipping .ct-shipping-grid{grid-template-columns:minmax(0,1fr)}.ct-record-form .ct-shipping .ct-shipping-area-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.ct-record-form .ct-shipping .ct-shipping-actions p{flex-basis:100%}}

/* Latest record-form surface policy: use the host page background, not painted panels. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form.ct-form-plain-surfaces{background:transparent!important;--ct-record-expanded-bg:transparent}
.ct-record-form.ct-form-plain-surfaces :is(.crm-form-workspace,.crm-form-content,.crm-section,.crm-repeater-card,.crm-repeater-head,.crm-repeater-body,.crm-company-table,.crm-contact-table,.crm-company-table-head,.crm-contact-table-head,.crm-company-summary,.crm-contact-summary,.crm-overseas-social-grid,.ct-shipping-paste,.ct-shipping-table,.ct-shipping-table-head,.ct-shipping-card,.ct-shipping-summary,.ct-shipping-editor-row,.ct-shipping-editor){background:transparent!important}

/* Read-only output uses the same geometry and neutral surface as text controls. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-readonly-display{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:34px;padding:6px 10px;margin:0;border:1px solid transparent!important;border-radius:6px!important;background:#F5F5F7!important;color:#606068!important;font-family:var(--ui-font);font-size:13px!important;font-weight:400!important;line-height:20px;box-shadow:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Neutral draft notice follows the form surface; no legacy green theme tint. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-form-notice{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 8px 12px;padding:10px 12px;border:1px solid #D6E7FA;border-radius:6px;background:transparent;color:#606068;font-size:12px;line-height:20px;box-shadow:none}
.ct-record-form .ct-form-notice[hidden]{display:none!important}
.ct-record-form .ct-form-notice>span{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
.ct-record-form .ct-form-notice .btn{height:30px;min-height:30px;margin:0;padding:4px 10px;white-space:nowrap}

/* Unified inline validation and duplicate feedback text, including non-blocking warnings. */
.ct-app.ct-compact-ui.ct-ui-standard{--ct-feedback-error-text:#B42318}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-error-text,.crm-error-message,.crm-unique-message,.crm-section-save-state.is-error,#crm-shipping-status.is-error,.n-error .n-msg,.text-danger){color:var(--ct-feedback-error-text)!important}
.ct-app.ct-compact-ui.ct-ui-standard .crm-unique-message :is(i,span){color:inherit!important}

/* Section save actions belong to the heading; live status remains in its original section. */
.ct-record-form .crm-section-title>.crm-section-title-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;flex-shrink:0}
.ct-record-form .crm-section-title .crm-save-section{height:30px;min-height:30px;white-space:nowrap;margin:0}
.ct-record-form .crm-section-save-bar{border-top:0;padding-top:0;margin-top:8px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-form-table-heading{background:#EFF5FC!important;color:#475569;border-bottom:1px solid #D6E7FA}
.ct-app.ct-compact-ui.ct-ui-standard .ct-required-mark{color:#B42318!important;font-style:normal;font-weight:600}
.ct-app.ct-compact-ui.ct-ui-standard .ct-blur-error{display:block;margin-top:4px;color:#B42318;font-size:12px;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard .ct-blur-error[hidden]{display:none!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-blur-invalid :is(input.ct-text-input,textarea.ct-textarea,select.form-control){border-color:#B42318!important}
.ct-record-form .crm-section-title-actions .crm-section-save-state[hidden]{display:none!important}
.ct-record-form .crm-section-title-actions .crm-section-save-state{font-size:12px;line-height:18px;white-space:normal}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-form-table-left :is([role="columnheader"],[role="cell"]){text-align:left!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-form-table-left :is(.crm-company-col-actions,.crm-contact-col-actions,.ct-shipping-col-actions){justify-content:flex-start!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-form-table-compact{min-width:0;max-width:100%;overflow-x:auto;font-size:12px;line-height:18px}
.ct-record-form .ct-form-table-compact :is(.crm-company-table-head,.crm-company-summary,.crm-contact-table-head,.crm-contact-summary,.ct-shipping-table-head,.ct-shipping-summary){gap:8px;padding:6px 8px;min-height:34px;font-size:12px;line-height:18px}
.ct-record-form .ct-form-table-compact :is(.crm-company-table-head,.crm-company-summary){min-width:680px}
.ct-record-form .ct-form-table-compact :is(.crm-contact-table-head,.crm-contact-summary){min-width:560px}
.ct-record-form .ct-form-table-compact :is(.ct-shipping-table-head,.ct-shipping-summary){min-width:540px}
.ct-record-form .ct-form-table-compact :is(.crm-company-col-actions,.crm-contact-col-actions,.ct-shipping-col-actions){display:flex;flex-direction:row;flex-wrap:nowrap;gap:4px;flex-shrink:0;white-space:nowrap}
.ct-record-form .ct-form-table-compact :is(.crm-company-col-actions,.crm-contact-col-actions){flex-basis:100px}
.ct-record-form .ct-form-table-compact.ct-shipping-table{--shipping-number-width:28px;--shipping-person-width:140px;--shipping-actions-width:186px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-record-form .ct-form-table-compact :is(.crm-company-col-actions,.crm-contact-col-actions,.ct-shipping-col-actions) .btn{flex:0 0 auto;width:auto!important;min-width:0;min-height:28px;height:28px;padding:3px 7px!important;font-size:12px;line-height:20px;white-space:nowrap!important;word-break:normal;overflow-wrap:normal}
.ct-app.ct-compact-ui.ct-ui-standard .ct-toolbar-query-group{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard .ct-toolbar-query-group>.btn{height:30px;min-height:30px;padding:4px 8px;font-size:12px;line-height:20px;border-radius:6px;white-space:nowrap;flex:0 0 auto}
.ct-app.ct-compact-ui.ct-ui-standard .ct-toolbar-query-group>.btn[aria-pressed]{background:#fff!important;border-color:#D5DCE5!important;color:#425269!important;box-shadow:none!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-toolbar-query-group>.btn[aria-pressed]:hover{background:#EFF6FF!important;border-color:#007AFF!important;color:#007AFF!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-toolbar-query-group>.btn[aria-pressed="true"]{background:#007AFF!important;border-color:#007AFF!important;color:#fff!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-toolbar-query-group>.btn:focus-visible{outline:2px solid #007AFF;outline-offset:2px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-toolbar-query-group>.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.ct-record-form .crm-overseas-social-grid.ct-social-rows{display:flex;flex-direction:column;gap:10px}
.ct-record-form .ct-social-rows>.crm-field-grid{width:100%;margin:0;gap:10px 12px}
.ct-record-form .ct-social-rows .crm-social-field{min-width:0;margin:0}
.ct-record-form .crm-field-grid.ct-form-grid-one{grid-template-columns:minmax(0,1fr)}
.ct-record-form .crm-field-grid.ct-form-identity-row{grid-template-columns:minmax(0,2fr) minmax(0,5fr) minmax(0,3fr)}
.ct-record-form .crm-field-grid.ct-form-identity-new{grid-template-columns:minmax(0,5fr) minmax(0,3fr)}
.ct-record-form .ct-grade-readonly{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-height:34px}
.ct-record-form .ct-grade-readonly .ct-readonly-display{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px}
.ct-record-form .ct-grade-readonly small{font-size:12px;color:#64748B;line-height:18px}
.ct-record-form .crm-field-grid.ct-form-identity-row,.ct-record-form .crm-field-grid.ct-form-base-status{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr)}
.ct-record-form .ct-grade-readonly .ct-grade-value{display:inline-flex;align-items:center;flex:0 0 auto;min-height:30px;padding:4px 10px;border:1px solid #D6E7FA;border-radius:6px;background:#EFF5FC;color:#475569;font-size:12px;line-height:20px}
.ct-record-form .ct-grade-readonly small{flex:0 1 auto;margin:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-page-top-gap{padding-top:12px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-datetime-cell{display:inline-flex;flex-direction:column;align-items:flex-start;line-height:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard .ct-datetime-cell>span:last-child{color:#64748B}
/* Apple list-form contract: explicit opt-in supersedes legacy multi-column layouts. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form{--ct-primary:#007AFF;--ct-primary-hover:#0066D6;--ct-primary-soft:#EFF6FF;--ct-label-width:140px;background:#F5F5F7!important;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",sans-serif}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-section{background:#FFF!important;border:0!important;border-radius:14px;padding:12px 16px;margin-bottom:12px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form :is(.crm-field-grid,.ct-shipping-grid,.ct-social-rows){display:block!important;grid-template-columns:none!important;margin:0;gap:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field{display:grid;grid-template-columns:var(--ct-label-width) minmax(0,1fr);column-gap:16px;row-gap:4px;align-items:start;padding:7px 0;margin:0;border-bottom:1px solid #F0F0F2;min-width:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field>label{grid-column:1;grid-row:1;text-align:right;margin:0!important;padding:5px 0!important;min-height:0;line-height:20px;font-size:13px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field>:not(label){grid-column:2;min-width:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field>label+*{grid-row:1}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form :is(input.ct-text-input,textarea.ct-textarea,select.form-control,.bootstrap-select,.ct-search-select){width:100%;max-width:448px!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form :is(input.ct-text-input,select.form-control,.bootstrap-select>.dropdown-toggle){height:30px!important;min-height:30px!important;padding:4px 10px!important;background:#F5F5F7!important;border:1px solid transparent!important;border-radius:7px;box-shadow:none}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form textarea.ct-textarea{min-height:64px;background:#F5F5F7!important;border:1px solid transparent!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form :is(input.ct-text-input,textarea.ct-textarea,select.form-control,.bootstrap-select>.dropdown-toggle):focus{background:#FFF!important;border-color:#007AFF!important;outline:0;box-shadow:0 0 0 4px rgba(0,122,255,.15)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form :is(.crm-choice-group,.ct-choice-group){display:flex;flex-direction:row;flex-wrap:wrap;gap:5px;justify-content:flex-start;min-width:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form label.ct-choice>.ct-choice-text{min-height:30px;padding:4px 10px;background:#FFF;border:1px solid #D2D2D7;border-radius:8px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form label.ct-choice>input:checked~.ct-choice-text{background:#007AFF;border-color:#007AFF;color:#FFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .btn-primary{background:#007AFF!important;border-color:#007AFF!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .ct-required-mark{color:#EF4444!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form :is(.crm-repeater-body,.ct-shipping-editor,.crm-overseas-social-grid){background:#FFF!important;padding:8px 12px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-company-name-heading{display:contents}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-company-name-heading>label{grid-column:1;grid-row:1;text-align:right;padding:5px 0;margin:0;line-height:20px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-company-name{grid-column:2;grid-row:1}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-company-lookup-actions{grid-column:2;grid-row:2;justify-content:flex-start}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-overseas-contact-fields{display:block;border:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-overseas-contact-fields>label{text-align:left!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-social-field{display:grid;grid-template-columns:var(--ct-label-width) minmax(0,1fr);gap:16px;padding:7px 0;border-bottom:1px solid #F0F0F2}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-social-field>span{text-align:right;line-height:30px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form [hidden]{display:none!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .ct-blur-invalid :is(input.ct-text-input,textarea.ct-textarea,select.form-control){border-color:#EF4444!important}
@media(max-width:600px){.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form{--ct-label-width:100px}.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-section{padding:10px}.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field{column-gap:10px}}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .ct-shipping-area-grid{display:block!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form :is(.crm-form-workspace,.crm-form-content){background:#F5F5F7!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme{--ui-blue:#007AFF;--ui-blue-hover:#0066D6;--ui-blue-bg:#EFF6FF;--ui-blue-border:#C7DEFF;--ct-primary:#007AFF;--ct-primary-hover:#0066D6;--ct-primary-soft:#EFF6FF;--ct-blue-bd:#C7DEFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn-primary:not(:disabled):not(.disabled):hover{background:#0066D6!important;border-color:#0066D6!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn-primary:not(:disabled):not(.disabled):active{background:#005BBF!important;border-color:#005BBF!important}

/* Apple Blue component system: scoped components and detached surfaces. */
.ct-apple-blue-theme{--ct-primary:#007AFF;--ct-primary-hover:#0066D6;--ct-primary-soft:#EFF6FF;--ct-text:#1D1D1F;--ct-text-2:#6E6E73;--ct-muted:#6E6E73;--ct-border:#D2D2D7;--ct-bg:#F5F5F7;--ct-card:#FFF;--ct-danger:#B42318;--ct-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Helvetica Neue",sans-serif;font-family:var(--ct-font);color:var(--ct-text)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme{--ui-font:var(--ct-font);--ui-text-sub:#6E6E73;--ui-row-gap:8px;--ui-card-pad:16px;font-family:var(--ct-font);font-size:13px;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-card,.ct-v14-card,.ct-stat-card,.ct-panel){background:#FFF;border:0;border-radius:14px;padding:14px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.ct-apple-blue-theme :is(.ct-title,.ct-v14-blocktitle){font-size:16px;font-weight:600;line-height:1.4;color:#1D1D1F;margin:0 0 6px}
.ct-apple-blue-theme :is(.ct-subtitle,.ct-help-text){font-size:12px;line-height:1.5;color:#6E6E73;margin:0 0 6px}
.ct-apple-blue-theme .ct-paragraph{font-size:13px;line-height:1.6;margin:0 0 8px;overflow-wrap:anywhere}
.ct-apple-blue-theme :is(.ct-number,.ct-stat-value){font-variant-numeric:tabular-nums;letter-spacing:0}
.ct-apple-blue-theme .ct-stat-value{font-size:26px;font-weight:600;color:#007AFF;line-height:1.2}
.ct-apple-blue-theme .ct-icon{font-size:16px;line-height:1;color:currentColor;flex-shrink:0}
.ct-apple-blue-theme .ct-stat-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9px;background:#EFF6FF;color:#007AFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-link,a:not(.btn):not(.ct-choice)){color:#007AFF;text-decoration:none}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-link,a:not(.btn):not(.ct-choice)):hover{color:#0066D6;text-decoration:underline}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn{border-radius:8px;font-size:13px;min-height:30px;line-height:20px;padding:4px 10px;box-shadow:none}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn-primary{color:#FFF;background:#007AFF;border-color:#007AFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn-default{color:#1D1D1F;background:#FFF;border-color:#D2D2D7}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn-default:hover{color:#007AFF;background:#EFF6FF;border-color:#C7DEFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn-danger{color:#B42318;background:#FFF1F0;border-color:#FBC5C0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .btn-link{color:#007AFF;background:transparent;border-color:transparent}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn:disabled,.btn.disabled,[aria-disabled="true"].ct-ui-btn){opacity:.45;cursor:not-allowed;box-shadow:none}
.ct-apple-blue-theme :is(.ct-ui-btn,.ct-link,.ct-icon-button):focus-visible{outline:2px solid #007AFF;outline-offset:2px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-tag,.ct-badge,.ct-v14-badge){border-radius:6px;background:#EFF6FF;border:1px solid #C7DEFF;color:#0066D6;padding:2px 7px;font-size:12px;line-height:18px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-v14-badge--danger,.ct-feedback--error){color:#B42318;background:#FFF1F0;border-color:#FBC5C0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-v14-badge--warning,.ct-feedback--warning){color:#965400;background:#FFF6E9;border-color:#F7D5A0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-v14-badge--success,.ct-feedback--success){color:#237A3B;background:#EFFBF3;border-color:#BDEBC8}
.ct-apple-blue-theme :is(.ct-tooltip,.ct-popover,.ct-toast,.ct-feedback){background:#FFF;color:#1D1D1F;border:1px solid #E5E5EA;border-radius:10px;padding:8px 12px;font-size:12px;line-height:1.5;box-shadow:0 4px 16px rgba(0,0,0,.1);overflow-wrap:anywhere}
.ct-apple-blue-theme.ct-record-window .ct-record-window-panel{background:#FFF;border:0;border-radius:16px;box-shadow:0 12px 48px rgba(0,0,0,.16)}
.ct-apple-blue-theme .ct-v14-timeline{gap:12px}
.ct-apple-blue-theme .ct-v14-timeline::before{background:#E5E5EA}
.ct-apple-blue-theme .ct-v14-timeline>li::before{background:#007AFF;box-shadow:0 0 0 1px #007AFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-data-table,.ct-v14-table)>thead>tr>th{background:#F5F5F7;color:#6E6E73;font-size:12px;font-weight:600;text-align:left}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-data-table,.ct-v14-table)>tbody>tr>td{border-color:#F0F0F2;text-align:left;font-size:13px}
@media(prefers-reduced-motion:reduce){.ct-apple-blue-theme :is(.ct-ui-btn,.ct-card,.ct-popover){transition:none!important;animation:none!important}}

/* Apple Blue foundation tokens. All new component styling consumes these values. */
.ct-apple-blue-theme{--ct-font-body:13px;--ct-font-caption:12px;--ct-font-title:16px;--ct-font-stat:26px;--ct-line-height:1.5;--ct-border-width:1px;--ct-radius-control:8px;--ct-radius-card:14px;--ct-radius-dialog:16px;--ct-shadow-card:0 1px 4px rgba(0,0,0,.05);--ct-shadow-popover:0 4px 16px rgba(0,0,0,.10);--ct-shadow-dialog:0 12px 48px rgba(0,0,0,.16);--ct-focus-ring:0 0 0 4px rgba(0,122,255,.15);--ct-motion-fast:120ms;--ct-motion-normal:180ms;--ct-motion-easing:cubic-bezier(.2,.8,.2,1);--ct-surface-hover:#EFF6FF;--ct-disabled-bg:#E5E5EA;--ct-divider:#F0F0F2;font-size:var(--ct-font-body);line-height:var(--ct-line-height)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-card,.ct-v14-card,.ct-stat-card,.ct-panel){background:var(--ct-card);border-radius:var(--ct-radius-card);box-shadow:var(--ct-shadow-card)}
.ct-apple-blue-theme :is(.ct-tooltip,.ct-popover,.ct-toast,.ct-feedback){background:var(--ct-card);border-width:var(--ct-border-width);font-size:var(--ct-font-caption);box-shadow:var(--ct-shadow-popover)}
.ct-apple-blue-theme.ct-record-window .ct-record-window-panel{border-radius:var(--ct-radius-dialog);box-shadow:var(--ct-shadow-dialog)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-text-input,.ct-textarea,.ct-filter-input,.ct-search-select__trigger){font-family:var(--ct-font);font-size:var(--ct-font-body);border-radius:var(--ct-radius-control);background:var(--ct-bg);transition:background-color var(--ct-motion-fast) var(--ct-motion-easing),border-color var(--ct-motion-fast) var(--ct-motion-easing),box-shadow var(--ct-motion-fast) var(--ct-motion-easing)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-text-input,.ct-textarea,.ct-filter-input,.ct-search-select__trigger):focus-visible{background:var(--ct-card)!important;border-color:var(--ct-primary)!important;box-shadow:var(--ct-focus-ring)!important;outline:none!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-text-input,.ct-textarea,.ct-filter-input):disabled{background:var(--ct-disabled-bg)!important;color:var(--ct-text-2);cursor:not-allowed}
.ct-apple-blue-theme :is(.ct-title,.ct-v14-blocktitle){font-size:var(--ct-font-title)}
.ct-apple-blue-theme :is(.ct-subtitle,.ct-help-text){font-size:var(--ct-font-caption)}
.ct-apple-blue-theme .ct-stat-value{font-size:var(--ct-font-stat)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-ui-btn,.ct-choice-text,.ct-link){transition:background-color var(--ct-motion-fast) var(--ct-motion-easing),border-color var(--ct-motion-fast) var(--ct-motion-easing),color var(--ct-motion-fast) var(--ct-motion-easing),box-shadow var(--ct-motion-fast) var(--ct-motion-easing)}
.ct-apple-blue-theme .ct-animate-enter{animation:ct-apple-enter var(--ct-motion-normal) var(--ct-motion-easing) both}
@keyframes ct-apple-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.ct-apple-blue-theme{--ct-motion-fast:0ms;--ct-motion-normal:0ms}.ct-apple-blue-theme .ct-animate-enter{animation:none!important}}

/* Current input geometry and focus apply to mouse as well as keyboard focus. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-text-input,.ct-textarea,.ct-filter-input,.ct-search-select__trigger){border-radius:var(--ct-radius-control)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-text-input,.ct-textarea,.ct-filter-input,.ct-search-select__trigger):focus{background:var(--ct-card)!important;border-color:var(--ct-primary)!important;box-shadow:var(--ct-focus-ring)!important;outline:none!important}

/* Apple Blue tables: native data tables and explicitly mapped summary tables. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table{--ct-table-head:#F5F5F7;--ct-table-row:#FFFFFF;--ct-table-stripe:#FAFAFC;--ct-table-hover:#EFF6FF;--ct-table-selected:#E5F0FF;--ct-table-line:#F0F0F2;color:#1D1D1F;font-size:13px;line-height:1.5;border:0}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table>thead>tr>th{background:var(--ct-table-head)!important;color:#6E6E73!important;font-weight:600;font-size:12px;text-align:left!important;vertical-align:middle;border:0!important;border-bottom:1px solid #E5E5EA!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table>tbody>tr>td{background:var(--ct-table-row)!important;color:inherit;text-align:left!important;vertical-align:middle;border:0!important;border-bottom:1px solid var(--ct-table-line)!important;padding:7px 8px;font-size:13px}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table>tbody>tr:nth-child(even)>td{background:var(--ct-table-stripe)!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table>tbody>tr:hover>td{background:var(--ct-table-hover)!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table>tbody>tr:is(.selected,[aria-selected="true"])>td{background:var(--ct-table-selected)!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table>tbody>tr:focus-within>td{border-bottom-color:#C7DEFF!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table :is(.crm-company-table-head,.crm-contact-table-head,.ct-shipping-table-head){background:var(--ct-table-head)!important;color:#6E6E73;border-bottom:1px solid #E5E5EA!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table :is(.crm-company-summary,.crm-contact-summary,.ct-shipping-summary){background:var(--ct-table-row)!important;border-bottom:1px solid var(--ct-table-line)}
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table :is(.crm-company-summary,.crm-contact-summary,.ct-shipping-summary):hover{background:var(--ct-table-hover)!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table :is([role="columnheader"],[role="cell"]){text-align:left!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table input[type="checkbox"]{accent-color:#007AFF}
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table :is(.crm-r5-resize,.ct-column-resize):focus-visible{outline:2px solid #007AFF;outline-offset:1px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-apple-table :is(.no-records-found,.no-records-found td){color:#6E6E73!important}

/* Apple Blue media and attachment components: no upload transport overrides. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-upload-button,.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-file-input::file-selector-button{background:#007AFF!important;color:#FFF!important;border:1px solid #007AFF!important;border-radius:8px;min-height:30px;padding:4px 10px;font:500 13px/20px var(--ct-font);cursor:pointer;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-upload-button:hover:not(:disabled):not(.disabled){background:#0066D6!important;border-color:#0066D6!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-upload-button:focus-visible{outline:2px solid #007AFF;outline-offset:2px;box-shadow:var(--ct-focus-ring)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-upload-button:disabled,.ct-upload-button.disabled){opacity:.45;cursor:not-allowed}
.ct-apple-blue-theme .ct-file-input{max-width:448px;font:400 13px/1.5 var(--ct-font);color:#6E6E73}
.ct-apple-blue-theme .ct-file-input::file-selector-button{margin-right:8px}
.ct-apple-blue-theme .ct-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;max-width:640px}
.ct-apple-blue-theme .ct-media-preview{display:block;position:relative;overflow:hidden;border:1px solid #E5E5EA;border-radius:10px;background:#F5F5F7;aspect-ratio:1;min-width:0}
.ct-apple-blue-theme .ct-media-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#F5F5F7}
.ct-apple-blue-theme .ct-media-preview:focus-visible{outline:2px solid #007AFF;outline-offset:2px}
.ct-apple-blue-theme .ct-file-list{display:flex;flex-direction:column;gap:6px;max-width:640px;min-width:0}
.ct-apple-blue-theme .ct-file-item{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#FFF;border:1px solid #E5E5EA;border-radius:10px;min-width:0}
.ct-apple-blue-theme .ct-file-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;height:32px;border-radius:8px;color:#007AFF;background:#EFF6FF;font-size:18px}
.ct-apple-blue-theme .ct-file-info{min-width:0;flex:1}
.ct-apple-blue-theme .ct-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1D1D1F;font-size:13px;line-height:20px}
.ct-apple-blue-theme .ct-file-meta{color:#6E6E73;font-size:12px;line-height:18px;overflow-wrap:anywhere}
.ct-apple-blue-theme .ct-file-actions{display:flex;flex:0 0 auto;gap:4px;align-items:center;flex-wrap:wrap}
.ct-apple-blue-theme .ct-upload-dropzone{max-width:640px;padding:16px;border:1px dashed #C7DEFF;border-radius:12px;background:#F5F5F7;color:#6E6E73;text-align:center}
.ct-apple-blue-theme .ct-upload-dropzone:is(.is-dragover,:focus-within){background:#EFF6FF;border-color:#007AFF}
.ct-apple-blue-theme .ct-upload-progress{height:4px;margin-top:6px;border-radius:4px;background:#E5E5EA;overflow:hidden}
.ct-apple-blue-theme .ct-upload-progress::before{content:"";display:block;width:var(--ct-upload-progress,0%);height:100%;background:#007AFF;transition:width var(--ct-motion-fast,120ms) ease}
.ct-apple-blue-theme .ct-upload-progress[hidden]{display:none!important}
.ct-apple-blue-theme .ct-upload-status{font-size:12px;line-height:18px;color:#6E6E73}
.ct-apple-blue-theme [data-upload-state="error"]{border-color:#FBC5C0}
.ct-apple-blue-theme [data-upload-state="error"] .ct-upload-status{color:#B42318}
.ct-apple-blue-theme [data-upload-state="success"] .ct-upload-status{color:#237A3B}
@media(max-width:480px){.ct-apple-blue-theme .ct-file-item{flex-wrap:wrap}.ct-apple-blue-theme .ct-file-actions{margin-left:42px}}

/* Apple Blue interactive controls; plugin structure and keyboard models remain owned by plugins. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(input[type="checkbox"],input[type="radio"],input[type="range"]){accent-color:#007AFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme select.form-control{max-width:448px;min-height:30px;border:1px solid transparent;border-radius:8px;background:#F5F5F7;font:400 13px/1.5 var(--ct-font);color:#1D1D1F}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme select.form-control:focus{background:#FFF;border-color:#007AFF;box-shadow:var(--ct-focus-ring);outline:none}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme textarea.ct-textarea{background:#F5F5F7;font-family:var(--ct-font);line-height:1.5;border-radius:8px;min-height:64px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-choice-input:checked+.ct-choice-text,.ct-choice-input:checked~.ct-choice-text){background:#007AFF;border-color:#007AFF;color:#FFF}
.ct-apple-blue-theme .ct-apple-tabs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid #E5E5EA;background:transparent}
.ct-apple-blue-theme .ct-apple-tabs>li>a{border:0;border-radius:8px 8px 0 0;padding:7px 12px;font-size:13px;color:#6E6E73;background:transparent}
.ct-apple-blue-theme .ct-apple-tabs>li.active>a,.ct-apple-blue-theme .ct-apple-tabs [role="tab"][aria-selected="true"]{color:#007AFF!important;background:#EFF6FF!important;border-bottom:2px solid #007AFF!important}
.ct-apple-blue-theme :is(.ct-apple-tabs a,.ct-nav-link,.ct-v14-tab):focus-visible{outline:2px solid #007AFF;outline-offset:2px}
.ct-apple-blue-theme .ct-nav-link{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 10px;border-radius:8px;color:#6E6E73;text-decoration:none}
.ct-apple-blue-theme .ct-nav-link[aria-current="page"]{background:#EFF6FF;color:#007AFF;font-weight:600}
.ct-apple-blue-theme .ct-apple-pagination>li>a,.ct-apple-blue-theme .ct-apple-pagination>li>span{min-width:30px;min-height:30px;padding:4px 8px;border:1px solid #E5E5EA;background:#FFF;color:#6E6E73;font-size:12px;line-height:20px}
.ct-apple-blue-theme .ct-apple-pagination>li.active>a,.ct-apple-blue-theme .ct-apple-pagination>li.active>span{background:#007AFF;color:#FFF;border-color:#007AFF}
.ct-apple-blue-theme .ct-apple-pagination>li.disabled>a{color:#86868B;background:#F5F5F7;cursor:not-allowed}
.ct-apple-blue-theme .ct-apple-tree .jstree-anchor{border-radius:6px;font-size:13px;color:#1D1D1F;box-shadow:none}
.ct-apple-blue-theme .ct-apple-tree .jstree-hovered{background:#EFF6FF}
.ct-apple-blue-theme .ct-apple-tree .jstree-clicked,.ct-apple-blue-theme .ct-apple-tree [role="treeitem"][aria-selected="true"]>.ct-tree-label{background:#E5F0FF;color:#007AFF;box-shadow:none}
.ct-apple-blue-theme .ct-apple-tree .jstree-anchor:focus-visible{outline:2px solid #007AFF;outline-offset:-2px}
.ct-apple-blue-theme .ct-v14-rating button.is-on{color:#007AFF}
.ct-apple-blue-theme .ct-slider{width:100%;max-width:448px;accent-color:#007AFF}
.ct-apple-blue-theme .ct-slider:focus-visible{outline:2px solid #007AFF;outline-offset:3px;border-radius:8px}
.ct-apple-blue-theme .ct-button-loading{position:relative;padding-right:30px!important;cursor:progress!important}
.ct-apple-blue-theme .ct-button-loading::after{content:"";position:absolute;right:9px;top:calc(50% - 6px);width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:ct-apple-spin .8s linear infinite}
@keyframes ct-apple-spin{to{transform:rotate(360deg)}}
.ct-ui-date-portal.ct-apple-blue-theme .bootstrap-datetimepicker-widget,.bootstrap-datetimepicker-widget.ct-ui-date-widget.ct-apple-blue-theme{background:#FFF;border:1px solid #E5E5EA;border-radius:10px;box-shadow:var(--ct-shadow-popover,0 4px 16px rgba(0,0,0,.1));font-size:13px}
.ct-ui-date-portal.ct-apple-blue-theme .bootstrap-datetimepicker-widget td.active,.bootstrap-datetimepicker-widget.ct-ui-date-widget.ct-apple-blue-theme td.active{background:#007AFF!important;color:#FFF!important;text-shadow:none}
.ct-ui-date-portal.ct-apple-blue-theme .bootstrap-datetimepicker-widget td.day:hover,.bootstrap-datetimepicker-widget.ct-ui-date-widget.ct-apple-blue-theme td.day:hover{background:#EFF6FF}
.ct-ui-date-portal.ct-apple-blue-theme .bootstrap-datetimepicker-widget td.disabled,.bootstrap-datetimepicker-widget.ct-ui-date-widget.ct-apple-blue-theme td.disabled{color:#86868B;background:transparent;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.ct-apple-blue-theme .ct-button-loading::after{animation:none;border-style:dotted}}
.ct-apple-blue-theme .ct-button-loading{box-sizing:border-box;white-space:nowrap;overflow:hidden}

/* Apple Blue panels, progress and chronological lists. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-apple-panel{background:var(--ct-card,#FFF);border:0;border-radius:var(--ct-radius-card,14px);box-shadow:var(--ct-shadow-card);min-width:0;padding:14px}
.ct-apple-blue-theme .ct-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 8px;color:#1D1D1F;font-size:16px;font-weight:600}
.ct-apple-blue-theme .ct-panel-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;flex-shrink:0}
.ct-apple-blue-theme .ct-panel-body{min-width:0;font-size:13px;line-height:1.5}
.ct-apple-blue-theme .ct-panel-footer{display:flex;align-items:center;justify-content:flex-end;gap:6px;padding-top:8px;margin-top:8px;border-top:1px solid #F0F0F2}
.ct-apple-blue-theme .ct-apple-progress{height:6px;max-width:100%;width:100%;background:#E5E5EA;border-radius:6px;overflow:hidden}
.ct-apple-blue-theme .ct-apple-progress>:is(span,.ct-progress-fill){display:block;height:100%;background:#007AFF;border-radius:inherit;transition:width var(--ct-motion-normal,180ms) var(--ct-motion-easing,ease)}
.ct-apple-blue-theme .ct-apple-progress.is-indeterminate>.ct-progress-fill{animation:ct-progress-pending 1.2s ease-in-out infinite}
.ct-apple-blue-theme .ct-progress-caption{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:18px;color:#6E6E73;margin-top:4px;font-variant-numeric:tabular-nums}
.ct-apple-blue-theme .ct-apple-progress.is-error>.ct-progress-fill{background:#B42318}
.ct-apple-blue-theme .ct-apple-progress.is-success>.ct-progress-fill{background:#237A3B}
.ct-apple-blue-theme .ct-apple-timeline{position:relative;display:flex;flex-direction:column;gap:12px;list-style:none;padding:0 0 0 22px;margin:0}
.ct-apple-blue-theme .ct-apple-timeline::before{content:"";position:absolute;left:6px;top:7px;bottom:8px;width:1px;background:#E5E5EA}
.ct-apple-blue-theme .ct-apple-timeline>li{position:relative;min-width:0;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.ct-apple-blue-theme .ct-apple-timeline>li::before{content:"";position:absolute;left:-21px;top:6px;width:12px;height:12px;box-sizing:border-box;border:3px solid #FFF;border-radius:50%;background:#007AFF;box-shadow:0 0 0 1px #007AFF}
.ct-apple-blue-theme .ct-apple-timeline>li.is-pending::before{background:#FFF;box-shadow:0 0 0 1px #D2D2D7}
.ct-apple-blue-theme .ct-apple-timeline>li.is-error::before{background:#B42318;box-shadow:0 0 0 1px #B42318}
.ct-apple-blue-theme .ct-apple-timeline time{display:block;font-size:12px;color:#6E6E73;margin-bottom:3px;font-variant-numeric:tabular-nums}
@keyframes ct-progress-pending{from{transform:translateX(-100%)}to{transform:translateX(386%)}}
@media(prefers-reduced-motion:reduce){.ct-apple-blue-theme .ct-apple-progress>.ct-progress-fill{transition:none!important;animation:none!important}}

/* Responsive compact density: preserve single-field rows and readable lower bounds. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme{--ct-font-body:var(--ct-responsive-body,13px);--ct-font-title:var(--ct-responsive-title,16px);--ct-label-width:var(--ct-responsive-label,140px);--ct-ui-gap:var(--ct-responsive-gap,8px);font-size:var(--ct-font-body)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-card,.ct-v14-card,.ct-panel,.ct-apple-panel,.crm-section){padding:var(--ct-responsive-padding,14px)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field{column-gap:var(--ct-ui-gap);padding-block:clamp(5px,1vh,7px)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field>label{font-size:var(--ct-font-body)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(input.ct-text-input,select.form-control,.ct-filter-input,.ct-search-select__trigger){height:var(--ct-responsive-control,30px)!important;min-height:var(--ct-responsive-control,30px)!important;font-size:var(--ct-font-body)!important;max-width:100%}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-textarea,.ct-choice-text,.ct-ui-btn){font-size:var(--ct-font-body)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-panel-heading,.crm-section-title h4){font-size:var(--ct-font-title)}
.ct-apple-blue-theme .ct-flex-compact{display:flex;align-items:center;flex-wrap:wrap;gap:var(--ct-ui-gap,8px);min-width:0}
.ct-apple-blue-theme .ct-flex-fill{flex:1 1 auto;min-width:0;min-height:0}
.ct-apple-blue-theme .ct-scroll-content{flex:1 1 auto;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain}
.ct-apple-blue-theme.ct-record-window{padding:clamp(4px,1vw,12px)}
.ct-apple-blue-theme.ct-record-window .ct-record-window-panel{max-width:100%;max-height:100%;min-width:0;min-height:0;display:flex;flex-direction:column}
.ct-apple-blue-theme.ct-record-window .ct-record-window-head{flex:0 0 auto;padding:clamp(6px,1vh,10px) clamp(10px,1vw,16px)}
.ct-apple-blue-theme.ct-record-window .ct-record-window-body{flex:1 1 auto;min-height:0;min-width:0}
@media(max-height:640px){.ct-apple-blue-theme .ct-panel-heading{padding-bottom:6px}.ct-apple-blue-theme .ct-apple-timeline{gap:8px}.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-section{margin-bottom:8px}}

/* Apple Blue 10: independent dialog density follows its own available width AND height. */
.ct-apple-blue-theme.ct-record-window{--ct-font-body:var(--ct-responsive-body,13px);--ct-font-title:var(--ct-responsive-title,16px);--ct-ui-gap:var(--ct-responsive-gap,8px);font-family:var(--ct-font);font-size:var(--ct-font-body);line-height:1.5;padding:clamp(4px,.8vmin,10px)}
.ct-apple-blue-theme.ct-record-window .ct-record-window-head{min-height:0;gap:var(--ct-ui-gap);padding:var(--ct-responsive-row,7px) var(--ct-responsive-padding,14px)}
.ct-apple-blue-theme.ct-record-window .ct-record-window-head h2{font-size:var(--ct-font-title);line-height:1.5}
.ct-apple-blue-theme.ct-record-window .ct-record-window-controls{gap:6px;min-width:0}
.ct-apple-blue-theme.ct-record-window button:not(.ct-record-window-resize){height:var(--ct-responsive-control,30px);font-size:var(--ct-font-body);border-radius:8px;padding-inline:var(--ct-ui-gap)}
.ct-apple-blue-theme.ct-record-window .ct-record-window-confirm{max-height:calc(100% - 16px);overflow:auto;padding:var(--ct-responsive-padding,14px);border:0;border-radius:14px}
.ct-apple-blue-theme.ct-record-window.is-maximized{padding:0}
.ct-apple-blue-theme.ct-record-window.is-maximized .ct-record-window-panel{border-radius:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form .crm-field{padding-block:var(--ct-responsive-row,7px)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.crm-section,.ct-panel,.ct-card){min-width:0;margin-bottom:var(--ct-responsive-gap,10px)}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.crm-section-header,.ct-section-heading){gap:var(--ct-responsive-gap,8px);min-width:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme [data-ct-form-footer]{flex-shrink:0;gap:6px;padding:var(--ct-responsive-row,7px) var(--ct-responsive-padding,14px);background:#FFF;border-top:1px solid #F0F0F2}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-choice-group,.crm-choice-group){display:flex;flex-wrap:wrap;gap:6px;min-width:0}

/* Apple Blue 11: semantic typography; compact desktop baseline, not iOS point sizes. */
.ct-apple-blue-theme, .ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme {
 --ct-font-title:var(--ct-responsive-title,16px);--ct-font-subtitle:var(--ct-responsive-subtitle,14px);
 --ct-font-body:var(--ct-responsive-body,13px);--ct-font-caption:12px;
 --ct-font-form-title:var(--ct-font-title);--ct-font-section-title:var(--ct-font-subtitle);
 --ct-font-label:var(--ct-font-body);--ct-font-input:var(--ct-font-body);--ct-font-textarea:var(--ct-font-body);
 --ct-font-option:var(--ct-font-body);--ct-font-help:var(--ct-font-caption);
 --ct-font-dialog-title:var(--ct-font-title);--ct-font-dialog-message:var(--ct-font-body);--ct-font-dialog-button:13px;
 --ct-font-button-lg:16px;--ct-font-button-md:14px;--ct-font-button-sm:12px;
}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-title,.ct-page-heading,.ct-form-title,.ct-form-heading) {font-size:var(--ct-font-form-title)!important;font-weight:600;line-height:1.4}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-subtitle,.ct-section-heading,.ct-ui-section-heading,.ct-panel-heading,.ct-v14-blocktitle,.crm-section-title h4) {font-size:var(--ct-font-section-title)!important;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-paragraph,.ct-text-body,.ct-panel-body) {font-size:var(--ct-font-body)!important;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-caption,.ct-help-text,.ct-text-muted,.ct-field-help,.ct-form-hint,.help-block,.ct-blur-error,.crm-field-help) {font-size:var(--ct-font-help)!important;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-field-label,.ct-form-label,.control-label,.crm-field>label,.cr-field>label) {font-size:var(--ct-font-label)!important;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(input.form-control,input.ct-text-input,.ct-filter-input,select.form-control,.ct-select,.ct-search-select__trigger,.ct-readonly-display) {font-size:var(--ct-font-input)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(textarea.form-control,textarea.ct-textarea,textarea.ct-auto-grow) {font-size:var(--ct-font-textarea)!important;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-unit-input>input,
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-unit-input>input.form-control,
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .input-group.ct-ui-unit-group>input.form-control {font-size:var(--ct-font-input)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-choice-text,.ct-search-select__option,select option,.ct-choice-group label,.crm-choice-group label,.radio-toolbar>label,.checkbox-toolbar>label,.btn-group[data-toggle="buttons"]>label.btn) {font-size:var(--ct-font-option)!important;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn,.ct-btn,.ct-ui-btn) {font-size:var(--ct-font-button-md)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn.btn-lg,.ct-btn--lg,.ct-ui-btn--lg,[data-ct-button-size="large"]) {font-size:var(--ct-font-button-lg)!important}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn.btn-sm,.btn.btn-xs,.ct-btn--sm,.ct-ui-btn--sm,[data-ct-button-size="small"]) {font-size:var(--ct-font-button-sm)!important}
/* Dialog shells and their message content are separate themed surfaces. */
.ct-apple-blue-theme.ct-record-window .ct-record-window-head h2,
.ct-apple-blue-theme.ct-record-window .ct-record-window-confirm h3,
.ct-apple-blue-theme.ct-ui-layer>.layui-layer-title,
.ct-apple-blue-theme .ct-dialog-title,
.ct-apple-blue-theme .ct-ui-shell__title {font-size:var(--ct-font-dialog-title)!important;font-weight:600}
.ct-apple-blue-theme.ct-record-window .ct-record-window-confirm p,
.ct-apple-blue-theme.ct-ui-layer>.layui-layer-content,
.ct-apple-blue-theme .ct-dialog-message {font-size:var(--ct-font-dialog-message)!important;line-height:1.5}
.ct-apple-blue-theme.ct-record-window .ct-record-window-confirm button,
.ct-apple-blue-theme.ct-ui-layer>.layui-layer-btn>a,
.ct-apple-blue-theme .ct-dialog-actions>button {font-size:var(--ct-font-dialog-button)!important}
/* A mobile control remains >=16px to avoid browser auto-zoom on focus. */
@media(pointer:coarse) and (max-width:600px) {
 .ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(input.form-control,input.ct-text-input,.ct-filter-input,select.form-control,textarea.form-control,textarea.ct-textarea,textarea.ct-auto-grow) {font-size:16px!important}
 .ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-unit-input>input,.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .ct-unit-input>input.form-control,.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme .input-group.ct-ui-unit-group>input.form-control {font-size:16px!important}
}

/* Shared feedback: icon and message remain in one flex row; text wraps beside icon. */
.ct-apple-blue-theme .ct-feedback-inline{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;min-width:0}
.ct-apple-blue-theme .ct-feedback-inline>:first-child{flex:0 0 auto;margin:0}
.ct-apple-blue-theme .ct-feedback-inline>:last-child{flex:1 1 auto;min-width:0;margin:0;overflow-wrap:anywhere}
.ct-apple-blue-theme .ct-loading-spinner{display:inline-block;width:28px;height:28px;border:3px solid #D6E7FA;border-top-color:#007AFF;border-radius:50%;animation:ct-apple-spin .8s linear infinite}
@media(prefers-reduced-motion:reduce){.ct-apple-blue-theme .ct-loading-spinner{animation:none;border-style:dotted}}

/* Dialog chrome: compact icon actions, with accessible names supplied by the host. */
.ct-apple-blue-theme button.ct-dialog-icon,
.ct-apple-blue-theme.ct-record-window button.ct-dialog-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:7px;background:transparent;color:#6E6E73;font-size:20px;line-height:1;font-family:Arial,sans-serif}
.ct-apple-blue-theme button.ct-dialog-icon:hover{background:#EFF6FF;color:#007AFF}
.ct-apple-blue-theme button.ct-dialog-icon:focus-visible{outline:2px solid #007AFF;outline-offset:2px}

/* Distinct button hierarchy: explicit large / standard / small sizes. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn,.ct-btn,.ct-ui-btn):not(label):not(.ct-dialog-icon){min-height:32px;height:auto;padding:5px 12px;line-height:20px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn.btn-lg,.ct-btn--lg,.ct-ui-btn--lg,[data-ct-button-size="large"]):not(label):not(.ct-dialog-icon){min-height:40px;height:auto;padding:8px 18px;line-height:22px;font-weight:600}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn.btn-sm,.btn.btn-xs,.ct-btn--sm,.ct-ui-btn--sm,[data-ct-button-size="small"]):not(label):not(.ct-dialog-icon){min-height:28px;height:auto;padding:3px 8px;line-height:20px}

/* Non-blocking information and compact loading feedback. */
.ct-apple-blue-theme .ct-inline-notice{display:flex;align-items:center;gap:10px;max-width:min(420px,calc(100vw - 32px));padding:12px 16px;background:#FFF;border:1px solid #E5E5EA;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.1);font-size:var(--ct-font-body,13px);color:#1D1D1F;line-height:1.5}
.ct-apple-blue-theme .ct-inline-notice>span:not([aria-hidden]){min-width:0;overflow-wrap:anywhere}
.ct-apple-blue-theme .ct-notice-symbol{flex:0 0 26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #007AFF;color:#007AFF;border-radius:50%;font-weight:600}
.ct-apple-blue-theme .ct-loading-dots{flex:0 0 26px;width:26px;height:26px;border:3px dotted #B8D8FF;border-top-color:#007AFF;border-right-color:#007AFF;border-radius:50%;animation:ct-apple-spin 1s linear infinite}
@media(prefers-reduced-motion:reduce){.ct-apple-blue-theme .ct-loading-dots{animation:none}}

/* Directional Tips: host owns positioning, ARIA and lifecycle. */
.ct-apple-blue-theme .ct-directional-tip{--ct-tip-background:#007AFF;position:fixed;z-index:1200;max-width:260px;padding:8px 12px;border-radius:8px;background:var(--ct-tip-background);color:#FFF;font-size:12px;line-height:1.5;box-shadow:0 4px 16px rgba(0,0,0,.12);overflow-wrap:anywhere;pointer-events:none}
.ct-apple-blue-theme .ct-directional-tip:after{content:'';position:absolute;width:8px;height:8px;background:inherit;transform:rotate(45deg)}
.ct-directional-tip[data-direction="top"]:after{bottom:-4px;left:calc(var(--tip-arrow-x) - 4px)}
.ct-directional-tip[data-direction="bottom"]:after{top:-4px;left:calc(var(--tip-arrow-x) - 4px)}
.ct-directional-tip[data-direction="left"]:after{right:-4px;top:calc(var(--tip-arrow-y) - 4px)}
.ct-directional-tip[data-direction="right"]:after{left:-4px;top:calc(var(--tip-arrow-y) - 4px)}

/* Semantic badges: compact readable labels, no click behavior implied. */
.ct-apple-blue-theme :is(.ct-badge,.ct-badge-status){--ct-badge-color:#0066D6;--ct-badge-bg:#EFF6FF;font-size:12px;font-weight:500;line-height:18px;vertical-align:middle}
.ct-apple-blue-theme .ct-badge{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:1px 6px;border:1px solid transparent;border-radius:6px;background:var(--ct-badge-bg);color:var(--ct-badge-color);white-space:nowrap;font-variant-numeric:tabular-nums}
.ct-apple-blue-theme .ct-badge--success{--ct-badge-color:#237A3B;--ct-badge-bg:#EBF7EF}
.ct-apple-blue-theme .ct-badge--warning{--ct-badge-color:#965400;--ct-badge-bg:#FFF5E5}
.ct-apple-blue-theme .ct-badge--danger{--ct-badge-color:#B42318;--ct-badge-bg:#FFF0EE}
.ct-apple-blue-theme .ct-badge--neutral{--ct-badge-color:#6E6E73;--ct-badge-bg:#F5F5F7}
.ct-apple-blue-theme .ct-badge--outline{background:transparent;border-color:currentColor}
.ct-apple-blue-theme .ct-badge--count{min-width:20px;border-radius:10px}
.ct-apple-blue-theme .ct-badge-status{display:inline-flex;align-items:center;gap:6px;color:var(--ct-badge-color)}
.ct-apple-blue-theme .ct-badge-dot{display:inline-block;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:var(--ct-badge-color)}

/* Card galleries contain summaries, never multi-column form fields. */
.ct-apple-blue-theme .ct-card-gallery{display:flex;flex-wrap:wrap;align-items:stretch;gap:var(--ct-ui-gap,12px);min-width:0}
.ct-apple-blue-theme .ct-card-gallery>.ct-panel{flex:1 1 300px;min-width:0;max-width:100%;margin:0;display:flex;flex-direction:column}
.ct-apple-blue-theme .ct-card-gallery .ct-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.ct-apple-blue-theme .ct-card-gallery .ct-panel-heading h3{margin:0;font-size:var(--ct-font-section-title,14px);font-weight:600}
.ct-apple-blue-theme .ct-card-gallery .ct-panel-body{flex:1;min-width:0;line-height:1.6;overflow-wrap:anywhere}
.ct-apple-blue-theme .ct-card-gallery .ct-panel-body p{margin:0 0 8px}
.ct-apple-blue-theme .ct-card-gallery .ct-panel-footer{margin-top:12px}
.ct-apple-blue-theme .ct-disclosure-panel>summary{cursor:pointer;font-size:var(--ct-font-section-title,14px);font-weight:600}
.ct-apple-blue-theme .ct-disclosure-panel>summary span{margin-left:8px;font-weight:400}
.ct-apple-blue-theme .ct-disclosure-panel:not([open])>.ct-panel-body{display:none}
.ct-apple-blue-theme .ct-disclosure-panel[open]>.ct-panel-body{margin-top:12px}
.ct-apple-blue-theme .ct-panel-tabs{display:flex;gap:4px;border-bottom:1px solid #F0F0F2;margin-bottom:10px}
.ct-apple-blue-theme .ct-panel-tabs>button{border:0;border-bottom:2px solid transparent;padding:6px 10px;background:transparent;color:#6E6E73;font-size:13px;cursor:pointer}
.ct-apple-blue-theme .ct-panel-tabs>button[aria-selected="true"]{color:#007AFF;border-bottom-color:#007AFF;background:#EFF6FF}
.ct-apple-blue-theme .ct-panel-tabs>button:focus-visible,.ct-apple-blue-theme .ct-disclosure-panel>summary:focus-visible{outline:2px solid #007AFF;outline-offset:2px}
.ct-apple-blue-theme .ct-card-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:110px;padding:12px;text-align:center;font-size:var(--ct-font-body,13px)}
.ct-apple-blue-theme .ct-empty-symbol{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#EFF6FF;color:#007AFF;font-size:20px}

/* Card-style tabs: explicit border variant, contained horizontal navigation. */
.ct-apple-blue-theme .ct-tabs-card{min-width:0;margin:12px 0 18px;background:#FFF;border-radius:10px}
.ct-apple-blue-theme .ct-tabs-card--bordered{border:1px solid #E5E5EA;box-shadow:0 1px 4px rgba(0,0,0,.05);overflow:hidden}
.ct-apple-blue-theme .ct-card-tabbar{display:flex;align-items:stretch;gap:2px;overflow-x:auto;border-bottom:1px solid #F0F0F2;padding:0 6px}
.ct-apple-blue-theme .ct-card-tabbar>:is(button,a){flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:0;border-bottom:2px solid transparent;background:transparent;font:inherit;font-size:13px;color:#6E6E73;text-decoration:none;white-space:nowrap;cursor:pointer}
.ct-apple-blue-theme .ct-card-tabbar>[aria-selected="true"]{background:#EFF6FF;color:#007AFF;border-bottom-color:#007AFF;font-weight:600}
.ct-apple-blue-theme .ct-card-tabbar>.ct-tab-link{color:#007AFF}
.ct-apple-blue-theme .ct-card-tabbar>button:disabled{color:#6E6E73;opacity:.45;cursor:not-allowed}
.ct-apple-blue-theme .ct-card-tabbar>:focus-visible{outline:2px solid #007AFF;outline-offset:-2px}
.ct-apple-blue-theme .ct-card-tabcontent{padding:var(--ct-responsive-padding,14px);font-size:var(--ct-font-body,13px);line-height:1.5;min-width:0}
.ct-apple-blue-theme .ct-card-tabcontent select{display:block;width:100%;max-width:448px;margin:6px 0;border:1px solid transparent;border-radius:8px;background:#F5F5F7;padding:6px 10px}

/* Dynamic tabs use separate tab and close buttons, never nested interactive controls. */
.ct-apple-blue-theme .ct-tabs-navigation{display:flex;align-items:center;gap:6px;min-width:0}
.ct-apple-blue-theme .ct-tabs-navigation>.ct-card-tabbar{flex:1;min-width:0}
.ct-apple-blue-theme .ct-dynamic-tab{display:inline-flex;align-items:center;flex:0 0 auto;border-bottom:2px solid transparent}
.ct-apple-blue-theme .ct-dynamic-tab:has([aria-selected="true"]){border-bottom-color:#007AFF;background:#EFF6FF}
.ct-apple-blue-theme .ct-dynamic-tab button{border:0;background:transparent;cursor:pointer;color:#6E6E73;font-size:13px}
.ct-apple-blue-theme .ct-dynamic-tab-trigger{padding:8px 10px}
.ct-apple-blue-theme .ct-dynamic-tab-trigger[aria-selected="true"]{color:#007AFF;font-weight:600}
.ct-apple-blue-theme .ct-dynamic-tab-close{width:28px;height:28px;font-size:18px!important}
.ct-apple-blue-theme .ct-dynamic-tab button:focus-visible{outline:2px solid #007AFF;outline-offset:-2px}
.ct-apple-blue-theme .ct-tab-menu{position:fixed;z-index:1250;padding:5px;background:white;border:1px solid #E5E5EA;border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.ct-apple-blue-theme .ct-tab-menu>button{display:block;width:100%;padding:7px 12px;text-align:left;background:transparent;border:0;border-radius:6px;font-size:13px;color:#1D1D1F;cursor:pointer}
.ct-apple-blue-theme .ct-tab-menu>button:not(:disabled):is(:hover,:focus-visible){background:#EFF6FF;color:#007AFF;outline:2px solid #007AFF;outline-offset:-2px}
.ct-apple-blue-theme .ct-tab-menu>button:disabled{opacity:.45;cursor:not-allowed}

/* Final compact typography: fixed readable hierarchy; viewport changes spacing only. */
.ct-apple-blue-theme,.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme,.ct-apple-blue-theme.ct-record-window{--ct-font-title:15px;--ct-font-form-title:15px;--ct-font-subtitle:13px;--ct-font-section-title:13px;--ct-font-body:12px;--ct-font-caption:12px;--ct-font-label:12px;--ct-font-input:12px;--ct-font-textarea:12px;--ct-font-option:12px;--ct-font-help:12px;--ct-font-dialog-title:15px;--ct-font-dialog-message:12px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.ct-subtitle,.ct-section-heading,.ct-ui-section-heading,.ct-panel-heading,.ct-v14-blocktitle,.crm-section-title h4){font-weight:600;line-height:1.5}

/* Form/dialog role mapping: use fixed hierarchy, including independent surfaces. */
.ct-apple-blue-theme :is(.ct-form-title,.ct-dialog-title,.ct-ui-modal-title,.ct-ui-shell__title),
.ct-apple-blue-theme.ct-record-window .ct-record-window-head h2{font-size:var(--ct-font-form-title,15px)!important;font-weight:600;line-height:1.4}
.ct-apple-blue-theme :is(.ct-form-section-title,.crm-section-title h3,.crm-section-title h4,.ct-section-heading){font-size:var(--ct-font-section-title,13px)!important;font-weight:600;line-height:1.5}
.ct-apple-blue-theme :is(.ct-dialog-message,.ct-ui-modal-body,.ct-record-window-status,.ct-record-window-notice){font-size:var(--ct-font-body,12px);line-height:1.5}
.ct-apple-blue-theme :is(.ct-field-label,.ct-form-label,.ct-field-help,.ct-help-text,.ct-form-hint,.ct-readonly-display){font-size:12px!important;line-height:1.5}
/* Choice labels may carry .btn: option text must not inherit action-button sizing. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme :is(.btn-group[data-toggle="buttons"]>label.btn,.ct-choice-text,.ct-choice-group label,.crm-choice-group label){font-size:var(--ct-font-option,12px)!important;line-height:1.5}

/* Compact dialog heading: 6px vertical padding, retaining 28px icon targets. */
.ct-apple-blue-theme .ct-dialog-header,
.ct-apple-blue-theme.ct-record-window .ct-record-window-head{display:flex;align-items:center;flex:0 0 auto;gap:8px;min-height:40px;padding:6px 12px}
.ct-apple-blue-theme .ct-dialog-header>:is(h1,h2,h3,.ct-dialog-title){margin:0;line-height:1.4}
.ct-apple-blue-theme.ct-ui-layer>.layui-layer-title{height:auto;min-height:40px;box-sizing:border-box;line-height:28px;padding:6px 76px 6px 12px}
.ct-apple-blue-theme.ct-ui-layer>.layui-layer-setwin{top:12px;right:12px}

/* System typography with explicit Chinese fallbacks; no downloaded fonts required. */
.ct-apple-blue-theme,.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme{--ct-font:-apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;--ct-font-mono:ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-family:var(--ct-font);font-weight:400;letter-spacing:normal;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-form{font-family:var(--ct-font)}
.ct-apple-blue-theme :is(input,textarea,select,button):not(.ct-dialog-icon){font-family:var(--ct-font)}
.ct-apple-blue-theme :is(.ct-code,code,pre,kbd,samp){font-family:var(--ct-font-mono);font-size:12px;line-height:1.6}
.ct-apple-blue-theme :is(.ct-number,.ct-stat-value,.ct-tabular-number){font-variant-numeric:lining-nums tabular-nums}
.ct-apple-blue-theme .ct-long-text{overflow-wrap:anywhere;word-break:normal}

/* Public non-blocking Toast extracted from the reference demo. */
.ct-apple-blue-theme>.ct-toast-stack{position:fixed;right:16px;bottom:72px;z-index:1200;display:flex;flex-direction:column;gap:8px;max-width:calc(100vw - 32px);pointer-events:none}
.ct-apple-blue-theme>.ct-toast-stack>.ct-toast-message{padding:12px 16px;border-left:3px solid #007AFF;border-radius:10px;background:#FFF;color:#1D1D1F;font-family:var(--ct-font);font-size:12px;line-height:1.5;box-shadow:0 4px 16px rgba(0,0,0,.12);overflow-wrap:anywhere}

/* Independent import preview: compact table without the host list toolbar. */
.ct-import-preview-layer .layui-layer-content{overflow:hidden!important}
.ct-import-preview-layer .inquiry-import-result{box-sizing:border-box;padding:8px 10px;height:100%;overflow:hidden;font-size:12px}
.ct-import-preview-layer .inquiry-import-result>p{margin:0 0 6px;line-height:18px}
.ct-import-preview-layer .inquiry-import-result>button{display:inline-flex;width:auto;min-height:28px;height:28px;padding:3px 10px;font-size:12px}
.ct-import-preview-layer .fixed-table-toolbar .search{margin:4px 0}
.ct-import-preview-layer .fixed-table-toolbar input{height:28px;font-size:12px}
.ct-import-preview-layer .fixed-table-container table{table-layout:fixed;border-collapse:collapse!important;border-spacing:0!important;width:100%;min-width:0}
.ct-import-preview-layer .fixed-table-container table th,
.ct-import-preview-layer .fixed-table-container table td{padding:4px 6px!important;font-size:12px!important;line-height:18px!important;text-align:left!important;vertical-align:top!important;border-radius:0!important;overflow-wrap:anywhere}
.ct-import-preview-layer .fixed-table-container table th .th-inner{padding:4px 0!important;white-space:nowrap}
.ct-import-preview-layer .fixed-table-container table td:nth-child(1),
.ct-import-preview-layer .fixed-table-container table td:nth-child(2){white-space:nowrap}
.ct-import-preview-layer .fixed-table-pagination{margin:0;font-size:12px}
.ct-import-preview-layer .layui-layer-btn{padding:6px 10px}

/* Scoped, read-only company duplicate dropdown for inquiry forms. */
#inquiry-form .ct-company-duplicate-hints{position:relative;z-index:20;width:100%;max-height:180px;overflow:auto;margin-top:3px;border:1px solid #d2d2d7;border-radius:6px;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.1);font-size:12px;line-height:18px;text-align:left}
#inquiry-form .ct-company-duplicate-hints[hidden]{display:none!important}
#inquiry-form .ct-company-duplicate-hint{padding:5px 8px;overflow-wrap:anywhere;border-bottom:1px solid #f0f0f2}
/* Editable company field keeps its value; standard searchable picker is supplementary. */
#inquiry-form .inquiry-company-picker{margin-top:4px;max-width:448px}
#inquiry-form .inquiry-company-picker .ct-search-select__trigger{min-height:28px;height:28px;font-size:12px}
#inquiry-form .inquiry-company-picker-slot{position:fixed;inset:0;z-index:1000;pointer-events:none}
#inquiry-form .inquiry-company-picker-slot>.ct-ui-portal{pointer-events:auto}
#inquiry-form .inquiry-company-picker[hidden]{display:none!important}

#inquiry-form .inquiry-contact-duplicate-feedback.is-warning,#inquiry-form .inquiry-contact-duplicate-feedback.is-error{color:#d70015}

#inquiry-form .inquiry-company-picker-slot .ct-search-select__option{color:#cf6666}

/* Import outcome summary; scoped to the existing import dialog. */
.ct-import-preview-layer .ct-import-summary{padding:10px 12px;margin-bottom:8px;border:1px solid #c8def9;border-left:4px solid #007aff;border-radius:8px;background:#f3f8ff}
.ct-import-preview-layer .ct-import-summary__title{display:block;font-size:13px;line-height:20px;font-weight:600;color:#1d1d1f}
.ct-import-preview-layer .ct-import-summary__counts{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.ct-import-preview-layer .ct-import-summary__count{display:inline-flex;align-items:baseline;gap:6px;padding:4px 10px;border-radius:5px;font-size:12px;line-height:20px}
.ct-import-preview-layer .ct-import-summary__count strong{font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}
.ct-import-preview-layer .ct-import-summary__count.is-success{color:#166534;background:#e9f7ed}
.ct-import-preview-layer .ct-import-summary__count.is-error{color:#b42318;background:#fff0ee}
.ct-import-preview-layer .ct-import-summary__count.is-skipped{color:#92400e;background:#fff5dc}
.ct-import-preview-layer .ct-import-summary__note{margin:0;color:#515866;font-size:12px;line-height:18px}

.ct-import-preview-layer .ct-import-status{display:inline-flex;align-items:center;padding:2px 7px;border-radius:4px;font-size:12px;line-height:18px;font-weight:600;white-space:nowrap}
.ct-import-preview-layer .ct-import-status.is-success{color:#166534;background:#e9f7ed}
.ct-import-preview-layer .ct-import-status.is-error{color:#b42318;background:#fff0ee}
.ct-import-preview-layer .ct-import-status.is-skipped{color:#92400e;background:#fff5dc}
.ct-import-preview-layer .ct-import-status.is-neutral{color:#515866;background:#eef0f3}

.ct-import-preview-layer .ct-import-actions{display:flex;align-items:center;justify-content:flex-start;gap:6px;margin:8px 0}
.ct-import-preview-layer .ct-import-actions>.ct-import-download{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;width:auto!important;min-width:144px;min-height:32px;height:32px;padding:5px 14px;border:1px solid #007aff;border-radius:6px;background:#007aff;color:#fff;font-size:14px;font-weight:600;line-height:20px;box-shadow:0 2px 5px rgba(0,122,255,.18)}
.ct-import-preview-layer .ct-import-actions>.ct-import-download:hover{background:#0066d6;border-color:#0066d6;color:#fff}
.ct-import-preview-layer .ct-import-actions>.ct-import-download:active{background:#005bbf;border-color:#005bbf;color:#fff}
.ct-import-preview-layer .ct-import-actions>.ct-import-download:focus-visible{outline:2px solid #007aff;outline-offset:3px}

/* Opt-in full-content preview for constrained inquiry data cells. */
.inquiry-resizable-table .inquiry-cell-preview{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:20px;max-height:20px}
.inquiry-resizable-table .inquiry-cell-preview .autocontent-item{max-width:none!important;overflow:visible!important;display:inline!important}
.inquiry-resizable-table .inquiry-cell-preview:focus-visible{outline:1px solid #007aff;outline-offset:-1px}
.ct-overflow-preview.ct-app.ct-compact-ui.ct-ui-standard.ct-overflow-preview--highlight{border:1px solid #007aff;box-shadow:0 0 0 2px rgba(0,122,255,.12),0 4px 16px rgba(0,0,0,.14);font-size:12px!important;line-height:1.5!important}

.inquiry-resizable-table .inquiry-cell-preview--wrap,.inquiry-resizable-table .inquiry-requirement-full{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:none;height:auto;overflow:visible;line-height:20px;text-overflow:clip}

/* Company names consume the actual column width, without a second text cap. */
.inquiry-resizable-table .inquiry-company-name{display:inline;width:auto;max-width:none;overflow:visible;white-space:inherit;text-overflow:clip}

.inquiry-append{padding:12px}.inquiry-append h3,.inquiry-additional-requirements h3{font-size:13px;font-weight:600}.inquiry-additional-requirements{width:100%;padding:8px 12px}.inquiry-additional-row{padding:8px 0;border-bottom:1px solid #f0f0f2;overflow-wrap:anywhere;font-size:12px;line-height:1.5}.inquiry-additional-row small{font-size:12px;color:#6e6e73}

.inquiry-clipboard{padding:8px 0 12px}.inquiry-clipboard p{font-size:12px;line-height:1.5;margin:6px 0;color:#6e6e73}

.inquiry-additional-requirements{min-width:0;max-width:100%;box-sizing:border-box}
.inquiry-additional-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #d2d2d7;border-radius:6px}
.inquiry-additional-requirements .inquiry-additional-table{width:100%;min-width:960px;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.5;margin:0}
.inquiry-additional-requirements .inquiry-additional-table th,.inquiry-additional-requirements .inquiry-additional-table td{padding:6px 8px;text-align:left;vertical-align:top;border-bottom:1px solid #f0f0f2;white-space:normal;overflow-wrap:anywhere}
.inquiry-additional-requirements .inquiry-additional-table th{background:#f5f5f7;font-weight:600}
.inquiry-additional-table th:nth-child(1){width:28%}.inquiry-additional-table th:nth-child(2){width:8%}.inquiry-additional-table th:nth-child(3){width:12%}.inquiry-additional-table th:nth-child(4){width:15%}.inquiry-additional-table th:nth-child(5){width:16%}.inquiry-additional-table th:nth-child(6){width:13%}.inquiry-additional-table th:nth-child(7){width:8%}
.inquiry-additional-table tr:last-child td{border-bottom:0}.inquiry-additional-table .inquiry-additional-empty{color:#6e6e73;text-align:center;padding:12px}

/* The additional-requirement table fills its form surface at every viewport width. */
.inquiry-additional-requirements{grid-column:1 / -1;flex:0 0 100%;width:100%;max-width:100%}
.inquiry-additional-requirements .inquiry-additional-table{min-width:0;width:100%;table-layout:fixed}
.inquiry-additional-description{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;cursor:help}
.inquiry-additional-description:focus-visible{outline:1px solid #007aff;outline-offset:2px}
@media(max-width:767px){.inquiry-additional-requirements{padding:6px 0}.inquiry-additional-requirements .inquiry-additional-table th,.inquiry-additional-requirements .inquiry-additional-table td{padding:5px 4px}}

/* Match the existing inquiry panel headings rather than native h3 typography. */
.inquiry-form-page .inquiry-additional-requirements{padding:0;margin:0 0 12px;border:1px solid var(--if-line,#e5e5ea);border-radius:8px;overflow:hidden;background:#fff}
.inquiry-form-page .inquiry-additional-requirements>.panel-heading{padding:10px 14px;margin:0;border:0;box-shadow:none}
.inquiry-form-page .inquiry-additional-body{padding:8px 12px 12px;min-width:0}
.inquiry-form-page .inquiry-additional-table-wrap{border-color:var(--if-line,#e5e5ea);border-radius:6px;background:#fff}
.inquiry-form-page .inquiry-additional-table th{color:var(--if-text,#1d1d1f);background:#f7f7f9}
@media(max-width:767px){.inquiry-form-page .inquiry-additional-requirements>.panel-heading{padding:8px 10px}.inquiry-form-page .inquiry-additional-body{padding:6px 8px 8px}}

.inquiry-mobile-requirements.ct-app{font-size:12px;min-width:0;width:100%;box-sizing:border-box}
.inquiry-mobile-requirements .inquiry-additional-table-wrap{width:100%}
.inquiry-mobile-requirements .inquiry-additional-description{touch-action:manipulation}
.inquiry-mobile-requirements-help{font-size:12px;line-height:1.5;color:#6e6e73;margin:6px 0 0}

/* Mobile-only appended requirements: single-column records, no compressed grid. */
.inquiry-mobile-requirements{box-sizing:border-box;min-width:0;width:100%}
.inquiry-mobile-requirement{padding:12px 0;border-bottom:1px solid #f0f0f2;min-width:0}
.inquiry-mobile-requirement:first-child{padding-top:0}.inquiry-mobile-requirement:last-child{border-bottom:0;padding-bottom:0}
.inquiry-mobile-requirement-text{font-size:12px;line-height:1.65;color:#1d1d1f;white-space:pre-wrap;overflow-wrap:anywhere}
.inquiry-mobile-requirement-toggle{display:block;min-height:36px;padding:6px 0;margin:0;border:0;background:transparent;color:#007aff;font-size:12px;cursor:pointer;touch-action:manipulation}
.inquiry-mobile-requirement-toggle[hidden]{display:none!important}.inquiry-mobile-requirement-toggle:focus-visible{outline:2px solid #007aff;outline-offset:2px;border-radius:4px}
.inquiry-mobile-requirement-fields{margin:8px 0;font-size:12px;line-height:1.5}
.inquiry-mobile-requirement-fields>div{display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px;padding:4px 0}
.inquiry-mobile-requirement-fields dt{font-weight:400;color:#6e6e73}.inquiry-mobile-requirement-fields dd{margin:0;color:#1d1d1f;overflow-wrap:anywhere}
.inquiry-mobile-requirement-remark{white-space:pre-wrap}
.inquiry-mobile-requirement-meta{display:flex;flex-wrap:wrap;gap:4px 12px;justify-content:space-between;color:#6e6e73;font-size:12px;line-height:1.5}
.inquiry-mobile-requirement-meta time{white-space:nowrap}.inquiry-mobile-requirement-empty{margin:0;padding:8px 0;color:#6e6e73;font-size:12px}

/* Explicit viewport-managed dialog: textarea sizing is owned by this flex layout. */
body.inquiry-append-document{overflow:hidden}
.inquiry-append-document .inquiry-append{position:fixed;inset:0;box-sizing:border-box;min-height:0;height:100%;padding:10px 12px;background:#fff;overflow:hidden}
.inquiry-append-document .inquiry-append>form{display:flex;flex-direction:column;gap:8px;height:100%;min-height:0;margin:0}
.inquiry-append-document .inquiry-append h3{flex:none;font-size:13px;line-height:20px;margin:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inquiry-append-document .inquiry-clipboard{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 8px;padding:0;flex:none}
.inquiry-append-document .inquiry-clipboard p{margin:0;align-self:center;font-size:12px;line-height:16px}
.inquiry-append-document .js-clipboard-paste{grid-column:1 / -1}
.inquiry-append-document .inquiry-append .form-group{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;flex:none;margin:0;min-width:0}
.inquiry-append-document .inquiry-append .form-group>label{width:auto;float:none;padding:6px 0;margin:0;text-align:right;font-size:12px;line-height:20px}
.inquiry-append-document .inquiry-append .form-group>.col-xs-9{width:auto;float:none;padding:0;min-width:0;min-height:0}
.inquiry-append-document .inquiry-append .form-control{box-sizing:border-box;font-size:12px;line-height:18px;min-height:32px;height:32px;padding:6px 8px;width:100%;margin:0}
.inquiry-append-document .inquiry-append .inquiry-append-demand{flex:1 1 auto;min-height:68px}
.inquiry-append-document .inquiry-append-demand>.col-xs-9{display:flex;flex-direction:column}
.inquiry-append-document .inquiry-append textarea[name="row[requirement_desc]"]{height:100%!important;flex:1;min-height:60px!important;resize:none;overflow:auto}
.inquiry-append-document .inquiry-append textarea[name="row[remark]"]{height:58px!important;min-height:58px!important;resize:none;overflow:auto}
.inquiry-append-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;padding-top:4px}
.inquiry-append-footer p{margin:0;font-size:12px;line-height:18px;color:#6e6e73}
.inquiry-append-footer .btn{height:32px;flex:none}
@media(max-height:520px){.inquiry-append-document .inquiry-append>form{gap:5px}.inquiry-append-document .inquiry-append{padding:8px 10px}.inquiry-append-document .inquiry-append textarea[name="row[remark]"]{height:40px!important;min-height:40px!important}}

.inquiry-append-document .inquiry-append .form-group::before,.inquiry-append-document .inquiry-append .form-group::after{display:none;content:none}

.inquiry-additional-table:has(th:nth-child(8)) th:nth-child(1){width:25%}.inquiry-additional-table:has(th:nth-child(8)) th:nth-child(5){width:13%}.inquiry-additional-table th:nth-child(8){width:6%}

/* Explicit data-page heading roles, including dynamic groups and nested dialogs. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-data-title{font-size:15px!important;font-weight:600!important;line-height:1.4!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-data-subtitle{font-size:13px!important;font-weight:600!important;line-height:1.5!important}

/* Read-only choices preserve the checked state; opt in without enabling interaction. */
:is(.ct-app.ct-compact-ui.ct-ui-standard,.cr-ui-scope) .ct-choice-group[data-ct-choice-readonly] label.ct-choice:has(>input:checked:disabled){opacity:1!important;cursor:default;}
:is(.ct-app.ct-compact-ui.ct-ui-standard,.cr-ui-scope) .ct-choice-group[data-ct-choice-readonly] label.ct-choice>input:checked:disabled~.ct-choice-text{opacity:1!important;background:#007AFF!important;border-color:#007AFF!important;color:#FFF!important;cursor:default;}

/* Explicit single-column form contract. Labels remain beside controls on small screens. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field{display:grid;grid-template-columns:var(--ct-inline-label-width,128px) minmax(0,1fr);column-gap:12px;row-gap:4px;align-items:start;min-width:0}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field>.ct-inline-field-label{grid-column:1;grid-row:1;min-width:0;width:auto;max-width:none;margin:0;padding:6px 0 0;text-align:right;font:400 12px/18px var(--ui-font)}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field>.ct-inline-field-content{grid-column:2;min-width:0;max-width:100%;width:100%}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field-content>.ct-text-input,.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field-content>.cr-ui-select,.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field-content>.ct-unit-input{width:100%;max-width:448px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field-content>.ct-textarea{width:100%;max-width:760px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field-content>.ct-choice-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
@media(max-width:640px){.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field{--ct-inline-label-width:104px;column-gap:8px}}
@media(max-width:380px){.ct-app.ct-compact-ui.ct-ui-standard .ct-inline-field{--ct-inline-label-width:96px;column-gap:6px}}

/* Explicit numeric width: 100px for the value, with an intrinsic-width unit suffix. */
.ct-app.ct-compact-ui.ct-ui-standard input.ct-numeric-input-100{box-sizing:border-box;width:100px!important;min-width:100px!important;max-width:100px!important;flex:0 0 100px!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.ct-numeric-unit-100{display:inline-grid!important;grid-template-columns:100px max-content;align-items:center;flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.ct-numeric-unit-100>input.ct-numeric-input-100{width:100px!important;min-width:100px!important;max-width:100px!important;flex:none!important}
.ct-app.ct-compact-ui.ct-ui-standard .ct-unit-input.ct-numeric-unit-100>:is(.ct-unit,.ct-unit-suffix){width:auto!important;min-width:0!important;white-space:nowrap}

/* Shared picker footer: previous / page count / next / clear stay on one compact row. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal .ct-search-select__footer--inline{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;min-width:0;margin-top:6px;padding-top:6px;border-top:1px solid #e5e7eb}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal .ct-search-select__footer--inline>.ct-search-select__pagination{display:flex;flex:1 1 auto;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:4px;min-width:0;border:0;margin:0;padding:0;font-size:12px;line-height:18px;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal .ct-search-select__footer--inline>.ct-filter-actions{display:flex;flex:0 0 auto;align-items:center;flex-wrap:nowrap;gap:0;min-width:0;margin:0;padding:0}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal .ct-search-select__footer--inline .ct-search-select__page-btn{flex:0 0 auto;height:28px;min-height:28px;padding:4px 5px;margin:0;font-size:12px;line-height:18px;box-sizing:border-box;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal .ct-search-select__footer--inline .ct-search-select__pagination>span{flex:0 0 auto;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard.ct-ui-portal .ct-search-select__footer--inline>[hidden]{display:none!important}

/* Explicit list surface: fixed typography; responsive changes affect layout, never text scale. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-surface{font-family:var(--ui-font);font-size:12px;line-height:1.5;min-width:0;--ct-font:var(--ui-font);--ct-fs-body:12px;--ct-fs-sm:12px;--ct-fs-xs:12px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-surface .ct-list-content :is(th,td,.th-inner){font-size:12px!important;line-height:18px}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-surface .ct-list-content th{font-weight:600}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-list-surface :is(.ct-list-search input,.ct-list-search select,.ct-list-search .ct-search-select__trigger){font-size:12px!important;line-height:18px}

/* Explicit soft feedback; placeholders and ordinary help text keep their own colors. */
.ct-app.ct-compact-ui.ct-ui-standard{--ct-feedback-soft-text:#D66B65}
.ct-app.ct-compact-ui.ct-ui-standard .ct-feedback-soft{color:var(--ct-feedback-soft-text)!important}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn).ct-btn--danger-soft[data-ct-feedback="soft"]:not(:disabled):not([aria-disabled="true"]){color:var(--ct-feedback-soft-text)!important;background:#FFF1F0!important;border-color:#FBC5C0!important}
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn).ct-btn--danger-soft[data-ct-feedback="soft"]:not(:disabled):not([aria-disabled="true"]):is(:hover,:focus-visible){color:#B84E48!important;background:#FFE4E1!important;border-color:#F4A69E!important}
/* Explicit compact card actions, opt-in exception to the standard 12px button label. */
.ct-app.ct-compact-ui.ct-ui-standard .btn.ct-ui-btn.ct-btn--compact-card{font-size:11px!important;line-height:16px!important;min-height:24px!important;height:24px!important;padding:3px 6px!important}

/* Explicit export dialog surface: shared layout, isolated from legacy Layer skins. */
.layui-layer.ct-export-layer{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:#fff;color:#1D1D1F;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
.layui-layer.ct-export-layer>.layui-layer-title{flex:none;box-sizing:border-box;min-height:40px;height:auto;padding:10px 48px 10px 16px;background:#fff;border-bottom:1px solid #F0F0F2;color:#1D1D1F;font-size:15px;font-weight:600;line-height:21px}
.layui-layer.ct-export-layer>.layui-layer-setwin{top:12px;right:12px}
.layui-layer.ct-export-layer>.layui-layer-content{min-height:0;height:auto!important;overflow:auto}
.ct-export-layer .ct-export-dialog{font-size:12px;line-height:1.5;color:#1D1D1F;background:#fff;min-width:0}
.ct-export-dialog .ct-export-dialog__body{padding:16px;display:flex;flex-direction:column;gap:12px}
.ct-export-dialog .ct-export-dialog__scope{padding:12px;background:#EFF6FF;border-radius:8px;display:flex;flex-direction:column;gap:4px}
.ct-export-dialog .ct-export-dialog__scope strong{font-size:13px;font-weight:600}
.ct-export-dialog .ct-export-dialog__facts{margin:0;display:flex;flex-direction:column;gap:8px}
.ct-export-dialog .ct-export-dialog__facts>div{display:flex;gap:12px;min-width:0}
.ct-export-dialog .ct-export-dialog__facts dt{flex:0 0 72px;color:#6E6E73;font-weight:400}
.ct-export-dialog .ct-export-dialog__facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.ct-export-dialog .ct-export-dialog__hint{margin:0;color:#6E6E73}
.ct-export-dialog .ct-export-dialog__status{margin:0;padding:10px 12px;background:#F5F5F7;border-radius:8px;overflow-wrap:anywhere}
.ct-export-dialog[aria-busy="true"] .ct-export-dialog__status{background:#EFF6FF;color:#0066D6}
.ct-export-dialog .ct-export-dialog__footer{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px 16px;border-top:1px solid #F0F0F2}
.ct-export-dialog .ct-export-dialog__footer>.btn{margin:0;min-height:32px;padding:5px 12px;border-radius:8px;font-size:13px;line-height:20px;box-shadow:none}
.ct-export-dialog .ct-export-dialog__footer>.btn-primary{background:#007AFF;border-color:#007AFF;color:#fff}
.ct-export-dialog .ct-export-dialog__footer>.btn-primary:hover{background:#0066D6;border-color:#0066D6}
.ct-export-dialog .ct-export-dialog__footer>.btn-primary:active{background:#005BBF;border-color:#005BBF}
.ct-export-dialog .ct-export-dialog__footer>.btn-default{background:#fff;border:1px solid #D2D2D7;color:#1D1D1F}
.ct-export-dialog .ct-export-dialog__footer>.btn:focus-visible{outline:2px solid #007AFF;outline-offset:2px}

.ct-export-dialog .ec-price-preview{max-height:320px;overflow:auto;min-width:0}.ct-export-dialog .ec-price-preview table{font-size:12px;white-space:nowrap}.ct-export-dialog .ec-price-form label{font-size:12px}.ec-platform-price-edit{white-space:normal;text-align:left;overflow-wrap:anywhere}
.ec-price-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:400}
.ct-export-dialog[aria-busy="true"] [role="status"]::before{content:"";display:inline-block;width:12px;height:12px;margin-right:6px;vertical-align:-2px;border:2px solid #cce3ff;border-top-color:#007AFF;border-radius:50%;animation:ct-price-wait 1s linear infinite}
@keyframes ct-price-wait{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.ct-export-dialog[aria-busy="true"] [role="status"]::before{animation:none}}
.ct-inline-price{display:block;min-width:0;width:100%}.ct-inline-price .form-control{box-sizing:border-box;width:100%;min-width:0;font-size:12px;line-height:1.5;border:1px solid #007AFF;border-radius:6px;padding:6px 8px}.ct-inline-price textarea{height:auto;min-height:48px;resize:vertical}.ct-inline-price [aria-invalid="true"]{border-color:#B42318}.ct-inline-price[aria-busy="true"]{opacity:.7}
.ct-export-dialog .ct-import-progress{height:8px;overflow:hidden;border-radius:6px;background:#E7EDF5;flex:none}.ct-import-progress__fill{display:block;height:100%;background:#007AFF;border-radius:6px;transition:width .2s ease}.ct-import-progress.is-indeterminate .ct-import-progress__fill{animation:ct-import-track 1.3s ease-in-out infinite}.ct-export-dialog .ct-import-progress__text{margin:0;font-size:12px;color:#6E6E73}
.ct-export-dialog .ct-import-result{display:inline-block;padding:2px 6px;border-radius:5px;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}.ct-export-dialog .ct-import-result--success{color:#237A3B;background:#EDF8EF}.ct-export-dialog .ct-import-result--error{color:#B42318;background:#FFF0EE}.ct-export-dialog .ct-import-result--pending{color:#6E6E73;background:#F5F5F7}.ct-export-dialog .ec-price-preview td:nth-last-child(-n+2){min-width:96px;max-width:280px;white-space:normal}
@keyframes ct-import-track{0%{transform:translateX(-100%)}100%{transform:translateX(390%)}}@media(prefers-reduced-motion:reduce){.ct-import-progress__fill{transition:none}.ct-import-progress.is-indeterminate .ct-import-progress__fill{animation:none}}
.ct-export-dialog .ct-import-result--warning{color:#965400;background:#FFF6E5}
/* Explicit utilities: sale amount tone and single-line overflow with full title text. */
.ct-app .ct-money--sale{color:var(--ct-sale-money-color,#d97706)}
.ct-app .ct-text-ellipsis{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Opt-in flexible text; preserves user line breaks and wraps long tokens. */
.ct-app .ct-text-wrap{display:block;min-width:0;max-width:100%;height:auto;max-height:none;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
/* Explicit readonly product/platform amount reference, usable in nested forms. */
.ct-platform-price-reference{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;padding:10px 12px;margin-bottom:12px;border-radius:8px;background:#EFF6FF;font-size:12px;line-height:1.5;min-width:0}
.ct-platform-price-reference>div{display:flex;align-items:baseline;gap:8px;min-width:0}.ct-platform-price-reference>div>span{color:#6E6E73}.ct-platform-price-reference strong{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.ct-platform-price-reference>small{flex-basis:100%;font-size:12px;color:#6E6E73}.ct-platform-price-reference [hidden]{display:none!important}
/* Reference-grid variant shares the existing cards' row, without a separate full-width panel. */
.ct-platform-price-reference.ct-platform-price-reference--grid{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:3px;min-width:0}
.ct-platform-price-reference--grid>small{flex-basis:auto;overflow-wrap:anywhere}.ct-platform-price-reference--grid>header{font-size:13px;font-weight:600}.ct-platform-price-reference--grid>div{flex-wrap:wrap;justify-content:space-between}

/* Opt-in required section heading: title then mark on one centered row. */
.ct-app .ct-heading-required{display:inline-flex;align-items:center;justify-content:flex-start;gap:4px;white-space:nowrap}
.ct-app .ct-heading-required>.ct-required-mark{display:inline-flex;align-items:center;flex:0 0 auto;position:static;width:auto;height:auto;margin:0;padding:0;line-height:1;color:#e57373;background:transparent;border:0}

/* Explicit matrix variant: ordinary Apple data tables retain their horizontal-only rules. */
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table{--ct-table-head:#eaf1fa;--ct-matrix-line:#b8c5d6;border-collapse:collapse!important;border-spacing:0!important;border:1px solid var(--ct-matrix-line)!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>thead>tr>th,.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>tbody>tr>th,.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>tbody>tr>td{border:1px solid var(--ct-matrix-line)!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>thead>tr>th,.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>tbody>tr>th{background:var(--ct-table-head)!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>thead>tr>th{text-align:center!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>thead>tr>th:first-child,.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>tbody>tr>th:first-child{text-align:right!important}
.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>tbody>tr>td.cr-isolation-diagonal{background:#e9edf2!important;text-align:center!important}

.ct-app.ct-compact-ui.ct-ui-standard table.ct-apple-table.ct-matrix-table>tbody>tr>td{text-align:center!important;vertical-align:middle!important}
/* Light explanatory tooltip: priority labels in the requirement form. */
.tooltip.cr-priority-tooltip{z-index:2147483647!important;pointer-events:none;opacity:1!important}
.tooltip.cr-priority-tooltip .tooltip-inner{box-sizing:border-box;background:#f8fbff!important;color:#243247!important;border:1px solid #69a8ff!important;box-shadow:0 3px 12px rgba(45,93,155,.14);border-radius:6px;max-width:min(360px,calc(100vw - 24px));padding:9px 12px;font-family:system-ui,"Segoe UI","Microsoft YaHei",sans-serif;font-size:12px!important;font-weight:400;line-height:1.7!important;text-align:left;white-space:normal;overflow-wrap:break-word;text-shadow:none}
.tooltip.cr-priority-tooltip.top .tooltip-arrow{border-top-color:#69a8ff!important}
.tooltip.cr-priority-tooltip.bottom .tooltip-arrow{border-bottom-color:#69a8ff!important}

/* Explicit opt-in for fields with hover explanations. */
.ct-app .ct-field-hover-help > label,
.ct-app .ct-field-hover-help > input.form-control { cursor: pointer; }
.ct-app .ct-field-hover-help:hover > input.form-control {
    border-color: #007AFF;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, .14);
}

/* Explicit opt-in: one shop per row, name left and tier prices right. */
.ct-app .ct-shop-price-row{display:grid;grid-template-columns:minmax(80px,1fr) max-content;align-items:start;gap:24px;padding:6px 0;text-align:left;font-size:12px;line-height:1.5}
.ct-app .ct-shop-price-row+.ct-shop-price-row{border-top:1px solid var(--ct-border-color,#e5e7eb)}
.ct-app .ct-shop-price-name,.ct-app .ct-shop-price-tiers{min-width:0;overflow-wrap:anywhere}
.ct-app .ct-shop-price-name{align-self:center;text-align:center}
.ct-app .ct-shop-price-name a{font-size:inherit;line-height:inherit}

/* Keep quantity/amount groups compact within wide shop cells. */
.ct-app .ct-shop-price-tiers{justify-self:end;width:max-content;max-width:100%}

.ct-app .ct-shop-price-name .ec-edit-shop-row{display:inline;padding:0;border:0;background:transparent;color:var(--ct-primary,#007aff);font:inherit;line-height:inherit;text-align:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.ct-app .ct-shop-price-name .ec-edit-shop-row:hover{text-decoration:underline}
.ct-app .ct-shop-price-name .ec-edit-shop-row:focus-visible{outline:2px solid var(--ct-primary,#007aff);outline-offset:2px}

.ct-app button.ec-matrix-tier-link{padding:0;border:0;background:transparent;cursor:pointer}
.ct-app button.ec-matrix-tier-link:focus-visible{outline:2px solid var(--ct-primary,#007aff);outline-offset:2px}

/* Compact record heading: text action plus a separate outbound link. */
.ct-app .ct-record-heading{display:flex;align-items:center;gap:4px;min-width:0}
.ct-app .ct-record-link{display:inline-flex;flex:0 0 20px;align-items:center;justify-content:center;width:20px;height:20px;border-radius:4px;color:var(--ct-primary,#007aff);font-size:11px;vertical-align:middle;text-decoration:none}
.ct-app .ct-record-link:hover{background:#eff6ff;color:#1d4ed8;text-decoration:none}
.ct-app .ct-record-link:focus-visible{outline:2px solid var(--ct-primary,#007aff);outline-offset:1px}
/* Owner-scoped memo summaries and lazily paged history. */
.ct-app .ct-memo-group{font-size:12px;line-height:1.5}
.ct-app .ct-memo-group+.ct-memo-group{margin-top:8px;border-top:1px solid var(--ct-border,#e5e7eb);padding-top:6px}
.ct-app .ct-memo-group>b{font-size:12px;font-weight:600;color:var(--ct-text-2,#334155)}
.ct-app .ct-owner-memo{padding:6px 0;min-width:0;font-size:12px;line-height:1.5;text-align:left}
.ct-app .ct-owner-memo+.ct-owner-memo{border-top:1px solid var(--ct-border,#e5e7eb)}
.ct-app .ct-owner-memo>header{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ct-app .ct-owner-memo>header>strong{min-width:0;overflow-wrap:anywhere;font-size:12px;font-weight:500}
.ct-app .ct-owner-memo button{min-height:28px;padding:2px 5px;border:0;border-radius:4px;background:transparent;color:var(--ct-primary,#007aff);font:inherit;cursor:pointer}
.ct-app .ct-owner-memo button:hover{background:#eff6ff}
.ct-app .ct-owner-memo button:focus-visible{outline:2px solid var(--ct-primary,#007aff);outline-offset:1px}
.ct-app .ct-owner-memo button:disabled{cursor:wait;opacity:.6}
.ct-app .ec-memo-history-toggle{flex-shrink:0;white-space:nowrap}
.ct-app .ct-owner-memo-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:help}
.ct-app .ct-owner-memo>small,.ct-app .ct-memo-status{display:block;font-size:12px;color:var(--ct-muted,#64748b);overflow-wrap:anywhere}
.ct-app .ct-memo-pager{margin-top:6px;border-top:1px solid var(--ct-border,#e5e7eb);padding-top:6px}
.ct-app .ct-memo-pager[hidden]{display:none!important}
.ct-app .ct-memo-items{max-height:280px;overflow:auto;overscroll-behavior:contain}
.ct-app .ct-memo-items article{padding:6px 0;border-bottom:1px solid var(--ct-border,#e5e7eb)}
.ct-app .ct-memo-items article header{display:flex;flex-wrap:wrap;gap:4px;color:var(--ct-muted,#64748b);font-size:12px}
.ct-app .ct-memo-items p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}
.ct-app .ct-memo-pager footer{display:flex;align-items:center;gap:6px;margin-top:4px}
@media(prefers-reduced-motion:reduce){.ct-app .ct-memo-status .fa-spin{animation:none}}
.ct-app .ct-owner-memo--compact{margin-top:6px;border-top:1px solid var(--ct-border,#e5e7eb);padding-top:6px}
.ct-app .ct-owner-memo--compact>header{flex-wrap:wrap;gap:2px}
.ct-app .ct-owner-memo--surface{box-sizing:border-box;padding:6px 4px;background:#f8fafc;border-top:2px solid #cbd5e1;cursor:default}
.ct-app .ct-rival-memo-summary .ct-rival-memo-snippet{display:block;width:100%;min-height:0;padding:2px 0;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;font-size:11px;line-height:16px;color:#475569}
.ct-app .ct-rival-memo-time{display:block;font-size:11px;line-height:16px;color:#64748b;overflow-wrap:anywhere}
.ct-memo-dialog{height:100%;min-height:0;box-sizing:border-box;padding:10px 12px;display:flex;flex-direction:column;overflow:hidden}
.ct-memo-dialog>.ct-owner-memo{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;padding:0;border:0;background:#fff}
.ct-app.ct-memo-dialog .ct-owner-memo--compact .ct-owner-memo-preview{display:block;flex-shrink:0;max-height:108px;overflow:auto;white-space:pre-wrap;-webkit-line-clamp:unset;font-size:12px;line-height:18px}
.ct-memo-dialog .ct-memo-pager{display:flex;flex:1;min-height:80px;flex-direction:column}
.ct-memo-dialog .ct-memo-items{flex:1;min-height:0;max-height:none}
.ct-memo-dialog .ct-memo-quick{flex-shrink:0;margin-top:8px;border-top:1px solid #e5e7eb;padding-top:6px}
.ct-memo-dialog .ct-memo-quick textarea{max-height:108px;overflow-y:auto}
.ct-memo-dialog--entry .ct-memo-quick{border-top:0;margin-top:0;padding-top:0}
.ct-memo-dialog--entry .ct-memo-quick textarea{min-height:108px}
.ct-app .ct-export-downloads{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ct-app .ct-owner-memo--compact .ct-owner-memo-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:pre-wrap;overflow-wrap:anywhere}
.ct-app .ct-memo-quick[hidden]{display:none!important}
.ct-app .ct-memo-quick label{display:block;width:100%;font-size:12px;font-weight:400}
.ct-app .ct-memo-quick textarea{display:block;width:100%;min-height:64px;padding:6px;box-sizing:border-box;font-size:12px;line-height:18px;resize:vertical;white-space:pre-wrap}
.ct-app .ct-memo-quick footer{display:flex;gap:6px}
.ct-app .ct-memo-quick-status{font-size:12px;white-space:normal;overflow-wrap:anywhere}
.ct-app .ct-memo-quick-status:not(:empty){margin:4px 0}
@media(prefers-reduced-motion:reduce){.ct-app .ct-memo-quick-status .fa-spin{animation:none}}
.ct-app .ct-shop-price-name{display:flex;align-items:center;justify-content:center;gap:4px}
.ct-app .ct-shop-details{align-self:center;min-width:0}
.ct-app .ct-shop-details .ct-owner-memo{text-align:left}
.ct-app .ct-shop-price-name .ec-edit-shop-row{min-width:0;flex:0 1 auto}

/* Explicit table-header reordering: keep resize handles independently actionable. */
.ct-app th.ct-column-draggable{cursor:grab;user-select:none}
.ct-app th.ct-column-draggable:active{cursor:grabbing}
.ct-app th.ct-column-draggable.is-column-dragging{opacity:.55}
.ct-app th.ct-column-draggable.is-column-drop-before{box-shadow:inset 3px 0 #007aff!important}
.ct-app th.ct-column-draggable.is-column-drop-after{box-shadow:inset -3px 0 #007aff!important}

/* Explicit cell alignment for compact content in tall comparison rows. */
.ct-app td.ct-cell-top{vertical-align:top!important}

/* Shop identity and latest memo share one compact surface; rival memo panels stay independent. */
.ct-app .ct-shop-details .ct-shop-price-name{align-items:flex-start;gap:3px;line-height:18px}
.ct-app .ct-shop-details .ct-shop-price-name .ec-edit-shop-row{font-weight:500;line-height:18px}
.ct-app .ct-shop-details .ct-shop-price-name .ct-record-link{margin-top:0;width:18px;height:18px;flex-basis:18px}
.ct-app .ct-shop-details>.ct-rival-memo-summary{margin:5px 0 0;padding:0;border:0;background:transparent;border-radius:0}
.ct-app .ct-shop-details .ct-rival-memo-time{margin:0 0 2px;color:#8793a5;line-height:16px;font-variant-numeric:tabular-nums}
.ct-app .ct-shop-details .ct-rival-memo-snippet{padding:0;line-height:16px;color:#64748b;border-radius:3px}
.ct-app .ct-shop-details .ct-rival-memo-snippet:hover{background:#eff6ff;color:#2563eb}

/* Shared business-form close icon, independent of the outer requirement window. */
:is(#cr-form,#cr-requirement-items,.ct-app,.cr-ui-scope) button.ct-form-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 28px!important;width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;border:1px solid transparent!important;border-radius:5px!important;color:#d94b4b!important;background:transparent!important;box-shadow:none!important;cursor:pointer}
button.ct-form-close>span{display:block!important;color:#d94b4b!important;font-family:Arial,sans-serif!important;font-size:24px!important;line-height:24px!important;font-weight:400!important;pointer-events:none}
:is(#cr-form,#cr-requirement-items,.ct-app,.cr-ui-scope) button.ct-form-close:is(:hover,:focus-visible){background:#fff0f0!important;border-color:#efbaba!important;outline:0}

/* Single product-name width contract across all nested editor surfaces. */
:is(#cr-requirement-items,.ct-app,.cr-ui-scope) :is(input[data-pp-product-name],input[data-combined-product-name],.cr-cas-top-row>input.cr-cas-product-name,.cr-csp-name-row>input){width:460px!important;flex:0 1 460px!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
:is(#cr-requirement-items,.ct-app,.cr-ui-scope) .pp-name-top-row>.pp-auto-product-name{flex:0 1 auto!important;width:auto!important;min-width:0!important;max-width:calc(100% - 44px)!important}

/* Requirement historical-data editor: scope business content, never the Layer shell. */
.ct-app.ct-legacy-editor { padding:12px; max-height:calc(100dvh - 158px); overflow:auto; }
.ct-app.ct-legacy-editor .ct-legacy-help { margin:0 0 10px; color:#5b677a; font-size:12px; }
.ct-app.ct-legacy-editor .cr-field { display:grid; grid-template-columns:minmax(96px,140px) minmax(0,1fr); gap:8px; align-items:start; margin:0 0 8px; }
.ct-app.ct-legacy-editor .cr-field>label { margin:0; padding-top:7px; text-align:right; font-size:12px; font-weight:400; overflow-wrap:anywhere; }
.ct-app.ct-legacy-editor .cr-field>div { min-width:0; }
.ct-app.ct-legacy-editor .form-control { width:100%; max-width:100%; font-size:12px; }
.ct-app.ct-legacy-editor textarea { min-height:56px; }
@media(max-width:600px) { .ct-app.ct-legacy-editor .cr-field { grid-template-columns:96px minmax(0,1fr); } }

/* Confirmation prompts grow with their short message, including nested product forms. */
.layui-layer.ct-ui-layer.ct-ui-confirm{display:flex;flex-direction:column;height:auto!important;min-height:0!important;max-width:calc(100vw - 24px);box-sizing:border-box}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-title{flex:0 0 auto;min-height:36px;height:auto;line-height:24px;padding:6px 48px 6px 12px}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-content{flex:0 0 auto;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding:12px 16px!important;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:20px}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-content>[data-cr-ui-surface="layer"]{display:block;min-height:0!important;padding:0!important;margin:0!important;background:transparent!important;overflow:visible!important}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-content:has(>.layui-layer-ico),.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-content:has(.layui-layer-ico){padding-left:48px!important}
.layui-layer.ct-ui-layer.ct-ui-confirm .layui-layer-ico{left:12px;top:12px}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-btn{flex:0 0 auto;padding:8px 12px!important}

/* Keep confirmation close controls in the title bar's upper-right corner. */
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-setwin{position:absolute!important;display:flex!important;align-items:center;justify-content:center;top:6px!important;right:8px!important;width:28px!important;height:28px!important;line-height:28px!important;margin:0!important;padding:0!important;box-sizing:border-box}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-setwin>.layui-layer-close{position:absolute!important;top:0!important;left:0!important;right:auto!important;display:inline-flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;margin:0!important;background:none!important;color:#606575}

/* Use a single CSS cross: enlarging Layer's sprite viewport exposes adjacent icons. */
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-setwin>.layui-layer-close::before,
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-setwin>.layui-layer-close::after{content:"";position:absolute;width:14px;height:1.5px;background:currentColor;left:7px;top:13px;border:0;border-radius:1px}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-setwin>.layui-layer-close::before{transform:rotate(45deg)}
.layui-layer.ct-ui-layer.ct-ui-confirm>.layui-layer-setwin>.layui-layer-close::after{transform:rotate(-45deg)}

/* Explicit legacy admin surfaces: Apple Blue / fixed 15-13-12 typography.
   Opt-in only; geometry of plugin tables and product column widths stays owned by the host. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-admin-surface {
 --ct-primary:#007AFF;--ct-primary-hover:#0066D6;--ct-primary-soft:#EFF6FF;--ct-primary-bd:#B8D8FF;
 --ct-text:#1D1D1F;--ct-text-2:#6E6E73;--ct-muted:#6E6E73;--ct-bg:#F5F5F7;--ct-card:#FFF;
 --ct-border:#D2D2D7;--ct-border-2:#F0F0F2;--ct-radius:8px;
 font-family:var(--ui-font,system-ui);font-size:12px!important;line-height:1.5;min-width:0;
}
.ct-admin-surface :is(p,small,label,dt,dd,th,td,input,select,textarea,button,a,summary,time,output){font-size:12px!important;line-height:1.5}
.ct-admin-surface :is(h1,h2,h3,h4,h5){color:var(--ct-text);font-size:13px!important;font-weight:600;line-height:1.5;margin-top:0}
.ct-admin-surface>header :is(h1,h2),.ct-admin-surface .qt-toolbar>h2,.ct-admin-surface .qp-heading h1,
.ct-admin-surface .cc-heading h1,.ct-admin-surface .cb-heading h1,.ct-admin-surface .qr-detail-header h2{font-size:15px!important;line-height:1.4}
.ct-admin-surface :is(.qt-quote-state,.qt-antenna-title-input,.qt-title-row label,.qt-title-row input,.qt-title-row textarea,.qt-tier-error,.qt-stack-error,.qt-field-error,.qp-field-error,.cc-field-error,.of-field-error,.qr-status){font-size:12px!important}
.ct-admin-surface .btn.ct-ui-btn{min-height:30px;height:auto;padding:5px 10px;border-radius:6px;font-weight:400;white-space:nowrap;line-height:18px;box-shadow:none}
.ct-admin-surface .btn-primary,.ct-admin-surface .btn-success{background:#007AFF!important;border-color:#007AFF!important;color:#FFF!important}
.ct-admin-surface :is(.btn-primary,.btn-success):hover{background:#0066D6!important;border-color:#0066D6!important}
.ct-admin-surface :is(.btn-primary,.btn-success):active{background:#005BBF!important;border-color:#005BBF!important}
.ct-admin-surface :is(.btn-primary,.btn-success):disabled{opacity:.5;cursor:not-allowed}
.ct-admin-surface .btn-default{background:#FFF;color:var(--ct-text);border:1px solid var(--ct-border)}
.ct-admin-surface .btn[aria-pressed="true"],.ct-admin-surface .btn.is-active{background:#EFF6FF;color:#007AFF;border-color:#007AFF}
.ct-admin-surface .ct-choice{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.ct-admin-surface .ct-choice>.ct-choice-text{font-size:12px!important;font-weight:400;min-height:28px}
.ct-admin-surface :is(.form-control.ct-text-input,.layui-layer-input.ct-text-input,select.form-control){box-sizing:border-box;height:32px!important;min-height:32px;padding:5px 10px;border:1px solid transparent;border-radius:6px;background:#F5F5F7;color:var(--ct-text);box-shadow:none}
.ct-admin-surface :is(.form-control.ct-text-input,.layui-layer-input.ct-text-input,select.form-control):hover{border-color:#D2D2D7}
.ct-admin-surface :is(.form-control.ct-text-input,.layui-layer-input.ct-text-input,select.form-control):focus{background:#FFF;border-color:#007AFF;outline:0;box-shadow:0 0 0 2px rgba(0,122,255,.14)}
.ct-admin-surface :is(input,select,textarea)[aria-invalid="true"]{border-color:#B42318!important}
.ct-admin-surface :is(input,textarea)[readonly]{color:#6E6E73}
.ct-admin-surface :is(input,textarea,select):disabled{opacity:.65;cursor:not-allowed}
.ct-admin-surface textarea.ct-textarea{background:#F5F5F7;border:1px solid transparent;border-radius:6px;padding:6px 10px;line-height:1.5}
.ct-admin-surface textarea.ct-textarea:focus{background:#FFF;border-color:#007AFF;outline:0}
.ct-admin-surface :is(.qt-error,.qr-error,.qp-error,.cc-error,.of-error,.cb-error,#qr-message,#qt-list-error):empty{display:none!important}
.ct-admin-surface :is(.qp-toolbar,.cb-toolbar,.cc-toolbar,.of-toolbar,.qc-toolbar,.qr-header-actions,.qr-filter-actions,.qt-filter-actions,.qt-status-toolbar,.aq-actions,.er-actions){display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px}
.ct-admin-surface :is(.qp-toolbar,.cb-toolbar,.cc-toolbar,.of-toolbar,.qc-toolbar,.qr-header-actions,.qr-filter-actions,.qt-filter-actions,.qt-status-toolbar,.aq-actions,.er-actions)>.btn{margin:0!important}
.ct-admin-surface :is(.qp-editor-grid,.qp-form-grid,.cc-grid,.of-form-grid,.qc-form-grid){display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px}
.ct-admin-surface :is(.qp-editor-field,.qp-field,.cc-field,.of-field,.qc-field){display:grid;grid-template-columns:120px minmax(0,448px);gap:6px 10px;align-items:start;min-width:0}
.ct-admin-surface :is(.qp-editor-field,.qp-field,.cc-field,.of-field,.qc-field)>label{padding-top:6px;text-align:right;margin:0;font-weight:400}
.ct-admin-surface :is(.qp-editor-field,.qp-field,.cc-field,.of-field,.qc-field)>:not(label){min-width:0}
.ct-admin-surface :is(.qp-editor-section,.cc-section,.of-section)>header{border-bottom:0!important}
.ct-admin-surface :is(.qp-form-footer,.qc-form-footer,.cc-form-footer,.of-form-footer,.cb-form-footer,.qt-process-footer,.qt-bom-footer){display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;flex-shrink:0;background:#FFF;padding:10px 12px}
.ct-admin-surface table.ct-apple-table :is(th,td){text-align:left;vertical-align:middle}
.ct-admin-surface .qt-connector-actions .btn{min-height:28px;padding:3px 5px}
.ct-quote-layer.ct-ui-layer{display:flex;flex-direction:column;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);border-radius:12px;overflow:hidden}
.ct-quote-layer.ct-ui-layer>.layui-layer-title{flex-shrink:0;min-height:40px;height:auto;line-height:26px;padding:6px 80px 6px 12px;background:#FFF;color:#1D1D1F;border-bottom:1px solid #F0F0F2;font-size:15px!important;font-weight:600}
.ct-quote-layer.ct-ui-layer>.layui-layer-content{flex:1 1 auto;min-height:0;max-width:100%;overflow:auto}
.ct-quote-layer.ct-ui-layer>.layui-layer-btn{flex-shrink:0;display:flex;justify-content:center;gap:6px;padding:10px 12px;background:#FFF}
.ct-quote-layer.ct-ui-layer>.layui-layer-btn a{font-size:13px;height:30px;line-height:28px;margin:0;border-radius:6px}
.ct-quote-layer.ct-ui-layer>.layui-layer-btn .layui-layer-btn0{background:#007AFF;border-color:#007AFF;color:#FFF}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin{top:6px;right:8px}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin a{position:relative;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:2px;background:none;color:#6E6E73;border-radius:6px}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin a:hover{background:#F5F5F7}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin .layui-layer-close::before,
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin .layui-layer-close::after{content:"";position:absolute;width:14px;height:1.5px;left:7px;top:13px;background:currentColor;transform:rotate(45deg)}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin .layui-layer-close::after{transform:rotate(-45deg)}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin .layui-layer-max::before{content:"";width:12px;height:12px;border:1.5px solid currentColor;border-radius:1px}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin .layui-layer-maxmin::before{width:10px;height:10px;transform:translate(-2px,2px)}
.ct-quote-layer.ct-ui-layer>.layui-layer-setwin .layui-layer-maxmin::after{content:"";position:absolute;width:9px;height:9px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;left:11px;top:6px}
@media(max-width:680px){
 .ct-admin-surface :is(.qp-editor-field,.qp-field,.cc-field,.of-field,.qc-field){grid-template-columns:minmax(0,1fr)}
 .ct-admin-surface :is(.qp-editor-field,.qp-field,.cc-field,.of-field,.qc-field)>label{text-align:left;padding-top:0}
 .ct-admin-surface :is(.qt-list-search,.qp-filter,.cc-filter,.cb-filter,.qr-filter-grid){max-width:100%;min-width:0}
 .ct-admin-surface :is(.qr-detail-basic,.qt-fields){grid-template-columns:minmax(0,1fr)}
}
.ct-quote-layer.ct-ui-layer>.layui-layer-content,.ct-quote-layer .ct-admin-surface{background:#FFF}
.ct-admin-surface :is(.qp-editor-grid,.qp-form-grid,.cc-grid,.of-form-grid,.qc-form-grid){align-content:start}
.ct-admin-surface :is(.qp-field-error,.cc-field-error,.of-field-error,.qc-field-error,.cb-field-error):empty{display:none!important}
.ct-quote-layer .ct-admin-surface.of-dialog{height:100%;display:flex;flex-direction:column}
.ct-quote-layer .of-edit-form{display:flex;flex:1;min-height:0;flex-direction:column}
.ct-quote-layer .of-edit-form .of-form-grid{flex:1;min-height:0;overflow:auto;padding-bottom:8px}
.ct-quote-layer .of-edit-form .of-field>label[data-grade]{color:var(--ct-text)}
.ct-admin-surface .aq-add-actions{display:flex;justify-content:center;gap:6px}
.ct-admin-surface .qt-chapter>h2{border-bottom:0!important;padding-bottom:0}
.ct-admin-surface #qt-section-basic .qt-title-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.ct-admin-surface [data-ct-field-width="wide"]{--ct-admin-field-max-width:720px}
.ct-admin-surface #qt-section-basic .qt-title-row>div{display:grid;grid-template-columns:120px minmax(0,var(--ct-admin-field-max-width,448px));gap:6px 10px;align-items:start}
.ct-admin-surface #qt-section-basic .qt-title-row>div>label{text-align:right!important;padding-top:6px;margin:0!important}
.ct-admin-surface #qt-section-basic .qt-grade-default-tools{grid-column:2}
.ct-quote-layer .ct-admin-surface .qt-fields{grid-template-columns:minmax(0,1fr)}
@media(max-width:680px){.ct-admin-surface #qt-section-basic .qt-title-row>div{grid-template-columns:minmax(0,1fr)}.ct-admin-surface #qt-section-basic .qt-title-row>div>label{text-align:left!important;padding-top:0}.ct-admin-surface #qt-section-basic .qt-grade-default-tools{grid-column:1}}

/* Reuse the existing Layer host for explicit right-hand drawers. */
.ct-quote-layer.ct-ui-layer.ct-ui-drawer{border-radius:0;max-width:100vw;max-height:100vh;max-height:100dvh;margin:0;animation:ct-admin-drawer-enter .24s cubic-bezier(.2,.7,.2,1)}
.ct-ui-drawer>.layui-layer-content{height:100%;overflow:hidden!important}
@keyframes ct-admin-drawer-enter{from{transform:translateX(100%);opacity:.65}to{transform:translateX(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.ct-quote-layer.ct-ui-layer.ct-ui-drawer{animation:none}}

/* Parent-centred layers use outer-box dimensions, including compact confirmations. */
.ct-quote-layer.ct-quote-child-layer{box-sizing:border-box;min-width:0;min-height:0}

/* Destructive actions keep their semantic colour while disabled. */
.ct-app.ct-compact-ui.ct-ui-standard :is(.ct-btn,.btn.ct-ui-btn).ct-btn--danger-soft:is(:disabled,[aria-disabled="true"]){color:#B42318!important;background:#FFF1F0!important;border-color:#FBC5C0!important;opacity:.5;cursor:not-allowed}

/* Explicit compact choices: shared by cable units, colors, compliance and salt spray. */
:is(.ct-app.ct-compact-ui.ct-ui-standard,.cr-ui-scope) .ct-choice-group.ct-choice-group--compact label.ct-choice{margin:0;flex:0 0 auto;width:auto;min-width:0;}
:is(.ct-app.ct-compact-ui.ct-ui-standard,.cr-ui-scope) .ct-choice-group.ct-choice-group--compact label.ct-choice>.ct-choice-text{font-size:12px!important;line-height:18px!important;min-height:28px!important;padding:4px 6px!important;white-space:nowrap;border-radius:6px!important;box-sizing:border-box;}

/* Opt-in section guidance stays beside the heading and wraps in narrow panels. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading--with-note{display:flex;justify-content:flex-start!important;align-items:baseline;flex-wrap:wrap;gap:4px 8px!important;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading--with-note>.ct-section-heading-note{font-size:12px!important;font-weight:400;line-height:1.5;color:#6E6E73;min-width:0;overflow-wrap:anywhere;}

.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading--with-note>.ct-section-heading-title{display:inline-flex;align-items:baseline;gap:3px;flex:0 0 auto;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading--with-note>.ct-section-heading-note{flex:0 1 auto;margin:0!important;text-align:left;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-section-heading--with-note>.ct-section-heading-note--warning{color:#C96B6B!important;}

/* Explicit compact table actions never split a button label across lines. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-table-action-group{display:flex;align-items:center;justify-content:flex-start;gap:4px;flex-wrap:nowrap;}
.ct-app.ct-compact-ui.ct-ui-standard .ct-table-action-group>button{flex:0 0 auto;width:auto;min-width:0;white-space:nowrap!important;word-break:normal;}

/* Explicit footer primary action, preserving Layer button order and callbacks. */
.layui-layer.ct-ui-layer[data-ct-primary-button="1"]>.layui-layer-btn>.layui-layer-btn0{background:#FFF!important;border-color:#D2D2D7!important;color:#1D1D1F!important;}
.layui-layer.ct-ui-layer[data-ct-primary-button="1"]>.layui-layer-btn>.layui-layer-btn1{background:#007AFF!important;border-color:#007AFF!important;color:#FFF!important;}
.layui-layer.ct-ui-layer[data-ct-primary-button="1"]>.layui-layer-btn>.layui-layer-btn1:hover{background:#0066D6!important;border-color:#0066D6!important;}
.layui-layer.ct-ui-layer[data-ct-primary-button="1"]>.layui-layer-btn>.layui-layer-btn1:active{background:#005BBF!important;border-color:#005BBF!important;}

/* Standard Layer close action uses the same red as ct-form-close. */
.layui-layer.ct-ui-layer>.layui-layer-setwin{top:6px;right:8px;}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close{position:relative!important;top:0!important;left:auto!important;right:auto!important;display:inline-flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;margin:0!important;border:1px solid transparent;border-radius:5px;box-sizing:border-box;background:none!important;color:#D94B4B!important;opacity:1;}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close::before,.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close::after{content:"";position:absolute;width:14px;height:1.5px;left:6px;top:12px;background:currentColor;border:0;border-radius:1px;transform:rotate(45deg);}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close::after{transform:rotate(-45deg);}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close:is(:hover,:focus-visible){background:#FFF0F0!important;border-color:#EFBABA;outline:0;}

/* 20261120: opt-in compact login surface. Does not match authenticated business forms. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface { box-sizing:border-box; min-width:0; padding:28px; border:0; border-radius:14px; background:#FFF; box-shadow:0 8px 32px rgba(29,29,31,.07); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; font-size:12px; line-height:1.5; }
.ct-login-surface [hidden] { display:none!important; }
.ct-login-surface .login-brand { display:flex; align-items:center; justify-content:center; gap:10px; margin-bottom:16px; min-width:0; }
.ct-login-surface .login-mark { flex:none; display:flex; align-items:center; justify-content:center; width:36px; height:36px; border-radius:10px; background:#007AFF; color:#FFF; }
.ct-login-surface .login-mark svg { width:24px; height:24px; }
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface .login-title { margin:0; color:#1D1D1F; font-size:15px!important; font-weight:600; line-height:1.4; overflow-wrap:anywhere; }
.ct-login-surface .login-methods { display:flex; gap:6px; padding:0; margin:0 0 16px; }
.ct-login-surface .login-methods button { flex:1; min-width:0; min-height:32px; padding:6px 10px; border:1px solid #D2D2D7; border-radius:8px; background:#FFF; color:#6E6E73; font-size:12px; font-weight:500; line-height:1.5; cursor:pointer; }
.ct-login-surface .login-methods button:hover { background:#EFF6FF; color:#007AFF; border-color:#007AFF; }
.ct-login-surface .login-methods button[aria-selected="true"] { background:#007AFF; border-color:#007AFF; color:#FFF; }
.ct-login-surface button:focus-visible,.ct-login-surface input[type=checkbox]:focus-visible { outline:2px solid #007AFF; outline-offset:3px; }
.ct-login-surface .login-methods button:disabled { opacity:.6; cursor:wait; }
.ct-login-surface #login-form { margin:0; }
.ct-login-surface #login-form .login-field { display:grid; grid-template-columns:96px minmax(0,1fr); gap:4px 8px; align-items:center; margin:0 0 12px; min-width:0; }
.ct-login-surface #login-form .login-field-label { margin:0; text-align:right; font-size:12px; font-weight:400; color:#1D1D1F; }
.ct-login-surface #login-form .ct-login-control { display:flex; align-items:center; width:100%; min-width:0; min-height:34px; margin:0; border:1px solid #D2D2D7; border-radius:8px; background:#F5F5F7; transition:border-color .15s,box-shadow .15s; }
.ct-login-surface #login-form .ct-login-control .form-control { flex:1; float:none; width:0; min-width:0; height:32px; margin:0; padding:5px 10px; border:0!important; border-radius:8px; background:transparent; color:#1D1D1F; font-size:12px!important; line-height:1.5; box-shadow:none!important; outline:none; }
.ct-login-surface #login-form .ct-login-control:focus-within { border-color:#007AFF; background:#FFF; box-shadow:0 0 0 4px rgba(0,122,255,.15); }
.ct-login-surface #login-form .ct-login-control .login-password-toggle { display:flex; flex:none; align-items:center; justify-content:center; width:32px; min-width:32px; height:32px; padding:0; border:0; border-radius:0 7px 7px 0; background:transparent; color:#6E6E73; font-size:14px; cursor:pointer; }
.ct-login-surface #login-form .login-password-toggle:hover,.ct-login-surface #login-form .login-password-toggle[aria-pressed=true] { color:#007AFF; background:#EFF6FF; }
.ct-login-surface #login-form .ct-login-control>.input-group-addon:not(.login-password-toggle) { display:block; flex:none; width:auto; height:32px; padding:0; border:0; border-radius:0 7px 7px 0; overflow:hidden; background:transparent; }
.ct-login-surface #login-form .ct-login-control .input-group-addon img { display:block; width:96px; height:32px; object-fit:contain; }
.ct-login-surface #login-form .login-field.has-error .ct-login-control,.ct-login-surface #login-form .login-field.has-error .ct-login-control:focus-within { border-color:#B42318; background:#FFF8F7; box-shadow:0 0 0 3px rgba(180,35,24,.12); }
.ct-login-surface #login-form .msg-box { grid-column:2; display:block!important; position:static!important; width:100%; margin:0; line-height:1.5; }
.ct-login-surface #login-form .msg-wrap { position:static; display:block; margin:0; white-space:normal; }
.ct-login-surface #login-form .n-icon { display:none; }
.ct-login-surface #login-form .login-field-msg,.ct-login-surface #login-form .n-msg { display:block; margin:0; color:#B42318; font-size:12px!important; font-weight:400; line-height:1.5; overflow-wrap:anywhere; }
.ct-login-surface #login-form .form-group { margin:0; }
.ct-login-surface #login-form .form-group.checkbox { margin:0 0 14px; padding-left:104px; }
.ct-login-surface #login-form .checkbox label,.ct-login-surface .login-feishu-keep { display:inline-flex; align-items:center; gap:6px; min-height:24px; margin:0; padding:0; font-size:12px!important; font-weight:400; line-height:1.5; color:#6E6E73; cursor:pointer; }
.ct-login-surface #login-form input[type=checkbox],.ct-login-surface .login-feishu-keep input { position:static; flex:none; width:14px; height:14px; margin:0; accent-color:#007AFF; }
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface .login-submit { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:40px; height:40px; padding:8px 18px; border:1px solid #007AFF; border-radius:8px; background:#007AFF; color:#FFF!important; box-shadow:none; font-size:16px!important; font-weight:600; line-height:1.4; letter-spacing:0; cursor:pointer; }
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface .login-submit:hover { background:#0066D6; border-color:#0066D6; }
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface .login-submit:active { background:#005BBF; border-color:#005BBF; }
.ct-login-surface .login-submit:disabled,.ct-login-surface .login-submit.is-pending { cursor:wait; opacity:.75; }
.ct-login-surface .login-submit-spinner { display:none; width:14px; height:14px; border:2px solid rgba(255,255,255,.4); border-top-color:#FFF; border-radius:50%; animation:ct-login-spin .7s linear infinite; }
.ct-login-surface .login-submit.is-pending .login-submit-spinner { display:block; }
.ct-login-surface .login-feishu { display:grid; grid-template-columns:minmax(0,1fr); align-items:center; gap:12px; min-width:0; font-size:12px; line-height:1.5; }
.ct-login-surface .login-feishu-code,.ct-login-surface .login-feishu-details { min-width:0; }
.ct-login-surface .login-feishu-instruction { margin:0 0 6px; color:#6E6E73; text-align:center; font-size:12px; line-height:1.5; }
.ct-login-surface .login-feishu-qr { position:relative; width:300px; max-width:100%; height:300px; min-height:300px; margin:0 auto; background:#FFF; overflow:hidden; }
.ct-login-surface .login-feishu-qr iframe { display:block; max-width:100%; }
.ct-login-surface .login-feishu-qr:empty[aria-busy=true] { min-height:300px; border-radius:12px; background:#F5F5F7; }
.ct-login-surface .login-feishu-qr:empty:not([aria-busy]) { display:flex; align-items:center; justify-content:center; border-radius:12px; background:#F5F5F7; }
.ct-login-surface .login-feishu-qr:empty:not([aria-busy])::after { content:'二维码暂不可用'; color:#6E6E73; font-size:14px; }
.ct-login-surface #feishu-login-status { position:relative; min-height:42px; margin:0 0 10px; color:#1D1D1F; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.ct-login-surface #feishu-login-status[data-error] { cursor:help; }
.ct-login-surface #feishu-login-status[data-error]:is(:hover,:focus-visible)::after { content:attr(data-error); position:absolute; z-index:10; bottom:calc(100% + 8px); left:0; box-sizing:border-box; width:100%; min-width:160px; max-height:180px; overflow:auto; padding:10px 12px; border:1px solid #D2D2D7; border-radius:8px; background:#FFF; color:#1D1D1F; box-shadow:0 4px 16px rgba(0,0,0,.12); font-size:12px; line-height:1.5; text-align:left; white-space:normal; overflow-wrap:anywhere; }
.ct-login-surface #feishu-login-status:empty { display:none; }
.ct-login-surface #feishu-login-status.is-error { color:#B42318; }
.ct-login-surface .login-feishu-actions { margin:0 0 12px; }
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface .login-feishu-actions button { min-height:32px; padding:5px 12px; border:1px solid #D2D2D7; border-radius:8px; background:#FFF; color:#007AFF; font-size:12px; line-height:1.5; }
.ct-login-surface .login-feishu-actions button:hover { background:#EFF6FF; }
.ct-login-surface .login-feishu-actions button:disabled { opacity:.6; cursor:wait; }
.ct-login-surface .login-feishu-help { margin:8px 0 0; color:#6E6E73; font-size:12px; line-height:1.5; }
@keyframes ct-login-spin { to { transform:rotate(360deg); } }
@media (min-width:700px) { .ct-login-surface .login-feishu { grid-template-columns:300px minmax(0,1fr); gap:24px; } }
@media (max-height:650px) { .ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface { padding:16px 20px; } .ct-login-surface .login-brand,.ct-login-surface .login-methods { margin-bottom:12px; } }
@media (max-width:699px) { .ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface { padding:20px 16px; } .ct-login-surface .login-feishu-details { text-align:center; } .ct-login-surface .login-brand { gap:8px; } }
@media (max-width:359px) { .ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface { padding:16px 12px; } .ct-login-surface .login-mark { width:30px; height:30px; } }
@media (pointer:coarse) and (max-width:699px) { .ct-login-surface #login-form .ct-login-control .form-control { font-size:16px!important; } }
@media (prefers-reduced-motion:reduce) { .ct-login-surface #login-form .ct-login-control { transition:none; } .ct-login-surface .login-submit-spinner { animation:none; } }

/* Brand entrance: opt-in fluid proportions, without scaling or a fixed card height. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface--spacious {
 --login-padding:clamp(16px,min(3.5vw,5dvh),48px); --login-gap:clamp(12px,min(2vw,2.5dvh),28px);
 --login-control-height:clamp(44px,6.4dvh,52px); --login-tab-height:clamp(36px,5.5dvh,44px);
 --login-mark-size:clamp(44px,min(4vw,8dvh),64px);
 container-type:inline-size; container-name:brand-login; padding:var(--login-padding); border-radius:20px; box-shadow:0 16px 48px rgba(29,29,31,.08);
}
.ct-login-surface--spacious .login-brand { justify-content:center; align-items:center; gap:clamp(12px,1.3vw,20px); margin-bottom:var(--login-gap); }
.ct-login-surface--spacious .login-mark { width:var(--login-mark-size); height:var(--login-mark-size); border-radius:16px; background:linear-gradient(150deg,#38A0FF,#007AFF); }
.ct-login-surface--spacious .login-mark svg { width:56%; height:56%; }
.ct-login-surface--spacious .login-brand { --login-brand-font-size:clamp(20px,5.4cqi,32px); --login-brand-line-height:calc(var(--login-brand-font-size) * 1.4); }
.ct-login-surface--spacious .login-mark--brand-image { width:clamp(120px,22cqi,160px); max-width:27%; height:var(--login-brand-line-height); border-radius:0; background:transparent; }
.ct-login-surface--spacious .login-mark--brand-image img { display:block; width:100%; max-width:100%; height:100%; object-fit:contain; object-position:center; }
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface--spacious .login-title { display:block; min-width:0; margin:0; text-align:left; white-space:nowrap; font-size:var(--login-brand-font-size)!important; font-weight:400; line-height:var(--login-brand-line-height); letter-spacing:0; color:#1D1D1F; }
.ct-login-surface--spacious .login-methods { margin-bottom:var(--login-gap); gap:8px; }
.ct-login-surface--spacious .login-methods button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:var(--login-tab-height); padding:6px 12px; font-size:14px; border-radius:10px; }
.ct-login-surface--spacious .login-methods button>.fa { flex:none; width:1em; font-size:14px; line-height:1; text-align:center; }
.ct-login-surface--spacious .login-methods button>span { min-width:0; }
.ct-login-surface--spacious #login-form .login-field { grid-template-columns:56px minmax(0,1fr); gap:clamp(6px,1dvh,10px); align-items:center; margin-bottom:var(--login-gap); }
.ct-login-surface--spacious #login-form .login-field-label { text-align:right; font-size:14px; font-weight:500; }
.ct-login-surface--spacious #login-form .ct-login-control { min-height:var(--login-control-height); border-radius:10px; }
.ct-login-surface--spacious #login-form .ct-login-control .form-control { height:calc(var(--login-control-height) - 2px); padding:6px 14px; font-size:16px!important; border-radius:10px; }
.ct-login-surface--spacious #login-form .ct-login-control .login-password-toggle { width:calc(var(--login-control-height) - 2px); min-width:calc(var(--login-control-height) - 2px); height:calc(var(--login-control-height) - 2px); border-radius:0 9px 9px 0; font-size:16px; }
.ct-login-surface--spacious #login-form .ct-login-control>.input-group-addon:not(.login-password-toggle),.ct-login-surface--spacious #login-form .ct-login-control .input-group-addon img { height:calc(var(--login-control-height) - 2px); }
.ct-login-surface--spacious #login-form .msg-box { grid-column:2; }
.ct-login-surface--spacious #login-form .form-group.checkbox { padding-left:calc(56px + clamp(6px,1dvh,10px)); margin:0 0 var(--login-gap); }
.ct-login-surface--spacious #login-form .checkbox label,.ct-login-surface--spacious .login-feishu-keep { font-size:14px!important; }
.ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface--spacious .login-submit { min-height:var(--login-control-height)!important; height:var(--login-control-height)!important; border-radius:10px; letter-spacing:.12em; font-size:16px!important; }
.ct-login-surface--spacious .login-feishu { grid-template-columns:minmax(0,1fr); gap:var(--login-gap); }
.ct-login-surface--spacious .login-panels { display:grid; grid-template-columns:minmax(0,1fr); align-items:stretch; min-width:0; }
.ct-login-surface--spacious .login-panels> [role=tabpanel] { grid-area:1 / 1; min-width:0; }
.ct-login-surface--spacious #login-password-panel { display:flex; }
.ct-login-surface--spacious #login-password-panel #login-form { display:flex; flex:1; flex-direction:column; justify-content:flex-start; gap:var(--login-gap); min-width:0; }
.ct-login-surface--spacious .login-form-body,.ct-login-surface--spacious .login-form-actions { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--login-gap); min-width:0; margin:0; padding:0; }
.ct-login-surface--spacious .login-feishu-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 8px; }
.ct-login-surface--spacious .login-feishu-controls .login-feishu-actions { margin:0; }
.ct-login-surface--spacious #login-password-panel #login-form .login-field,.ct-login-surface--spacious #login-password-panel #login-form .form-group.checkbox { margin-bottom:0; }
/* Both intrinsic panel sizes contribute; inactive content stays inaccessible and cannot intercept input. */
.ct-login-surface--spacious .login-panels>#login-password-panel[hidden] { display:block!important; visibility:hidden; pointer-events:none; }
.ct-login-surface--spacious .login-panels>#login-feishu-panel[hidden] { display:grid!important; visibility:hidden; pointer-events:none; }
.ct-login-surface--spacious .login-feishu-details { text-align:center; }
.ct-login-surface--spacious #feishu-login-status,.ct-login-surface--spacious .login-feishu-instruction { font-size:14px; }
@container brand-login (min-width:400px) {
 .ct-login-surface--spacious .login-feishu { grid-template-columns:300px minmax(0,1fr); }
 .ct-login-surface--spacious .login-feishu-details { text-align:left; }
 .ct-login-surface--spacious .login-feishu-instruction { display:none; }
}
@container brand-login (max-width:420px) {
 .ct-login-surface--spacious .login-brand { --login-brand-font-size:clamp(20px,6.8cqi,28px); flex-direction:column; align-items:center; gap:12px; }
 .ct-login-surface--spacious .login-mark--brand-image { width:clamp(140px,50cqi,220px); max-width:70%; }
 .ct-app.ct-compact-ui.ct-ui-standard.ct-login-surface--spacious .login-title { text-align:center; }
}

/* Explicit section numbering for standard form headings (2026-11-20). */
.ct-app.ct-ui-standard .ct-section-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:24px;height:24px;margin-right:6px;padding:0 5px;border:0;border-radius:6px;background:#EFF6FF;color:#007AFF;font-size:12px;font-weight:600;line-height:1;vertical-align:middle}

/* Standard Layer window controls: retain host events and render without icon fonts. */
.layui-layer.ct-ui-layer>.layui-layer-setwin{display:flex;align-items:center;gap:2px;top:6px;right:8px;height:28px}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;margin:0!important;background:none!important;line-height:28px;border-radius:6px;color:#6E6E73}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-min::after{content:"";position:absolute;left:8px;top:18px;width:12px;height:0;border:0;border-bottom:1.5px solid currentColor;background:none}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-max::before{content:"";position:absolute;left:7px;top:7px;width:12px;height:12px;border:1.5px solid currentColor;border-radius:1px;background:none}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-max::after{content:none}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-maxmin::before{left:6px;top:9px;width:10px;height:10px}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-maxmin::after{content:"";position:absolute;left:10px;top:6px;width:10px;height:10px;border:0;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;background:none}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close::before{transform:rotate(45deg)!important;font-size:0}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close::after{transform:rotate(-45deg)!important;font-size:0}
.layui-layer.ct-ui-layer>.layui-layer-setwin>a:is(:hover,:focus-visible){background:#F5F5F7!important;outline:2px solid #007AFF;outline-offset:0}

/* Framework icon pseudo-elements otherwise paint a white bar over the close mark. */
.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close::before,.layui-layer.ct-ui-layer>.layui-layer-setwin>a.layui-layer-close::after{color:inherit!important;background:currentColor!important;z-index:auto}

/* Explicit external unit suffix: the original control owns its only visible frame. */
.ct-app.ct-ui-standard .ct-control-with-unit{display:flex;align-items:center;gap:8px;min-width:0;max-width:448px}
.ct-app.ct-ui-standard .ct-control-with-unit>.form-control{flex:1 1 0;width:0!important;min-width:0;max-width:none}
.ct-app.ct-ui-standard .ct-control-with-unit>.ct-control-unit{flex:0 0 auto;white-space:nowrap;font-size:12px;font-weight:400;line-height:1.5;color:#6E6E73}

/* Opt-in compact choices: natural item widths, wrap only when the row is full. */
.ct-app.ct-ui-standard .ct-choice-group.ct-choice-group--compact{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:6px;width:fit-content;min-width:0;max-width:100%;padding:0;border:0;background:transparent}
.ct-app.ct-ui-standard .ct-choice-group--compact>label.ct-choice{flex:0 0 auto;width:auto;max-width:100%;min-width:0}
.ct-app.ct-ui-standard .ct-choice-group--compact>label.ct-choice>.ct-choice-text{min-height:30px;padding:4px 8px!important;font-size:12px!important;line-height:18px!important;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}

/* Explicit grouped-field card: one boundary, shared header/body alignment. */
.ct-app.ct-ui-standard .ct-field-group{--ct-field-group-inset:12px;min-width:0;margin:0 0 12px;border:1px solid #C9DCF2;border-radius:12px;background:#FFF;box-shadow:0 1px 4px rgba(0,0,0,.04);overflow:hidden}
.ct-app.ct-ui-standard .ct-field-group__head{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px var(--ct-field-group-inset);border:0;background:#EFF6FF;color:#1D1D1F}
.ct-app.ct-ui-standard .ct-field-group__head h4{margin:0;padding:0;border:0;font-size:13px;font-weight:600;line-height:1.5}
.ct-app.ct-ui-standard .ct-field-group__head p{margin:3px 0 0;font-size:12px;font-weight:400;line-height:1.5;color:#6E6E73}
.ct-app.ct-ui-standard .ct-field-group__body{min-width:0;padding:0 var(--ct-field-group-inset)}
@media(max-width:600px){.ct-app.ct-ui-standard .ct-field-group{--ct-field-group-inset:10px}}

/* Opt-in compact unit picker: bounded shell and independently scrolling options. */
.ct-app.ct-ui-standard.ct-unit-picker--compact{width:min(680px,calc(100vw - 24px));max-height:min(480px,calc(100dvh - 24px));display:flex;flex-direction:column;min-height:0;border-radius:16px}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-head{padding:6px 12px;min-height:40px;flex-shrink:0}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-head h4{font-size:15px;font-weight:600}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-tools{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 12px;flex-shrink:0}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-tabs{display:flex;flex:1 1 360px;flex-wrap:wrap;gap:6px}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-tabs button{min-height:28px;padding:3px 7px;font-size:12px;line-height:20px}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-search{flex:1 1 180px;width:auto;min-width:0}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-search input{width:100%;height:30px;padding-left:30px}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-options{flex:1 1 auto;min-height:0;max-height:none;grid-template-columns:repeat(auto-fit,minmax(min(100%,120px),1fr));grid-auto-rows:48px;gap:6px;padding:0 12px 8px;overflow:auto}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-option{padding:5px 7px;border-radius:8px;transform:none;font-size:12px}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-option :is(strong,span,small){font-size:12px}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-option.is-selected :is(strong,span,small){color:inherit}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-footer{padding:8px 12px;gap:6px;flex-shrink:0}
.ct-app.ct-ui-standard.ct-unit-picker--compact .ml-unit-empty{min-height:72px}

/* Explicit clear modal backdrop: dim the background without blurring its content. */
.ct-clear-backdrop>.ml-unit-backdrop{backdrop-filter:none;-webkit-backdrop-filter:none}

/* Opt-in two-pane workspaces retain local scrolling and reachable action bars. */
.ct-app.ct-ui-standard.ct-split-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;gap:10px}
.ct-app.ct-ui-standard .ct-split-workspace__columns{display:grid;grid-template-columns:minmax(0,var(--ct-split-left,1fr)) minmax(0,var(--ct-split-right,1fr));gap:10px;flex:1 1 auto;min-width:0;min-height:0;align-items:stretch}
.ct-app.ct-ui-standard .ct-split-workspace__pane{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.ct-app.ct-ui-standard .ct-split-workspace__scroll{flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}

/* Accessible resizable split-pane handle; the host owns its breakpoint. */
.ct-app.ct-ui-standard .ct-split-workspace__columns--resizable{grid-template-columns:minmax(0,var(--ct-split-left,7fr)) 8px minmax(0,var(--ct-split-right,3fr));gap:0}
.ct-app.ct-ui-standard .ct-pane-resizer{position:relative;min-width:0;min-height:0;cursor:col-resize;touch-action:none;outline:0;border-radius:6px}
.ct-app.ct-ui-standard .ct-pane-resizer::before{content:"";position:absolute;left:3px;top:12px;bottom:12px;width:2px;border-radius:2px;background:#D2D2D7}
.ct-app.ct-ui-standard .ct-pane-resizer:is(:hover,:focus-visible)::before,.ct-app.ct-ui-standard .ct-split-dragging>.ct-pane-resizer::before{left:2px;width:4px;background:#007AFF}
.ct-app.ct-ui-standard .ct-pane-resizer:focus-visible{box-shadow:inset 0 0 0 1px #007AFF}
.ct-app.ct-ui-standard .ct-split-dragging{user-select:none;cursor:col-resize}

/* Current navigation/page links own their selected colors, rather than generic links. */
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme a.ct-state-link:is(.is-active,[aria-current="page"]){background:#007AFF;border-color:#007AFF;color:#FFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme a.ct-state-link:is(.is-active,[aria-current="page"]):is(:hover,:focus-visible){background:#0066D6;border-color:#0066D6;color:#FFF}
.ct-app.ct-compact-ui.ct-ui-standard.ct-apple-blue-theme a.ct-state-link:focus-visible{outline:2px solid #007AFF;outline-offset:2px}

/* Explicit Bootstrap Table footer: keep jump controls together and bound input width. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 12px;min-width:0;padding:8px 0;font-size:12px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>.pagination-detail{display:flex;align-items:center;flex-wrap:wrap;gap:6px;float:none!important;margin:0;min-width:0;flex:0 1 auto;line-height:30px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination .pagination-info{margin:0;line-height:1.5}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination .page-list{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination .page-list .btn{height:30px;min-height:30px;padding:4px 8px;font-size:12px;line-height:20px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination{display:flex;float:none!important;flex:0 1 auto;min-width:0;max-width:100%;margin:0 0 0 auto}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination>ul.pagination{display:flex;align-items:center;flex-wrap:wrap;gap:4px 0;margin:0;padding:0;max-width:100%;list-style:none}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination>ul.pagination>li{display:inline-flex;align-items:center;flex:0 0 auto;float:none;margin:0}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination>ul.pagination>li>a{display:inline-flex;align-items:center;justify-content:center;float:none;min-height:30px;height:30px;min-width:30px;padding:4px 8px;font-size:12px;line-height:20px;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination>ul.pagination>li.active>a{background:#007AFF;border-color:#007AFF;color:#FFF}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination>ul.pagination>li.active>a:is(:hover,:focus-visible){background:#0066D6;border-color:#0066D6;color:#FFF}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination>ul.pagination>li.disabled>a{background:#F5F5F7;color:#86868B;cursor:not-allowed}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination>ul.pagination>li.jumpto{display:inline-flex;flex-wrap:nowrap;gap:6px;margin-left:6px;white-space:nowrap}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination .jumpto input.form-control{display:block;flex:0 0 60px;width:60px!important;min-width:60px!important;max-width:60px!important;height:30px;min-height:30px;padding:4px 6px;font-size:12px;line-height:20px}
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination .jumpto .btn{flex:0 0 auto;width:auto;height:30px;min-height:30px;padding:4px 8px;font-size:12px;line-height:20px}
@media(max-width:600px){.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination>div.pagination{margin-left:0;flex-basis:100%}}

/* Prevent responsive legacy control heights from misaligning this compact footer. */
.ct-app.ct-compact-ui.ct-ui-standard .ct-bootstrap-pagination :is(.page-list .btn,.jumpto .btn,.jumpto input.form-control,ul.pagination>li>a){height:30px!important;min-height:30px!important;line-height:20px!important}

/* Detached anchored help surface: bounded viewport geometry and an accessible scroll body. */
.ct-floating-help{box-sizing:border-box;padding:0!important;max-width:calc(100vw - 24px);z-index:1080;opacity:1!important;pointer-events:auto}
.ct-floating-help>.tooltip-inner{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-width:none;max-height:inherit;padding:0;border:1px solid #D2D2D7;border-radius:12px;background:#FFF;color:#1D1D1F;box-shadow:0 4px 16px rgba(0,0,0,.14);text-align:left;white-space:normal;overflow:hidden}
.ct-floating-help .ml-criteria-head{flex:0 0 auto;margin:0;padding:8px 12px;background:#EFF6FF;border:0}
.ct-floating-help .ml-criteria-head strong{font-size:15px;font-weight:600;line-height:1.4;color:#1D1D1F}
.ct-floating-help .ml-criteria-head small{font-size:12px;line-height:1.5;color:#6E6E73}
.ct-floating-help .ml-criteria-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 12px;font-size:12px;line-height:1.5}
.ct-floating-help .ml-criteria-body :is(p,small,.ml-criteria-scope,.ml-criteria-foot,.ml-criteria-thresholds){font-size:12px;line-height:1.5}
.ct-floating-help .ml-criteria-body h5{margin:8px 0 4px;font-size:13px;font-weight:600}
.ct-floating-help .ml-criteria-thresholds{width:100%;margin:6px 0;table-layout:auto}
.ct-floating-help .ml-criteria-thresholds :is(th,td){padding:4px 6px;text-align:left}

/* Explicit right-pinned operation cells share one table, including its sticky header. */
.ct-app.ct-ui-standard .ct-sticky-operation{position:sticky;right:0;z-index:2;background:#FFF;box-shadow:-4px 0 6px rgba(0,0,0,.06)}
.ct-app.ct-ui-standard thead .ct-sticky-operation{top:0;z-index:5;background:#F5F5F7}
.ct-app.ct-ui-standard tbody tr:nth-child(even)>.ct-sticky-operation{background:#FAFAFC}
.ct-app.ct-ui-standard tbody tr:hover>.ct-sticky-operation{background:#EFF6FF}
