.wc-control { min-width: 0; position: relative; }
.wc-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; width: 100%; padding: 8px 11px; border: 1px solid var(--line, #dce3ec); border-radius: 8px; background: #fff; color: var(--ink-900, #142033); text-align: left; font-size: 12px; }
.wc-trigger-copy { display: grid; gap: 3px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.wc-trigger-copy > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-trigger-copy small { color: var(--ink-500, #69758a); font-size: 10px; }
.wc-trigger-arrow { flex: 0 0 auto; color: var(--ink-500, #69758a); }
.wc-trigger[aria-expanded="true"] { border-color: var(--blue-700, #1858a8); box-shadow: 0 0 0 2px var(--blue-100, #e8f1ff); }
.wc-popover { position: fixed; inset: auto; margin: 0; z-index: 120; padding: 0; border: 1px solid var(--line, #dce3ec); border-radius: 12px; color: var(--ink-900, #142033); background: #fff; box-shadow: 0 14px 42px #0b1d3329; overflow: auto; overscroll-behavior: contain; font-family: inherit; font-size: 12px; }
.wc-popover::backdrop { background: transparent; pointer-events: none; }
.wc-popover[hidden], .wc-popover [hidden], .wc-group-dialog [hidden] { display: none !important; }
.wc-popover button, .wc-group-dialog button { font-family: inherit; }
.wc-popover button:focus-visible, .wc-popover input:focus-visible, .wc-popover select:focus-visible, .wc-group-dialog button:focus-visible, .wc-group-dialog input:focus-visible, .wc-group-dialog select:focus-visible, .wc-trigger:focus-visible { outline: 2px solid var(--blue-600, #2671d9); outline-offset: 2px; }
.wc-date-popover { width: 632px; max-width: calc(100vw - 20px); }
.wc-date-layout { display: grid; grid-template-columns: 155px minmax(0, 1fr); }
.wc-date-presets { display: flex; flex-direction: column; padding: 10px 0; border-right: 1px solid var(--line-soft, #e9eef4); background: #fafbfd; }
.wc-preset { min-height: 34px; padding: 8px 15px; border: 0; background: transparent; color: var(--ink-700, #425069); font-size: 12px; text-align: left; }
.wc-preset:hover, .wc-preset[aria-pressed="true"] { background: var(--blue-100, #e8f1ff); color: var(--blue-700, #1858a8); }
.wc-preset[aria-pressed="true"] { box-shadow: inset 3px 0 var(--blue-700, #1858a8); font-weight: 700; }
.wc-date-presets > .wc-field { padding: 12px 10px 3px; margin-top: auto; border-top: 1px solid var(--line-soft, #e9eef4); }
.wc-date-presets > .wc-field select { width: 100%; padding-left: 7px; padding-right: 3px; font-size: 11px; }
.wc-date-main { min-width: 0; padding: 14px; }
.wc-field { display: grid; align-content: start; gap: 5px; min-width: 0; }
.wc-field-label { color: var(--ink-500, #69758a); font-size: 11px; font-weight: 500; }
.wc-input { min-width: 0; min-height: 34px; padding: 7px 9px; border: 1px solid var(--line, #dce3ec); border-radius: 7px; font: inherit; background: #fff; color: var(--ink-900, #142033); }
.wc-input[type="checkbox"] { width: 14px; min-width: 14px; height: 14px; min-height: 14px; margin: 2px 0 0; padding: 0; accent-color: var(--blue-700, #1858a8); }
.wc-input[readonly] { color: var(--ink-500, #69758a); background: var(--surface-subtle, #f5f7fa); }
.wc-date-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wc-compare-fields { margin-top: 10px; }
.wc-range-tabs { display: flex; gap: 6px; margin-top: 10px; }
.wc-range-tabs [aria-pressed="true"] { border-color: var(--blue-700, #1858a8); background: var(--blue-100, #e8f1ff); color: var(--blue-700, #1858a8); }
.wc-calendar-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 12px 0 3px; }
.wc-calendar-hint { color: var(--ink-500, #69758a); font-size: 11px; }
.wc-calendar-arrow { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; color: var(--ink-700, #425069); background: transparent; font-size: 24px; }
.wc-calendar-arrow:hover { background: var(--surface-subtle, #f5f7fa); }
.wc-calendars { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.wc-month h4 { margin: 8px 0 12px; font-size: 12px; }
.wc-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px 0; }
.wc-weekday { padding: 3px 0 8px; color: var(--ink-500, #69758a); text-align: center; font-size: 10px; }
.wc-day { min-width: 0; height: 28px; border: 0; border-radius: 0; padding: 0; color: var(--ink-700, #425069); background: transparent; font-size: 11px; }
.wc-day:hover { background: var(--surface-subtle, #f5f7fa); }
.wc-day.is-in-range { background: var(--blue-100, #e8f1ff); color: var(--blue-700, #1858a8); }
.wc-day.is-endpoint { border-radius: 50%; color: #fff; background: var(--blue-700, #1858a8); font-weight: 700; }
.wc-day.is-today:not(.is-endpoint) { box-shadow: inset 0 -2px var(--blue-600, #2671d9); }
.wc-popover-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-soft, #e9eef4); }
.wc-validation { flex: 1; color: #a6362b; font-size: 11px; line-height: 1.4; }
.wc-small-button, .wc-primary-button { min-height: 32px; padding: 6px 10px; border: 1px solid var(--line, #dce3ec); border-radius: 7px; background: #fff; color: var(--blue-700, #1858a8); font-size: 11px; font-weight: 500; }
.wc-small-button:hover { background: var(--blue-100, #e8f1ff); }
.wc-primary-button { border-color: var(--blue-700, #1858a8); color: #fff; background: var(--blue-700, #1858a8); }
.wc-primary-button:hover { filter: brightness(1.08); }
.wc-popover button:disabled, .wc-group-dialog button:disabled { opacity: .45; cursor: default; }
.wc-select-popover { width: 330px; max-width: calc(100vw - 20px); padding: 14px; }
.wc-select-heading { display: block; margin-bottom: 10px; font-size: 13px; }
.wc-select-popover > input { width: 100%; }
.wc-select-rules { display: grid; gap: 6px; }
.wc-select-filter { display: grid; grid-template-columns: 112px minmax(0, 1fr) 28px; gap: 6px; }
.wc-select-filter > input { width: 100%; }
.wc-select-filter:not(:has(.wc-rule-remove)) { grid-template-columns: 112px minmax(0, 1fr); }
.wc-add-rule { margin-top: 7px; }
.wc-rule-remove { min-width: 28px; padding: 0; border: 0; background: transparent; color: var(--ink-500, #69758a); font-size: 18px; cursor: pointer; }
.wc-select-status { display: block; margin: 10px 0 8px; color: var(--ink-500, #69758a); font-size: 11px; }
.wc-select-note { margin: 10px 0 0; color: var(--ink-500, #69758a); font-size: 10px; }
.wc-select-actions { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 10px; }
.wc-select-list { max-height: 310px; overflow-y: auto; border-top: 1px solid var(--line-soft, #e9eef4); }
.wc-check-row { display: flex; align-items: flex-start; gap: 9px; min-height: 36px; padding: 9px 4px; border-bottom: 1px solid var(--line-soft, #e9eef4); cursor: pointer; line-height: 1.45; font-size: 12px; }
.wc-check-row:hover { background: #f7faff; }
.wc-check-row > span { min-width: 0; overflow-wrap: anywhere; }
.wc-empty { padding: 10px 0; color: var(--ink-500, #69758a); font-size: 12px; }
.wc-more { width: 100%; margin-top: 8px; }
.wc-group-dialog { width: 720px; max-width: calc(100vw - 30px); max-height: calc(100vh - 30px); padding: 20px; border: 1px solid var(--line, #dce3ec); border-radius: 14px; color: var(--ink-900, #142033); background: #fff; box-shadow: var(--shadow, 0 12px 36px #0f203614); font-family: inherit; font-size: 12px; }
.wc-group-dialog::backdrop { background: #07142666; }
.wc-dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 17px; }
.wc-dialog-heading h2 { margin: 0; font-size: 17px; }
.wc-group-dialog > .wc-field { margin-bottom: 16px; }
.wc-group-rule-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.wc-group-rules { display: grid; gap: 8px; }
.wc-rule-row { display: grid; grid-template-columns: 115px 145px minmax(90px, 1fr) 32px; gap: 7px; }
.wc-rule-row .wc-small-button { padding: 0; font-size: 20px; }
.wc-group-help { display: none; }
.wc-group-dialog > input[type="search"] { width: 100%; }
.wc-group-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; min-height: 32px; }
.wc-group-preview-heading strong { font-size: 12px; }
.wc-group-preview { max-height: 260px; overflow-y: auto; margin-top: 5px; }
.wc-group-item-copy { display: grid; gap: 3px; }
.wc-group-item-copy small { color: var(--ink-500, #69758a); font-size: 10px; }
.wc-group-dialog > .wc-popover-footer { margin: 16px -20px -20px; }
@media (max-width: 650px) {
  .wc-date-layout { grid-template-columns: 125px minmax(0, 1fr); }
  .wc-date-main { padding: 10px; }
  .wc-date-fields { grid-template-columns: 1fr; gap: 7px; }
  .wc-calendars { grid-template-columns: 1fr; }
  .wc-month + .wc-month { display: none; }
  .wc-date-presets > .wc-field { padding-left: 6px; padding-right: 6px; }
  .wc-preset { padding-left: 10px; }
  .wc-rule-row { grid-template-columns: 90px minmax(110px, 1fr) 30px; }
  .wc-rule-row input { grid-column: 1 / 3; grid-row: 2; }
  .wc-rule-row button { grid-column: 3; grid-row: 1 / 3; }
  .wc-select-filter { grid-template-columns: 102px minmax(0, 1fr) 28px; }
  .wc-select-filter:not(:has(.wc-rule-remove)) { grid-template-columns: 102px minmax(0, 1fr); }
}
.wc-delete-group { margin-right:auto; color:#a12635 !important; }
