/* Keha Kood – teema stiilid. Värvid ja fondid tulevad Customizerist (CSS muutujad). */
:root {
  --kk-primary: #45243a;
  --kk-accent: #f0b8d0;
  --kk-bg: #faf6f3;
  --kk-card: #fffcfa;
  --kk-text: #2b2128;
  --kk-muted: #6e6169;
  --kk-label: #8a3a63;
  --kk-line: rgba(69, 36, 58, .14);
  --kk-radius: 14px;
  --kk-font-heading: 'Newsreader', Georgia, serif;
  --kk-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--kk-bg); color: var(--kk-text); font-family: var(--kk-font-body); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; height: auto; }
a { color: var(--kk-primary); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.kk-skip:focus { clip: auto; width: auto; height: auto; padding: 8px 12px; background: #fff; z-index: 1000; top: 8px; left: 8px; }
.kk-wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* päis */
.kk-topbar { border-bottom: 1px solid var(--kk-line); background: var(--kk-bg); position: sticky; top: 0; z-index: 50; }
.admin-bar .kk-topbar { top: 32px; }
.kk-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.kk-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--kk-primary); }
.kk-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.kk-logo-text { display: inline-grid; place-items: center; font-family: var(--kk-font-heading); font-size: 22px; background: #f6e7ee; color: var(--kk-label); }
.kk-brand-name { font-size: 12px; letter-spacing: .18em; font-weight: 600; text-transform: uppercase; }
.kk-topnav { display: flex; align-items: center; gap: 16px; }
.kk-menu { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; font-size: 14px; }
.kk-menu a { text-decoration: none; }
.kk-main { padding-top: 20px; padding-bottom: 48px; }
.kk-footer { border-top: 1px solid var(--kk-line); padding: 24px 0; color: var(--kk-muted); font-size: 13px; }

/* hero */
.kk-hero { background: var(--kk-primary); color: #fff; border-radius: 18px; padding: 56px 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; overflow: hidden; }
.kk-eyebrow { font-size: 10px; letter-spacing: .22em; color: var(--kk-accent); margin: 0 0 18px; font-weight: 600; }
.kk-hero-title { font-family: var(--kk-font-heading); font-weight: 400; font-size: clamp(44px, 8vw, 76px); line-height: .98; margin: 0 0 26px; letter-spacing: -.02em; max-width: 9ch; }
.kk-dot { color: var(--kk-accent); }
.kk-hero-sub { margin: 0; font-size: 13px; line-height: 1.6; opacity: .92; }
.kk-moons { width: 300px; max-width: 42%; flex-shrink: 0; }
.kk-moons .m-full { fill: var(--kk-accent); }
.kk-moons .m-dark { fill: var(--kk-primary); }
.kk-moons .m-empty { fill: none; stroke: var(--kk-accent); stroke-width: 1.2; }
.kk-hero-img { max-width: 40%; border-radius: 12px; }

/* üldised */
.kk-card { background: var(--kk-card); border: 1px solid var(--kk-line); border-radius: var(--kk-radius); padding: 18px 20px; margin: 0 0 14px; }
.kk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kk-between { justify-content: space-between; }
.kk-tabs { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--kk-line); }
.kk-weeks, .kk-days { margin-bottom: 14px; }
.kk-btn, a.kk-btn { text-decoration: none; }
.kk-btn { font: inherit; font-size: 14px; border: 1px solid var(--kk-line); background: var(--kk-card); color: var(--kk-text); border-radius: 8px; padding: 8px 12px; cursor: pointer; line-height: 1.2; }
.kk-btn:hover { border-color: var(--kk-primary); }
.kk-btn.is-active, .kk-btn-primary { background: var(--kk-primary); color: #fff; border-color: var(--kk-primary); }
.kk-btn-ghost { background: transparent; }
.kk-btn:focus-visible, .kk-link:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--kk-label); outline-offset: 2px; }
.kk-link { background: none; border: 0; padding: 0; font: inherit; color: var(--kk-label); text-decoration: underline; cursor: pointer; }
.kk-pill { display: inline-block; margin-left: 8px; font-size: 12px; background: #f6e7ee; color: var(--kk-label); border-radius: 99px; padding: 2px 8px; font-weight: 500; }
.kk-sub { color: var(--kk-muted); margin: 6px 0; font-size: 14px; }
.kk-strong { font-weight: 600; color: var(--kk-primary); display: block; margin-bottom: 8px; }
.kk-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--kk-label); font-weight: 600; margin: 0 0 6px; }
.kk-h1, .kk-h2, .kk-h3, .kk-day-title, .kk-meal-title, .kk-rcard-title { font-family: var(--kk-font-heading); font-weight: 400; color: var(--kk-text); }
.kk-h1 { font-size: 40px; margin: 0 0 16px; }
.kk-h3 { font-size: 24px; margin: 0 0 10px; }
.kk-h4 { font-size: 14px; margin: 0 0 8px; font-weight: 600; }
.kk-day-title { font-size: 54px; line-height: 1; margin: 0 0 8px; }
.kk-loading { color: var(--kk-muted); padding: 24px 0; }
.kk-error { color: #a1263f; font-weight: 500; }
details.kk-card > summary { cursor: pointer; font-weight: 600; color: var(--kk-primary); }
details.kk-card[open] > summary { margin-bottom: 10px; }
.kk-entry p { margin: 6px 0; }

/* vormid */
.kk-form label, .kk-swap label { display: flex; flex-direction: column; justify-content: flex-end; font-size: 14px; color: var(--kk-text); margin-bottom: 10px; }
.kk-form label.kk-check, .kk-auth .kk-check { flex-direction: row; justify-content: flex-start; }
.kk-form input, .kk-form select, .kk-swap input, .kk-swap select, .kk-card select, .kk-card input[type=search] { display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 15px; padding: 9px 11px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; color: var(--kk-text); }
.kk-card > select { max-width: 460px; }
.kk-form input[type=checkbox] { width: auto; display: inline; }
.kk-grid5, .kk-grid4, .kk-grid2 { display: grid; gap: 10px 12px; align-items: end; }
.kk-grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kk-grid4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
.kk-grid2 { grid-template-columns: 1fr 1fr; }
.kk-grid5, .kk-grid4, .kk-grid2 { margin-bottom: 10px; }
.kk-grid5 > label, .kk-grid4 > label, .kk-grid2 > label { height: 100%; margin-bottom: 0; }
.kk-form input, .kk-form select, .kk-card select, .kk-card input[type=search] { height: 42px; }
.kk-inline { display: flex; gap: 8px; }
.kk-inline input { margin: 0; }
.kk-check { display: flex; align-items: center; gap: 8px; font-size: 14px; }

/* päev */
.kk-day { margin-top: 18px; }
.kk-day-kcal { margin: 16px 0 10px; color: var(--kk-muted); }
.kk-day-kcal b { color: var(--kk-text); }
.kk-trackers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.kk-trackers .kk-card { margin: 0; }
.kk-progress { height: 10px; background: #f3e9ee; border-radius: 99px; overflow: hidden; }
.kk-progress span { display: block; height: 100%; background: var(--kk-accent); }
.kk-meals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kk-meal { margin: 0; display: flex; flex-direction: column; }
.kk-meal-nutri { margin-top: auto; }
/* Kõrvuti kaartide read (pealkiri, pilt, vahetus, koostisosad, õpetus, toiteväärtus) samal joonel */
@supports (grid-template-rows: subgrid) {
  .kk-meals { grid-auto-rows: auto; }
  .kk-meal { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .kk-meal-nutri { margin-top: 0; align-self: end; }
}
.kk-meal-head { align-self: end; }
.kk-meal-title { font-size: 26px; line-height: 1.15; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--kk-line); }
.kk-meal-img { position: relative; background: #f6e9ef; border-radius: 10px; aspect-ratio: 1.43; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 12px; }
.kk-meal-img img { height: 100%; width: auto; max-width: 100%; object-fit: cover; }
.kk-img-empty { font-size: 40px; opacity: .4; }
.kk-fav { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--kk-primary); font-size: 17px; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.kk-fav.is-on { color: #c2185b; }
.kk-swap { margin-bottom: 8px; }
.kk-swap label { margin-bottom: 8px; }
.kk-meal h4 { margin: 12px 0 6px; font-size: 14px; }
.kk-ingredients { list-style: none; margin: 0; padding: 0; }
.kk-ingredients li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--kk-line); font-size: 14px; }
.kk-ingredients strong { font-weight: 600; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.kk-ingredients span { min-width: 0; overflow-wrap: anywhere; }
.kk-steps { margin: 10px 0; }
.kk-steps summary { cursor: pointer; font-weight: 600; }
.kk-nutri { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 12px 0 8px; }
.kk-nutri div { background: #faf1f5; border-radius: 8px; padding: 8px 4px; text-align: center; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.kk-nutri strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kk-nutri span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-nutri span { display: block; font-size: 11px; color: var(--kk-muted); }
.kk-nutri strong { font-size: 14px; }
.kk-split-title { font-size: 12px; color: var(--kk-muted); margin: 8px 0 4px; }
.kk-split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: #eee; }
.s-c { background: #e9c46a; } .s-p { background: var(--kk-label); } .s-f { background: var(--kk-accent); }
.kk-split-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; margin: 6px 0 0; font-size: 13px; }
.kk-split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.kk-day-sum { margin-top: 14px; }

/* ostunimekiri, tabel */
.kk-shoplist { list-style: none; padding: 0; margin: 0 0 16px; columns: 2; column-gap: 24px; }
.kk-shoplist li { break-inside: avoid; border-bottom: 1px dashed var(--kk-line); }
.kk-shoplist label { display: flex; gap: 10px; align-items: center; padding: 7px 0; cursor: pointer; font-size: 14px; }
.kk-shoplist span { flex: 1; }
.kk-shoplist strong { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kk-shoplist input:checked ~ span, .kk-shoplist input:checked ~ strong { text-decoration: line-through; opacity: .5; }
.kk-table-wrap { overflow-x: auto; }
.kk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kk-table th, .kk-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--kk-line); vertical-align: top; }
.kk-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kk-table th:first-child { white-space: nowrap; }
.kk-table tfoot th, .kk-table tfoot td { font-weight: 600; }

/* retseptid */
.kk-rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kk-rcard { position: relative; padding: 12px; margin: 0; display: flex; }
.kk-rcard-open { display: flex; flex-direction: column; flex: 1; width: 100%; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.kk-rcard .kk-meal-img { aspect-ratio: 1.2; margin-bottom: 10px; }
.kk-rcard .kk-fav { top: 20px; right: 20px; }
.kk-rcard-title { font-size: 19px; line-height: 1.2; margin: 0 0 4px; }
.kk-rcard-meta { margin-top: auto; padding-top: 4px; }
.kk-modal { position: fixed; inset: 0; background: rgba(30, 15, 25, .55); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.kk-modal[hidden] { display: none; }
.kk-modal-box { background: var(--kk-card); border-radius: 16px; padding: 24px; max-width: 640px; width: 100%; position: relative; }
.kk-modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: #f6e7ee; border-radius: 50%; width: 34px; height: 34px; cursor: pointer; }
.kk-addday { margin-top: 16px; border-top: 1px solid var(--kk-line); padding-top: 12px; }
.kk-article { padding: 28px; }
.kk-recipe-single .kk-meal-img { max-width: 560px; }

/* responsiivne */
@media (max-width: 820px) {
  .kk-hero { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  .kk-moons { max-width: 70%; }
  .kk-grid5 { grid-template-columns: 1fr 1fr; }
  .kk-grid5 > label:first-child { grid-column: 1 / -1; }
  .kk-grid4 { grid-template-columns: 1fr 1fr; }
  .kk-grid4 > label:first-child { grid-column: 1 / -1; }
  .kk-meal { grid-row: auto !important; display: flex !important; }
  .kk-meals, .kk-trackers { grid-template-columns: 1fr; }
  .kk-rgrid { grid-template-columns: 1fr 1fr; }
  .kk-nutri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kk-shoplist { columns: 1; }
  .kk-day-title { font-size: 42px; }
}
@media (max-width: 520px) {
  .kk-rgrid { grid-template-columns: 1fr; }
  .kk-menu { display: none; }
}
@media (max-width: 782px) { .admin-bar .kk-topbar { top: 0; position: relative; } }

/* printimine A4 */
.kk-print-area { display: none; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 11pt; }
  .kk-topbar, .kk-footer, .kk-hero, .kk-noprint, .kk-fav, #wpadminbar { display: none !important; }
  .kk-card { border-color: #ddd; break-inside: avoid; }
  .kk-meals { grid-template-columns: 1fr 1fr; }
  .kk-meal-img { aspect-ratio: auto; max-height: 45mm; background: none; }
  .kk-meal-img img { max-height: 45mm; width: auto; }
  .kk-steps { display: block; }
  .kk-printing-week .kk-main { display: none; }
  .kk-printing-week .kk-print-area { display: block; }
  .kk-print-page { break-after: page; }
  .kk-print-page .kk-meals { grid-template-columns: repeat(3, 1fr); }
  .kk-print-page .kk-meal-title { font-size: 15pt; }
  .kk-print-page .kk-meal-img, .kk-print-page .kk-split { display: none; }
}

/* sisselogimine */
.kk-auth { display: flex; justify-content: center; }
.kk-auth-card { width: 100%; max-width: 520px; padding: 28px; }
.kk-auth-tabs { margin: 14px 0 16px; }
.kk-auth .kk-row.kk-between a { font-size: 14px; color: var(--kk-label); }
.kk-auth .kk-check { display: flex; gap: 8px; align-items: flex-start; }
.kk-auth .kk-check input { margin-top: 4px; }
.kk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kk-user { font-size: 13px; color: var(--kk-muted); }
@media (max-width: 520px) { .kk-user { display: none; } .kk-auth-card { padding: 20px; } }

/* paketid */
.kk-packages { padding: 32px; }
.kk-packages:not(.has-img) { max-width: 560px; margin-left: auto; margin-right: auto; }
.kk-noaccess { max-width: 560px; margin-left: auto; margin-right: auto; }
.kk-pkg-inner.has-img { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.kk-pkg-img img { width: 100%; border-radius: 14px; object-fit: cover; aspect-ratio: 4 / 5; }
.kk-pkg-eyebrow { font-family: var(--kk-font-heading); font-style: italic; font-size: 26px; margin: 0 0 6px; color: var(--kk-text); padding-bottom: 12px; border-bottom: 2px solid var(--kk-accent); display: inline-block; }
.kk-pkg-title { font-family: var(--kk-font-heading); font-weight: 600; font-size: clamp(34px, 6vw, 52px); line-height: 1.05; margin: 14px 0 18px; color: var(--kk-primary); letter-spacing: -.01em; }
.kk-pkg-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; max-width: 480px; }
.kk-pkg-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: stretch; text-decoration: none; border: 1px solid #e5dcd6; border-radius: 12px; overflow: hidden; background: #f6f1ea; color: var(--kk-text); box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s; }
.kk-pkg-row:hover, .kk-pkg-row:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(69,36,58,.18); outline: none; }
.kk-pkg-row:focus-visible { outline: 2px solid var(--kk-label); outline-offset: 2px; }
.kk-pkg-len { font-family: var(--kk-font-heading); font-size: 28px; font-weight: 600; padding: 12px 18px; display: flex; flex-direction: column; justify-content: center; line-height: 1.1; }
.kk-pkg-name { white-space: nowrap; }
.kk-pkg-dash { font-weight: 400; margin-left: 4px; }
.kk-pkg-len small { font-family: var(--kk-font-body); font-size: 12px; font-weight: 400; color: var(--kk-muted); margin-top: 2px; }
.kk-pkg-price { background: var(--kk-primary); color: #fff; font-family: var(--kk-font-heading); font-size: 30px; font-weight: 600; display: flex; align-items: center; justify-content: flex-end; padding: 10px 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kk-pkg-price del { font-size: 16px; opacity: .6; margin-right: 8px; }
.kk-pkg-price ins { text-decoration: none; }
.kk-pkg-price .woocommerce-Price-currencySymbol { margin-left: 4px; }
.kk-pkg-sub { font-family: var(--kk-font-heading); font-style: italic; font-size: 22px; margin: 8px 0 8px; padding-bottom: 12px; border-bottom: 2px solid var(--kk-accent); max-width: 460px; }
.kk-pkg-note { font-family: var(--kk-font-heading); font-size: 18px; margin: 0 0 8px; }
.kk-pkg-help { max-width: 460px; }
.kk-noaccess { border-left: 4px solid var(--kk-primary); }
.kk-noaccess p { margin: 4px 0; }
.kk-access { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kk-access.is-soon { border-color: var(--kk-label); background: #fbeef4; }
.kk-extend { margin-top: 14px; }
.kk-auth + .kk-packages { margin-top: 18px; }
.kk-thanks { margin-bottom: 20px; }

/* WooCommerce'i lehed teema värvides */
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link), .wp-element-button { background: var(--kk-primary) !important; color: #fff !important; border-radius: 8px !important; border: 0; font-family: var(--kk-font-body); }
.woocommerce .button:hover, .wc-block-components-button:not(.is-link):hover { opacity: .92; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--kk-primary) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--kk-primary) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--kk-line); border-radius: 8px; padding: 9px 11px; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 8px 0; text-decoration: none; border-bottom: 1px dashed var(--kk-line); }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--kk-label); font-weight: 600; }
.kk-article .woocommerce, .kk-article .wp-block-woocommerce-checkout { margin-top: 8px; }
.kk-wc { padding: 28px; }

@media (max-width: 820px) {
  .kk-pkg-inner.has-img { grid-template-columns: 1fr; }
  .kk-pkg-img { order: -1; max-width: 320px; }
  .kk-packages { padding: 22px; }
}
@media (max-width: 420px) {
  .kk-pkg-len { font-size: 22px; padding: 10px 14px; }
  .kk-pkg-price { font-size: 24px; padding: 10px 14px; }
  .kk-pkg-row { grid-template-columns: minmax(0, 1fr) 118px; }
}

.kk-admin-preview { font-size: 13px; color: var(--kk-muted); text-align: center; margin: 24px 0 8px; }
.kk-pkg-link { text-decoration: none; }
@media (max-width: 520px) { .kk-print-btn { display: none; } .kk-topnav { gap: 8px; } .kk-topnav .kk-btn { padding: 7px 10px; font-size: 13px; } }

/* päise nupud: kasutaja ja loendur */
.kk-user-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 5px 12px 5px 5px; max-width: 180px; }
.kk-user-btn .kk-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kk-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--kk-accent); color: var(--kk-primary); display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0; }
.kk-countdown { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; background: #f6efe9; }
.kk-countdown.is-soon { background: #fbeef4; border-color: var(--kk-label); color: var(--kk-label); }
.kk-countdown.is-urgent, .kk-countdown.is-ended { background: var(--kk-label); border-color: var(--kk-label); color: #fff; }
.kk-countdown.is-forever { cursor: default; }
.kk-topnav .kk-btn { text-decoration: none; }
.kk-account-access { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--kk-card); border: 1px solid var(--kk-line); border-left: 4px solid #1a7f37; border-radius: var(--kk-radius); padding: 16px 20px; margin: 0 0 18px; }
.kk-account-access.is-off { border-left-color: var(--kk-label); }
.kk-account-access p { margin: 0; }
.kk-account-status { font-family: var(--kk-font-heading); font-size: 22px; }
.woocommerce-MyAccount-content .kk-packages { border: 0; padding: 0; margin: 0; max-width: none; background: none; }
.woocommerce-MyAccount-content .kk-pkg-title { font-size: 36px; }
@media (max-width: 700px) {
  .kk-topbar-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .kk-topnav { flex-wrap: wrap; justify-content: flex-end; }
  .kk-user-btn .kk-user-name { display: none; }
  .kk-user-btn { padding: 5px; }
  .kk-logout { display: none; }
}

/* kliendid ja statistika (nagu vanas rakenduses) */
.kk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.kk-stat { background: var(--kk-card); border: 1px solid var(--kk-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.kk-stat.is-main { background: var(--kk-primary); color: #fff; border-color: var(--kk-primary); }
.kk-stat-num { font-family: var(--kk-font-heading); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.kk-stat-label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.kk-stat-sub { font-size: 12px; opacity: .7; }
.kk-clients-nav { font-size: 14px; margin: 0 0 6px; }
.kk-clients-nav a { color: var(--kk-label); }
.kk-clients-title { font-family: var(--kk-font-heading); font-weight: 400; font-size: clamp(36px, 6vw, 52px); letter-spacing: -.02em; line-height: 1.05; margin: 0 0 12px; }
.kk-note { background: #fdf0f5; border-left: 4px solid var(--kk-label); padding: 12px 16px; margin: 0 0 16px; font-size: 14px; }
.kk-flash { background: #e9f6ec; border-left: 4px solid #1a7f37; padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; }
.kk-client-searchbox { display: block; max-width: 480px; margin: 0 0 16px; font-size: 14px; }
.kk-client-searchbox input { display: block; width: 100%; margin-top: 4px; height: 42px; padding: 9px 11px; border: 1px solid var(--kk-line); border-radius: 8px; font: inherit; background: #fff; }
.kk-client-section { padding: 22px; }
.kk-clients-h, .kk-removed > summary { font-family: var(--kk-font-heading); font-weight: 400; font-size: 30px; margin: 0 0 14px; color: var(--kk-text); }
.kk-removed > summary { font-family: var(--kk-font-body); font-weight: 600; font-size: 16px; margin: 0; }
.kk-removed[open] > summary { margin-bottom: 8px; }
.kk-client-list { display: grid; gap: 12px; }
.kk-client { display: block; background: var(--kk-card); border: 1px solid var(--kk-line); border-radius: 12px; padding: 16px; scroll-margin-top: 90px; }
.kk-client[hidden] { display: none; }
.kk-client:target { box-shadow: 0 0 0 3px var(--kk-accent); }
.kk-client-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.kk-badge { font-size: 13px; color: var(--kk-text); }
.kk-badge.is-soon { color: #a75a00; font-weight: 600; }
.kk-badge.is-expired, .kk-badge.is-paused { color: var(--kk-label); font-weight: 600; }
.kk-client-pkg { font-size: 12px; color: var(--kk-muted); }
.kk-client-name { font-size: 15px; font-weight: 700; margin: 4px 0 2px; overflow-wrap: anywhere; font-family: var(--kk-font-body); }
.kk-client-real { margin: 0 0 4px; font-size: 13px; }
.kk-client-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 10px; }
.kk-client-fields.is-single { grid-template-columns: minmax(0, 1fr) 1fr; }
.kk-client-fields label { display: flex; flex-direction: column; font-size: 14px; margin-bottom: 10px; }
.kk-client-fields input, .kk-client-fields select { margin-top: 4px; height: 42px; padding: 8px 11px; border: 1px solid var(--kk-line); border-radius: 8px; font: inherit; background: #fff; width: 100%; }
.kk-client-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.kk-client-actions .kk-btn { padding: 7px 12px; font-size: 14px; }
.kk-client-add .kk-check { margin: 0 0 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.kk-btn-danger { color: var(--kk-label); border-color: var(--kk-label); background: #fff; }
.kk-btn-danger:hover { background: #fbeef4; }
@media (max-width: 560px) {
  .kk-stats { grid-template-columns: 1fr 1fr; }
  .kk-client-fields, .kk-client-fields.is-single { grid-template-columns: 1fr; }
  .kk-client-actions, .kk-client-actions .kk-row { flex-direction: column; align-items: stretch; width: 100%; }
  .kk-client-actions .kk-btn { width: 100%; padding: 11px; }
  .kk-client-section { padding: 16px; }
}

.kk-stats-lists { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -6px; }
.kk-stat-link { text-decoration: none; color: inherit; transition: border-color .15s; }
.kk-stat-link:hover, .kk-stat-link:focus-visible { border-color: var(--kk-primary); }
.kk-stat-link .kk-stat-label::after { content: ' →'; color: var(--kk-label); }
@media (max-width: 560px) { .kk-stats-lists { grid-template-columns: 1fr 1fr; } }

/* toitumisviis ja terviseinfo */
.kk-diet .kk-form { margin-top: 8px; }
.kk-diet .kk-form select { max-width: none; }
.kk-diet .kk-check { display: flex; gap: 10px; align-items: flex-start; flex-direction: row; justify-content: flex-start; margin: 0 0 8px; font-size: 15px; }
.kk-diet .kk-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--kk-primary); }
.kk-diet textarea { display: block; width: 100%; margin-top: 4px; font: inherit; padding: 9px 11px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; min-height: 90px; }
.kk-advice { background: #fdf0f5; border-left: 4px solid var(--kk-label); padding: 10px 14px; margin: 12px 0 0; font-size: 14px; }
.kk-carb-alert { background: #fdf0f5; border-left: 4px solid var(--kk-label); padding: 10px 14px; margin: 8px 0; font-size: 14px; color: var(--kk-text); }

/* koostisosade vahetamine ja roakaart nagu vanas rakenduses */
:root { --kk-c: #3f7d6e; --kk-p: #7b3f6b; --kk-f: #b8743a; }
.kk-ing-fold { border: 1px solid var(--kk-line); border-radius: 12px; padding: 12px 16px; margin: 4px 0 12px; background: #fff; }
.kk-ing-fold > summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--kk-text); }
.kk-ing-fold[open] > summary { margin-bottom: 8px; }
.kk-ing { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--kk-line); }
.kk-ing.is-changed .kk-ing-label { color: var(--kk-label); }
.kk-ing-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.kk-ing-label { font-weight: 600; font-size: 14px; }
.kk-ing-label small { font-weight: 400; color: var(--kk-muted); }
.kk-ing-tools { display: flex; flex-direction: column; gap: 6px; }
.kk-ing-tools input, .kk-ing-tools select { width: 100%; height: 36px; padding: 6px 9px; font: inherit; font-size: 13px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; }
.kk-ing-tools .kk-link { align-self: flex-start; font-size: 13px; }
.kk-qty { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 14px; }
.kk-qty input { width: 76px; height: 36px; padding: 6px 8px; text-align: right; font: inherit; font-size: 14px; border: 1px solid var(--kk-line); border-radius: 8px; font-variant-numeric: tabular-nums; }
.kk-steps-h { margin: 6px 0 4px; font-size: 16px; color: var(--kk-primary); }
.kk-nutri-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--kk-line); border-bottom: 1px solid var(--kk-line); padding: 10px 0; margin: 10px 0; }
.kk-nutri-row span { display: block; font-size: 12px; color: var(--kk-muted); }
.kk-nutri-row strong { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kk-pie-wrap { display: flex; align-items: center; gap: 16px; }
.kk-pie { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; }
.kk-pie-legend { flex-direction: column; gap: 2px; }
.kk-pie-legend .s-c, .kk-split .s-c { background: var(--kk-c); } .kk-pie-legend .s-p { background: var(--kk-p); } .kk-pie-legend .s-f { background: var(--kk-f); }
.kk-pie-legend i { border-radius: 50%; }
@media (max-width: 420px) { .kk-nutri-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media print { .kk-ing-fold { border: 0; padding: 0; } .kk-ing-tools, .kk-qty input { display: none; } }
.kk-print-only { display: none; }
@media print { .kk-print-only { display: inline; } }

/* 1.8.0: lisa koostisosa, söön perega, päeva jälgimine, päeva kokkuvõtte ketas */
.kk-addfold, .kk-famfold { border: 1px solid var(--kk-line); border-radius: 12px; padding: 10px 14px; margin: 0 0 10px; background: #fff; }
.kk-addfold > summary, .kk-famfold > summary { cursor: pointer; font-weight: 700; font-size: 16px; color: var(--kk-text); }
.kk-addfold[open] > summary, .kk-famfold[open] > summary { margin-bottom: 8px; }
.kk-addform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; margin-top: 8px; }
.kk-addform .kk-add-food { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.kk-addform input, .kk-addform select, .kk-fam-weight input, .kk-grid-member input, .kk-grid-member select { width: 100%; height: 38px; padding: 6px 9px; font: inherit; font-size: 14px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; }
.kk-addform button { grid-column: 1 / -1; }
.kk-added li strong .kk-link { margin-left: 8px; font-size: 13px; }
.kk-fam-who { border: 1px solid var(--kk-line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.kk-fam-who legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.kk-fam-who .kk-check, .kk-day-tools .kk-check { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-weight: 400; }
.kk-fam-who .kk-check input, .kk-day-tools .kk-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--kk-primary); }
.kk-member { border-top: 1px dashed var(--kk-line); padding: 8px 0; }
.kk-member > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--kk-primary); }
.kk-grid-member { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.kk-grid-member label { font-size: 13px; }
.kk-grid-member .kk-row { grid-column: 1 / -1; align-items: center; }
.kk-fam-weight { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 14px; }
.kk-shares li strong { color: var(--kk-primary); }
.kk-day-tools { grid-template-columns: 1fr 1fr; align-items: start; }
.kk-day-tools > details > summary { cursor: pointer; margin: 0 0 8px; }
.kk-day-tools .kk-form label { display: block; margin: 6px 0; }
.kk-day-tools .kk-form input:not([type=checkbox]), .kk-day-tools select { width: 100%; height: 38px; padding: 6px 9px; font: inherit; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; }
.kk-day-tools .kk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.kk-day-tools .kk-span2 { grid-column: 1 / -1; margin-top: 6px; }
.kk-day-tools .kk-inline { display: flex; gap: 8px; align-items: flex-end; margin: 6px 0 10px; }
.kk-day-tools .kk-inline label { flex: 1; margin: 0; }
.kk-day-tools select:disabled { opacity: .55; }
.kk-day-sum .kk-pie { width: 110px; height: 110px; }
.kk-day-done { justify-content: center; margin: 18px 0 4px; }
.kk-done-pill { font-size: 13px; vertical-align: middle; }
.kk-extras { margin-top: 14px; }
.kk-extras small { color: var(--kk-muted); }
@media (max-width: 720px) { .kk-day-tools { grid-template-columns: 1fr; } }
@media print { .kk-addfold, .kk-famfold { display: none; } }
.kk-cd-pre { font-weight: 400; }
@media (max-width: 640px) { .kk-cd-pre { display: none; } }
.kk-tabbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 16px; }
.kk-tabbar .kk-tabs { margin: 0; }
.kk-tabbar .kk-sync { font-size: 13px; color: var(--kk-muted); margin-left: auto; }
.kk-tabbar .kk-sync::before { content: "✓ "; color: var(--kk-primary); }
@media (max-width: 640px) { .kk-tabbar .kk-sync { margin-left: 0; width: 100%; } }
.kk-tabbar { padding-bottom: 14px; border-bottom: 1px solid var(--kk-line); }
.kk-tabbar .kk-tabs { padding: 0; border: 0; }

/* 1.9.0: leib, sama toit, magustoidu portsjon, kuupäevavalik, ostunimekirja vahemik */
.kk-bread { margin: 0 0 10px; padding: 10px 0 0; border-top: 1px solid var(--kk-line); }
.kk-bread label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.kk-bread select, .kk-same select, .kk-grid-resume select, .kk-datesel input[type=date], .kk-inline-unit input { height: 38px; padding: 6px 9px; font: inherit; font-size: 14px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; }
.kk-bread .kk-sub { margin: 6px 0 0; }
.kk-same { margin: 0 0 16px; }
.kk-same .kk-row { align-items: center; gap: 12px; }
.kk-same .kk-check { display: flex; align-items: center; gap: 8px; margin: 0; }
.kk-same .kk-check input { width: 20px; height: 20px; accent-color: var(--kk-primary); }
.kk-same .kk-sub { margin: 6px 0 0; }
.kk-meal-group { outline: 2px solid var(--kk-label); outline-offset: -2px; }
.kk-sweet-pill { display: inline-block; margin-top: 6px; font-size: 12px; }
.kk-grid-resume { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin: 8px 0; }
.kk-shop .kk-grid-resume { grid-template-columns: 1fr 1fr; max-width: 520px; }
.kk-grid-resume label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.kk-grid-resume select { width: 100%; }
.kk-datesel .kk-form { margin: 8px 0; }
.kk-datesel label { display: flex; flex-direction: column; gap: 4px; max-width: 320px; }
.kk-datesel .kk-row { margin: 8px 0; }
.kk-moon { font-size: 14px; color: var(--kk-text); background: #f6efe9; border-radius: 10px; padding: 8px 12px; }
.kk-inline-unit { display: block; margin: 6px 0; }
.kk-inline-unit span { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.kk-inline-unit input { width: 120px; }

/* 2.0.0: vestlus */
.kk-chat { max-width: 820px; }
.kk-chat .kk-row { margin-bottom: 10px; }
.kk-chat-list { height: min(60vh, 560px); overflow-y: auto; border: 1px solid var(--kk-line); border-radius: 12px; padding: 12px; background: #fbf8f6; display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.kk-msg { max-width: 82%; align-self: flex-start; background: #fff; border: 1px solid var(--kk-line); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.kk-msg.is-mine { align-self: flex-end; background: #f3e7ee; border-radius: 12px 12px 4px 12px; }
.kk-msg.is-staff { border-color: var(--kk-label); }
.kk-msg-meta { margin: 0 0 2px; font-size: 12px; color: var(--kk-muted); }
.kk-msg-meta b { color: var(--kk-text); }
.kk-msg-tools .kk-link { font-size: 12px; margin-left: 6px; }
.kk-msg-text { margin: 0; font-size: 15px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.kk-chat-form { display: flex; gap: 8px; align-items: flex-end; }
.kk-chat-form textarea { flex: 1; min-height: 46px; max-height: 160px; resize: vertical; padding: 10px 12px; font: inherit; font-size: 15px; border: 1px solid var(--kk-line); border-radius: 10px; background: #fff; }
.kk-chat-note { font-size: 12px; margin-top: 6px; }
.kk-badge { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #b3261e; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.kk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 640px) { .kk-msg { max-width: 92%; } .kk-chat-list { height: 55vh; } }
/* privaatsõnumid */
.kk-chat { max-width: 980px; }
.kk-chat-nav .kk-btn { display: inline-flex; align-items: center; }
.kk-dm { display: grid; grid-template-columns: 280px 1fr; gap: 16px; margin-top: 12px; }
.kk-dm-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kk-dm-new { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.kk-dm-new select { height: 38px; padding: 6px 9px; font: inherit; font-size: 14px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; }
.kk-dm-convs { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.kk-dm-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; text-align: left; padding: 8px 10px; border: 1px solid var(--kk-line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--kk-text); }
.kk-dm-item.is-active { border-color: var(--kk-primary); background: #f3e7ee; }
.kk-dm-title { font-weight: 700; font-size: 14px; }
.kk-dm-last { grid-column: 1 / -1; font-size: 13px; color: var(--kk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-dm-time { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--kk-muted); }
.kk-dm-pref { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.kk-dm-pref input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--kk-primary); }
.kk-dm-main { min-width: 0; }
.kk-dm-main .kk-chat-list { margin-top: 4px; }
.kk-dm-head { align-items: center; gap: 10px; }
.kk-dm-head .kk-h4 { margin: 0; }
.kk-dm-back { display: none; }
.kk-dm-empty { padding: 40px 0; text-align: center; }
.kk-msg-name { font-weight: 700; color: var(--kk-text); text-decoration: none; padding: 0; }
.kk-msg-name:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .kk-dm { grid-template-columns: 1fr; }
  .kk-dm.has-open .kk-dm-side { display: none; }
  .kk-dm:not(.has-open) .kk-dm-main { display: none; }
  .kk-dm-back { display: inline; }
}

/* 2.2.0: vana rakenduse loogikaga vaated */
.kk-head { margin: 22px 0 12px; }
.kk-h2 { font-family: var(--kk-font-head, inherit); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 4px 0 8px; }
.kk-h2 small { font-size: 15px; font-family: var(--kk-font-body, inherit); font-weight: 400; }
.kk-fold > summary, .kk-subfold > summary, .kk-member > summary { cursor: pointer; font-weight: 700; }
.kk-fold > summary { font-size: 17px; }
.kk-fold[open] > summary { margin-bottom: 10px; }
.kk-subfold { border: 1px solid var(--kk-line); border-radius: 12px; padding: 10px 14px; margin: 10px 0; background: #fff; }
.kk-subfold > summary { font-size: 15px; }
.kk-subfold[open] > summary { margin-bottom: 8px; }
.kk-log + .kk-log { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--kk-line); }
.kk-fields { align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.kk-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.kk-form input:not([type=checkbox]):not([type=radio]), .kk-form select, .kk-form textarea, .kk-fields input, .kk-fields select, .kk-swap input, .kk-swap select, .kk-ing-tools input, .kk-ing-tools select, .kk-topup select, .kk-bread select, .kk-same select, .kk-dessert input, .kk-fold > label select, .kk-fold label input, .kk-fold label select { height: 38px; padding: 6px 9px; font: inherit; font-size: 14px; border: 1px solid var(--kk-line); border-radius: 8px; background: #fff; max-width: 100%; }
.kk-form textarea, .kk-card textarea { height: auto; min-height: 80px; width: 100%; padding: 8px 10px; font: inherit; border: 1px solid var(--kk-line); border-radius: 8px; }
.kk-form label { display: block; margin: 6px 0; }
.kk-form .kk-check, .kk-fold .kk-check { display: flex; gap: 8px; align-items: flex-start; }
.kk-check input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--kk-primary); }
.kk-plain { border: 0; padding: 0; margin: 0; }
.kk-grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.kk-grid5 label input, .kk-grid5 label select, .kk-grid2 label input, .kk-grid2 label select { width: 100%; }
@media (max-width: 900px) { .kk-grid5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kk-grid5, .kk-grid2 { grid-template-columns: 1fr; } }
.kk-ing { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.kk-ing-name { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kk-ing-tools { display: flex; flex-direction: column; gap: 6px; }
.kk-topup { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.kk-qty input { width: 84px; text-align: right; }
.kk-qty input.is-over { border-color: #b3261e; }
.kk-extras li { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.kk-extra-qty { width: 6rem; }
dl.kk-nutri-row { margin: 10px 0; }
dl.kk-nutri-row dt { font-size: 12px; color: var(--kk-muted); margin: 0; }
dl.kk-nutri-row dd { margin: 0; font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kk-energy { display: flex; align-items: center; gap: 16px; margin: 8px 0; }
.kk-energy svg { width: 96px; height: 96px; flex-shrink: 0; }
.kk-split-title { font-weight: 700; font-size: 14px; margin: 0; }
.kk-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.kk-carb-alert:empty { display: none; }
.kk-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.kk-day-kcal { font-size: 16px; margin: 14px 0 6px; }
.kk-shop-list { list-style: none; padding: 0; margin: 10px 0; }
.kk-shop-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--kk-line); }
.kk-shop-list .kk-check { margin: 0; }
.kk-shop-list input:checked + span { text-decoration: line-through; color: var(--kk-muted); }
.kk-sumgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kk-sumday .kk-energy svg { width: 72px; height: 72px; }
.kk-day-details p { margin: 2px 0; font-size: 14px; }
.kk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.kk-stat p { margin: 0 0 6px; color: var(--kk-muted); font-size: 14px; }
.kk-stat strong { font-size: 24px; }
.kk-sumcols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .kk-stats, .kk-sumcols { grid-template-columns: 1fr; } }
.kk-chart { width: 100%; height: auto; }
.kk-table-wrap { overflow-x: auto; }
.kk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.kk-table th, .kk-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--kk-line); white-space: nowrap; }
.kk-dessert { margin-top: 10px; }
.kk-dessert ul { margin: 6px 0; }
.kk-meals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; margin: 14px 0; }
.kk-meal .kk-meal-img { position: relative; }
.kk-weeks, .kk-days { margin: 10px 0; flex-wrap: wrap; gap: 8px; }
.kk-print-area { display: none; }
@media print {
  body.kk-printing-week > *:not(.kk-print-area) { display: none !important; }
  body.kk-printing-week .kk-print-area { display: block; }
  .kk-print-page { page-break-after: always; }
  .kk-noprint { display: none !important; }
  .kk-print-only { display: inline !important; }
  details > *:not([hidden]) { display: block; }
}
.kk-meals .kk-meal { display: flex !important; flex-direction: column; grid-row: auto !important; gap: 8px; }
.kk-meal .kk-meal-head { margin-bottom: 4px; }
dl.kk-nutri-row { grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); row-gap: 8px; }
.kk-energy figcaption { min-width: 0; }

/* 2.3.0 bännerpilt avaplokina */
.kk-hero-banner { margin: 0 0 18px; border-radius: 18px; overflow: hidden; line-height: 0; background: #f6ece9; }
.kk-hero-banner img { display: block; width: 100%; height: auto; }
@media print { .kk-hero-banner { display: none !important; } }

/* 2.4.0 telefoni äpp */
.kk-install-btn[hidden] { display: none !important; }
.kk-install-help ol { padding-left: 20px; line-height: 1.6; margin: 12px 0; }
.kk-install-help li { margin: 6px 0; }
@media (display-mode: standalone) { .kk-install-btn { display: none !important; } body { padding-top: env(safe-area-inset-top); } }
@media print { .kk-install-btn { display: none !important; } }
.kk-topnav { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kk-topnav .kk-btn { white-space: nowrap; padding: 7px 12px; font-size: 13px; }
.kk-brand-name { white-space: nowrap; }
@media (max-width: 960px) { .kk-print-btn { display: none; } }
@media (max-width: 520px) { .kk-install-btn { padding: 7px 10px; } }
/* 2.4.2 ülemise riba nupud ühekõrgused */
.kk-topnav .kk-btn { height: 36px; box-sizing: border-box; display: inline-flex; align-items: center; line-height: 1; }
.kk-topnav .kk-user-btn { padding: 0 12px 0 5px; }
.kk-topnav .kk-avatar { width: 26px; height: 26px; }
@media (max-width: 700px) { .kk-topnav .kk-user-btn { padding: 0 5px; } }

/* 2.5.0 printimine nagu vanal lehel (A4, 13 mm veerised, kompaktne) */
@page { size: A4; margin: 13mm; }
@media print {
  html { margin-top: 0 !important; }
  body { background: #fff !important; color: #000; font-size: 10pt; line-height: 1.4; }
  .kk-topbar, .kk-footer, .kk-hero, .kk-hero-banner, .kk-tabbar, .kk-weeks, .kk-days, .kk-noprint, #wpadminbar, .kk-modal,
  .kk-app button, .kk-app input, .kk-app select, .kk-app textarea, .kk-app form, .kk-print-area button,
  .kk-carb-alert, .kk-fav, .kk-swap, .kk-ing-tools, .kk-topup, .kk-same, .kk-addfold, .kk-famfold { display: none !important; }
  .kk-wrap { max-width: none; padding: 0; }
  .kk-main { padding: 0; }
  .kk-print-only { display: initial !important; }
  /* voldikud: pealkiri peidus, sisu nähtav */
  .kk-fold, .kk-subfold { border: 0 !important; padding: 0 !important; margin: 0 0 6px !important; background: none !important; }
  .kk-fold > summary, .kk-subfold > summary, .kk-ing-fold > summary { display: none !important; }
  .kk-print-open { border: 1px solid #ccc !important; border-radius: 8px; padding: 6px 9px !important; break-inside: avoid; }
  .kk-card { background: #fff !important; border: 1px solid #ccc; padding: 9px; break-inside: avoid; box-shadow: none !important; }
  .kk-meals { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 7px; margin: 6px 0; }
  .kk-meals .kk-meal { display: block !important; }
  .kk-meal-img { max-height: 45mm; overflow: hidden; background: none; }
  .kk-meal-img img { max-height: 45mm; width: auto; max-width: 100%; object-fit: contain; }
  .kk-ingredients li { min-height: 0; padding: 2px 0; }
  .kk-head, .kk-heading { margin: 0 0 10px; }
  h2, .kk-h2 { font-size: 22pt; }
  h3, .kk-h3, .kk-meal-title { font-size: 14pt; margin: 3px 0 6px; }
  .kk-h4 { font-size: 11pt; margin: 3px 0; }
  .kk-log { padding-block: 3px; font-size: 8.5pt; line-height: 1.3; }
  .kk-log .kk-sub { margin-top: 2px; }
  .kk-meal-steps { margin-top: 5px; font-size: 8.5pt; line-height: 1.3; }
  .kk-steps-h { margin-bottom: 2px; font-size: 9pt; }
  .kk-nutri-row, .kk-meal-nutri dl { gap: 3px 10px; margin-top: 4px; padding-top: 3px; }
  .kk-meal-nutri dt, .kk-nutrition-note { font-size: 7.5pt; }
  .kk-meal-nutri dd { font-size: 8.5pt; }
  .kk-energy { margin-top: 4px; padding: 4px 0; gap: 8px; }
  .kk-energy svg { width: 42px !important; height: 42px !important; }
  .kk-energy figcaption, .kk-energy ul { font-size: 7.5pt; }
  .kk-energy, .kk-energy *, .kk-swatch { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .kk-week-note { margin: 0 0 6px; padding: 6px 9px; font-size: 8.5pt; line-height: 1.35; }
  .kk-week-note h3 { margin: 0 0 3px; font-size: 11pt; }
  .kk-shop-list { columns: 2; column-gap: 24px; }
  .kk-shop-list li { break-inside: avoid; padding: 2px 0; }
  .kk-stats { display: flex !important; gap: 7px; }
  .kk-stats .kk-card { flex: 1; }
  .entries-scroll, .kk-table-wrap { overflow: visible !important; }
  /* terve nädal: iga päev omal lehel */
  .kk-print-page { break-after: page; page-break-after: always; margin: 0; }
  .kk-print-page:last-child { break-after: auto; page-break-after: auto; }
  .kk-print-page .kk-meals { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .kk-print-page .kk-meal-title { font-size: 14pt; }
  .kk-print-page .kk-meal-img, .kk-print-page .kk-split { display: none !important; }
}
@media print {
  .kk-print-logs { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 6px 9px; }
  .kk-print-logs .kk-log { border: 0 !important; margin: 0 !important; padding: 0 !important; }
  .kk-print-logs .kk-log .kk-sub { font-size: 7.5pt; line-height: 1.25; }
  .kk-print-page .kk-head { margin-bottom: 6px; }
}
@media print {
  [data-family-portion], .kk-bread label, [hidden] { display: none !important; }
  .kk-bread:not(:has(.kk-print-only)) { display: none !important; }
}

/* 2.6.0 telefoni menüü */
.kk-burger, .kk-mnav { display: none; }
.kk-topbar-inner { position: relative; }
@media (max-width: 700px) {
  .kk-topbar-inner { flex-wrap: nowrap !important; }
  .kk-topnav { display: none !important; }
  .kk-burger { display: inline-flex !important; align-items: center; gap: 8px; margin-left: auto; height: 40px; padding: 0 14px; font-size: 14px; }
  .kk-burger-icon { display: inline-grid; gap: 3px; width: 16px; }
  .kk-burger-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; }
  .kk-mnav:not([hidden]) { display: block; position: absolute; top: calc(100% + 6px); right: 12px; left: 12px; z-index: 200; background: var(--kk-card, #fff); border: 1px solid var(--kk-line); border-radius: 14px; box-shadow: 0 12px 32px rgba(40, 20, 35, .18); padding: 8px; max-height: calc(100vh - 90px); overflow-y: auto; }
  .kk-mnav-list { list-style: none; margin: 0; padding: 0; }
  .kk-mnav-list li { margin: 0; }
  .kk-mnav-list a, .kk-mnav-list button { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: none; border-radius: 10px; color: var(--kk-text); font: inherit; font-size: 16px; text-decoration: none; cursor: pointer; }
  .kk-mnav-list a:hover, .kk-mnav-list button:hover, .kk-mnav-list a:focus-visible, .kk-mnav-list button:focus-visible { background: #f6ecf0; outline: none; }
  .kk-mnav-list button[hidden] { display: none; }
  .kk-mnav-secondary { border-top: 1px solid var(--kk-line); margin-top: 6px; padding-top: 6px; }
  .kk-mnav-secondary a, .kk-mnav-secondary button { font-size: 15px; color: var(--kk-muted, #685864); }
}
@media print { .kk-burger, .kk-mnav { display: none !important; } }

/* 2.8.0 avaleht enne sisselogimist – täpselt nagu test.livskoden.no */
.kk-land { --kk-land-ink: #49112e; --kk-land-bg: #fbf6f5; display: grid; gap: 18px; margin: 0 0 30px; font-family: 'Manrope', var(--kk-font-body, system-ui), sans-serif; color: var(--kk-land-ink); }
.kk-land-row { display: grid; gap: 18px; }
.kk-land-box { background: var(--kk-land-bg); border-radius: 0; padding: 24px; text-align: center; }
.kk-land-box > * { max-width: 645px; margin-left: auto; margin-right: auto; }
.kk-land-h { font-family: inherit; font-weight: 400; font-size: 32px; line-height: 1.12; letter-spacing: 0; margin: 0 auto 18px; color: var(--kk-land-ink); }
.kk-land-lead { max-width: 645px; margin: 0 auto; font-size: 22px; font-weight: 300; line-height: 1.4; color: var(--kk-land-ink); }
.kk-land-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 18px auto 0; }
.kk-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 57px; padding: 0 32px; border-radius: 999px; font-family: inherit; font-size: 18px; font-weight: 300; text-decoration: none; cursor: pointer; border: 0; transition: transform .15s, box-shadow .15s; }
.kk-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(73, 17, 46, .16); }
.kk-pill-dark { background: var(--kk-land-ink, #49112e); color: #fff !important; }
.kk-pill-light { background: #fff; color: var(--kk-land-ink, #49112e) !important; }
.kk-pill[hidden] { display: none; }
.kk-land-small { margin: 20px auto 0; font-size: 14px; font-weight: 300; color: var(--kk-land-ink); text-align: center; }
.kk-land-login { margin: 22px auto 0; max-width: 520px; text-align: left; font-family: var(--kk-font-body, system-ui), sans-serif; }
.kk-land-login .kk-auth { margin: 0; }
.kk-land-prices { text-align: center; padding: 48px 0 24px; color: #111; }
.kk-land-prices .kk-land-h, .kk-land-prices > .kk-land-lead { color: #111; }
.kk-land-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; margin: 19px 0; }
.kk-land-card { display: flex; flex-direction: column; align-items: center; padding: 28px 20px; border: 1px solid #ecdfe2; border-radius: 18px; background: var(--kk-land-bg); text-decoration: none; color: var(--kk-land-ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.kk-land-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(73, 17, 46, .1); }
.kk-land-card.is-selected { border-color: var(--kk-land-ink); box-shadow: inset 0 0 0 1px var(--kk-land-ink); }
.kk-land-card:focus-visible { outline: 3px solid var(--kk-land-ink); outline-offset: 2px; }
.kk-land-card-len { font-size: 22px; font-weight: 400; line-height: 1.15; }
.kk-land-card-price { font-size: 36px; font-weight: 600; line-height: 1.4; margin-top: 19px; }
.kk-land-card-per { font-size: 14px; font-weight: 300; margin-top: 19px; }
.kk-land-cycle { margin-top: 0; color: #111; }
.kk-land-prices .kk-land-small { color: #111; opacity: .75; }
.kk-land-help { text-align: center; font-size: 22px; font-weight: 300; margin: 18px 0 0; color: #111; }
.kk-land-help a { color: inherit; }
.kk-land-tagline { text-align: center; font-size: 14px; font-weight: 300; color: #111; opacity: .75; margin: 18px 0 0; }
.kk-land-actions:not(:has(> :not([hidden]))) { display: none; }
body:not(.logged-in) .kk-hero-banner { border-radius: 0; }
@media (max-width: 900px) { .kk-land-cards { gap: 18px; } }
@media (max-width: 760px) {
  .kk-land-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .kk-land-h { font-size: 27px; }
  .kk-land-lead { font-size: 19px; }
  .kk-land-card { padding: 22px 12px; }
  .kk-land-card-price { font-size: 30px; }
  .kk-pill { width: 100%; font-size: 17px; }
}
body:has(.kk-land), body:has(.kk-land) .kk-topbar, body:has(.kk-land) .kk-footer { background: #fff; }

/* 2.8.2 lilla avaplokk täpselt nagu vanal lehel */
.kk-hero { background: var(--kk-primary, #44253e); color: #fff5f8; border-radius: 28px; margin: 24px 0; min-height: 350px; display: flex; align-items: center; justify-content: space-between; overflow: hidden; padding: clamp(24px, 6vw, 65px); position: relative; gap: 0; }
.kk-hero-text { z-index: 1; }
.kk-hero .kk-eyebrow { font-size: .72rem; letter-spacing: .15em; font-weight: 750; text-transform: uppercase; color: #eeb4cc; margin: 0 0 14px; }
.kk-hero-title { font-family: Georgia, serif; font-weight: 400; font-size: clamp(3.1rem, 8vw, 6.5rem); line-height: 1.05; letter-spacing: -.065em; margin: 0; max-width: none; color: #fff5f8; }
.kk-hero-title .kk-dot { color: #eeb4cc; }
.kk-hero-sub { max-width: 34ch; margin: 22px 0 0; font-size: 16px; line-height: 1.55; color: #f5dce8; opacity: 1; }
.kk-orbit { display: flex; align-items: center; gap: 12px; transform: rotate(-24deg); margin-right: 1vw; flex-shrink: 0; }
.kk-orbit i { display: block; border: 1px solid #cc8ca9; width: clamp(28px, 6vw, 72px); aspect-ratio: 1; border-radius: 100%; background: #f0b8d1; }
.kk-orbit i:nth-child(2) { background: linear-gradient(90deg, #f0b8d1 50%, transparent 50%); }
.kk-orbit i:nth-child(3) { background: linear-gradient(90deg, transparent 50%, #f0b8d1 50%); }
.kk-orbit i:nth-child(4) { background: transparent; }
@media (max-width: 820px) { .kk-hero { flex-direction: row; align-items: center; padding: clamp(24px, 6vw, 65px); } }
@media (max-width: 650px) {
  .kk-hero { min-height: 300px; }
  .kk-orbit { position: absolute; right: 12px; top: 18px; opacity: .45; margin: 0; }
}
.kk-wrap { max-width: 1130px; padding: 0 26px; }
@media (max-width: 650px) { .kk-wrap { padding: 0 14px; } }
@media print { .kk-wrap { max-width: none; padding: 0; } }

/* 2.9.0 retseptid: tsüklinädala märgis ja energia pildil */
.kk-cycle-badge { display: inline-block; max-width: 100%; margin: 4px 4px 8px 0; padding: 3px 10px; border: 1px solid #d8b8cb; border-radius: 999px; background: #f7eef3; color: #65324f; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: normal; }
.kk-cycle-badge[data-recipe-cycle="unassigned"] { background: #f4f0f2; color: #7a6a73; border-color: #e2d6dc; }
.kk-meal-img, .kk-rcard .kk-meal-img { position: relative; }
.kk-kcal-chip { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--kk-primary, #44253e); font-size: 13.5px; font-weight: 700; line-height: 1.2; box-shadow: 0 2px 8px rgba(40, 20, 35, .18); pointer-events: none; }
.kk-rcard .kk-cycle-badge { margin-top: 2px; }
@media print { .kk-kcal-chip, .kk-cycle-badge { display: none !important; } }
.kk-cycle-badge { align-self: flex-start; justify-self: start; width: auto; }

/* 2.10.0 paketi aktiveerimine */
.kk-activate { border: 2px solid var(--kk-primary, #44253e); margin: 0 0 18px; }
.kk-activate .kk-h3 { margin: 4px 0 8px; }
.kk-act-form { border-top: 1px solid var(--kk-line, #eadde4); margin-top: 14px; padding-top: 14px; }
.kk-act-pkg { font-size: 18px; margin: 0 0 8px; }
.kk-act-when { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.kk-act-when .kk-check { display: inline-flex; align-items: center; gap: 7px; }
.kk-act-date { display: flex; align-items: center; gap: 8px; flex-basis: 100%; }
.kk-act-date[hidden] { display: none; }
.kk-act-date input { max-width: 190px; }
.kk-act-ok { border-left: 4px solid #3b7a57; margin: 0 0 14px; }
.kk-act-err { border-left: 4px solid #b42334; margin: 0 0 14px; }
.kk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 2.10.1 energiajaotuse ketas ka retseptikaardil */
.kk-rcard-energy { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--kk-line, #eadde4); }
.kk-rcard-energy .kk-energy { margin: 0; padding: 0; border: 0; gap: 14px; align-items: center; }
.kk-rcard-energy .kk-energy svg { width: 64px; height: 64px; flex: none; }
.kk-rcard-energy .kk-split-title { font-size: 12.5px; margin: 0 0 3px; }
.kk-rcard-energy .kk-split-legend { font-size: 13px; gap: 2px 12px; }

/* 2.11.0 avalikud retseptilehed ja loend */
.kk-crumbs { font-size: 13.5px; color: var(--kk-muted, #685864); margin: 18px 0 12px; }
.kk-crumbs a { color: inherit; }
.kk-pub-head { margin: 6px 0 18px; }
.kk-pub-head .kk-land-lead { margin: 6px 0 0; max-width: 720px; font-size: 17px; }
.kk-pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 16px 0; }
.kk-pub-rcard { display: flex; flex-direction: column; gap: 6px; padding: 12px; text-decoration: none; color: var(--kk-text); transition: transform .15s, box-shadow .15s; text-align: left; }
.kk-pub-rcard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(69, 36, 58, .1); }
.kk-pub-rcard .kk-meal-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #f6ecf0; }
.kk-pub-rcard .kk-meal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kk-pub-rcard .kk-rcard-title { font-family: var(--kk-font-heading); font-size: 19px; line-height: 1.2; color: var(--kk-primary); }
.kk-land-examples { text-align: center; padding: 30px 0 10px; }
.kk-land-examples .kk-pub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .kk-land-examples .kk-pub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kk-teaser-cta { margin-top: 18px; padding: 18px; border-radius: 14px; background: #faf1f1; }
.kk-teaser-cta .kk-land-actions { justify-content: flex-start; }
.kk-recipe-teaser .kk-meal-img { position: relative; }
.kk-pub-more { margin: 22px 0; }
.kk-pager { margin: 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.kk-pager .page-numbers { padding: 6px 12px; border: 1px solid var(--kk-line); border-radius: 8px; text-decoration: none; color: var(--kk-text); }
.kk-pager .current { background: var(--kk-primary); color: #fff; border-color: var(--kk-primary); }

/* 2.11.1 sotsiaalmeedia ikoonid */
.kk-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kk-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.kk-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--kk-line, #eadde4); background: #fff; color: var(--kk-primary, #44253e); text-decoration: none; font-size: 14px; transition: background .15s, color .15s; }
.kk-social a:hover, .kk-social a:focus-visible { background: var(--kk-primary, #44253e); color: #fff; }
.kk-social-land { justify-content: center; margin: 14px 0 0; }
.kk-social-footer a { padding: 6px 12px; font-size: 13px; }
@media print { .kk-social { display: none !important; } }
