:root {
  --blue-900: #01243f;
  --blue-800: #013668;
  --blue-700: #01528f;
  --blue-600: #0f5f9e;
  --blue-500: #2b7bc0;
  --blue-100: #e2edf6;
  --orange-600: #a84d12;
  --orange-500: #f26c0c;
  --orange-300: #fba968;
  --orange-100: #fceadb;
  --steel: #4e6e8a;
  --steel-700: #35566f;
  --steel-100: #e6ecf2;

  --navy: var(--blue-800);
  --navy-soft: var(--blue-700);
  --cream: #f4f7fa;
  --paper: #fff;
  --ink: #10202e;
  --muted: #5c7182;
  --line: #d9e3ec;
  --orange: var(--orange-500);
  --orange-strong: var(--orange-600);
  --eyebrow: var(--orange-600);
  --danger: #a63a3a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #0c1a26;
    --paper: #142633;
    --ink: #e9f1f8;
    --muted: #9cb0c0;
    --line: #274154;
    --eyebrow: #f7b98c;
  }
}

* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--orange-strong); outline-offset: 2px; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: inherit; }

/* Shared form-control primitives: keep every combo box and text action in one visual language. */
select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c7182' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px 7px;
}
select:disabled { cursor: not-allowed; opacity: .6; }
@media (prefers-color-scheme: dark) {
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239cb0c0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
.text-button { padding: 5px 0; color: var(--muted); background: none; border: 0; font: inherit; font-size: 11px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.text-button.danger { color: var(--danger); }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 30px 20px 20px;
  color: #dce7ea;
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, .08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 46px;
  color: #fff;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-icon { display: block; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; }
.brand-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.main-nav { display: grid; gap: 7px; }
.mobile-app-menu { display: none; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 13px;
  border-radius: 12px;
  color: #b9c9ce;
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.nav-link.active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 3px 0 var(--orange); }
.nav-icon { display: grid; width: 25px; place-items: center; font-size: 19px; }
.nav-icon svg { width: 19px; height: 19px; }
.gear { font-size: 18px; }
.gear svg { width: 17px; height: 17px; }
.sidebar-bottom { display: grid; gap: 16px; margin-top: auto; }
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.avatar { display: grid; width: 35px; height: 35px; place-items: center; flex: 0 0 auto; color: var(--blue-900); background: var(--orange-300); border-radius: 50%; font-size: 13px; font-weight: 800; }
.profile-copy { display: grid; min-width: 0; flex: 1; }
.profile-copy strong { color: #fff; font-size: 12px; }
.profile-copy small { overflow: hidden; color: #8fa6ad; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile > a { color: #a9bdc3; text-decoration: none; }
.profile > a svg { width: 16px; height: 16px; }

.content { max-width: 1500px; margin-left: 248px; padding: 42px clamp(28px, 5vw, 78px) 30px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.eyebrow { margin: 0 0 7px; color: var(--eyebrow); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin-bottom: 0; font-size: clamp(31px, 4vw, 46px); line-height: 1; letter-spacing: -.04em; }
.wave { display: inline-block; font-size: .85em; }
.settings-button { display: grid; width: 44px; height: 44px; place-items: center; color: var(--navy); background: transparent; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; font-size: 20px; transition: background .18s ease, transform .18s ease; }
.settings-button:hover { background: var(--paper); transform: rotate(20deg); }

.hero {
  position: relative;
  display: grid;
  min-height: 290px;
  align-items: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  color: #fff;
  background: linear-gradient(125deg, var(--blue-800), var(--blue-900) 72%);
  border-radius: 30px;
  box-shadow: 0 18px 45px rgba(1,36,63,.18);
}
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero::before { width: 360px; height: 360px; right: -90px; top: -120px; }
.hero::after { width: 220px; height: 220px; right: 55px; bottom: -145px; }
.hero > div:first-child { position: relative; z-index: 1; max-width: 680px; }
.hero .eyebrow { color: var(--orange-300); }
.hero h2 { max-width: 650px; margin-bottom: 16px; font-size: clamp(34px, 5vw, 59px); line-height: 1.02; letter-spacing: -.045em; }
.hero p:last-child { max-width: 570px; margin-bottom: 0; color: #c4d6e0; font-size: 16px; line-height: 1.6; }
.hero-logo { position: relative; z-index: 1; display: block; width: 108px; height: 108px; margin-bottom: 18px; overflow: hidden; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero-logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-mark { display: none; }
.hero-orbit span { position: absolute; z-index: 1; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 50%; backdrop-filter: blur(8px); }
.hero-orbit span:nth-child(1) { width: 62px; height: 62px; right: 120px; top: 58px; color: var(--orange-300); font-size: 25px; }
.hero-orbit span:nth-child(2) { width: 46px; height: 46px; right: 62px; top: 137px; color: var(--orange-100); }
.hero-orbit span:nth-child(3) { width: 40px; height: 40px; right: 155px; bottom: 34px; color: var(--blue-100); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 55px 0 24px; }
.section-heading h2 { margin-bottom: 0; font-size: clamp(27px, 3vw, 36px); letter-spacing: -.035em; }
.coming-soon { color: var(--muted); font-size: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.module-card {
  min-height: 190px;
  padding: 18px 20px 20px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(42,52,55,.035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card:hover { transform: translateY(-5px); border-color: var(--steel); box-shadow: 0 18px 35px rgba(1,36,63,.12); }
.module-card a:focus-visible { outline-offset: 3px; }
.module-card.soon {
  cursor: default;
  background: repeating-linear-gradient(135deg, var(--paper), var(--paper) 10px, var(--steel-100) 10px, var(--steel-100) 11px);
  opacity: .78;
}
.module-card.soon:hover { transform: none; border-color: var(--line); box-shadow: 0 8px 24px rgba(1,36,63,.05); }
.module-card.soon .module-vignette { filter: grayscale(1); opacity: .55; }
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 4px 10px;
  color: var(--orange-strong);
  background: var(--orange-100);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.module-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.module-vignette { display: block; width: 84px; height: 56px; }
.module-vignette svg { display: block; width: 100%; height: 100%; }
.arrow { color: var(--muted); font-size: 18px; }
.module-card h3 { margin-bottom: 6px; font-size: 20px; letter-spacing: -.025em; }
.module-card h3 a { color: inherit; text-decoration: none; }
.module-card > p {
  display: -webkit-box;
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span, .tags a { padding: 6px 9px; color: var(--muted); background: var(--steel-100); border-radius: 99px; font-size: 10px; font-weight: 750; }
.tags a { text-decoration: none; transition: color .15s ease, background .15s ease; }
.tags a:hover { color: var(--blue-800); background: var(--blue-100); }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }

/* Sign-in screen stays intentionally separate from the authenticated app shell. */
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow-x: hidden;
  padding: 20px;
  color: var(--ink);
  background: radial-gradient(circle at 75% 15%, #015a9c, #01243f 55%);
}
.login-page::before, .login-page::after {
  content: "";
  position: fixed;
  border: 2px solid #39a0e7;
  border-radius: 50%;
  opacity: .22;
  pointer-events: none;
}
.login-page::before { width: 34rem; height: 34rem; right: -16rem; top: -18rem; }
.login-page::after { width: 22rem; height: 22rem; left: -12rem; bottom: -12rem; border-color: #ff6700; }
.login-page main {
  position: relative;
  width: min(92vw, 490px);
  padding: clamp(1.7rem, 5vw, 2.5rem);
  text-align: center;
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}
.login-page .logo { display: block; width: min(76%, 310px); height: auto; margin: -1rem auto .3rem; }
.login-page .kicker { margin: 0 0 .75rem; color: #a84d12; font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-page h1 { margin: 0; font-size: clamp(2rem, 8vw, 2.65rem); line-height: 1.05; letter-spacing: -.04em; }
.login-page .lead { max-width: 24rem; margin: 1rem auto 1.55rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.microsoft-button { display: flex; align-items: center; justify-content: center; gap: .8rem; width: 100%; padding: .95rem 1rem; color: #fff; background: #01243f; border-radius: 13px; text-decoration: none; font-size: .95rem; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.microsoft-button:hover { background: #015a9c; transform: translateY(-2px); }
.ms-grid { display: grid; grid-template-columns: repeat(2, .55rem); gap: .12rem; }
.ms-grid i { width: .55rem; height: .55rem; background: #f35325; }
.ms-grid i:nth-child(2) { background: #81bc06; }
.ms-grid i:nth-child(3) { background: #05a6f0; }
.ms-grid i:nth-child(4) { background: #ffba08; }
.privacy-note { margin: 1rem 0 0; color: #8a96a0; font-size: .73rem; }

/* Birthdays */
.birthday-content { max-width: 1600px; }
.birthday-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.birthday-header h1 { margin-bottom: 10px; }
.birthday-header > div > p:last-child { margin-bottom: 0; color: var(--muted); }
.primary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 19px; color: #fff; background: var(--navy); border: 0; border-radius: 12px; text-decoration: none; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.primary-button:hover { background: var(--navy-soft); transform: translateY(-1px); }
.notice { margin-bottom: 20px; padding: 14px 17px; border: 1px solid; border-radius: 13px; font-size: 13px; }
.notice.success { color: #2f6656; background: #e7f3ed; border-color: #bfdbd0; }
.notice.error { color: #8f4439; background: #faece8; border-color: #efc7bf; }
.notice ul { margin: 7px 0 0; padding-left: 20px; }
.birthday-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { display: flex; min-height: 102px; align-items: center; gap: 15px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.stat-icon { display: grid; width: 48px; height: 48px; place-items: center; flex: 0 0 auto; border-radius: 14px; font-size: 20px; }
.stat-icon.apricot { color: var(--orange-600); background: var(--orange-100); }
.stat-icon.mint { color: var(--steel-700); background: var(--steel-100); }
.stat-icon.violet { color: #fff; background: var(--blue-700); }
.stat-icon.sky { color: var(--blue-600); background: var(--blue-100); }
.stat-card div { display: grid; }
.stat-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.stat-card span:last-child { color: var(--muted); font-size: 11px; }
.birthday-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .75fr); align-items: start; gap: 22px; }
.birthday-list-panel, .birthday-form-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.birthday-list-panel { min-height: 480px; padding: 25px; }
.birthday-form-panel { position: sticky; top: 24px; padding: 25px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-heading h2, .birthday-form-panel h2 { margin-bottom: 0; font-size: 25px; letter-spacing: -.03em; }
.search-field { display: flex; min-width: 190px; align-items: center; gap: 7px; padding: 0 11px; background: var(--steel-100); border: 1px solid transparent; border-radius: 10px; }
.search-field:focus-within { background: var(--paper); border-color: var(--orange-strong); }
.search-field input { width: 100%; height: 38px; padding: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 12px; }
.birthday-list { display: grid; }
.birthday-person { display: grid; grid-template-columns: 58px minmax(160px, 1fr) auto auto; align-items: center; gap: 15px; padding: 16px 0; border-top: 1px solid var(--line); }
.date-tile { display: grid; width: 53px; height: 58px; place-content: center; text-align: center; color: var(--ink); background: var(--orange-100); border-radius: 12px; }
.date-tile strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1; }
.date-tile span { margin-top: 4px; color: var(--orange-600); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.person-main { min-width: 0; }
.person-main h3 { margin-bottom: 4px; font-size: 18px; }
.person-main p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.person-main small { display: block; overflow: hidden; max-width: 360px; margin-top: 5px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.person-reminder { padding: 7px 9px; color: var(--steel-700); background: var(--steel-100); border-radius: 99px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.person-actions { display: flex; align-items: center; gap: 8px; }
.person-actions a, .person-actions button { padding: 5px 0; color: var(--muted); background: none; border: 0; font: inherit; font-size: 10px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.person-actions button { color: var(--danger); }
.empty-state { display: grid; min-height: 355px; place-items: center; place-content: center; padding: 40px; text-align: center; }
.empty-state > span { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 15px; color: var(--orange-600); background: var(--orange-100); border-radius: 18px; font-size: 24px; }
.empty-state h3 { margin-bottom: 7px; font-size: 22px; }
.empty-state p { max-width: 330px; margin-bottom: 15px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state a { color: var(--orange-600); font-size: 12px; font-weight: 800; }
.no-search-results { padding: 30px; color: var(--muted); text-align: center; font-size: 12px; }
.birthday-form-panel form { display: grid; min-width: 0; gap: 16px; margin-top: 22px; }
.birthday-form-panel label { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.birthday-form-panel input:not([type="checkbox"]), .birthday-form-panel textarea, .birthday-form-panel select { width: 100%; min-width: 0; padding: 11px 12px; color: var(--ink); background-color: var(--paper); border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; font-size: 13px; box-sizing: border-box; }
.birthday-form-panel select { padding-right: 34px; }
.birthday-form-panel input:focus, .birthday-form-panel textarea:focus, .birthday-form-panel select:focus { border-color: var(--orange-strong); box-shadow: 0 0 0 3px rgba(168,77,18,.16); outline: none; }
.access-card select { width: 100%; min-width: 0; padding: 11px 34px 11px 12px; color: var(--ink); background-color: var(--paper); border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; font-size: 13px; box-sizing: border-box; }
.access-card select:focus { border-color: var(--orange-strong); box-shadow: 0 0 0 3px rgba(168,77,18,.16); outline: none; }
.birthday-form-panel textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.reminder-box { display: grid; gap: 14px; padding: 15px; background: var(--steel-100); border-radius: 13px; }
.switch-row { display: flex !important; align-items: center; justify-content: space-between; gap: 15px; }
.switch-row span { display: grid; gap: 3px; }
.switch-row strong { color: var(--ink); font-size: 12px; }
.switch-row small { color: var(--muted); font-size: 9px; font-weight: 500; }
.switch-row input { width: 19px; height: 19px; accent-color: var(--navy); }
.form-actions { display: flex; align-items: center; gap: 14px; }
.form-actions a { color: var(--muted); font-size: 11px; font-weight: 750; }

/* Recipes: minimal structural layer; design: potreben pregled. */
.recipe-layout { grid-template-columns: minmax(0, 1.45fr) minmax(340px, .85fr); }
.recipe-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe-filters select { min-height: 40px; padding: 0 30px 0 12px; color: var(--ink); background-color: var(--paper); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 12px; }
.recipe-list { display: grid; gap: 14px; }
.recipe-card { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.recipe-photo { display: block; width: 100%; height: 160px; margin-bottom: 12px; object-fit: cover; border-radius: 14px; }
.recipe-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.recipe-card h3 { margin: 6px 0 0; font-size: 21px; }
.recipe-category { color: var(--orange-strong); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.recipe-meta { margin: 7px 0 13px; color: var(--muted); font-size: 11px; }
.recipe-card details summary { color: var(--ink); font-size: 12px; font-weight: 800; cursor: pointer; }
.recipe-copy { margin-top: 13px; padding: 15px; color: var(--ink); background: var(--steel-100); border-radius: 12px; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.recipe-attachments { display: grid; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; }
.recipe-attachments > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recipe-attachments a { color: var(--navy-soft); overflow-wrap: anywhere; }
.recipe-attachments form { margin: 0; }
.recipe-attachments button { color: var(--danger); background: none; border: 0; font: inherit; font-size: 10px; cursor: pointer; text-decoration: underline; }
.birthday-form-panel label small { color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.5; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Countdowns */
.countdown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-bottom: 30px; }
.countdown-card { position: relative; padding: 22px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.countdown-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; }
.countdown-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.countdown-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; font-size: 18px; }
.countdown-owner-actions { display: flex; align-items: center; gap: 8px; }
.countdown-owner-actions a, .countdown-owner-actions button { padding: 4px 0; color: var(--muted); background: none; border: 0; font: inherit; font-size: 10px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.countdown-owner-actions button { color: var(--danger); }
.countdown-category { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.countdown-card h3 { margin-bottom: 16px; font-size: 20px; letter-spacing: -.02em; }
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.countdown-unit { display: grid; padding: 10px 4px; text-align: center; background: var(--steel-100); border-radius: 12px; }
.countdown-unit .num { font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-variant-numeric: tabular-nums; }
.countdown-unit .label { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.countdown-meta { margin: 0; color: var(--muted); font-size: 11px; }
.countdown-card.theme-travel::before { background: var(--blue-600); }
.countdown-card.theme-travel .countdown-icon { color: var(--blue-600); background: var(--blue-100); }
.countdown-card.theme-birthday::before { background: var(--orange-600); }
.countdown-card.theme-birthday .countdown-icon { color: var(--orange-600); background: var(--orange-100); }
.countdown-card.theme-holiday::before { background: var(--blue-900); }
.countdown-card.theme-holiday .countdown-icon { color: #fff; background: var(--blue-900); }
.countdown-card.theme-general::before { background: var(--steel-700); }
.countdown-card.theme-general .countdown-icon { color: var(--steel-700); background: var(--steel-100); }
.countdown-card.theme-custom::before { background: var(--blue-700); }
.countdown-card.theme-custom .countdown-icon { color: #fff; background: var(--blue-700); }
.countdown-past { margin-bottom: 30px; }
.countdown-past h2 { margin-bottom: 14px; font-size: 20px; }
.countdown-past-list { display: grid; gap: 10px; }
.countdown-past-item { display: flex; align-items: center; gap: 15px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; opacity: .75; }
.countdown-past-item .person-main { flex: 1; min-width: 0; }
#countdown-custom-category-row[hidden] { display: none; }

/* Zemljevid: funkcionalna struktura; design: potreben pregled. */
.nav-group { display: block; }
.nav-group > summary { list-style: none; cursor: pointer; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-section:hover { color: #fff; background: rgba(255,255,255,.08); transform: none; }
.nav-chevron { margin-left: auto; transition: transform .18s ease; }
.nav-group[open] > summary .nav-chevron, .mobile-nav-group[open] > summary .nav-chevron, .mobile-app-menu[open] > summary .nav-chevron { transform: rotate(180deg); }
.nav-submenu-list { display: grid; gap: 4px; padding-top: 4px; }
.main-nav .nav-submenu { width: calc(100% - 28px); min-height: 40px; margin-left: 28px; font-size: 13px; }
.main-nav .nav-submenu .nav-icon { width: 20px; font-size: 13px; }
.main-nav .nav-submenu .nav-icon svg { width: 16px; height: 16px; }
.map-content { max-width: none; min-height: 100vh; }
.map-header { margin-bottom: 22px; }
.world-map-panel { padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.map-toolbar h2 { margin-bottom: 4px; font-size: 25px; }
.map-toolbar p, .map-help { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.map-controls { display: flex; gap: 7px; }
.map-controls button { min-width: 42px; min-height: 42px; padding: 0 12px; color: var(--ink); background: var(--steel-100); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 800; cursor: pointer; }
.map-controls button:hover { background: var(--blue-100); }
.world-map-viewport { position: relative; min-height: clamp(430px, 67vh, 820px); overflow: hidden; touch-action: none; background: var(--blue-100); border: 1px solid var(--line); border-radius: 18px; cursor: grab; }
.world-map-viewport:active { cursor: grabbing; }
.world-map-canvas { width: 100%; height: 100%; transform-origin: center; transition: transform .15s ease-out; }
.world-map-canvas svg { display: block; width: 100%; height: 100%; min-height: clamp(430px, 67vh, 820px); }
.world-map-canvas svg > path, .world-map-canvas svg > g path { fill: var(--paper); stroke: var(--steel); stroke-width: .45; vector-effect: non-scaling-stroke; }
.world-map-canvas .map-country { fill: var(--paper); stroke: var(--steel); stroke-width: .45; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s ease; }
.world-map-canvas g.map-country { fill: none; stroke: none; }
.world-map-canvas g.map-country path { fill: var(--paper); stroke: var(--steel); stroke-width: .45; vector-effect: non-scaling-stroke; transition: fill .15s ease; }
.world-map-canvas .map-country:hover, .world-map-canvas g.map-country:hover path { fill: var(--orange-100); }
.world-map-canvas .map-country.is-selected, .world-map-canvas g.map-country.is-selected path { fill: var(--orange); }
.world-map-canvas .map-country.is-visited, .world-map-canvas g.map-country.is-visited path { fill: #79b99f; }
.world-map-canvas .map-country.is-visited.is-selected, .world-map-canvas g.map-country.is-visited.is-selected path { fill: #4d967c; }
.world-map-canvas .map-country:focus, .world-map-canvas .map-country:focus-visible, .world-map-canvas g.map-country:focus, .world-map-canvas g.map-country:focus-visible { outline: none !important; }
.world-map-canvas .map-country:focus, .world-map-canvas .map-country:focus-visible, .world-map-canvas g.map-country:focus path, .world-map-canvas g.map-country:focus-visible path { stroke: var(--orange-strong); stroke-width: 2; }
.map-country-label { display: none; fill: var(--ink); stroke: var(--paper); stroke-width: .4px; paint-order: stroke; text-anchor: middle; dominant-baseline: central; font-family: "Segoe UI", Arial, sans-serif; font-size: var(--map-label-size, 3px); font-weight: 500; pointer-events: none; }
.world-map-canvas.show-country-labels .map-country-label { display: block; }
.map-help { margin-top: 11px; text-align: center; }
.travel-country-dialog { width: min(520px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto; background: transparent; border: 0; border-radius: 22px; box-shadow: 0 22px 65px rgba(17, 39, 68, .28); }
.travel-country-dialog[open] { position: fixed; inset: 50% auto auto 50%; z-index: 1000; margin: 0; transform: translate(-50%, -50%); }
.travel-country-dialog::backdrop { background: rgba(17, 39, 68, .48); }
.travel-country-dialog .birthday-form-panel { position: relative; top: auto; }
.travel-dialog-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; color: var(--muted); background: var(--steel-100); border: 0; border-radius: 50%; font: inherit; font-size: 22px; cursor: pointer; }

/* Seznam držav: funkcionalna razširitev obstoječih list/form komponent; design: potreben pregled. */
.travel-list-content { max-width: 1380px; }
.travel-country-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 22px; }
.travel-country-layout > * { min-width: 0; }
.travel-country-items { display: grid; }
.travel-country-item { padding: 18px 0; border-top: 1px solid var(--line); }
.travel-country-item[hidden] { display: none; }
.travel-country-item > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.travel-country-identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.country-flag { display: block; width: 38px; height: 29px; flex: 0 0 auto; object-fit: cover; background: var(--steel-100); border: 1px solid var(--line); border-radius: 6px; }
.travel-country-item h3 { margin: 0 0 3px; font-size: 18px; }
.travel-country-item header small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.travel-status { padding: 7px 10px; border-radius: 99px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.travel-status.status-visited { color: #2f6656; background: #e7f3ed; }
.travel-status.status-not_visited { color: var(--steel-700); background: var(--steel-100); }
.travel-status.status-other { color: var(--orange-600); background: var(--orange-100); }
.travel-country-summary { margin-top: 10px; color: var(--muted); font-size: 11px; }
.travel-country-summary p { max-width: 760px; margin: 6px 0 0; color: var(--ink); line-height: 1.55; }
.travel-country-editor { margin-top: 12px; }
.travel-country-editor summary { width: max-content; color: var(--orange-600); font-size: 11px; font-weight: 800; cursor: pointer; }
.travel-country-editor form { display: grid; max-width: 760px; gap: 14px; margin-top: 14px; padding: 16px; background: var(--cream); border-radius: 14px; }
.travel-country-editor label { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.travel-country-editor input, .travel-country-editor textarea, .travel-country-editor select { width: 100%; min-width: 0; padding: 11px 12px; color: var(--ink); background-color: var(--paper); border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; font-size: 13px; }
.travel-country-editor input[type="date"] { display: block; width: auto; max-width: 100%; min-inline-size: 0; }
.travel-country-editor input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.travel-country-editor select { padding-right: 34px; }
.travel-country-editor textarea { resize: vertical; }
.travel-country-editor input:focus, .travel-country-editor textarea:focus, .travel-country-editor select:focus { border-color: var(--orange-strong); box-shadow: 0 0 0 3px rgba(168,77,18,.16); }
.travel-country-editor .primary-button { justify-self: start; }
.travel-country-report { position: sticky; top: 24px; min-height: 0; }
.travel-country-report h2 { margin-bottom: 18px; font-size: 25px; }
.travel-report-stats { grid-template-columns: 1fr; margin-bottom: 0; }
.travel-report-filter { width: 100%; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.travel-report-filter:hover { border-color: var(--orange-strong); }
.travel-report-filter.is-active { border-color: var(--orange-strong); box-shadow: 0 0 0 2px rgba(168,77,18,.12); }

@media (max-width: 1150px) {
  .birthday-layout, .recipe-layout { grid-template-columns: 1fr; }
  .birthday-form-panel { position: static; }
  .travel-country-layout { grid-template-columns: 1fr; }
  .travel-country-report { position: static; order: -1; }
  .travel-report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .birthday-person { grid-template-columns: 58px 1fr auto; }
  .person-reminder { display: none; }
}
@media (max-width: 760px) {
  .birthday-stats { grid-template-columns: 1fr 1fr; }
  .birthday-stats .next-birthday { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .countdown-unit .num { font-size: 18px; }
  .birthday-header { align-items: flex-start; }
  .birthday-header > div > p:last-child { display: none; }
  .birthday-header .primary-button { padding: 0 12px; font-size: 11px; }
  .birthday-stats { gap: 9px; }
  .birthday-stats article { min-height: 90px; padding: 13px; }
  .birthday-list-panel, .birthday-form-panel { padding: 18px; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .birthday-person { grid-template-columns: 51px 1fr; gap: 11px; }
  .person-actions { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; }
  .recipe-heading { align-items: stretch; }
  .recipe-filters { display: grid; }
  .recipe-card > header { display: grid; }
  .travel-report-stats { grid-template-columns: 1fr; }
  .travel-country-item > header { align-items: flex-start; }
  .travel-country-identity > div { min-width: 0; }
  .travel-country-item h3 { overflow-wrap: anywhere; }
  .travel-country-editor form { width: 100%; padding: 14px; }
  .travel-country-editor input, .travel-country-editor textarea, .travel-country-editor select { max-width: 100%; font-size: 16px; }
}

@media (max-width: 1050px) {
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar { position: sticky; top: 0; z-index: 50; width: 100%; height: auto; flex-direction: row; align-items: center; overflow: visible; padding: calc(8px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 8px calc(14px + env(safe-area-inset-left)); }
  .brand { margin: 0 10px 0 0; font-size: 0; }
  .brand-icon { width: 38px; height: 38px; }
  .main-nav { display: none; }
  .mobile-app-menu { position: relative; display: block; color: #fff; }
  .mobile-app-menu > summary { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 800; cursor: pointer; list-style: none; }
  .mobile-app-menu summary::-webkit-details-marker { display: none; }
  .mobile-app-menu[open] > summary { background: rgba(255,255,255,.1); }
  .mobile-app-menu nav { display: none; }
  .mobile-app-menu[open] nav { position: fixed; z-index: 60; top: calc(66px + env(safe-area-inset-top)); right: calc(10px + env(safe-area-inset-right)); left: calc(10px + env(safe-area-inset-left)); display: grid; max-height: calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; background: var(--navy); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 18px 45px rgba(1,36,63,.38); }
  .mobile-app-menu nav a { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 0 13px; color: #dce8f2; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 750; }
  .mobile-nav-group { display: block; }
  .mobile-app-menu nav .mobile-menu-section { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 0 13px; color: #fff; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; cursor: pointer; list-style: none; }
  .mobile-nav-group[open] > .mobile-menu-section { background: rgba(255,255,255,.07); }
  .mobile-submenu-list { display: grid; gap: 2px; padding: 3px 0 5px; }
  .mobile-app-menu nav .mobile-submenu { width: calc(100% - 28px); min-height: 48px; margin-left: 28px; font-size: 13px; }
  .mobile-app-menu nav a.active { color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--orange); }
  .mobile-app-menu nav svg { width: 18px; height: 18px; flex: 0 0 auto; }
  .sidebar-bottom { display: flex; margin: 0 0 0 auto; }
  .sidebar-bottom > .nav-link { width: 48px; padding: 0; }
  .sidebar-bottom > .nav-link .nav-icon { display: grid; }
  .sidebar-bottom > .nav-link span:last-child, .profile { display: none; }
  .content { margin-left: 0; padding: 30px calc(18px + env(safe-area-inset-right)) calc(30px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left)); }
  .hero { min-height: 310px; padding: 34px 28px; }
  .hero-orbit { display: none; }
  .section-heading { margin-top: 40px; }
  .coming-soon { display: none; }
  .map-content { padding-right: 10px; padding-left: 10px; }
  .world-map-panel { padding: 12px; }
  .map-toolbar { align-items: flex-start; }
  .world-map-viewport, .world-map-canvas svg { min-height: 58vh; }
}
@media (max-width: 560px) {
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 170px; }
  .topbar { margin-bottom: 25px; }
  .topbar h1 { font-size: 31px; }
  .hero h2 { font-size: 37px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Potovalne fotografije — funkcionalna postavitev; design: potreben pregled. */
.travel-photo-content { max-width: 1500px; }
.travel-photo-upload { margin-bottom: 20px; }
.travel-photo-upload p, .travel-photo-copy small { color: var(--muted); }
.photo-file-summary { font-size: 13px; }
.travel-photo-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 0 0 20px; }
.travel-photo-stat-link { color: inherit; text-decoration: none; }
.travel-photo-heading { align-items: start; flex-wrap: wrap; }
.travel-photo-heading > div { min-width: 220px; }
.travel-photo-result-count { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.travel-photo-filters { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) auto; align-items: end; gap: 10px; max-width: 100%; }
.travel-photo-filters label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.travel-photo-filters select, .travel-photo-filters button { min-height: 40px; padding: 0 34px 0 12px; color: var(--ink); background-color: var(--paper); border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 12px; }
.travel-photo-filters select { width: 100%; min-width: 0; }
.travel-photo-filters button { padding-right: 15px; padding-left: 15px; background: var(--navy); border-color: var(--navy); color: #fff; cursor: pointer; font-weight: 800; }
.travel-photo-filters select:focus, .travel-photo-filters button:focus-visible { border-color: var(--orange-strong); box-shadow: 0 0 0 3px rgba(168,77,18,.16); outline: none; }
.travel-photo-folders { display: grid; gap: 14px; }
.travel-photo-folder { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.travel-photo-folder > summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; color: var(--navy); cursor: pointer; font-weight: 800; list-style: none; }
.travel-photo-folder > summary::-webkit-details-marker { display: none; }
.travel-photo-folder > summary::after { content: "+"; display: inline-grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--steel-100); font-size: 17px; }
.travel-photo-folder[open] > summary::after { content: "−"; }
.travel-photo-folder-name { min-width: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 20px; }
.travel-photo-folder-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.travel-photo-folder > .travel-photo-gallery { padding: 18px; border-top: 1px solid var(--line); }
.travel-photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.travel-photo-card { align-self: start; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.travel-photo-image { display: block; aspect-ratio: 4 / 3; background: #ecebe6; }
.travel-photo-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.travel-photo-copy { display: grid; gap: 7px; padding: 14px; }
.travel-photo-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.travel-photo-tags a, .travel-photo-tags span { border-radius: 99px; background: #dbeef2; color: #236884; padding: 4px 9px; font-size: 11px; font-weight: 800; text-decoration: none; }
.travel-photo-tags span:last-child { background: var(--cream); color: var(--muted); }
.travel-photo-editor { border-top: 1px solid var(--line); padding: 12px 14px 14px; }
.travel-photo-editor summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--navy); font-size: 13px; font-weight: 800; list-style: none; }
.travel-photo-editor summary::-webkit-details-marker { display: none; }
.travel-photo-editor summary::before { content: "+"; display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: var(--steel-100); color: var(--navy); font-size: 16px; }
.travel-photo-editor[open] summary::before { content: "−"; }
.travel-photo-editor form { display: grid; min-width: 0; gap: 12px; margin-top: 14px; }
.travel-photo-editor label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; }
.travel-photo-editor input, .travel-photo-editor select { width: 100%; min-width: 0; min-height: 42px; box-sizing: border-box; padding: 9px 11px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; font-size: 13px; }
.travel-photo-editor select { padding-right: 34px; }
.travel-photo-editor input:focus, .travel-photo-editor select:focus { border-color: var(--orange-strong); box-shadow: 0 0 0 3px rgba(168,77,18,.16); }
.travel-photo-editor .primary-button { width: 100%; min-height: 42px; }
.travel-photo-editor .danger-button { justify-self: start; padding: 7px 0; color: #9b4638; background: transparent; border: 0; font: inherit; font-size: 12px; font-weight: 750; text-decoration: underline; cursor: pointer; }
.travel-photo-count { font-size: 12px; font-weight: 800; color: #236884; }
.travel-country-photo-link, .travel-dialog-photo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }

/* Potovalne lokacije: funkcionalna postavitev, design: potreben pregled. */
.travel-location-content { max-width: 1500px; }
.travel-location-create { position: relative; }
.travel-location-create > summary { list-style: none; cursor: pointer; }
.travel-location-create > summary::-webkit-details-marker { display: none; }
.travel-location-create > .birthday-form-panel { position: absolute; z-index: 4; top: calc(100% + 10px); right: 0; width: min(430px, calc(100vw - 32px)); padding: 20px; box-shadow: 0 18px 52px rgba(17,39,68,.2); }
.travel-trip-list { display: grid; gap: 22px; }
.travel-trip-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 8px 24px rgba(42,52,55,.035); }
.travel-trip-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); }
.travel-trip-header h2 { margin: 3px 0 6px; }
.travel-trip-header p { max-width: 760px; margin: 5px 0 0; color: var(--muted); line-height: 1.55; }
.travel-location-list { display: grid; gap: 12px; padding: 18px; }
.travel-location-card { position: relative; overflow: visible; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.travel-location-card > summary { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-radius: 15px; cursor: pointer; list-style: none; }
.travel-location-card > summary::-webkit-details-marker { display: none; }
.travel-location-card > summary::after { position: absolute; top: 18px; right: 18px; content: "+"; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--steel-100); color: var(--navy); font-weight: 800; }
.travel-location-card[open] > summary::after { content: "−"; }
.travel-location-card > summary > span:first-child { display: grid; gap: 4px; margin-right: auto; }
.travel-location-card > summary > span:nth-child(2) { margin-right: 190px; }
.travel-location-card > summary strong { font-family: Georgia, "Times New Roman", serif; font-size: 21px; }
.travel-location-card > summary small, .travel-location-card > summary > span:nth-child(2) { color: var(--muted); font-size: 12px; }
.travel-location-body { display: grid; gap: 18px; padding: 18px; border-top: 1px solid var(--line); border-radius: 0 0 15px 15px; background: var(--cream); }
.travel-location-editor { position: absolute; z-index: 3; top: 14px; right: 62px; margin-top: 0; }
.travel-location-editor > summary { display: flex; align-items: center; min-height: 38px; padding: 0 8px; }
.travel-inline-editor.travel-location-editor > form { position: absolute; top: calc(100% + 8px); right: 0; width: min(430px, calc(100vw - 40px)); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 42px rgba(17,39,68,.18); }
.travel-location-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.travel-location-form-actions .text-button { min-height: 40px; padding: 0 4px; }
.travel-location-muted { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.travel-location-section { padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.travel-location-section .panel-heading { margin-bottom: 14px; }
.travel-location-section h3 { margin: 3px 0 0; font-size: 22px; }
.travel-location-section .panel-heading > a { color: var(--orange-600); font-size: 12px; font-weight: 800; }
.travel-location-links { display: grid; gap: 12px; }
.travel-location-link { position: relative; min-width: 0; padding: 16px 64px 16px 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.travel-link-metadata { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(110px, .55fr) minmax(190px, 1.25fr) minmax(190px, 1fr); gap: 18px; margin: 0; }
.travel-link-metadata > div { min-width: 0; }
.travel-link-metadata dt { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.travel-link-metadata dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.travel-link-title a { color: var(--navy); font-size: 15px; font-weight: 850; }
.travel-link-url a { color: var(--navy); overflow-wrap: anywhere; word-break: break-word; }
.travel-link-empty { color: var(--muted); }
.travel-link-category { width: max-content; max-width: 160px; overflow: hidden; padding: 5px 8px; color: #236884; background: #dbeef2; border-radius: 99px; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.travel-link-menu { position: absolute; z-index: 4; top: 14px; right: 14px; }
.travel-link-menu > summary { display: grid; width: 36px; height: 36px; place-items: center; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; list-style: none; }
.travel-link-menu > summary::-webkit-details-marker { display: none; }
.travel-link-menu > summary svg { width: 18px; height: 18px; }
.travel-link-menu[open] > summary { color: #fff; background: var(--navy); border-color: var(--navy); }
.travel-link-menu:not([open]) > .travel-link-menu-panel { display: none; }
.travel-link-menu-panel { position: absolute; top: 44px; right: 0; display: flex; min-width: max-content; align-items: center; gap: 16px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(17,39,68,.18); }
.travel-link-menu-panel > form { margin: 0; }
.travel-link-editor { position: relative; margin-top: 0; }
.travel-link-menu-panel .travel-link-editor > form { position: absolute; z-index: 5; top: calc(100% + 14px); right: 0; width: min(680px, calc(100vw - 72px)); max-height: calc(100vh - 160px); overflow: auto; box-shadow: 0 16px 42px rgba(17,39,68,.18); }
.travel-link-tools { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 12px; }
.travel-link-tools > details { margin-top: 0; }
.travel-link-section .panel-heading > span { color: var(--muted); font-size: 12px; }
.travel-document-summary-section > summary { list-style: none; cursor: pointer; }
.travel-document-summary-section > summary::-webkit-details-marker { display: none; }
.travel-document-summary-toggle { align-items: center; margin-bottom: 0 !important; }
.travel-document-summary-toggle::after { content: "⌄"; display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: var(--navy); background: var(--steel-100); border-radius: 9px; font-size: 18px; font-weight: 850; transition: transform .18s ease; }
.travel-document-summary-section[open] > .travel-document-summary-toggle::after { transform: rotate(180deg); }
.travel-document-summary-count { margin-left: auto; color: var(--muted); font-size: 12px; }
.travel-document-summary-content { display: grid; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.travel-document-summaries { display: grid; gap: 14px; }
.travel-document-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 16px; background: var(--cream); border-radius: 14px; }
.travel-document-summary h4 { margin: 0; font-size: 16px; }
.travel-document-source { display: inline-block; margin-top: 6px; color: var(--orange-600); font-size: 12px; font-weight: 800; }
.travel-document-summary-copy { margin-top: 14px; color: var(--ink); font-size: 13px; line-height: 1.65; }
.travel-document-summary-editor { grid-column: 1 / -1; margin-top: 0; }
.travel-document-summary-editor > form { width: 100%; }
.travel-inline-editor { margin-top: 12px; }
.travel-inline-editor > summary { width: max-content; max-width: 100%; color: var(--orange-600); font-size: 12px; font-weight: 800; cursor: pointer; }
.travel-inline-editor > form { display: grid; width: min(760px, 100%); gap: 13px; margin-top: 13px; padding: 16px; background: var(--cream); border-radius: 14px; }
.travel-inline-editor:not([open]) > form { display: none; }
.travel-trip-header .travel-inline-editor { flex: 0 0 auto; margin-top: 0; }
.travel-trip-header .travel-inline-editor > form { width: min(430px, calc(100vw - 40px)); }
.travel-inline-editor label, .travel-file-upload label { display: grid; min-width: 0; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.travel-inline-editor input, .travel-inline-editor textarea, .travel-inline-editor select, .travel-file-upload input { width: 100%; min-width: 0; padding: 11px 12px; color: var(--ink); background-color: var(--paper); border: 1px solid var(--line); border-radius: 10px; outline: none; font: inherit; font-size: 13px; }
.travel-inline-editor input[type="date"] { display: block; width: auto; max-width: 100%; min-inline-size: 0; }
.travel-inline-editor select { padding-right: 34px; }
.travel-inline-editor input:focus, .travel-inline-editor textarea:focus, .travel-inline-editor select:focus, .travel-file-upload input:focus { border-color: var(--orange-strong); box-shadow: 0 0 0 3px rgba(168,77,18,.16); }
.travel-inline-editor .primary-button, .travel-file-upload .primary-button { justify-self: start; }
.travel-add-location { margin: 2px 4px 6px; }
.travel-location-files { display: grid; gap: 8px; margin: 0 0 15px; padding: 0; list-style: none; }
.travel-location-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; background: var(--cream); border-radius: 10px; }
.travel-location-files a { overflow: hidden; color: var(--navy); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.travel-location-files small, .travel-file-upload > small { color: var(--muted); font-size: 11px; }
.travel-file-upload { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: end; gap: 8px 12px; }
.travel-file-upload > small { grid-column: 1; }
.travel-file-upload .primary-button { grid-column: 2; grid-row: 1; align-self: end; }
.travel-map-heading { align-items: flex-start; gap: 18px; }
.travel-map-heading > div { min-width: 0; }
.travel-map-add-button { min-height: 42px; flex: 0 0 auto; padding: 0 14px; color: var(--navy); background: var(--steel-100); border: 1px solid var(--line); border-radius: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.travel-map-filters { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; padding: 2px 0 5px; scrollbar-width: thin; }
.travel-map-filters button { min-height: 38px; flex: 0 0 auto; padding: 0 12px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.travel-map-filters button[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.travel-map-filters span { margin-left: 4px; opacity: .75; }
.travel-resource-map-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, .8fr); gap: 14px; }
.travel-resource-map { z-index: 0; width: 100%; height: clamp(340px, 43vw, 520px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--steel-100); }
.travel-map-detail { min-width: 0; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.travel-map-detail h4 { margin: 5px 0 10px; font-size: 18px; overflow-wrap: anywhere; }
.travel-map-detail > p:not(.eyebrow) { margin: 0 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.travel-map-resource-link, .travel-map-edit-link { display: block; width: max-content; max-width: 100%; margin-top: 12px; color: var(--navy); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.travel-map-edit-link { color: var(--orange-600); }
.travel-map-help { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.travel-resource-map-section.is-picking .travel-resource-map { outline: 3px solid rgba(168,77,18,.28); outline-offset: 2px; cursor: crosshair; }
.travel-resource-map-section.is-picking .travel-map-help { color: var(--orange-600); font-weight: 800; }
.travel-link-coordinates { display: grid; gap: 10px; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.travel-link-coordinates legend { padding: 0 6px; color: var(--ink); font-size: 12px; font-weight: 800; }
.travel-link-coordinates > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.travel-link-coordinates > small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.travel-map-pick-button { justify-self: start; min-height: 38px; padding: 0 12px; color: var(--navy); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-weight: 800; text-decoration: none; cursor: pointer; }
.leaflet-control-attribution { font-size: 10px; }

@media (max-width: 1100px) {
  .travel-link-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .travel-link-menu-panel .text-button, .travel-link-editor > summary { display: flex; align-items: center; min-height: 44px; }
  .travel-link-menu > summary { width: 44px; height: 44px; }
  .travel-location-editor > summary { min-height: 44px; }
}

@media (max-width: 850px) {
  .travel-trip-header { display: grid; }
  .travel-document-summary { grid-template-columns: 1fr; }
  .travel-document-summary-editor { grid-column: 1; }
  .travel-resource-map-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .travel-location-create > .birthday-form-panel { position: fixed; inset: 72px 12px auto; width: auto; max-height: calc(100vh - 84px); overflow: auto; }
  .travel-trip-header, .travel-location-list, .travel-location-body, .travel-location-section { padding: 14px; }
  .travel-location-card > summary { align-items: flex-start; flex-wrap: wrap; padding: 13px 14px; }
  .travel-location-card > summary > span:first-child { padding-right: 118px; }
  .travel-location-card > summary > span:nth-child(2) { order: 3; width: 100%; margin-right: 0; }
  .travel-location-card > summary::after { top: 13px; right: 14px; }
  .travel-location-editor { top: 8px; right: 54px; }
  .travel-inline-editor.travel-location-editor > form { position: fixed; z-index: 10; inset: 72px 12px auto; width: auto; max-height: calc(100vh - 84px); overflow: auto; }
  .travel-document-summary-toggle { flex-direction: row; align-items: center; }
  .travel-document-summary-toggle > div { min-width: 0; }
  .travel-document-summary-count { display: none; }
  .travel-inline-editor input, .travel-inline-editor textarea, .travel-inline-editor select, .travel-file-upload input { font-size: 16px; }
  .travel-file-upload { grid-template-columns: 1fr; }
  .travel-file-upload > small, .travel-file-upload .primary-button { grid-column: 1; grid-row: auto; }
  .travel-location-files li { grid-template-columns: minmax(0, 1fr) auto; }
  .travel-location-files li form { grid-column: 1 / -1; }
  .travel-link-metadata { grid-template-columns: 1fr; gap: 14px; }
  .travel-location-link { padding-right: 70px; }
  .travel-link-menu { top: 12px; right: 12px; }
  .travel-link-menu-panel .travel-link-editor > form { position: fixed; z-index: 10; inset: 72px 12px auto; width: auto; max-height: calc(100vh - 84px); }
  .travel-map-heading { display: grid; }
  .travel-map-add-button { width: 100%; }
  .travel-resource-map { height: min(58vh, 430px); min-height: 310px; }
  .travel-link-coordinates > div { grid-template-columns: 1fr; }
}
.map-photo-marker { cursor: pointer; }
.map-photo-marker circle { fill: var(--navy); stroke: var(--paper); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.map-photo-marker text { fill: #fff; font-family: Inter, sans-serif; font-size: 5px; font-weight: 800; pointer-events: none; }
.map-photo-marker:focus-visible circle { stroke: var(--orange-strong); stroke-width: 3px; }
@media (max-width: 760px) {
  .travel-photo-overview { grid-template-columns: 1fr; }
  .travel-photo-gallery { grid-template-columns: 1fr; }
  .travel-photo-folder > summary { padding: 0 14px; }
  .travel-photo-folder > .travel-photo-gallery { padding: 14px; }
  .travel-photo-filters { grid-template-columns: 1fr; align-items: stretch; width: 100%; }
  .travel-photo-filters label, .travel-photo-filters select, .travel-photo-filters button { width: 100%; }
}

/* Opravila — funkcionalna struktura; design: potreben pregled. */
.task-tabs,.task-range{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 22px}.task-tabs a,.task-range a{padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);text-decoration:none;font-weight:700}.task-tabs a.active,.task-range a.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.task-stats{margin-bottom:22px}.task-stats .stat-card{text-decoration:none;color:inherit}.task-list-panel{margin-bottom:24px}.task-list-heading,.task-calendar-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.task-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.task-filters select,.task-filters button{min-height:42px;border:1px solid var(--line);border-radius:11px;background:var(--paper);padding:0 11px;color:var(--ink)}
.task-list{display:grid;gap:10px}.task-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;border:1px solid var(--line);border-left:5px solid #7b8b91;border-radius:14px;padding:15px;background:var(--paper)}.task-item.priority-high{border-left-color:#b76535}.task-item.priority-urgent{border-left-color:#a53c3c}.task-item.is-overdue{background:#fff8f3}.task-complete button{width:34px;height:34px;border:1px solid var(--line);border-radius:99px;background:#fff;color:var(--navy);font-size:19px}.task-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.task-title-row h3{margin:0}.task-title-row h3 a{color:inherit}.task-meta{margin:6px 0;color:var(--muted);font-size:13px}.task-badge,.task-tags span,.task-tags a{display:inline-flex;padding:5px 9px;border-radius:99px;background:#eef2ef;color:var(--ink);font-size:12px;text-decoration:none}.task-badge.priority-urgent{background:#f7dddd;color:#7b2323}.task-badge.priority-high{background:#f7e1cf;color:#7f4127}.task-badge.status-done{background:#dcede5;color:#285c4d}.task-tags{display:flex;gap:5px;flex-wrap:wrap}.task-actions{display:flex;gap:7px;align-items:center}.task-actions form{display:flex;gap:5px;flex-wrap:wrap}.task-actions button,.task-actions>a{border:0;background:transparent;color:var(--navy);text-decoration:underline;padding:4px;font:inherit;font-size:12px}.task-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.task-reminders{border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0 18px}.task-reminders label{display:inline-flex;align-items:center;gap:5px;margin:8px 18px 4px 0}.task-reminders input{width:auto}.task-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:20px}.task-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.task-facts div{border-top:1px solid var(--line);padding-top:9px}.task-facts dt{font-size:12px;color:var(--muted)}.task-facts dd{margin:3px 0 0}.task-description{line-height:1.65}.task-subtask-list{display:grid;gap:7px}.task-subtask-list form{margin:0}.task-subtask{width:100%;text-align:left;border:1px solid var(--line);border-radius:11px;background:var(--paper);padding:11px}.task-subtask.done{text-decoration:line-through;color:var(--muted)}.task-activity-list{display:grid;gap:10px;padding-left:20px}.task-activity-list small{display:block;color:var(--muted)}
.task-calendar-heading{justify-content:flex-start}.task-calendar-heading h2{margin:0}.task-calendar-heading a{padding:7px 10px;border:1px solid var(--line);border-radius:10px;text-decoration:none}.task-calendar-weekdays,.task-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.task-calendar-weekdays span{text-align:center;padding:8px;font-size:12px;font-weight:800;color:var(--muted)}.task-calendar-day{min-height:125px;border:1px solid var(--line);padding:8px;margin:-1px 0 0 -1px;background:var(--paper)}.task-calendar-day.outside{opacity:.48}.task-calendar-day.today{box-shadow:inset 0 0 0 2px var(--orange-strong)}.task-calendar-day h3{margin:0 0 6px;font-size:16px}.task-calendar-day h3 span{display:none}.calendar-task{display:block;margin:4px 0;padding:5px 7px;border-left:3px solid #5a8878;border-radius:5px;background:#edf5f1;color:var(--ink);font-size:11px;text-decoration:none;overflow:hidden;text-overflow:ellipsis}.calendar-task.priority-urgent{border-color:#a53c3c;background:#f9e8e8}.calendar-add{display:inline-block;color:var(--muted);text-decoration:none;padding:3px}.task-timeline{display:grid;gap:0}.timeline-day{display:grid;grid-template-columns:130px minmax(0,1fr);gap:20px;position:relative;padding:0 0 22px}.timeline-day:before{content:"";position:absolute;left:139px;top:8px;bottom:-8px;border-left:2px solid var(--line)}.timeline-day>time{font-weight:800}.timeline-day>div{display:grid;gap:10px}.timeline-task{position:relative;border:1px solid var(--line);border-radius:14px;padding:12px 15px;background:var(--paper)}.timeline-task:before{content:"";position:absolute;left:-17px;top:15px;width:9px;height:9px;border-radius:99px;background:#357361}.timeline-task h3,.timeline-task p{margin:0}.timeline-task p{color:var(--muted);font-size:13px;margin-top:4px}.timeline-bar{display:block;width:100%;height:5px;background:#e4e8e5;border-radius:99px;margin-top:9px;overflow:hidden}.timeline-bar rect{fill:#357361}
.calendar-task-middle{border-radius:2px}.calendar-task-start{border-radius:7px 2px 2px 7px}.calendar-task-end{border-radius:2px 7px 7px 2px}.task-custom-reminder{align-items:center}.task-custom-reminder input{width:95px;min-height:36px}.task-custom-reminder[hidden]{display:none}.task-category-list{display:grid;gap:8px}.task-category-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:12px;padding:12px}.task-category-list article>small{color:var(--muted)}.task-category-list article>div,.task-category-list article form{display:flex;align-items:center;gap:8px;margin:0}.task-category-list button{border:0;background:transparent;text-decoration:underline;color:var(--navy)}
.icon-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; border: 0; }
.icon-picker legend { width: 100%; margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 700; }
.icon-picker-option { position: relative; }
.icon-picker-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-picker-swatch { display: grid; width: 38px; height: 38px; place-items: center; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.icon-picker-swatch svg { width: 18px; height: 18px; }
.icon-picker-option input:checked + .icon-picker-swatch { color: #fff; background: var(--blue-700); border-color: var(--blue-700); }
.icon-picker-option input:focus-visible + .icon-picker-swatch { outline: 2px solid var(--orange-strong); outline-offset: 2px; }
.task-icon { display: inline-flex; margin-right: 6px; color: var(--muted); vertical-align: -3px; }
.task-icon svg { width: 16px; height: 16px; }
@media(max-width:850px){.task-item{grid-template-columns:auto minmax(0,1fr)}.task-actions{grid-column:2}.task-detail-grid{grid-template-columns:1fr}.task-calendar-weekdays{display:none}.task-calendar-grid{grid-template-columns:1fr}.task-calendar-day{min-height:auto;margin:-1px 0 0}.task-calendar-day.outside{display:none}.task-calendar-day h3 span{display:inline;margin-left:5px;color:var(--muted);font:inherit}.timeline-day{grid-template-columns:1fr;padding-left:18px}.timeline-day:before{left:3px}.timeline-task:before{left:-20px}.task-list-heading{align-items:stretch;flex-direction:column}}@media(max-width:560px){.task-form-grid,.task-facts{grid-template-columns:1fr}.task-filters{display:grid}.task-actions form{display:grid}.task-title-row{align-items:flex-start}.task-calendar-panel{padding:14px}}
