:root {
  --bg: #F6F3EA;
  --surface: #FFFDF8;
  --ink: #2B2A22;
  --ink-muted: #6B6857;
  --border: #DFD8C4;
  --olive: #5C6B37;
  --olive-dark: #3E4A24;
  --yolk: #D9A441;
  --yolk-dark: #A97821;
  --danger: #A34632;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, .wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--olive-dark);
  margin: 0;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.shell-header {
  margin-bottom: 32px;
}

.wordmark {
  font-size: 26px;
}

.search-zone {
  position: relative;
  margin-bottom: 36px;
}

.search-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 17px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.search-input:focus {
  outline: none;
  border-color: var(--olive);
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 10;
}

.search-results:empty { display: none; border: none; }

.search-result-item {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }
.search-result-item .cat {
  color: var(--ink-muted);
  font-size: 13px;
}

.section-title {
  font-size: 18px;
  margin-bottom: 14px;
}

.recipe-list {
  display: flex;
  flex-direction: column;
}

.recipe-list-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.recipe-list-item:hover .r-name { color: var(--olive); }

.r-name { font-weight: 500; }
.r-cat { color: var(--ink-muted); font-size: 14px; }

/* --- Nenájdené / potvrdenie pridania --- */
.not-found-prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
}
.not-found-prompt p { margin: 0 0 14px; }
.prompt-actions { display: flex; gap: 10px; }

.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--olive); color: #fff; }
.btn-primary:hover { background: var(--olive-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-muted); }

/* --- Sprievodca pridaním receptu --- */
.wizard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}

.wizard-step-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.wizard h3 { font-size: 20px; margin-bottom: 20px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.field input[type="text"],
.field input#w-servings,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 80px; resize: vertical; }

.ingredient-row {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--bg);
}
.row-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
}
.row-main input {
  padding: 9px 10px;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
}
.btn-icon {
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 6px;
}

.row-status {
  font-size: 13px;
  margin-top: 8px;
  color: var(--ink-muted);
}
.row-status.known { color: var(--olive); }
.row-status.unknown { color: var(--yolk-dark); }

.new-ingredient-macros {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}
.macros-hint {
  font-size: 13px;
  color: var(--yolk-dark);
  margin: 0 0 8px;
}
.macro-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.macro-inputs label {
  font-size: 12px;
  color: var(--ink-muted);
}
.macro-inputs input {
  width: 100%;
  margin-top: 4px;
  padding: 7px 8px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.error-banner {
  background: #F6E4DD;
  color: var(--danger);
  border: 1px solid #E3B6A5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

/* --- Detail receptu / výsledok --- */
.recipe-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.recipe-detail h3 { font-size: 22px; margin-bottom: 4px; }
.recipe-detail .r-cat { display: block; margin-bottom: 20px; }

.macro-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.macro-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px 10px;
  text-align: center;
}
.macro-card .val {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--yolk-dark);
}
.macro-card .lbl {
  font-size: 12px;
  color: var(--ink-muted);
}

.portion-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.ing-list { list-style: none; padding: 0; margin: 0 0 20px; }
.ing-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.ing-list li:last-child { border-bottom: none; }

.instructions-box {
  font-size: 14px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--olive);
  cursor: pointer;
  font-size: 14px;
}

/* --- Návrhy surovín --- */
.ing-name-wrap { position: relative; }
.ing-name-wrap .ing-name { width: 100%; }
.ing-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: max(100%, 420px);
  max-width: calc(100vw - 48px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(43, 42, 34, 0.12);
  z-index: 20;
  overflow: hidden;
}
.ing-suggest:empty { display: none; }
.suggest-item {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover, .suggest-item.active { background: var(--bg); }
.s-name { font-size: 14px; }
.s-name .brand { color: var(--ink-muted); }
.s-macros { font-size: 12px; color: var(--ink-muted); }

.btn-small { font-size: 13px; padding: 6px 12px; }

@media (max-width: 600px) {
  .row-main { grid-template-columns: 1fr 1fr auto; }
  .ing-name-wrap { grid-column: 1 / -1; }
  .macro-inputs { grid-template-columns: repeat(2, 1fr); }
  }

/* --- Vloženie receptu z textu --- */
.list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.list-header .section-title { margin-bottom: 0; }
.paste-box {
  background: var(--bg);
  border: 1.5px dashed var(--olive);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
.paste-box label { display: block; font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.paste-box textarea {
  width: 100%;
  min-height: 130px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  resize: vertical;
}
.paste-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.paste-hint { font-size: 12px; color: var(--ink-muted); }
.parse-summary {
  font-size: 14px;
  color: var(--olive-dark);
  background: #EDF0E2;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.row-origin { font-size: 12px; color: var(--ink-muted); margin-bottom: 6px; font-style: italic; }
.row-status.check { color: var(--yolk-dark); font-weight: 500; }
.row-candidates { font-size: 12px; color: var(--ink-muted); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  font-family: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: var(--olive); color: var(--olive-dark); }
.ingredient-row.optional { opacity: 0.6; }
.row-main input.needs { border-color: var(--yolk); background: #FBF3E1; }
.field input#w-name { font-size: 17px; font-family: 'Fraunces', serif; }

/* --- Obrázky receptov --- */
.image-zone {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  background: var(--bg);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, background .15s;
}
.image-zone:hover, .image-zone:focus, .image-zone.drag { border-color: var(--olive); background: #EDF0E2; outline: none; }
.image-zone.has-image { border-style: solid; min-height: 0; }
.image-zone-empty { text-align: center; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.image-zone-empty strong { color: var(--olive-dark); font-size: 15px; }
.image-zone-empty span { font-size: 12px; color: var(--ink-muted); }
.image-zone.has-image { max-width: 480px; }
.image-zone-preview { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-zone-tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.image-zone [hidden], .image-zone[hidden] { display: none !important; }
.image-zone-remove, .image-zone-crop {
  height: 30px; border-radius: 999px;
  border: none; background: rgba(43, 42, 34, .7); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
}
.image-zone-remove { width: 30px; font-size: 18px; }
.image-zone-crop { padding: 0 12px; font-family: inherit; }
.image-zone-remove:hover, .image-zone-crop:hover { background: rgba(43, 42, 34, .9); }

/* Editor výrezu obrázka (pomer 4:3 ako kartičky) */
.crop-editor { max-width: 560px; }
.crop-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: #2B2A22;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop-frame.dragging { cursor: grabbing; }
.crop-frame img { position: absolute; max-width: none; pointer-events: none; user-select: none; }
.crop-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  background:
    linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% - .5px), rgba(255,255,255,.25) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% - .5px), rgba(255,255,255,.25) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.crop-zoom { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; color: var(--ink-muted); font-size: 18px; }
.crop-zoom input { flex: 1; accent-color: var(--olive); }
.crop-hint { font-size: 12px; color: var(--ink-muted); margin: 4px 0 10px; }
.crop-actions { display: flex; justify-content: flex-end; gap: 8px; }
.recipe-hero {
  display: block;
  width: calc(100% + 56px);
  margin: -28px -28px 20px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.detail-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.detail-title-row h3 { margin-bottom: 0; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #86382A; }
.btn-danger-ghost { background: transparent; border-color: #E3B6A5; color: var(--danger); }
.btn-danger-ghost:hover { border-color: var(--danger); background: #F6E4DD; }
.delete-confirm {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: #F6E4DD; border: 1px solid #E3B6A5; border-radius: 8px;
  padding: 10px 14px; margin: 10px 0 14px; font-size: 14px; color: var(--danger);
}
.delete-confirm[hidden] { display: none; }
.delete-confirm-actions { display: flex; gap: 8px; }
.info-banner {
  background: #EDF0E2; color: var(--olive-dark); border: 1px solid #D5DCBF;
  border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px;
}
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex-shrink: 0; }
#detail-image-slot { margin: 12px 0 16px; }
.recipe-list-item { justify-content: flex-start; align-items: center; gap: 14px; }
.recipe-list-item .r-cat { margin-left: auto; }
.r-thumb { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.r-thumb-empty { background: var(--border); opacity: .45; display: inline-block; }

/* --- Mriežka receptov (kartičky s dominantným obrázkom) --- */
.shell { max-width: 1080px; }
.wizard, .recipe-detail, .not-found-prompt, .back-link { max-width: 760px; margin-left: auto; margin-right: auto; }
.back-link { display: block; }

.list-header { max-width: none; }

.recipe-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}
.recipe-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.recipe-card:hover, .recipe-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 42, 34, .12);
  outline: none;
}
.recipe-card:hover .r-name { color: var(--olive-dark); }
.card-image { aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.recipe-card:hover .card-image img { transform: scale(1.04); }
.card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--border);
  background: linear-gradient(135deg, #EFEADB, #E6DFCB);
}
.card-placeholder svg { width: 38%; height: auto; color: #CFC6AC; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.card-body .r-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; line-height: 1.3; }
.card-body .r-cat { margin-left: 0; font-size: 13px; }
.empty-note { color: var(--ink-muted); grid-column: 1 / -1; }

@media (max-width: 600px) {
  .recipe-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body .r-name { font-size: 15px; }
}

/* =========================================================
   NAVIGÁCIA + PLÁNOVAČ
   ========================================================= */
.shell-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.tab {
  font-family: inherit; font-size: 15px; font-weight: 500;
  border: none; background: transparent; color: var(--ink-muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--olive); color: #fff; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 20px; }
.muted { color: var(--ink-muted); font-weight: 400; }
.hint { font-size: 13px; color: var(--ink-muted); margin: 8px 0 0; }
.link-btn { background: none; border: none; padding: 0; font: inherit; color: var(--olive-dark); cursor: pointer; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.link-btn.small { font-size: 13px; }

.planner-intro p { color: var(--ink-muted); margin: 0 0 18px; }
.ps-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.ps-block { margin-bottom: 22px; }
.ps-block h4 { font-family: 'Work Sans', sans-serif; font-size: 15px; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.ps-row { display: flex; gap: 14px; flex-wrap: wrap; }
.ps-row label { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-muted); gap: 4px; }
.planner input[type="date"], .planner input[type="number"], .planner input[type="text"], .planner select {
  font-family: inherit; font-size: 15px; padding: 8px 10px;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink);
}
#ps-days { width: 90px; }
.person-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.person-row .p-name { flex: 1; min-width: 0; }
.person-row .p-kcal { width: 100px; }

.table-scroll { overflow-x: auto; }
table.schedule { border-collapse: collapse; font-size: 14px; }
table.schedule th, table.schedule td { padding: 6px 10px; text-align: center; border-bottom: 1px solid var(--border); }
table.schedule thead th { font-weight: 600; color: var(--ink-muted); font-size: 13px; }
table.schedule tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
table.schedule input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--olive); cursor: pointer; }
table.schedule input.split { width: 64px; padding: 5px 6px; font-size: 14px; }
table.catmap thead th { white-space: nowrap; }

.ps-options .check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; flex-wrap: wrap; }
.ps-options input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--olive); }
.ps-advanced summary { cursor: pointer; font-weight: 500; color: var(--olive-dark); margin-bottom: 10px; }
.ps-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-big { font-size: 16px; padding: 12px 24px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* --- výsledok --- */
.plan-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.plan-summary { display: flex; gap: 26px; flex-wrap: wrap; }
.sum-person { display: flex; flex-direction: column; font-size: 14px; }
.sum-person strong { font-family: 'Fraunces', serif; font-size: 17px; color: var(--olive-dark); }
.sum-person .ok { color: var(--olive); }
.sum-person .off { color: var(--yolk-dark); }
.plan-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-actions #plan-name { width: 250px; }
.saved-badge { color: var(--olive); font-weight: 500; font-size: 14px; }
.warn-banner { background: #FBF3E1; border: 1px solid #EBD3A0; color: var(--yolk-dark); border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 18px; }

.plan-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.day-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.day-head { background: var(--olive); color: #fff; padding: 10px 16px; }
.day-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; }
.day-empty { padding: 16px; }
.meal { padding: 12px 16px 4px; border-bottom: 1px solid var(--border); }
.meal-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ink-muted); margin-bottom: 8px; }
.meal-missing { font-size: 13px; color: var(--yolk-dark); background: #FBF3E1; border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.dish { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.dish.is-locked .dish-thumb { outline: 2px solid var(--olive); outline-offset: 1px; }
.dish.is-leftover { opacity: .85; }
.dish-thumb { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.dish-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #EFEADB, #E6DFCB); }
.dish-ph svg { width: 60%; color: #CFC6AC; }
.dish-main { flex: 1; min-width: 0; }
.dish-name { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); }
.dish-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 3px 0; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--bg); color: var(--ink-muted); border: 1px solid var(--border); }
.tag-leftover { background: #EDF0E2; color: var(--olive-dark); border-color: #D5DCBF; }
.tag-cook2 { background: #FBF3E1; color: var(--yolk-dark); border-color: #EBD3A0; }
.dish-persons { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-muted); }
.dish-persons b { color: var(--ink); font-weight: 600; }
.dish-actions { display: flex; flex-direction: column; gap: 4px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 15px; line-height: 1; color: var(--ink-muted); }
.icon-btn:hover { border-color: var(--olive); color: var(--olive-dark); }
.icon-btn.on { background: #EDF0E2; border-color: var(--olive); }
.cook-box { margin-top: 8px; background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.cook-title { margin: 0 0 6px; }
.cook-list { list-style: none; padding: 0; margin: 0 0 6px; }
.cook-list li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dashed var(--border); }

.day-totals { padding: 12px 16px 14px; margin-top: auto; background: #FAF7EF; display: flex; flex-direction: column; gap: 10px; }
.tot-line { display: flex; justify-content: space-between; font-size: 13px; }
.bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin: 4px 0 2px; }
.bar-fill { height: 100%; border-radius: 99px; }
.bar-fill.ok { background: var(--olive); }
.bar-fill.off { background: var(--yolk); }
.tot-macros { font-size: 12px; }

/* --- nákupný zoznam --- */
.shopping-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.shopping h3 { font-size: 20px; }
.shop-groups { columns: 3 260px; column-gap: 28px; margin-top: 12px; }
.shop-group { break-inside: avoid; margin-bottom: 16px; }
.shop-group h4 { font-family: 'Work Sans', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); margin: 0 0 6px; }
.shop-group ul { list-style: none; padding: 0; margin: 0; }
.shop-group li label { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; cursor: pointer; font-size: 14px; }
.shop-group li input { accent-color: var(--olive); }
.shop-name { flex: 1; }
.shop-amt { white-space: nowrap; font-weight: 500; }
.shop-group li.done .shop-name, .shop-group li.done .shop-amt { text-decoration: line-through; color: var(--ink-muted); }

.saved-plans h3 { font-size: 18px; margin-bottom: 10px; }
.saved-list { list-style: none; padding: 0; margin: 0; }
.saved-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.saved-list li .muted { margin-left: auto; font-size: 13px; }
.btn-icon.confirm { font-size: 12px; color: var(--danger); }

@media (max-width: 760px) {
  .ps-grid { grid-template-columns: 1fr; gap: 0; }
  .plan-days { grid-template-columns: 1fr; }
  .card { padding: 16px; }
}

/* --- Zoznam receptov rozdelený podľa kategórií + filter --- */
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filter-chip {
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chip:hover { border-color: var(--olive); }
.filter-chip.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.filter-chip .count { font-size: 12px; opacity: .7; margin-left: 2px; }
.recipe-group + .recipe-group { margin-top: 34px; }
.group-title {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: var(--olive-dark);
  margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.group-title .count { font-family: 'Work Sans', sans-serif; font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-left: 4px; }

/* --- Počet porcií vo formulári --- */
.servings-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.servings-row input, .field .servings-row input#w-servings { width: 130px; flex: none; }
.servings-hint { font-size: 13px; color: var(--ink-muted); }

/* --- Dohľadanie makier (kaloricketabulky.sk) --- */
.macro-lookup { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.macro-lookup .kt-link { align-self: flex-start; text-decoration: none; display: inline-block; }
.macro-lookup .kt-paste { width: 100%; min-height: 0; font-size: 13px; resize: vertical; }
.kt-result { font-size: 13px; border-radius: 8px; padding: 6px 10px; }
.kt-result.ok { background: #EDF0E2; color: var(--olive-dark); }
.kt-result.warn { background: #FBF3E1; color: var(--yolk-dark); }

/* --- Záložka Suroviny --- */
.ing-view { max-width: 980px; margin: 0 auto; }
.ing-view-note { font-size: 14px; color: var(--ink-muted); margin: -4px 0 14px; }
.ing-filter {
  width: 100%; padding: 10px 14px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); margin-bottom: 10px;
}
.ing-count { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.ing-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ing-tr {
  display: grid; grid-template-columns: minmax(200px, 1fr) repeat(4, 96px) 170px;
  gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--border);
}
.ing-tr:first-child { border-top: none; }
.ing-th { background: var(--bg); font-size: 12px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .03em; padding-top: 8px; padding-bottom: 8px; }
.ing-tr.is-dirty { background: #FBF3E1; }
.ing-name-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ing-name-text { font-weight: 600; color: var(--ink); }
.ing-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-muted); min-width: 0; }
.ing-recipes { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.src-badge { flex: none; font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); }
.src-usda { background: #EDF0E2; color: var(--olive-dark); border-color: #D5DCBF; }
.src-edited { background: #FBF3E1; color: var(--yolk-dark); border-color: #EBD3A0; }
.ing-cell { display: flex; align-items: center; gap: 4px; }
.ing-cell-label { display: none; }
.ing-cell input {
  width: 100%; min-width: 0; padding: 6px 8px; font: inherit; font-size: 14px; text-align: right;
  border: 1.5px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink);
}
.ing-cell input:focus { border-color: var(--olive); outline: none; }
.ing-unit { font-size: 12px; color: var(--ink-muted); width: 10px; }
.ing-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.ing-actions [hidden] { display: none !important; }
.ing-status { font-size: 12px; }
.ing-status.ok { color: var(--olive-dark); }
.ing-status.err { color: var(--danger); }
@media (max-width: 760px) {
  .ing-th { display: none; }
  .ing-tr { grid-template-columns: repeat(4, 1fr); }
  .ing-name-cell, .ing-actions { grid-column: 1 / -1; }
  .ing-actions { justify-content: flex-start; }
  .ing-cell { flex-direction: column; align-items: stretch; gap: 2px; }
  .ing-cell-label { display: block; font-size: 11px; color: var(--ink-muted); }
  .ing-unit { display: none; }
  .ing-recipes { white-space: normal; }
}

/* --- Plánovač: varenie do zásoby --- */
.ps-options .check.is-disabled { opacity: .45; }
.ps-options .ps-limit select { padding: 4px 8px; font: inherit; font-size: 14px; border: 1.5px solid var(--border); border-radius: 6px; background: #fff; }

/* --- Čo a koľko uvariť --- */
.cooking-plan { margin-top: 20px; }
.cooking-plan h3 { font-size: 20px; }
.cook-sessions { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 10px; }
.cook-session { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.cs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.cs-when { font-size: 13px; font-weight: 600; color: var(--olive-dark); min-width: 110px; }
.cs-name { font-weight: 600; color: var(--ink); flex: 1; min-width: 180px; }
.cs-amount { font-size: 15px; white-space: nowrap; }
.cs-uses { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.cs-ingredients { margin-top: 6px; }
.cs-ingredients summary { cursor: pointer; font-size: 13px; color: var(--olive-dark); }
.cs-ingredients .cook-list { margin-top: 6px; columns: 2; column-gap: 24px; font-size: 14px; }
.cs-ingredients .cook-list li { break-inside: avoid; }
.cook-fresh-title { margin: 18px 0 6px; font-size: 15px; }
.cook-fresh { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.cook-fresh li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
@media (max-width: 600px) { .cs-ingredients .cook-list { columns: 1; } }

/* --- Pevné porcie: zvyšok do limitu --- */
.bar-fill.over { background: var(--danger); }
.tot-rest { font-size: 12px; margin-top: 2px; }
.rest.ok { color: var(--olive-dark); }
.rest.under { color: var(--yolk-dark); }
.rest.over { color: var(--danger); }
.cs-extra { color: var(--yolk-dark); }
.split-note { display: block; }

/* =========================================================
   TRÉNINGY — Apple Watch + rozpis
   ========================================================= */
.tabs { flex-wrap: wrap; }
.wk input[type="date"], .wk input[type="number"], .wk input[type="text"], .wk textarea {
  font-family: inherit; font-size: 15px; padding: 7px 10px;
  border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink);
}
.wk input:focus, .wk textarea:focus { outline: none; border-color: var(--olive); }
.wk h3 { font-size: 18px; }
.small { font-size: 13px; }
.wk-datebar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.wk-today-badge { font-size: 12px; font-weight: 600; color: var(--olive-dark); background: #EDF0E2; border: 1px solid #D5DCBF; border-radius: 999px; padding: 1px 10px; }
.wk-empty p { margin: 0 0 8px; }
.wk-workout { border-left: 5px solid var(--border); }
.wk-workout.wk-run { border-left-color: var(--yolk); }
.wk-workout.wk-strength { border-left-color: var(--olive); }
.wk-w-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.wk-w-icon { font-size: 30px; line-height: 1; }
.wk-w-sub { font-size: 13px; }
.wk-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.wk-stat { background: var(--bg); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; }
.wk-stat span { font-size: 12px; color: var(--ink-muted); }
.wk-stat strong { font-family: 'Fraunces', serif; font-size: 20px; color: var(--ink); font-weight: 600; }
.wk-import.is-first { border: 2px solid var(--olive); }
.wk-steps { padding-left: 20px; margin: 10px 0 14px; font-size: 14px; color: var(--ink-muted); }
.wk-steps b { color: var(--ink); }
.wk-drop { display: block; border: 2px dashed var(--border); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; color: var(--ink-muted); transition: border-color .15s, background .15s; }
.wk-drop:hover, .wk-drop.over { border-color: var(--olive); background: #F3F4EA; color: var(--ink); }
.wk-import-status { margin-top: 10px; font-size: 14px; }
.wk-import-status:empty { display: none; }
.wk-import-status.ok { color: var(--olive); font-weight: 500; }
.wk-import-status.err { color: var(--danger); }
.wk-recent-list { list-style: none; padding: 0; margin: 8px 0 0; }
.wk-recent-list li { border-bottom: 1px solid var(--border); }
.wk-recent-list .link-btn { display: flex; gap: 12px; width: 100%; padding: 7px 0; color: var(--ink); align-items: baseline; flex-wrap: wrap; }
.wk-recent-list .muted { margin-left: auto; font-size: 13px; }
.wk-r-date { width: 52px; color: var(--ink-muted); font-size: 13px; }

.tr-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tr-day-card {
  font: inherit; text-align: left; cursor: pointer; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s;
}
.tr-day-card:hover { border-color: var(--olive); transform: translateY(-1px); }
.tr-day-card.is-today { border: 2px solid var(--olive); }
.tr-day-card.is-rest { background: #FAF7EF; }
.tr-day-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tr-day-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; color: var(--olive-dark); }
.tr-day-title { font-weight: 600; font-size: 14px; }
.tr-day-card ul { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.tr-day-card li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; border-bottom: 1px dashed var(--border); }
.tr-day-card li .muted { white-space: nowrap; }

.tr-back { margin-bottom: 10px; font-size: 14px; }
.tr-day-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tr-day-top .section-title { margin: 0; }
.wk .tr-title-input { flex: 1; min-width: 200px; font-weight: 600; transition: border-color .3s; }
.wk .tr-title-input.saved { border-color: var(--olive); }
.tr-datebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; }
.tr-datebar label { display: flex; align-items: center; gap: 8px; }
.tr-progress { font-weight: 500; color: var(--ink-muted); }
.tr-progress.all { color: var(--olive); }
.tr-watch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tr-watch-chip { font: inherit; font-size: 13px; cursor: pointer; background: #EDF0E2; border: 1px solid #D5DCBF; color: var(--olive-dark); border-radius: 999px; padding: 4px 12px; }
.tr-ex { padding: 16px 18px; margin-bottom: 12px; }
.tr-ex.is-done { border-color: #C9D3AE; background: #FBFCF6; }
.tr-ex-head { display: flex; gap: 12px; align-items: flex-start; }
.tr-ex-num { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.tr-ex.is-done .tr-ex-num { background: var(--olive); border-color: var(--olive); color: #fff; }
.tr-ex-main { flex: 1; min-width: 0; }
.tr-ex-main h3 { font-size: 17px; line-height: 1.3; }
.tr-ex-plan { font-size: 14px; }
.tr-ex-prev { font-size: 13px; }
.tr-ex-tools { display: flex; gap: 4px; flex-shrink: 0; }
.tr-ex-tools .icon-btn:disabled { opacity: .35; cursor: default; }
.tr-ex-tools .icon-btn.confirm { width: auto; padding: 0 8px; font-size: 12px; color: var(--danger); }
.tr-form[hidden] { display: none; }
.tr-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }
.tr-form label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-muted); gap: 3px; }
.tr-form > input[name="name"] { flex: 1 1 220px; }
.tr-form input[type="number"] { width: 90px; }
.tr-form input[name="reps"] { width: 100px; }
.tr-form .tr-note { flex: 1 1 220px; }
.tr-result { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; }
.tr-result label { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.wk .tr-result input { width: 74px; padding: 6px 8px; }
.tr-result-label { font-weight: 600; margin-right: 4px; }
.tr-history { margin-top: 10px; font-size: 13px; }
.tr-history summary { cursor: pointer; color: var(--olive-dark); }
.tr-history ul { list-style: none; padding: 0; margin: 6px 0 0; max-width: 320px; }
.tr-history li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; border-bottom: 1px dashed var(--border); }
.tr-add .tr-form { margin-top: 10px; }
.tr-bulk { margin-top: 16px; }
.tr-bulk summary { cursor: pointer; color: var(--olive-dark); font-weight: 500; }
.tr-bulk textarea { width: 100%; margin: 10px 0 8px; resize: vertical; }
.tr-bulk-preview { font-size: 13px; margin-bottom: 8px; }

@media (max-width: 560px) {
  .tr-ex-head { flex-wrap: wrap; }
  .tr-ex-tools { width: 100%; justify-content: flex-end; }
}
.wk-w-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.wk-del { color: var(--ink-muted); margin-left: auto; }
.wk-shot-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.wk-shot-actions label.btn { cursor: pointer; }
.wk-shot-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.wk-shot-form[hidden] { display: none; }
.wk-shot-preview { max-height: 260px; max-width: 100%; border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px; display: block; }
.wk-shot-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wk-shot-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-muted); }
.wk .wk-shot-fields input, .wk .wk-shot-fields select { width: 100%; font-family: inherit; font-size: 15px; padding: 7px 10px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.wk-import summary { cursor: pointer; font-weight: 500; color: var(--olive-dark); }
.tr-swap { margin-top: 12px; padding: 12px; background: var(--bg); border-radius: 10px; }
.tr-swap[hidden] { display: none; }
.tr-swap-title { font-size: 14px; margin-bottom: 8px; }
.tr-swap-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tr-swap-opts .filter-chip { font-size: 13px; padding: 5px 12px; }
.tr-swap-custom { display: flex; gap: 8px; flex-wrap: wrap; }
.tr-swap-custom input { flex: 1 1 200px; }
@media (max-width: 560px) {
  .shell { padding: 20px 14px 60px; }
  .tab { padding: 7px 12px; font-size: 14px; }
}

/* --- svaly pri cvikoch --- */
.tr-ex-visual { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; margin-top: 12px; }
.tr-fig { margin: 0; background: #FAF7EF; border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px 2px; }
.tr-fig figcaption { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); text-align: center; }
.tr-ex-info { font-size: 13px; color: var(--ink-muted); }
.tr-ex-info p { margin: 0 0 6px; }
.tr-tip { color: var(--ink); font-size: 14px; }
.mm-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.mm-key.p { background: #C8553D; } .mm-key.s { background: #E9B872; }
.mm-svg { width: 100%; height: auto; display: block; }
.mm-base { fill: #EFEADB; stroke: none; }
.mm-base .mm-limb-a { stroke: #EFEADB; stroke-width: 5.5; stroke-linecap: round; fill: none; }
.mm-base .mm-limb-l { stroke: #EFEADB; stroke-width: 8.5; stroke-linecap: round; fill: none; }
.mm-n { fill: #DDD5C0; }
.mm-s { fill: #E9B872; }
.mm-p { fill: #C8553D; }
.mm-cap { font-size: 7px; fill: var(--ink-muted); text-anchor: middle; font-family: 'Work Sans', sans-serif; }
@media (max-width: 560px) {
  .tr-ex-visual { grid-template-columns: 140px 1fr; }
  .tr-ex-info { grid-column: 1 / -1; }
}

/* --- súčet dňa: čo chýba do cieľa --- */
.tot-macro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.tm-cell { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.35; background: var(--surface); border-radius: 6px; padding: 4px 6px; }
.tm-label { color: var(--ink-muted); text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.tm-val b { font-size: 13px; }
.tm-cell .rest { font-size: 11px; font-weight: 500; }
.person-row .p-protein { width: 80px; }
@media (max-width: 420px) { .tot-macro-grid { grid-template-columns: repeat(2, 1fr); } }
.extra-suggest { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 12px; margin: -2px 0 6px; }
.extra-chip { font-size: 12px; padding: 3px 10px; }
.extra-chip .count { font-size: 11px; }

/* =========================================================
   ROZLOŽENIE S PANELOM VĽAVO + POMOCNÉ BUBLINY
   ========================================================= */
:root {
  --sidebar: #34401F;
  --sidebar-ink: #EDE9DA;
  --shadow: 0 1px 2px rgba(43, 42, 34, .05), 0 6px 20px rgba(43, 42, 34, .05);
}
body { background: var(--bg); }
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

/* --- panel vľavo --- */
.sidebar.shell-header {
  position: sticky; top: 0; height: 100vh; margin: 0;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 0;
  background: var(--sidebar); color: var(--sidebar-ink); padding: 26px 16px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--yolk); color: var(--sidebar); display: grid; place-items: center; flex-shrink: 0; }
.brand-mark svg { width: 24px; height: 24px; }
.sidebar .wordmark { color: #FFFDF5; font-size: 20px; line-height: 1.15; }
.sidebar .tabs { display: flex; flex-direction: column; gap: 3px; background: none; border: none; border-radius: 0; padding: 0; flex-wrap: nowrap; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: rgba(237, 233, 218, .5); padding: 16px 12px 6px; font-weight: 600; }
.nav-label:first-child { padding-top: 0; }
.sidebar .tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font-size: 15px; font-weight: 500; color: var(--sidebar-ink); padding: 10px 12px; border-radius: 10px;
  transition: background .15s, color .15s;
}
.sidebar .tab svg { width: 20px; height: 20px; flex-shrink: 0; opacity: .85; }
.sidebar .tab:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar .tab.active { background: var(--yolk); color: var(--sidebar); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.sidebar .tab.active svg { opacity: 1; }
.sidebar-foot { margin-top: auto; font-size: 12px; color: rgba(237, 233, 218, .55); padding: 0 10px; line-height: 1.5; }
.help-demo { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(237, 233, 218, .5); font-size: 10px; font-weight: 700; }

/* --- obsah --- */
.content.shell { max-width: 1180px; width: 100%; margin: 0; padding: 36px 44px 80px; }
.content .search-zone { margin-bottom: 30px; }
.content .search-input { box-shadow: var(--shadow); border-color: transparent; }
.content .search-input:focus { border-color: var(--olive); }
.section-title { font-size: 28px; letter-spacing: -.01em; }
.card { box-shadow: var(--shadow); border-color: #E7E1CF; }
.day-card, .tr-day-card { box-shadow: var(--shadow); border-color: #E7E1CF; }
.ps-block h4 { font-size: 16px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.planner-intro { margin-bottom: 14px; }
.planner-intro .section-title { display: flex; align-items: center; gap: 8px; }
.list-header .section-title, .wk h2, .ing-view h2 { display: inline-flex; align-items: center; gap: 8px; }

/* --- bublina „?“ --- */
.help {
  position: relative; display: inline-grid; place-items: center; vertical-align: middle;
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: #EAE5D3; color: var(--ink-muted); font: 700 11px/1 'Work Sans', sans-serif; letter-spacing: 0;
  cursor: help; user-select: none; transition: background .15s, color .15s; text-transform: none;
}
h2 .help { width: 20px; height: 20px; font-size: 12px; }
.help:hover, .help:focus { background: var(--olive); color: #fff; outline: none; }
.help::after {
  content: attr(data-help); white-space: pre-line;
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, -4px);
  width: max-content; max-width: min(300px, 78vw);
  background: var(--ink); color: #F6F3EA; border-radius: 10px; padding: 9px 12px;
  font: 400 13px/1.45 'Work Sans', sans-serif; text-align: left; letter-spacing: 0; text-transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2); z-index: 50;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.help::before {
  content: ''; position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-bottom-color: var(--ink); z-index: 51; opacity: 0; transition: opacity .15s;
}
.help:hover::after, .help:focus::after { opacity: 1; transform: translate(-50%, 0); }
.help:hover::before, .help:focus::before { opacity: 1; }
.help.help-left::after { left: auto; right: -8px; transform: translate(0, -4px); }
.help.help-left:hover::after, .help.help-left:focus::after { transform: translate(0, 0); }
.help.help-right::after { left: -8px; transform: translate(0, -4px); }
.help.help-right:hover::after, .help.help-right:focus::after { transform: translate(0, 0); }

/* --- mobil: panel sa zmení na lištu hore --- */
@media (max-width: 860px) {
  .app { display: block; }
  .sidebar.shell-header { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
  .brand { display: none; }
  .brand-mark { width: 32px; height: 32px; }
  .sidebar .wordmark, .nav-label, .sidebar-foot { display: none; }
  .sidebar .tabs { flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .sidebar .tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 10px; width: auto; white-space: nowrap; }
  .sidebar .tab svg { width: 20px; height: 20px; }
  .content.shell { padding: 20px 14px 60px; }
  .section-title { font-size: 24px; }
}

/* --- príloha pri jedle v plánovači --- */
.dish-side { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; padding: 6px 8px; background: #F3F0E4; border-radius: 8px; font-size: 13px; }
.dish-side .side-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--olive-dark); font-weight: 600; }
.dish-side .muted { font-size: 12px; flex-basis: 100%; }
.dish-side .side-reroll { width: 24px; height: 24px; font-size: 13px; margin-left: auto; }
/* --- príloha vo formulári receptu --- */
.side-box { background: #FAF7EF; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.side-box .check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.side-box input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--olive); }
.side-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.side-options[hidden] { display: none; }
.side-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 10px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface); cursor: pointer; }
.side-opt:has(input:checked) { border-color: var(--olive); background: #EDF0E2; }
.side-opt input { width: 14px; height: 14px; }
.side-note { font-size: 12px; color: var(--ink-muted); margin: 8px 0 0; }
.detail-sides { margin: 10px 0 0; font-size: 14px; }
.detail-sides .tag { margin: 0 4px 4px 0; display: inline-block; }

/* --- prihlásený používateľ v ľavom paneli --- */
.user-chip { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 10px; border-top: 1px solid rgba(237, 233, 218, .15); }
.user-chip + .sidebar-foot { margin-top: 12px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--yolk); color: var(--sidebar); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.user-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #FFFDF5; font-weight: 500; font-size: 14px; }
.user-logout { background: none; border: 1px solid rgba(237, 233, 218, .3); color: var(--sidebar-ink); border-radius: 8px; font: inherit; font-size: 12px; padding: 4px 8px; cursor: pointer; }
.user-logout:hover { border-color: rgba(237, 233, 218, .7); color: #fff; }
@media (max-width: 860px) {
  .user-chip { margin: 0 0 0 auto; padding: 0; border: none; gap: 6px; flex-shrink: 0; }
  .user-name { display: none; }
}

/* --- prihlasovacia stránka --- */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; box-shadow: 0 6px 30px rgba(43, 42, 34, .08); }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-brand .brand-mark { color: #fff; background: var(--olive); }
.login-brand .wordmark { font-size: 22px; }
.login-switch { display: grid; grid-template-columns: 1fr 1fr; background: #EFEBDD; border-radius: 10px; padding: 3px; margin-bottom: 18px; }
.login-switch button { border: none; background: none; font: inherit; font-size: 14px; font-weight: 500; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--ink-muted); }
.login-switch button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
#login-form { display: flex; flex-direction: column; gap: 14px; }
#login-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
#login-form label[hidden], #login-form p[hidden] { display: none; }
#login-form input { font: inherit; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
#login-form input:focus { outline: none; border-color: var(--olive); }
.login-hint { margin: 0; font-size: 13px; color: var(--ink-muted); }
.login-error { margin: 0; font-size: 14px; color: var(--danger); }
.login-submit { margin-top: 4px; padding: 11px; font-size: 15px; }

/* --- záložka Priatelia --- */
.friends { max-width: 760px; }
.friends-intro { color: var(--ink-muted); margin: 6px 0 20px; }
.card-title { font-size: 19px; margin-bottom: 10px; }
.people-list { list-style: none; margin: 0; padding: 0; }
.people-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.people-list li:last-child { border-bottom: none; }
.people-list li.clickable { cursor: pointer; border-radius: 8px; }
.people-list li.clickable:hover { background: #F5F1E5; }
.person { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.person .user-avatar, .member-chip .user-avatar { width: 28px; height: 28px; font-size: 13px; color: #fff; background: var(--olive); }
.person-actions { display: flex; gap: 6px; align-items: center; }
.people-search { margin: 4px 0 6px; font-size: 15px; }
.small-gap { margin: 12px 0 0; }
.tag-x { border: none; background: none; cursor: pointer; color: var(--ink-muted); font-size: 13px; padding: 0 0 0 2px; line-height: 1; }
.tag-x:hover { color: var(--danger); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.inline-form input, .inline-form select { flex: 1; min-width: 180px; font: inherit; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.member-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.member-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #EDF0E2; font-weight: 500; font-size: 14px; }
.member-chip.invited { background: var(--bg); border: 1px dashed var(--border); padding-left: 12px; color: var(--ink-muted); font-weight: 400; }
.household-invite { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: #FBF3DF; border: 1px solid #EBD6A6; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.household-leave { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.profile-head { display: flex; align-items: center; gap: 14px; margin: 12px 0 18px; flex-wrap: wrap; }
.profile-actions { margin-left: auto; }
.user-avatar.big { width: 104px; height: 104px; font-size: 42px; background: var(--olive); color: #fff; }
.owner-note { display: inline-block; margin-left: 10px; font-size: 14px; color: var(--ink-muted); }
.detail-actions[hidden] { display: none; }

/* --- profil --- */
.user-avatar.has-photo { overflow: hidden; background: var(--border); }
.user-avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.user-open { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; background: none; border: none; padding: 0; font: inherit; cursor: pointer; text-align: left; color: inherit; }
.user-open:hover .user-name { text-decoration: underline; }
.profile { max-width: 760px; }
.profile-head { flex-wrap: nowrap; align-items: center; gap: 20px; margin-bottom: 10px; }
.profile-ident { min-width: 0; }
.profile-bio { margin: 4px 0 2px; white-space: pre-line; }
.photo-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.photo-actions label.btn { cursor: pointer; }
.profile-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--bg); border-radius: 12px; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.stat .val { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--olive-dark); line-height: 1.1; }
.stat .lbl { font-size: 13px; color: var(--ink-muted); line-height: 1.35; }
.stat-stars { background: #FBF3DF; }
.stat-stars .val { color: var(--yolk-dark); }
.profile-top { margin-top: 18px; }
.star-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; color: var(--yolk-dark); background: #FBF3DF; border-radius: 999px; padding: 1px 8px; }
.card-body .star-badge { margin-top: 4px; align-self: flex-start; }
.star-note { color: var(--yolk-dark); font-weight: 600; }
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.profile-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; font-size: 14px; }
.profile-form input, .profile-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; resize: vertical; }
.profile-form input:focus, .profile-form textarea:focus { outline: none; border-color: var(--olive); }
.field-note { font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.form-row-end { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
@media (max-width: 600px) {
  .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-head { gap: 14px; }
}

/* --- nástenka --- */
.feed { max-width: 640px; }
.feed-composer { padding: 16px 18px; }
.composer-row { display: flex; gap: 12px; align-items: flex-start; }
.composer-row textarea { flex: 1; font: inherit; border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 12px; resize: vertical; min-height: 64px; background: #fff; }
.composer-row textarea:focus { outline: none; border-color: var(--olive); }
.composer-row .user-avatar, .feed-head .user-avatar { width: 40px; height: 40px; font-size: 16px; background: var(--olive); color: #fff; }
.composer-preview { position: relative; margin: 10px 0 0 52px; max-width: 260px; }
.composer-preview img { width: 100%; border-radius: 10px; display: block; }
.composer-preview .tag-x { position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9); border-radius: 50%; width: 24px; height: 24px; font-size: 16px; }
.composer-foot { display: flex; align-items: center; gap: 10px; margin: 10px 0 0 52px; }
.composer-foot label.btn { cursor: pointer; }
.composer-count { margin-left: auto; font-size: 13px; }
.composer-count.over { color: var(--danger); font-weight: 600; }
.feed-post { padding: 16px 18px; }
.feed-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.feed-author { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.feed-author:hover span { text-decoration: underline; }
.feed-time { font-size: 13px; }
.feed-head .feed-del { margin-left: auto; font-size: 18px; }
.feed-text { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; }
.feed-photo { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; display: block; }
.feed-event { margin: 0 0 10px; font-weight: 500; }
.feed-recipe { display: flex; gap: 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; background: #FFFEFA; transition: border-color .15s; }
.feed-recipe:hover { border-color: var(--olive); }
.feed-recipe > img, .feed-recipe-ph { width: 132px; min-height: 112px; object-fit: cover; flex-shrink: 0; background: var(--bg); display: grid; place-items: center; color: var(--ink-muted); }
.feed-recipe-ph svg { width: 40px; height: 40px; }
.feed-recipe-body { padding: 10px 12px 10px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feed-recipe-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px; line-height: 1.25; color: var(--olive-dark); }
.feed-macros { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; margin-top: 6px; }
.feed-macros b { font-weight: 600; }
.feed-macros-note { font-size: 11px; color: var(--ink-muted); }
.feed-actions { display: flex; gap: 6px; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.feed-actions button { background: none; border: none; font: inherit; font-size: 14px; color: var(--ink-muted); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.feed-actions button:hover { background: var(--bg); color: var(--ink); }
.feed-like.liked { color: var(--danger); font-weight: 600; }
.feed-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.feed-comments[hidden] { display: none; }
.feed-comment { display: flex; gap: 8px; align-items: flex-start; }
.feed-comment .user-avatar { width: 28px; height: 28px; font-size: 12px; background: var(--olive); color: #fff; flex-shrink: 0; }
.feed-comment-body { background: var(--bg); border-radius: 12px; padding: 6px 12px; font-size: 14px; overflow-wrap: anywhere; }
.feed-comment-body .feed-time { font-size: 12px; margin-left: 4px; }
.feed-comment-form { display: flex; gap: 8px; }
.feed-comment-form input { flex: 1; font: inherit; font-size: 14px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 999px; background: #fff; }
.feed-comment-form input:focus { outline: none; border-color: var(--olive); }
.feed-more { text-align: center; margin: 10px 0 30px; }
@media (max-width: 600px) {
  .feed-recipe > img, .feed-recipe-ph { width: 96px; }
  .composer-preview, .composer-foot { margin-left: 0; }
}

/* --- správy (chat) --- */
.tab-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; line-height: 1; }
.tab-badge[hidden] { display: none; }
.sidebar .tab { position: relative; }
.chat { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; height: calc(100vh - 80px); min-height: 460px; }
.chat-list { overflow-y: auto; }
.chat-list .section-title { margin-bottom: 12px; }
.chat-conv { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 12px; padding: 10px; font: inherit; cursor: pointer; color: var(--ink); }
.chat-conv:hover { background: #F1EDE0; }
.chat-conv.active { background: var(--surface); box-shadow: var(--shadow); }
.chat-conv .user-avatar { width: 42px; height: 42px; font-size: 17px; background: var(--olive); color: #fff; flex-shrink: 0; }
.chat-conv-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.chat-conv-name { font-weight: 600; }
.chat-conv-last { font-size: 13px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-conv.unread .chat-conv-last { color: var(--ink); font-weight: 600; }
.chat-thread { background: var(--surface); border: 1px solid #E7E1CF; border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 0; position: relative; overflow: hidden; }
.chat-empty { margin: auto; color: var(--ink-muted); padding: 30px; text-align: center; }
.chat-empty.small { padding: 20px; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-head .user-avatar { width: 36px; height: 36px; font-size: 15px; background: var(--olive); color: #fff; }
.chat-back { display: none; background: none; border: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--olive-dark); padding: 0 6px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-bubble { background: #EFEBDD; border-radius: 18px 18px 18px 6px; padding: 8px 12px; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 6px; }
.chat-msg.mine .chat-bubble { background: var(--olive); color: #fff; border-radius: 18px 18px 6px 18px; }
.chat-bubble.media-only { background: none !important; padding: 0; }
.chat-text { white-space: pre-line; }
.chat-text.big-emoji { font-size: 34px; line-height: 1.2; }
.chat-media { max-width: 260px; max-height: 300px; border-radius: 14px; display: block; object-fit: cover; }
.chat-meta { font-size: 11px; color: var(--ink-muted); margin: 1px 6px 4px; }
.chat-seen { font-size: 12px; text-align: right; padding: 0 18px 4px; }
.chat-attach { position: relative; margin: 0 16px 8px; max-width: 140px; }
.chat-attach img { width: 100%; border-radius: 10px; display: block; }
.chat-attach .tag-x { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.9); border-radius: 50%; width: 22px; height: 22px; font-size: 15px; }
.chat-gif-row { padding: 0 16px 8px; }
.chat-gif-row input { width: 100%; font: inherit; font-size: 14px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.emoji-pop { position: absolute; bottom: 64px; left: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.12); padding: 8px; display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; z-index: 5; }
.emoji-pop[hidden] { display: none; }
.emoji-pop button { font-size: 22px; background: none; border: none; border-radius: 8px; cursor: pointer; height: 36px; }
.emoji-pop button:hover { background: var(--bg); }
.chat-compose { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border); }
.chat-tool { background: none; border: none; font-size: 20px; cursor: pointer; padding: 6px; border-radius: 8px; line-height: 1; height: 36px; display: inline-grid; place-items: center; }
.chat-tool:hover { background: var(--bg); }
.chat-gif-btn { font-size: 12px; font-weight: 700; border: 1.5px solid var(--ink-muted); color: var(--ink-muted); height: 26px; padding: 0 5px; margin: 5px 2px; border-radius: 6px; }
.chat-compose textarea { flex: 1; font: inherit; resize: none; padding: 8px 14px; border: 1.5px solid var(--border); border-radius: 18px; background: #fff; max-height: 140px; }
.chat-compose textarea:focus { outline: none; border-color: var(--olive); }
@media (max-width: 860px) {
  .chat { display: block; height: calc(100vh - 150px); }
  .chat .chat-thread { display: none; height: 100%; }
  .chat.thread-open .chat-list { display: none; }
  .chat.thread-open .chat-thread { display: flex; }
  .chat-back { display: block; }
  .emoji-pop { grid-template-columns: repeat(7, 36px); }
  .sidebar .tab .tab-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
}

/* --- upozornenia --- */
.notifs { max-width: 640px; }
.notif-ask { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.notif-list { list-style: none; margin: 14px 0 0; padding: 0; background: var(--surface); border: 1px solid #E7E1CF; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif:last-child { border-bottom: none; }
.notif:hover { background: #F7F4EA; }
.notif.unread { background: #FBF3DF; }
.notif.unread:hover { background: #F7ECD2; }
.notif-avatar { position: relative; flex-shrink: 0; }
.notif-avatar .user-avatar { width: 42px; height: 42px; font-size: 17px; background: var(--olive); color: #fff; }
.notif-icon { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.15); display: grid; place-items: center; font-size: 11px; color: var(--danger); }
.notif-body { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.notif-time { font-size: 12px; }
.feed-post.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--yolk); } 100% { box-shadow: var(--shadow); } }
.notif-body { display: block; } .notif-body .notif-time { display: block; margin-top: 2px; }

/* --- ocenenia --- */
.medal { display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
.medal.locked { filter: grayscale(1); opacity: .28; }
.awards .card-title .muted { font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 400; margin-left: 6px; }
.award-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.award-row:last-child { border-bottom: none; padding-bottom: 0; }
.award-medals { display: flex; gap: 6px; }
.award-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.award-progress { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.award-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--yolk), var(--olive)); border-radius: 999px; }
.award-next { font-size: 13px; }
.feed-award { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #FBF3DF, #FFFDF8); border: 1px solid #EBD6A6; border-radius: 12px; padding: 12px 14px; }
.feed-award .feed-event { margin: 0 0 2px; }
.medal-avatar { background: none !important; }
.shared-badge { align-self: flex-start; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--olive-dark); background: #EDF0E2; border-radius: 999px; padding: 1px 8px; margin-top: 4px; }
.shared-note { color: var(--olive-dark); font-weight: 500; }
.sidebar .tab[hidden] { display: none; }
.shared-intro { margin: -6px 0 14px; font-size: 14px; }

/* --- overenie surovín --- */
.verify-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #FBE9E2; color: var(--danger); vertical-align: middle; white-space: nowrap; }
.verify-badge.ok { background: #EDF0E2; color: var(--olive-dark); }
.ing-cell input:disabled { background: transparent; border-color: transparent; color: var(--ink); }
.verify { max-width: 900px; }
.verify .card-title .muted { font-family: 'Work Sans', sans-serif; font-size: 14px; font-weight: 400; }
.verify-list { padding: 6px 18px; }
.verify-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.verify-row:last-child { border-bottom: none; }
.verify-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.verify-meta { flex-basis: 100%; font-size: 13px; }
.verify-macros { display: flex; flex-wrap: wrap; gap: 8px; }
.verify-macros label { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-muted); gap: 2px; }
.verify-macros input { width: 92px; font: inherit; font-size: 14px; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }
.verify-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.verify-done { margin-top: 18px; }
.verify-done summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }
/* --- request / bug --- */
.bug-kind { display: flex; gap: 8px; margin-bottom: 10px; }
.bug-kind label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1.5px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; }
.bug-kind label:has(input:checked) { border-color: var(--olive); background: #EDF0E2; }
.bug-kind input { accent-color: var(--olive); }
.bug-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #FBF3DF; color: var(--yolk-dark); margin-bottom: 8px; }
.bug-chip.bug { background: #FBE9E2; color: var(--danger); }

/* veľa záložiek: panel sa nesmie zalomiť do druhého stĺpca, radšej sa posúva */
.sidebar.shell-header { flex-wrap: nowrap; overflow-y: auto; scrollbar-width: thin; }
.sidebar .tabs, .sidebar .brand, .user-chip { flex-shrink: 0; }
@media (max-width: 860px) { .sidebar.shell-header { overflow-y: visible; } }
.verify-paste { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.verify-paste .kt-paste { font: inherit; font-size: 13px; padding: 8px 10px; border: 1.5px dashed var(--border); border-radius: 8px; background: #fff; resize: vertical; }
/* recept len z overených surovín */
.card-image, .feed-recipe { position: relative; }
.verified-check { position: absolute; top: 8px; right: 8px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: #3F8F4A; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); line-height: 1; }
.verified-check.inline { position: static; display: inline-flex; width: auto; height: auto; padding: 2px 9px; border-radius: 999px; font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 600; vertical-align: middle; box-shadow: none; }
