/* =========================================================
   WooCommerce Order Reporter – Admin Styles
   ========================================================= */

:root {
  --wor-primary:       #7c3aed;
  --wor-primary-light: #ede9fe;
  --wor-primary-dark:  #5b21b6;
  --wor-accent:        #06b6d4;
  --wor-surface:       #ffffff;
  --wor-bg:            #f5f3ff;
  --wor-border:        #e2e0f0;
  --wor-text:          #1e1b4b;
  --wor-muted:         #6b7280;
  --wor-danger:        #dc2626;
  --wor-success:       #16a34a;
  --wor-radius:        10px;
  --wor-shadow:        0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(124,58,237,.06);
  --wor-shadow-lg:     0 4px 24px rgba(124,58,237,.14);
}

/* ── Wrap ── */
.wor-wrap {
  max-width: 1200px;
  margin: 20px 20px 40px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--wor-text);
}

/* ── Header ── */
.wor-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 60%, #7c3aed 100%);
  border-radius: var(--wor-radius) var(--wor-radius) 0 0;
  padding: 24px 28px 22px;
}
.wor-header-inner { display: flex; align-items: center; gap: 16px; }
.wor-logo { display: flex; align-items: center; gap: 10px; }
.wor-logo-text {
  font-size: 18px; font-weight: 700; color: #fff;
  letter-spacing: -0.3px;
}
.wor-subtitle { margin: 4px 0 0; font-size: 13px; color: #c4b5fd; }

/* ── Card ── */
.wor-card {
  background: var(--wor-surface);
  border: 1px solid var(--wor-border);
  border-top: none;
  border-radius: 0 0 var(--wor-radius) var(--wor-radius);
  box-shadow: var(--wor-shadow);
  padding: 28px;
}

/* ── Section ── */
.wor-section { margin-bottom: 28px; }
.wor-section-title {
  font-size: 14px; font-weight: 600; color: var(--wor-text);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.wor-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--wor-primary); color: #fff;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.wor-hint { font-size: 12px; font-weight: 400; color: var(--wor-muted); }

/* ── Inputs ── */
.wor-input {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--wor-border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--wor-text);
  background: #fafafa;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.wor-input:focus {
  outline: none;
  border-color: var(--wor-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
  background: #fff;
}
.wor-select {
  padding: 8px 12px;
  border: 1.5px solid var(--wor-border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--wor-text);
  background: #fafafa;
  width: 100%;
  transition: border-color .15s;
}
.wor-select:focus { outline: none; border-color: var(--wor-primary); }

/* ── Product Search ── */
.wor-product-search-wrap { position: relative; max-width: 480px; }
.wor-search-input-wrap   { position: relative; }
.wor-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--wor-muted); pointer-events: none;
}
#wor-product-search { padding-left: 34px; }
.wor-spinner {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid var(--wor-border);
  border-top-color: var(--wor-primary);
  border-radius: 50%;
  animation: wor-spin .6s linear infinite;
}
@keyframes wor-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ── Suggestions Dropdown ── */
.wor-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--wor-surface);
  border: 1.5px solid var(--wor-border);
  border-radius: 8px;
  box-shadow: var(--wor-shadow-lg);
  z-index: 9999;
  max-height: 280px; overflow-y: auto;
  display: none;
}
.wor-suggestions.wor-visible { display: block; }
.wor-suggestion-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid #f3f4f6;
}
.wor-suggestion-item:last-child { border-bottom: none; }
.wor-suggestion-item:hover, .wor-suggestion-item.wor-active { background: var(--wor-primary-light); }
.wor-suggestion-thumb {
  width: 36px; height: 36px; border-radius: 5px;
  object-fit: cover; background: #f3f4f6; flex-shrink: 0;
  border: 1px solid var(--wor-border);
}
.wor-suggestion-thumb-placeholder {
  width: 36px; height: 36px; border-radius: 5px;
  background: #ede9fe; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--wor-primary);
}
.wor-suggestion-name { font-size: 13px; font-weight: 500; color: var(--wor-text); }
.wor-suggestion-meta { font-size: 11px; color: var(--wor-muted); }
.wor-no-results {
  padding: 14px 12px; text-align: center;
  font-size: 13px; color: var(--wor-muted);
}

/* ── Selected Product ── */
.wor-selected-product {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; padding: 10px 14px;
  background: var(--wor-primary-light);
  border: 1.5px solid #c4b5fd;
  border-radius: 8px; max-width: 480px;
}
.wor-product-thumb {
  width: 44px; height: 44px; border-radius: 6px;
  object-fit: cover; border: 1px solid #c4b5fd;
}
.wor-product-meta { flex: 1; min-width: 0; }
.wor-product-meta strong { display: block; font-size: 13px; color: var(--wor-text); }
.wor-sku-badge, .wor-type-badge {
  display: inline-block; font-size: 10px;
  padding: 1px 6px; border-radius: 20px; margin-top: 3px; margin-right: 4px;
}
.wor-sku-badge  { background: #ddd6fe; color: #5b21b6; }
.wor-type-badge { background: #cffafe; color: #0e7490; }
.wor-clear-btn {
  background: none; border: none; font-size: 20px; color: var(--wor-muted);
  cursor: pointer; line-height: 1; padding: 0 4px;
  transition: color .15s;
}
.wor-clear-btn:hover { color: var(--wor-danger); }

/* ── Attributes Grid ── */
.wor-attributes-grid {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.wor-attr-group {
  background: #fafafa; border: 1.5px solid var(--wor-border);
  border-radius: 8px; padding: 14px 16px; min-width: 180px;
  max-width: 95%; flex: 0 0 auto;
}
.wor-attr-group-title {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: var(--wor-primary-dark);
  margin: 0 0 10px;
}
.wor-attr-values { display: flex; flex-wrap: wrap; gap: 6px; }
.wor-attr-chip {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 20px;
  border: 1.5px solid var(--wor-border);
  background: #fff; font-size: 12px; color: var(--wor-text);
  cursor: pointer; transition: all .15s; user-select: none;
}
.wor-attr-chip:hover { border-color: var(--wor-primary); background: var(--wor-primary-light); }
.wor-attr-chip.wor-selected {
  border-color: var(--wor-primary);
  background: var(--wor-primary);
  color: #fff;
}
.wor-attr-chip input { display: none; }

/* ── Custom field rename inputs (in Options panel) ── */
.wor-field-item--custom {
  background: #faf5ff;
}
.wor-field-item--custom .wor-field-check {
  flex-shrink: 0;
  width: 14px; height: 14px;
  accent-color: var(--wor-primary);
  margin-right: 2px;
  cursor: pointer;
}
.wor-custom-field-name {
  flex: 1;
  padding: 4px 8px;
  border: 1.5px solid #ddd6fe;
  border-radius: 5px;
  font-size: 12px;
  color: var(--wor-text);
  background: #fff;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.wor-custom-field-name:focus {
  outline: none;
  border-color: var(--wor-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.wor-custom-field-name.wor-saving { border-color: #f59e0b; }
.wor-custom-field-name.wor-saved  { border-color: var(--wor-success); }
.wor-custom-field-hint {
  font-size: 10px;
  color: #a78bfa;
  white-space: nowrap;
  flex-shrink: 0;
  font-style: italic;
}

/* ── Editable custom cells in the results table ── */
#wor-table-container td.wor-custom-cell {
  background: #fefce8;
  border-left: 2px solid #fde68a;
  min-width: 120px;
  cursor: text;
  transition: background .12s;
}
#wor-table-container td.wor-custom-cell:empty::before {
  content: attr(title);
  color: #d97706;
  opacity: .6;
  font-size: 11px;
  font-style: italic;
}
#wor-table-container td.wor-custom-cell:focus {
  outline: 2px solid #f59e0b;
  outline-offset: -2px;
  background: #fffbeb;
}
#wor-table-container td.wor-custom-cell:not(:empty) {
  color: var(--wor-text);
}

/* ── Custom field items in the fields list ── */
.wor-field-item--custom {
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
}
.wor-field-item--custom:hover { background: #fef3c7; }

.wor-custom-field-name {
  flex: 1;
  padding: 3px 7px;
  border: 1.5px solid #fcd34d;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--wor-text);
  background: #fff;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.wor-custom-field-name:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.wor-custom-field-name.wor-saving {
  border-color: var(--wor-primary);
  opacity: .7;
}
.wor-custom-field-name.wor-saved {
  border-color: var(--wor-success);
}

.wor-custom-field-hint {
  font-size: 10px;
  color: #b45309;
  background: #fef3c7;
  border-radius: 20px;
  padding: 1px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* ── Preset Picker ── */
.wor-preset-picker-wrap {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--wor-border);
  margin-top: 4px;
}
.wor-preset-picker-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; color: #b45309;
  flex-shrink: 0;
}
.wor-preset-chips {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.wor-preset-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 13px; border-radius: 20px;
  border: 1.5px solid var(--wor-border);
  background: #fff; font-size: 12px; font-weight: 500;
  color: var(--wor-text); cursor: pointer;
  transition: all .15s; user-select: none;
}
.wor-preset-chip:hover {
  border-color: var(--wor-primary);
  background: var(--wor-primary-light);
  color: var(--wor-primary);
}
.wor-preset-chip input[type="radio"] { display: none; }
.wor-preset-chip--default {
  border-color: #fcd34d; background: #fffbeb; color: #b45309;
}
.wor-preset-chip--default:hover {
  border-color: #f59e0b; background: #fef3c7;
}
/* Selected (checked) state */
.wor-preset-chip:has(input:checked) {
  border-color: var(--wor-primary);
  background: var(--wor-primary);
  color: #fff;
}
.wor-preset-chip--default:has(input:checked) {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #fff;
}
.wor-chip-star { flex-shrink: 0; }

.wor-options-tab-wrap { margin: 0 -28px; padding: 0 28px; border-top: 1px solid var(--wor-border); }
.wor-options-toggle {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 14px 0;
  background: none; border: 1.5px solid var(--wor-border);
  border-radius: 20px; padding: 6px 16px;
  font-size: 13px; font-weight: 500; color: var(--wor-muted);
  cursor: pointer; transition: all .15s;
}
.wor-options-toggle:hover, .wor-options-toggle[aria-expanded="true"] {
  border-color: var(--wor-primary); color: var(--wor-primary);
  background: var(--wor-primary-light);
}
.wor-toggle-caret { transition: transform .2s; }
.wor-options-toggle[aria-expanded="true"] .wor-toggle-caret { transform: rotate(180deg); }

/* ── Options Panel ── */
.wor-options-panel {
  background: #fafafa; border: 1.5px solid var(--wor-border);
  border-radius: 10px; padding: 20px;
  margin-bottom: 20px;
  animation: wor-slide-down .2s ease;
}
@keyframes wor-slide-down {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wor-options-inner { margin-bottom: 20px; }

/* Preset bar */
.wor-preset-bar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  padding-bottom: 18px; border-bottom: 1px solid var(--wor-border);
}
.wor-preset-select-wrap { flex: 0 0 220px; }
.wor-preset-actions { display: flex; gap: 8px; align-items: flex-end; }
.wor-preset-save-wrap { display: flex; gap: 8px; align-items: flex-end; flex: 1; min-width: 240px; }
.wor-preset-name-input { max-width: 200px; }
.wor-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--wor-muted); margin-bottom: 5px; }

.wor-options-cols {
  display: flex; gap: 28px; align-items: flex-start;
}
.wor-options-col { flex: 1; }
.wor-options-col--narrow { flex: 0 0 200px; }
.wor-col-title { font-size: 13px; font-weight: 600; color: var(--wor-text); margin: 0 0 6px; }
.wor-col-hint  { font-size: 11px; color: var(--wor-muted); margin: 0 0 10px; }

.wor-fields-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
}
.wor-select-all-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--wor-primary);
  cursor: pointer; user-select: none;
}
.wor-select-all-label input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--wor-primary);
  cursor: pointer;
}
.wor-fields-toolbar .wor-col-hint { margin: 0; }

/* Fields list */
.wor-fields-list {
  list-style: none; margin: 0; padding: 0;
  max-height: 320px; overflow-y: auto;
  border: 1px solid var(--wor-border); border-radius: 7px;
  background: #fff;
}
.wor-field-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid #f3f4f6;
  transition: background .1s;
}
.wor-field-item:last-child { border-bottom: none; }
.wor-field-item:hover { background: #faf5ff; }
.wor-field-item.ui-sortable-helper {
  background: var(--wor-primary-light);
  border: 1.5px solid var(--wor-primary);
  border-radius: 6px; box-shadow: var(--wor-shadow-lg);
}
.wor-drag-handle {
  cursor: grab; color: #ccc; flex-shrink: 0;
  display: flex; align-items: center;
}
.wor-drag-handle:hover { color: var(--wor-primary); }
.wor-field-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--wor-text); cursor: pointer;
}
.wor-field-check { width: 14px; height: 14px; accent-color: var(--wor-primary); }

/* Editable label input for standard fields — looks like plain text until focused */
.wor-field-label-input {
  flex: 1; min-width: 0;
  padding: 2px 5px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  font-size: 13px; color: var(--wor-text);
  background: transparent;
  transition: border-color .15s, background .15s;
  cursor: text;
}
.wor-field-label-input:hover {
  border-color: var(--wor-border);
  background: #fff;
}
.wor-field-label-input:focus {
  outline: none;
  border-color: var(--wor-primary);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(124,58,237,.1);
}
.wor-field-label-input.wor-label-modified {
  color: var(--wor-primary);
  font-style: italic;
}

.wor-field-group { margin-bottom: 14px; }
.wor-radio-group { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.wor-radio-label { font-size: 13px; color: var(--wor-text); display: flex; align-items: center; gap: 7px; cursor: pointer; }

/* ── Run Wrap ── */
.wor-run-wrap {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--wor-border);
  margin-top: 4px;
}
.wor-run-status { font-size: 13px; color: var(--wor-muted); }
.wor-run-status.wor-error { color: var(--wor-danger); }
.wor-run-status.wor-success { color: var(--wor-success); }

/* ── Buttons ── */
.wor-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 7px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .15s; text-decoration: none; white-space: nowrap;
}
.wor-btn:focus { outline: 2px solid var(--wor-primary); outline-offset: 2px; }
.wor-btn-primary {
  background: var(--wor-primary); color: #fff;
  border-color: var(--wor-primary);
}
.wor-btn-primary:hover:not(:disabled) { background: var(--wor-primary-dark); border-color: var(--wor-primary-dark); }
.wor-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.wor-btn-secondary {
  background: #fff; color: var(--wor-primary);
  border-color: var(--wor-primary);
}
.wor-btn-secondary:hover { background: var(--wor-primary-light); }
.wor-btn-danger-outline {
  background: #fff; color: var(--wor-danger);
  border-color: #fca5a5;
}
.wor-btn-danger-outline:hover { background: #fef2f2; border-color: var(--wor-danger); }
.wor-btn-star {
  background: #fffbeb; color: #b45309;
  border-color: #fcd34d;
}
.wor-btn-star:hover  { background: #fef3c7; border-color: #f59e0b; }
.wor-btn-star.wor-is-default {
  background: #f59e0b; color: #fff;
  border-color: #f59e0b;
}
.wor-btn-star.wor-is-default svg path { fill: #fff; stroke: #fff; }

/* Default badge shown next to Options toggle when a default preset is active */
.wor-default-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #b45309;
  background: #fffbeb; border: 1px solid #fcd34d;
  border-radius: 20px; padding: 2px 8px; margin-left: 6px;
}

.wor-btn-export {
  background: #f0fdf4; color: var(--wor-success);
  border-color: #86efac;
  font-size: 12px; padding: 6px 12px;
}
.wor-btn-export:hover { background: #dcfce7; border-color: var(--wor-success); }

/* ── Results Section ── */
.wor-results-section {
  margin-top: 20px;
  background: var(--wor-surface);
  border: 1px solid var(--wor-border);
  border-radius: var(--wor-radius);
  box-shadow: var(--wor-shadow);
  overflow: hidden;
}
.wor-results-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(90deg, #1e1b4b, #4c1d95);
  border-bottom: 1px solid var(--wor-border);
}
.wor-results-count { font-size: 13px; color: #e9d5ff; font-weight: 500; }
.wor-export-actions { display: flex; align-items: center; gap: 8px; }
.wor-export-label { font-size: 12px; color: #c4b5fd; }

/* ── Table ── */
.wor-table-wrap { overflow-x: auto; }
#wor-table-container table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
#wor-table-container thead th {
  padding: 10px 12px;
  text-align: left; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .4px;
  color: var(--wor-primary-dark);
  background: var(--wor-primary-light);
  border-bottom: 2px solid #ddd6fe;
  white-space: nowrap;
}
#wor-table-container tbody tr {
  border-bottom: 1px solid #f3f4f6;
  transition: background .1s;
}
#wor-table-container tbody tr:hover { background: #faf5ff; }
#wor-table-container tbody tr:nth-child(even) { background: #fdfcff; }
#wor-table-container tbody tr:nth-child(even):hover { background: #faf5ff; }
#wor-table-container td {
  padding: 9px 12px;
  color: var(--wor-text);
  vertical-align: top;
}
.wor-badge-status {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
}
.wor-badge-completed  { background: #dcfce7; color: #15803d; }
.wor-badge-processing { background: #dbeafe; color: #1d4ed8; }
.wor-badge-pending    { background: #fef9c3; color: #854d0e; }
.wor-badge-cancelled  { background: #fee2e2; color: #991b1b; }
.wor-badge-refunded   { background: #f3e8ff; color: #6b21a8; }
.wor-empty-state {
  text-align: center; padding: 40px 20px;
  color: var(--wor-muted); font-size: 14px;
}
.wor-empty-icon { font-size: 36px; margin-bottom: 8px; }

/* ── Pagination ── */
.wor-pagination {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 20px;
  border-top: 1px solid var(--wor-border);
}
.wor-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  border: 1.5px solid var(--wor-border);
  background: #fff; font-size: 12px; color: var(--wor-text);
  cursor: pointer; transition: all .15s;
}
.wor-page-btn:hover { border-color: var(--wor-primary); color: var(--wor-primary); background: var(--wor-primary-light); }
.wor-page-btn.wor-current { background: var(--wor-primary); border-color: var(--wor-primary); color: #fff; font-weight: 600; }
.wor-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.wor-page-info { font-size: 12px; color: var(--wor-muted); padding: 0 8px; }

/* ── Loading overlay ── */
.wor-loading {
  text-align: center; padding: 32px 20px;
  color: var(--wor-muted); font-size: 13px;
}
.wor-loading-dots span {
  display: inline-block; width: 7px; height: 7px;
  background: var(--wor-primary); border-radius: 50%; margin: 0 2px;
  animation: wor-bounce .8s ease-in-out infinite;
}
.wor-loading-dots span:nth-child(2) { animation-delay: .15s; }
.wor-loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes wor-bounce {
  0%,80%,100% { transform: scale(.6); opacity:.4; }
  40%          { transform: scale(1); opacity:1; }
}

/* ── Toast notifications ── */
.wor-toast {
  position: fixed; bottom: 24px; right: 24px;
  padding: 12px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.16);
  z-index: 99999;
  animation: wor-toast-in .3s ease;
}
@keyframes wor-toast-in {
  from { opacity:0; transform: translateY(10px); }
  to   { opacity:1; transform: translateY(0); }
}
.wor-toast-success { background: #16a34a; }
.wor-toast-error   { background: var(--wor-danger); }
.wor-toast-info    { background: var(--wor-primary); }

/* Custom field cells — editable, visually distinct */
#wor-table-container td.wor-custom-cell {
  background: #fffbeb;
  border-left: 2px solid #fcd34d;
  cursor: text;
  min-width: 100px;
  color: #92400e;
  font-style: italic;
}
#wor-table-container td.wor-custom-cell:empty::before {
  content: '—';
  color: #d97706;
  opacity: .5;
}
#wor-table-container td.wor-custom-cell:focus {
  outline: 2px solid #f59e0b;
  outline-offset: -2px;
  background: #fef9c3;
  font-style: normal;
  color: var(--wor-text);
}

/* Filled custom cells */
#wor-table-container td.wor-custom-cell:not(:empty) {
  font-style: normal;
  color: var(--wor-text);
}
@media (max-width: 900px) {
  .wor-options-cols { flex-direction: column; }
  .wor-options-col--narrow { flex: none; width: 100%; }
}
@media (max-width: 600px) {
  .wor-card { padding: 16px; }
  .wor-preset-bar { flex-direction: column; align-items: stretch; }
}
