/* Radio Smiško — svijetli, moderni dizajn (ai-portal stil) */
:root {
  --bg: #f3f7fd;
  --card: #ffffff;
  --border: #e2e9f4;
  --text: #16233a;
  --muted: #66788f;
  --accent: #2563eb;
  --accent2: #06b6d4;
  --accent-soft: #e8f1fe;
  --grad: linear-gradient(135deg, #2563eb, #06b6d4);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(37,99,235,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1000px 340px at 85% -60px, rgba(6,182,212,.10), transparent 60%),
    radial-gradient(900px 320px at 10% -60px, rgba(37,99,235,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
h3 { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
input, textarea, select {
  font: inherit; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 12px; background: #fbfcfe; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
button { font: inherit; cursor: pointer; }

.btn-primary {
  background: var(--grad); color: #fff; border: 0; border-radius: 10px;
  padding: 9px 18px; font-weight: 600; transition: filter .15s, transform .1s;
  box-shadow: 0 4px 14px rgba(37,99,235,.28);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: #fff; color: var(--text); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 8px 14px; font-weight: 550;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.wide { width: 100%; }
.small-btn { padding: 4px 10px; font-size: 13px; }
.err { color: #dc2626; min-height: 1.2em; font-size: 14px; margin: 8px 0 0; }

/* ---------- AUTH ---------- */
.auth-wrap { display: flex; min-height: 100vh; }
.auth-hero {
  flex: 1.25; position: relative; display: flex; align-items: flex-end;
  background: url('/static/una.jpg') center 62%/cover no-repeat;
}
.auth-hero { position: relative; overflow: hidden; }
.auth-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.auth-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,30,55,.05) 30%, rgba(6,25,48,.72) 100%);
}
.auth-hero-inner { position: relative; z-index: 1; color: #fff; padding: 44px; }
#sound-toggle {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,30,55,.55); color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .15s;
}
#sound-toggle:hover { background: rgba(10,30,55,.8); }
#sound-toggle { animation: sndpulse 2.2s ease-in-out infinite; }
#sound-toggle.on { animation: none; background: rgba(24,90,160,.75); }
@keyframes sndpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  50% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
.auth-hero h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.auth-hero p { font-size: clamp(15px, 1.6vw, 19px); margin: 0; opacity: .95; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.auth-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.auth-card {
  width: 100%; max-width: 400px; background: var(--card);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(16,24,40,.10); padding: 28px;
}
.auth-card form { display: grid; gap: 12px; margin-top: 18px; }
.tabs { display: flex; background: #eef2f7; border-radius: 12px; padding: 4px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tab.active { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .auth-wrap { flex-direction: column; }
  .auth-hero { min-height: 34vh; }
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); padding: 10px 22px;
}
.brand { font-size: 19px; cursor: pointer; white-space: nowrap; }
.brand b { color: var(--accent); }
.topnav { display: flex; gap: 6px; flex: 1; }
.navbtn {
  border: 0; background: transparent; border-radius: 10px;
  padding: 9px 16px; font-size: 15px; font-weight: 600; color: var(--muted);
}
.navbtn:hover { background: var(--accent-soft); color: var(--accent); }
.navbtn.active { background: var(--accent-soft); color: var(--accent); }
.topright { display: flex; align-items: center; gap: 10px; }
.who { font-weight: 600; }

/* ---------- LAYOUT ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 640px); gap: 24px; justify-content: center; padding: 22px 16px 90px; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

.sidebar { position: sticky; top: 68px; align-self: start; display: grid; gap: 4px; max-height: calc(100vh - 90px); overflow-y: auto; }
.side-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 11px; cursor: pointer; font-weight: 600; color: var(--text);
  text-decoration: none; font-size: 14.5px;
}
.side-item:hover { background: #fff; box-shadow: var(--shadow); }
.side-title { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 14px 12px 6px; }
.cam-list { display: grid; gap: 6px; }
.cam-thumb {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: 11px; cursor: pointer; background: transparent; border: 0; width: 100%; text-align: left;
}
.cam-thumb:hover { background: #fff; box-shadow: var(--shadow); }
.cam-thumb .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; flex: none; }
.cam-thumb .cn { font-weight: 600; font-size: 14px; }
.cam-thumb .cs { font-size: 11.5px; color: var(--muted); }

/* ---------- CARDS ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 16px;
}
.view { min-width: 0; }

/* ---------- KAMERE HUB (radi i na mobitelu preko gumba 📹) ---------- */
.cam-hub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; background: #fff; max-height: 70vh; overflow-y: auto; }
@media (max-width: 640px) { .cam-hub { grid-template-columns: 1fr; } }
.cam-hub-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1.5px solid var(--border); border-radius: 14px; background: #fff;
  cursor: pointer; text-align: left; width: 100%; transition: .15s; font: inherit; color: var(--text);
}
.cam-hub-tile:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); box-shadow: var(--shadow); }
.cam-hub-tile .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; flex: none; }
.cam-hub-tile .cn { font-weight: 700; font-size: 15px; }
.cam-hub-tile .cs { font-size: 12px; color: var(--muted); }
#cam-back { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 5px 12px; font-weight: 700; }

/* ---------- COMPOSER ---------- */
.composer { display: flex; gap: 12px; }
.comp-right { flex: 1; }
#post-text { width: 100%; min-height: 54px; resize: vertical; border: 0; background: #f1f5f9; border-radius: 12px; }
#post-text:focus { box-shadow: none; border: 1.5px solid var(--accent); background: #fff; }
.comp-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.filebtn { cursor: pointer; }

/* ---------- FEED ---------- */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ftab { border: 1.5px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.ftab.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.p-info { flex: 1; }
.p-name { font-weight: 700; }
.p-time { font-size: 12.5px; color: var(--muted); }
.post-del { border: 0; background: transparent; color: var(--muted); font-size: 15px; padding: 4px 8px; border-radius: 8px; }
.post-del:hover { background: #fee2e2; color: #dc2626; }
.post-text { white-space: pre-wrap; margin-bottom: 10px; line-height: 1.45; }
.media-grid { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.media-grid[data-n="1"] { grid-template-columns: 1fr; }
.media-grid[data-n="2"], .media-grid[data-n="4"] { grid-template-columns: 1fr 1fr; }
.media-grid[data-n="3"] { grid-template-columns: 1fr 1fr; }
.media-grid img, .media-grid video { width: 100%; max-height: 460px; object-fit: cover; display: block; background: #000; cursor: zoom-in; }
.media-grid video { cursor: default; }
.post-stats { display: flex; justify-content: space-between; color: var(--muted); font-size: 13.5px; padding: 4px 2px; border-bottom: 1px solid var(--border); }
.post-acts { display: flex; gap: 6px; margin: 6px 0; }
.act { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.act:hover { background: #f1f5f9; }
.act.liked { color: var(--accent); }
.comments { display: grid; gap: 8px; padding: 6px 2px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment .ava { width: 32px; height: 32px; font-size: 12px; }
.bubble { background: #f1f5f9; border-radius: 12px; padding: 7px 11px; max-width: 100%; }
.c-name { font-weight: 700; font-size: 13px; }
.c-text { font-size: 14px; white-space: pre-wrap; }
.comment-form { display: flex; gap: 8px; align-items: center; }
.comment-form input { flex: 1; border-radius: 999px; }
.comment-form button { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; }

/* ---------- AVA ---------- */
.ava { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: none; font-size: 15px; user-select: none; }
.ava.big { width: 40px; height: 40px; }

/* ---------- RADIO ---------- */
.radio-hero .now { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.now-name { font-size: 18px; font-weight: 700; }
.vol-wrap { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#vol { accent-color: var(--accent); }
.eq { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.eq span { width: 5px; background: var(--accent); border-radius: 2px; animation: eq .7s ease-in-out infinite alternate; }
.eq span:nth-child(2) { animation-delay: .2s; } .eq span:nth-child(3) { animation-delay: .4s; } .eq span:nth-child(4) { animation-delay: .1s; }
@keyframes eq { from { height: 6px; } to { height: 24px; } }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.station { border: 1.5px solid var(--border); border-radius: 12px; padding: 12px; transition: border-color .15s; background: #fff; }
.station:hover { border-color: var(--accent); }
.station.playing { border-color: var(--accent); background: var(--accent-soft); }
.st-name { font-weight: 700; margin-bottom: 3px; }
.st-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.st-row { display: flex; gap: 8px; }
.st-row .btn-primary { flex: 1; padding: 7px 10px; }
.badge-default { display: inline-block; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.search-row { display: flex; gap: 8px; margin-bottom: 10px; }
.search-row input { flex: 1; }

/* ---------- LAUNCHER ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.app-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 8px; border-radius: 14px; text-decoration: none; color: var(--text);
  border: 1.5px solid var(--border); background: #fff; transition: .15s;
}
.app-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card .ico { font-size: 30px; }
.app-card .nm { font-weight: 650; font-size: 13.5px; text-align: center; }
.app-card .x { position: absolute; top: 5px; right: 5px; border: 0; background: transparent; color: var(--muted); }
.app-card .x:hover { color: #dc2626; }
.admin-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.admin-row input { flex: 1; min-width: 120px; }

/* ---------- NEWS ---------- */
.news-card { margin-top: 22px; }
.news-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-col h4 { margin: 8px 0 6px; font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; }
.news-item { display: block; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.35; }
.news-item:hover { color: var(--accent); }
.news-item:last-child { border-bottom: 0; }

/* ---------- CAM MODAL ---------- */
.cam-modal { position: fixed; inset: 0; background: rgba(15,23,42,.75); z-index: 120; display: flex; align-items: center; justify-content: center; padding: 18px; }
.cam-box { background: #fff; border-radius: 16px; width: min(960px, 96vw); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.cam-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.cam-head button { border: 0; background: #f1f5f9; border-radius: 8px; padding: 4px 10px; font-size: 15px; }
.cam-body { background: #000; }
.cam-body img, .cam-body video { width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.cam-note { color: var(--muted); font-size: 12.5px; padding: 8px 16px 12px; background: #fff; }

/* ---------- MINI PLAYER ---------- */
.mini {
  position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 90;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 32px rgba(16,24,40,.18);
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-weight: 650;
}
.mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-spacer { flex: 1; }
.mini button { border: 0; background: #f1f5f9; border-radius: 8px; padding: 5px 10px; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox img { max-width: 96vw; max-height: 94vh; object-fit: contain; }

/* ---------- OBAVIJESTI (zvono) ---------- */
.ntf-wrap { position: relative; }
.ntf-btn { position: relative; border: 1.5px solid var(--border); background: #fff; border-radius: 10px; font-size: 17px; padding: 6px 10px; }
.ntf-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.ntf-badge { position: absolute; top: -6px; right: -6px; background: #dc2626; color: #fff; font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.ntf-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 92vw); max-height: 60vh; overflow-y: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 44px rgba(16,24,40,.18); z-index: 60; padding: 6px; }
.ntf-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; align-items: flex-start; }
.ntf-item:hover { background: var(--accent-soft); }
.ntf-ico { font-size: 18px; flex: none; }
.ntf-text { font-size: 13.5px; line-height: 1.35; font-weight: 550; }
.ntf-time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ntf-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.ntf-allow { display: block; margin: 6px auto 4px; border: 1.5px dashed var(--accent); color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; font-weight: 650; font-size: 13px; }

/* ---------- ROĐENDANI ---------- */
.bd-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav b { min-width: 150px; text-align: center; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-dow { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-cell { border: 1.5px solid var(--border); border-radius: 10px; min-height: 58px; padding: 5px 7px; background: #fff; position: relative; }
.cal-cell.empty { border: 0; background: transparent; }
.cal-cell .cal-n { font-size: 13px; font-weight: 650; color: var(--muted); }
.cal-cell.today { border-color: var(--accent); background: var(--accent-soft); }
.cal-cell.today .cal-n { color: var(--accent); font-weight: 800; }
.cal-cell.has { cursor: pointer; }
.cal-cell.has:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.cal-marks { display: block; font-size: 12.5px; margin-top: 3px; }
.cal-day { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.cal-day-title { font-weight: 750; margin-bottom: 8px; }
.bd-list { display: grid; gap: 8px; }
.bd-row { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid transparent; }
.bd-row.hot { background: #fff7ed; border-color: #fdba74; }
.bd-row .ava { width: 40px; height: 40px; }
.bd-pic { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.bd-info { flex: 1; min-width: 0; }
.bd-name { font-weight: 700; }
.bd-sub { font-size: 12.5px; color: var(--muted); text-transform: capitalize; }
.bd-when { font-size: 12.5px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.bd-when.hot { color: #ea580c; }
.bd-del { border: 0; background: transparent; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.bd-del:hover { background: #fee2e2; color: #dc2626; }
.bd-edit { border: 0; background: transparent; color: var(--muted); padding: 4px 8px; border-radius: 8px; }
.bd-edit:hover { background: var(--accent-soft); color: var(--accent); }
.bd-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bd-form select { min-width: 105px; }
.bd-form #bd-year { width: 170px; }
.bd-form input:first-of-type { flex: 1; min-width: 150px; }
.bd-side { display: grid; gap: 4px; }
.bd-side-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.bd-side-row:hover { background: #fff; box-shadow: var(--shadow); }
.bd-side-row .ava.mini, .bd-pic.mini { width: 26px; height: 26px; font-size: 11px; }
.bd-side-row .bs-n { font-weight: 650; font-size: 13.5px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-side-row .bs-d { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.bd-side-row .bs-d.hot { color: #ea580c; font-weight: 750; }

/* ---------- PORODIČNO STABLO ---------- */
.tree-scroll { overflow-x: auto; padding-bottom: 6px; }
.tree ul { display: flex; justify-content: center; padding-top: 18px; position: relative; margin: 0; }
.tree > ul { padding-top: 0; }
.tree li { list-style: none; position: relative; padding: 18px 8px 0; text-align: center; }
.tree li::before, .tree li::after {
  content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 18px;
  border-top: 2px solid #cbd5e1;
}
.tree li::after { right: auto; left: 50%; border-left: 2px solid #cbd5e1; }
.tree li:only-child::before, .tree li:only-child::after { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0 none; }
.tree li:last-child::before { border-right: 2px solid #cbd5e1; border-radius: 0 10px 0 0; }
.tree li:first-child::after { border-radius: 10px 0 0 0; }
.tree ul ul::before { content: ''; position: absolute; top: 0; left: 50%; width: 0; height: 18px; border-left: 2px solid #cbd5e1; }
.tnode {
  display: inline-flex; align-items: center; gap: 9px; text-align: left;
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 8px 12px; box-shadow: var(--shadow); position: relative; min-width: 150px; max-width: 230px;
}
.tnode.tf { border-color: #f0abfc; background: #fdf4ff; }
.tnode .ava { width: 38px; height: 38px; }
.tn-pic { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.tn-name { font-weight: 750; font-size: 14px; }
.tn-years, .tn-spouse, .tn-note { font-size: 11.5px; color: var(--muted); }
.tn-note { font-style: italic; }
.tnode.tdied { background: #f8fafc; border-color: #cbd5e1; }
.tnode.tdied .tn-name { color: #475569; }
.tn-died { font-size: 11.5px; color: #0f766e; font-weight: 700; }
.tn-edit { position: absolute; top: 2px; right: 22px; border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.tn-edit:hover { background: var(--accent-soft); color: var(--accent); }
.tn-del { position: absolute; top: 2px; right: 2px; border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.tn-del:hover { background: #fee2e2; color: #dc2626; }
.tr-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.tr-form .btn-primary { grid-column: 1 / -1; }
.tr-form label { justify-self: start; }
.tr-form span { grid-column: 1 / -1; margin-top: -6px; }
@media (max-width: 560px) { .tr-form { grid-template-columns: 1fr; } }

/* Icon-Set (ComfyUI generirano) */
.navico { width: 21px; height: 21px; vertical-align: -4px; }
.sideico { width: 24px; height: 24px; border-radius: 6px; }
.ntf-btn img.navico { width: 20px; height: 20px; vertical-align: -4px; }

/* Mobile: Sidebar verstecken (bewusst am Datei-Ende, ueberschreibt .sidebar-Regel) */
.mobile-tabs { display: none; }
@media (max-width: 1000px) {
  .sidebar { display: none !important; }
  .layout { grid-template-columns: minmax(0, 1fr); padding: 14px 10px 90px; }
}
@media (max-width: 700px) {
  .topnav { display: none; }
  .who { display: none; }
  .topbar { padding: 8px 12px; gap: 8px; justify-content: space-between; }
  .brand { font-size: 17px; }
  .btn-ghost { padding: 8px 12px; min-height: 38px; }
  .ntf-btn { min-width: 40px; min-height: 40px; }
  .layout { padding: 12px 8px 150px; }
  .mobile-tabs {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--border); padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
  }
  .mobtab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    min-height: 52px; padding: 7px 2px; border-radius: 12px; font-size: 10.5px;
    color: var(--muted); font-weight: 600;
  }
  .mobtab span { font-size: 20px; line-height: 1; }
  .mobtab img { width: 26px; height: 26px; margin-bottom: 1px; }
  .mobtab.active { background: var(--accent-soft); color: var(--accent); }
  .mini { bottom: calc(70px + env(safe-area-inset-bottom)); }
  .cam-modal { padding: 8px; }
  .post-card, .card { border-radius: 14px; }
  .ftab { min-height: 38px; }
  #bd-year { width: 100%; }
  .bd-form select { flex: 1; }
}
