/* Sherpas Mailgen – vizuální identita podle sherpas.tech (převzato z doc.sptch.eu) */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #fb2942;          /* logo */
  --brand: #d81a31;        /* tlačítka, akcent */
  --brand-hover: #b9142a;
  --brand-soft: #fdecee;
  --ink: #1d1d20;          /* nadpisy */
  --text: #27272a;
  --muted: #52525b;
  --subtle: #71717a;
  --border: #e1e1e2;
  --bg: #fcfcfc;
  --surface: #ffffff;
  --surface-alt: #f4f4f5;

  --ok: #15803d;      --ok-soft: #dcfce7;
  --warn: #a16207;    --warn-soft: #fef3c7;
  --info: #1d4ed8;    --info-soft: #dbeafe;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(29, 29, 32, .04), 0 4px 16px rgba(29, 29, 32, .04);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* ---------- Hlavička ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(252, 252, 252, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(225, 225, 226, .7);
}
.header-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; letter-spacing: .01em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo b { font-weight: 800; }
.logo span { font-weight: 400; }
.logo svg { flex: none; }

.nav { display: flex; gap: 4px; flex: 0 0 auto; scrollbar-width: none; }
.nav a {
  color: var(--text); font-weight: 500; padding: 8px 10px; border-radius: var(--radius);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { background: var(--surface-alt); text-decoration: none; }
.nav a.active { color: var(--ink); font-weight: 700; background: var(--surface-alt); }
.nav .count {
  font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.nav .count.neutral { background: var(--border); color: var(--text); }

.header-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; min-width: 0; flex: 0 1 auto; }
.email-headers { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.email-headers dt { color: var(--muted); }
.email-headers dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.email-body { width: 100%; min-height: 60vh; border: 0; border-top: 1px solid var(--border); background: #fff; display: block; }
.email-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; margin: 0; padding: 20px 24px; border-top: 1px solid var(--border); }
.device-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.code-input { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.setup-join { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.access-table .select { min-width: 170px; }
.company-switch { position: relative; min-width: 0; max-width: 320px; }
.company-switch summary { list-style: none; }
.company-switch summary::-webkit-details-marker { display: none; }
.company-switch-current {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.2;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  padding: 8px 12px; max-width: 100%; box-sizing: border-box;
}
.company-switch-current:hover, .company-switch[open] .company-switch-current { border-color: var(--muted); }
.company-switch-current .company-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-switch-current svg { flex: none; color: var(--muted); transition: transform .15s; }
.company-switch[open] .company-switch-current svg { transform: rotate(180deg); }
.company-menu button { display: flex !important; gap: 10px; align-items: flex-start; }
.company-menu .check { flex: none; width: 14px; color: var(--brand); font-weight: 700; }
.company-menu .company-title { display: block; font-weight: 600; color: var(--ink); }
.company-menu button.current { background: var(--surface-alt); }
.user-menu { position: relative; color: var(--muted); font-size: 13px; }
.user-menu summary { list-style: none; gap: 8px; }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.user-menu .menu, .company-switch .menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 8px 24px rgba(29,29,32,.12); padding: 6px;
}
.company-switch .menu { min-width: 300px; }
.user-menu .menu-head, .company-switch .menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; line-height: 1.5; }
.user-menu .menu a, .user-menu .menu button, .company-switch .menu button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 14px; background: none; border: 0; cursor: pointer;
}
.user-menu .menu a:hover, .user-menu .menu button:hover, .company-switch .menu button:hover { background: var(--surface-alt); text-decoration: none; }
.user-menu form { margin: 0; }

/* ---------- Layout ---------- */
.main { max-width: 1320px; margin: 0 auto; padding: 32px 24px 64px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.card-pad { padding: 24px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
.card-head { padding: 16px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-head h2 { margin: 0; font-size: 16px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat { padding: 20px 24px; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .value { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.2; margin-top: 4px; }
.stat .meta { color: var(--muted); font-size: 13px; }
a.stat:hover { text-decoration: none; border-color: #c9c9cc; }

/* ---------- Tlačítka ---------- */
.btn {
  font: inherit; font-weight: 600; font-size: 14px; line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; background: var(--surface-alt); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fcfcfc; }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { background: #116632; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-alt); color: var(--ink); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.btn-link:hover { color: var(--brand); text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Hlavní akce vpravo, koš na opačné straně vlevo */
.actions-split { justify-content: flex-end; }
.actions-split .action-trash { order: -1; margin-right: auto; }

/* ---------- Formuláře ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text);
  padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.input:focus, .select:focus, .textarea:focus, .btn:focus-visible {
  outline: 2px solid rgba(216, 26, 49, .25); outline-offset: 1px; border-color: var(--brand);
}
.textarea { min-height: 80px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.uncertain .input { border-color: #e7b100; background: #fffbea; }
.uncertain label::after { content: " · ověřit"; color: var(--warn); font-weight: 500; }
.error-text { color: var(--brand); font-size: 13px; margin-top: 4px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.field .checkbox { display: flex; font-weight: 400; margin: 0 0 8px; }
.checkbox input, table input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; }

.dropzone {
  display: block; border: 2px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface-alt);
  padding: 40px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input { display: none; }
.dropzone strong { color: var(--ink); font-size: 16px; display: block; margin-bottom: 4px; }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; text-align: left; }
.file-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; display: flex; justify-content: space-between; }

/* ---------- Tabulka ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt); white-space: nowrap;
}
.table th.num { text-align: right; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafafa; }
.table .title { font-weight: 600; color: var(--ink); }
.table .title:hover { color: var(--brand); }
.table .w-check { width: 40px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }

.bulk-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.search { display: flex; gap: 8px; }
.search .input { width: 280px; }

/* ---------- Štítky ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--surface-alt); color: var(--muted);
}
.badge-received { background: var(--warn-soft); color: var(--warn); }
.badge-approved { background: var(--ok-soft); color: var(--ok); }
.badge-entered { background: var(--surface-alt); color: var(--muted); }
.badge-danger { background: var(--brand-soft); color: var(--brand); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* ---------- Upozornění ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; border: 1px solid; }
.alert-ok { background: var(--ok-soft); border-color: #b7ebc6; color: #14532d; }
.alert-error { background: var(--brand-soft); border-color: #f8c6cd; color: #8a1020; }
.vat-check { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.vat-check .btn-link { color: inherit; opacity: .75; }
.alert-paid { background: var(--brand); border-color: var(--brand); color: #fff; font-size: 15px; }
.alert-warn { background: var(--warn-soft); border-color: #f5dc8a; color: #713f12; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Detail dokladu ---------- */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 24px; align-items: start; }
.preview { position: sticky; top: 88px; height: calc(100vh - 112px); min-height: 480px; overflow: hidden; display: flex; flex-direction: column; }
.preview-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.preview-tabs a { font-size: 13px; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--muted); white-space: nowrap; }
.preview-tabs a.active { background: var(--surface-alt); color: var(--ink); font-weight: 600; }
.preview iframe, .preview .img-wrap { flex: 1; width: 100%; border: 0; background: #e9e9eb; }
.preview .img-wrap { overflow: auto; padding: 16px; text-align: center; }
.preview .img-wrap img { max-width: 100%; box-shadow: var(--shadow); }
.preview .no-preview { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); }

.status-panel { padding: 20px 24px; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.steps { display: flex; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { flex: 1; text-align: center; font-size: 12px; font-weight: 600; color: var(--subtle); position: relative; padding-top: 22px; }
.steps li::before { content: ""; position: absolute; top: 6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--border); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); }
.steps li.done::before, .steps li.done::after { background: var(--brand); }

dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.timeline li.highlight::before { background: var(--brand); }
.timeline .when { color: var(--muted); font-size: 12px; }
.timeline .comment { background: var(--surface-alt); border-radius: var(--radius); padding: 8px 12px; margin-top: 4px; }

details.return-box summary { list-style: none; cursor: pointer; }
details.return-box summary::-webkit-details-marker { display: none; }
details.return-box[open] summary { margin-bottom: 12px; }

/* ---------- Přihlášení ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--surface-alt); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { justify-content: center; margin-bottom: 24px; font-size: 20px; }

.pagination { display: flex; gap: 4px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; color: var(--text); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .disabled { color: var(--subtle); }


/* ---------- Reporty ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 16px 20px; }
.filters .field { margin: 0; min-width: 150px; }
.filters .input, .filters .select, .filters .btn { height: 42px; }
.filters .filter-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filters .quick { display: flex; gap: 12px; font-size: 13px; }
.share { height: 4px; background: var(--surface-alt); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--viz-1); border-radius: 2px; }

.viz { --viz-1: #2a78d6; margin: 0; }
:root { --viz-1: #2a78d6; }
.viz-plot { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 240px; }
.viz-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--subtle); text-align: right; padding-bottom: 22px; font-variant-numeric: tabular-nums; }
.viz-axis span { transform: translateY(-50%); }
.viz-axis span:last-child { transform: translateY(50%); }
.viz-bars { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 2px; align-items: end; padding-bottom: 22px; }
.viz-grid { position: absolute; inset: 0 0 22px 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.viz-grid i { border-top: 1px solid #ececed; }
.viz-grid i:last-child { border-top-color: #d4d4d8; }
.viz-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.viz-bar { position: relative; width: min(100%, 44px); min-height: 1px; background: var(--viz-1); border-radius: 4px 4px 0 0; transition: filter .1s; }
.viz-col:hover .viz-bar, .viz-col:focus-visible .viz-bar { filter: brightness(.88); }
.viz-col:focus-visible { box-shadow: inset 0 0 0 2px rgba(42, 120, 214, .35); border-radius: 4px; }
.viz-label { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.viz-x { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--subtle); white-space: nowrap; overflow: hidden; }
.viz-tip {
  display: none; position: absolute; bottom: calc(100% - 22px); left: 50%; transform: translate(-50%, -8px); z-index: 5;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 8px 10px; font-size: 12px; line-height: 1.4;
  white-space: nowrap; flex-direction: column; box-shadow: var(--shadow); pointer-events: none;
}
.viz-tip .muted { color: #c4c4c8; }
.viz-col:hover .viz-tip, .viz-col:focus-visible .viz-tip { display: flex; }
@media (max-width: 760px) { .viz-x { font-size: 9px; } .viz-plot { height: 200px; } }

/* ---------- Responzivita ---------- */
@media (max-width: 1180px) {
  .header-inner { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; }
}
@media (max-width: 1100px) {
  .doc-layout { grid-template-columns: 1fr; }
  .preview { position: static; height: 70vh; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 8px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  .header-tools { margin-left: auto; }
  .user-menu .name { display: none; }
  .company-switch-current { max-width: 180px; }
  .company-switch .menu { right: auto; left: 0; min-width: min(300px, calc(100vw - 32px)); }
  .main { padding: 20px 16px 48px; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .search .input { width: 100%; }
  .search { flex: 1; }
  .hide-mobile { display: none; }
  h1 { font-size: 24px; }
  .card-pad, .status-panel { padding: 16px; }
}

/* ---------- Veřejná stránka Funkce ---------- */
.features .header-inner { gap: 16px; }
.features .nav a { font-size: 14px; padding: 6px 8px; }
.feat-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px 80px; }
.feat-hero { text-align: center; margin-bottom: 72px; }
.feat-eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.feat-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; max-width: 820px; margin: 0 auto 16px; }
.feat-lead { font-size: 17px; color: var(--muted); max-width: 760px; margin: 0 auto 32px; }
.feat-flow { list-style: none; padding: 0; margin: 0 auto 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 860px; text-align: left; }
.feat-flow li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.feat-flow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); grid-row: span 2; align-self: center; }
.feat-flow li:nth-child(2) .dot { background: var(--ok); }
.feat-flow li:nth-child(3) .dot { background: var(--ink); }
.feat-flow strong { color: var(--ink); }
.feat-flow span:last-child { font-size: 13px; color: var(--muted); }
.feat-shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: 0 12px 40px rgba(29, 29, 32, .08); }
.feat-shot img { display: block; width: 100%; height: auto; }
.feat-shot a { display: block; cursor: zoom-in; }
.feat-shot-hero { max-width: 1100px; margin: 0 auto; }
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; padding: 56px 0; border-top: 1px solid var(--border); scroll-margin-top: 72px; }
.feat:nth-of-type(odd) .feat-text { order: 2; }
.feat-text h2 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.feat-text p { font-size: 16px; }
.feat-text ul { padding-left: 20px; margin: 0; }
.feat-text li { margin-bottom: 8px; }
.feat-text li::marker { color: var(--brand); }
.feat-mark { background: #fffbea; border: 1px solid #e7b100; border-radius: 4px; padding: 0 4px; }
.feat-shots { display: grid; gap: 20px; }
.feat-cta { text-align: center; padding: 64px 0 0; border-top: 1px solid var(--border); }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .feat:nth-of-type(odd) .feat-text { order: 0; }
  .feat-flow { grid-template-columns: 1fr; }
  .features .nav { display: none; }
  .features .header-inner { justify-content: space-between; height: 64px; flex-wrap: nowrap; }
  .feat-main { padding: 32px 16px 64px; }
}

/* ---------- Mailgen ---------- */
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .9em; background: var(--surface-alt); padding: 1px 5px; border-radius: var(--radius-sm); }
.checklist { list-style: none; margin: 0 0 16px; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); box-sizing: border-box;
}
.checklist li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8.2 9 4' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.inline-edit { display: inline-block; text-align: left; }
.inline-edit summary { list-style: none; }
.inline-edit summary::-webkit-details-marker { display: none; }
.inline-edit[open] { display: block; }
.inline-edit-body { margin-top: 12px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
details > summary.btn { list-style: none; display: inline-flex; }
details > summary.btn::-webkit-details-marker { display: none; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.role-help { margin: 4px 0 16px; padding-left: 18px; }
.qr { display: flex; justify-content: center; margin: 8px 0 12px; }
.qr svg { width: 192px; height: 192px; background: #fff; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.setup-steps { margin: 0 0 8px; padding-left: 20px; color: var(--muted); }
.secret { letter-spacing: .05em; user-select: all; }
.recovery-codes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.recovery-codes code { display: block; text-align: center; font-size: 15px; padding: 6px; }
.tabs { display: inline-flex; gap: 2px; background: var(--surface-alt); border-radius: var(--radius); padding: 3px; }
.tabs a, .tabs button { font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 12px; border-radius: var(--radius-sm); border: 0; background: none; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--ink); text-decoration: none; }
.tabs .active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tpl-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.tpl-toolbar .btn { margin-left: auto; }
.tpl-block { display: grid; grid-template-columns: minmax(260px, 1fr) 700px; margin-bottom: 20px; overflow: hidden; }
.tpl-block-info { padding: 20px 24px; border-right: 1px solid var(--border); }
.tpl-block-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tpl-block-title h2 { margin: 0; }
.tpl-block-info h3 { margin: 16px 0 6px; font-size: 13px; }
.tpl-block-preview { background: var(--surface-alt); padding: 16px 0; display: flex; justify-content: center; align-items: flex-start; }
.tpl-block-preview iframe { width: 680px; min-height: 120px; border: 0; background: #fff; display: block; transition: width .15s; }
.tpl-mobile .tpl-block-preview iframe { width: 375px; }
.table-compact td { padding: 6px 8px; vertical-align: top; }
.req { color: var(--brand); }
@media (max-width: 1100px) { .tpl-block { grid-template-columns: 1fr; } .tpl-block-info { border-right: 0; border-bottom: 1px solid var(--border); } .tpl-block-preview { overflow-x: auto; } }

.product-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.product-filters .input { width: auto; flex: 1 1 220px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; }
.product-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--border); overflow: hidden; padding: 8px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-body h3 { font-size: 14px; margin: 2px 0; }
.product-body h3 a { color: var(--ink); }
.product-price { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.product-price strong { font-size: 17px; color: var(--ink); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }

/* ---------- Editor kampaně ---------- */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 740px; gap: 24px; align-items: start; }
.editor-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.editor-main fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.editor-preview { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; align-items: center; background: var(--surface-alt); border-radius: var(--radius-lg); padding: 12px; }
.editor-preview iframe { width: 700px; height: calc(100vh - 160px); border: 0; background: #fff; transition: width .15s; }
.tpl-mobile .editor-preview iframe { width: 375px; }
.block-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.block-no { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-alt); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.block-tools { margin-left: auto; display: flex; gap: 2px; }
.block-tools form { margin: 0; }
.items-title { margin: 16px 0 8px; font-size: 14px; }
.item-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; background: var(--bg); }
.item-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.item-head .item-remove { margin-left: auto; }
.item-thumb { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); flex: none; }
.add-item { border-top: 1px solid var(--border); }
.picker-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.picker-row { display: flex; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.picker-row span { flex: 1; min-width: 0; }
.problems ul { margin: 6px 0 0; padding-left: 18px; }
.problems li { color: var(--warn); }
.problems li.problem-error, .problems li.problem-error a { color: var(--brand); }
[data-counter-for].over { color: var(--brand); font-weight: 700; }
.add-block .select { width: auto; }
@media (max-width: 1400px) { .editor { grid-template-columns: 1fr; } .editor-preview { position: static; } .editor-preview iframe { height: 70vh; } }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

.ai-card summary { cursor: pointer; list-style: none; }
.ai-card summary::-webkit-details-marker { display: none; }
.ai-card > details > summary::before { content: "✦ "; color: var(--brand); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.locale-checks { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- Editor: ovládání ---------- */
.campaign-head .actions { display: flex; gap: 8px; align-items: center; }
.menu-dropdown { position: relative; }
.menu-dropdown > summary { list-style: none; }
.menu-dropdown > summary::-webkit-details-marker { display: none; }
.menu-dropdown .menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
.menu-dropdown .menu form { margin: 0; }
.menu-dropdown .menu a, .menu-dropdown .menu button { display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; padding: 8px 10px; border-radius: var(--radius); cursor: pointer; }
.menu-dropdown .menu a:hover, .menu-dropdown .menu button:hover { background: var(--surface-alt); text-decoration: none; }
.menu-dropdown .menu .danger { color: var(--brand); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); margin-top: 4px; }

.editor { grid-template-columns: minmax(0, 1fr) 584px !important; }
.editor-preview { padding: 12px; }
.preview-frame { width: 560px; height: calc(100vh - 170px); overflow: hidden; background: #fff; }
.editor-preview .preview-frame iframe { width: 700px; height: 125%; transform: scale(.8); transform-origin: 0 0; border: 0; display: block; }
.tpl-mobile .editor-preview .preview-frame { width: 375px; }
.tpl-mobile .editor-preview .preview-frame iframe { width: 375px; height: 100%; transform: none; }

.blocks-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.blocks-toolbar h2 { margin: 0; font-size: 17px; }
.block-head { padding: 0 8px 0 0; gap: 4px; flex-wrap: nowrap; }
.block-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 12px 8px 12px 16px; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-lg); }
.block-toggle:disabled { cursor: default; }
.block-toggle:not(:disabled):hover { background: var(--surface-alt); }
.block-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.block-summary { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { margin-left: auto; color: var(--muted); transition: transform .15s; }
.block-card.collapsed .chevron { transform: rotate(-90deg); }
.block-card.collapsed .block-body { display: none; }
.block-card:not(.collapsed) .block-summary { display: none; }
.block-card.has-problem { border-left: 3px solid var(--brand); }
.block-card .block-head { border-bottom: 0; }
.block-card:not(.collapsed) .block-head { border-bottom: 1px solid var(--border); }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--surface) 30%); padding-top: 12px; margin-top: 4px; }
.item-card { padding: 14px; }
.item-meta { min-width: 0; }
.item-meta a { color: var(--ink); }
.item-thumb { width: 56px; height: 56px; }
.item-thumb-empty { display: inline-flex; align-items: center; justify-content: center; color: var(--subtle); font-weight: 700; }
.item-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.product-picker label { display: block; margin-bottom: 6px; }
.subject-options { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.chip { font: inherit; font-size: 13px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--muted); }
.add-block-card .inline-form { flex-wrap: wrap; margin-top: 6px; }
.add-block-card .select { flex: 1 1 200px; }
.locale-tools { display: flex; gap: 4px; margin-bottom: 8px; }
.locale-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.locale-check { align-items: flex-start; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; margin: 0; }
.locale-check span .small { display: block; }
.textarea { resize: vertical; }
@media (max-width: 1400px) { .editor { grid-template-columns: 1fr !important; } .preview-frame { height: 70vh; } }

.redesign { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.redesign > summary { cursor: pointer; color: var(--muted); }

.maileon-step { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.maileon-step h3 { font-size: 15px; margin: 0 0 10px; }
.maileon-step fieldset { border: 0; padding: 0; margin: 0; }
.maileon-step fieldset:disabled { opacity: .55; }
.mg-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; font-size: 14px; }
.mg-checks li { display: flex; gap: 6px; padding: 2px 0; }
.mg-checks li span { flex: 0 0 16px; font-weight: 700; }
.mg-checks li.ok span { color: #1a7f4b; }
.mg-checks li.bad { color: #b42318; }
.mg-checks li.warn span { color: #b54708; }
.maileon-events { margin-top: 16px; }
.maileon-events summary { cursor: pointer; color: var(--muted); }
.btn-danger { background: #b42318; border-color: #b42318; color: #fff; }
.btn-danger:hover { background: #912018; border-color: #912018; }
.maileon-send .checkbox { white-space: nowrap; }

/* Mini editor textů */
.rich { display: flex; flex-direction: column; gap: 4px; }
.rich-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.rich-btn { font: inherit; font-size: 13px; min-width: 32px; padding: 3px 9px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; }
.rich-btn:hover:not(:disabled) { background: var(--surface-alt); }
.rich-btn.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.rich-btn:disabled { opacity: .45; cursor: default; }
.rich-btn:focus-visible { outline: 2px solid var(--info); outline-offset: 1px; }
.rich-editor { height: auto; overflow-wrap: anywhere; white-space: normal; cursor: text; }
.rich-editor[contenteditable="false"] { cursor: default; background: var(--surface-alt); }
.rich-editor:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.rich-editor a { color: inherit; text-decoration: underline; }
.rich-link { display: flex; gap: 6px; align-items: center; }
.rich-link .input { flex: 1; min-width: 0; }
/* Ruční údaje produktu */
.item-custom { margin-top: 8px; border-top: 1px dashed var(--border); padding-top: 8px; }
.item-custom summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.item-custom[open] summary { margin-bottom: 6px; }
.editor-preview .tabs + .tabs { margin-top: -4px; }
.rich [hidden] { display: none !important; }
/* Nahrání obrázku */
.upload-row { display: flex; gap: 6px; align-items: center; min-width: 0; }
.upload-row .input { flex: 1; min-width: 0; }
.upload-thumb { width: 38px; height: 38px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.upload-thumb[hidden] { display: none; }
.upload-note:empty { display: none; }
/* Vlaječky zemí */
.flag { display: inline-block; vertical-align: -2px; width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.flag-text { width: auto; height: auto; padding: 0 4px; font-size: 10px; font-weight: 700; line-height: 14px; background: var(--surface-alt); color: var(--muted); }
/* Přehled kampaní */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-bottom: 1px solid var(--border); }
.filters .input { flex: 1 1 240px; min-width: 0; }
.filters .select { flex: 0 1 180px; }
.campaign-title { display: flex; align-items: center; gap: 8px; }
.mutation-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mutation-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 4px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--surface); text-decoration: none; }
.mutation-chip:hover { border-color: var(--muted); text-decoration: none; color: var(--ink); }
.mutation-chip.is-sent, .mutation-chip.is-tested { color: var(--ok); }
.mutation-chip.is-scheduled { color: var(--info); }
.mutation-chip.is-outdated { color: var(--warn); border-color: var(--warn-soft); background: var(--warn-soft); }
.scheduled-card, .readiness { margin-bottom: 20px; }
.scheduled-list { list-style: none; margin: 0; padding: 4px 20px 12px; }
.scheduled-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.scheduled-list li:last-child { border-bottom: 0; }
.scheduled-when { font-weight: 700; min-width: 110px; }
.ready-line { margin-top: 12px; }
/* Editor: průběh kampaně a záložky */
.stage-bar { list-style: none; margin: -4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; font-size: 13px; color: var(--muted); }
.stage-bar li { display: flex; align-items: center; gap: 7px; position: relative; }
.stage-bar li + li:not(.stage-note)::before { content: ""; position: absolute; left: -17px; top: 50%; width: 12px; border-top: 1px solid var(--border); }
.stage-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid var(--border); background: var(--surface); }
.stage-bar li.done { color: var(--ok); }
.stage-bar li.done .stage-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stage-bar li.current { color: var(--ink); font-weight: 700; }
.stage-bar li.current .stage-dot { border-color: var(--brand); color: var(--brand); }
.editor-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.editor-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.editor-tabs a:hover { color: var(--ink); text-decoration: none; }
.editor-tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
.editor-tabs .flag { width: 16px; height: 11px; }
.flag-dim { opacity: .45; }
.tab-ok { color: var(--ok); font-size: 12px; }
.tab-panel[hidden] { display: none; }
.tab-panel > * + * { margin-top: 16px; }
.check-notice { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin: 0 0 4px; }
.checks-ok { margin-top: 8px; }
.checks-ok summary { cursor: pointer; color: var(--ok); }
.mg-checks li a { margin-left: 6px; }
/* AI karta */
.ai-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.ai-actions button { font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--muted); cursor: pointer; }
.ai-actions button.active { border-color: var(--ink); color: var(--ink); background: var(--surface-alt); }
.ai-panel[hidden] { display: none; }
/* Verze */
.versions-table tr.is-current td { background: var(--surface-alt); }
.block-card.flash { box-shadow: 0 0 0 2px var(--brand); transition: box-shadow .3s; }
.stage-bar li.stale { color: var(--warn); }
.stage-bar li.stale .stage-dot { border-color: var(--warn); color: var(--warn); background: var(--warn-soft); }
.stage-note { color: var(--warn); }
/* Produkty: varianty a záložky zemí s vlajkou */
.variants summary { cursor: pointer; color: var(--muted); }
.variants ul { margin: 4px 0 0; padding-left: 16px; max-height: 140px; overflow: auto; }
.product-filters .tabs a { display: inline-flex; align-items: center; gap: 5px; }
.product-price { margin-top: auto; }
.tabs .tab-flag { display: inline-flex; align-items: center; gap: 5px; }
.tab-flags { display: inline-flex; gap: 2px; }
.tab-flags .flag { width: 14px; height: 10px; }
.tab-panel > .card + .card { margin-top: 20px; }
/* Klíče poskytovatelů AI */
.provider-key { padding: 12px 0; border-top: 1px solid var(--border); }
.provider-key:first-of-type { border-top: 0; }
.provider-key-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.provider-key .inline-form .input { flex: 1; min-width: 0; }
.online-checks { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.online-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
/* Schválení a komentáře */
.approval-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.approval-form .textarea { margin-bottom: 6px; }
.comments-title { font-size: 13px; margin: 14px 0 8px; display: flex; gap: 8px; align-items: center; }
.block-comments { border-top: 1px dashed var(--border); padding-top: 4px; }
.block-comments .comments-title { margin-top: 8px; }
.comments { display: flex; flex-direction: column; gap: 8px; }
.comment { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.comment.is-changes { border-color: var(--brand-soft); background: var(--brand-soft); }
.comment.is-resolved { opacity: .6; }
.comment-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.comment-resolve { margin-left: auto; }
.comment-body { margin-top: 4px; font-size: 14px; white-space: normal; }
.comment-form { display: flex; gap: 6px; align-items: flex-start; }
.comment-form .textarea { flex: 1; min-height: 38px; }
.block-comment-summary { margin: 4px 0 8px; }
/* Hromadné akce */
.bulk-table td { vertical-align: middle; }
.bulk-table .select-sm, .select-sm { padding-top: 4px; padding-bottom: 4px; font-size: 13px; min-width: 160px; }
.bulk-actions .ai-actions { margin-top: 0; }
.bulk-actions [data-bulk-for] { margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; }
.bulk-actions [data-bulk-for][hidden] { display: none; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }
.bulk-result .mg-checks { margin-top: 8px; }
.bulk-table .select-sm { min-width: 0; width: 100%; max-width: 200px; }
.bulk-table th:first-child, .bulk-table td:first-child { width: 28px; padding-right: 0; }
.bulk-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
