/* =========================================================
   HomeRoots: vzhľad podľa design manuálu
   (len farby, písmo a tvary; funkcie sú v style.css a *.js)
   ========================================================= */
:root {
  --bg: #FAF6EE;
  --surface: #FFFDF9;
  --ink: #2E2E2E;
  --ink-muted: #77715F;
  --border: #EAE1CF;
  --olive: #3E5F3A;
  --olive-dark: #2E4A2B;
  --yolk: #E3B05C;
  --yolk-dark: #A8721F;
  --accent: #F4A261;
  --cream: #F6E7D3;
  --cream-soft: #FBF3E6;
  --danger: #B5543A;
  --radius: 12px;
  --sidebar: #2B4428;
  --sidebar-ink: #EEE9DA;
  --shadow: 0 1px 2px rgba(74, 58, 30, .05), 0 8px 24px rgba(74, 58, 30, .07);
  --shadow-lift: 0 2px 4px rgba(74, 58, 30, .06), 0 16px 34px rgba(74, 58, 30, .13);
  --hand: 'Caveat', 'Segoe Script', cursive;
  --leaf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 200' fill='none' stroke='%233E5F3A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M58 196C56 150 60 100 72 8'/%3E%3Cpath d='M59 162c-14-10-28-9-36 0 10 9 25 9 36 0z'/%3E%3Cpath d='M23 162c12-2 24-2 36 0'/%3E%3Cpath d='M61 132c14-12 29-11 38-2-10 10-26 10-38 2z'/%3E%3Cpath d='M99 130c-12 1-26 1-38 2'/%3E%3Cpath d='M63 102c-13-11-27-11-35-3 9 9 23 10 35 3z'/%3E%3Cpath d='M28 99c11 1 23 2 35 3'/%3E%3Cpath d='M66 72c12-11 25-11 33-4-9 10-22 11-33 4z'/%3E%3Cpath d='M99 68c-11 1-22 3-33 4'/%3E%3Cpath d='M69 44c-10-9-21-10-28-4 7 8 18 9 28 4z'/%3E%3Cpath d='M72 8c6 7 7 15 2 22'/%3E%3C/svg%3E");
}

body {
  font-family: 'Inter', 'Work Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background-color: var(--bg);
  /* jemná textúra papiera */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--cream); }
h1, h2, h3, .wordmark { font-family: 'Fraunces', serif; font-weight: 600; color: var(--olive-dark); letter-spacing: -.01em; }
input, select, textarea, button { accent-color: var(--olive); }

/* ---------- rozloženie: panel vľavo + obsah na celú šírku ---------- */
.app { grid-template-columns: 264px minmax(0, 1fr); }
.content.shell { max-width: none; width: 100%; margin: 0; padding: 0 32px 60px; position: relative; }

/* ---------- ľavý panel (svetlý) ---------- */
.sidebar.shell-header {
  background: #F4EEE2;
  color: var(--ink);
  border-right: 1px solid #E7DECB;
  padding: 22px 16px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #DCD2BD transparent;
  box-shadow: none;
}
.brand { padding: 0 6px 24px; gap: 12px; align-items: center; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--olive); color: #FFF6E3; box-shadow: 0 4px 12px rgba(46, 74, 43, .25); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.sidebar .wordmark { font-size: 25px; line-height: 1.05; color: var(--olive-dark); }
.brand-tag { font-size: 12px; color: var(--ink); margin-top: 3px; white-space: nowrap; }
.nav-label { font-size: 10.5px; letter-spacing: .14em; color: #9B947F; padding: 16px 12px 6px; }
.sidebar .tabs { gap: 2px; }
.sidebar .tab { font-size: 14.5px; padding: 9px 12px; border-radius: 10px; color: #3A3A32; font-weight: 500; }
.sidebar .tab svg { width: 20px; height: 20px; opacity: .9; color: #4B4A3E; }
.sidebar .tab:hover { background: rgba(62, 95, 58, .07); color: var(--olive-dark); }
.sidebar .tab.active { background: #E6DFCC; color: var(--olive-dark); font-weight: 600; box-shadow: none; }
.sidebar .tab.active svg { color: var(--olive-dark); }
.tab-badge { background: #D9533B; box-shadow: none; }
.user-chip { border-top: none; padding: 18px 6px 6px; margin-top: auto; gap: 10px; }
.user-open { display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 0; font: inherit; cursor: pointer; min-width: 0; flex: 1; text-align: left; }
.user-avatar { background: var(--cream); color: var(--olive-dark); }
.user-chip .user-avatar { width: 36px; height: 36px; }
.user-name { color: var(--ink); font-weight: 600; }
.user-badges { flex-shrink: 0; border: none; border-radius: 999px; background: #E3E8D9; color: var(--olive-dark); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.user-badges:hover { background: #D6DFC8; }
.sidebar-foot { position: relative; margin-top: 10px; padding: 8px 64px 4px 8px; min-height: 84px; color: var(--ink-muted); }
.foot-note { display: block; font-family: var(--hand); font-size: 19px; line-height: 1.15; color: #6E6A55; transform: rotate(-3deg); transform-origin: left; }
.foot-note .heart { color: var(--olive); font-size: 15px; }
.sidebar-foot::after {
  content: ''; position: absolute; right: 4px; bottom: -4px; width: 58px; height: 92px;
  background: var(--leaf) no-repeat center / contain; opacity: .45; transform: rotate(10deg);
}
.help-demo { border-color: #CFC6AC; }

/* ---------- horný panel ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px;
  margin: 0 -32px 22px; padding: 14px 32px;
  background: rgba(250, 246, 238, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #EEE6D5;
}
.topbar .search-zone { flex: 1; max-width: 560px; margin: 0; position: relative; }
.topbar .search-zone[hidden] { display: block; }
.topbar .search-input {
  border-radius: 12px; padding: 11px 16px 11px 44px; font-size: 14.5px; width: 100%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2377715F' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2'/%3E%3C/svg%3E") no-repeat 16px center / 17px;
  border: 1px solid #E7DECB; box-shadow: 0 1px 2px rgba(74, 58, 30, .04);
}
.topbar .search-input::placeholder { color: #A39C88; }
.topbar .search-input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(62, 95, 58, .12); }
.search-results { border-radius: 14px; border-color: var(--border); box-shadow: var(--shadow-lift); z-index: 40; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; border: none; background: none; color: #3A3A32; display: grid; place-items: center; cursor: pointer; }
.top-btn svg { width: 22px; height: 22px; }
.top-btn:hover, .top-btn.active { background: #EFE8D8; color: var(--olive-dark); }
.top-badge { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #D9533B; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.top-badge[hidden] { display: none; }
.top-user { position: relative; margin-left: 4px; }
.top-user-btn { display: flex; align-items: center; gap: 4px; border: none; background: none; padding: 3px; border-radius: 999px; cursor: pointer; color: #3A3A32; }
.top-user-btn:hover { background: #EFE8D8; }
.top-user-btn .user-avatar { width: 38px; height: 38px; font-size: 16px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #E2D7C0; }
.top-caret { width: 16px; height: 16px; }
.top-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; background: var(--surface); border: 1px solid #EEE6D5; border-radius: 14px; box-shadow: var(--shadow-lift); padding: 6px; z-index: 50; }
.top-menu[hidden] { display: none; }
.top-menu-name { font-weight: 600; padding: 8px 10px 6px; border-bottom: 1px solid #F0E8D8; margin-bottom: 4px; }
.top-menu button { display: block; width: 100%; text-align: left; background: none; border: none; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.top-menu button:hover { background: var(--cream-soft); }
.top-menu [data-act=logout] { color: var(--danger); }

/* ---------- obsah ---------- */
.section-title { font-size: 30px; line-height: 1.15; }
.friends-intro { color: var(--ink-muted); }
.muted { color: var(--ink-muted); }

/* karty a panely */
.card, .day-card, .tr-day-card, .notif-list, .chat-thread {
  background: var(--surface); border: 1px solid #EEE6D5; border-radius: 18px; box-shadow: var(--shadow);
}
.card-title { font-size: 20px; }

/* tlačidlá */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .005em; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--olive); border-color: var(--olive); color: #fff; box-shadow: 0 2px 8px rgba(62, 95, 58, .22); }
.btn-primary:hover { background: var(--olive-dark); border-color: var(--olive-dark); }
.btn-ghost { background: var(--surface); border: 1px solid #DCD2BD; color: var(--olive-dark); }
.btn-ghost:hover { border-color: var(--olive); background: #F4F7F0; }
.btn-big { border-radius: 12px; padding: 13px 26px; }
.icon-btn { border-radius: 10px; }

/* formuláre */
.content input[type="text"], .content input[type="number"], .content input[type="date"], .content input[type="search"],
.content input[type="password"], .content select, .content textarea {
  border-color: #E2D9C6; border-radius: 10px; background-color: #FFFEFB;
}
.content input[type="text"]:focus, .content input[type="number"]:focus, .content input[type="date"]:focus, .content input[type="search"]:focus,
.content select:focus, .content textarea:focus {
  outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(62, 95, 58, .12);
}
.content .search-input:focus { box-shadow: 0 0 0 4px rgba(62, 95, 58, .12), var(--shadow); }

/* čipy a štítky */
.filter-chip { background: var(--cream-soft); border: 1px solid #EEDFC6; color: #6B4F2A; border-radius: 999px; font-weight: 500; }
.filter-chip:hover { border-color: #DDBF91; background: var(--cream); }
.filter-chip.active { background: var(--olive); border-color: var(--olive); color: #fff; box-shadow: 0 2px 8px rgba(62, 95, 58, .2); }
.filter-chip .count { opacity: .7; }
.chip, .tag { border-radius: 999px; }
.star-badge { background: #FFF4E2; color: #A1641A; }
.help { background: var(--cream); color: #8A6A3C; }
.help:hover, .help:focus { background: var(--olive); color: #fff; }

/* nadpisy skupín (Raňajky, Desiaty...) */
.group-title { font-size: 22px; border-bottom: none; padding-bottom: 0; display: flex; align-items: baseline; gap: 10px; }
.group-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); align-self: center; }
.group-title .count { background: var(--cream); color: #8A6A3C; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 1px 9px; }

/* ---------- kartičky receptov ---------- */
.recipe-list { gap: 24px; }
.recipe-card { position: relative; border: 1px solid #EEE6D5; border-radius: 18px; box-shadow: var(--shadow); background: var(--surface); }
.recipe-card:hover, .recipe-card:focus-visible { box-shadow: var(--shadow-lift); }  /* kartička ani obrázok sa nehýbu */
.card-image { aspect-ratio: 4 / 3; }
.card-placeholder { background: linear-gradient(135deg, #F6EEDF, #EDE2CC); }
.card-body { padding: 14px 16px 16px; gap: 6px; }
.card-body .r-name { font-size: 17.5px; line-height: 1.28; color: var(--ink); }
.recipe-card:hover .r-name { color: var(--olive); }
/* hviezdičky ako štítok na fotke */
.recipe-card .star-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(255, 253, 249, .94); color: #A1641A; padding: 3px 10px; font-size: 12.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14); backdrop-filter: blur(4px);
}
.verified-check { background: var(--olive); border: 2px solid #fff; width: 24px; height: 24px; top: 12px; right: 12px; }
.shared-badge { background: var(--cream); color: #8A6A3C; }

/* ---------- detail receptu ---------- */
.recipe-detail, .wizard, .not-found-prompt { max-width: 1240px; }
.back-link { max-width: 1240px; color: var(--olive); font-weight: 500; }
.recipe-detail {
  background: var(--surface); border: 1px solid #EEE6D5; border-radius: 22px; box-shadow: var(--shadow);
  padding: 26px; margin-top: 10px;
}
.recipe-detail:has(> .recipe-hero) {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; align-content: start;
}
.recipe-detail:has(> .recipe-hero) > * { grid-column: 2; }
.recipe-detail:has(> .recipe-hero) > .recipe-hero { grid-column: 1; grid-row: 1 / span 9; align-self: start; }
.recipe-detail:has(> .recipe-hero) > .ing-list { grid-column: 1; grid-row: 10; }
.recipe-detail:has(> .recipe-hero) > .instructions-box { grid-column: 2; grid-row: 10; }
.recipe-hero { width: 100%; aspect-ratio: 4 / 3.4; height: auto; max-height: none; border-radius: 16px; object-fit: cover; margin: 0; box-shadow: 0 8px 22px rgba(74, 58, 30, .14); }
.detail-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }
.detail-title-row .detail-actions { margin: 0; flex-wrap: wrap; }
.detail-title-row h3 { font-size: 32px; line-height: 1.15; }
.recipe-detail .r-cat {
  display: inline-block; justify-self: start; width: fit-content; background: var(--cream); color: #7A5A2C;
  border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 500; margin: 6px 6px 0 0; text-transform: capitalize;
}
.owner-note { font-size: 14px; }
.macro-summary { gap: 10px; margin-top: 16px; }
.macro-card { background: var(--cream-soft); border: 1px solid #F0E3CB; border-radius: 14px; padding: 12px 8px; }
.macro-card .val { font-family: 'Fraunces', serif; font-size: 22px; color: var(--olive-dark); }
.macro-card .lbl { color: #8A7A5C; }
.portion-note { font-size: 13.5px; }
.recipe-detail .ing-list, .recipe-detail .instructions-box { margin-top: 24px; }
.recipe-detail .ing-list::before, .recipe-detail .instructions-box::before {
  display: block; font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; color: var(--olive-dark); margin-bottom: 8px;
}
.recipe-detail .ing-list::before { content: 'Ingrediencie'; }
.recipe-detail .instructions-box::before { content: 'Postup'; white-space: normal; }
.ing-list li { border-bottom: 1px dashed #E6DCC6; padding: 9px 2px; }
.ing-list li span:last-child { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.instructions-box { background: #FBF7EF; border: 1px solid #F0E6D2; border-radius: 16px; padding: 18px 20px; line-height: 1.7; }

/* ---------- nástenka ---------- */
.feed { max-width: none; min-width: 0; }
.feed-composer, .feed-post { border-radius: 18px; padding: 18px 20px; }
.composer-row textarea { border-radius: 14px; background: #FFFEFB; }
.composer-row .user-avatar, .feed-head .user-avatar, .feed-comment .user-avatar, .chat-conv .user-avatar, .chat-head .user-avatar { background: var(--olive); color: #fff; }
.feed-author { font-weight: 600; }
.feed-recipe { border-radius: 14px; border-color: #EEE4D0; background: #FFFEFB; }
.feed-recipe:hover { border-color: var(--olive); box-shadow: var(--shadow); }
.feed-recipe > img, .feed-recipe-ph { width: 150px; }
.feed-recipe-name { font-size: 18px; color: var(--ink); }
.feed-photo { border-radius: 14px; }
.feed-award { background: linear-gradient(135deg, #FBF1DE, #FFFDF8); border-color: #EFD9AE; border-radius: 14px; }
.feed-actions { border-top-color: #F0E8D8; }
.feed-actions button { border-radius: 999px; }
.feed-actions button:hover { background: var(--cream-soft); }
.feed-comment-body { background: #F7F1E5; border-radius: 14px; }

/* ---------- profil ---------- */
.profile { max-width: 820px; }
.profile-head {
  background: var(--surface); border: 1px solid #EEE6D5; border-radius: 22px; box-shadow: var(--shadow);
  padding: 22px 24px; margin: 0 0 18px; position: relative; overflow: hidden;
}
.profile-head::after {
  content: ''; position: absolute; right: 10px; top: -10px; width: 90px; height: 150px;
  background: var(--leaf) no-repeat center / contain; opacity: .14; transform: rotate(18deg); pointer-events: none;
}
.profile-head:has(+ .photo-actions) { padding-bottom: 66px; }
.profile-head + .photo-actions { position: relative; z-index: 2; margin: -62px 0 32px 148px; }
.user-avatar.big { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px #E8DCC4; }
.stat { background: var(--cream-soft); border: 1px solid #F0E3CB; border-radius: 16px; }
.stat .val { font-size: 30px; }
.stat-stars { background: #FFF1DA; border-color: #F2D9AB; }

/* ---------- plánovač a tréningy ---------- */
table.schedule thead th { color: var(--ink-muted); font-weight: 600; }
.tr-day-card { border-radius: 18px; }
.tr-day-card.is-today { border: 2px solid var(--olive); box-shadow: 0 6px 20px rgba(62, 95, 58, .16); }
.tr-day-card.is-rest { background: #F8F3E9; }
.wk-today-badge { background: var(--olive); color: #fff; border-color: var(--olive); }
.day-head { border-bottom-color: #F0E8D8; }

/* ---------- správy ---------- */
.chat-conv.active { background: var(--surface); box-shadow: var(--shadow); }
.chat-conv:hover { background: var(--cream-soft); }
.chat-thread { border-radius: 22px; }
.chat-bubble { background: #F3ECDD; }

/* ---------- Domov ---------- */
.home, .with-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.home-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.home-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; position: sticky; top: 92px; }

.home-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 34%;
  min-height: 300px; border-radius: 22px; border: 1px solid #EADFC9; box-shadow: var(--shadow);
  background: linear-gradient(100deg, #F7EEDD 0%, #F3E6CF 55%, #EBDABD 100%);
}
.home-hero::before {
  content: ''; position: absolute; left: -34px; bottom: -64px; width: 100px; height: 170px;
  background: var(--leaf) no-repeat center / contain; opacity: .35; transform: rotate(-24deg); pointer-events: none;
}
.hero-text { position: relative; z-index: 2; padding: 34px 10px 30px 56px; display: flex; flex-direction: column; align-items: flex-start; }
.home-hero h1 { font-size: 40px; line-height: 1.1; margin: 0; color: var(--olive-dark); }
.home-hero h1 em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; }
.hero-sub { margin: 10px 0 22px; color: #5F5A48; font-size: 16px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stat { display: flex; align-items: center; gap: 10px; background: rgba(255, 253, 249, .92); border: 1px solid #EFE4CF; border-radius: 14px; padding: 11px 14px 11px 12px; box-shadow: 0 2px 8px rgba(74, 58, 30, .06); }
.hero-stat .hs-ic { width: 24px; height: 24px; color: var(--olive); flex-shrink: 0; }
.hero-stat b { display: block; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.hero-stat span { display: block; font-size: 12px; color: var(--ink-muted); }
.hero-note { margin: 14px 0 18px; font-size: 13px; color: #6F6A55; }
.hero-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; }
.hero-btn svg { width: 17px; height: 17px; }
.hero-photo { position: relative; background-size: cover; background-position: center; }
.hero-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #F4E8D2 0%, rgba(244, 232, 210, .55) 22%, rgba(244, 232, 210, 0) 48%); }
.home-hero:not(.has-photo) { grid-template-columns: 1fr; }

/* karty v pravom stĺpci */
.side-card { background: var(--surface); border: 1px solid #EEE6D5; border-radius: 20px; box-shadow: var(--shadow); padding: 20px 22px; position: relative; overflow: hidden; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.side-head h3 { font-size: 20px; margin: 0; }
.side-link { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; font: inherit; font-size: 13px; color: #5F5A48; cursor: pointer; padding: 4px 2px; white-space: nowrap; }
.side-link:hover { color: var(--olive); }
.side-link svg { width: 15px; height: 15px; }
.pc-ident { display: flex; align-items: center; gap: 16px; }
.user-avatar.pc { width: 76px; height: 76px; font-size: 30px; background: var(--olive); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px #E6DAC2; }
.pc-text { display: flex; flex-direction: column; min-width: 0; }
.pc-text strong { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pc-bio { font-size: 13.5px; color: #4E4A3C; margin-top: 2px; }
.pc-since { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.pc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 16px; }
.pc-stats > div { border: 1px solid #EEE4D0; border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; background: #FFFEFB; }
.pc-stats b { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pc-stats span { font-size: 12px; color: var(--ink-muted); }
.pc-badges { position: relative; }
.pc-badges svg { position: absolute; right: 10px; top: 11px; width: 18px; height: 18px; color: #E3A33B; fill: #F2C062; }
.pc-level-row { font-size: 14px; color: var(--ink); margin-bottom: 8px; }
.pc-bar, .ch-bar { height: 7px; border-radius: 999px; background: #EEE7D7; overflow: hidden; }
.pc-bar i, .ch-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4E7A47, var(--olive)); }
.pc-level-note { display: block; text-align: right; font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

.challenges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.challenges li { display: flex; align-items: center; gap: 12px; border: 1px solid #EEE4D0; border-radius: 16px; padding: 10px 14px 10px 10px; background: #FFFEFB; }
.ch-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #F3EEE0; }
.ch-main { flex: 1; min-width: 0; }
.ch-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ch-name { font-size: 14px; color: var(--ink); }
.ch-count { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.ch-bar { margin: 7px 0 4px; height: 5px; }
.ch-goal { font-size: 11.5px; color: var(--ink-muted); }

.quote-card { min-height: 230px; padding: 26px 24px; background: #FBF6EC; }
.quote-card .quote { position: relative; z-index: 2; font-family: var(--hand); font-size: 32px; line-height: 1.1; color: #3A3A32; margin: 0 0 0 52px; transform: rotate(-3deg); }
.quote-card::before { content: ''; position: absolute; left: 14px; top: 16px; width: 44px; height: 76px; background: var(--leaf) no-repeat center / contain; opacity: .55; z-index: 2; }
.quote-heart { position: relative; z-index: 2; display: block; margin: 8px 0 0 120px; color: var(--olive); font-size: 18px; }
.quote-card.has-photo { min-height: 330px; }
.quote-photo {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64%; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%); mask-image: linear-gradient(180deg, transparent 0%, #000 45%);
}

/* Moje recepty */
.my-recipes { padding: 22px 24px 24px; }
.mr-head { flex-wrap: wrap; }
.mr-head h2 { font-size: 26px; margin: 0; }
.mr-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; margin-left: 18px; }
.mr-tab { border: 1px solid #EADFC9; background: var(--cream-soft); color: #5F4B2E; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 500; padding: 5px 14px; cursor: pointer; }
.mr-tab span { opacity: .6; font-size: 12px; margin-left: 2px; }
.mr-tab:hover { border-color: #D9C29A; }
.mr-tab.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.mr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 6px 22px; }
.mr-row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.mr-row:hover, .mr-row:focus-visible { background: #FBF5EA; border-color: #EEE2CB; outline: none; }
.mr-thumb { width: 74px; height: 62px; border-radius: 12px; object-fit: cover; flex-shrink: 0; box-shadow: 0 2px 6px rgba(74, 58, 30, .14); background: #EFE7D6; }
.mr-ph { display: grid; place-items: center; color: #CDBF9F; }
.mr-ph svg { width: 34px; height: 34px; }
.mr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mr-name { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mr-row:hover .mr-name { color: var(--olive-dark); }
.mr-macros { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }
.mr-macros b { font-weight: 600; color: #4E4A3C; }
.mr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.mr-cat { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #A08A62; }
.mr-stars { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: #A1641A; font-weight: 600; }
.mr-stars svg { width: 14px; height: 14px; fill: #F2C062; color: #D9952C; }

/* ---------- ostatné stránky na celú šírku ---------- */
.with-side .feed { max-width: 860px; width: 100%; margin: 0 auto; }
.friends { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.friends > :not(.card) { grid-column: 1 / -1; }
.friends > #household-card { grid-column: 1 / -1; }
.profile { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
.profile > .profile-head, .profile > .photo-actions { grid-column: 1 / -1; }
.profile > .awards { grid-column: 2; }
.profile:has(#profile-form) > .awards { grid-row: span 2; }
.profile > h3, .profile > p, .profile > .recipe-list, .profile > .empty-note { grid-column: 1 / -1; }
.notifs { max-width: 980px; }
.verify { max-width: 1200px; }
.accounts { max-width: 1100px; }
.acc-stats { display: flex; gap: 12px; margin: 0 0 18px; }
.acc-stats div { background: var(--surface); border: 1px solid #EEE6D5; border-radius: 14px; padding: 10px 18px; box-shadow: var(--shadow); }
.acc-stats b { display: block; font-family: 'Fraunces', serif; font-size: 24px; color: var(--olive-dark); line-height: 1.1; }
.acc-stats span { font-size: 12.5px; color: var(--ink-muted); }
.acc-list { padding: 6px 18px; }
.acc-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #F0E8D8; }
.acc-row:last-child { border-bottom: none; }
.acc-row .user-avatar { width: 40px; height: 40px; }
.acc-main { display: flex; flex-direction: column; min-width: 0; }
.acc-main .muted { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-dates { display: flex; flex-direction: column; align-items: flex-end; font-size: 12.5px; text-align: right; }
.acc-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.acc-del { color: var(--danger); justify-self: end; }
.acc-del:hover { border-color: var(--danger); background: #FBEDE8; }
@media (max-width: 700px) {
  .acc-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .acc-dates { grid-column: 2 / -1; grid-row: 2; align-items: flex-start; text-align: left; }
  .acc-del-ph { display: none; }
}
.ing-view { max-width: none; }
.chat { height: calc(100vh - 120px); grid-template-columns: 320px minmax(0, 1fr); }
@media (max-width: 1280px) {
  .home, .with-side { grid-template-columns: minmax(0, 1fr); }
  .home-side { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
}
@media (max-width: 1100px) {
  .profile, .friends { grid-template-columns: minmax(0, 1fr); }
  .profile > .awards, .profile:has(#profile-form) > .awards { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- mobil a tablet ---------- */
.nav-toggle, .top-brand, .bottom-nav, .nav-backdrop { display: none; }
@media (max-width: 1100px) and (min-width: 861px) {
  .app { grid-template-columns: 228px minmax(0, 1fr); }
  .content.shell { padding: 0 22px 50px; }
  .topbar { margin: 0 -22px 20px; padding: 12px 22px; }
  .brand-tag { white-space: normal; }
  .hero-text { padding: 28px 10px 26px 32px; }
  .home-hero h1 { font-size: 34px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, max-content); }
  .person-row { flex-wrap: wrap; }
  .person-row .p-name { flex: 1 1 100%; }
}
@media (max-width: 860px) {
  html, body { overflow-x: clip; max-width: 100%; }
  .app { display: block; }
  /* ľavý panel = vysúvacie menu */
  .sidebar.shell-header {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: 290px; max-width: 86vw; height: 100%; height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px 14px 18px; overflow-y: auto;
    transform: translateX(-104%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .18);
  }
  body.nav-open .sidebar.shell-header { transform: none; }
  body.nav-open { overflow: hidden; }
  .sidebar .brand { display: flex; }
  .sidebar .wordmark, .nav-label, .sidebar-foot { display: block; }
  .sidebar .brand-text .wordmark { display: block; }
  .sidebar .tabs { flex-direction: column; overflow: visible; flex: none; }
  .sidebar .tab { flex-direction: row; gap: 12px; font-size: 15px; padding: 10px 12px; width: 100%; }
  .sidebar .tab .tab-badge { position: static; margin-left: auto; }
  .user-chip { margin: auto 0 0; padding: 18px 6px 6px; gap: 10px; }
  .user-name { display: block; }
  .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(36, 32, 22, .38); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  /* horný panel: menu, logo, ikonky; vyhľadávanie pod tým */
  .content.shell { padding: 0 14px 96px; }
  .topbar { position: relative; flex-wrap: wrap; gap: 10px 4px; margin: 0 -14px 16px; padding: 10px 12px 12px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: none; background: none; border-radius: 12px; color: var(--olive-dark); cursor: pointer; flex-shrink: 0; }
  .nav-toggle svg { width: 24px; height: 24px; }
  .top-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .top-brand .brand-mark { width: 34px; height: 34px; box-shadow: none; }
  .top-brand .brand-mark svg { width: 21px; height: 21px; }
  .top-brand .wordmark { font-size: 20px; white-space: nowrap; }
  .topbar-actions { gap: 2px; flex-shrink: 0; }
  .top-btn { width: 40px; height: 40px; }
  .top-user { margin-left: 2px; }
  .top-user-btn .user-avatar { width: 34px; height: 34px; font-size: 15px; }
  .top-caret { display: none; }
  .topbar .search-zone { order: 5; flex: 1 1 100%; max-width: none; }
  .topbar .search-input { font-size: 16px; }

  /* spodná lišta */
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(255, 253, 249, .97); border-top: 1px solid #E9E0CD; box-shadow: 0 -4px 18px rgba(74, 58, 30, .08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bn-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; border: none; background: none; font: inherit; font-size: 11px; font-weight: 500; color: #6A6552; padding: 5px 0; border-radius: 12px; cursor: pointer; min-width: 0; }
  .bn-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bn-btn svg { width: 23px; height: 23px; }
  .bn-btn.active { color: var(--olive-dark); font-weight: 600; }
  .bn-btn.active svg { background: #E6DFCC; border-radius: 10px; padding: 3px 12px; box-sizing: content-box; margin: -3px 0; }
  .bn-btn.nav-toggle { width: auto; height: auto; color: #6A6552; }

  /* Domov */
  .home, .with-side { gap: 18px; }
  .home-main { gap: 18px; }
  .home-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 20px; }
  .hero-photo { order: -1; height: 150px; }
  .hero-photo::before { background: linear-gradient(0deg, #F6ECD9 0%, rgba(246, 236, 217, 0) 55%); }
  .hero-text { padding: 18px 18px 22px; }
  .home-hero h1 { font-size: 28px; }
  .hero-sub { margin: 6px 0 16px; font-size: 15px; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .hero-stat { padding: 9px 10px; gap: 8px; min-width: 0; }
  .hero-stat b { font-size: 15.5px; }
  .hero-btn { width: 100%; justify-content: center; }
  .home-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .my-recipes { padding: 16px 14px 14px; }
  .mr-head { gap: 10px; }
  .mr-head h2 { font-size: 23px; }
  .mr-tabs { order: 3; flex: 1 1 100%; margin: 0 -14px; padding: 0 14px 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .mr-tab { flex-shrink: 0; }
  .mr-head .side-link { margin-left: auto; }
  .mr-list { grid-template-columns: minmax(0, 1fr); }
  .mr-row { padding: 8px 4px; gap: 12px; }
  .mr-thumb { width: 64px; height: 56px; }

  /* ostatné */
  .section-title { font-size: 25px; }
  .recipe-detail { padding: 16px; border-radius: 18px; }
  .recipe-detail:has(> .recipe-hero) { display: block; }
  .recipe-hero, .recipe-detail:has(> .recipe-hero) > .recipe-hero { position: static; top: auto; aspect-ratio: 4 / 3; }  /* obrázok ostane hore, nescrolluje sa s textom */
  .detail-title-row h3 { font-size: 26px; }
  .macro-summary { gap: 6px; }
  .macro-card { padding: 10px 4px; }
  .macro-card .val { font-size: 17px; white-space: nowrap; }
  .profile-head { padding: 16px; }
  .profile-head + .photo-actions { margin-left: 16px; }
  .person-row { flex-wrap: wrap; }
  .person-row .p-name { flex: 1 1 100%; }
  .planner select { max-width: 100%; }
  .ps-grid { grid-template-columns: minmax(0, 1fr); }
  table.schedule { width: 100%; }
  table.schedule th, table.schedule td { padding: 6px 3px; }
  table.schedule tbody th { padding-right: 6px; }
  .chat { height: calc(100vh - 250px); height: calc(100dvh - 250px); min-height: 360px; }
  .search-results { max-width: calc(100vw - 28px); }
}
@media (max-width: 860px) and (min-width: 601px) {
  .hero-photo { height: 190px; }
  .hero-text { padding: 22px 26px 26px; }
  .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-btn { width: auto; }
  .mr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .recipe-list { gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .recipe-card .star-badge { top: 8px; left: 8px; }
}
@media (max-width: 380px) {
  .top-brand .wordmark { display: none; }
}

/* ---------- prihlasovacia stránka ---------- */
.login-page { padding: 32px 20px; }
.login-wrap { width: 100%; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 420px); gap: 56px; align-items: center; }
.login-intro { position: relative; }
.login-logo { display: flex; align-items: center; gap: 16px; }
.login-logo .brand-mark { width: 64px; height: 64px; background: var(--olive); color: #FFF7E6; box-shadow: none; }
.login-logo .brand-mark svg { width: 38px; height: 38px; }
.login-logo .wordmark { font-size: 46px; line-height: 1; }
.login-tagline { font-family: 'Fraunces', serif; font-size: 21px; color: var(--ink); margin: 10px 0 30px 2px; }
.login-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.login-points li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.login-points .pt-ic { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); color: #8A5F25; display: grid; place-items: center; }
.login-points .pt-ic svg { width: 23px; height: 23px; }
.login-points b { display: block; font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--olive-dark); }
.login-points span { font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.login-quote { font-family: var(--hand); font-size: 34px; line-height: 1.05; color: var(--olive-dark); margin-top: 34px; transform: rotate(-4deg); transform-origin: left; display: flex; align-items: flex-end; gap: 10px; }
.login-quote::after { content: ''; width: 70px; height: 110px; background: var(--leaf) no-repeat center / contain; opacity: .55; transform: rotate(14deg); }
.login-card { max-width: 420px; border-radius: 24px; padding: 32px 30px; border-color: #EEE6D5; box-shadow: 0 2px 4px rgba(74, 58, 30, .05), 0 22px 50px rgba(74, 58, 30, .12); }
.login-card .login-brand { display: none; }
.login-card-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 26px; color: var(--olive-dark); margin: 0 0 4px; }
.login-card-sub { color: var(--ink-muted); font-size: 14px; margin: 0 0 20px; }
.login-switch { background: #F3ECDD; border-radius: 12px; }
.login-switch button { border-radius: 9px; }
#login-form input { border-color: #E2D9C6; background: #FFFEFB; padding: 11px 14px; }
#login-form input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(62, 95, 58, .12); }
.login-submit { padding: 12px; font-size: 15px; border-radius: 12px; }
@media (max-width: 860px) {
  .login-wrap { grid-template-columns: 1fr; gap: 26px; justify-items: center; }
  .login-intro { text-align: center; }
  .login-logo { justify-content: center; }
  .login-logo .brand-mark { width: 50px; height: 50px; }
  .login-logo .wordmark { font-size: 36px; }
  .login-tagline { margin: 8px 0 0; font-size: 18px; }
  .login-points, .login-quote { display: none; }
}

/* ---------- odváženie hotového jedla (presné porcie) ---------- */
.weigh-box { margin: 14px 0 6px; padding: 14px 16px; border: 1px solid #EEE6D5; border-radius: 14px; background: #FFFCF5; font-size: 14.5px; }
.weigh-box p { margin: 0; }
.weigh-box.is-weighed { border-color: #D3E3CC; background: #F5F9F1; }
.weigh-badge { display: inline-block; color: var(--olive-dark); font-weight: 600; font-size: 12.5px; background: #E3EEDD; border-radius: 999px; padding: 1px 9px; white-space: nowrap; }
.weigh-toggle-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.weigh-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; align-items: end; margin-top: 12px; }
.weigh-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--ink); }
.weigh-input { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.weigh-form input, .weigh-form select { width: 100%; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; }
.weigh-form input:focus, .weigh-form select:focus { outline: none; border-color: var(--olive); }
.weigh-result { grid-column: 1 / -1; margin: 0; font-size: 13.5px; }
.weigh-result b { color: var(--olive-dark); }
.weigh-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
.cs-split { margin-top: 6px; }
.cs-split summary { cursor: pointer; font-size: 13px; color: var(--olive-dark); }
.split-note { font-size: 13px; color: var(--ink-muted); margin: 8px 0 4px; }
.split-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0; }
.split-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-muted); padding: 4px 10px 4px 0; }
.split-table td { padding: 6px 10px 6px 0; border-top: 1px solid #F0E8D8; }
.split-table th:not(:first-child), .split-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.split-table b { color: var(--olive-dark); }
.split-weigh { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: 12px; background: #FFFCF5; }
.split-weigh-title { margin: 0; font-weight: 600; font-size: 14px; }

/* ---------- Jedálny lístok: tvorba jedálnička po krokoch ---------- */
.menu-wizard { max-width: 760px; margin: 0 auto; }
.menu-hero { text-align: center; padding: 40px 28px 34px; }
.menu-hero p { color: var(--ink-muted); max-width: 460px; margin: 8px auto 24px; line-height: 1.55; }
.menu-hero .link-btn { display: block; margin: 16px auto 0; }
.menu-hero-art { font-size: 56px; line-height: 1; margin-bottom: 10px; }
.menu-hero-art span { font-size: 36px; margin-left: -6px; vertical-align: 6px; }
.menu-hero-art span:last-child { vertical-align: -2px; }

.wiz-progress { display: flex; align-items: center; gap: 6px; margin: 0 0 14px 2px; }
.wiz-dot { width: 28px; height: 6px; border-radius: 999px; border: none; padding: 0; background: var(--border); cursor: pointer; transition: background .2s, width .2s; }
.wiz-dot.done { background: var(--yolk); }
.wiz-dot.current { background: var(--olive); width: 42px; }
.wiz-dot:disabled { cursor: default; }
.wiz-count { margin-left: 8px; font-size: 12.5px; color: var(--ink-muted); }
.wiz-card { padding: 28px 28px 22px; }
.wiz-card.from-right { animation: wiz-in-right .28s ease; }
.wiz-card.from-left { animation: wiz-in-left .28s ease; }
@keyframes wiz-in-right { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes wiz-in-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.wiz-title { font-size: 27px; margin: 0 0 18px; color: var(--olive-dark); }
.wiz-q { font-weight: 600; font-size: 14px; margin: 20px 0 8px; }
.wiz-q:first-child { margin-top: 0; }
.wiz-help { color: var(--ink-muted); font-size: 13.5px; margin: 6px 0 14px; }
.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid #F0E8D8; }
.wiz-date { font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }

.wiz-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wiz-chip { font: inherit; font-size: 14.5px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.wiz-chip:hover { border-color: var(--olive); }
.wiz-chip.on { background: var(--olive); border-color: var(--olive); color: #fff; }
.wiz-chip-input input { width: 54px; font: inherit; padding: 2px 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); }

.wiz-choices { display: grid; gap: 10px; }
.wiz-choices.two { grid-template-columns: 1fr 1fr; }
.wiz-choice { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: var(--ink); padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.wiz-choice:hover { border-color: var(--olive); }
.wiz-choice.on { border-color: var(--olive); background: #F2F7EE; box-shadow: 0 0 0 3px rgba(62, 95, 58, .12); }
.wc-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.wc-text { display: flex; flex-direction: column; gap: 2px; }
.wc-text b { font-size: 15.5px; }
.wc-text span { font-size: 13.5px; color: var(--ink-muted); }
.wiz-choices.big .wiz-choice { flex-direction: column; text-align: center; padding: 26px 16px; }
.wiz-choices.big .wc-icon { font-size: 44px; }
.wiz-choices.big .wc-text { align-items: center; }

.wiz-meals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wiz-meal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; color: var(--ink); padding: 18px 8px 14px; border: 1.5px solid var(--border); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.wiz-meal:hover { border-color: var(--olive); }
.wm-icon { font-size: 36px; line-height: 1.1; filter: grayscale(.85); opacity: .55; transition: filter .15s, opacity .15s; }
.wiz-meal b { font-size: 14.5px; }
.wm-note { font-size: 12px; color: var(--ink-muted); }
.wm-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--olive); color: #fff; font-size: 12px; line-height: 20px; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.wiz-meal.on { border-color: var(--olive); background: #F2F7EE; }
.wiz-meal.on .wm-icon { filter: none; opacity: 1; }
.wiz-meal.on .wm-check { opacity: 1; transform: none; }
.wiz-meal.some { border-style: dashed; }
.wiz-more { margin-top: 18px; }
.wiz-more summary { cursor: pointer; font-size: 13.5px; color: var(--olive-dark); }
.wiz-more .table-scroll { margin-top: 10px; }

.wiz-people { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.wiz-person { display: grid; grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 10px; align-items: end; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; background: #fff; }
.wiz-person label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-muted); }
.wiz-person input { width: 100%; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink); }
.wp-unit { display: flex; align-items: center; gap: 6px; }
.wp-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: #8A6A3C; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; align-self: center; }
.wiz-person .btn-icon { align-self: center; }

.wiz-summary { list-style: none; margin: 0; padding: 0; }
.wiz-summary li { display: grid; grid-template-columns: 30px 110px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #F0E8D8; }
.sum-icon { font-size: 19px; }
.sum-label { font-weight: 600; font-size: 14px; }
.sum-val { font-size: 14.5px; }

.planner-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.planner-head .section-title { margin: 0; }
/* aktívny jedálniček */
.active-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--yolk) 28%, transparent); color: var(--yolk-dark); font-size: 13px; font-weight: 600; white-space: nowrap; }
.saved-list li.is-active { background: color-mix(in srgb, var(--olive) 7%, transparent); border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.saved-list li .btn-small { white-space: nowrap; }
.menu-active-name { margin: 2px 0 0; font-size: 14px; }
.menu-hero h3 { margin: 4px 0 0; font-size: 22px; }
/* Jedálny lístok len ukazuje aktívny jedálniček: jedlá sa vymieňajú v Plánovači */
body[data-view="menu"] .dish-actions [data-reroll],
body[data-view="menu"] .dish-actions [data-lock],
body[data-view="menu"] .side-reroll { display: none; }
.plan-empty, .plan-loading { text-align: center; padding: 36px 24px; }
.plan-empty h3 { margin: 8px 0 4px; }
.plan-empty .btn { margin-top: 14px; }
.plan-empty-icon, .plan-loading-icon { font-size: 44px; display: block; }
.plan-loading b { display: block; margin-top: 8px; color: var(--olive-dark); }
.plan-loading-icon { animation: wiz-bob 1s ease-in-out infinite; }
@keyframes wiz-bob { 50% { transform: translateY(-6px) rotate(-8deg); } }

@media (max-width: 700px) {
  .wiz-card { padding: 22px 16px 18px; }
  .wiz-title { font-size: 23px; }
  .wiz-meals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wiz-choices.two { grid-template-columns: 1fr; }
  .wiz-choices.big { grid-template-columns: 1fr 1fr; }
  .wiz-person { grid-template-columns: 36px minmax(0, 1fr) 28px; }
  .wiz-person .wp-avatar { width: 36px; height: 36px; grid-row: span 1; }
  .wiz-person label:not(.wp-name) { grid-column: 2 / 3; }
  .wiz-person .btn-icon { grid-column: 3; grid-row: 1; }
  .wiz-summary li { grid-template-columns: 26px minmax(0, 1fr) auto; row-gap: 2px; }
  .wiz-summary .sum-icon { grid-row: 1 / span 2; }
  .wiz-summary .sum-label { grid-column: 2; grid-row: 1; }
  .wiz-summary .link-btn { grid-column: 3; grid-row: 1; }
  .wiz-summary .sum-val { grid-column: 2 / -1; grid-row: 2; }
  .wiz-dot { width: 18px; }
  .wiz-dot.current { width: 30px; }
}

/* uložené jedálničky na mobile: názov hore, dátum a akcie pod ním */
@media (max-width: 600px) {
  .saved-list li { flex-wrap: wrap; row-gap: 6px; }
  .saved-list li > .link-btn { flex: 1 0 100%; text-align: left; }
  .saved-list li .muted { margin-left: 0; margin-right: auto; white-space: nowrap; }
}

/* ---------- Jedálny lístok: pekný prehľad týždňa ---------- */
.menu-board { max-width: 1200px; }
.mb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mb-head .section-title { margin: 0; }
.mb-range { margin: 2px 0 0; color: var(--ink-muted); font-size: 14px; }
.mb-actions { display: flex; gap: 8px; }
.menu-board #shopping-slot:not(:empty) { margin-bottom: 18px; }
.mb-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.mb-day { background: var(--surface); border: 1px solid #E7E1CF; border-radius: 18px; padding: 16px 14px 10px; box-shadow: var(--shadow); }
.mb-day.is-today { border: 2px solid var(--olive); }
.mb-day.is-past { opacity: .62; }
.mb-day-head { display: flex; align-items: baseline; gap: 8px; padding: 0 4px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.mb-wd { font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; color: var(--olive-dark); }
.mb-date { color: var(--ink-muted); font-size: 13px; }
.mb-today { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--olive); color: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.mb-meal { padding: 8px 0 4px; }
.mb-meal + .mb-meal { border-top: 1px dashed var(--border); }
.mb-meal-label { display: block; padding: 0 4px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--yolk-dark); }
.mb-dish { display: flex; align-items: center; gap: 11px; width: 100%; padding: 5px 4px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.mb-dish:hover { background: color-mix(in srgb, var(--olive) 6%, transparent); }
.mb-img { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: #F3EEE0; color: #B9AE8F; display: grid; place-items: center; }
.mb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-img svg { width: 26px; height: 26px; }
.mb-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.mb-name small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.mb-free { margin: 14px 4px; color: var(--ink-muted); font-style: italic; }
@media (max-width: 600px) {
  .mb-days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; }
  .mb-days::-webkit-scrollbar { display: none; }
  .mb-day { flex: 0 0 84%; scroll-snap-align: center; }
  .mb-day.is-past { opacity: .75; }
}

/* logo HomeRoots = odkaz na Domov */
.brand[data-go], .top-brand[data-go] { cursor: pointer; }
.top-user-btn.active .user-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--olive); }
/* fotka a meno v karte Tvoj profil -> Môj profil */
.pc-open { border: none; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 999px; }
.pc-open.pc-name { border-radius: 6px; }
.pc-open.pc-name:hover strong { text-decoration: underline; }
.pc-open:hover .user-avatar { box-shadow: 0 0 0 3px var(--olive); }
/* cudzí recept: výrazná výzva „Uložiť do mojich receptov“ pod postupom */
.save-recipe-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #EEF3E6; border: 2px solid var(--olive); }
.save-recipe-box > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.save-recipe-box b { font-size: 17px; color: var(--olive-dark, var(--olive)); }
.save-recipe-box span { color: #55574A; font-size: 14px; }
.save-recipe-box.saved { background: #F6F2E8; border: 1px solid #E2D7C0; }
.save-recipe-box.saved b { color: #3A3A32; }
@media (max-width: 600px) { .save-recipe-box .btn { width: 100%; } }
/* profil priateľa: vlastné / uložené recepty podľa kategórií, filter „Čo ešte nemám“ */
.fr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fr-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.fr-section { font-size: 19px; margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid #E7E1CF; }
.fr-cat { font-size: 14px; text-transform: capitalize; color: #6B6A5C; margin: 12px 0 8px; font-weight: 600; }
.fr-item > .recipe-card { height: 100%; }
.fr-item[hidden], .fr-group[hidden], .fr-section[hidden] { display: none; }
.fr-item.have .recipe-card { opacity: .72; }
.have-badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #E6EFDC; color: var(--olive); white-space: nowrap; }
.have-badge.mine { background: #F5E6C8; color: #8A5A12; }
/* Request/Bug: stav od admina */
.bug-status { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.bug-status.resolved { background: #DDEBD3; color: #2F5A2B; }
.bug-status.declined { background: #EFE3E1; color: #8A3B2E; }
.feed-post.status-resolved, .feed-post.status-declined { opacity: .8; }
.feed-post.status-resolved .feed-text, .feed-post.status-declined .feed-text { color: #6B6A5C; }
.bug-admin { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 0 2px; padding: 8px 10px; border-radius: 10px; background: #F6F2E8; }
/* moja uložená kópia: autor upravil originál */
.source-update { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: #FFF6E0; border: 1px solid #EBCB86; }
.source-update > div:first-child { display: flex; flex-direction: column; gap: 3px; flex: 1 1 260px; min-width: 0; }
.source-update span { font-size: 14px; color: #55574A; }
.source-update .su-warn { color: #8A3B2E; font-weight: 600; }
.su-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Telo a BMI na mojom profile */
.private-note { font-size: 12px; font-weight: 500; color: #6B6A5C; margin-left: 8px; }
.bmi-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bmi-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #55574A; }
.bmi-form input { width: 130px; }
.bmi-value { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bmi-value b { font-size: 30px; line-height: 1; color: #2E2E28; }
.bmi-band { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.bmi-band.under { background: #E3ECF6; color: #2D5A8A; }
.bmi-band.normal { background: #DDEBD3; color: #2F5A2B; }
.bmi-band.over { background: #FBEBC9; color: #8A5A12; }
.bmi-band.obese { background: #F3DCD7; color: #8A3B2E; }
.bmi-scale { position: relative; height: 10px; border-radius: 999px;
  background: linear-gradient(to right, #9DB9DA 0 14%, #9CC48B 14% 40%, #EBC57A 40% 60%, #E39A8A 60% 100%); }
.bmi-scale i { position: absolute; top: -4px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: #2E2E28; }
.bmi-legend { position: relative; height: 16px; font-size: 11px; color: #6B6A5C; margin: 4px 0 8px; }
.bmi-legend span { position: absolute; transform: translateX(-50%); }
.bmi-legend span:nth-child(1) { left: 0; transform: none; } .bmi-legend span:nth-child(2) { left: 14%; }
.bmi-legend span:nth-child(3) { left: 40%; } .bmi-legend span:nth-child(4) { left: 60%; }
.bmi-legend span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.bmi-form select { min-width: 110px; }
.bmi-form .bmi-activity select { min-width: 250px; }
.kcal-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid #E7E1CF; }
.kcal-box h4 { margin: 0 0 8px; font-size: 16px; }
.kcal-list { list-style: none; margin: 0 0 8px; padding: 0; }
.kcal-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #E7E1CF; }
.kcal-list li span { display: flex; flex-direction: column; }
.kcal-list li small { color: #8A5A12; font-size: 12px; }
.kcal-list li b { white-space: nowrap; font-size: 16px; }
@media (max-width: 600px) { .bmi-form .bmi-activity, .bmi-form .bmi-activity select { width: 100%; } }
/* ===== Karta „Telo a denný cieľ“ (môj profil) ===== */
.health-card { padding: 22px 22px 18px; }
.hb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.hb-head .card-title { margin: 0 0 2px; }
.private-chip { flex-shrink: 0; font-size: 12px; font-weight: 600; color: #55574A; background: #F3EEE2; border: 1px solid #E5DCC8; padding: 4px 10px; border-radius: 999px; }
.hb-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 14px; background: #FAF7F0; border: 1px solid #EEE7D7; }
.hb-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hb-field > span:first-child, .hb-goal-field > span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #7A7867; }
.hb-wide { grid-column: span 4; }
.hb-input { display: flex; align-items: center; background: #fff; border: 1.5px solid #E2D9C6; border-radius: 10px; padding: 0 10px; transition: border-color .15s; }
.hb-input:focus-within, .hb-field select:focus { border-color: var(--olive); }
.hb-input input { border: none !important; outline: none; background: transparent; box-shadow: none !important; width: 100%; min-width: 0; padding: 9px 0; font-size: 16px; font-weight: 600; color: #2E2E28; }
.hb-input em { font-style: normal; font-size: 13px; color: #8A8875; margin-left: 4px; }
.hb-field select { width: 100%; padding: 9px 10px; border: 1.5px solid #E2D9C6; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; }
.hb-seg { display: flex; background: #fff; border: 1.5px solid #E2D9C6; border-radius: 10px; padding: 3px; gap: 3px; }
.hb-seg label { flex: 1; }
.hb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.hb-seg span { display: block; text-align: center; padding: 6px 4px; border-radius: 7px; font-size: 14px; font-weight: 600; color: #6B6A5C; cursor: pointer; }
.hb-seg input:checked + span { background: var(--olive); color: #fff; }
.hb-seg input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 1px; }

.hb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; margin-top: 14px; }
.hb-tile { border: 1px solid #EEE7D7; border-radius: 14px; padding: 14px 16px; background: #fff; }
.hb-tile h4, .hb-goal h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7A7867; }
.hb-bmi-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hb-big { font-size: 40px; font-weight: 800; line-height: 1; color: #2E2E28; letter-spacing: -.02em; }
.hb-note { font-size: 12.5px; color: #7A7867; margin: 8px 0 0; line-height: 1.45; }
.hb-note b { color: #3A3A32; }
.hb-empty { padding: 18px 8px; text-align: center; color: #8A8875; font-size: 14px; line-height: 1.5; }
.hb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.hb-plan { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #EEE7D7; background: #FAF7F0; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, background .15s, transform .1s; }
.hb-plan:hover { border-color: var(--olive); transform: translateY(-1px); }
.hb-plan.active { border-color: var(--olive); background: #EEF3E6; box-shadow: inset 0 0 0 1px var(--olive); }
.hb-plan-label { font-size: 12.5px; font-weight: 600; color: #55574A; }
.hb-plan-kcal { font-size: 22px; font-weight: 800; color: #2E2E28; line-height: 1.15; }
.hb-plan-kcal small { font-size: 12px; font-weight: 600; color: #8A8875; }
.hb-plan-note { font-size: 11.5px; color: #8A8875; }

.hb-goal { margin-top: 14px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, #EEF3E6, #F7F3E6); border: 1px solid #DCE6CF; }
.hb-goal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.hb-goal-field { display: flex; flex-direction: column; gap: 5px; }
.hb-input.big input { font-size: 24px; font-weight: 800; padding: 8px 0; }
.hb-protein-tips { grid-column: span 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.hb-chip { border: 1px solid #D5DFC6; background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--olive); cursor: pointer; }
.hb-chip small { font-weight: 500; color: #7A7867; }
.hb-chip:hover { border-color: var(--olive); }
.hb-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 14px; }
.hb-saved { color: var(--olive); font-weight: 700; font-size: 14px; }

@media (max-width: 760px) {
  .hb-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-wide { grid-column: span 2; }
  .hb-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hb-goal-row { grid-template-columns: 1fr; }
  .hb-protein-tips { grid-column: auto; }
  .hb-foot .btn { width: 100%; }
}
.hb-fields > *, .hb-grid > *, .hb-goal-row > * { min-width: 0; }
.hb-field select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.hb-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .health-card { padding: 16px 14px 14px; } .hb-fields { padding: 12px; gap: 10px; } .hb-big { font-size: 34px; } }
/* import receptu z odkazu */
.import-row { display: flex; gap: 8px; margin: 8px 0 6px; }
.import-row input { flex: 1; min-width: 0; }
.paste-box .paste-alt { display: block; margin-top: 12px; font-size: 14px; color: #6B6A5C; }
@media (max-width: 600px) { .import-row { flex-direction: column; } }
/* návrhy surovín: oddelené výsledky z kaloricketabulky.sk */
.suggest-sep { padding: 6px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #8A8875; background: #FAF7F0; border-top: 1px solid #EEE7D7; }
.suggest-item.kt .s-name::before { content: "🔎 "; }
.suggest-item.kt .s-macros { color: #8A8875; }
/* neznáma surovina: nájdené na kaloricketabulky.sk */
.kt-found { margin-bottom: 10px; }
.kt-found-title { display: block; font-size: 13px; font-weight: 600; color: #3A3A32; margin-bottom: 6px; }
.kt-found-list { display: flex; flex-direction: column; gap: 6px; }
.kt-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 8px 12px; border: 1px solid #E2D9C6; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.kt-pick:hover { border-color: var(--olive); background: #F4F8EE; }
.kt-pick small { color: #8A8875; white-space: nowrap; }

/* ===== Tmavý režim (SpaceRoots) =====
   Celá stránka sa čisto invertuje (krémová -> tmavomodrá, olivová -> fialková).
   Fotky, profilovky a odznaky sa invertujú späť, takže ostanú vo svojich pôvodných farbách;
   veľká fotka na Domove sa v tme nezobrazuje. */
html.dark { filter: invert(1); background: #fff; }
html.dark img, html.dark video, html.dark canvas, html.dark svg.medal,
html.dark .quote-photo, html.dark .medal-avatar { filter: invert(1); }
html.dark .medal-avatar svg.medal, html.dark .medal-avatar img { filter: none; } /* nevracať dvakrát */
html.dark .hero-photo { display: none; }
html.dark .home-hero.has-photo { grid-template-columns: 1fr; }
/* jemný tieň by sa invertoval na svetlú žiaru */
html.dark .card, html.dark .side-card, html.dark .recipe-card, html.dark .btn, html.dark .hb-tile { box-shadow: none; }
/* prepínač v ľavom dolnom rohu pod odznakmi */
.user-chip { flex-wrap: wrap; }
.theme-toggle { flex-basis: 100%; margin-top: 4px; border: 1px solid #E2D9C6; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer; text-align: center; }
.theme-toggle:hover { background: #EFE8D8; }
/* plánovač: × pri jedle = zrušiť toto jedlo (napr. piatok olovrant) */
.meal-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.meal-x { width: 24px; height: 24px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: #9A9786; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; opacity: .55; transition: opacity .15s, background .15s, color .15s; }
.meal:hover .meal-x, .meal-x:focus-visible { opacity: 1; }
.meal-x:hover { background: #F3DCD7; color: #8A3B2E; border-color: #E8C2BA; }
@media (hover: none) { .meal-x { opacity: .9; } }
/* plánovač: ☰ = vybrať konkrétny recept zo zoznamu */
.dish { position: relative; }
.recipe-picker { position: absolute; z-index: 40; top: calc(100% + 4px); right: 0; width: min(360px, 92vw); max-height: 380px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #E2D9C6; border-radius: 14px; box-shadow: 0 12px 32px rgba(46, 46, 40, .18); padding: 10px; }
.rp-head { display: flex; flex-direction: column; gap: 1px; padding: 2px 4px 8px; }
.rp-head .muted { font-size: 12px; }
.rp-note { font-size: 12.5px; color: #8A5A12; background: #FFF6E0; border-radius: 8px; padding: 6px 8px; margin: 0 0 8px; }
.rp-search { width: 100%; margin-bottom: 8px; }
.rp-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.rp-list li[hidden] { display: none; }
.rp-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: none; border-radius: 10px; background: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; color: inherit; }
.rp-item:hover { background: #F4F8EE; }
.rp-item.current { background: #EEF3E6; font-weight: 600; }
.rp-item img, .rp-ph { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.rp-ph { display: grid; place-items: center; background: #F3EEE2; color: #A8A391; }
.rp-ph svg { width: 20px; height: 20px; }
.rp-name { flex: 1; min-width: 0; }
.rp-cur { font-size: 11px; font-weight: 700; color: var(--olive); background: #E6EFDC; padding: 2px 8px; border-radius: 999px; }
.rp-empty { padding: 8px; }
.pick-btn { font-size: 15px; }
.recipe-picker { left: 0; right: 0; width: auto; min-width: 0; } /* šírka karty dňa (karta orezáva, čo by pretieklo) */
/* mobil: stránka má jednotnú veľkosť -- bez priblíženia dvojklikom a bez zoomu pri kliknutí do poľa (iOS zoomuje pri písme < 16 px) */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 860px) { input, select, textarea { font-size: 16px !important; } }

/* ===== Domov: Dnes som zjedol ===== */
.today-log .tl-head { margin-bottom: 12px; }
.today-log .tl-head .muted { text-transform: capitalize; }
.tl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.tl-stat { background: #FAF7F0; border: 1px solid #EEE7D7; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.tl-stat-top { display: flex; flex-direction: column; gap: 2px; }
.tl-stat-top span { font-size: 12px; font-weight: 600; color: #7A7867; text-transform: uppercase; letter-spacing: .03em; }
.tl-stat-top b { font-size: 18px; color: #2E2E28; white-space: nowrap; }
.tl-stat-top small { font-size: 12px; font-weight: 500; color: #8A8875; }
.tl-bar { height: 6px; border-radius: 999px; background: #ECE5D4; margin-top: 8px; overflow: hidden; }
.tl-bar i { display: block; height: 100%; border-radius: 999px; background: var(--olive); transition: width .3s; }
.tl-bar i.over { background: #C9704F; }
.tl-list { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 30px 78px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid #F0EADC; }
.tl-item.extra { grid-template-columns: 30px 78px minmax(0, 1fr) auto 24px; }
.tl-check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #CFC6B1; background: #fff; color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.tl-check:hover { border-color: var(--olive); }
.tl-item.done .tl-check { background: var(--olive); border-color: var(--olive); }
.tl-plus { width: 26px; height: 26px; border-radius: 8px; background: #F5E6C8; color: #8A5A12; font-weight: 800; display: grid; place-items: center; }
.tl-meal { font-size: 12px; font-weight: 700; color: #7A7867; text-transform: uppercase; letter-spacing: .03em; }
.tl-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tl-name small { font-weight: 500; color: #8A8875; }
.tl-macros { font-size: 13px; color: #6B6A5C; white-space: nowrap; }
.tl-item:not(.done) .tl-name, .tl-item:not(.done) .tl-macros { opacity: .7; }
.tl-del { border: none; background: none; color: #9A9786; font-size: 18px; cursor: pointer; padding: 0; }
.tl-del:hover { color: #8A3B2E; }
.tl-empty { margin: 4px 0 8px; }
.tl-add-wrap { margin-top: 12px; }
.tl-add { margin-top: 10px; padding: 12px; border-radius: 12px; background: #FAF7F0; border: 1px solid #EEE7D7; display: flex; flex-direction: column; gap: 10px; }
.tl-add-tabs { display: flex; gap: 6px; }
.tl-mode { display: flex; flex-direction: column; gap: 8px; }
.tl-mode[hidden] { display: none; }
.tl-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tl-res { width: 100%; text-align: left; padding: 8px 10px; border: 1px solid #E2D9C6; border-radius: 10px; background: #fff; font: inherit; cursor: pointer; }
.tl-res:hover { border-color: var(--olive); background: #F4F8EE; }
.tl-res small { color: #8A8875; margin-left: 6px; }
.tl-portions { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tl-custom-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.tl-custom-row label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: #7A7867; }
.tl-custom-row input { width: 120px; }
@media (max-width: 600px) {
  .tl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-item { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .tl-item.extra { grid-template-columns: 30px minmax(0, 1fr) auto 24px; }
  .tl-meal { display: none; }
  .tl-name { white-space: normal; }
}
.tl-add[hidden] { display: none; }
@media (max-width: 600px) {
  .tl-item, .tl-item.extra { grid-template-rows: auto auto; row-gap: 1px; }
  .tl-meal { display: block; grid-column: 2; grid-row: 1; font-size: 10.5px; }
  .tl-name { grid-column: 2; grid-row: 2; }
  .tl-check, .tl-plus { grid-row: 1 / 3; }
  .tl-macros { grid-column: 3; grid-row: 1 / 3; }
  .tl-del { grid-column: 4; grid-row: 1 / 3; }
}
/* ===== Domov: „+ Niečo navyše“ (Jedlo / Vlastné) ===== */
.tl-add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px; border: 1.5px dashed #D5CBB4; border-radius: 12px; background: transparent; color: var(--olive); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.tl-add-btn span { font-size: 20px; line-height: 1; }
.tl-add-btn:hover { background: #F4F8EE; border-color: var(--olive); }
.tl-add-btn[hidden], .tl-results[hidden], .tl-pick[hidden] { display: none; }
.tl-add { margin-top: 0; padding: 14px; border-radius: 16px; background: #FBF8F1; border: 1px solid #ECE4D2; gap: 12px; }
.tl-seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #EFE8D8; }
.tl-seg [data-mode] { flex: 1; border: none; border-radius: 9px; padding: 9px 10px; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: #6B6A5C; cursor: pointer; }
.tl-seg [data-mode].active { background: #fff; color: #2E2E28; box-shadow: 0 1px 4px rgba(46, 46, 40, .12); }
.tl-close { flex: 0 0 36px; border: none; background: transparent; font-size: 20px; color: #8A8875; cursor: pointer; border-radius: 9px; }
.tl-close:hover { background: #E6DFCC; }
.tl-search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid #E2D9C6; border-radius: 12px; padding: 0 12px; }
.tl-search-box:focus-within { border-color: var(--olive); }
.tl-search-box svg { width: 18px; height: 18px; color: #9A9786; flex-shrink: 0; }
.tl-search-box input { border: none !important; outline: none; box-shadow: none !important; background: transparent; width: 100%; padding: 11px 0; font-size: 15px; }
.tl-results { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow-y: auto; }
.tl-sec { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8A8875; padding: 8px 4px 2px; }
.tl-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 1px solid transparent; border-radius: 12px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.tl-row:hover { border-color: var(--olive); background: #F4F8EE; }
.tl-row img, .tl-ph { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.tl-ph { display: grid; place-items: center; background: #F3EEE2; font-size: 18px; }
.tl-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; font-size: 14.5px; }
.tl-row-name small { font-weight: 500; font-size: 12px; color: #8A8875; }
.tl-row-meta { font-size: 12.5px; color: #7A7867; white-space: nowrap; }
.tl-loading, .tl-none { padding: 12px 6px; color: #8A8875; font-size: 14px; text-align: center; }
.tl-pick-card { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid #ECE4D2; border-radius: 14px; padding: 14px; }
.tl-pick-head { display: flex; align-items: center; gap: 10px; }
.tl-pick-head div { display: flex; flex-direction: column; min-width: 0; }
.tl-pick-head b { font-size: 16px; }
.tl-pick-head small { color: #8A8875; font-size: 12px; }
.tl-back { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; border: 1px solid #E2D9C6; background: #fff; cursor: pointer; font-size: 16px; }
.tl-back:hover { border-color: var(--olive); }
.tl-amount { display: flex; flex-direction: column; gap: 8px; }
.tl-in { display: flex; align-items: center; background: #fff; border: 1.5px solid #E2D9C6; border-radius: 10px; padding: 0 10px; }
.tl-in:focus-within { border-color: var(--olive); }
.tl-in input { border: none !important; outline: none; box-shadow: none !important; background: transparent; width: 100%; min-width: 0; padding: 9px 0; font-weight: 700; }
.tl-in em { font-style: normal; color: #8A8875; font-size: 13px; margin-left: 4px; }
.tl-in-big input { font-size: 24px; padding: 8px 0; }
.tl-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tl-chip { border: 1px solid #E2D9C6; background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: #55574A; }
.tl-chip:hover { border-color: var(--olive); }
.tl-chip.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.tl-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tl-preview div { background: #F4F8EE; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; }
.tl-preview b { font-size: 18px; color: #2E2E28; }
.tl-preview span { font-size: 11px; color: #7A7867; text-align: center; }
.tl-confirm { width: 100%; }
.tl-custom { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tl-custom[hidden] { display: none !important; }
.tl-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tl-f > span:first-child { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #7A7867; }
.tl-f-wide { grid-column: 1 / -1; }
.tl-f > input { padding: 10px 12px; border: 1.5px solid #E2D9C6; border-radius: 10px; font: inherit; }
.tl-actions { display: flex; justify-content: flex-end; }
@media (max-width: 600px) {
  .tl-custom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-actions .btn { width: 100%; }
}
.tl-ph-ing svg { width: 20px; height: 20px; color: var(--olive); } .tl-ph-kt { font-size: 12px; font-weight: 800; color: #8A5A12; background: #F5E6C8; letter-spacing: .02em; }
/* cudzí profil: priatelia a zamknuté recepty */
.tf-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-person { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid #E7E1CF; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: inherit; }
.tf-person:hover { border-color: var(--olive); background: #F4F8EE; }
.tf-person .user-avatar { width: 30px; height: 30px; font-size: 13px; }
.locked-recipes { display: flex; align-items: center; gap: 14px; }
.locked-recipes .lr-icon { font-size: 26px; width: 52px; height: 52px; border-radius: 14px; background: #F3EEE2; display: grid; place-items: center; flex-shrink: 0; }
.locked-recipes div { display: flex; flex-direction: column; gap: 3px; }
/* hlavička profilu: najlepšie ocenenia vpravo */
.profile-head .profile-ident { flex: 1; min-width: 0; }
.ph-medals { display: flex; gap: 14px; margin-left: auto; padding-left: 12px; position: relative; z-index: 1; }
.ph-medal { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 74px; text-align: center; }
.ph-medal span { font-size: 11.5px; font-weight: 600; color: #55574A; line-height: 1.2; }
@media (max-width: 760px) {
  .profile-head { flex-wrap: wrap; }
  .ph-medals { margin-left: 0; padding-left: 0; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  .ph-medal { width: 66px; }
  .ph-medal svg { width: 44px; height: 44px; }
}
/* priatelia v cudzom profile: väčšie karty (na mieste, kde boli ocenenia) */
.their-friends .tf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.their-friends .tf-person { flex-direction: column; gap: 8px; padding: 14px 8px; border-radius: 16px; justify-content: center; text-align: center; }
.their-friends .tf-person .user-avatar.big { width: 64px; height: 64px; font-size: 26px; }
.their-friends .tf-person span:last-child { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
/* nákupný zoznam: živá synchronizácia v domácnosti */
.shop-live { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6B6A5C; margin: 2px 0 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #5DAA52; box-shadow: 0 0 0 0 rgba(93, 170, 82, .5); animation: live-pulse 2s infinite; flex-shrink: 0; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(93, 170, 82, .5); } 70% { box-shadow: 0 0 0 7px rgba(93, 170, 82, 0); } 100% { box-shadow: 0 0 0 0 rgba(93, 170, 82, 0); } }
.shop-by-name { font-size: 11.5px; font-weight: 600; color: var(--olive); background: #E6EFDC; padding: 1px 7px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.shopping li.flash { animation: shop-flash 1.6s ease-out; }
@keyframes shop-flash { 0% { background: #FFF1C9; } 100% { background: transparent; } }
.person-link { border: none; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; } .person-link:hover { text-decoration: underline; } .person-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* tmavý režim: emoji v správach (text, smajlíky, ikonka fotoaparátu) ostanú v pôvodných farbách */ html.dark .emo, html.dark .emoji-pop button { filter: invert(1); }
/* tmavý režim: emoji kdekoľvek (obalené v session.js) a značky -- hviezdičky, zelené ✓ overené, „máš uložený“ -- v pôvodných farbách */ html.dark .star-badge, html.dark .star-note, html.dark .mr-stars, html.dark .verified-check, html.dark .have-badge, html.dark .stat-stars .val, html.dark .pc-badges svg { filter: invert(1); }
