/* ── Google Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Jost:wght@400;500;600&display=swap');

:root {
  /* Accent ramp — overridden per theme below. Neutral tokens (bg, card,
     border, text, muted, danger) stay constant across all themes so body
     text is always dark-on-light with reliable contrast. */
  --accent-strong: #2d6a4f;
  --accent-mid:    #40916c;
  --accent-pale:   #d8f3dc;
  --accent-bright: #74c69d;
  --accent-ring:   rgba(64,145,108,0.20);

  --bg:           #faf8f5;
  --card:         #ffffff;
  --border:       #e5ddd6;
  --text:         #26201a;
  --text-muted:   #8a7b6f;
  --danger:       #c0392b;
  --danger-light: #fdecea;
  --shadow:       0 2px 10px rgba(30,18,8,0.08);
  --radius:       8px;
}

/* ── Theme presets (accent ramp only; neutral tokens unchanged) ──── */
/* Garden Green is the :root default above. */
[data-theme="rose"] {
  --accent-strong: #8c4a59;
  --accent-mid:    #a85f6e;
  --accent-pale:   #f6e4e8;
  --accent-bright: #d59aa6;
  --accent-ring:   rgba(168,95,110,0.22);
}
[data-theme="navy"] {
  --accent-strong: #2b3a67;
  --accent-mid:    #3b4f86;
  --accent-pale:   #e2e6f2;
  --accent-bright: #8c9bc4;
  --accent-ring:   rgba(59,79,134,0.22);
}
[data-theme="charcoal"] {
  --accent-strong: #343a40;
  --accent-mid:    #4b545c;
  --accent-pale:   #e7e9eb;
  --accent-bright: #9aa3ab;
  --accent-ring:   rgba(75,84,92,0.22);
}
[data-theme="terracotta"] {
  --accent-strong: #a8482a;
  --accent-mid:    #c25e3c;
  --accent-pale:   #f7e3d8;
  --accent-bright: #e0a183;
  --accent-ring:   rgba(194,94,60,0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
nav {
  background: var(--accent-strong);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 28px;
  height: 56px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin-right: 32px;
  white-space: nowrap;
}

nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  border-bottom: 3px solid transparent;
}

nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
nav a.active { color: #fff; border-bottom-color: var(--accent-bright); }

/* ── Page layout ─────────────────────────────────────────────────── */
.page { max-width: 1100px; margin: 0 auto; padding: 36px 28px 72px; }
.page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  color: var(--accent-strong);
}

/* ── Cards ───────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

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

.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
}

.card-body { padding: 22px 24px; }

/* ── Grid helpers ─────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 24px; }

/* ── Form fields ─────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

input[type="text"],
input[type="number"],
input[type="date"],
select,
textarea {
  font-family: 'Jost', sans-serif;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 11px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  width: 100%;
  transition: border-color 0.15s;
}

textarea {
  font-family: 'Jost', sans-serif;
  resize: vertical;
  min-height: 56px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-mid);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  font-family: 'Jost', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn-primary { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.btn-primary:hover { background: var(--accent-mid); border-color: var(--accent-mid); }

.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }

.btn-danger { background: #fff; color: var(--danger); border-color: #e8b4b0; }
.btn-danger:hover { background: var(--danger-light); }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; padding: 4px 8px; font-size: 12px; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm { padding: 5px 11px; font-size: 12px; }

/* ── Tables ──────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 9px 14px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid #ede8e3;
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fdf9f6; }

td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }

.total-row td { font-weight: 600; background: var(--accent-pale); }

/* ── Stat boxes ──────────────────────────────────────────────────── */
.stats { display: flex; gap: 18px; flex-wrap: wrap; }

.stat {
  flex: 1;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1.1;
}
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.stat.profit { border-color: var(--accent-bright); }
.stat.profit .stat-value { color: var(--accent-mid); }

/* ── Builder layout ──────────────────────────────────────────────── */
.builder-layout {
  display: grid;
  grid-template-columns: 160px 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Summary sidebar */
.builder-summary {
  position: sticky;
  top: 68px;
  padding: 16px;
  font-size: 13px;
}
.bs-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.bs-section { display: flex; flex-direction: column; gap: 6px; }
.bs-divider { border-top: 1px solid var(--border); margin: 10px 0; }
.bs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}
.bs-row span:last-child {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--text);
}
.bs-total {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-strong);
}
.bs-total span:last-child { color: var(--accent-strong); }

/* Narrow: summary spans full width above the two-column layout */
@media (max-width: 900px) {
  .builder-layout { grid-template-columns: 240px 1fr; }
  .builder-summary {
    grid-column: 1 / -1;
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 20px;
    padding: 12px 16px;
  }
  .bs-title { margin-bottom: 0; margin-right: 8px; }
  .bs-section { flex-direction: row; gap: 16px; }
  .bs-divider { display: none; }
}

.arrangement-list { display: flex; flex-direction: column; gap: 0; }

.arr-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  gap: 8px;
}

.arr-item:last-child { border-bottom: none; }
.arr-item:hover { background: var(--bg); }
.arr-item.active { background: var(--accent-pale); color: var(--accent-strong); font-weight: 600; }
.arr-item-name { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arr-item-qty { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.arr-item-actions { display: flex; gap: 2px; flex-shrink: 0; opacity: 0; margin-left: 6px; }
.arr-item:hover .arr-item-actions { opacity: 1; }
.arr-item.active .arr-item-actions { opacity: 1; }
.arr-btn-move:disabled { opacity: 0.25; cursor: default; }

/* ── Editor ──────────────────────────────────────────────────────── */
.editor-section { margin-bottom: 20px; }
.editor-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.line-row {
  display: grid;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.line-row.flower-row { grid-template-columns: 1fr 90px auto; }
.line-row.hardgood-row { grid-template-columns: 1fr 90px auto; }

.line-row select, .line-row input { margin: 0; }

/* ── Searchable combo picker ─────────────────────────────────────── */
.combo-wrap { position: relative; }

.combo-input {
  width: 100%;
  margin: 0;
}

.combo-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(30,18,8,0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
}

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

.combo-option {
  padding: 8px 11px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-option:hover,
.combo-option.active { background: var(--accent-pale); color: var(--accent-strong); }

.combo-option.is-selected { font-weight: 600; }

.combo-no-match {
  padding: 8px 11px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Cost summary box ─────────────────────────────────────────────── */
.cost-box {
  background: var(--accent-pale);
  border: 1px solid var(--accent-bright);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13px;
}

.cost-box-row { display: flex; justify-content: space-between; padding: 2px 0; }
.cost-box-row.total { font-weight: 700; border-top: 1px solid var(--accent-bright); margin-top: 6px; padding-top: 6px; }

/* ── Leftover Flowers table ──────────────────────────────────────── */
.leftover-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.leftover-table thead th { text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted);
  padding: 6px 10px 8px; border-bottom: 2px solid var(--border); }
.leftover-table thead th.num { text-align: right; }
.leftover-table tbody td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.leftover-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.leftover-table tbody tr:last-child td { border-bottom: none; }
.leftover-table tbody tr.leftover-zero td { color: var(--text-muted); }
.leftover-highlight { font-weight: 700; color: var(--accent-strong); }

/* ── Price list ──────────────────────────────────────────────────── */
.pl-table {
  min-width: 520px;
  table-layout: fixed;
}

.pl-table td:first-child,
.pl-table th:first-child {
  width: auto;
  min-width: 220px;
  white-space: nowrap;
}

.pl-table td.num,
.pl-table th.num {
  width: 90px;
  white-space: nowrap;
}

.pl-table td:last-child,
.pl-table th:last-child {
  width: 48px;
}

.pl-table input {
  border: 1px solid transparent;
  background: transparent;
  padding: 4px 6px;
  border-radius: 6px;
  width: 100%;
}

.pl-table input:hover { border-color: var(--border); background: #fff; }
.pl-table input:focus { border-color: var(--accent-mid); background: #fff; box-shadow: 0 0 0 2px var(--accent-ring); }

/* ── Misc ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-green { background: var(--accent-pale); color: var(--accent-strong); }

.section-gap { margin-top: 28px; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.fw-600 { font-weight: 600; }

/* ── Nav actions (Save / New) ─────────────────────────────────────── */
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-quote-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}

.btn-nav-action {
  font-family: 'Jost', sans-serif;
  padding: 5px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}

.btn-nav-save {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.25);
}
.btn-nav-save:hover:not(:disabled) { background: rgba(255,255,255,0.22); color: #fff; }
.btn-nav-save:disabled { opacity: 0.6; cursor: default; }

.btn-nav-save.has-changes {
  border-color: #f0a500;
  color: #f0a500;
}
.btn-nav-save.has-changes::before {
  content: '● ';
  font-size: 8px;
  vertical-align: middle;
  margin-right: 2px;
}

.btn-nav-new {
  background: var(--accent-bright);
  color: var(--accent-strong);
  border-color: transparent;
}
.btn-nav-new:hover { filter: brightness(1.08); }

/* ── Quotes list page ────────────────────────────────────────────── */
.open-quote-row td { background: var(--accent-pale); }
.quotes-empty { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.saved-at-label { font-size: 11px; color: var(--text-muted); }

/* ── Flower Catalog ──────────────────────────────────────────────── */
.cat-filter-group { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.cat-filter-group:last-child { margin-bottom: 0; }
.cat-filter-label {
  flex: 0 0 48px; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); padding-top: 6px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-items: center; }

.chip {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 14px; padding: 4px 13px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all 0.12s; text-transform: capitalize;
  display: inline-flex; align-items: center; gap: 5px; line-height: 1.4;
}
.chip:hover { border-color: var(--accent-mid); }
.chip.active { background: var(--accent-mid); border-color: var(--accent-mid); color: #fff; }
.chip.active .swatch { box-shadow: 0 0 0 1.5px #fff; }

.swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12); flex: 0 0 auto;
}

.cat-results-meta { font-size: 12px; margin: 4px 2px 10px; }

.cat-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 8px; box-shadow: var(--shadow);
}
.cat-row-main { flex: 1; min-width: 0; }
.cat-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  text-transform: capitalize;
}
.cat-variety { font-style: italic; color: var(--text-muted); font-size: 13px; }
.cat-type-badge {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-strong); background: var(--accent-pale); border-radius: 10px; padding: 2px 8px;
}
.cat-season-now { font-size: 10px; }
.cat-row-sub { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.cat-swatches { display: inline-flex; gap: 4px; }
.cat-meta { font-size: 12px; color: var(--text-muted); }
.cat-notes { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-style: italic; }

.cat-row-action { flex: 0 0 auto; display: flex; align-items: center; }
.cat-in-list { font-size: 12px; font-weight: 600; color: var(--accent-mid); white-space: nowrap; }

.cat-add-form { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.cat-add-fields { display: flex; gap: 8px; }
.cat-add-fields label {
  display: flex; flex-direction: column; gap: 3px; font-size: 11px;
  font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em;
}
.cat-add-fields input { width: 84px; }
.cat-add-buttons { display: flex; gap: 6px; }

@media (max-width: 640px) {
  .cat-row { flex-direction: column; }
  .cat-row-action { width: 100%; }
}

/* ── Theme selector ──────────────────────────────────────────────── */
.theme-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.theme-swatch {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  background: var(--card); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s;
  min-width: 104px;
}
.theme-swatch:hover { border-color: var(--accent-mid); }
.theme-swatch.active { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--accent-ring); }
.theme-swatch-colors { display: flex; gap: 0; border-radius: 4px; overflow: hidden; border: 1px solid rgba(0,0,0,0.1); }
.theme-swatch-colors span { width: 26px; height: 26px; display: block; }
.theme-swatch-name { font-size: 12px; font-weight: 500; color: var(--text); }

/* ── Reset / Danger Zone ─────────────────────────────────────────── */
.danger-zone { border: 1px solid #e6b4b4; }
.danger-title { color: #b3261e; }

.undo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff7e6; border: 1px solid #f0c060; border-radius: var(--radius);
  padding: 10px 14px; font-size: 13px; color: #7a5a00;
}

.danger-action { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.danger-action-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.danger-action-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.danger-action-desc { font-size: 12px; color: var(--text-muted); max-width: 560px; line-height: 1.6; }

.danger-confirm { margin-top: 14px; }
.danger-warn {
  background: #fdeceb; border: 1px solid #e6b4b4; border-radius: var(--radius);
  padding: 10px 12px; font-size: 12.5px; color: #8a1c16; line-height: 1.6; margin-bottom: 10px;
}
.danger-confirm-label { display: block; font-size: 12px; color: var(--text); margin-bottom: 6px; }
.danger-confirm-label strong { color: #b3261e; letter-spacing: 0.03em; }
.danger-confirm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.danger-input { max-width: 220px; }
.btn-danger:disabled { opacity: 0.45; cursor: default; }

/* ── Modal + price-sheet import ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px; z-index: 1000; overflow-y: auto;
}
.modal {
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(30,18,8,0.20); width: 100%; max-width: 680px;
  display: flex; flex-direction: column; max-height: calc(100vh - 80px);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
}
.modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--accent-strong);
}
.modal-close {
  background: none; border: none; font-size: 16px; cursor: pointer;
  color: var(--text-muted); line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-actions {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border);
}

.import-error {
  background: #fdeceb; border: 1px solid #e6b4b4; border-radius: var(--radius);
  padding: 10px 12px; font-size: 13px; color: #8a1c16; margin-bottom: 12px; line-height: 1.6;
}
.import-hint {
  background: #fff7e6; border: 1px solid #f0c060; border-radius: var(--radius);
  padding: 10px 12px; font-size: 12.5px; color: #7a5a00; margin-bottom: 12px; line-height: 1.6;
}
.import-section-title {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin: 16px 0 6px;
}
.import-grid-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.import-grid { border-collapse: collapse; font-size: 12px; width: 100%; }
.import-grid td { border: 1px solid #ede8e3; padding: 4px 8px; white-space: nowrap; }
.import-grid td.rownum { background: var(--bg); color: var(--text-muted); text-align: right; font-size: 11px; }
.import-grid tr.is-header td { background: var(--accent-pale); font-weight: 600; }
.import-grid td.col-name  { box-shadow: inset 0 0 0 2px #4a73d6; }
.import-grid td.col-price { box-shadow: inset 0 0 0 2px var(--accent-strong); }
.import-grid td.col-bunch { box-shadow: inset 0 0 0 2px #c66a3d; }

.import-select { max-width: 320px; }
.import-map { display: flex; gap: 14px; flex-wrap: wrap; }
.import-map label {
  display: flex; flex-direction: column; gap: 4px; font-size: 12px;
  font-weight: 600; color: var(--text-muted);
}
.import-map select { min-width: 180px; }
.import-map .req { color: #b3261e; }

.import-parsed { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; }
.import-parsed th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); padding: 4px 8px; border-bottom: 1px solid var(--border); }
.import-parsed th.num, .import-parsed td.num { text-align: right; font-variant-numeric: tabular-nums; }
.import-parsed td { padding: 5px 8px; border-bottom: 1px solid #ede8e3; }

.import-option { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 14px; }
.import-option-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.import-option-title { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.import-option-desc { font-size: 12px; color: var(--text-muted); max-width: 440px; line-height: 1.6; }

.import-result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--accent-pale); border: 1px solid var(--accent-bright); border-radius: var(--radius);
  padding: 10px 14px; font-size: 13px; color: var(--accent-strong); margin-bottom: 14px;
}
