/* ==========================================================================
   Wepsol Weekly Report Canvas - Components
   Toolbars, Dropdowns, Popovers, Badges, Chips, and Buttons
   ========================================================================== */

/* API Status Indicator Badge */
.api-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
}

.api-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px rgba(15, 157, 110, .16);
}

/* Layout Switcher (Side by Side vs Stacked) */
.layout-toggle-group {
  display: inline-flex;
  background: rgba(20, 22, 31, .04);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.layout-btn {
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink2);
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s ease;
  font-family: inherit;
}

.layout-btn svg {
  width: 14px;
  height: 14px;
}

.layout-btn:hover {
  color: var(--ink);
}

.layout-btn.active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* Filter Toolbar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.filters-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filters-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Dropdown Trigger Buttons */
.dropdown-wrap {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
  user-select: none;
}

.dropdown-trigger:hover {
  border-color: rgba(228,0,79, .4);
  background: var(--surface);
}

.dropdown-trigger.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(228,0,79, .12);
}

.dropdown-trigger .chevron {
  width: 12px;
  height: 12px;
  color: var(--muted);
  transition: transform .2s ease;
}

.dropdown-trigger.active .chevron {
  transform: rotate(180deg);
}

.dropdown-trigger .badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(228,0,79, .12);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 1px 6px;
  margin-left: 2px;
}

/* Floating Popovers */
.dropdown-popover {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  z-index: 90;
  min-width: 240px;
  padding: 8px;
  animation: popIn .18s cubic-bezier(.2, .8, .2, 1);
}

.dropdown-popover.open {
  display: block;
}

.dropdown-popover.popover-right {
  left: auto;
  right: 0;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Options List in Popover */
.option-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .12s ease;
}

.option-item:hover {
  background: var(--surface2);
}

.option-item.selected {
  background: rgba(228,0,79, .08);
  color: var(--brand);
  font-weight: 600;
}

/* Multi-select Landing Page Popover */
.landing-popover {
  width: 360px;
  padding: 14px;
}

.popover-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.preset-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}

.preset-chip {
  background: rgba(20, 22, 31, .05);
  border: 1px solid transparent;
  color: var(--ink2);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s ease;
  font-family: inherit;
}

.preset-chip:hover {
  background: rgba(228,0,79, .08);
  color: var(--brand);
  border-color: rgba(228,0,79, .2);
}

.preset-chip.active {
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

.popover-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  height: 34px;
  margin-bottom: 10px;
}

.popover-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  font-family: inherit;
  width: 100%;
  color: var(--ink);
}

.popover-search svg {
  color: var(--muted);
  flex-shrink: 0;
}

.popover-select-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
}

.popover-select-all label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.popover-selection-count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}

.popover-list {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 2px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background-color .12s ease;
  user-select: none;
}

.checkbox-row:hover {
  background: var(--surface2);
}

.checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
  overflow: hidden;
}

.checkbox-row .page-path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink);
}

.checkbox-row .page-type-tag {
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(20, 22, 31, .05);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-left: auto;
  margin-right: 8px;
}

.only-btn {
  background: none;
  border: 1px solid rgba(228,0,79, .2);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.4;
  transition: all .12s ease;
  font-family: inherit;
}

.checkbox-row:hover .only-btn,
.only-btn:hover {
  opacity: 1;
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.popover-clear-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  transition: color .12s ease;
  font-family: inherit;
}

.popover-clear-btn:hover {
  color: var(--ink);
}

.popover-apply-btn {
  background: var(--brand);
  color: #ffffff;
  border: none;
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(228,0,79, .3);
  transition: all .12s ease;
  font-family: inherit;
}

.popover-apply-btn:hover {
  background: var(--brand-dark);
}

input[type="checkbox"] {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  cursor: pointer;
  margin: 0;
}

/* Comparison Info Banner */
.comparison-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(228,0,79, .05);
  border: 1px dashed rgba(228,0,79, .24);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--ink2);
}

.comparison-banner .banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.comparison-banner .banner-left svg {
  color: var(--brand);
}

.comparison-banner .pill-days {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(228,0,79, .2);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Customise Popover Settings */
.customise-popover {
  width: 290px;
  padding: 14px;
}

.customise-popover h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.customise-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.customise-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}

.customise-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-reset {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.btn-reset:hover {
  color: var(--ink);
}

@media(max-width: 768px) {
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filters-left, .filters-right { width: 100%; justify-content: space-between; }
}

/* ==========================================================================
   GA4 Looker Studio Style "Edit Filter" Builder Component
   ========================================================================== */

/* Toolbar Edit Filter Trigger & Active Filter Badge */
.btn-edit-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.btn-edit-filter:hover {
  background: rgba(228,0,79, .06);
  border-color: rgba(228,0,79, .3);
  color: var(--brand);
}

.active-filter-badge-wrap {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(228,0,79, .08);
  border: 1px solid rgba(228,0,79, .3);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: all .15s ease;
}

.active-filter-badge-wrap:hover {
  background: rgba(228,0,79, .14);
}

.btn-clear-active-filter {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.btn-clear-active-filter:hover {
  color: var(--bad);
}

/* Modal Overlay & Dialog */
.filter-builder-modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 31, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modalFadeIn .18s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-builder-modal-wrap.open {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.filter-builder-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  width: 100%;
  max-width: 860px;
  box-shadow: 0 25px 60px -15px rgba(20, 22, 31, .25);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  position: relative;
  overflow: visible;
  animation: modalZoomIn .2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoomIn {
  from { opacity: 0; transform: scale(0.97) translateY(-8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.filter-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all .12s ease;
}

.btn-close-modal:hover {
  background: rgba(20, 22, 31, .06);
  color: var(--ink);
}

.filter-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* Name & Suggested Values Bar */
.filter-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.input-floating-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.floating-input {
  width: 100%;
  height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s ease;
}

.floating-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228,0,79, .12);
}

.floating-label {
  position: absolute;
  top: -8px;
  left: 10px;
  background: var(--surface);
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.property-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
}

.property-badge svg {
  color: #f59e0b;
}

.suggest-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink2);
  cursor: pointer;
  margin-left: auto;
  user-select: none;
}

/* iOS / GA4 Toggle Switch */
.switch-input {
  display: none;
}

.switch-slider {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 20px;
  position: relative;
  transition: background .2s ease;
  display: inline-block;
}

.switch-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  top: 2px;
  left: 2px;
  transition: transform .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

.switch-input:checked + .switch-slider {
  background: #2563eb;
}

.switch-input:checked + .switch-slider::after {
  transform: translateX(16px);
}

/* Filter Condition Clauses Container */
.filter-clauses-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.filter-clause-row {
  display: grid;
  grid-template-columns: 130px 220px 170px 1fr 32px;
  gap: 10px;
  align-items: center;
}

@media(max-width: 768px) {
  .filter-clause-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.clause-col {
  position: relative;
}

.form-select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface2);
  outline: none;
  cursor: pointer;
  box-sizing: border-box;
}

.form-select:focus {
  border-color: var(--brand);
}

/* Dimension Picker Button Pill (Green with ABC tag) */
.dim-picker-btn {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1b5e20;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.dim-picker-btn:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.dim-icon-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  opacity: .85;
}

.dim-name-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dim-picker-btn svg.chevron {
  width: 12px;
  height: 12px;
  color: #1b5e20;
  opacity: .7;
}

/* Clause Value Input & Autocomplete */
.clause-input-wrap {
  position: relative;
  width: 100%;
}

.clause-val-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  box-sizing: border-box;
}

.clause-val-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228,0,79, .12);
}

.val-suggest-popover {
  position: absolute;
  top: 46px;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 25px -4px rgba(20, 22, 31, .15);
  z-index: 1200;
  display: none;
  max-height: 180px;
  overflow-y: auto;
}

.suggest-item {
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--ink2);
  cursor: pointer;
  transition: background .1s ease;
}

.suggest-item:hover {
  background: rgba(228,0,79, .06);
  color: var(--brand);
}

.btn-del-clause {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s ease;
}

.btn-del-clause:hover {
  background: rgba(220, 61, 61, .1);
  color: var(--bad);
}

/* Clause Connector Line with AND badge */
.clause-connector-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 65px;
  gap: 2px;
}

.connector-line {
  width: 2px;
  height: 8px;
  background: var(--line);
  margin-left: 14px;
}

.connector-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .06em;
}

/* Add Clause Button (+ AND) */
.add-clause-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  margin-left: 6px;
}

.btn-add-clause {
  background: var(--surface);
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-add-clause:hover {
  background: rgba(228,0,79, .06);
  border-color: var(--brand);
}

/* Dimension Selector Popover (Search + Default group) */
.filter-dim-popover {
  position: absolute;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 36px -8px rgba(20, 22, 31, .25);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 340px;
}

.dim-popover-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
}

.dim-search-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink);
}

.dim-picker-list {
  padding: 8px 6px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dim-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 6px 10px 4px;
}

.dim-picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #1b5e20;
  cursor: pointer;
  transition: all .12s ease;
  font-family: inherit;
  text-align: left;
}

.dim-picker-item:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.dim-empty-note {
  font-size: 12px;
  color: var(--muted);
  padding: 12px;
  text-align: center;
}

/* Modal Footer */
.filter-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border-radius: 0 0 14px 14px;
}

.clauses-count-summary {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.filter-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
}

.btn-secondary:hover {
  background: var(--surface2);
  color: var(--ink);
}

.btn-primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(228,0,79, .25);
}

.btn-primary:hover {
  background: #c40043;
  border-color: #c40043;
}

/* ── Custom (saved) filters tab ── */
.filter-tabs{display:flex;gap:4px;padding:0 22px;border-bottom:1px solid var(--line)}
.filter-tab{border:0;background:transparent;padding:12px 6px;margin-right:14px;font:inherit;font-size:13.5px;font-weight:600;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px}
.filter-tab:hover{color:var(--ink)}
.filter-tab.on{color:var(--brand);border-bottom-color:var(--brand)}
.tab-count{display:inline-block;min-width:20px;padding:1px 6px;margin-left:4px;border-radius:999px;background:rgba(228,0,79,.1);color:var(--brand);font-size:11.5px;text-align:center}
.saved-pane{flex-direction:column;gap:14px;padding:18px 22px 20px;max-height:56vh;overflow:auto}
.saved-list{display:flex;flex-direction:column;gap:10px}
.saved-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface2)}
.saved-row.active{border-color:var(--brand);background:rgba(228,0,79,.05)}
.saved-info{min-width:0}
.saved-name{font-weight:600;font-size:14px;display:flex;align-items:center;gap:8px}
.saved-on{font-size:11px;font-weight:700;color:var(--good);background:rgba(15,157,110,.12);padding:2px 8px;border-radius:999px}
.saved-sum{margin-top:4px;font-size:12.5px;color:var(--muted);line-height:1.5}
.saved-sum b{font-size:10.5px;color:var(--ink2)}
.saved-actions{display:flex;gap:6px;flex:none}
.saved-btn{height:32px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:var(--surface);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.saved-btn:hover{background:var(--bg2)}
.saved-btn.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.saved-btn.primary:hover{background:var(--brand-dark)}
.saved-btn.danger{color:var(--bad)}
.saved-btn.danger:hover{background:rgba(220,61,61,.08)}
.saved-empty{display:flex;flex-direction:column;gap:6px;padding:34px 12px;text-align:center;color:var(--muted);font-size:13px}
.saved-empty strong{color:var(--ink);font-size:14px}
.saved-foot{display:flex;justify-content:flex-end}
@media (max-width:620px){.saved-row{flex-direction:column;align-items:flex-start}}
