/* Production landing styles — vegprice.eu (Classic SaaS direction) */

:root {
  /* Surfaces */
  --bg: #FAFAF8;
  --surface: #FFFFFF;
  --surface-2: #F5F5F2;
  --line: #E8E6E1;
  --line-soft: #F0EEEA;
  /* Ink */
  --ink: #14140F;
  --ink-2: #3A3A33;
  --ink-3: #6B6B61;
  --ink-4: #A8A8A0;
  /* Accent (green by default; overridable) */
  --accent: oklch(0.52 0.13 145);
  --accent-2: oklch(0.45 0.13 145);
  --accent-soft: oklch(0.96 0.04 145);
  --accent-soft-2: oklch(0.92 0.06 145);
  --accent-ink: oklch(0.32 0.10 145);
  /* Type */
  --display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

[data-palette="terracotta"] {
  --accent: oklch(0.58 0.13 45);
  --accent-2: oklch(0.50 0.13 45);
  --accent-soft: oklch(0.96 0.03 45);
  --accent-soft-2: oklch(0.92 0.05 45);
  --accent-ink: oklch(0.38 0.12 45);
}
[data-palette="ochre"] {
  --accent: oklch(0.62 0.13 80);
  --accent-2: oklch(0.54 0.13 80);
  --accent-soft: oklch(0.96 0.04 80);
  --accent-soft-2: oklch(0.92 0.06 80);
  --accent-ink: oklch(0.40 0.12 80);
}
[data-palette="forest"] {
  --accent: oklch(0.42 0.10 155);
  --accent-2: oklch(0.36 0.10 155);
  --accent-soft: oklch(0.95 0.03 155);
  --accent-soft-2: oklch(0.90 0.05 155);
  --accent-ink: oklch(0.28 0.08 155);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 18px; } }
html, body { overflow-x: hidden; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(32px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.035em; overflow-wrap: break-word; word-break: break-word; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; color: var(--ink-2); }
.text-muted { color: var(--ink-3); }
.text-mono { font-family: var(--mono); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; transition: all .15s ease; text-decoration: none; line-height: 1;
}
.btn:hover { border-color: var(--ink-4); background: var(--surface-2); }
.btn-primary {
  background: var(--accent); color: #fff; border-color: transparent;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-primary:hover { background: var(--accent-2); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.btn .icon { width: 16px; height: 16px; flex-shrink: 0; }
.btn-lg .icon { width: 18px; height: 18px; }

/* Inputs */
.input {
  width: 100%; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-sm { height: 36px; font-size: 13px; padding: 0 12px; }

/* Select (custom-look) */
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B6B61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
  padding-right: 32px;
}

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.nav-logo:hover { color: var(--ink); text-decoration: none; }
.nav-logo-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.nav-logo-mark .icon { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 8px; align-items: center; }

@media (max-width: 800px) {
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .nav-row { padding: 14px 14px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 8px 10px; font-size: 13px; }
  .nav-logo { font-size: 15px; }
  .lang-btn { padding: 6px 8px; font-size: 13px; }
  .lang-btn span:not(.lang-flag) { display: none; }
}

/* HERO */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-eyebrow { margin-bottom: 18px; }
.hero h1 .em { color: var(--accent-ink); font-style: normal; }
.hero-sub { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 480px; margin: 18px 0 28px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { display: flex; gap: 22px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { width: 14px; height: 14px; color: var(--accent); }

/* Decorative leaf */
.hero-deco {
  position: absolute; left: -40px; top: 80px; width: 180px; height: 180px;
  color: var(--accent); opacity: 0.10; pointer-events: none; z-index: 0;
}
.hero-deco svg { width: 100%; height: 100%; }
.hero-content-wrap { position: relative; }

/* Creator card */
.creator {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px;
  box-shadow:
    0 1px 2px rgba(20, 20, 15, 0.04),
    0 12px 32px -8px rgba(20, 20, 15, 0.08),
    0 24px 64px -16px rgba(20, 20, 15, 0.06);
}
.creator-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.creator-title { font-weight: 600; font-size: 15px; }
.creator-toggle {
  display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3);
  cursor: pointer; user-select: none;
}
.toggle {
  width: 32px; height: 18px; border-radius: 999px; background: var(--line); position: relative;
  transition: background .2s;
}
.toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.15); transition: left .2s;
}
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 16px; }

.creator-currency {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 14px;
}
.creator-currency-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.creator-currency-select {
  width: auto; min-width: 110px; height: 32px; font-size: 12px; font-weight: 500;
  background-color: #fff;
}
.creator-table-head {
  display: grid; grid-template-columns: 32px 1.4fr 1.1fr 0.85fr 0.7fr 28px;
  gap: 8px; font-size: 11px; color: var(--ink-3); padding: 0 4px 6px;
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em;
}
.creator-table-head span:first-child,
.creator-table-head span:last-child { visibility: hidden; }
.creator-row {
  display: grid; grid-template-columns: 32px 1.4fr 1.1fr 0.85fr 0.7fr 28px;
  gap: 8px; align-items: center; margin-bottom: 8px;
}
.photo-btn {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px dashed var(--line); background: var(--surface-2);
  color: var(--ink-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.photo-btn:hover { border-color: var(--accent); border-style: solid; color: var(--accent-ink); background: var(--accent-soft); }
.photo-btn .icon { width: 14px; height: 14px; }
.price-input { position: relative; }
.price-input .input { padding-right: 26px; }
.price-suffix {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; color: var(--ink-3); pointer-events: none; font-weight: 500;
}
.icon-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid transparent;
  background: transparent; color: var(--ink-4); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink-2); }
.icon-btn .icon { width: 14px; height: 14px; }

.creator-add {
  width: 100%; padding: 11px; border-radius: 10px; border: 1px dashed var(--line);
  background: transparent; color: var(--ink-3); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; transition: all .15s; margin-top: 4px;
}
.creator-add:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.creator-add .icon { width: 14px; height: 14px; }

.creator-cta { margin-top: 16px; }
.creator-cta-note { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 10px; }

/* Trust bar / Social proof */
.trustbar {
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 24px 0; margin-top: 16px;
}
.trustbar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trustbar-grid--3 {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.trustbar-item .num {
  font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
  display: block; line-height: 1; color: var(--accent);
}
.trustbar-item .lbl { font-size: 13px; color: var(--ink-3); margin-top: 4px; display: block; }
@media (max-width: 700px) {
  .trustbar-grid { grid-template-columns: repeat(2, 1fr); }
  .trustbar-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .trustbar-grid--3 { grid-template-columns: 1fr; gap: 16px; }
}

/* Section */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent-ink);
  text-transform: uppercase; margin-bottom: 12px; display: inline-block;
}
.section h2 { margin-bottom: 12px; }
.section-sub { font-size: 16px; color: var(--ink-3); }

/* How it works */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; position: relative; overflow: hidden;
}
.step-num {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-ink);
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.step-visual {
  margin-top: 18px; height: 130px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; transition: border-color .15s, transform .15s;
}
.feature:hover { border-color: var(--ink-4); }
.feature-icon {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft);
  color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon .icon { width: 18px; height: 18px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* Showcase (preview of farm page) */
.showcase {
  background: var(--surface); padding: 80px 0;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.showcase-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; } }

.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,15,0.04), 0 30px 60px -20px rgba(20,20,15,0.18);
}
.browser-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.dots { display: flex; gap: 5px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; }
.dots span:nth-child(1) { background: #FF5F57; }
.dots span:nth-child(2) { background: #FEBC2E; }
.dots span:nth-child(3) { background: #28C840; }
.url {
  flex: 1; height: 26px; border-radius: 7px; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 10px; font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}

.farm-cover {
  height: 200px; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.15)),
    linear-gradient(135deg, oklch(0.65 0.10 130), oklch(0.45 0.12 150) 60%, oklch(0.30 0.08 50));
}
.farm-cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, oklch(0.85 0.13 80) 0%, transparent 35%),
    radial-gradient(ellipse at 30% 90%, oklch(0.30 0.05 145) 0%, transparent 50%);
  opacity: 0.7;
}

/* Cover presets — used by both editor preview and public page */
.cv-default { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.15)), linear-gradient(135deg, oklch(0.65 0.10 130), oklch(0.45 0.12 150) 60%, oklch(0.30 0.08 50)); }
.cv-default::after { background: radial-gradient(ellipse at 80% 30%, oklch(0.85 0.13 80) 0%, transparent 35%), radial-gradient(ellipse at 30% 90%, oklch(0.30 0.05 145) 0%, transparent 50%); opacity: 0.7; }
.cv-meadow { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.12)), linear-gradient(135deg, oklch(0.85 0.13 110), oklch(0.70 0.14 140) 50%, oklch(0.50 0.12 145)); }
.cv-meadow::after { background: radial-gradient(ellipse at 70% 20%, oklch(0.95 0.10 95) 0%, transparent 40%), radial-gradient(ellipse at 20% 90%, oklch(0.55 0.10 145) 0%, transparent 55%); opacity: 0.65; }
.cv-harvest { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.18)), linear-gradient(135deg, oklch(0.78 0.16 60), oklch(0.60 0.18 35) 55%, oklch(0.40 0.14 25)); }
.cv-harvest::after { background: radial-gradient(ellipse at 80% 25%, oklch(0.90 0.14 80) 0%, transparent 38%), radial-gradient(ellipse at 25% 90%, oklch(0.45 0.10 30) 0%, transparent 55%); opacity: 0.65; }
.cv-berries { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.20)), linear-gradient(135deg, oklch(0.55 0.18 350), oklch(0.40 0.20 0) 55%, oklch(0.30 0.14 320)); }
.cv-berries::after { background: radial-gradient(ellipse at 75% 25%, oklch(0.75 0.18 350) 0%, transparent 40%), radial-gradient(ellipse at 25% 90%, oklch(0.30 0.12 330) 0%, transparent 55%); opacity: 0.7; }
.cv-sky { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.12)), linear-gradient(135deg, oklch(0.85 0.10 220), oklch(0.65 0.12 230) 55%, oklch(0.45 0.12 250)); }
.cv-sky::after { background: radial-gradient(ellipse at 80% 30%, oklch(0.95 0.06 220) 0%, transparent 40%), radial-gradient(ellipse at 30% 90%, oklch(0.50 0.10 250) 0%, transparent 55%); opacity: 0.6; }
.cv-soil { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.20)), linear-gradient(135deg, oklch(0.55 0.08 60), oklch(0.40 0.10 50) 55%, oklch(0.25 0.06 40)); }
.cv-soil::after { background: radial-gradient(ellipse at 75% 25%, oklch(0.70 0.10 70) 0%, transparent 40%), radial-gradient(ellipse at 25% 85%, oklch(0.30 0.06 50) 0%, transparent 55%); opacity: 0.6; }

/* Cover picker tiles */
.cover-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.cover-tile { position: relative; height: 64px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; overflow: hidden; padding: 0; outline: none; transition: transform 0.12s, border-color 0.12s; }
.cover-tile:hover { transform: translateY(-1px); }
.cover-tile.is-active { border-color: var(--accent, #2C7A47); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #2C7A47) 25%, transparent); }
.cover-tile-label { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 11px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.5); pointer-events: none; }
.farm-body { padding: 22px 24px 24px; position: relative; }
.farm-avatar {
  position: absolute; top: -32px; left: 24px;
  width: 64px; height: 64px; border-radius: 16px; background: #fff;
  border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.farm-avatar .icon { width: 28px; height: 28px; }
.farm-head { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 36px; gap: 14px; flex-wrap: wrap; }
.farm-head > div:first-child { min-width: 0; }
@media (max-width: 1100px) {
  .farm-actions { width: 100%; }
  .farm-actions .btn { flex: 1; justify-content: center; }
}
.farm-name { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.farm-loc { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }
.farm-loc .icon { width: 12px; height: 12px; }
.farm-actions { display: flex; gap: 8px; }
.farm-pricelist {
  margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
}
.farm-pricelist-head {
  font-size: 11px; color: var(--ink-3); padding: 10px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft); font-weight: 500; letter-spacing: 0.04em;
}
.pl-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) 56px 72px auto;
  gap: 10px; align-items: center; padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.pl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-row:last-child { border-bottom: none; }
.pl-thumb {
  width: 32px; height: 32px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}
.pl-name { color: var(--ink); font-weight: 500; }
.pl-unit { color: var(--ink-3); font-size: 12px; }
.pl-price { color: var(--ink); font-weight: 600; }
.pl-status {
  font-size: 11px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px; justify-self: end;
  white-space: nowrap;
}
.pl-status .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }

.showcase-text h2 { margin-bottom: 16px; }
.showcase-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.showcase-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.showcase-list .check {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.showcase-list .check .icon { width: 13px; height: 13px; }
.showcase-list strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 15px; }
.showcase-list span { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }

/* Live Examples */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px;
}
.example-card {
  display: flex; flex-direction: column;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e8eae6);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 1px 2px rgba(20,30,20,0.04);
}
.example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20,40,30,0.10);
  border-color: var(--accent-soft, #d7ecd2);
}
.example-cover {
  position: relative;
  height: 168px;
  overflow: hidden;
}
.example-cover::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
}
.example-badge {
  position: absolute;
  left: 14px; bottom: 14px;
  z-index: 2;
  display: inline-flex; align-items: center;
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  color: var(--ink, #1a2a1f);
  font-size: 12.5px; font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
}
.example-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.example-title {
  font-size: 18px; font-weight: 700; color: var(--ink, #1a2a1f);
  line-height: 1.25;
}
.example-loc {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--ink-3, #6b7568);
}
.example-loc .icon { width: 14px; height: 14px; opacity: 0.7; }
.example-items {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px dashed var(--line, #e8eae6);
  padding-top: 14px;
}
.example-items li {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--ink-2, #3b4a3f);
  gap: 12px;
}
.example-items li span:last-child {
  color: var(--ink, #1a2a1f);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.example-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-ink, #2d5a3a);
  font-weight: 600; font-size: 14px;
  padding-top: 6px;
}
.example-cta .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.example-card:hover .example-cta .icon { transform: translateX(3px); }
.examples-foot {
  margin-top: 36px;
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap; text-align: center;
}
.examples-foot span {
  color: var(--ink-3, #6b7568);
  font-size: 14px;
}
@media (max-width: 960px) {
  .examples-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .examples-grid { grid-template-columns: 1fr; gap: 18px; }
  .example-cover { height: 140px; }
  .examples-foot { flex-direction: column; gap: 14px; }
}

/* Testimonial */
.testimonial {
  max-width: 760px; margin: 0 auto; text-align: center; padding: 48px 0;
}
.testimonial-quote {
  font-family: var(--display); font-size: 24px; line-height: 1.4;
  color: var(--ink); letter-spacing: -0.01em; margin-bottom: 20px;
  font-weight: 500;
}
.testimonial-author { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.testimonial-author .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line); padding: 20px 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 500; font-size: 16px; color: var(--ink);
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .icon { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; }
.faq-item[open] .faq-q .icon { transform: rotate(180deg); }
.faq-a { font-size: 14px; color: var(--ink-3); line-height: 1.6; margin-top: 12px; max-width: 600px; }

/* Final CTA */
.final-cta {
  background: var(--accent); color: #fff; border-radius: 18px;
  padding: 56px 56px; display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 280px; height: 280px;
  border-radius: 50%; background: rgba(255,255,255,0.08); pointer-events: none;
}
.final-cta::after {
  content: ""; position: absolute; right: 80px; bottom: -100px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,255,255,0.06); pointer-events: none;
}
.final-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.final-cta p { color: rgba(255,255,255,0.85); font-size: 15px; margin-top: 10px; }
.final-cta .cta-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.final-cta .btn { background: #fff; color: var(--ink); border-color: transparent; }
.final-cta .btn:hover { background: var(--surface-2); }
.final-cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
@media (max-width: 800px) {
  .final-cta { grid-template-columns: 1fr; padding: 40px 28px; }
  .final-cta .cta-actions { justify-content: flex-start; }
}

/* Footer */
.footer {
  padding: 56px 0 40px; border-top: 1px solid var(--line-soft); margin-top: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--ink-3); text-transform: uppercase; margin: 0 0 14px; font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--ink); }
.footer-tagline { color: var(--ink-3); font-size: 13.5px; max-width: 280px; margin-top: 12px; line-height: 1.55; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line-soft);
  font-size: 12px; color: var(--ink-3);
}
.footer-bottom-links { display: flex; gap: 20px; }

/* ============ APP SHELL (sidebar + topbar + content) ============ */
.app-shell {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: 100vh; background: var(--surface-2);
}
@media (max-width: 900px) { .app-shell { grid-template-columns: 1fr; } }

.sidebar {
  background: var(--surface); border-right: 1px solid var(--line-soft);
  padding: 20px 14px; display: flex; flex-direction: column; position: sticky; top: 0; max-height: 100vh; overflow-y: auto; align-self: start;
}
@media (max-width: 900px) { .sidebar { display: none; } }

.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px;
  font-weight: 600;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark .icon { width: 18px; height: 18px; }
.brand-name { font-size: 16px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  background: transparent; border: none; border-radius: 8px; cursor: pointer;
  font-size: 14px; color: var(--ink-2); font-family: inherit; text-align: left;
  transition: all .15s;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 500; }
.nav-item.active .nav-icon { color: var(--accent); }
.nav-icon { display: inline-flex; }
.nav-icon .icon { width: 18px; height: 18px; }
.nav-label { flex: 1; }
.nav-count {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-3); font-weight: 500;
}
.nav-item.active .nav-count { background: #fff; color: var(--accent-ink); }
.nav-count.hot { background: var(--accent, #22c55e); color: #fff; }
.nav-item.active .nav-count.hot { background: #fff; color: var(--accent-ink); }

.guest-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  border: 1px solid rgba(34,197,94,0.25); border-radius: 12px;
}
.guest-banner-icon { color: var(--accent, #22c55e); flex: 0 0 auto; }
.guest-banner-icon .icon { width: 22px; height: 22px; }
.guest-banner-text { flex: 1 1 auto; line-height: 1.4; }
.guest-banner-text strong { display: block; margin-bottom: 2px; }
.guest-banner-actions { display: flex; gap: 8px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .guest-banner { flex-direction: column; align-items: flex-start; }
  .guest-banner-actions { width: 100%; }
  .guest-banner-actions .btn { flex: 1; }
}

.sidebar-footer { padding-top: 14px; border-top: 1px solid var(--line-soft); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.user-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.user-action {
  background: none; border: none; padding: 0; font-size: 12px;
  color: var(--accent-ink); cursor: pointer; font-family: inherit;
}

.app-main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--line-soft);
  padding: 14px 28px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.topbar-title h2 { font-size: 16px; margin: 0 0 2px; font-weight: 600; }
.topbar-status {
  font-size: 12px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.lang-switcher { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; cursor: pointer; font-family: inherit; color: var(--ink-2);
}
.lang-flag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 18px; padding: 0 5px;
  border-radius: 4px; background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.lang-item.active .lang-flag { background: var(--accent); color: #fff; border-color: var(--accent); }
.lang-btn .icon { width: 14px; height: 14px; flex-shrink: 0; }
.lang-item .icon { width: 14px; height: 14px; flex-shrink: 0; margin-left: auto; }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08); padding: 6px; min-width: 180px;
}
.lang-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; background: none; border: none; border-radius: 6px;
  font-size: 13px; cursor: pointer; font-family: inherit; color: var(--ink-2);
  text-align: left;
}
.lang-item:hover { background: var(--surface-2); }
.lang-item.active { background: var(--accent-soft); color: var(--accent-ink); }

.app-content { padding: 28px; max-width: 1400px; width: 100%; margin: 0 auto; min-width: 0; }
@media (max-width: 600px) { .app-content { padding: 16px; } .topbar { padding: 12px 16px; } }

/* ===== Locked view (login required) ===== */
.locked-wrap { position: relative; min-height: 70vh; }
.locked-blur {
  filter: blur(0.6px) saturate(0.99);
  pointer-events: none;
  user-select: none;
  opacity: 0.985;
}
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  background: linear-gradient(180deg, rgba(252,251,247,0.05) 0%, rgba(252,251,247,0.25) 40%, rgba(252,251,247,0.5) 100%);
  backdrop-filter: blur(0.5px);
  -webkit-backdrop-filter: blur(0.5px);
}
.locked-card {
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.3) blur(24px);
  -webkit-backdrop-filter: saturate(1.3) blur(24px);
  border: 1.5px solid rgba(15,23,42,0.18);
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 480px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6) inset,
    0 0 0 6px rgba(34,197,94,0.08),
    0 0 0 7px rgba(15,23,42,0.05),
    0 24px 60px -12px rgba(15,23,42,0.32),
    0 8px 20px rgba(15,23,42,0.10);
}
.locked-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.locked-icon .icon { width: 24px; height: 24px; }
.locked-title { font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.locked-desc { color: var(--ink-3); margin: 0 0 20px; line-height: 1.5; }
.locked-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.locked-meta { line-height: 1.5; }
@media (max-width: 720px) {
  .locked-overlay { padding-top: 40px; }
  .locked-card { padding: 24px 20px; }
}

.success-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--accent-soft);
  border: 1px solid var(--accent); border-radius: 10px; margin-bottom: 24px;
  color: var(--accent-ink); font-size: 14px;
}
.success-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.success-dot .icon { width: 14px; height: 14px; }
.banner-x {
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--accent-ink); cursor: pointer; padding: 0 4px;
}

/* TWO LINKS */
.links-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 28px;
}
@media (max-width: 1100px) { .links-row { grid-template-columns: minmax(0, 1fr); } }
.link-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.link-card-public { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.link-card-edit { background: var(--surface-2); }
.link-card-top { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.link-icon { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.link-icon-public { background: var(--accent); color: #fff; }
.link-icon-edit { background: var(--ink); color: #fff; }
.link-icon .icon { width: 20px; height: 20px; }
.link-card-title { font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-card-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.url-row { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 12px; gap: 4px; min-width: 0; max-width: 100%; }
.url-row-light { background: var(--surface-2); }
.url-row-dark { background: var(--surface); border-color: var(--line); }
.url-prefix { font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.url-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--ink); padding: 8px 4px; }
.link-card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.link-card-warning { margin-top: 14px; padding: 10px 12px; background: #FEF3C7; color: #78350F; border-radius: 8px; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.link-card-warning .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.chip-warn { background: #FEF3C7; color: #78350F; font-size: 10px; padding: 2px 8px; border-radius: 999px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* EDITOR GRID */
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .editor-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .editor-preview-col { position: static; } }
.editor-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.editor-preview-col { position: sticky; top: 76px; min-width: 0; max-height: calc(100vh - 76px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.editor-preview-col::-webkit-scrollbar { width: 6px; }
.editor-preview-col::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.editor-preview-col::-webkit-scrollbar-track { background: transparent; }
.preview-tag { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: center; margin-bottom: 12px; letter-spacing: 0.05em; }

/* COLLAPSIBLE SECTIONS */
.edit-section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.edit-section-head {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; background: var(--surface); border: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.edit-section-head:hover { background: var(--surface-2); }
.edit-section-icon {
  width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft);
  color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.edit-section-icon .icon { width: 18px; height: 18px; }
.edit-section-titles { flex: 1; min-width: 0; }
.edit-section-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.edit-section-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.edit-section-chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; }
.edit-section.open .edit-section-chev { transform: rotate(180deg); }
.edit-section-body { padding: 18px; border-top: 1px solid var(--line-soft); }

/* PRICELIST EDITOR */
.pl-edit-toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.pl-edit-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pl-edit-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) 180px 32px;
  gap: 12px; align-items: center; padding: 10px; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: 10px;
}
@media (max-width: 700px) { .pl-edit-row { grid-template-columns: 56px 1fr 32px; } .pl-edit-price { grid-column: 1 / -1; } }
.photo-btn-lg {
  position: relative; width: 64px; height: 64px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; overflow: hidden; padding: 0;
}
.photo-btn-lg img { width: 100%; height: 100%; object-fit: cover; }
.photo-btn-lg .photo-empty {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 28px; line-height: 1;
  background: var(--surface-2, #f3f4f6); color: var(--ink-3, #888);
}
.pl-thumb-empty {
  display: inline-flex !important; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; background: var(--surface-2, #f3f4f6);
  color: var(--ink-3, #888); object-fit: initial;
}
.photo-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35); color: #fff; opacity: 0; transition: opacity .15s;
}
.photo-btn-lg:hover .photo-overlay { opacity: 1; }
.photo-overlay .icon { width: 20px; height: 20px; }
.photo-count-badge {
  position: absolute; right: 2px; bottom: 2px; background: rgba(0,0,0,0.72); color: #fff;
  font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 8px; font-weight: 600;
  pointer-events: none;
}
.photo-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.photo-strip {
  display: flex; gap: 4px; flex-wrap: wrap; max-width: 220px;
}
.photo-strip-item {
  position: relative; width: 28px; height: 28px; border-radius: 5px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
}
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-strip-rm {
  position: absolute; top: -4px; right: -4px; width: 16px; height: 16px;
  border-radius: 50%; border: 0; background: #c0392b; color: #fff;
  font-size: 12px; line-height: 1; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3); opacity: 0; transition: opacity .12s;
}
.photo-strip-item:hover .photo-strip-rm { opacity: 1; }
.pl-edit-fields { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-edit-price { display: grid; grid-template-columns: 1fr 90px; gap: 6px; }
.icon-btn-lg { width: 32px; height: 32px; }

.btn-dashed { border-style: dashed; background: transparent; color: var(--ink-3); }
.btn-dashed:hover { border-style: solid; color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }

/* FIELD PRIMITIVES */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field-hint { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.input.textarea { resize: vertical; min-height: 76px; line-height: 1.5; padding: 10px 12px; font-family: inherit; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.input-with-icon { position: relative; }
.input-with-icon .input { padding-left: 36px; }
.input-with-icon .input-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.address-suggestions { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.suggestion { padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.suggestion .icon { width: 14px; height: 14px; color: var(--ink-3); }
.suggestion:hover, .suggestion.active { background: var(--accent-soft); color: var(--accent-ink); }
.suggestion.active .icon { color: var(--accent); }

.visibility-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); cursor: pointer; user-select: none; }

/* SEO preview card (per-cennik settings) */
.seo-preview { margin: 12px 0; }
.seo-preview-label { margin-bottom: 6px; }
.seo-preview-card {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: arial, sans-serif;
  max-width: 540px;
}
.seo-url { font-size: 12px; color: #006621; margin-bottom: 2px; }
.seo-title { font-size: 18px; color: #1a0dab; line-height: 1.3; margin-bottom: 4px; }
.seo-desc { font-size: 13px; color: #545454; line-height: 1.4; }

/* WHATSAPP BOT CARD */
.bot-card { padding: 16px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 14px; }
.bot-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.bot-icon { width: 36px; height: 36px; border-radius: 8px; background: #25D366; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bot-icon .icon { width: 18px; height: 18px; }
.bot-title { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bot-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.5; }
.bot-help-link { color: var(--accent, #2C7A47); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bot-help-link:hover { text-decoration: underline; }
.bot-active { padding-top: 12px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.bot-step { font-size: 12px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bot-step strong { color: var(--ink); margin-right: 4px; }
.bot-chip { display: inline-flex; align-items: center; padding: 3px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; }

.highlight-card { padding: 14px; background: #FEF8EC; border: 1px solid #FCD34D; border-radius: 10px; margin-top: 14px; }
.foreign-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #FCD34D; }
.flag-chip { display: inline-flex; padding: 4px 10px; background: #fff; border: 1px solid #FCD34D; border-radius: 999px; font-size: 12px; color: #78350F; }
.foreign-translate {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 12px; padding: 12px; background: #fff;
  border: 1px solid #FCD34D; border-radius: 10px;
}
.foreign-translate-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #FEF3C7; color: #78350F; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.foreign-translate-icon .icon { width: 16px; height: 16px; }
.foreign-translate strong { font-size: 13px; color: var(--ink); display: block; margin-bottom: 4px; }
.foreign-translate p { font-size: 12px; color: var(--ink-3); line-height: 1.55; margin: 0; }

/* PORTALS — search + country filter */
.portals-toolbar { margin-bottom: 12px; }
.portals-search { width: 100%; }
.portals-search .input { padding-left: 36px; }
.portals-country-filter {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}
.country-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: 12px; cursor: pointer;
  font-family: inherit; color: var(--ink-2); transition: all .15s;
}
.country-pill:hover { border-color: var(--ink-4); }
.country-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.country-pill-count {
  font-size: 10px; padding: 1px 6px; background: var(--surface-2);
  color: var(--ink-3); border-radius: 999px; font-weight: 500;
}
.country-pill.active .country-pill-count { background: rgba(255,255,255,0.15); color: #fff; }
.portals-empty {
  padding: 32px 16px; text-align: center; color: var(--ink-3);
  font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.portals-empty .icon { width: 24px; height: 24px; opacity: 0.5; }

/* PORTALS */
.portals-info { padding: 12px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 8px; display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; margin-bottom: 14px; }
.portals-info .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.portals-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 500px) { .portals-grid { grid-template-columns: 1fr; } }
.portal-tile {
  position: relative; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: all .15s;
}
.portal-tile:hover { border-color: var(--ink-4); }
.portal-tile.selected { border-color: var(--accent); background: var(--accent-soft); }
.portal-tile-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.portal-tile-head strong { font-size: 13px; color: var(--ink); font-weight: 600; }
.portal-region { font-size: 11px; color: var(--ink-3); }
.portal-check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink-3);
}
.portal-tile.selected .portal-check { background: var(--accent); color: #fff; }
.portal-check .icon { width: 12px; height: 12px; }
.portal-tile-main { cursor: pointer; }
.portal-tile-foot { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
.portal-cred-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--ink-2);
  cursor: pointer;
}
.portal-cred-btn .icon { width: 12px; height: 12px; }
.portal-cred-btn.has-creds { border-style: solid; border-color: var(--accent); color: var(--accent-ink); background: rgba(255,255,255,0.6); }
.portal-cred-btn .cred-dot { width: 6px; height: 6px; border-radius: 999px; background: #1F8A5B; margin-left: auto; }
.portal-cred-panel {
  margin-top: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cred-mode-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cred-mode {
  text-align: left;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}
.cred-mode strong { font-weight: 600; color: var(--ink); }
.cred-mode.on { border-color: var(--accent); background: var(--accent-soft); }
.cred-form { display: flex; flex-direction: column; gap: 8px; }
.cred-note { display: flex; align-items: center; gap: 6px; }
.cred-note .icon { width: 12px; height: 12px; }
.cred-actions { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 500px) { .cred-mode-row { grid-template-columns: 1fr; } }

/* PREVIEW IMAGE THUMBS */
.pl-thumb-img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }

/* ============ DASHBOARD VIEWS (stats / orders / newsletter / settings) ============ */
.view-head { margin-bottom: 24px; }
.view-head h1 { font-size: 28px; margin: 0 0 4px; }
.view-head p { color: var(--ink-3); font-size: 14px; margin: 0; }
.view-head code {
  background: var(--surface-2); padding: 2px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}
.muted.small, .small { font-size: 12px; color: var(--ink-3); }

/* STAT CARDS */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px;
}
@media (max-width: 1100px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .stats-row { grid-template-columns: 1fr; } }
.stat-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 16px;
}
.stat-card-icon {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-icon .icon { width: 18px; height: 18px; }
.stat-card-body { min-width: 0; }
.stat-card-label { font-size: 12px; color: var(--ink-3); }
.stat-card-value {
  font-family: var(--display); font-size: 22px; font-weight: 600;
  color: var(--ink); line-height: 1.1; margin: 2px 0;
}
.stat-card-change { font-size: 11px; color: var(--ink-3); }
.stat-card-change.positive { color: #16a34a; }

.stats-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px;
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: 1fr; } }

.stats-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 18px; margin-bottom: 16px;
}
.stats-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 12px; flex-wrap: wrap;
}
.stats-card-head h3 { font-size: 15px; margin: 0; font-weight: 600; }

.live-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #16a34a; font-weight: 500;
}
.live-indicator .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,0.2);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  100% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

/* SOURCE BARS */
.source-list, .geo-list { display: flex; flex-direction: column; gap: 10px; }
.source-item {
  display: grid; grid-template-columns: 140px 1fr 90px;
  gap: 12px; align-items: center; font-size: 13px;
}
@media (max-width: 600px) { .source-item { grid-template-columns: 110px 1fr 70px; font-size: 12px; } }
.source-label { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.source-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.source-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.source-bar span { display: block; height: 100%; border-radius: 999px; transition: width .3s; }
.source-pct { font-size: 12px; color: var(--ink-3); text-align: right; }

.geo-item {
  display: grid; grid-template-columns: 28px 1fr auto auto;
  gap: 10px; align-items: center; padding: 8px 10px;
  border-radius: 8px; font-size: 13px;
}
.geo-item:hover { background: var(--surface-2); }
.geo-flag { font-size: 18px; }
.geo-name { color: var(--ink); font-weight: 500; }
.geo-count { color: var(--ink-3); font-size: 12px; }
.geo-pct { font-family: var(--mono); font-size: 12px; color: var(--ink-3); min-width: 32px; text-align: right; }

/* VISITS TABLE */
.visits-table { font-size: 13px; }
.visits-head, .visits-row {
  display: grid; grid-template-columns: 110px 200px 180px 130px 1fr;
  gap: 12px; align-items: center;
  padding: 10px 8px; border-bottom: 1px solid var(--line-soft);
}
.visits-head {
  font-size: 11px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600; padding-top: 0;
}
.visits-row.highlight { background: var(--accent-soft); border-radius: 8px; border-color: transparent; }
.visits-time { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.visits-time .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #16a34a;
  animation: pulse 1.6s ease-out infinite;
}
.visits-row code { font-family: var(--mono); font-size: 12px; color: var(--ink); }
@media (max-width: 900px) {
  .visits-head { display: none; }
  .visits-row { grid-template-columns: 1fr; gap: 4px; padding: 12px; border-radius: 8px; }
}

/* ORDERS */
.orders-tabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.order-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: transparent; border: 1px solid transparent;
  border-radius: 8px; font-size: 13px; cursor: pointer; font-family: inherit; color: var(--ink-3);
}
.order-tab:hover { background: var(--surface-2); color: var(--ink); }
.order-tab.active { background: var(--ink); color: #fff; }
.order-tab.active .nav-count { background: rgba(255,255,255,0.2); color: #fff; }

.orders-list { display: flex; flex-direction: column; gap: 8px; }
.order-row {
  display: grid;
  grid-template-columns: 130px 1.2fr 1fr auto auto auto;
  gap: 14px; align-items: center;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: 12px;
}
.order-row.order-new { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 900px) {
  .order-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .order-actions { grid-column: 1 / -1; }
}
.order-id { display: flex; flex-direction: column; gap: 4px; }
.order-num { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.order-status {
  display: inline-flex; padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; width: fit-content;
}
.order-status-new { background: var(--accent); color: #fff; }
.order-status-confirmed { background: #DBEAFE; color: #1E40AF; }
.order-status-completed { background: var(--surface-2); color: var(--ink-3); }
.order-customer strong { display: block; font-size: 14px; color: var(--ink); }
.order-customer .muted { font-size: 12px; }
.order-items { font-size: 13px; color: var(--ink-2); }
.order-via { display: flex; gap: 6px; flex-wrap: wrap; }
.via-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 999px; font-size: 11px; color: var(--ink-2);
}
.via-chip .icon { width: 11px; height: 11px; }
.via-chip.via-wa { background: #DCF8E1; color: #166534; border-color: #BBE5C2; }
.via-chip.via-translate { background: #FEF3C7; color: #78350F; border-color: #FCD34D; }
.order-total {
  font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink);
  min-width: 80px; text-align: right;
}

/* IMPORT/EXPORT MENU */
.ie-menu-wrap { position: relative; }
.ie-popover {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  width: 320px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  padding: 16px;
}
.ie-popover-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.ie-popover-sub { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.ie-formats { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.ie-format-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ie-format {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px;
  cursor: pointer;
}
.ie-format:hover { background: var(--surface-2); }
.ie-format.active { border-color: var(--accent); background: var(--accent-soft); }
.ie-format input { margin: 0; accent-color: var(--accent); }
.ie-format-l { font-size: 13px; font-weight: 500; color: var(--ink); }
.ie-format-s { font-size: 11px; color: var(--ink-3); }

/* PRICELIST EDIT — wide layout */
.pl-head-row {
  display: grid; grid-template-columns: 64px minmax(0, 1.7fr) minmax(0, 1.3fr) 96px 88px 32px;
  gap: 10px; padding: 8px 12px;
  font-size: 11px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
@media (max-width: 900px) { .pl-head-row { display: none; } }
.pl-edit-row {
  display: grid; grid-template-columns: 64px minmax(0, 1.7fr) minmax(0, 1.3fr) 96px 88px 32px;
  gap: 10px; align-items: center; padding: 10px;
  background: var(--surface-2); border: 1px solid var(--line-soft);
  border-radius: 10px;
}
@media (max-width: 900px) {
  .pl-edit-row {
    grid-template-columns: 56px 1fr 32px;
    grid-template-areas:
      "photo name del"
      "photo spec spec"
      "photo price unit";
  }
  .pl-edit-row .photo-btn-lg { grid-area: photo; }
  .pl-edit-row > input:nth-child(2) { grid-area: name; }
  .pl-edit-row > input:nth-child(3) { grid-area: spec; }
  .pl-edit-row > .price-input { grid-area: price; }
  .pl-edit-row > select { grid-area: unit; }
  .pl-edit-row > .icon-btn-lg { grid-area: del; }
}

/* NEWSLETTER */
.newsletter-source-info {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--accent);
  border-radius: 12px; margin-bottom: 20px;
}
.newsletter-source-info strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--ink); }
.newsletter-source-info p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.newsletter-source-info .link-icon { width: 36px; height: 36px; flex-shrink: 0; }
.newsletter-source-info .link-icon .icon { width: 18px; height: 18px; }

.newsletter-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.newsletter-toolbar-left { display: flex; gap: 8px; }
.newsletter-toolbar-hint { display: inline-flex; align-items: center; gap: 6px; }
.newsletter-toolbar-hint .icon { width: 12px; height: 12px; }

.newsletter-pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (max-width: 600px) { .newsletter-pick-grid { grid-template-columns: 1fr; } }
.newsletter-pick-tile {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.newsletter-pick-tile.on { background: var(--accent-soft); border-color: var(--accent); }
.newsletter-pick-tile .np-emoji { font-size: 16px; }
.newsletter-pick-tile .np-name { font-weight: 500; color: var(--ink); }
.newsletter-pick-tile .np-price { font-size: 11px; color: var(--ink-3); }
.newsletter-pick-tile .np-check {
  width: 18px; height: 18px;
  background: var(--surface); border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.newsletter-pick-tile .np-check .icon { width: 10px; height: 10px; }
.newsletter-pick-tile.on .np-check { background: var(--accent); color: #fff; }

.newsletter-preview {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.newsletter-preview-email {
  background: #fff;
  border: 1px solid var(--line);
}
.newsletter-preview-email .np-head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px dashed var(--line-soft); margin-bottom: 8px; }
.newsletter-preview-email .np-body { color: var(--ink-2); margin: 0 0 10px; }
.newsletter-preview-email .np-items { display: flex; flex-direction: column; gap: 6px; }
.newsletter-preview-email .np-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--surface-2);
  border-radius: 8px;
}
.newsletter-preview-email .np-emoji { font-size: 14px; }
.newsletter-preview-email .np-price-pill { background: var(--accent-soft); color: var(--accent-ink); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.newsletter-preview-email .np-cta { color: var(--accent); font-weight: 500; cursor: pointer; }

.newsletter-preview-wa {
  background: #E5DDD5;
  padding: 16px;
}
.np-wa-bubble {
  background: #DCF8C6;
  padding: 10px 12px;
  border-radius: 8px 8px 8px 2px;
  max-width: 90%;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
}
.np-wa-bubble p { margin: 0 0 8px; color: #111; }
.np-wa-line { padding: 6px 0; border-top: 1px solid rgba(0,0,0,0.06); color: #111; font-size: 12px; }
.np-wa-link { color: #34B7F1; font-size: 11px; }
.np-wa-time { text-align: right; font-size: 10px; color: #4FC3F7; margin-top: 4px; }

.newsletter-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .newsletter-grid { grid-template-columns: 1fr; } }

.group-list { display: flex; flex-direction: column; gap: 8px; }
.group-item {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: 10px;
}
.group-bar { width: 4px; height: 32px; border-radius: 2px; flex-shrink: 0; }
.group-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.group-count {
  padding: 4px 10px; background: var(--surface); border-radius: 999px;
  font-size: 12px; color: var(--ink-2); font-family: var(--mono);
}

.channel-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; cursor: pointer;
}
.channel-pill input { margin: 0; accent-color: var(--accent); }
.channel-pill .icon { width: 14px; height: 14px; }
.channel-pill:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

.newsletter-link-preview {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: 8px; font-size: 12px; color: var(--ink-3);
}
.newsletter-link-preview .icon { width: 14px; height: 14px; color: var(--accent); }

/* SUBSCRIBERS TABLE */
.subs-table { font-size: 13px; margin-top: 14px; }
.subs-head, .subs-row {
  display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 100px 80px;
  gap: 12px; align-items: center; padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.subs-head {
  font-size: 11px; color: var(--ink-3); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 600;
}
.subs-row strong { font-size: 13px; color: var(--ink); }
.subs-row .muted { font-size: 11px; }
.subs-channel-icons { display: flex; gap: 4px; }
.subs-channel-icons .channel-bubble {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink-3);
}
.subs-channel-icons .channel-bubble.active.wa { background: #25D366; color: #fff; }
.subs-channel-icons .channel-bubble.active.mail { background: var(--accent); color: #fff; }
.subs-channel-icons .icon { width: 11px; height: 11px; }
.subs-source-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; background: var(--accent-soft); color: var(--accent-ink);
  border-radius: 999px; font-size: 11px; font-weight: 500;
}
.subs-where {
  font-size: 11px; color: var(--ink-3);
}
@media (max-width: 900px) {
  .subs-head { display: none; }
  .subs-row { grid-template-columns: 1fr; gap: 4px; padding: 12px; background: var(--surface-2); border-radius: 8px; margin-bottom: 6px; border: none; }
}

/* SETTINGS */
.settings-sub {
  margin-left: 50px; padding-left: 18px; border-left: 2px solid var(--accent-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.simple-setting {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft);
}
.simple-setting:first-child { border-top: none; padding-top: 4px; }
.simple-setting-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.simple-setting-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* NOTIFY ME BOX (public preview) */
.notify-box {
  margin-top: 14px; padding: 16px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  border: 1px solid var(--accent); border-radius: 12px;
}
.notify-box-head { display: flex; gap: 12px; align-items: flex-start; }
.notify-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notify-icon .icon { width: 16px; height: 16px; }
.notify-box strong { display: block; font-size: 14px; color: var(--ink); }
.notify-box p { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.notify-tabs { display: flex; gap: 6px; margin: 12px 0 8px; }
.notify-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; font-size: 12px; cursor: pointer; font-family: inherit; color: var(--ink-2);
}
.notify-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.notify-tab .icon { width: 13px; height: 13px; }
.notify-input-row { display: flex; gap: 6px; }
.notify-input-row .input { flex: 1; }
.notify-input-row .btn { white-space: nowrap; }
.notify-foot { margin-top: 8px; font-size: 10px; color: var(--ink-3); line-height: 1.4; }
.notify-box-done {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px;
  background: #DCF8E1; border-color: #16a34a; color: #166534;
}
.notify-box-done .icon { width: 20px; height: 20px; flex-shrink: 0; }

/* PRICELIST LAST UPDATE */
.pl-last-update {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; background: var(--surface-2);
  border-radius: 999px; font-size: 11px; color: var(--ink-3);
  margin-bottom: 10px;
}
.pl-last-update .icon { width: 12px; height: 12px; }

/* NEWSLETTER source list */
.src-list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: flex; flex-direction: column; gap: 4px;
}
.src-list li { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* SETTINGS — language chips */
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; cursor: pointer; font-family: inherit;
}
.lang-chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.lang-chip.locked { opacity: 0.7; cursor: default; }
.lang-chip.on .lang-flag { background: var(--accent); color: #fff; border-color: var(--accent); }

/* SETTINGS — export targets */
.export-targets { display: flex; flex-direction: column; gap: 8px; }
.export-target {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--line-soft); border-radius: 10px;
}
.export-target-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.export-target-status { font-size: 12px; color: #16a34a; font-weight: 500; }

.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .grid-2col { grid-template-columns: 1fr; } }

.stats-card-danger { border-color: #FCA5A5; }
.stats-card-danger h3 { color: #B91C1C; }


/* TOOLS GRID (per-cennik tools) */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tool-card {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .1s;
}
.tool-card:hover { border-color: var(--accent); }
.tool-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid; place-items: center;
  margin-bottom: 4px;
}
.tool-card strong { font-size: 14px; }
.tool-card-desc { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.tool-card-soon { opacity: 0.75; }
.badge-soon {
  background: #fef3c7; color: #92400e;
  font-size: 10px; padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600; letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-left: 6px; vertical-align: middle;
}

/* PORTALS scroll + config */
.portals-grid-scroll {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 8px;
}
.portal-tile-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.portal-tile-row:hover { background: var(--surface-2); }
.portal-tile-row + .portal-tile-row { border-top: 1px dashed var(--line-soft); }
.portal-tile-row.selected { background: var(--accent-soft); }
.portal-config-btn {
  font-size: 12px; color: var(--ink-2);
  background: transparent; border: 1px solid var(--line-soft);
  padding: 4px 10px; border-radius: 100px; cursor: pointer;
}
.portal-config-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.portal-config-panel {
  background: white; border: 1px solid var(--line-soft);
  border-radius: 8px; padding: 14px; margin: 6px 0 10px 36px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
}
.portal-config-panel .input { font-size: 13px; padding: 8px 10px; }

/* NEWSLETTER extras */
.tpl-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 8px;
}
.tpl-tab {
  padding: 6px 12px; font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 6px;
}
.tpl-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.tpl-tip {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
}
.import-btns {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 10px 0 6px;
  border-bottom: 1px dashed var(--line-soft);
  margin-bottom: 12px;
}

/* Access mode selector */
.access-mode-list { display: flex; flex-direction: column; gap: 8px; }
.access-mode-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.access-mode-item:hover { border-color: var(--line); background: var(--surface-2); }
.access-mode-item.active { border-color: var(--accent); background: rgba(44,122,71,0.04); }
.access-mode-item input[type="radio"] { margin-top: 3px; accent-color: var(--accent); }
.access-mode-info { flex: 1; }
.access-mode-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.access-mode-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.access-detail { animation: fadeIn 0.15s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Browser language popup ---------- */
#vp-lang-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  padding: 16px;
  animation: fadeIn .25s ease;
}
.vp-lang-popup-inner { display: flex; flex-direction: column; gap: 12px; }
.vp-lang-popup-msg { font-size: 14px; font-weight: 500; color: var(--ink); }
.vp-lang-popup-actions { display: flex; gap: 8px; }
.vp-lang-popup-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 480px) {
  #vp-lang-popup { left: 12px; right: 12px; max-width: none; }
}

/* ===== Editor live stats panel (under preview) ===== */
.stats-panel {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.stats-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.stats-panel-head h3 {
  margin: 0; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; color: var(--ink, #0f172a);
}
.stats-panel-head h3 svg { width: 18px; height: 18px; opacity: .7; }
.stats-range {
  font-size: 13px; padding: 6px 28px 6px 10px;
  border: 1px solid var(--line, #e5e7eb); border-radius: 8px;
  background: var(--surface-2, #f8fafc) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 8px center;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer; color: var(--ink, #0f172a);
}
.stats-totals {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin-bottom: 14px;
}
.stats-total {
  text-align: center; padding: 10px 6px;
  background: var(--surface-2, #f8fafc); border-radius: 10px;
}
.stats-total-num { font-size: 22px; font-weight: 700; color: var(--ink, #0f172a); line-height: 1.1; }
.stats-total-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #64748b); margin-top: 2px; }
.stats-chart { margin: 14px 0; }
.stats-spark { width: 100%; height: 60px; display: block; }
.stats-section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted, #64748b); font-weight: 600;
  margin: 14px 0 8px;
}
.stats-panel .source-list { gap: 8px; }
.stats-panel .source-item { grid-template-columns: 130px 1fr 80px; font-size: 13px; }
.stats-panel .source-bar span { background: var(--accent, #22c55e); }
.stats-devices { display: flex; flex-wrap: wrap; gap: 8px; }
.stats-device-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 6px 12px; background: var(--surface-2, #f8fafc);
  border-radius: 999px; font-size: 13px;
}
.stats-device-chip strong { color: var(--ink, #0f172a); font-weight: 700; }
.stats-recent { display: flex; flex-direction: column; gap: 6px; }
.stats-recent-row {
  display: grid; grid-template-columns: 1fr 80px 100px;
  gap: 8px; align-items: center; font-size: 13px;
  padding: 6px 0; border-bottom: 1px solid var(--line, #e5e7eb);
}
.stats-recent-row:last-child { border-bottom: none; }
.stats-recent-source { color: var(--ink, #0f172a); font-weight: 500; }
.stats-loading { padding: 24px 0; text-align: center; }
@media (max-width: 600px) {
  .stats-totals { grid-template-columns: repeat(2, 1fr); }
  .stats-recent-row { grid-template-columns: 1fr 70px 80px; font-size: 12px; }
  .stats-panel .source-item { grid-template-columns: 100px 1fr 64px; font-size: 12px; }
}

/* Cover variants: solid color + custom image */
.farm-cover.has-color { background: var(--cover-color, #2C7A47); }
.farm-cover.has-color::after { display: none; }
.farm-cover.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.farm-cover.has-image::after { display: none; }

/* Cover picker — tabs */
.cover-picker-wrap { display: flex; flex-direction: column; gap: 12px; }
.cover-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #f1f3f5; border-radius: 10px; align-self: flex-start; }
.cover-tab { appearance: none; border: 0; background: transparent; padding: 7px 14px; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 600; color: #6b7280; transition: background 0.12s, color 0.12s; }
.cover-tab:hover { color: #111827; }
.cover-tab.is-active { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.cover-tab-body { display: flex; flex-direction: column; gap: 10px; }

/* Color picker tab */
.cover-color-picker { display: flex; flex-direction: column; gap: 12px; }
.cover-color-row { display: flex; align-items: center; gap: 10px; }
.cover-color-input { width: 48px; height: 38px; padding: 0; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; background: transparent; }
.cover-color-hex { max-width: 120px; font-family: ui-monospace, "SF Mono", monospace; text-transform: uppercase; }
.cover-color-preview { display: inline-block; width: 38px; height: 38px; border-radius: 8px; border: 1px solid #e5e7eb; }
.cover-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cover-swatch { appearance: none; border: 2px solid transparent; height: 36px; border-radius: 8px; cursor: pointer; padding: 0; transition: transform 0.12s, border-color 0.12s; }
.cover-swatch:hover { transform: translateY(-1px); }
.cover-swatch.is-active { border-color: #111827; box-shadow: 0 0 0 3px color-mix(in srgb, #111827 18%, transparent); }

/* Image editor tab */
.cover-image-editor { display: flex; flex-direction: column; gap: 12px; }
.cover-image-stage { position: relative; width: 100%; aspect-ratio: 16 / 7; background-size: cover; background-position: center; background-repeat: no-repeat; border-radius: 12px; border: 1px solid #e5e7eb; cursor: grab; overflow: hidden; user-select: none; }
.cover-image-stage.is-dragging { cursor: grabbing; }
.cover-image-stage::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10); pointer-events: none; }
.cover-focal-dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.95); border: 2px solid #2C7A47; box-shadow: 0 2px 6px rgba(0,0,0,0.35); transform: translate(-50%, -50%); pointer-events: none; }
.cover-focal-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #2C7A47; }
.cover-image-hint { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 500; pointer-events: none; }
.cover-image-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cover-zoom-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #374151; }
.cover-zoom-label input[type="range"] { width: 180px; }
.cover-zoom-val { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: #6b7280; }
.cover-image-actions { display: inline-flex; gap: 8px; }
.cover-image-actions .btn { cursor: pointer; }
.cover-image-actions label.btn { display: inline-flex; align-items: center; }

/* Upload empty state */
.cover-upload-empty { display: flex; }
.cover-upload-drop { flex: 1; display: flex; align-items: center; gap: 14px; padding: 22px; border: 2px dashed #d1d5db; border-radius: 12px; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.cover-upload-drop:hover { border-color: var(--accent, #2C7A47); background: color-mix(in srgb, var(--accent, #2C7A47) 4%, transparent); }
.cover-upload-drop .icon { width: 28px; height: 28px; color: var(--accent, #2C7A47); flex: none; }
.cover-upload-drop strong { display: block; font-size: 14px; color: #111827; }
.cover-upload-drop .muted { color: #6b7280; }

@media (max-width: 600px) {
  .cover-swatches { grid-template-columns: repeat(6, 1fr); }
  .cover-image-controls { flex-direction: column; align-items: stretch; }
  .cover-zoom-label input[type="range"] { width: 100%; }
}

/* Newsletter panel */
.nl-flash { margin: 10px 0 6px; padding: 10px 14px; background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 10px; color: #92400E; font-size: 14px; }
.nl-composer .nl-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.nl-row { display: block; }
.nl-field { display: flex; flex-direction: column; gap: 6px; }
.nl-label { font-size: 13px; color: var(--ink-2, #4a5568); font-weight: 600; }
.nl-input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-soft, #e5e7eb); border-radius: 8px; font-size: 14px; font-family: inherit; background: #fff; }
.nl-input:focus { outline: none; border-color: var(--accent, #2C7A47); box-shadow: 0 0 0 3px rgba(44,122,71,0.15); }
.nl-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.nl-actions { display: flex; gap: 10px; padding-top: 4px; flex-wrap: wrap; }
.nl-actions .btn-primary, .nl-actions .btn-secondary { padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: 0; }
.nl-actions .btn-primary { background: var(--accent, #2C7A47); color: #fff; }
.nl-actions .btn-primary:hover:not(:disabled) { background: #1e5a35; }
.nl-actions .btn-secondary { background: #f3f4f6; color: var(--ink, #111); border: 1px solid var(--line-soft, #e5e7eb); }
.nl-actions .btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
.nl-actions button:disabled { opacity: 0.55; cursor: not-allowed; }
.nl-table-wrap { overflow-x: auto; padding: 0 4px 6px; }
.nl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nl-table thead th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2, #6b7280); border-bottom: 1px solid var(--line-soft, #e5e7eb); font-weight: 600; }
.nl-table thead th.num { text-align: right; }
.nl-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.nl-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.nl-table tbody tr:last-child td { border-bottom: 0; }
.nl-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.nl-tag.on { background: #DCFCE7; color: #166534; }
.nl-tag.off { background: #F3F4F6; color: #6B7280; }
.nl-tag.chan { background: #E0E7FF; color: #3730A3; text-transform: uppercase; letter-spacing: 0.04em; }

/* Newsletter — macro chips */
.nl-macros { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.nl-macro-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-soft, #e5e7eb); background: #f9fafb; color: var(--ink, #111); font-size: 12px; cursor: pointer; font-family: inherit; transition: all 0.15s ease; }
.nl-macro-chip:hover { background: #ecfdf5; border-color: var(--accent, #2C7A47); color: var(--accent, #2C7A47); }
.nl-macro-chip code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; background: rgba(0,0,0,0.04); padding: 1px 4px; border-radius: 4px; }
.nl-macro-chip:hover code { background: rgba(44,122,71,0.12); }
.nl-macro-chip .muted { font-size: 11px; }

/* Newsletter — flash variants */
.nl-flash.success { background: #DCFCE7; border-color: #86efac; color: #166534; }
.nl-flash.error { background: #FEE2E2; border-color: #FCA5A5; color: #991B1B; }

/* Newsletter — async job progress */
.nl-job-card { border-left: 4px solid var(--accent, #2C7A47); }
.nl-progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.nl-progress-num { font-size: 18px; }
.nl-progress-num strong { font-size: 22px; color: var(--accent, #2C7A47); }
.nl-progress-pct { font-size: 16px; font-weight: 700; color: var(--ink, #111); }
.nl-progress-bar { height: 8px; background: #f3f4f6; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.nl-progress-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #2C7A47, #4CAF50); transition: width 0.6s ease; min-width: 2px; }
.nl-progress-stats { font-size: 13px; line-height: 1.6; }

/* Newsletter — test row (two columns when both channels) */
.nl-test-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nl-test-row .nl-field { margin: 0; }
@media (max-width: 640px) { .nl-test-row { grid-template-columns: 1fr; } }

/* Newsletter — import panel */
.nl-import .stats-card-head .btn-icon { background: transparent; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-2, #6b7280); padding: 0 4px; }
.nl-import .stats-card-head .btn-icon:hover { color: var(--ink, #111); }
.btn-icon { background: transparent; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2, #6b7280); padding: 2px 8px; }
.btn-icon:hover { color: var(--ink, #111); }

@media (max-width: 720px) {
  .nl-cell-src { display: none; }
}
