/* Planer: izgled. Boje, font i zaobljenost dolaze iz postavki (CSS varijable u <head>). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: #1b1a17; font-family: var(--font);
  font-size: 15px; line-height: 1.45;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code { background: #ece9e1; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: #5c5851; }
.small { font-size: 13px; }
.inline { display: inline; margin: 0; }
.spacer { flex: 1; }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6b6760; font-weight: 600; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #999); flex: 0 0 9px; }

/* raspored */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  flex: 0 0 260px; width: 260px; background: #fff; border-right: 1px solid #e7e4dc;
  padding: 28px 20px; display: flex; flex-direction: column; gap: 24px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.main-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 36px; background: #fff; border-bottom: 1px solid #e7e4dc;
}
.crumbs { display: flex; gap: 10px; font-size: 13px; color: #6b6760; }
.crumbs strong { color: #1b1a17; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.content { padding: 32px 36px 56px; display: flex; flex-direction: column; gap: 22px; max-width: 1500px; width: 100%; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head h1 { font-size: 38px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; margin: 6px 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* marka */
.brand { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.brand-center { justify-content: center; margin-bottom: 8px; }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: var(--radius); background: var(--accent);
  color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px;
}
.brand-name { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.brand-logo { max-width: 200px; max-height: 52px; object-fit: contain; }
.workspace {
  display: flex; align-items: center; gap: 12px; padding: 12px; margin-top: 10px;
  border: 1px solid #e7e4dc; border-radius: var(--radius); background: var(--bg);
}
.workspace-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.workspace-text { display: flex; flex-direction: column; }
.workspace-text small { color: #6b6760; font-size: 12px; }

/* navigacija */
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav .eyebrow { margin-bottom: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius);
  text-decoration: none; color: #3a3833; font-weight: 500; font-size: 14px;
}
.nav-link span { flex: 1; }
.nav-link em { font-style: normal; font-size: 12px; color: #6b6760; }
.nav-link:hover { background: #f5f3ee; }
.nav-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-clients { display: flex; flex-direction: column; gap: 2px; }
.side-clients .eyebrow { margin-bottom: 8px; }
.side-client { display: flex; align-items: center; gap: 12px; padding: 7px 4px; text-decoration: none; color: #3a3833; font-size: 14px; border-radius: 6px; }
.side-client:hover { background: #f5f3ee; }
.bottom-nav { display: none; }

/* dugmad */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px;
  border: 1px solid transparent; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  text-decoration: none; background: none; line-height: 1.2;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: #fff; border-color: #d9d5ca; color: #1b1a17; font-weight: 500; }
.btn-ghost:hover { background: #f5f3ee; }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-danger { background: #fff; border-color: #e0b4b0; color: #a1261f; font-weight: 500; }
.btn-danger:hover { background: #fbeeed; }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border: 0; background: transparent; border-radius: 10px; color: #3a3833; text-decoration: none;
}
.icon-btn:hover { background: #ece9e1; }

/* kartice */
.card { background: #fff; border: 1px solid #e7e4dc; border-radius: var(--radius); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.stat { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.stat-label { font-size: 14px; color: #3a3833; }
.stat-value { display: flex; align-items: baseline; gap: 10px; }
.stat-value span { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; }
.stat-value small { font-size: 12px; color: #6b6760; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.client-card, .member { padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.is-archived { opacity: 0.65; }
.client-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.client-tile { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.client-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.note { color: #3a3833; }
.empty { padding: 28px; color: #5c5851; text-align: center; }
.section-title { font-size: 18px; font-weight: 600; margin-top: 6px; }
.count { font-size: 12px; font-weight: 500; color: #5c5851; border: 1px solid #e7e4dc; border-radius: 6px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.h3 { font-size: 16px; font-weight: 600; }

/* filteri */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters select, .select-sm, .field select, .field input, .field textarea {
  padding: 12px 14px; border: 1px solid #d9d5ca; border-radius: var(--radius); background: #fff; font-size: 14px;
}
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #d9d5ca; border-radius: var(--radius); padding: 0 14px; color: #6b6760; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 13px 0; font-size: 14px; color: #1b1a17; min-width: 0; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.select-sm { padding: 8px 10px; font-size: 13px; }
.month-nav { display: flex; align-items: center; gap: 8px; }

/* tjedni pregled */
.week-card { overflow: hidden; }
.week-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; }
.week-head h2 { font-size: 18px; font-weight: 600; }
.week-nav { display: flex; align-items: center; gap: 6px; }
.week-label { font-size: 13px; font-weight: 500; min-width: 150px; text-align: center; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #e7e4dc; }
.day { padding: 14px 12px 16px; border-right: 1px solid #efece5; display: flex; flex-direction: column; gap: 10px; min-height: 340px; min-width: 0; }
.day:last-child { border-right: 0; }
.day.is-today { background: var(--accent-soft); }
.day-head { display: flex; flex-direction: column; gap: 2px; }
.day-name { font-size: 11px; letter-spacing: 0.1em; color: #6b6760; font-weight: 600; }
.day-num { font-size: 24px; font-weight: 600; color: #4a463f; }
.is-today .day-num { color: var(--accent); }
.day-num small { font-size: 10px; letter-spacing: 0.1em; margin-left: 6px; color: var(--accent); }
.day-empty { font-size: 12px; color: #6b6760; text-align: center; padding: 14px 0; }
.day-add {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px;
  border: 1px dashed #cfcbc0; border-radius: 10px; background: transparent; color: #3a3833; font-size: 13px;
}
.day-add:hover { background: rgba(255,255,255,0.7); border-color: var(--accent); }
.chip { border-radius: 10px; background: #fff; border: 1px solid #e7e4dc; border-left: 4px solid var(--c, #999); cursor: grab; }
.chip:hover { filter: brightness(0.97); }
.chip-hit { display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; padding: 10px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.chip-client { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #3a3833; }
.chip-title { font-size: 13px; line-height: 1.3; word-break: break-word; }
.chip-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip .kind { font-size: 11px; color: #5c5851; }
.chip.is-done .chip-title { text-decoration: line-through; color: #6b6760; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge-muted { background: #eceae4; color: #55514a; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: #ece9e1; color: #3a3833; font-size: 12px; font-weight: 600; text-decoration: none; flex: 0 0 auto;
}
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; margin-left: auto; }
.avatar.lg { width: 52px; height: 52px; font-size: 16px; background: var(--accent-soft); color: var(--accent); }
.avatar-empty { background: transparent; border: 1px dashed #cfcbc0; color: #6b6760; }

/* popisi */
.list { overflow: hidden; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 14px 22px; border-bottom: 1px solid #efece5; }
.list-row:last-child { border-bottom: 0; }
.list-date { flex: 0 0 auto; min-width: 70px; font-size: 13px; color: #5c5851; font-weight: 500; }
.list-date.is-late { color: #a1261f; font-weight: 600; }
.list-main { flex: 1 1 220px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.list-main .small { display: flex; align-items: center; gap: 8px; }
.check {
  width: 26px; height: 26px; flex: 0 0 26px; border: 1.5px solid #bdb8ab; border-radius: 7px; background: #fff;
  color: transparent; display: flex; align-items: center; justify-content: center; padding: 0;
}
.check.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.list-row.is-done .task-title { text-decoration: line-through; color: #6b6760; }

/* obrasci */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field > legend, legend { font-size: 13px; font-weight: 600; padding: 0; }
.field input, .field select, .field textarea { width: 100%; }
.field input[type="color"], .color-input { width: 56px; height: 42px; padding: 3px; cursor: pointer; }
.field input[type="range"] { padding: 0; border: 0; max-width: 360px; accent-color: var(--accent); }
.field input[type="file"] { display: none; }
.fs { border: 1px solid #e7e4dc; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.fs-plain { border: 0; padding: 0; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-card { padding: 26px; }
.form-card.stack-lg, .form-card.stack { max-width: 760px; }
.form-actions { display: flex; gap: 10px; }
.settings-grid { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.settings-grid > form { flex: 1 1 460px; }
.settings-grid > div { flex: 1 1 320px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logo-preview { width: 160px; height: 84px; border: 1px dashed #cfcbc0; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; color: #6b6760; font-size: 13px; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.file-btn { cursor: pointer; }
.check-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d9d5ca; padding: 0; }
.swatch:hover { box-shadow: 0 0 0 2px var(--accent); }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1.5px solid #e7e4dc; border-radius: var(--radius); background: #fff; font-size: 14px; cursor: pointer; white-space: nowrap; }
.fs > .option { white-space: normal; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { accent-color: var(--accent); }
.option i { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 6px; border: 1px solid #d9d5ca; display: inline-block; }
.option input { flex: 0 0 auto; width: auto; margin: 0; }
.topbar-brand { display: none; align-items: center; gap: 10px; min-width: 0; }
.topbar-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 16px; }
.topbar-brand .brand-name { font-size: 20px; }
.topbar-brand .brand-logo { max-height: 34px; max-width: 140px; }
.demo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* dijalog */
.dialog { border: 0; padding: 0; border-radius: var(--radius); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: #fff; color: #1b1a17; font-family: var(--font); box-shadow: 0 20px 60px rgba(27,26,23,0.3); }
.dialog::backdrop { background: rgba(27,26,23,0.45); }
.dialog form { padding: 26px; }
.dialog h2 { font-size: 20px; font-weight: 700; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; }

/* poruke */
.flash { padding: 13px 16px; border-radius: var(--radius); font-size: 14px; border: 1px solid; }
.flash-ok { background: #e8f5ec; border-color: #bfe0c9; color: #1d5a33; }
.flash-error { background: #fbeeed; border-color: #ecc3bf; color: #8f1f19; }

/* prijava i instalacija */
.bare-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e7e4dc; border-radius: calc(var(--radius) + 4px); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-card.auth-wide { max-width: 560px; }
.auth-card h1 { font-size: 26px; letter-spacing: -0.02em; }

/* uskladi za manje ekrane */
/* novo: prekidač prikaza, mjesec, dan, logo klijenta, ključ, obavijest */
.seg { display: inline-flex; border: 1px solid #d9d5ca; border-radius: var(--radius); background: #fff; padding: 3px; gap: 2px; }
.seg-btn { padding: 7px 14px; border-radius: calc(var(--radius) - 3px); text-decoration: none; font-size: 13px; font-weight: 500; color: #3a3833; }
.seg-btn:hover { background: #f5f3ee; }
.seg-btn.is-on { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.week-nav { flex-wrap: wrap; justify-content: flex-end; }
.notice { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fbefd2; color: #5e4100; border: 1px solid #efd9a0; border-radius: var(--radius); font-size: 14px; }
.notice a { margin-left: auto; font-weight: 600; }
.day.is-over, .mcell.is-over { outline: 2px dashed var(--accent); outline-offset: -3px; background: var(--accent-soft); }
.is-dragging { opacity: 0.45; }
.day-num { text-decoration: none; color: inherit; }
.day-num:hover { color: var(--accent); }

.month-scroll { overflow-x: auto; border-top: 1px solid #e7e4dc; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 720px; }
.mhead { padding: 10px 12px; font-size: 11px; letter-spacing: 0.1em; color: #6b6760; font-weight: 600; background: #faf9f6; border-bottom: 1px solid #efece5; border-right: 1px solid #efece5; }
.mcell { min-height: 118px; padding: 6px 6px 8px; border-right: 1px solid #efece5; border-bottom: 1px solid #efece5; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mcell:nth-child(7n) , .mhead:nth-child(7n) { border-right: 0; }
.mcell.is-outside { background: #faf9f6; }
.mcell.is-outside .mnum { color: #8a867d; }
.mcell.is-today { background: var(--accent-soft); }
.mtop { display: flex; align-items: center; justify-content: space-between; }
.mnum { font-size: 14px; font-weight: 600; text-decoration: none; padding: 2px 6px; border-radius: 6px; color: #3a3833; }
.mnum:hover { background: rgba(0,0,0,0.06); }
.is-today .mnum { background: var(--accent); color: var(--accent-ink); }
.madd { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; border-radius: 6px; color: #6b6760; opacity: 0; padding: 0; }
.mcell:hover .madd, .madd:focus-visible { opacity: 1; }
.madd:hover { background: rgba(0,0,0,0.07); }
.mchip { border-radius: 6px; background: #fff; border: 1px solid #e7e4dc; border-left: 3px solid var(--c, #999); cursor: grab; min-width: 0; }
.mchip-hit { display: flex; align-items: center; gap: 6px; width: 100%; padding: 3px 6px; border: 0; background: transparent; text-align: left; font-size: 12px; line-height: 1.3; border-radius: 6px; cursor: pointer; min-width: 0; }
.mchip .mt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mchip.is-done .mt { text-decoration: line-through; color: #6b6760; }
.mmore { font-size: 12px; color: var(--accent); font-weight: 600; text-decoration: none; padding: 2px 6px; }

.dayview { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #e7e4dc; }
.group-title { font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.di-list { display: flex; flex-direction: column; gap: 10px; }
.day-item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; padding: 14px 16px; border: 1px solid #e7e4dc; border-radius: var(--radius); background: color-mix(in srgb, var(--c, #999) 7%, #ffffff); }
.day-item.is-done .di-title { text-decoration: line-through; color: #6b6760; }
.di-main { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.di-client { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #3a3833; }
.di-title { font-size: 16px; }
.di-notes { font-size: 13px; color: #4a463f; white-space: pre-wrap; word-break: break-word; }
.di-side { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; background: #fff; border: 1px solid #e7e4dc; }
.day-add-wide { width: 100%; max-width: 360px; margin: 0; }
.client-tile.has-logo { background: #fff; border: 1px solid #e7e4dc; padding: 4px; width: 48px; height: 48px; }
.client-tile.has-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview.small { width: 110px; height: 64px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; }
.key-box { border: 2px dashed var(--accent); border-radius: var(--radius); padding: 18px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 10px; }
.key-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #3a3833; }
.key-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: 0.08em; word-break: break-all; user-select: all; }
.key-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.is-disabled { opacity: 0.45; pointer-events: none; }
@media print { .sidebar, .topbar, .bottom-nav, .btn, .check-inline { display: none !important; } .key-box { border-color: #000; background: #fff; } }

@media (max-width: 1100px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { min-height: 0; border-bottom: 1px solid #efece5; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; }
  .crumbs { display: none; }
  .topbar-brand { display: flex; }
  .topbar-right { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 14px; gap: 6px; }
  .stat-label { font-size: 13px; }
  .stat-value { flex-direction: column; align-items: flex-start; gap: 2px; }
  .stat-value span { font-size: 30px; }
  .week-nav { justify-content: flex-start; }
  .dayview { padding: 8px 16px 20px; }
  .month { min-width: 0; }
  .mhead { padding: 8px 2px; text-align: center; font-size: 10px; letter-spacing: 0; }
  .mcell { min-height: 64px; padding: 4px 3px; gap: 3px; align-items: center; }
  .mtop { width: 100%; justify-content: center; }
  .madd { display: none; }
  .mchip { background: transparent; width: auto; }
  .mchip-hit { padding: 0; width: auto; }
  .mchip .mt { display: none; }
  .mchip .dot { width: 8px; height: 8px; flex-basis: 8px; }
  .mcell { flex-direction: column; }
  .mmore { font-size: 10px; padding: 0; }
  .content { padding: 20px 16px 110px; }
  .page-head h1 { font-size: 30px; }
  .week { grid-template-columns: 1fr; }
  .week-head { padding: 16px; }
  .week-label { min-width: 0; }
  .list-row { padding: 14px 16px; }
  .hide-sm { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: #fff; border-top: 1px solid #e7e4dc; padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 10px; text-decoration: none; color: #3a3833; font-size: 11px; }
  .bottom-nav a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Stanje stavke: crvena samo za zakašnjelo, zelena/prigušena za gotovo */
.chip.st-late, .mchip.st-late { background: #fdf0ee; border-color: #f0c4be; border-left-color: #c0392b; }
.chip.st-fin, .mchip.st-fin { background: #f6faf7; border-color: #d4e8da; opacity: .8; }
.chip.st-late .chip-title::before { content: "Kasni · "; color: #a1261f; font-weight: 600; }
