/* The Office - Posta PWA.
   Mobile-first, nezavisno od admin style.css. */

:root {
  /* Boje su uzete iz logotipa: crvena #E52231 sa znaka, crna sa natpisa. */
  --bg:         #f4f5f7;
  --card:       #ffffff;
  --ink:        #14171c;
  --muted:      #6b7280;
  --faint:      #9ca3af;
  --line:       #e6e8ec;
  --accent:     #16181c;   /* zaglavlje i glavna dugmad */
  --accent-ink: #ffffff;
  --accent-soft:#eef0f3;
  --brand:      #e52231;   /* crvena iz znaka */
  --brand-soft: #fdeaec;
  --danger:     #e52231;
  --ok:         #0f9d70;
  --warn:       #d97706;
  --radius:     14px;
  --shadow:     0 1px 2px rgba(15, 27, 42, .05), 0 1px 3px rgba(15, 27, 42, .04);
  --shadow-lg:  0 4px 16px rgba(15, 27, 42, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------- zaglavlje */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-header h1 {
  font-size: 1.08rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.01em;
  flex: 1;
  line-height: 1.25;
  min-width: 0;
}

.app-header .sub {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  opacity: .82;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-header .sub-email {
  font-size: .72rem;
  opacity: .6;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Strelica nazad mora da bude meta za prst, ne sitan znak.
   44px je najmanja velicina koju Apple preporucuje za dodir. */
/* Znak sa logotipa - stoji tamo gde na podstranama ide strelica nazad. */
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

.back-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: -10px;
  border-radius: 50%;
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(255, 255, 255, .2);
}

.back-link:active { background: rgba(255, 255, 255, .16); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 9px;
  color: var(--accent-ink);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Odjava mora da se prepozna kao odjava, ne kao jos jedan meni. */
.signout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 9px;
  color: var(--accent-ink);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
}

.lang-toggle:active,
.signout-btn:active { background: rgba(255, 255, 255, .16); }

.signout-icon { font-size: .9rem; letter-spacing: -1px; }

/* ---------------------------------------------------------- akcije */

.action-bar {
  display: flex;
  gap: 10px;
  padding: 14px 16px 0;
  max-width: 640px;
  margin: 0 auto;
}

.action-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
  color: var(--ink);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.action-tab:active { background: #eef2f7; }
.action-tab:disabled { opacity: .6; }

.news-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
}

/* ---------------------------------------------------------- sadrzaj */

.app-main {
  padding: 16px;
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 32px);
  max-width: 640px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.preview-banner { margin-bottom: 14px; padding: 10px 13px; border: 1px solid #e0bd5a; border-radius: 11px; background: #fff8dc; color: #664d03; font-size: .8rem; font-weight: 750; text-align: center; }

/* ---------------------------------------------------------- finansije */

.finance-balance {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 12px;
  background: linear-gradient(145deg, #f5f7fa, #fff);
  box-shadow: var(--shadow);
}

.finance-balance.is-debt { border-color: #efb2b2; background: #fff8f8; }
.finance-balance.is-credit { border-color: #a8d8bd; background: #f4fbf7; }
.finance-balance.is-clear { border-color: #b9c9d8; }
.finance-eyebrow { display: block; color: var(--muted); font-weight: 650; margin-bottom: 5px; }
.finance-balance strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.finance-balance small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.4; }

.finance-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.finance-stat { padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.finance-stat span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 5px; }
.finance-stat b { font-size: 1.05rem; }
.finance-section { margin-top: 24px; }
.finance-section h2 { font-size: 1.15rem; margin: 0 0 5px; }
.finance-intro { color: var(--muted); font-size: .84rem; line-height: 1.45; margin: 0 0 12px; }
.finance-list, .payment-list { display: grid; gap: 10px; }
.finance-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fb; }
.finance-filter label span { display: block; margin: 0 0 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.finance-filter input { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: #fff; color: var(--text); font: inherit; }
.finance-filter button, .finance-filter a { min-height: 42px; border-radius: 9px; font: inherit; font-weight: 750; }
.finance-filter button { border: 0; background: var(--accent); color: #fff; }
.finance-filter a { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; }

.invoice-card { border: 1px solid var(--line); border-radius: 15px; padding: 15px; background: var(--card); box-shadow: var(--shadow); }
.invoice-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-kind { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; font-weight: 800; }
.invoice-card h3 { font-size: .95rem; line-height: 1.3; margin: 4px 0; overflow-wrap: anywhere; }
.invoice-card p { color: var(--muted); margin: 0; font-size: .82rem; }
.state-chip, .method-chip { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 750; }
.state-paid { color: #17633c; background: #e6f6ec; }
.state-open { color: #a12c2c; background: #fdeaea; }
.state-neutral { color: #5b6470; background: #eef1f4; }
.invoice-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; color: var(--muted); font-size: .74rem; }
.delivery-ok { color: #17633c; }
.delivery-bad { color: #a12c2c; }
.invoice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.invoice-preview, .invoice-download { display: flex; justify-content: center; align-items: center; min-height: 42px; border-radius: 10px; text-decoration: none; font-weight: 750; }
.invoice-preview { border: 1px solid var(--accent); background: #fff; color: var(--accent); }
.invoice-download { background: var(--accent); color: #fff; }
.invoice-viewer-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.invoice-viewer-actions .invoice-download { width: min(220px, 100%); padding: 0 14px; }
.invoice-preview-frame { width: 100%; height: calc(100vh - 155px); min-height: 560px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.invoice-preview-image { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.payment-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--card); }
.payment-row b, .payment-row span { display: block; }
.payment-row > div > span { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.payment-main { min-width: 0; }
.statement-detail { display: block; margin-top: 7px; color: var(--muted); font-size: .72rem; line-height: 1.35; overflow-wrap: anywhere; }
.payment-side { text-align: right; }
.payment-side small { display: block; color: var(--muted); margin-top: 6px; }
.method-chip { color: #234f8f !important; background: #e8f0ff; margin-top: 0 !important; }
.finance-empty { padding: 24px 16px; }

/* ---------------------------------------------------------- pretraga */

.search-box {
  position: relative;
  margin-bottom: 14px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  margin: 0;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 24, 28, .08);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: .95rem;
  pointer-events: none;
}

/* ---------------------------------------------------------- lista poste */

/* Red, ne velika kartica: slicica levo, podaci desno. Slika od 170px
   visine je ranije gutala ekran, a od PDF-a se video isecak sredine. */
.mail-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 13px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.mail-row:active { background: #f8fafc; }

.mail-thumb {
  position: relative;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid var(--line);
}

.mail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;   /* vrh dokumenta, ne sredina */
  display: block;
}

.mail-kind {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(15, 27, 42, .68);
  color: #fff;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  padding: 2px 0;
}

.mail-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mail-sender {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  min-width: 0;
}

.mail-sender .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-row.unseen .mail-sender { font-weight: 700; }

.mail-note,
.mail-meta {
  font-size: .79rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mail-meta { color: var(--faint); font-size: .75rem; }

.mail-chevron {
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 1.5rem;
  line-height: 1;
}

/* Tackica statusa - brze se skenira spisak nego citanjem plocica. */
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--faint);
}

.dot-new             { background: var(--danger); }
.dot-scan_requested  { background: var(--warn); }
.dot-scanned         { background: var(--ok); }
.dot-pickup_requested{ background: var(--ink); }
.dot-picked_up,
.dot-archived        { background: #cbd5e1; }

/* ---------------------------------------------------------- oznake */

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}

.badge-new              { background: var(--brand-soft); color: var(--brand); }
.badge-scan_requested   { background: #fef3e2; color: var(--warn); }
.badge-scanned          { background: #e3f5ee; color: var(--ok); }
.badge-pickup_requested { background: var(--accent-soft); color: var(--ink); }
.badge-picked_up,
.badge-archived         { background: #eef2f7; color: var(--muted); }

/* ---------------------------------------------------------- dugmad */

.btn {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled { opacity: .55; }

.btn-outline {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--line);
}

.btn-scan   { background: var(--accent); }

.btn-pickup {
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-sm { width: auto; display: inline-block; min-height: 0; padding: 9px 16px; font-size: .88rem; }

/* ---------------------------------------------------------- forme */

label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=password],
input[type=tel], input[type=date], textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  margin-bottom: 14px;
  color: var(--ink);
}

/* ------------------------------------------------ rezervacije sala */
.room-benefit { margin-bottom: 14px; padding: 16px; border-color: #d8e6dc; background: linear-gradient(135deg,#f4fbf6,#fff); }
.room-benefit[hidden] { display: none; }
.room-benefit-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.room-benefit-head h2 { margin: 2px 0 0; font-size: 1rem; }
.room-benefit-kicker { color: #39734a; font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.room-benefit-head > strong { display: flex; align-items: baseline; justify-content: center; min-width: 58px; height: 58px; box-sizing: border-box; padding: 17px 7px 0; border-radius: 50%; background: #267342; color: #fff; font-size: 1.25rem; }
.room-benefit-head > strong::after { content: "min"; margin-left: 3px; font-size: .56rem; font-weight: 600; }
.room-benefit-track { height: 7px; margin-top: 13px; overflow: hidden; border-radius: 99px; background: #dce9df; }
.room-benefit-track span { display: block; height: 100%; border-radius: inherit; background: #2e8b50; transition: width .25s ease; }
.room-benefit-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--muted); font-size: .72rem; }
.room-benefit-booking { margin: 9px 0; padding: 10px 11px; border: 1px solid #cfe1d4; border-radius: 9px; background: #f3faf5; color: #315d3d; font-size: .78rem; line-height: 1.45; }
.rooms-toolbar { padding: 14px; }
.rooms-date-nav { display: flex; align-items: end; gap: 8px; margin-bottom: 10px; }
.rooms-date-field { flex: 1; margin: 0; }
.rooms-date-field input { margin: 6px 0 0; }
.rooms-arrow, .room-dialog-close {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 11px; width: 46px; height: 46px; font-size: 1.7rem; cursor: pointer;
}
.rooms-help { color: var(--muted); font-size: .8rem; line-height: 1.45; margin: 0; }
.rooms-message { display: none; border-radius: 11px; padding: 12px 14px; margin-bottom: 12px; font-size: .9rem; }
.rooms-message.show { display: block; }
.rooms-message.success { background: #e3f5ee; color: #087653; }
.rooms-message.error { background: var(--brand-soft); color: var(--danger); }
.room-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--room-color); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.room-card header { display: flex; align-items: center; gap: 10px; padding: 14px; }
.room-card header > div { flex: 1; min-width: 0; }
.room-card h2, .rooms-mine-section h2, .room-dialog h2 { margin: 0; font-size: 1.03rem; }
.room-card header p, .room-dialog-head p { color: var(--muted); font-size: .78rem; margin: 4px 0 0; }
.room-reserve { border: 0; border-radius: 9px; background: var(--accent); color: #fff; min-height: 38px; padding: 0 13px; font-weight: 650; }
.room-slots { display: grid; grid-template-columns: repeat(4, minmax(76px,1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); max-height: 225px; overflow-y: auto; }
.room-slot { min-height: 53px; padding: 7px 5px; border: 0; background: #fff; color: var(--ink); font-family: inherit; text-align: center; }
.room-slot span, .room-slot b { display: block; font-size: .72rem; }
.room-slot b { margin-top: 3px; font-weight: 650; }
.room-slot.free { color: #087653; cursor: pointer; }
.room-slot.free:active { background: #e3f5ee; }
.room-slot.free:disabled { color: var(--faint); background: #f5f6f7; }
.room-slot.occupied { background: #f1f2f4; color: var(--muted); }
.room-slot.own { background: #eaf1ff; color: #2457b8; }
.rooms-mine-section { margin-top: 24px; }
.rooms-mine-section > h2 { margin: 0 0 10px 2px; }
.my-booking { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.my-booking-date { flex: 0 0 84px; color: var(--muted); font-size: .75rem; }
.my-booking-date b { display: block; color: var(--ink); font-size: .82rem; margin-bottom: 3px; }
.my-booking-info { flex: 1; min-width: 0; font-size: .86rem; }
.my-booking-info b, .my-booking-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-booking-info small { color: var(--muted); margin-top: 3px; }
.my-cancel { border: 1px solid #f2a5ab; color: var(--danger); background: #fff; border-radius: 9px; min-height: 38px; padding: 0 10px; font-weight: 650; }
.my-locked { flex: 0 0 82px; color: var(--muted); font-size: .68rem; text-align: right; }
.empty.compact { padding: 22px 12px; }
.room-dialog { width: min(94vw, 500px); border: 0; border-radius: 16px; padding: 0; box-shadow: 0 18px 60px rgba(0,0,0,.26); }
.room-dialog::backdrop { background: rgba(10,15,22,.55); }
.room-dialog form { padding: 18px; }
.room-dialog-head { display: flex; gap: 12px; align-items: start; margin-bottom: 16px; }
.room-dialog-head > div { flex: 1; }
.room-dialog-close { width: 38px; height: 38px; font-size: 1.4rem; }
.room-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.room-policy { background: #f5f6f7; color: var(--muted); border-radius: 9px; padding: 10px; font-size: .76rem; line-height: 1.45; }
.room-form-error { color: var(--danger); min-height: 20px; font-size: .84rem; margin-bottom: 8px; }
@media (max-width: 480px) {
  .action-bar { flex-wrap: wrap; }
  .action-tab { flex: 1 1 42%; }
  .room-slots { grid-template-columns: repeat(3, minmax(76px,1fr)); }
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 24, 28, .08);
}

textarea { min-height: 84px; resize: vertical; }

/* ---------------------------------------------------------- poruke */

.flash {
  padding: 13px 15px;
  border-radius: 11px;
  margin-bottom: 14px;
  font-size: .9rem;
  line-height: 1.45;
}

.flash-success { background: #e3f5ee; color: var(--ok); }
.flash-error   { background: var(--brand-soft); color: var(--brand); }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 52px 20px;
  line-height: 1.6;
}

.empty .big { font-size: 2.6rem; display: block; margin-bottom: 12px; }

.push-banner {
  background: #fff8ec;
  border: 1px solid #fbe3bd;
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 14px;
  font-size: .88rem;
  line-height: 1.5;
}

.push-banner[data-state="on"],
.push-banner[data-state="unsupported"] { display: none; }
.push-banner[data-state="denied"] .ask-text { display: none; }
.push-banner[data-state="denied"] .denied-text { display: block; }
.push-banner[data-state="denied"] button { display: none; }
.push-banner .denied-text { display: none; }

.new-mail-banner {
  display: block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: .92rem;
  font-weight: 600;
}

.new-mail-banner[hidden] { display: none; }

/* ---------------------------------------------------------- detalj */

.mail-full {
  width: 100%;
  border-radius: 11px;
  display: block;
  background: #eef2f7;
}

.mail-full + .mail-full { margin-top: 10px; }

.page-label {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin: 6px 0 14px;
}

.quiet-link {
  color: var(--muted);
  font-size: .85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.kv { font-size: .92rem; margin: 0 0 9px; line-height: 1.5; }
.kv b { color: var(--muted); font-weight: 600; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .86rem;
  color: var(--muted);
}

.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }

.install-hint {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  margin-top: 22px;
  line-height: 1.6;
}

/* ---------------------------------------------------------- vesti */

.news-link { position: relative; white-space: nowrap; }

.news-card h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.news-new {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 6px;
  vertical-align: 2px;
}

.news-body { margin: 0 0 12px; line-height: 1.6; }

.news-meta {
  margin: 0;
  font-size: .78rem;
  color: var(--faint);
}


/* Logotip na strani prijave. */
.brand-lockup {
  text-align: center;
  margin: 6px 0 22px;
}

.brand-lockup img {
  width: 190px;
  max-width: 62%;
  height: auto;
}


/* Birac jezika - sa tri jezika prekidac vise nije dovoljan. */
.lang-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
}

.lang-option:last-child { border-bottom: 0; }
.lang-option:active { background: #f4f5f7; }

.lang-name { font-size: 1rem; font-weight: 500; }
.lang-option.is-current .lang-name { font-weight: 700; }

.lang-check {
  color: var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- podesavanja ------------------------------------------------------- */
.setting-row { display:flex; align-items:center; justify-content:space-between;
               gap:12px; margin-top:10px; }
.setting-text { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.setting-state { font-size:.8rem; padding:2px 10px; border-radius:999px;
                 background:#e8e8e8; color:#555; white-space:nowrap; }
.setting-state.is-on { background:#dff0e4; color:#1e7e4f; }
.setting-body { margin:10px 0 0; color:#555; font-size:.92rem; line-height:1.45; }
.setting-note { margin:8px 0 0; color:#777; font-size:.86rem; line-height:1.45; }
.setting-row + form, .setting-body + form, .setting-note + form { margin-top:14px; }
