/* Družinska tablica – svetla, topla "pastel" tema */
:root {
  --bg: #f6f4ef;
  --card: #ffffff;
  --line: #ece9e2;
  --line-2: #f1efe9;
  --text: #1e2633;
  --muted: #858a94;
  --dark: #1e2633;

  --yellow-t: #f8f1df;  --yellow-tx: #6b5a2c;
  --blue-t: #dde9f6;    --blue-tx: #2c4a6b;
  --lilac-t: #efe3f6;   --lilac-tx: #5b3a72;

  --g: #3fb26b;  --g-bg: #e4f5e9;  --g-tx: #2a8a4f;
  --y: #e6b84a;  --y-bg: #fbf1d8;  --y-tx: #9a7420;
  --r: #e26d6d;  --r-bg: #fbe4e4;  --r-tx: #bf4545;

  --shadow: 0 1px 2px rgba(30, 38, 51, .04);
  --radius: 22px;
  --dock-h: 92px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: calc(16px * var(--fs, 1));
  overflow: hidden;
  user-select: none;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:active { transform: scale(.97); }
svg { display: block; }

.app {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) 3fr;
  gap: 20px;
  height: 100vh;
  padding: 20px 20px calc(var(--dock-h) + 8px);
}
.col { display: flex; flex-direction: column; gap: 20px; min-height: 0; }

/* ---------- kartice ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.card.grow { flex: 1; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 16px 20px 8px; }
.card-h h2 { margin: 0; font-size: calc(17px * var(--fs, 1)); font-weight: 600; flex: 1; letter-spacing: -.1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-ic {
  width: 38px; height: 38px; border-radius: 12px; background: #f2f1ed; border: 1px solid var(--line);
  display: grid; place-items: center; color: #5a606b; flex-shrink: 0;
}
.h-ic svg { width: 19px; height: 19px; }
.h-sub { color: var(--muted); font-weight: 500; font-size: calc(14px * var(--fs, 1)); margin-left: 4px; }
.card-b { padding: 4px 20px 18px; overflow-y: auto; flex: 1; min-height: 0; }
.card-b::-webkit-scrollbar { width: 0; }
.link-btn { color: var(--text); font-weight: 500; font-size: calc(14px * var(--fs, 1)); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.round-btn {
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: calc(18px * var(--fs, 1)); color: #4b515c;
}
.sec-title { color: var(--muted); font-size: calc(12px * var(--fs, 1)); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 14px 4px 8px; }
.empty { color: var(--muted); padding: 10px 2px; font-size: calc(15px * var(--fs, 1)); }

/* ---------- hero (pregled dneva) ---------- */
.hero { flex: 0 0 auto; }
.hero-main { display: flex; align-items: flex-end; gap: 14px; padding: 2px 20px 14px; }
.clock { font-size: calc(56px * var(--fs, 1)); font-weight: 600; letter-spacing: -2.5px; line-height: .95; font-variant-numeric: tabular-nums; }
.hero-main .d1 { font-size: calc(18px * var(--fs, 1)); font-weight: 600; }
.hero-main .d2 { color: var(--muted); font-size: calc(14px * var(--fs, 1)); margin-top: 2px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px 16px; }
.tile { border-radius: 16px; padding: 10px 12px; min-width: 0; }
.tile .tl { display: flex; align-items: center; gap: 6px; font-size: calc(13px * var(--fs, 1)); font-weight: 500; white-space: nowrap; }
.tile .tl svg { width: 15px; height: 15px; flex-shrink: 0; }
.tile .tv { font-size: calc(26px * var(--fs, 1)); font-weight: 600; margin: 8px 0 3px; line-height: 1; }
.tile .tv.sm { font-size: calc(18px * var(--fs, 1)); margin: 11px 0 6px; }
.tile .ts { font-size: calc(12.5px * var(--fs, 1)); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-yellow { background: var(--yellow-t); color: var(--yellow-tx); }
.t-blue { background: var(--blue-t); color: var(--blue-tx); }
.t-lilac { background: var(--lilac-t); color: var(--lilac-tx); }
.t-lvl.lvl-1 { background: var(--g-bg); color: var(--g-tx); }
.t-lvl.lvl-2 { background: var(--y-bg); color: var(--y-tx); }
.t-lvl.lvl-3 { background: var(--r-bg); color: var(--r-tx); }

.members-row { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 10px 20px 12px; border-top: 1px solid var(--line-2); }
.member { display: flex; align-items: center; gap: 8px; font-size: calc(14px * var(--fs, 1)); font-weight: 500; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: calc(17px * var(--fs, 1)); color: #fff; flex-shrink: 0;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.avatar.sm { width: 32px; height: 32px; font-size: calc(13px * var(--fs, 1)); border-width: 2px; }
.avatar.xs { width: 26px; height: 26px; font-size: calc(11px * var(--fs, 1)); border-width: 2px; }

/* ---------- vrstice (jedilnik, nakup) ---------- */
.line-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 2px;
  border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.line-item:last-child { border-bottom: 0; }
.line-item .txt { flex: 1; min-width: 0; }
.line-item .t1 { font-size: calc(15.5px * var(--fs, 1)); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-item .t1.none { color: #b0b4bb; font-weight: 400; }
.line-item .t2 { color: var(--muted); font-size: calc(12.5px * var(--fs, 1)); margin-bottom: 2px; }
.li-ic { width: 36px; height: 36px; border-radius: 12px; background: #f6f4ef; display: grid; place-items: center; font-size: calc(17px * var(--fs, 1)); flex-shrink: 0; }
.li-act { color: #a3a8b0; }
.li-act svg { width: 17px; height: 17px; }
.cb {
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #c9ccd2; flex-shrink: 0;
  display: grid; place-items: center; font-size: calc(13px * var(--fs, 1)); color: #fff; font-weight: 700;
}
.shop.done .cb { background: var(--g); border-color: var(--g); }
.shop.done .t1 { text-decoration: line-through; color: var(--muted); }
.shop .x { color: #b0b4bb; font-size: calc(22px * var(--fs, 1)); padding: 0 4px; }
.count-badge { background: var(--blue-t); color: var(--blue-tx); border-radius: 999px; font-size: calc(12px * var(--fs, 1)); font-weight: 600; padding: 3px 9px; margin-left: 8px; vertical-align: 2px; }

.shop-add { display: flex; gap: 8px; margin: 2px 0 6px; }
.inp {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; outline: none; width: 100%;
}
textarea.inp { resize: vertical; min-height: 60px; line-height: 1.45; font: inherit; color: inherit; }
.inp:focus { border-color: #9fb7d3; box-shadow: 0 0 0 3px #e7eef7; }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.btn-primary { background: var(--dark); color: #fff; border-radius: 14px; padding: 12px 18px; font-weight: 600; }
.btn-primary.sq { width: 48px; padding: 0; display: grid; place-items: center; flex-shrink: 0; }
.btn-primary.sq svg { width: 20px; height: 20px; }
.btn-soft { background: #f2f1ed; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 500; }
.btn-danger { background: var(--r-bg); color: var(--r-tx); border-radius: 12px; padding: 10px 14px; font-weight: 600; }

/* ---------- koledar ---------- */
.week-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 8px; }
.week-h h2 { margin: 0; font-size: calc(17px * var(--fs, 1)); font-weight: 600; flex: 1; }
.week-h .range { color: var(--muted); font-weight: 400; font-size: calc(14px * var(--fs, 1)); margin-left: 8px; }
.legend { display: flex; gap: 6px; margin-right: 6px; }
.legend span { font-size: calc(12.5px * var(--fs, 1)); font-weight: 500; padding: 5px 11px; border-radius: 999px; }
.legend span::before { content: "● "; }
.legend .l1 { background: var(--g-bg); color: var(--g-tx); }
.legend .l2 { background: var(--y-bg); color: var(--y-tx); }
.legend .l3 { background: var(--r-bg); color: var(--r-tx); }

.weeks { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 0 16px 16px; gap: 4px; }
.week-label { font-size: calc(12px * var(--fs, 1)); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 6px 6px 4px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; flex: 1; min-height: 0; }
.wd {
  display: flex; flex-direction: column; min-height: 0; border-radius: 16px;
  background: #fbfaf7; border: 1px solid var(--line-2);
}
.wd.sel { border-color: #b9c9dc; background: #fff; box-shadow: 0 0 0 3px #eef3f9; }
.wd.past { opacity: .55; }
.wd-h { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 8px; cursor: pointer; }
.wd-h .n { font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.day-circle {
  min-width: 36px; height: 36px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center;
  font-size: calc(15px * var(--fs, 1)); font-weight: 600;
}
.lvl-1 .day-circle { background: var(--g-bg); color: var(--g-tx); }
.lvl-2 .day-circle { background: var(--y-bg); color: var(--y-tx); }
.lvl-3 .day-circle { background: var(--r-bg); color: var(--r-tx); }
.wd.today .day-circle { background: var(--dark); color: #fff; }
.wd.today .wd-h .n { color: var(--text); }
.wd-b { padding: 2px 6px 6px; overflow-y: auto; flex: 1; }
.wd-b::-webkit-scrollbar { width: 0; }
.chip {
  font-size: calc(13px * var(--fs, 1)); line-height: 1.3; padding: 7px 8px 7px 14px; border-radius: 10px; margin-bottom: 5px;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; position: relative; font-weight: 500;
}
.chip::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--y); }
.chip.i1::before { background: var(--g); }
.chip.i3::before { background: var(--r); }
.chip.i3 { background: #fff8f8; border-color: #f6d6d6; }
.chip .tm { display: block; color: var(--muted); font-size: calc(11.5px * var(--fs, 1)); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip.task-chip { background: transparent; border-style: dashed; color: #50565f; }
.chip.task-chip::before { display: none; }
.chip.task-chip { padding-left: 8px; }
.chip.task-chip.done { text-decoration: line-through; opacity: .5; }
.chip .tick { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c3c7cd; margin-right: 6px; font-size: calc(10px * var(--fs, 1)); vertical-align: -3px; color: #fff; }
.chip.task-chip.done .tick { background: var(--g); border-color: var(--g); }
.chip .tm-in { color: var(--muted); font-size: calc(11.5px * var(--fs, 1)); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.wd-meal { margin: 0 6px 6px; font-size: calc(12px * var(--fs, 1)); color: var(--yellow-tx); background: var(--yellow-t); border-radius: 10px; padding: 6px 8px; overflow-wrap: anywhere; cursor: pointer; }

/* ---------- dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 8px 24px rgba(30, 38, 51, .08); z-index: 40;
}
.dock button {
  width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; color: #4b515c;
}
.dock button svg { width: 22px; height: 22px; }
.dock button.main { width: 64px; height: 64px; background: var(--dark); border-color: var(--dark); color: #fff; }
.dock button.main svg { width: 26px; height: 26px; }
.dock button.on { background: #f2f1ed; }
.dock button.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(30, 38, 51, .25); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-bg.open { display: flex; }
.modal {
  background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(30, 38, 51, .18);
  width: min(720px, 94vw); max-height: 90vh; overflow-y: auto; padding: 24px; user-select: text;
  animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.modal.wide { width: min(1080px, 96vw); }
.modal h3 { margin: 0 0 18px; font-size: calc(20px * var(--fs, 1)); font-weight: 600; }
.modal-close { float: right; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: #4b515c; }
.row { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; }
.row label { color: var(--muted); font-size: calc(13px * var(--fs, 1)); font-weight: 500; display: block; margin: 0 0 6px 2px; }
.imp-pick { display: flex; gap: 10px; }
.imp-pick button { flex: 1; padding: 14px; border-radius: 14px; border: 2px solid transparent; font-weight: 600; }
.imp-pick .p1 { background: var(--g-bg); color: var(--g-tx); }
.imp-pick .p2 { background: var(--y-bg); color: var(--y-tx); }
.imp-pick .p3 { background: var(--r-bg); color: var(--r-tx); }
.imp-pick .p1.on { border-color: var(--g); }
.imp-pick .p2.on { border-color: var(--y); }
.imp-pick .p3.on { border-color: var(--r); }
.days-pick { display: flex; gap: 8px; }
.days-pick button { flex: 1; padding: 12px 0; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 500; }
.days-pick button.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .sub { color: var(--muted); font-size: calc(13px * var(--fs, 1)); word-break: break-all; }
.err { color: var(--r-tx); font-size: calc(13px * var(--fs, 1)); font-weight: 500; }
.ok { color: var(--g-tx); font-size: calc(13px * var(--fs, 1)); font-weight: 500; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; background: #f2f1ed; padding: 4px; border-radius: 14px; }
.tabs button { flex: 1; padding: 10px; border-radius: 11px; font-weight: 500; color: #4b515c; }
.tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(30, 38, 51, .1); }
.help { background: var(--blue-t); color: var(--blue-tx); border-radius: 14px; padding: 14px 16px; font-size: calc(14px * var(--fs, 1)); line-height: 1.6; margin-bottom: 14px; }
.help b { color: #1d3651; }
.color-inp { width: 44px; height: 44px; border: 0; background: none; padding: 0; }
.meal-grid { display: grid; grid-template-columns: 110px repeat(3, 1fr); gap: 8px; align-items: center; }
.meal-grid .h { color: var(--muted); font-size: calc(13px * var(--fs, 1)); font-weight: 500; padding-left: 4px; }
.meal-grid .dn { font-weight: 500; font-size: calc(14px * var(--fs, 1)); }
.meal-grid .dn.today { font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.quick button { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 12px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quick .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; }
.quick .ic svg { width: 26px; height: 26px; }

.toast { position: fixed; bottom: calc(var(--dock-h) + 16px); left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; font-weight: 500; padding: 11px 20px; border-radius: 999px; z-index: 60; display: none; }
.toast.show { display: block; }

.login { display: grid; place-items: center; height: 100vh; }
.login .box { width: min(440px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; }

/* ---------- kosilo (tedensko) ---------- */
.line-item.compact { padding: 6px 2px; gap: 12px; }
.line-item.compact .dn { width: 38px; font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--muted); flex-shrink: 0; }
.line-item.compact .t1 { font-size: calc(14.5px * var(--fs, 1)); }
.line-item.compact .li-act svg { width: 15px; height: 15px; }
.line-item.is-today .dn { color: #fff; background: var(--dark); border-radius: 999px; text-align: center; padding: 3px 0; }
.line-item.is-today .t1 { font-weight: 600; }
.line-item.is-past { opacity: .5; }
.meal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.meal-plan { display: flex; flex-direction: column; gap: 8px; }
.mp-row { display: flex; align-items: center; gap: 12px; }
.mp-row .dn { width: 84px; font-weight: 600; font-size: calc(14px * var(--fs, 1)); flex-shrink: 0; }
.mp-row .dn small { color: var(--muted); font-weight: 400; }
.mp-row.is-today .dn { color: var(--g-tx); }

/* ---------- pošlji seznam ---------- */
.btn-primary.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: calc(14px * var(--fs, 1)); border-radius: 999px; white-space: nowrap; }
.btn-primary.pill svg { width: 16px; height: 16px; }
.send-box { background: var(--blue-t); color: var(--blue-tx); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.send-box .t2 { font-size: calc(12.5px * var(--fs, 1)); opacity: .8; }
.send-box .t1 { font-weight: 600; word-break: break-all; }
.send-list { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; line-height: 1.9; font-size: calc(15px * var(--fs, 1)); }

/* ---------- povezava telefona (QR) ---------- */
.pair { display: flex; gap: 24px; align-items: flex-start; }
.pair .qr { width: 240px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; }
.pair .qr svg { width: 100%; height: auto; }
.pair-txt { flex: 1; min-width: 0; }
.pair-txt h4 { margin: 4px 0 8px; font-size: calc(17px * var(--fs, 1)); font-weight: 600; }
.pair-txt ol { padding-left: 20px; line-height: 1.7; margin: 0 0 10px; }
.sub { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }


/* ---------- strani (nastavitve, statistika) ---------- */
.page { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 20px 20px 0; }
.page-h { display: flex; align-items: center; gap: 14px; padding: 0 0 18px; flex-wrap: wrap; }
.page-h h1 { margin: 0; font-size: calc(26px * var(--fs, 1)); font-weight: 600; letter-spacing: -.4px; flex: 1; }
.page-h .round-btn { width: 46px; height: 46px; }
.page-h .round-btn svg { width: 20px; height: 20px; }
.page-body { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 24px; }
.page-body::-webkit-scrollbar { width: 0; }
.page-split { display: grid; grid-template-columns: 240px minmax(0, 860px); gap: 20px; align-items: start; }
.page-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; }
.page-nav button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; font-weight: 500; color: #4b515c; text-align: left; }
.page-nav button svg { width: 20px; height: 20px; flex-shrink: 0; }
.page-nav button.on { background: #fff; color: var(--text); border: 1px solid var(--line); }
.page-main { padding: 22px 24px; overflow: visible; }
.page-sub { margin: 0 0 18px; font-size: calc(20px * var(--fs, 1)); font-weight: 600; }
.role-sel { width: 120px; flex-shrink: 0; }

.seg { display: flex; gap: 4px; background: #ebe8e1; padding: 4px; border-radius: 14px; }
.seg button { padding: 9px 16px; border-radius: 11px; font-weight: 500; color: #4b515c; font-size: calc(14px * var(--fs, 1)); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(30, 38, 51, .1); }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-tiles .tile { padding: 18px 20px; border-radius: 20px; }
.stat-tiles .tile .tl { font-size: calc(14px * var(--fs, 1)); }
.stat-tiles .tile .tv { font-size: calc(40px * var(--fs, 1)); margin: 16px 0 6px; }
.stat-tiles .tile .tv small { font-size: calc(18px * var(--fs, 1)); opacity: .7; font-weight: 500; }
.stat-tiles .tile .ts { font-size: calc(14px * var(--fs, 1)); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 14px; }
.stat-card .card-b { padding-bottom: 20px; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr 44px; align-items: center; gap: 12px; }
.bar-label { font-size: calc(14.5px * var(--fs, 1)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; background: #f2f1ed; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: #4e6f94; border-radius: 0 4px 4px 0; }
.bar-val { font-size: calc(14px * var(--fs, 1)); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.stack { display: flex; gap: 2px; height: 22px; border-radius: 8px; overflow: hidden; background: #f2f1ed; }
.stack div { min-width: 4px; }
.seg-g, .sw-g { background: var(--g); }
.seg-y, .sw-y { background: var(--y); }
.seg-r, .sw-r { background: var(--r); }
.stack-legend { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.stack-legend div { display: grid; grid-template-columns: 14px 1fr 50px 50px; align-items: center; gap: 10px; font-size: calc(14.5px * var(--fs, 1)); }
.stack-legend b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.stack-legend em { font-style: normal; color: var(--muted); text-align: right; font-size: calc(13px * var(--fs, 1)); }
.sw { width: 12px; height: 12px; border-radius: 4px; }
.mem-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.mem-row .grow { flex: 1; min-width: 0; }
.mem-row .t1 { font-weight: 500; }
.mem-row .t2 { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.mini { display: flex; align-items: center; gap: 8px; width: 140px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); font-variant-numeric: tabular-nums; }
.mini .bar-track { flex: 1; height: 8px; }

/* ---------- obvestilo za spanje ---------- */
.bedtime {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; color: #fff; cursor: pointer; overflow: hidden;
  background: radial-gradient(1200px 700px at 50% 120%, #3b4a7a 0%, transparent 60%), linear-gradient(180deg, #121a33 0%, #1f2b52 60%, #2f3d6b 100%);
  animation: btIn .6s ease-out;
}
.bedtime.parents { background: radial-gradient(1200px 700px at 50% 120%, #4a3b6e 0%, transparent 60%), linear-gradient(180deg, #160f2a 0%, #2a1f4a 60%, #3d2f63 100%); }
.bedtime.out { animation: btOut .5s ease-in forwards; }
@keyframes btIn { from { opacity: 0; } }
@keyframes btOut { to { opacity: 0; } }
.bt-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.bt-stars circle { animation: twinkle 3s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.bt-hills { position: absolute; left: -10%; right: -10%; bottom: -12vh; height: 34vh; border-radius: 50% 50% 0 0; background: rgba(10, 14, 30, .55); }
.bt-inner { position: relative; text-align: center; max-width: 900px; padding: 0 30px; }
.bt-moon { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 28px; box-shadow: inset 42px -16px 0 0 #fff3c9, -10px 6px 70px -10px rgba(255, 236, 170, .35); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.bt-time { font-size: 30px; font-weight: 500; opacity: .75; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.bedtime h1 { font-size: 84px; font-weight: 700; letter-spacing: -2.5px; margin: 6px 0 14px; line-height: 1; }
.bedtime p { font-size: 28px; line-height: 1.45; opacity: .9; margin: 0 auto 36px; max-width: 760px; }
.bt-bar { width: 320px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .18); margin: 0 auto 14px; overflow: hidden; }
.bt-bar i { display: block; height: 100%; background: rgba(255, 255, 255, .8); transform-origin: left; animation: btBar linear forwards; }
@keyframes btBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.bedtime small { opacity: .55; font-size: 15px; }

@media (max-width: 900px) {
  .page { padding: calc(env(safe-area-inset-top) + 12px) 14px 0; }
  .page-h h1 { font-size: calc(22px * var(--fs, 1)); }
  .page-h .seg { width: 100%; }
  .page-h .seg button { flex: 1; padding: 9px 4px; }
  .page-split { grid-template-columns: 1fr; gap: 12px; }
  .page-nav { flex-direction: row; overflow-x: auto; position: static; padding-bottom: 2px; }
  .page-nav button { flex-direction: column; gap: 4px; padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  .page-main { padding: 18px 16px; }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-tiles .tile { padding: 14px; }
  .stat-tiles .tile .tv { font-size: calc(30px * var(--fs, 1)); margin: 10px 0 4px; }
  .stat-grid { grid-template-columns: 1fr; gap: 12px; }
  .role-sel { width: 100%; }
  .bedtime h1 { font-size: 44px; }
  .bedtime p { font-size: 19px; }
  .bt-moon { width: 100px; height: 100px; box-shadow: inset 28px -10px 0 0 #fff3c9; }
}


/* ---------- informacijski trak (vreme, smeti) ---------- */
.info-strip { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; flex: 0 0 auto; }
.info-card { padding: 14px 16px; cursor: pointer; min-height: 150px; gap: 8px; }
.w-chip { white-space: nowrap; }
.info-card .ic-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.info-card .ic-h > span:first-child { display: flex; align-items: center; gap: 6px; }
.info-card .ic-h svg { width: 15px; height: 15px; }
.info-card .ic-h .sub { text-transform: none; letter-spacing: 0; font-weight: 400; }
.info-card.hl { border-color: #b9c9dc; box-shadow: 0 0 0 3px #eef3f9; }
.wx-main { display: flex; align-items: center; gap: 12px; }
.wx-ic { font-size: calc(44px * var(--fs, 1)); line-height: 1; }
.wx-ic.sm { font-size: calc(36px * var(--fs, 1)); }
.wx-temp { font-size: calc(36px * var(--fs, 1)); font-weight: 600; letter-spacing: -1px; line-height: 1; }
.wx-temp.sm { font-size: calc(28px * var(--fs, 1)); }
.wx-temp .lo { font-size: .6em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.wx-main .sub { margin-top: 3px; }
.wx-range { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; font-size: calc(14px * var(--fs, 1)); color: var(--muted); gap: 1px; }
.wx-range b { color: var(--text); font-size: calc(16px * var(--fs, 1)); }
.wx-range .pop { font-size: calc(12.5px * var(--fs, 1)); }
.advs { display: flex; flex-direction: column; gap: 4px; }
.adv { display: flex; align-items: center; gap: 8px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 500; background: #f6f4ef; border-radius: 10px; padding: 5px 9px; }
.adv span { font-size: calc(15px * var(--fs, 1)); }
.waste.alert { background: var(--y-bg); border-color: #f1dfab; }
.waste.alert .ic-h { color: var(--y-tx); }
.waste.alert .adv { background: rgba(255, 255, 255, .6); }
.w-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.w-chips.big .w-chip { font-size: calc(17px * var(--fs, 1)); padding: 8px 14px; }
.w-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: calc(13px * var(--fs, 1)); font-weight: 500; }
.w-chip i { width: 10px; height: 10px; border-radius: 50%; }
.w-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; }
.w-row .w-day { width: 92px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-row.first .w-day { color: var(--text); font-weight: 600; }
.empty-card { flex-direction: row; align-items: center; gap: 14px; color: var(--muted); border-style: dashed; }
.empty-card b { color: var(--text); font-weight: 600; }
.geo-hit { cursor: pointer; }
.geo-hit:hover { background: #faf9f6; }

/* ---------- jutranji pozdrav ---------- */
.morning {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; cursor: pointer; overflow: hidden; color: #3b2a1a;
  background: linear-gradient(180deg, #ffd9a8 0%, #ffe9c9 35%, #fdf3e3 65%, #f6f4ef 100%);
  animation: btIn .6s ease-out;
}
.morning.out { animation: btOut .5s ease-in forwards; }
.mo-sun { position: absolute; left: 50%; top: 58%; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0%, #ffbf5e 38%, rgba(255, 191, 94, .25) 60%, transparent 70%); animation: rise 2.5s ease-out; }
@keyframes rise { from { transform: translateY(80px); opacity: .4; } }
.mo-hills { position: absolute; inset: auto 0 0 0; height: 32vh; }
.mo-hills i { position: absolute; left: -10%; right: -10%; bottom: -14vh; height: 30vh; border-radius: 50% 50% 0 0; background: #cfe3c6; }
.mo-hills i + i { left: 20%; right: -30%; bottom: -18vh; background: #b7d4ad; }
.mo-inner { position: relative; text-align: center; max-width: 1100px; padding: 0 30px; }
.morning .bt-time { color: #8a5a2b; opacity: .8; }
.morning h1 { font-size: 80px; font-weight: 700; letter-spacing: -2.5px; margin: 6px 0 12px; line-height: 1.02; color: #2d1d0e; }
.morning p { font-size: 26px; margin: 0 auto 30px; max-width: 800px; color: #5b4330; }
.mo-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 30px; }
.mo-card { display: flex; gap: 14px; align-items: center; text-align: left; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px; padding: 16px 20px; min-width: 230px; max-width: 340px; box-shadow: 0 10px 30px rgba(120, 70, 20, .08); }
.mo-ic { font-size: 40px; line-height: 1; }
.mo-card b { display: block; font-size: 20px; color: #2d1d0e; }
.mo-card span { display: block; font-size: 15px; color: #6b5340; margin-top: 2px; }
.mo-card em { display: block; font-style: normal; font-size: 14px; color: #6b5340; margin-top: 4px; }
.bt-bar.dark { background: rgba(80, 50, 20, .15); }
.bt-bar.dark i { background: rgba(80, 50, 20, .55); }
.morning small { color: #8a6a4a; font-size: 15px; }


/* ---------- točke ---------- */
.member { padding: 2px 6px 2px 2px; border-radius: 999px; gap: 6px; font-size: calc(13.5px * var(--fs, 1)); }
.members-row { gap: 4px 6px; padding: 10px 14px 12px; }
.members-row .avatar.sm { width: 28px; height: 28px; font-size: calc(12px * var(--fs, 1)); }
.member:active { background: #f2f1ed; }
.member .pts { font-size: calc(12px * var(--fs, 1)); font-weight: 600; color: var(--y-tx); background: var(--y-bg); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.t-pink { background: #fbe4ee; color: #a83c6a; }
.quick { grid-template-columns: repeat(3, 1fr); }
.pts-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; padding-right: 50px; }
.pts-head > div:nth-child(2) { flex: 1; }
.pts-big { font-size: calc(34px * var(--fs, 1)); font-weight: 700; color: var(--y-tx); background: var(--y-bg); padding: 8px 18px; border-radius: 18px; }
.rw { display: flex; align-items: center; gap: 14px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.rw .grow { flex: 1; min-width: 0; }
.rw.can { background: var(--g-bg); border-radius: 14px; padding: 12px; border: 0; margin-bottom: 6px; }
.rw-ic { font-size: calc(30px * var(--fs, 1)); width: 44px; text-align: center; flex-shrink: 0; }
.rw-bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: calc(13px * var(--fs, 1)); color: var(--muted); font-variant-numeric: tabular-nums; }
.rw-bar .bar-track { flex: 1; height: 8px; }
.rw.can .bar-fill { background: var(--g); }
.pts-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pts-btns button { min-width: 64px; font-size: calc(16px * var(--fs, 1)); }
.ph-list { max-height: 260px; overflow-y: auto; }
.ph { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line-2); font-size: calc(14.5px * var(--fs, 1)); }
.ph .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph b { width: 54px; text-align: right; font-variant-numeric: tabular-nums; }
.ph b.plus { color: var(--g-tx); }
.ph b.minus { color: var(--r-tx); }

.celebrate { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; place-items: center; }
.celebrate i { position: absolute; top: 55%; width: 10px; height: 14px; border-radius: 3px; animation: conf 1.6s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes conf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 420px)) rotate(var(--r)); opacity: 0; } }
.cel-box { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 16px 26px; box-shadow: 0 20px 50px rgba(30, 38, 51, .18); animation: celPop 2.2s ease forwards; }
.cel-box b { font-size: calc(34px * var(--fs, 1)); color: var(--y-tx); }
.cel-box span { font-size: calc(18px * var(--fs, 1)); font-weight: 500; }
@keyframes celPop { 0% { transform: scale(.6); opacity: 0; } 12% { transform: scale(1.06); opacity: 1; } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }

/* ---------- listki ---------- */
.info-strip { display: flex; gap: 14px; }
.info-strip > .info-card { flex: 1 1 0; min-width: 0; }
.info-strip > .wx:first-child { flex-grow: 1.45; }
.wx-tm { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 7px; font-size: calc(14px * var(--fs, 1)); min-width: 0; }
.wx-tm.hl { background: #eef3f9; border-radius: 10px; border-top: 0; padding: 6px 8px; }
.wx-tm-l { font-size: calc(12px * var(--fs, 1)); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wx-tm-ic { font-size: calc(20px * var(--fs, 1)); }
.wx-tm-adv { margin-left: auto; font-size: calc(13px * var(--fs, 1)); color: #4b515c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wx-range { white-space: nowrap; }
.info-strip > .notes-card { flex-grow: 1.15; }
.info-strip > .empty-card { flex-grow: .8; }
.notes-card { background: #fcfbf7; }
.mini-add { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: #4b515c; }
.mini-add svg { width: 15px; height: 15px; }
.note-stack { display: flex; flex-direction: column; gap: 8px; }
.note { position: relative; border-radius: 4px 4px 14px 4px; padding: 10px 12px 8px; transform: rotate(var(--rot, 0deg)); box-shadow: 0 6px 14px rgba(30, 38, 51, .08); cursor: pointer; }
.note p { margin: 0; font-size: calc(15px * var(--fs, 1)); font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.note .by { display: block; text-align: right; font-size: calc(12px * var(--fs, 1)); opacity: .7; margin-top: 2px; }
.notes-card .note p { -webkit-line-clamp: 2; }
.n-yellow { background: #fff3b8; color: #5a4a0e; }
.n-pink { background: #ffd9e6; color: #6b1f3c; }
.n-blue { background: #d6e8fb; color: #1d3a5c; }
.n-green { background: #d7f2dc; color: #1d4d2a; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.note-wrap .note { transform: none; }
.note-wrap .note p { -webkit-line-clamp: unset; display: block; }
.note-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.note-colors { display: flex; gap: 10px; }
.note-colors .nc { width: 46px; height: 46px; border-radius: 12px; border: 3px solid transparent; }
.note-colors .nc.on { border-color: var(--dark); }


/* ---------- odštevanje ---------- */
.t-green { background: var(--g-bg); color: var(--g-tx); }
.t-ai { background: linear-gradient(135deg, #efe3f6, #dde9f6); color: #5b3a72; }
.cd-card { background: linear-gradient(160deg, #ffffff 40%, #eef6ff); }
.cd-main { display: flex; align-items: center; gap: 12px; }
.cd-ic { font-size: calc(40px * var(--fs, 1)); line-height: 1; }
.cd-days { font-size: calc(24px * var(--fs, 1)); font-weight: 700; letter-spacing: -.5px; }
.cd-t { font-size: calc(14px * var(--fs, 1)); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-main > div { min-width: 0; }
.cd-row { display: flex; justify-content: space-between; gap: 8px; font-size: calc(13px * var(--fs, 1)); color: #4b515c; border-top: 1px solid var(--line-2); padding-top: 5px; }
.cd-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-row b { font-weight: 600; white-space: nowrap; }
.cd-row.m { font-size: calc(15px * var(--fs, 1)); padding: 9px 0; }
.cd-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cd-icons button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); background: #fff; font-size: calc(12px * var(--fs, 1)); font-weight: 500; }
.cd-icons button span { font-size: calc(28px * var(--fs, 1)); }
.cd-icons button.on { border-color: var(--dark); background: #faf9f6; }
.chk { display: flex; align-items: center; gap: 10px; font-size: calc(14px * var(--fs, 1)); color: #4b515c; }
.chk input { width: 22px; height: 22px; accent-color: var(--dark); }

/* ---------- AI vnos ---------- */
.ai-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 2px dashed #c9ccd2; border-radius: 18px; padding: 22px; cursor: pointer; font-weight: 600; color: #4b515c; background: #faf9f6; }
.ai-drop img { max-height: 220px; max-width: 100%; border-radius: 12px; }
.ai-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-row .inp { padding: 10px 12px; min-width: 0; flex: 1; }
.ai-row .w-date { flex: 0 0 160px; }
.ai-row .w-time { flex: 0 0 110px; }
.ai-row .w-mem { flex: 0 0 130px; }
.ai-row .w-imp { flex: 0 0 72px; }
.ai-row .w-qty { flex: 0 0 140px; }
.ai-chk { width: 22px; height: 22px; accent-color: var(--dark); flex-shrink: 0; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 6px; }
.btn-primary:disabled { opacity: .8; }

/* ---------- nočni način ---------- */
.night { position: fixed; inset: 0; z-index: 90; background: #000; color: #8b93a3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; animation: btIn 1.2s ease; }
.nt-clock { font-size: 200px; font-weight: 300; letter-spacing: -6px; line-height: 1; color: #6b7280; font-variant-numeric: tabular-nums; }
.nt-date { font-size: 28px; color: #4b5563; }
.nt-extra { font-size: 22px; color: #4b5563; display: flex; gap: 14px; align-items: center; }
.nt-sep { opacity: .5; }
.nt-hint { position: absolute; bottom: 30px; font-size: 14px; color: #374151; }


/* ---------- prazniki, opozorila, žepnina ---------- */
.chip.hol { background: var(--g-bg); border-color: #cdebd8; color: var(--g-tx); padding-left: 9px; font-weight: 600; }
.chip.hol::before { display: none; }
.chip.hol.school { background: #e8f1fb; border-color: #d3e3f5; color: var(--blue-tx); }
.hol-bar { background: var(--g-bg); color: var(--g-tx); font-weight: 600; border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.warn-bar { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 16px; font-size: calc(15px * var(--fs, 1)); margin-bottom: 0; }
.warn-bar span { flex: 1; min-width: 0; }
.warn-bar small { opacity: .6; font-weight: 600; font-size: calc(11px * var(--fs, 1)); letter-spacing: .08em; }
.warn-bar .sep { font-style: normal; opacity: .5; margin: 0 10px; }
.warn-bar.wl-2 { background: #fff6cc; color: #7a5a00; border: 1px solid #f3e19a; }
.warn-bar.wl-3 { background: #ffe6cc; color: #8a3f00; border: 1px solid #f7c58f; }
.warn-bar.wl-4 { background: #ffd6d6; color: #8f1d1d; border: 1px solid #f2a3a3; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(226, 109, 109, .25); } }
#warnBar:empty { display: none; }
.mo-card.warn.wl-2 { background: #fff6cc; }
.mo-card.warn.wl-3 { background: #ffe6cc; }
.mo-card.warn.wl-4 { background: #ffd6d6; }
.pts-big small { display: block; font-size: calc(14px * var(--fs, 1)); font-weight: 600; text-align: right; margin-top: 2px; }
.payout { display: flex; align-items: center; gap: 10px; background: #eef7f0; border-radius: 16px; padding: 12px 14px; margin: 8px 0 4px; }
.payout .grow { flex: 1; }


/* ---------- vremenske ikone + animirano ozadje ---------- */
.wx-svg { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.wx-svg.big { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(30, 38, 51, .12)); }
.wx-svg.sm { width: 26px; height: 26px; }
.wx-svg.mo { width: 52px; height: 52px; }
.wx-svg.nt { width: 26px; height: 26px; display: inline-block; vertical-align: -6px; opacity: .6; }
.wx-svg .i-sun { transform-origin: center; animation: spinSlow 30s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

.wx { position: relative; isolation: isolate; }
.wx > :not(.wx-anim) { position: relative; z-index: 1; }
.wx-anim { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.wx .advs .adv, .wx .wx-tm { background: rgba(255, 255, 255, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.wx .wx-tm { border-top: 0; border-radius: 10px; padding: 6px 8px; }
.wx-tm .sub, .wx-tm b { white-space: nowrap; }

/* ozadja po vrsti vremena */
.wa-clear  { background: linear-gradient(160deg, #fff7dd 0%, #fffdf5 55%, #ffffff 100%); }
.wa-partly { background: linear-gradient(160deg, #eaf4ff 0%, #f8fbff 60%, #ffffff 100%); }
.wa-cloudy { background: linear-gradient(170deg, #e7ecf2 0%, #f3f5f8 60%, #fbfbfc 100%); }
.wa-fog    { background: linear-gradient(180deg, #d3d9e0 0%, #e2e6eb 100%); }
.wa-rain   { background: linear-gradient(170deg, #dfe8f1 0%, #eef3f8 70%, #f7f9fb 100%); }
.wa-snow   { background: linear-gradient(170deg, #eaf2fb 0%, #f6f9fd 70%, #ffffff 100%); }
.wa-storm  { background: linear-gradient(170deg, #4d5a6c 0%, #6a7789 70%, #7d8a9b 100%); }
.wa-night  { background: linear-gradient(170deg, #1f2b4d 0%, #2c3a63 70%, #36457a 100%); }

/* temna ozadja -> svetlo besedilo */
.wxc-storm, .wxc-night { color: #fff; }
.wxc-storm .sub, .wxc-night .sub, .wxc-storm .wx-range, .wxc-night .wx-range, .wxc-storm .ic-h, .wxc-night .ic-h { color: rgba(255, 255, 255, .78); }
.wxc-storm .wx-range b, .wxc-night .wx-range b { color: #fff; }
.wxc-storm .advs .adv, .wxc-night .advs .adv, .wxc-storm .wx-tm, .wxc-night .wx-tm { background: rgba(255, 255, 255, .14); color: #fff; }
.wxc-storm .wx-tm-adv, .wxc-night .wx-tm-adv, .wxc-storm .wx-tm-l, .wxc-night .wx-tm-l { color: rgba(255, 255, 255, .85); }
.wxc-storm.card, .wxc-night.card { border-color: transparent; }

/* sonce */
.wa-sun { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 90, .55) 0%, rgba(255, 210, 90, .22) 40%, transparent 70%); animation: sunPulse 6s ease-in-out infinite; }
.wa-sun.small { width: 130px; height: 130px; right: -20px; top: -30px; }
.wa-rays { position: absolute; right: -150px; top: -150px; width: 400px; height: 400px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 205, 80, .13) 0deg 8deg, transparent 8deg 24deg); border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%); mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%);
  animation: spinSlow 60s linear infinite; }
@keyframes sunPulse { 50% { transform: scale(1.08); opacity: .85; } }

/* oblaki */
.wa-cloud { position: absolute; left: 0; width: 150px; height: 90px; fill: #fff; filter: drop-shadow(0 4px 8px rgba(80, 100, 130, .12));
  transform: translateX(-160px) scale(var(--s, 1)); animation: drift linear infinite; }
.wa-cloud.grey { fill: #cfd8e3; }
.wa-cloud.dim { fill: #8fa0c4; }
.wa-cloudy .wa-cloud { fill: #dde4ec; }
.wa-storm .wa-cloud { fill: #3f4a5a; filter: none; }
@keyframes drift { from { transform: translateX(-170px) scale(var(--s, 1)); } to { transform: translateX(calc(100cqw + 20px)) scale(var(--s, 1)); } }
.wx-anim { container-type: inline-size; }

/* dež */
.wa-drop { position: absolute; top: -20px; width: 2px; height: 16px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, rgba(74, 144, 217, .55)); animation: fall linear infinite; }
.wa-storm .wa-drop { background: linear-gradient(to bottom, transparent, rgba(220, 235, 255, .7)); }
@keyframes fall { to { transform: translate(-14px, 260px); } }
.wa-flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 7s infinite; }
@keyframes flash { 0%, 89%, 93%, 100% { opacity: 0; } 90% { opacity: .55; } 91% { opacity: .1; } 92% { opacity: .4; } }

/* sneg */
.wa-flake { position: absolute; top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 0 3px rgba(120, 160, 210, .6); animation: snow linear infinite; }
@keyframes snow { 0% { transform: translate(0, 0); } 50% { transform: translate(var(--d, 10px), 120px); } 100% { transform: translate(calc(var(--d, 10px) * -.5), 260px); } }

/* megla */
.wa-fog { position: absolute; left: -50%; width: 200%; height: 46px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 70%); animation: mist ease-in-out infinite alternate; }
.wa-fog.f1 { top: 20%; animation-duration: 14s; }
.wa-fog.f2 { top: 48%; animation-duration: 19s; animation-delay: -6s; opacity: .8; }
.wa-fog.f3 { top: 72%; animation-duration: 23s; animation-delay: -11s; opacity: .7; }
@keyframes mist { from { transform: translateX(-12%); } to { transform: translateX(12%); } }

/* noč */
.wa-moonglow { position: absolute; right: -30px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 210, 122, .35) 0%, transparent 65%); }
.wa-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  .wx-anim *, .wx-svg .i-sun { animation: none !important; }
}


/* ---------- animirana ozadja: skupno ---------- */
.fxc { position: relative; isolation: isolate; overflow: hidden; }
.fxc > :not(.fx) { position: relative; z-index: 1; }
.fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; container-type: inline-size; }
.fx svg { display: block; }
.fxc .adv { background: rgba(255, 255, 255, .7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* ---------- odvoz smeti ---------- */
.waste.fxc { padding-bottom: 40px; }
.fx-road { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #d9dde3; }
.fx-road::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, #fff 0 14px, transparent 14px 28px); }
.fx-binw { position: absolute; bottom: 10px; width: 20px; transform-origin: bottom center; }
.fx-binw svg { width: 20px; height: 27px; }
.fx-waste.alert .fx-binw { animation: wobble 2.4s ease-in-out infinite; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-7deg); } 84% { transform: rotate(6deg); } 92% { transform: rotate(-3deg); } }
.fx-truckw { position: absolute; bottom: 7px; left: 0; width: 66px; animation: truck 16s linear infinite; }
.fx-truckw svg { width: 66px; height: 32px; }
.fx-waste.alert .fx-truckw { animation-duration: 11s; }
@keyframes truck { 0% { transform: translateX(-80px); } 55%, 100% { transform: translateX(calc(100cqw + 20px)); } }

/* ---------- odštevanje: scene ---------- */
.cd-card.fxc .cd-row { background: rgba(255, 255, 255, .55); border-radius: 8px; padding: 4px 6px; border-top: 0; margin-top: 3px; }
.fx-sea { background: linear-gradient(180deg, #e9f6ff 0%, #f6fbff 55%, #fff6e5 100%); }
.fx-sun { position: absolute; right: 14px; top: 10px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #ffd56b 0 45%, rgba(255, 213, 107, .25) 60%, transparent 70%); animation: sunPulse 5s ease-in-out infinite; }
.fx-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; }
.fx-waves > span { position: absolute; left: 0; bottom: 0; display: flex; width: 200%; animation: waves 9s linear infinite; }
.fx-waves > span.w2 { animation-duration: 6s; bottom: -6px; }
.fx-waves svg { width: 50%; height: 30px; }
@keyframes waves { to { transform: translateX(-50%); } }

.fx-mnt { background: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%); }
.fx-mount { position: absolute; left: 0; bottom: 0; width: 100%; height: 56%; }
.fx-flake { position: absolute; top: -8px; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 2px #9fb7d3; animation: snow linear infinite; }
.fx-mnt .fx-flake { background: #dce8f5; }

.fx-sky { background: linear-gradient(180deg, #e6f1ff 0%, #f7fbff 100%); }
.fx-planew { position: absolute; left: 0; top: 30%; width: 44px; animation: plane 12s linear infinite; }
.fx-planew svg { width: 44px; height: 22px; }
.fx-planew::before { content: ""; position: absolute; right: 40px; top: 10px; width: 90px; height: 2px; background: repeating-linear-gradient(90deg, rgba(78, 111, 148, .35) 0 6px, transparent 6px 11px); }
@keyframes plane { from { transform: translate(-60px, 18px) rotate(-6deg); } to { transform: translate(calc(100cqw + 120px), -18px) rotate(-6deg); } }
.fx-cl { position: absolute; left: 0; width: 70px; height: 42px; fill: #fff; filter: drop-shadow(0 2px 4px rgba(80, 100, 130, .12)); animation: drift 40s linear infinite; }
.fx-cl.c2 { width: 50px; animation-duration: 55s; animation-delay: -20s; }

.fx-trip { background: linear-gradient(180deg, #f2f9ff 0%, #ffffff 60%); }
.fx-hills { position: absolute; left: -10%; right: -10%; bottom: 8px; height: 40px; border-radius: 50% 50% 0 0; background: #d7efdc; }
.fx-trip .fx-road { height: 12px; background: #c9ced6; }
.fx-carw { position: absolute; bottom: 5px; left: 0; width: 46px; animation: car 9s linear infinite; }
.fx-carw svg { width: 46px; height: 24px; animation: bump .5s ease-in-out infinite alternate; }
@keyframes car { from { transform: translateX(-60px); } to { transform: translateX(calc(100cqw + 20px)); } }
@keyframes bump { to { transform: translateY(-1.5px); } }

.fx-bday { background: linear-gradient(180deg, #fff6fb 0%, #ffffff 100%); }
.fx-balw { position: absolute; bottom: -60px; width: 22px; animation: rise linear infinite; }
.fx-balw svg { width: 22px; height: 52px; animation: sway 3s ease-in-out infinite alternate; }
@keyframes rise { to { transform: translateY(calc(-100cqh - 90px)); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.fx { container-type: size; }
.fx-conf { position: absolute; top: -10px; width: 6px; height: 9px; border-radius: 2px; animation: conff linear infinite; }
@keyframes conff { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(18px, calc(100cqh + 20px)) rotate(540deg); } }

.fx-party { background: linear-gradient(160deg, #f6f0ff 0%, #fff7fb 100%); }
.fx-light { position: absolute; top: -40%; width: 60%; height: 180%; opacity: .35; filter: blur(16px); border-radius: 50%; animation: disco 6s ease-in-out infinite alternate; }
.fx-light.l1 { left: -20%; background: #f472b6; }
.fx-light.l2 { left: 25%; background: #60a5fa; animation-delay: -2s; }
.fx-light.l3 { left: 60%; background: #fbbf24; animation-delay: -4s; }
@keyframes disco { from { transform: translateX(-20%) scale(.9); } to { transform: translateX(20%) scale(1.1); } }

.fx-xmas { background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 100%); }
.fx-lights { position: absolute; left: 0; right: 0; top: 0; height: 30px; }
.fx-lights::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 18px; border-bottom: 1.5px solid #6b7c8f; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.fx-lights i { position: absolute; width: 7px; height: 10px; border-radius: 50% 50% 45% 45%; box-shadow: 0 0 8px currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.fx-xmas .fx-flake { background: #fff; box-shadow: 0 0 3px #9fb7d3; }

.fx-school { background: #fffdf6; }
.fx-paper { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 21px, rgba(96, 165, 250, .18) 21px 22px); }
.fx-paper::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1.5px; background: rgba(226, 109, 109, .35); }
.fx-sparkw { position: absolute; width: 12px; animation: sparkle 3s ease-in-out infinite; }
.fx-sparkw svg { width: 12px; height: 12px; }
@keyframes sparkle { 0%, 100% { transform: scale(.4) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: .9; } }

.fx-sport { background: linear-gradient(180deg, #f3fbf4 0%, #ffffff 100%); }
.fx-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, #5cc196 0 14px, #4fb388 14px 28px); }
.fx-ballw { position: absolute; left: 0; bottom: 12px; width: 22px; animation: ballX 7s linear infinite; }
.fx-ballw svg { width: 22px; height: 22px; animation: ballY .7s cubic-bezier(.3, 0, .7, 1) infinite alternate, spinSlow 1.2s linear infinite; }
@keyframes ballX { from { transform: translateX(-30px); } to { transform: translateX(calc(100cqw + 10px)); } }
@keyframes ballY { from { transform: translateY(0); } to { transform: translateY(-40px); } }

.fx-stage { background: radial-gradient(ellipse at 50% 100%, #fff3d6 0%, #fbfaf7 60%); }
.fx-spot { position: absolute; left: 30%; top: -20%; width: 40%; height: 140%; background: linear-gradient(180deg, rgba(255, 225, 140, .45), rgba(255, 225, 140, 0)); clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); animation: spot 7s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes spot { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
.fx-curtain { position: absolute; top: 0; bottom: 0; width: 16%; background: repeating-linear-gradient(90deg, #b9384a 0 8px, #a12d3e 8px 16px); animation: curtain 4s ease-in-out infinite alternate; }
.fx-curtain.left { left: 0; border-radius: 0 0 60% 0; transform-origin: top left; }
.fx-curtain.right { right: 0; border-radius: 0 0 0 60%; transform-origin: top right; animation-delay: -2s; }
@keyframes curtain { to { transform: scaleX(.85); } }
.fx-stage ~ * .cd-days, .cd-card .fx-stage { }

.fx-love { background: linear-gradient(180deg, #fff5f8 0%, #ffffff 100%); }
.fx-heartw { position: absolute; bottom: -24px; width: 18px; animation: rise linear infinite; }
.fx-heartw svg { width: 18px; height: 17px; transform: scale(var(--sc, 1)); animation: sway 2.5s ease-in-out infinite alternate; opacity: .75; }

.fx-gift { background: linear-gradient(160deg, #fbf7ff 0%, #ffffff 100%); }

/* ---------- nakup ---------- */
.shop-hero { border-bottom: 1px solid var(--line-2); padding-bottom: 34px; }
.fx-shop { background: linear-gradient(180deg, #f3faf6 0%, #ffffff 100%); }
.fx-shelf { position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; background: #d8e7df; border-radius: 2px; }
.fx-belt { position: absolute; left: 0; bottom: 11px; width: 200%; height: 26px; animation: belt 30s linear infinite; }
.fx-belt span { position: absolute; bottom: 0; }
.fx-belt span svg { height: 22px; width: auto; opacity: .85; }
@keyframes belt { to { transform: translateX(-50%); } }
.fx-cartw { position: absolute; right: 14px; bottom: 9px; width: 40px; }
.fx-cartw svg { width: 40px; height: 31px; }
.fx-shop.has .fx-cartw { animation: cartGo 6s ease-in-out infinite; }
@keyframes cartGo { 0%, 60%, 100% { transform: translateX(0) rotate(0); } 70% { transform: translateX(-8px) rotate(-4deg); } 80% { transform: translateX(4px) rotate(3deg); } 90% { transform: translateX(0) rotate(0); } }
.m-shop-hero { display: flex; align-items: center; min-height: 92px; border-radius: 20px; border: 1px solid var(--line); background: #fff; padding: 12px 14px 40px; margin-bottom: 10px; }
.m-cd { padding-bottom: 10px; }
.m-cd .cd-row.m { background: rgba(255, 255, 255, .6); border-radius: 10px; padding: 8px 10px; border-top: 0; margin-bottom: 6px; }
.m-waste.fxc { padding-bottom: 40px; }

@media (prefers-reduced-motion: reduce) { .fx * { animation: none !important; } }


/* ---------- odštevanje: Božiček, novo leto, Dedek Mraz, Bajram ---------- */
.cd-dark { color: #fff; }
.cd-dark .ic-h, .cd-dark .sub, .cd-dark .cd-row { color: rgba(255, 255, 255, .85); }
.cd-dark .cd-row { background: rgba(255, 255, 255, .14) !important; }
.cd-dark .mini-add { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); color: #fff; }
.cd-dark.card { border-color: transparent; }

.fx-santa { background: linear-gradient(180deg, #dfeaf8 0%, #f4f8fd 70%, #ffffff 100%); }
.fx-snowground { position: absolute; left: -10%; right: -10%; bottom: -14px; height: 34px; border-radius: 50% 50% 0 0; background: #fff; box-shadow: 0 -2px 8px rgba(120, 150, 190, .15); }
.fx-sleighw { position: absolute; left: 0; top: 14%; width: 96px; animation: sleigh 14s linear infinite; }
.fx-sleighw svg { width: 96px; height: 32px; animation: bump 1.2s ease-in-out infinite alternate; }
@keyframes sleigh { from { transform: translate(-110px, 26px); } to { transform: translate(calc(100cqw + 20px), -8px); } }

.fx-ny { background: radial-gradient(ellipse at 50% 120%, #2c3a6e 0%, #141a33 70%); }
.fx-burst { position: absolute; width: 0; height: 0; }
.fx-burst i { position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c);
  transform: rotate(var(--a)) translateX(0); opacity: 0; animation: burst 4.5s ease-out infinite; animation-delay: inherit; }
@keyframes burst { 0% { transform: rotate(var(--a)) translateX(0); opacity: 0; } 4% { opacity: 1; } 30% { transform: rotate(var(--a)) translateX(30px); opacity: .9; } 45%, 100% { transform: rotate(var(--a)) translateX(36px) translateY(8px); opacity: 0; } }
.fx-star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite alternate; }

.fx-mrazs { background: linear-gradient(180deg, #e6eefb 0%, #f6f9fe 70%, #ffffff 100%); }
.fx-pinew { position: absolute; bottom: 10px; width: 24px; }
.fx-pinew svg { width: 24px; height: 32px; }
.fx-pinew.p1 { right: 64px; }
.fx-pinew.p2 { right: 16px; transform: scale(.8); transform-origin: bottom; }
.fx-mrazw { position: absolute; right: 34px; bottom: 8px; width: 34px; animation: waddle 3s ease-in-out infinite; transform-origin: bottom center; }
.fx-mrazw svg { width: 34px; height: 48px; }
@keyframes waddle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-1px); } }

.fx-bajram { background: linear-gradient(180deg, #2b2457 0%, #5b3c7d 60%, #c9805f 100%); }
.fx-crescentw { position: absolute; right: 14px; top: 46px; width: 40px; filter: drop-shadow(0 0 10px rgba(255, 224, 138, .6)); }
.fx-crescentw svg { width: 40px; height: 40px; }
.fx-lanternw { position: absolute; top: 0; width: 16px; transform-origin: top center; animation: swing 3.2s ease-in-out infinite alternate; }
.fx-lanternw::before { content: ""; display: block; width: 1px; height: var(--len, 10px); background: #c9a46a; margin: 0 auto; }
.fx-lanternw svg { width: 16px; height: 34px; filter: drop-shadow(0 0 6px rgba(255, 230, 160, .5)); }
@keyframes swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.fx-bajram ~ .ic-h, .cd-dark .ic-h { position: relative; }

/* =====================================================================
   TELEFON
   ===================================================================== */
@media (max-width: 900px) {
  body { overflow: hidden; font-size: calc(16px * var(--fs, 1)); }
  .m-app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
  .m-top {
    display: flex; align-items: center; gap: 8px;
    padding: calc(env(safe-area-inset-top) + 12px) 16px 10px; background: var(--bg);
  }
  .m-title { flex: 1; min-width: 0; }
  .m-greet { font-size: calc(22px * var(--fs, 1)); font-weight: 600; letter-spacing: -.3px; }
  .m-date { color: var(--muted); font-size: calc(14px * var(--fs, 1)); }
  .m-top .round-btn svg { width: 19px; height: 19px; }
  .m-top .round-btn.spin svg { animation: spin 1s linear infinite; }

  .m-view { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 14px 24px; }
  .m-view::-webkit-scrollbar { width: 0; }

  .m-tabs {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    background: #fff; border-top: 1px solid var(--line);
    padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px);
  }
  .m-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: #8a9099; font-size: calc(11px * var(--fs, 1)); font-weight: 500; }
  .m-tabs button svg { width: 23px; height: 23px; }
  .m-tabs button.on { color: var(--text); }
  .m-tabs button.on svg { stroke-width: 2.2; }
  .m-tabs .m-add { justify-self: center; width: 54px; height: 54px; border-radius: 50%; background: var(--dark); color: #fff; justify-content: center; padding: 0; margin-top: -18px; box-shadow: 0 6px 16px rgba(30, 38, 51, .25); }
  .m-tabs .m-add svg { width: 24px; height: 24px; }
  .m-badge { position: absolute; top: 1px; left: calc(50% + 6px); background: var(--r); color: #fff; font-style: normal; font-size: calc(10.5px * var(--fs, 1)); font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; }

  .m-tiles { padding: 0; margin-bottom: 12px; }
  .m-tiles .tile .tv { font-size: calc(24px * var(--fs, 1)); }
  .m-tiles .tile .tv.sm { font-size: calc(16px * var(--fs, 1)); margin: 10px 0 5px; }

  .m-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px 8px; margin-bottom: 12px; }
  .m-card-h { display: flex; align-items: center; gap: 10px; padding: 8px 0 6px; }
  .m-card-h h3 { margin: 0; font-size: calc(16px * var(--fs, 1)); font-weight: 600; flex: 1; }
  .m-card-h .h-ic { width: 32px; height: 32px; border-radius: 10px; }
  .m-card-h .h-ic svg { width: 16px; height: 16px; }
  .m-card .link-btn { padding: 6px 12px; font-size: calc(13px * var(--fs, 1)); }
  .m-card .empty { padding: 6px 0 10px; }
  .empty.sm { font-size: calc(13.5px * var(--fs, 1)); padding: 2px 0 8px !important; }

  .m-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
  .m-row .txt { flex: 1; min-width: 0; }
  .m-row .t1 { font-weight: 500; font-size: calc(15.5px * var(--fs, 1)); }
  .m-row .t2 { color: var(--muted); font-size: calc(13px * var(--fs, 1)); margin-top: 1px; }
  .m-time { width: 44px; font-size: calc(14px * var(--fs, 1)); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.15; flex-shrink: 0; }
  .m-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--y); flex-shrink: 0; }
  .m-row.i1 .m-bar { background: var(--g); }
  .m-row.i3 .m-bar { background: var(--r); }
  .m-row.i3 .t1 { font-weight: 600; }
  .m-row.task .cb { margin-left: 18px; }
  .m-row.task.done .cb { background: var(--g); border-color: var(--g); }
  .m-row.task.done .t1 { text-decoration: line-through; color: var(--muted); }
  .m-lunch-today { font-size: calc(17px * var(--fs, 1)); font-weight: 500; padding: 2px 0 10px; }
  .m-lunch-today.none { color: #b0b4bb; font-weight: 400; }

  .m-weeknav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-align: center; }
  .m-weeknav > div { flex: 1; }
  .m-weeknav .legend { justify-content: center; margin: 6px 0 0; display: flex; }
  .m-weeknav .legend span { font-size: calc(11px * var(--fs, 1)); padding: 3px 8px; }
  .m-day-h { display: flex; align-items: center; gap: 12px; padding: 6px 0 8px; }
  .m-day-h .grow { flex: 1; min-width: 0; }
  .m-day-h .t2 { color: var(--muted); font-size: calc(13px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-day .day-circle { width: 40px; height: 40px; min-width: 40px; }
  .m-day.today { border-color: #b9c9dc; box-shadow: 0 0 0 3px #eef3f9; }
  .m-day.today .day-circle { background: var(--dark); color: #fff; }
  .m-mini-add { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: #5a606b; }
  .m-mini-add svg { width: 16px; height: 16px; }

  .m-lunch { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
  .m-lunch .dn { width: 50px; font-weight: 600; font-size: calc(14px * var(--fs, 1)); display: flex; flex-direction: column; flex-shrink: 0; }
  .m-lunch .dn small { color: var(--muted); font-weight: 400; font-size: calc(12px * var(--fs, 1)); }
  .m-lunch.today .dn { color: var(--g-tx); }
  .m-lunch.past { opacity: .5; }
  .m-lunch .inp { padding: 11px 12px; font-size: calc(16px * var(--fs, 1)); }

  .m-shop-add { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 2px 0 10px; margin: 0; }
  .m-shop-add .inp { font-size: calc(16px * var(--fs, 1)); }
  .m-send { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 16px; }
  .m-send svg { width: 18px; height: 18px; }

  .inp { font-size: calc(16px * var(--fs, 1)); } /* iOS: brez zooma ob fokusu */

  /* modali kot spodnji list */
  .modal-bg { align-items: flex-end; }
  .modal, .modal.wide {
    width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; padding: 20px 16px calc(env(safe-area-inset-bottom) + 20px);
    animation: sheet .2s ease-out;
  }
  @keyframes sheet { from { transform: translateY(40px); opacity: .5; } }
  .tabs { overflow-x: auto; }
  .tabs button { white-space: nowrap; padding: 10px 12px; }
  .row { flex-direction: column; align-items: stretch; }
  .row > * { flex: none; width: 100%; }
  .quick { gap: 8px; }
  .quick button { padding: 18px 8px; font-size: calc(14px * var(--fs, 1)); }
  .meal-cols { grid-template-columns: 1fr; }
  .pair { flex-direction: column; align-items: center; }
  .imp-pick { flex-direction: column; }
  .list-row { flex-wrap: wrap; }
  .toast { bottom: calc(env(safe-area-inset-bottom) + 90px); }

  .m-wx { padding: 12px 14px; overflow: hidden; }
  .m-wx-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
  .m-wx-row .wx-svg.big { width: 52px; height: 52px; }
  .m-wx-tmv { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
  .m-wx-row .wx-temp { font-size: calc(30px * var(--fs, 1)); }
  .m-wx-row .grow { flex: 1; min-width: 0; }
  .m-wx-tm { text-align: right; font-size: calc(15px * var(--fs, 1)); }
  .m-waste { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
  .m-waste .grow { flex: 1; min-width: 0; }
  .m-waste .sub { margin-bottom: 6px; }
  .m-waste.alert { background: var(--y-bg); border-color: #f1dfab; }
  .morning h1 { font-size: 40px; }
  .morning p { font-size: 18px; }
  .mo-card { min-width: 0; width: 100%; }

  .quick { grid-template-columns: repeat(2, 1fr); }
  .m-kids { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
  .m-kids button { display: flex; align-items: center; gap: 8px; background: #faf9f6; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; font-weight: 500; }
  .m-kids b { color: var(--y-tx); font-size: calc(14px * var(--fs, 1)); }
  .note-stack.m { padding-bottom: 8px; }
  .pts-head { flex-wrap: wrap; }
  .pts-big { font-size: calc(26px * var(--fs, 1)); }
  .notes-grid { grid-template-columns: 1fr; }
  .warn-bar { margin-bottom: 12px; font-size: calc(14px * var(--fs, 1)); }
  .payout { flex-wrap: wrap; }

  .cd-icons { grid-template-columns: repeat(4, 1fr); }
  .ai-row { flex-wrap: wrap; background: #faf9f6; border-radius: 14px; padding: 8px; }
  .ai-row .inp { flex: 1 1 100%; }
  .ai-row .w-date, .ai-row .w-time, .ai-row .w-mem, .ai-row .w-imp, .ai-row .w-qty { flex: 1 1 40%; }
}




/* odštevanje v koledarju */
.chip.hol.countdown { background: rgba(255, 255, 255, .82); border-color: rgba(167, 139, 250, .5); color: #5b3fb8; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.wd.wd-cd .wd-h, .m-day.wd-cd .m-day-h { background: rgba(255, 255, 255, .6); border-radius: 10px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.wd.wd-cd .chip:not(.countdown) { background: rgba(255, 255, 255, .85); }
.wd.cd-dark .wd-h, .m-day.cd-dark .m-day-h { background: rgba(0, 0, 0, .3); color: #fff; }
.wd.cd-dark .wd-h * , .m-day.cd-dark .m-day-h * { color: #fff; }
.wd.wd-cd .fx, .m-day.wd-cd .fx { border-radius: inherit; }
.cd-modal { position: relative; min-height: 220px; border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; margin: -4px 0 0; }
.cd-modal-in { padding: 24px 16px; background: rgba(255, 255, 255, .7); border-radius: 14px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #1f2937; }
.cd-modal-ic { font-size: calc(40px * var(--fs, 1)); line-height: 1; }
.cd-modal h3 { margin: 6px 0 2px; }
.cd-modal .cd-days { font-size: calc(22px * var(--fs, 1)); font-weight: 800; color: #5b3fb8; }
.cd-modal.cd-dark .cd-modal-in { background: rgba(0, 0, 0, .35); color: #fff; }
.cd-modal.cd-dark .cd-days { color: #fff; }
.wd.wd-cd > .fx, .m-day.wd-cd > .fx { top: auto; height: 62%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
.wd.wd-cd { border-color: rgba(167, 139, 250, .45); }
.wd.wd-cd .chip { box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.wd-cd-art { position: absolute !important; z-index: 0 !important; left: 0; right: 0; bottom: 44px; display: flex; justify-content: center; align-items: flex-end; gap: 4px; pointer-events: none; opacity: .9; animation: cdArtBob 3.5s ease-in-out infinite; }
.wd-cd-art svg { position: static !important; width: auto !important; height: 46px !important; max-width: 80%; animation: none !important; transform: none !important; }
.m-day .wd-cd-art { bottom: 8px; right: 12px; left: auto; }
.m-day .wd-cd-art svg { height: 34px !important; }
.wd.wd-cd:not(.cd-dark) > .fx, .m-day.wd-cd:not(.cd-dark) > .fx { background: linear-gradient(180deg, rgba(167, 139, 250, 0) 0%, rgba(167, 139, 250, .16) 100%); }
@keyframes cdArtBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .wd-cd-art { animation: none; } }
.wd.wd-cd.cd-dark > .fx, .m-day.wd-cd.cd-dark > .fx { top: 0; height: auto; -webkit-mask-image: none; mask-image: none; }
.wd.cd-dark .wd-h, .m-day.cd-dark .m-day-h { background: rgba(255, 255, 255, .08); }
.wd.cd-dark .chip:not(.countdown) { background: rgba(255, 255, 255, .9); }

/* 3D scene (WebGL) */
.fx3d-canvas { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; z-index: 0 !important; display: block; border-radius: inherit; pointer-events: none; }
.fx3d-on > .fx { display: none; }
.fx3d-on.cd-card .ic-h, .fx3d-on.cd-card .cd-main, .fx3d-on .m-card-h { text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
.fx3d-on .cd-ic { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.fx3d-on.cd-card .cd-row, .fx3d-on.m-cd .cd-row { background: rgba(10, 16, 40, .35) !important; color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.fx3d-on.cd-card .cd-days, .fx3d-on.m-cd b { color: #fff; }
.cd-modal.fx3d-on { min-height: 280px; overflow: hidden; }
.cd-modal.fx3d-on .cd-modal-in { background: rgba(8, 12, 32, .35); color: #fff; }
.cd-modal.fx3d-on .cd-days, .cd-modal.fx3d-on .sub { color: #fff; }
.shop-hero.fx3d-on { position: relative; overflow: hidden; padding-bottom: 52px; }
.m-shop-hero.fx3d-on { position: relative; overflow: hidden; padding-bottom: 52px; }
.info-card.waste.fx3d-on .w-chips .w-chip, .info-card.waste.fx3d-on .adv, .info-card.waste.fx3d-on .w-row { position: relative; z-index: 1; }
.info-card.waste.fx3d-on .w-row { background: rgba(255, 255, 255, .72); border-radius: 10px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.m-waste.fx3d-on { position: relative; overflow: hidden; padding-bottom: 64px; }
.m-waste.fx3d-on .h-ic, .m-waste.fx3d-on .grow { position: relative; z-index: 1; }
.m-shop-hero.fx3d-on b, .m-shop-hero.fx3d-on .sub, .shop-hero.fx3d-on h2 { text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 2px #fff; }

/* Nakup – statična slika tržnice */
.shop-hero.shop-img, .m-shop-hero.shop-img { position: relative; overflow: hidden; background: #dfe9fb url('img/trznica.jpg') center 62% / cover no-repeat; }
.m-shop-hero.shop-img { background-image: url('img/trznica-m.jpg'); background-position: 38% 60%; min-height: 128px; align-items: flex-start; padding-bottom: 12px; }
.shop-hero.shop-img { padding-bottom: 70px; }
.shop-hero.shop-img::before, .m-shop-hero.shop-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .35) 45%, rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.shop-hero.shop-img > *, .m-shop-hero.shop-img > * { position: relative; z-index: 1; }
.shop-hero.shop-img h2, .m-shop-hero.shop-img b { text-shadow: 0 0 8px rgba(255, 255, 255, .9); }
.m-shop-hero.shop-img .sub { color: #3b4250; text-shadow: 0 0 6px #fff; }

/* ---------- pogled od daleč ---------- */
.amb { position: fixed; inset: 0; z-index: 900; background: linear-gradient(160deg, #f6f1e7 0%, #f3f1ea 50%, #eaf3ee 100%); color: #1f2937; padding: 56px 84px 40px; display: flex; flex-direction: column; gap: 34px; cursor: pointer; animation: ambIn .6s ease; }
@keyframes ambIn { from { opacity: 0; } to { opacity: 1; } }
.amb-warn { margin: -26px -40px 0; padding: 18px 30px; border-radius: 22px; font-size: 32px; background: #fdf0c4; color: #6b4b00; }
.amb-warn.wl-3 { background: #ffe1c2; color: #7a3a00; } .amb-warn.wl-4 { background: #ffd2d2; color: #7a0c0c; }
.amb-top { display: flex; justify-content: space-between; align-items: flex-start; }
.amb-clock { font-size: 230px; font-weight: 800; letter-spacing: -8px; line-height: .88; font-variant-numeric: tabular-nums; }
.amb-date { font-size: 54px; color: #6b7280; font-weight: 600; margin-top: 18px; }
.amb-wx { display: flex; align-items: center; gap: 26px; }
.amb-wx .amb-ic, .amb-wx svg { width: 190px !important; height: 190px !important; }
.amb-temp { font-size: 160px; font-weight: 800; line-height: 1; }
.amb-wtx { font-size: 38px; color: #6b7280; font-weight: 600; max-width: 520px; }
.amb-next { background: #fff; border-radius: 44px; padding: 38px 54px; box-shadow: 0 20px 60px rgba(0, 0, 0, .06); border-left: 22px solid #e6b84a; }
.amb-next.calm { border-left-color: #3fb26b; }
.amb-lbl { font-size: 32px; color: #6b7280; font-weight: 700; letter-spacing: .08em; }
.amb-ti { font-size: 92px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amb-who { font-size: 54px; color: #374151; font-weight: 600; margin-top: 4px; }
.amb-after { font-size: 38px; color: #6b7280; margin-top: 18px; font-weight: 600; }
.amb-allday { font-size: 40px; color: #374151; font-weight: 600; margin-top: -14px; padding-left: 10px; }
.amb-row { display: flex; gap: 30px; margin-top: auto; }
.amb-pill { flex: 1; min-width: 0; background: #fff; border-radius: 34px; padding: 28px 36px; font-size: 44px; font-weight: 700; display: flex; align-items: center; gap: 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amb-pill i { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.amb-pill.y { background: #fdf3d6; } .amb-pill.p { background: #efe9ff; } .amb-pill.g { background: #e3f4ea; }
.amb-hint { text-align: center; font-size: 24px; color: #9ca3af; margin-top: -10px; }
.cal-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef0f3; color: #59606b; margin-left: 6px; vertical-align: 2px; }
.cal-badge.w { background: #e3f4ea; color: #23784a; }
.amb-pill { white-space: normal; align-items: center; line-height: 1.1; padding: 24px 32px; }
.amb-pill span { min-width: 0; overflow: hidden; }
.amb-pill small { display: block; font-size: 30px; font-weight: 600; color: #5b6270; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amb-pill .amb-pi { font-size: 48px; flex: none; }

/* ---------- urnik in torba ---------- */
.chip.bag-chip { background: #fff7e6; border: 1px dashed #f0c96b; color: #6b4b00; font-size: calc(12px * var(--fs, 1)); line-height: 1.3; cursor: pointer; display: block; }
.chip.bag-chip .bg-k { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.bag-chip .bg-k.quiet { display: inline; color: #8a7a55; }
.chip.bag-chip .dot { margin-right: 4px; }
.sd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.sd-col { background: #faf8f4; border-radius: 16px; padding: 14px 16px; }
.sd-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 17px; }
.sd-subj { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.sd-subj li { display: flex; gap: 10px; font-weight: 600; }
.sd-subj li span { width: 26px; color: #9aa1ab; font-weight: 500; }
.sd-bag-t { font-weight: 800; color: #9a6b00; margin-top: 6px; }
.sd-bag-t.quiet { color: #9aa1ab; font-weight: 600; }
.sd-bag { margin: 6px 0 0; padding-left: 20px; }
.sd-bag li { font-weight: 600; margin: 2px 0; }
.bagov { position: fixed; inset: 0; z-index: 950; background: linear-gradient(160deg, #fff6e2, #f3eee4); display: flex; align-items: center; justify-content: center; animation: ambIn .5s ease; cursor: pointer; }
.bagov.out { opacity: 0; transition: opacity .5s; }
.bagov .bg-in { width: min(1500px, 92vw); text-align: center; }
.bagov .bg-ic { font-size: 90px; }
.bagov h1 { font-size: 64px; margin: 6px 0 26px; }
.bagov .sd-cols.big { text-align: left; gap: 30px; }
.bagov .sd-cols.big .sd-col { background: #fff; padding: 26px 30px; border-radius: 28px; box-shadow: 0 16px 50px rgba(0, 0, 0, .06); }
.bagov .sd-cols.big .sd-h { font-size: 34px; }
.bagov .sd-cols.big .sd-subj { font-size: 26px; grid-template-columns: 1fr 1fr; }
.bagov .sd-cols.big .sd-bag-t { font-size: 30px; }
.bagov .sd-cols.big .sd-bag li { font-size: 34px; }
.bagov small { display: block; margin-top: 24px; color: #9ca3af; font-size: 20px; }
.tt-wrap { overflow-x: auto; margin-top: 14px; }
.tt-grid { border-collapse: separate; border-spacing: 6px; width: 100%; }
.tt-grid th { font-size: 12px; color: #8a919c; font-weight: 700; text-align: center; }
.tt-grid tbody th { text-align: right; padding-right: 6px; white-space: nowrap; }
.tt-grid tr.pre th, .tt-grid tr.pre .tt-in { opacity: .6; }
.tt-in { padding: 8px 10px !important; text-align: center; min-width: 70px; font-weight: 700; text-transform: none; }
.tt-in.ai-fill { background: #f3fbf6; border-color: #a7dcbc; }
.bag-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip-btn { background: #fff7e6; border: 1px solid #f0d79a; color: #6b4b00; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.m-school .ms-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line-2, #f0ede7); }
.m-school .ms-row:first-of-type { border-top: 0; }
.m-school .ms-subj { font-weight: 600; font-size: 14px; color: #4b5563; }
.m-school .ms-bag { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.m-school .ms-bag span { background: #fff7e6; border: 1px solid #f0d79a; color: #6b4b00; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.amb-pill.b { background: #fff2d6; }
/* ---------- sestavine ---------- */
.ing-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.ing-row .ing-n { flex: 1; }
.ing-row .ing-q { width: 120px; flex: none; }
.ing-row input[type=checkbox] { width: 22px; height: 22px; flex: none; }
.ing-tag { font-size: 12px; background: #eef0f3; color: #59606b; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.ing-src { font-size: 11px; color: #9aa1ab; font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.chip.bag-chip { position: relative; padding-left: 26px; }
.chip.bag-chip .bg-ic { position: absolute; left: 7px; top: 5px; font-style: normal; }
.m-school .ms-n { font-size: 15px; }
/* menjava opravil */
.rot-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.rot-pick button { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 999px; background: #f3f1ec; border: 2px solid transparent; font-weight: 600; }
.rot-pick button.on { background: #e8f4ff; border-color: #7fb2e6; }
.rot-pick button i { font-style: normal; font-weight: 800; color: #2b6cb0; min-width: 10px; }
.rot-info { color: #2b6cb0; }
.rot-ic { color: #2b6cb0; font-weight: 800; margin-right: 3px; }
.sch-l { color: #6b7d6a; font-size: calc(12px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-item.meal .t2.sch-l { margin-top: 1px; }
.m-lunch .ml-in { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.m-lunch .ml-in small { padding-left: 4px; }
.ml-one { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ml-one .t1 { flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-one .sch-l { flex: 1 1 0; min-width: 40px; }

/* ---------- opomniki ---------- */
.rem-bar { margin-top: 8px; padding: 9px 16px; border-radius: 14px; background: #fde8e8; color: #7a1f1f; font-size: calc(14px * var(--fs, 1)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rem-bar .rem-it { cursor: pointer; }
.rem-bar .rem-it.late b, .rem-bar .rem-it.near b { text-decoration: underline; }
.rem-bar .sep { font-style: normal; opacity: .5; margin: 0 4px; }
.chip.med-chip { background: #f1ecff; border: 1px dashed #b9a6f5; color: #4b3696; font-size: calc(12px * var(--fs, 1)); line-height: 1.35; cursor: pointer; display: block; position: relative; padding-left: 26px; }
.chip.med-chip .bg-ic { position: absolute; left: 7px; top: 5px; font-style: normal; }
.chip.med-chip .bg-k { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.med-chip .md-t { font-weight: 700; }
.chip.med-chip .md-t.ok { color: #2f8a55; }
.med-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2, #f0ede7); }
.med-row:first-child { border-top: 0; }
.med-row.done { opacity: .6; }
.md-time { font-weight: 800; font-variant-numeric: tabular-nums; width: 52px; }
.md-ic { font-size: 22px; }
.md-btn { background: #f1ecff; color: #4b3696; border-radius: 999px; padding: 9px 16px; font-weight: 800; white-space: nowrap; border: 2px solid #d9cefc; }
.md-btn.on { background: #e3f4ea; color: #23784a; border-color: #b7e2c8; }
#medAlert { position: fixed; right: 26px; bottom: 26px; z-index: 970; width: min(460px, calc(100vw - 32px)); background: #fff; border-radius: 24px; box-shadow: 0 20px 60px rgba(40, 20, 90, .25); border: 3px solid #b9a6f5; padding: 18px 20px; animation: maIn .5s ease; }
@keyframes maIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
#medAlert .ma-h { font-size: 22px; font-weight: 800; color: #4b3696; margin-bottom: 6px; animation: maPulse 2s ease-in-out infinite; }
@keyframes maPulse { 50% { opacity: .55; } }
#medAlert .ma-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #f0ecfb; font-size: 17px; }
#medAlert .ma-row:first-of-type { border-top: 0; }
.amb-pill.r { background: #fde8e8; }
.ic-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-pick button { width: 42px; height: 42px; border-radius: 12px; background: #f3f1ec; font-size: 21px; border: 2px solid transparent; }
.ic-pick button.on { border-color: #7fb2e6; background: #e8f4ff; }
.rm-times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-times input { width: 130px; }
.list-row.faded { opacity: .5; }
@media (max-width: 760px) { #medAlert { right: 12px; bottom: 90px; } }
.wd, .wd-b { min-width: 0; }
.chip.med-chip, .chip.bag-chip { max-width: 100%; min-width: 0; overflow: hidden; }
/* kosilo: doma | šola */
.ml-head { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 10px; padding: 0 18px 4px; font-size: calc(11px * var(--fs, 1)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa1ab; }
.line-item.meal.split { display: grid; grid-template-columns: 40px 1fr 1fr; gap: 10px; align-items: center; }
.line-item.meal.split .ml-home { display: flex; align-items: center; gap: 6px; min-width: 0; cursor: pointer; }
.line-item.meal.split .ml-home .t1 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-item.meal.split .ml-school { min-width: 0; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.3; color: #4f6a55; background: #f1f7f2; border-radius: 8px; padding: 4px 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.line-item.meal.split .ml-school.none { background: transparent; color: #c2c7ce; cursor: default; }
.line-item.meal:not(.split) .ml-home { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; cursor: pointer; }
.line-item.meal:not(.split) .ml-home .t1 { flex: 1; }
.line-item.meal.split .ml-school { max-height: calc(2.6em + 8px); }
/* kosilo: levo doma, desno šolski jedilnik (cel dan) */
.card-b.meal-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.meal-split .meal-home { min-width: 0; }
.meal-split .meal-home .line-item .t1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meal-split .ml-head { display: block; padding: 0 0 4px 2px; }
.sch-panel { background: #f1f7f2; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-width: 0; }
.sch-h { display: flex; flex-direction: column; border-bottom: 1px dashed #cfe2d3; padding-bottom: 6px; }
.sch-h span { font-weight: 800; font-size: calc(14px * var(--fs, 1)); color: #2f5d3a; }
.sch-h small { color: #6b8a71; font-size: calc(12px * var(--fs, 1)); }
.sch-m { display: flex; flex-direction: column; gap: 1px; }
.sch-l2 { font-size: calc(10.5px * var(--fs, 1)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a957f; }
.sch-t { font-size: calc(13px * var(--fs, 1)); line-height: 1.3; color: #26402c; }
.sch-m.kosilo .sch-t { font-weight: 700; }
.sch-empty { color: #8aa08e; font-size: 13px; }
/* s šolskim jedilnikom: Kosilo višje, Nakup nižje */
#mealPanel.meal-tall { flex: 1.65 1 0; min-height: 0; display: flex; flex-direction: column; }
#mealPanel.meal-tall + #shopPanel { flex: 1 1 0; min-height: 190px; }
#mealPanel.meal-tall .card-b.meal-split { flex: 1 1 auto !important; min-height: 0; }
#mealPanel.meal-tall .meal-home { display: flex; flex-direction: column; }
#mealPanel.meal-tall .meal-home .line-item { flex: 1; }
#mealPanel.meal-tall .sch-panel { justify-content: flex-start; gap: 10px; overflow: hidden; }
#mealPanel.meal-tall .sch-t { font-size: calc(13.5px * var(--fs, 1)); }
#mealPanel.meal-tall + #shopPanel .shop-hero.shop-img { padding-bottom: 40px; }
#mealPanel { min-height: 0; overflow: hidden; }
#mealPanel.meal-tall + #shopPanel { flex: 1 1 0; min-height: 0; }
#mealPanel .card-b.meal-split { min-height: 0; overflow: hidden; }
#mealPanel .sch-panel { overflow: auto; }
#mealPanel.meal-tall .meal-home .line-item { min-height: 0; padding-top: 2px; padding-bottom: 2px; }
#mealPanel.meal-tall .sch-t { font-size: calc(12.5px * var(--fs, 1)); line-height: 1.25; }
#mealPanel.meal-tall .sch-panel { gap: 6px; padding: 10px 12px; }
.sch-body { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-evenly; gap: 10px; min-height: 0; }
.sch-body .sch-m + .sch-m { border-top: 1px dashed #d6e6d9; padding-top: 10px; }
.sch-m { gap: 3px; }
/* predura */
.chip.bag-chip .pre { color: #b45309; font-weight: 800; }
.sd-pre, .ms-pre { display: inline-block; background: #ffedd5; color: #9a3412; font-weight: 800; border-radius: 999px; padding: 3px 10px; margin: 0 0 8px; font-size: 13px; }
.ms-pre { margin: 4px 0; font-size: 12px; }
.sd-subj li.pre { color: #9a3412; }
.bagov .sd-cols.big .sd-pre { font-size: 26px; padding: 6px 18px; }
.role-seg { flex: 0 0 auto; }
.role-seg button { padding: 7px 12px; font-size: 13px; }
.warn-help { background: #fff4e0 !important; border-color: #f3d39b !important; color: #7a4b00; }

/* ---------- nastavitve: skupine ---------- */
.set-wrap { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.set-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: #ebe8e1; padding: 6px; border-radius: 18px; }
.set-groups button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 13px; font-weight: 600; color: #4b515c; font-size: calc(14px * var(--fs, 1)); }
.set-groups button svg { width: 18px; height: 18px; flex-shrink: 0; }
.set-groups button.on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(30, 38, 51, .1); }
.set-sub { margin: -4px 0 20px; flex-wrap: wrap; }
.set-sub button { flex: 1 1 auto; }
.set-wrap .page-main { min-width: 0; }
.set-body { min-width: 0; }
.page-h { max-width: 1000px; width: 100%; margin: 0 auto; }
.set-back { display: none; }
/* harmonika (telefon) */
.set-acc { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.acc-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; }
.acc-ic { width: 40px; height: 40px; border-radius: 12px; background: #f3f1ec; display: grid; place-items: center; flex: none; }
.acc-ic svg { width: 20px; height: 20px; }
.acc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-t b { font-size: 16px; }
.acc-t small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-ar { color: var(--muted); font-size: 20px; transition: transform .2s; }
.acc.open .acc-ar { transform: rotate(180deg); }
.acc-b { display: none; border-top: 1px solid var(--line); padding: 4px 0; }
.acc.open .acc-b { display: block; }
.acc-b button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 18px 13px 70px; font-weight: 600; font-size: 15px; text-align: left; }
.acc-b button span { color: var(--muted); }
.acc-b button:active, .acc-h:active { background: #f6f4ef; }

@media (max-width: 900px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  .page-body, .page-main, .set-body { overflow-x: hidden; }
  .set-back { display: inline-flex; align-self: flex-start; padding: 8px 12px; border-radius: 12px; background: #ebe8e1; font-weight: 600; color: #4b515c; }
  .set-wrap { gap: 10px; }
  .set-sub { margin: -4px 0 16px; }
  .set-sub button { padding: 9px 8px; font-size: 13px; }
  .page-main .row { flex-wrap: wrap; }
  .page-main .row > * { min-width: 0; flex: 1 1 auto; }
  .page-main .inp, .page-main select, .page-main textarea { min-width: 0; max-width: 100%; }
  .page-main .list-row { flex-wrap: wrap; row-gap: 8px; }
  .page-main .list-row .grow { flex: 1 1 160px; }
  .role-seg { flex: 1 1 100%; }
  .role-seg button { flex: 1; }
  .tt-wrap { overflow-x: visible; }
  .tt-grid { border-spacing: 3px; table-layout: fixed; }
  .tt-grid tbody th { width: 34px; font-size: 10px; padding-right: 2px; }
  .tt-in { min-width: 0 !important; width: 100%; padding: 7px 2px !important; font-size: 12px !important; }
  .bag-presets { gap: 6px; }
  .chip-btn { font-size: 12px; }
  .ic-pick button { width: 38px; height: 38px; }
  .rm-times input { width: calc(50% - 6px); }
  .ing-row { flex-wrap: wrap; }
  .ing-row .ing-q { width: 100px; }
  .sd-cols { grid-template-columns: 1fr; }
}
.set-wrap { max-width: 1240px; }
.page-h { max-width: 1240px; }
.set-groups { flex-wrap: nowrap; gap: 2px; }
.set-groups button { padding: 10px 12px; white-space: nowrap; }
.set-wrap > .page-main { max-width: 1000px; width: 100%; margin: 0 auto; }
@media (max-width: 1300px) { .set-groups { flex-wrap: wrap; } }
.set-wrap, .page-h { max-width: 1140px; }
.set-wrap > .page-main { max-width: none; }
.set-groups button { padding: 10px 11px; }

/* ---------- manjši dock + povečava kot na Macu ---------- */
:root { --dock-h: 68px; }
.dock { bottom: 8px; gap: 6px; padding: 5px 8px; align-items: flex-end; overflow: visible; }
.dock button { width: 42px; height: 42px; position: relative; transition: width .12s ease-out, height .12s ease-out, background .2s; }
.dock button svg { width: 18px; height: 18px; transition: width .12s, height .12s; }
.dock button.main { width: 48px; height: 48px; }
.dock button.main svg { width: 22px; height: 22px; }
.dock.mag button svg { width: 42%; height: 42%; }
.dock .dk-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.dock button:hover .dk-tip { opacity: 1; }
@media (hover: none) { .dock .dk-tip { display: none; } }
.dock { height: 58px; box-sizing: border-box; padding-top: 0; padding-bottom: 5px; }
.dock button { flex: none; }

/* ---------- slike članov ---------- */
.avatar.ph { overflow: hidden; padding: 0; }
.avatar.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av-up { position: relative; cursor: pointer; flex: none; }
.av-up .av-cam { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); display: grid; place-items: center; font-size: 12px; }
.av-del { flex: none; color: #c0392b; padding: 4px 6px; }
/* vrstica članov čez celo širino + povečava kroga */
.members-row { justify-content: space-around; }
.member { position: relative; }
.member .avatar { transition: transform .18s cubic-bezier(.3, 1.4, .6, 1), box-shadow .18s; transform-origin: center; }
@media (hover: hover) and (pointer: fine) {
  .member:hover .avatar { transform: scale(1.45); z-index: 2; box-shadow: 0 4px 14px rgba(0, 0, 0, .18), 0 0 0 1px var(--line); }
}


/* ==== v41: Jedilnik – levo doma, desno šola ==== */
#mealPanel.jedilnik { flex: 0 0 auto; display: flex; flex-direction: column; cursor: pointer; overflow: hidden; min-height: 0; }
#mealPanel.jedilnik.jd-fill { flex: 1 1 0; }
#mealPanel.jedilnik .h-sub { font-weight: 600; }
.jd2 { display: grid; gap: 6px 12px; padding-top: 0 !important; flex: 1 1 auto; min-height: 0; grid-template-rows: auto 1fr; }
.jd2.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.jd2.one { grid-template-columns: 1fr; }
.jd-ch { font-size: calc(11px * var(--fs, 1)); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.jd-ch.sch { color: #6f8f76; }
.jd-col { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.jd-c { flex: 1 1 0; min-height: 0; min-width: 0; position: relative; border-radius: 14px; padding: 8px 11px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.jd-c.home { background: var(--bg); padding-right: 30px; }
.jd-c.home.is-today { background: #fff6e8; box-shadow: inset 0 0 0 1.5px #f3d3a0; }
.jd-c.home .li-act { position: absolute; right: 8px; top: 9px; opacity: .45; }
.jd-c.home .li-act svg { width: 15px; height: 15px; }
.jd-c.home .jd-t { font-weight: 700; font-size: calc(14px * var(--fs, 1)); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jd-c.home.none .jd-t { color: var(--muted); font-weight: 500; font-style: italic; }
.jd-c.sch { background: #f1f7f2; }
.jd-c.sch.is-today { box-shadow: inset 0 0 0 1.5px #c7dfcc; }
.jd-h { display: flex; align-items: baseline; gap: 6px; }
.jd-h b { font-size: calc(13.5px * var(--fs, 1)); font-weight: 800; }
.jd-h small { color: var(--muted); font-size: calc(11.5px * var(--fs, 1)); }
.jd-ms { display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.jd-m { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.jd-k { flex: 0 0 auto; white-space: nowrap; font-size: calc(10px * var(--fs, 1)); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #7a957f; }
.jd-t { font-size: calc(13px * var(--fs, 1)); line-height: 1.28; overflow-wrap: break-word; hyphens: auto; min-width: 0; }
.jd-m .jd-t { color: #26402c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-m.kosilo { flex-direction: column; gap: 0; }
.jd-m.kosilo .jd-t { font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jd-none { color: #8aa08e; font-style: italic; font-size: calc(12.5px * var(--fs, 1)); }
#mealPanel.jd-fill .jd-m.kosilo .jd-t { -webkit-line-clamp: 3; }

/* celotedenski jedilnik */
.mw { display: flex; flex-direction: column; gap: 8px; }
.mw-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.mw.with-sch .mw-row { grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.6fr); }
.mw-row.is-today { background: #fff6e8; box-shadow: inset 0 0 0 1.5px #f3d3a0; }
.mw-row.is-past { opacity: .6; }
.mw-d { display: flex; flex-direction: column; }
.mw-d small { color: var(--muted); }
.mw-home { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 10px; padding: 6px 30px 6px 9px; cursor: pointer; font-weight: 700; min-width: 0; }
.mw-home.none span:nth-child(2) { color: var(--muted); font-weight: 500; }
.mw-home .li-act { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: .45; }
.mw-sch { display: flex; flex-direction: column; gap: 6px; background: #f1f7f2; border-radius: 10px; padding: 6px 10px; min-width: 0; }
.mw-m { display: flex; flex-direction: column; }
.mw-m .jd-k { color: #6f8f76; }
.mw-m.kosilo span:last-child { font-weight: 700; }
.mw .none { color: var(--muted); font-style: italic; }
@media (max-width: 700px) {
  .mw.with-sch .mw-row, .mw-row { grid-template-columns: 1fr; }
}
.sm-meals { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ==== v39: zložljiv Nakup na manjših zaslonih ==== */
.app > .col:first-child { position: relative; }
#shopPanel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#shopPanel > .card-b { flex: 1 1 auto; min-height: 0; overflow: auto; }
.shop-tap { display: none; }
#shopPanel.shop-compact { flex: 0 0 auto; min-height: 0; }
#shopPanel.shop-compact .shop-hero { flex: 1 1 auto; cursor: pointer; padding: 0 16px 0 0; border-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 0; background-position: center 70%; }
#shopPanel.shop-compact .shop-hero .card-h { flex: 1 1 auto; margin: 0; min-width: 0; }
#shopPanel.shop-compact > .card-b { display: none; }
#shopPanel.shop-compact .shop-tap { display: block; position: relative; z-index: 1; flex: 0 0 auto; background: rgba(255, 255, 255, .9); color: #2b3240; font-weight: 700; font-size: calc(13px * var(--fs, 1)); padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
#shopPanel.shop-compact .shop-hero.shop-img::before { background: linear-gradient(90deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .45) 55%, rgba(255, 255, 255, .1) 100%); }
#shopPanel.shop-compact:not(.shop-open) #shopSend { display: none; }
#shopPanel.shop-compact .st-close, #shopPanel.shop-open .st-open { display: none; }
#shopPanel.shop-open .st-close { display: inline; }
#shopPanel.shop-open { position: absolute; left: 0; right: 0; bottom: 0; top: 40%; height: auto; z-index: 40; box-shadow: 0 -12px 40px rgba(0, 0, 0, .22); animation: shopUp .28s cubic-bezier(.2, .8, .2, 1); }
#shopPanel.shop-open .shop-hero { flex: 0 0 auto; padding: 0 0 46px; display: block; min-height: 0; background-position: center 62%; }
#shopPanel.shop-open .shop-hero.shop-img::before { background: linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .35) 45%, rgba(255, 255, 255, 0) 70%); }
#shopPanel.shop-open .shop-tap { position: absolute; right: 14px; bottom: 10px; }
#shopPanel.shop-open > .card-b { display: block; }
@keyframes shopUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }


html.dark #shopPanel.shop-compact .shop-hero.shop-img::before { background: linear-gradient(90deg, rgba(16, 18, 21, .85) 0%, rgba(16, 18, 21, .5) 55%, rgba(16, 18, 21, .15) 100%); }
html.dark #shopPanel.shop-open .shop-hero.shop-img::before { background: linear-gradient(180deg, rgba(16, 18, 21, .82) 0%, rgba(16, 18, 21, .45) 45%, rgba(16, 18, 21, .1) 75%); }
html.dark #shopPanel.shop-compact .shop-tap { background: rgba(30, 32, 36, .92); color: #f1f3f6; }
html.dark #shopPanel.shop-open { box-shadow: 0 -12px 40px rgba(0, 0, 0, .6); }

}



#shopPanel.shop-compact .shop-hero .card-h { padding-top: 12px; padding-bottom: 12px; }

#mealPanel.jedilnik:not(.jd-fill) .jd-c { flex: 1 0 auto; }
.jd-c.dense { padding-top: 6px; padding-bottom: 6px; gap: 2px; }
.jd-c.dense .jd-ms { gap: 1px; }
.jd-c.dense .jd-m.kosilo { flex-direction: row; gap: 6px; }
.jd-c.dense .jd-m.kosilo .jd-t { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jd-c.home.dense .jd-t { -webkit-line-clamp: 1; }

.jd-c.dense .jd-h b { font-size: calc(12.5px * var(--fs, 1)); }
.jd-c.dense .jd-t, .jd-c.dense .jd-h, .jd-c.dense .jd-m { line-height: 1.18; }
.jd-c.dense .jd-m .jd-t { font-size: calc(12.5px * var(--fs, 1)); }
#mealPanel.jd-fill .jd2 { gap: 4px 12px; }
#mealPanel.jd-fill .jd-col { gap: 6px; }

/* v42: izbrani dan je višji */
.jd-c { transition: flex-grow .3s ease, background .2s; cursor: default; }
.jd-c.sch { cursor: pointer; }
#mealPanel.jd-fill .jd-c.big { flex-grow: 2.2; }
.jd-c.big .jd-m.kosilo .jd-t { -webkit-line-clamp: 6 !important; }
.jd-c.big .jd-m .jd-t { white-space: normal; }
.jd-c:not(.big) .jd-m:not(.kosilo) .jd-t { white-space: nowrap; }
[data-mweek] { cursor: pointer; }
.jd-ch.sch span { font-weight: 600; letter-spacing: 0; text-transform: none; margin-left: 4px; opacity: .8; }
.jd-ch.sch:hover, .h-sub[data-mweek]:hover { text-decoration: underline; }


/* ==== OwlApp: naročnina ==== */
.warn-bar.bill { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fbe4e4; color: #8f2f2f; border-radius: 16px; padding: 10px 16px; font-weight: 600; cursor: pointer; margin-bottom: 10px; }
.warn-bar.bill.soft { background: #dde9f6; color: #2c4a6b; }
.warn-bar.bill b { white-space: nowrap; }
.bill-box { display: flex; flex-direction: column; gap: 14px; }
.bill-st { align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-weight: 800; background: var(--g-bg); color: var(--g-tx); }
.bill-st.st-trialing { background: var(--blue-t); color: var(--blue-tx); }
.bill-st.st-past_due { background: var(--y-bg); color: var(--y-tx); }
.bill-st.st-suspended, .bill-st.st-canceled { background: var(--r-bg); color: var(--r-tx); }
.bill-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bill-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.bill-rows > div:last-child { border-bottom: 0; }
.bill-rows span { color: var(--muted); }
.bill-rows b { text-align: right; overflow-wrap: anywhere; }
.bill-rows .warn b { color: var(--r-tx); }

.tiles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

.demo-bar { cursor: default; }
.demo-cta { background: #1e2633; color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
html.dark .demo-cta { background: #f1f3f6; color: #1e2633; }
@media (max-width: 700px) { .demo-bar { flex-direction: column; align-items: flex-start; } }


/* ==== v47: razprt dan v koledarju ==== */
.weeks { position: relative; }
.week .wd { cursor: pointer; }
.wd-pop { position: absolute; z-index: 15; display: flex; transition: top .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.wd-pop > .wd { flex: 1; opacity: 1 !important; background: #fff; border-color: #c9d4e2; box-shadow: 0 18px 40px -12px rgba(30, 38, 51, .35), 0 0 0 3px #eef3f9; cursor: default; overflow: hidden; }
.wd-pop .wd-h { cursor: pointer; }
.wd-pop .wd-b { overflow-y: auto; }
.wd-pop .wd-b::-webkit-scrollbar { width: 4px; }
.wd-pop .chip, .wd-pop .chip * { white-space: normal !important; text-overflow: clip !important; overflow: visible !important; -webkit-line-clamp: unset !important; }
.wd-pop .chip { display: block; }
.wd-pop .chip .tm { display: block; }
.wd-pop .chip .tick { display: inline-grid; }
.wd-pop .wd-meal { flex: 0 0 auto; }
.wd-x { margin-left: 6px; border: 0; background: var(--line-2); color: var(--muted); width: 26px; height: 26px; border-radius: 50%; font-size: 12px; cursor: pointer; flex: 0 0 auto; }
.wd-pop .wd-h { gap: 6px; }
.wd-pop .wd-h .n { margin-right: auto; }
.wd-pop.up > .wd { box-shadow: 0 -18px 40px -12px rgba(30, 38, 51, .35), 0 0 0 3px #eef3f9; }
html.dark .wd-pop > .wd { background: #1f1e1a; border-color: #3a3f48; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), 0 0 0 3px #2a2f38; }
html.dark .wd-x { background: #2d2c28; color: #aaa; }

/* ==== TEMNA TEMA (samodejno: tools/dark_css.py) ==== */
html.dark { color-scheme: dark; --bg: #28251e; --card: #1d1d1d; --line: #2a2e35; --line-2: #24282e; --text: #d6dbe3; --muted: #a6a9b1; --dark: #d6dbe3; --yellow-t: #322b1a; --yellow-tx: #d2c7ac; --blue-t: #1c2732; --blue-tx: #acbed2; --lilac-t: #281c2f; --lilac-tx: #b9a5c7; --g-bg: #1d2e22; --g-tx: #96cfac; --y-bg: #372e17; --y-tx: #d4be8c; --r-bg: #321717; --r-tx: #cf7373; --shadow: 0 1px 2px rgba(0, 0, 0, .35); --bg: #101215; --card: #1b1e23; }
html.dark .h-ic { background: #272621; color: #a6aab0; }
html.dark .round-btn { background: #1d1d1d; color: #b3b7bd; }
html.dark .line-item .t1.none { color: #d1d3d7; }
html.dark .li-ic { background: #28251e; }
html.dark .li-act { color: #c4c7cc; }
html.dark .cb { border: 1.5px solid #484a4f; color: #1f1f1f; }
html.dark .shop .x { color: #d1d3d7; }
html.dark .inp { background: #1d1d1d; }
html.dark .inp:focus { border-color: #c9d6e6; }
html.dark .btn-primary { color: #1f1f1f; }
html.dark .btn-soft { background: #272621; }
html.dark .wd { background: #25231b; }
html.dark .wd.sel { border-color: #ccd8e6; background: #1d1d1d; }
html.dark .wd.today .day-circle { color: #1f1f1f; }
html.dark .chip { background: #1d1d1d; }
html.dark .chip.i3 { background: #2e0f0f; border-color: #462424; }
html.dark .chip.task-chip { color: #b0b4b9; }
html.dark .chip .tick { border: 1.5px solid #d5d8dc; color: #1f1f1f; }
html.dark .dock { background: #1d1d1d; }
html.dark .dock button { background: #1d1d1d; color: #b3b7bd; }
html.dark .dock button.main { color: #1f1f1f; }
html.dark .dock button.on { background: #272621; }
html.dark .modal { background: #1d1d1d; }
html.dark .modal-close { color: #b3b7bd; }
html.dark .days-pick button { background: #1d1d1d; }
html.dark .days-pick button.on { color: #1f1f1f; }
html.dark .tabs { background: #272621; }
html.dark .tabs button { color: #b3b7bd; }
html.dark .tabs button.on { background: #1d1d1d; }
html.dark .help b { color: #c1d0e0; }
html.dark .quick button { background: #1d1d1d; }
html.dark .toast { color: #1f1f1f; }
html.dark .login .box { background: #1d1d1d; }
html.dark .line-item.is-today .dn { color: #1f1f1f; }
html.dark .pair .qr { background: #1d1d1d; }
html.dark .page-nav button { color: #b3b7bd; }
html.dark .page-nav button.on { background: #1d1d1d; }
html.dark .seg { background: #2d2a25; }
html.dark .seg button { color: #b3b7bd; }
html.dark .seg button.on { background: #1d1d1d; }
html.dark .bar-track { background: #272621; }
html.dark .stack { background: #272621; }
html.dark .info-card.hl { border-color: #ccd8e6; }
html.dark .adv { background: #28251e; }
html.dark .waste.alert { border-color: #655830; }
html.dark .waste.alert .adv { background: rgba(28, 31, 36, .6); }
html.dark .w-chip { background: #1d1d1d; }
html.dark .geo-hit:hover { background: #25231c; }
html.dark .member:active { background: #272621; }
html.dark .t-pink { background: #321723; color: #be7e99; }
html.dark .cel-box { background: #1d1d1d; }
html.dark .notes-card { background: #272419; }
html.dark .mini-add { background: #1d1d1d; color: #b3b7bd; }
html.dark .n-yellow { background: #443c17; color: #e9e0bc; }
html.dark .n-pink { background: #391320; color: #dbaebf; }
html.dark .n-blue { background: #172738; color: #b9cade; }
html.dark .n-green { background: #1f3423; color: #c4e0cb; }
html.dark .t-ai { background: linear-gradient(135deg, #281c2f, #1c2732); color: #b9a5c7; }
html.dark .chk { color: #b3b7bd; }
html.dark .ai-drop { border: 2px dashed #484a4f; color: #b3b7bd; background: #25231c; }
html.dark .spinner { border: 2px solid rgba(20, 22, 26, .4); }
html.dark .chip.hol { border-color: #314b3b; }
html.dark .chip.hol.school { background: #172330; border-color: #263648; }
html.dark .warn-bar.wl-2 { background: #3d3614; color: #efdca7; border: 1px solid #f7ebbb; }
html.dark .warn-bar.wl-3 { background: #3d2914; color: #edc19b; border: 1px solid #fadab8; }
html.dark .warn-bar.wl-4 { background: #3a1313; color: #d89494; border: 1px solid #f6bcbc; }
html.dark .payout { background: #1d291f; }
html.dark .wa-clear { background: linear-gradient(160deg, #372f12 0%, #2f2910 55%, #1d1d1d 100%); }
html.dark .wa-partly { background: linear-gradient(160deg, #112133 0%, #0f1d2e 60%, #1d1d1d 100%); }
html.dark .wa-cloudy { background: linear-gradient(170deg, #20252b 0%, #1d2126 60%, #1d1d21 100%); }
html.dark .wa-fog { background: linear-gradient(180deg, #2a2e32 0%, #25282c 100%); }
html.dark .wa-rain { background: linear-gradient(170deg, #20282f 0%, #1b232a 70%, #1b2025 100%); }
html.dark .wa-snow { background: linear-gradient(170deg, #17222f 0%, #161e2a 70%, #1d1d1d 100%); }
html.dark .wa-night { background: linear-gradient(170deg, #c4cadc 0%, #2c3a63 70%, #36457a 100%); }
html.dark .wa-cloud { fill: #1f1f1f; }
html.dark .wa-cloud.grey { fill: #384049; }
html.dark .wa-cloud.dim { fill: #b7c2d9; }
html.dark .wa-cloudy .wa-cloud { fill: #2f363e; }
html.dark .wa-storm .wa-cloud { fill: #b6bcc6; }
html.dark .wa-storm .wa-drop { background: linear-gradient(to bottom, transparent, rgba(28, 31, 36, .7)); }
html.dark .wa-flash { background: #1d1d1d; }
html.dark .wa-flake { background: #1d1d1d; }
html.dark .wa-fog { background: radial-gradient(ellipse at center, rgba(28, 31, 36, .6) 0%, rgba(28, 31, 36, 0) 70%); }
html.dark .wa-star { background: #1d1d1d; }
html.dark .m-shop-hero { background: #1d1d1d; }
@media (max-width: 900px) { html.dark .m-tabs { background: #1d1d1d; } html.dark .m-tabs button { color: #abafb6; } html.dark .m-tabs .m-add { color: #1f1f1f; } html.dark .m-badge { color: #1f1f1f; } html.dark .m-card { background: #1d1d1d; } html.dark .m-lunch-today.none { color: #d1d3d7; } html.dark .m-day.today { border-color: #ccd8e6; } html.dark .m-day.today .day-circle { color: #1f1f1f; } html.dark .m-mini-add { color: #a6aab0; } html.dark .m-waste.alert { border-color: #655830; } html.dark .m-kids button { background: #25231c; } html.dark .ai-row { background: #25231c; } }
html.dark .chip.hol.countdown { background: rgba(28, 31, 36, .82); color: #8069cc; }
html.dark .wd.wd-cd .wd-h, html.dark .m-day.wd-cd .m-day-h { background: rgba(28, 31, 36, .6); }
html.dark .wd.wd-cd .chip:not(.countdown) { background: rgba(28, 31, 36, .85); }
html.dark .amb { background: linear-gradient(160deg, #2d281c 0%, #2a2820 50%, #202a24 100%); color: #d3d9e2; }
html.dark .amb-warn { background: #3f3617; color: #f1deb2; }
html.dark .amb-warn.wl-3 { background: #412b16; color: #efc9a7; }
html.dark .amb-warn.wl-4 { background: #3b1414; color: #e7a5a5; }
html.dark .amb-date { color: #8b919e; }
html.dark .amb-wtx { color: #8b919e; }
html.dark .amb-next { background: #1d1d1d; border-left: 22px solid #edcd80; }
html.dark .amb-next.calm { border-left-color: #66c98b; }
html.dark .amb-lbl { color: #8b919e; }
html.dark .amb-who { color: #bdc3cd; }
html.dark .amb-after { color: #8b919e; }
html.dark .amb-allday { color: #bdc3cd; }
html.dark .amb-pill { background: #1d1d1d; }
html.dark .amb-pill.y { background: #393015; }
html.dark .amb-pill.p { background: #1a1133; }
html.dark .amb-pill.g { background: #1e2e25; }
html.dark .amb-hint { color: #bec2ca; }
html.dark .cal-badge { background: #212327; color: #a6abb1; }
html.dark .cal-badge.w { background: #1e2e25; color: #a4d6bb; }
html.dark .amb-pill small { color: #a2a7af; }
html.dark .chip.bag-chip { background: #342911; border: 1px dashed #f6dda3; color: #f1deb2; }
html.dark .chip.bag-chip .bg-k.quiet { color: #b0a690; }
html.dark .sd-col { background: #27231b; }
html.dark .sd-subj li span { color: #bbc0c7; }
html.dark .sd-bag-t { color: #ebcf90; }
html.dark .sd-bag-t.quiet { color: #bbc0c7; }
html.dark .bagov { background: linear-gradient(160deg, #362b12, #2d291f); }
html.dark .bagov .sd-cols.big .sd-col { background: #1d1d1d; }
html.dark .bagov small { color: #bec2ca; }
html.dark .tt-grid th { color: #abb0b8; }
html.dark .tt-in.ai-fill { background: #19291f; border-color: #c8e9d5; }
html.dark .chip-btn { background: #342911; border: 1px solid #f5e5bc; color: #f1deb2; }
html.dark .m-school .ms-row { border-top: 1px solid var(--line-2, #36322b); }
html.dark .m-school .ms-subj { color: #aeb4bc; }
html.dark .m-school .ms-bag span { background: #342911; border: 1px solid #f5e5bc; color: #f1deb2; }
html.dark .amb-pill.b { background: #3a2e13; }
html.dark .ing-tag { background: #212327; color: #a6abb1; }
html.dark .ing-src { color: #bbc0c7; }
html.dark .rot-pick button { background: #282620; }
html.dark .rot-pick button.on { background: #112334; border-color: #b2d1f0; }
html.dark .rot-pick button i { color: #7aa1c9; }
html.dark .rot-info { color: #7aa1c9; }
html.dark .rot-ic { color: #7aa1c9; }
html.dark .sch-l { color: #8a9b89; }
html.dark .rem-bar { background: #321414; color: #d9a3a3; }
html.dark .chip.med-chip { background: #1a1132; border: 1px dashed #3c2d69; color: #988cc5; }
html.dark .chip.med-chip .md-t.ok { color: #95cbac; }
html.dark .med-row { border-top: 1px solid var(--line-2, #36322b); }
html.dark .md-btn { background: #1a1132; color: #988cc5; border: 2px solid #2a1e4e; }
html.dark .md-btn.on { background: #1e2e25; color: #a4d6bb; border-color: #3c5c49; }
html.dark #medAlert { background: #1d1d1d; border: 3px solid #3c2d69; }
html.dark #medAlert .ma-h { color: #988cc5; }
html.dark #medAlert .ma-row { border-top: 1px solid #231c36; }
html.dark .amb-pill.r { background: #321414; }
html.dark .ic-pick button { background: #282620; }
html.dark .ic-pick button.on { border-color: #b2d1f0; background: #112334; }
html.dark .ml-head { color: #bbc0c7; }
html.dark .line-item.meal.split .ml-school { color: #a8b8ac; background: #1e271f; }
html.dark .line-item.meal.split .ml-school.none { color: #d5d8dd; }
html.dark .sch-panel { background: #1e271f; }
html.dark .sch-h { border-bottom: 1px dashed #39493d; }
html.dark .sch-h span { color: #b6d1bc; }
html.dark .sch-h small { color: #8ca691; }
html.dark .sch-l2 { color: #9cb0a0; }
html.dark .sch-t { color: #ccdbcf; }
html.dark .sch-empty { color: #acbbaf; }
html.dark .sch-body .sch-m + .sch-m { border-top: 1px dashed #354438; }
html.dark .chip.bag-chip .pre { color: #e2a87c; }
html.dark .sd-pre, html.dark .ms-pre { background: #3a2a13; color: #dea28d; }
html.dark .sd-subj li.pre { color: #dea28d; }
html.dark .warn-help { background: #362a12 !important; border-color: #f7e1bb !important; color: #efd3a7; }
html.dark .set-groups { background: #2d2a25; }
html.dark .set-groups button { color: #b3b7bd; }
html.dark .set-groups button.on { background: #1d1d1d; }
html.dark .acc { background: #1d1d1d; }
html.dark .acc-ic { background: #282620; }
html.dark .acc-b button:active, html.dark .acc-h:active { background: #28251e; }
@media (max-width: 900px) { html.dark .set-back { background: #2d2a25; color: #b3b7bd; } }
html.dark .dock .dk-tip { color: #1f1f1f; }
html.dark .av-up .av-cam { background: #1d1d1d; }
html.dark .av-del { color: #d85d50; }
html.dark .jd-ch.sch { color: #91aa97; }
html.dark .jd-c.home.is-today { background: #342611; }
html.dark .jd-c.sch { background: #1e271f; }
html.dark .jd-k { color: #9cb0a0; }
html.dark .jd-m .jd-t { color: #ccdbcf; }
html.dark .jd-none { color: #acbbaf; }
html.dark .mw-row.is-today { background: #342611; }
html.dark .mw-home { background: #1d1d1d; }
html.dark .mw-sch { background: #1e271f; }
html.dark .mw-m .jd-k { color: #91aa97; }
html.dark #shopPanel.shop-compact .shop-tap { background: rgba(28, 31, 36, .9); color: #cbcfd8; }
html.dark html.dark #shopPanel.shop-compact .shop-tap { color: #24282d; }
html.dark .warn-bar.bill { background: #321717; color: #cb9292; }
html.dark .warn-bar.bill.soft { background: #1c2732; color: #acbed2; }
html.dark .demo-cta { background: #cfd4dc; color: #1f1f1f; }
html.dark html.dark .demo-cta { background: #1f2226; color: #d6dbe3; }
html.dark .wd-pop > .wd { background: #1d1d1d; border-color: #3a434e; }
html.dark html.dark .wd-pop > .wd { background: #dcdbd8; border-color: #c4c7cc; }
html.dark html.dark .wd-x { background: #d6d5d3; color: #c9c9c9; }
html.dark .dock button.main { background: #e8ebf0; border-color: #e8ebf0; color: #101215; }
html.dark .seg button.on, html.dark .set-groups button.on { background: #2e333b; color: #f1f3f6; box-shadow: none; }
html.dark .seg, html.dark .set-groups { background: #15181c; }
html.dark .shop-hero.shop-img::before, html.dark .m-shop-hero.shop-img::before { background: linear-gradient(180deg, rgba(16, 18, 21, .82) 0%, rgba(16, 18, 21, .45) 45%, rgba(16, 18, 21, .1) 75%); }
html.dark .shop-hero.shop-img h2, html.dark .m-shop-hero.shop-img b, html.dark .m-shop-hero.shop-img .sub { color: #f1f3f6; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
html.dark .fx3d-on.waste .fx3d-canvas, html.dark .m-waste.fx3d-on .fx3d-canvas, html.dark .fx3d-on#wasteCard .fx3d-canvas { filter: brightness(.55) saturate(.85); }
html.dark .info-card.waste.fx3d-on .w-row { background: rgba(20, 22, 26, .78); }
html.dark .info-card.waste.fx3d-on, html.dark .m-waste.fx3d-on { color: #e6e9ee; }
html.dark .shop-img { filter: none; }
html.dark img.av, html.dark .avatar { box-shadow: 0 0 0 1px #2a2e35; border-color: #1b1e23; }
html.dark ::-webkit-scrollbar-thumb { background: #2a2e35; }
/* ==== KONEC TEMNE TEME ==== */
