/* ============ SUPERFLY HQ — premium SaaS design ============ */
:root {
  --sa-test: env(safe-area-inset-bottom, 0px);
  --sa-top-test: env(safe-area-inset-top, 0px);
  --bg: #0B0B0C;
  --surface: #121214;
  --surface-2: #19191C;
  --border: #25242A;
  --gold: #C9A96E;
  --gold-hi: #F1DDAE;
  --gold-lo: #9C7C45;
  --gold-soft: rgba(201,169,110,0.10);
  --gold-line: rgba(201,169,110,0.30);
  --line: rgba(201,169,110,0.14);
  --white: #F2EDE4;
  --muted: #9A9388;
  --muted-2: #6E685F;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ui-scale: 1;
  --gold-rgb: 201,169,110;
  --green: #3FB950;
  --globe-sea-1: #1b1b24;
  --globe-sea-2: #101016;
  --globe-sea-3: #08080b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.35);
  --ease: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overscroll-behavior: none; }
body {
  background: var(--bg); color: var(--white);
  font-family: var(--font-body, "Inter"), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.5;
  position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none;
}
#app { height: 100%; position: relative; z-index: 1; overflow: hidden; }
/* pozadí je vždy fixed a nemá žádnou vazbu na náklon/gyroskop — appka to fyzicky nepoužívá,
   tohle je jen tvrdé pojistka proti jakémukoliv "plavání" kompozitní vrstvy prohlížeče */
#bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; transform: translateZ(0); backface-visibility: hidden; will-change: auto; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2A2A32; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.serif { font-family: "Playfair Display", Georgia, serif; font-style: italic; }
[data-lucide] { width: 18px; height: 18px; stroke-width: 2; }

/* ---------- LOGIN ---------- */
.login-wrap { height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; }
.card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px 30px; box-shadow: var(--shadow); }
.brandmark { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.brandmark .logo-badge { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), #C79A2E); display: flex; align-items: center; justify-content: center; color: #14100A; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.eyebrow { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.login-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 22px; }
.auth-switch { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.auth-switch button { flex: 1; background: none; border: none; color: var(--muted); border-radius: 9px; padding: 10px; font-size: 13px; font-weight: 600; transition: var(--ease); }
.auth-switch button.active { background: var(--surface-2); color: var(--gold); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.lbl { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 6px; font-weight: 500; }
.inp { width: 100%; background: var(--bg); color: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14.5px; outline: none; transition: var(--ease); }
.inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea.inp { resize: none; }
.btn { background: linear-gradient(135deg, var(--gold), #D4A838); color: #14100A; border: none; border-radius: var(--radius-sm); padding: 12px 18px; font-size: 14px; font-weight: 700; transition: var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; transform: none; cursor: default; }
.btn.full { width: 100%; margin-top: 20px; }
.btn.small { padding: 8px 13px; font-size: 12.5px; }
.btn.ghost:hover { border-color: var(--gold-line); filter: none; }
.err { color: #FF7B72; font-size: 13px; margin-top: 12px; min-height: 0; }
.note { color: var(--muted); font-size: 12px; margin-top: 14px; line-height: 1.55; }

/* ---------- APP SHELL ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: 100%; height: 100%; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; gap: 4px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; }
.side-brand .logo-badge { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), #C79A2E); display: flex; align-items: center; justify-content: center; color: #14100A; font-weight: 800; font-size: 15px; }
.side-brand .name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.company-switch { position: relative; margin-bottom: 10px; }
.cs-btn { width: 100%; display: flex; align-items: center; gap: 9px; background: var(--bg); color: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.cs-btn:hover { border-color: var(--gold); }
.cs-badge { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; background: linear-gradient(135deg, var(--gold), #C79A2E); color: #14100A; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.cs-badge.sm { width: 24px; height: 24px; flex-basis: 24px; }
.cs-name { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chev { width: 15px; height: 15px; color: var(--muted); flex: 0 0 auto; }
.cs-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 12px 32px rgba(0,0,0,.5); padding: 6px; z-index: 200; animation: cs-pop .12s ease; }
.cs-menu[hidden] { display: none; }
@keyframes cs-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cs-menu-head { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 8px 4px; }
.cs-item { width: 100%; display: flex; align-items: center; gap: 9px; background: none; border: 0; color: var(--white); padding: 8px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.cs-item:hover { background: var(--bg); }
.cs-item.active { color: var(--gold); }
.cs-item-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-item [data-lucide] { width: 15px; height: 15px; color: var(--gold); }
.mobile-topbar { display: none; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: none; border: none; color: var(--muted); font-size: 14px; font-weight: 500; width: 100%; text-align: left; transition: var(--ease); position: relative; }
.nav-item:hover { background: var(--surface-2); color: var(--white); }
.nav-item.active { background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.nav-item .badge { margin-left: auto; background: var(--gold); color: #14100A; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.nav-item .nav-badge { background: #E5473F; color: #fff; box-shadow: 0 0 0 2px var(--bg-elev, var(--bg)); animation: nb-pop .25s ease; }
@keyframes nb-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mobile-tabbar button { position: relative; }
.mobile-tabbar .nav-badge { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 16px; height: 16px; border-radius: 8px; background: #E5473F; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.more-item { position: relative; }
.more-item .nav-badge { position: absolute; top: 6px; right: 10px; min-width: 16px; height: 16px; border-radius: 8px; background: #E5473F; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.side-spacer { flex: 1; }
.side-profile { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--border); }
.side-profile .who { flex: 1; min-width: 0; }
.side-profile .who .n { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-profile .who .r { font-size: 11px; color: var(--muted); }
.icon-btn { background: none; border: none; color: var(--muted); padding: 6px; border-radius: 8px; display: inline-flex; transition: var(--ease); }
.icon-btn:hover { background: var(--surface-2); color: var(--white); }

/* ---------- MAIN ---------- */
.main { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; }
.main > #main-slot { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px 9px 36px; color: var(--white); font-size: 13.5px; outline: none; }
.topbar .search input:focus { border-color: var(--gold-line); }
.topbar .search [data-lucide] { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.topbar .page-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.topbar .spacer { flex: 1; }
.content { flex: 1; overflow-y: auto; padding: 22px; }
.motto-bar { margin: 0 0 18px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: linear-gradient(100deg, var(--gold-soft), transparent); padding: 14px 18px; }
.motto-bar .txt { font-size: 16px; margin-top: 3px; }

/* ---------- STAT TILES ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: var(--ease); }
.stat-tile:hover { border-color: var(--gold-line); transform: translateY(-2px); }
.stat-tile .top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat-tile .top [data-lucide] { width: 15px; height: 15px; color: var(--gold); }
.stat-tile .num { font-size: 28px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.02em; color: var(--white); }
.stat-tile .sub { font-size: 11.5px; color: var(--muted-2); }

/* ---------- SECTIONS / CARDS ---------- */
.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.section-head .link { color: var(--gold); font-size: 12.5px; font-weight: 600; background: none; border: none; }
.row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.row .inp { flex: 1; min-width: 150px; }
.pills { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.pill { background: var(--bg); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; transition: var(--ease); }
.pill.active { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }

/* ---------- CHAT (WhatsApp) ---------- */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; height: 100%; flex: 1; min-height: 0; overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.chat-list-head { padding: 16px 16px 10px; }
.chat-list-head .t { font-size: 17px; font-weight: 700; }
.conv-scroll { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.conv { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; transition: var(--ease); width: 100%; border: none; background: none; text-align: left; }
.conv:hover { background: var(--surface-2); }
.conv.active { background: var(--gold-soft); }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: linear-gradient(135deg, #F5D77A, #C79A2E); display: flex; align-items: center; justify-content: center; color: #14100A; font-weight: 700; font-size: 16px; position: relative; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.avatar .dot { position: absolute; bottom: 0; right: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--surface); }
.conv .ci { flex: 1; min-width: 0; }
.conv .ci .cn { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.conv .ci .cn .time { font-size: 11px; color: var(--muted-2); font-weight: 400; }
.conv .ci .cl { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv .unread { background: var(--gold); color: #14100A; font-size: 11px; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }

.chat-main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; will-change: transform; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.chat-header .hn { font-size: 15px; font-weight: 700; }
.chat-header .hs { font-size: 12px; color: var(--green); }
.chat-header .actions { margin-left: auto; display: flex; gap: 4px; }
.messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 68%; }
.msg.mine { align-self: flex-end; }
.bubble { padding: 6px 10px; border-radius: 16px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border-bottom-left-radius: 5px; display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--gold), #D4A838); color: #14100A; border-bottom-left-radius: 16px; border-bottom-right-radius: 5px; }
.msg.agent .bubble { border: 1px solid var(--gold-line); background: var(--gold-soft); }
.bubble .bubble-text { flex: 0 1 auto; }
.bubble .meta-inline { margin-left: auto; font-size: 10.5px; color: var(--muted-2); white-space: nowrap; display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding-top: 2px; }
.msg.mine .bubble .meta-inline { color: rgba(20,16,10,.55); }
.bubble.file-bubble { display: block; padding: 6px 8px 8px; }
.bubble.file-bubble .meta { font-size: 10.5px; color: var(--muted-2); margin-top: 4px; padding: 0 4px; display: flex; gap: 5px; align-items: center; }
.pdf-ic { color: #E5473F; }

/* náhled obrázku/videa přímo v bublině (jako Telegram/WhatsApp) */
.bubble.media-bubble { display: block; padding: 4px; max-width: 260px; }
.media-preview { border-radius: 12px; overflow: hidden; background: var(--surface); min-height: 140px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.media-preview img { display: block; width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; }
.media-preview video { display: block; width: 100%; max-height: 320px; border-radius: 12px; }
.media-loading { color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px; }
.media-loading [data-lucide] { width: 28px; height: 28px; }
.media-err { color: #E5807A; font-size: 12px; display: flex; align-items: center; gap: 6px; padding: 16px; }
.bubble.media-bubble .meta { font-size: 10.5px; color: var(--muted-2); padding: 4px 6px 2px; display: flex; gap: 5px; align-items: center; }

/* album víc fotek najednou (WhatsApp styl) */
.album-bubble { display: block; padding: 4px; max-width: 280px; background: var(--surface-2); }
.album-grid { display: grid; gap: 2px; border-radius: 10px; overflow: hidden; }
.album-grid.n2 { grid-template-columns: 1fr 1fr; }
.album-grid.n3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.album-grid.n3 .album-item:first-child { grid-row: span 2; }
.album-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.album-grid.n5, .album-grid.n6 { grid-template-columns: repeat(3, 1fr); }
.album-item { position: relative; aspect-ratio: 1/1; background: var(--surface); cursor: pointer; }
.album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-item .media-loading { padding: 0; height: 100%; }
.album-more { position: absolute; inset: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.msg.album-msg { max-width: 78%; }

/* fullscreen prohlížeč médií */
.media-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 50; display: flex; align-items: center; justify-content: center; }
.media-viewer img, .media-viewer video { max-width: 94vw; max-height: 88vh; border-radius: 8px; }
.media-viewer-close { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; display: flex; align-items: center; justify-content: center; }
.media-viewer-dl { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; }
.msg.mine .bubble.file-bubble .meta { color: rgba(20,16,10,.55); justify-content: flex-end; }
.msg .author-name { font-size: 11px; font-weight: 700; color: var(--gold); margin: 0 4px 2px; }
.msg .tick { color: var(--muted-2); display: inline-flex; }
.msg.mine .tick { color: rgba(20,16,10,.7); }
.msg .tick [data-lucide] { width: 13px; height: 13px; }
.filebox { display: flex; align-items: center; gap: 10px; }
.filebox .fn { font-size: 13px; font-weight: 500; }
.filebox .fs { font-size: 11px; color: var(--muted); }
.typing { align-self: flex-start; color: var(--muted); font-size: 12.5px; padding: 4px 8px; display: flex; align-items: center; gap: 6px; }
.typing .dots span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); margin: 0 1px; animation: blink 1.4s infinite both; }
.typing .dots span:nth-child(2) { animation-delay: 0.2s; }
.typing .dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.composer { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.composer .inp-wrap { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 0 6px 0 14px; }
.composer .inp-wrap:focus-within { border-color: var(--gold-line); }
.composer textarea { flex: 1; min-width: 0; background: none; border: none; color: var(--white); font-size: 16px; outline: none; resize: none; padding: 12px 0; max-height: 100px; }
.composer .round { width: 42px; height: 42px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--gold), #D4A838); color: #14100A; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--ease); }
.composer .round:hover { filter: brightness(1.08); }
.composer .in-btn { background: none; border: none; color: var(--muted); padding: 7px; display: inline-flex; border-radius: 8px; }
.composer .in-btn:hover { color: var(--gold); }
.composer-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.composer-wrap { flex-shrink: 0; display: flex; flex-direction: column; position: relative; }
.reply-preview { border-top: 1px solid var(--border); }
.rp-bar { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface-2); }
.rp-bar [data-lucide]:first-child { width: 16px; height: 16px; color: var(--gold); flex: none; }
.rp-bar.edit [data-lucide]:first-child { color: var(--gold); }
.rp-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-mid b { font-size: 12px; color: var(--gold); }
.rp-mid span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-x { background: none; border: none; color: var(--muted); flex: none; display: inline-flex; padding: 4px; }
.rp-x [data-lucide] { width: 16px; height: 16px; }
.bubble-wrap { display: flex; flex-direction: column; }
.msg-reply-ref { background: rgba(255,255,255,.06); border-left: 3px solid var(--gold); border-radius: 8px; padding: 5px 9px; margin-bottom: 4px; font-size: 12px; }
.msg-reply-ref b { display: block; color: var(--gold); font-size: 11px; margin-bottom: 1px; }
.msg.mine .msg-reply-ref { background: rgba(0,0,0,.12); border-left-color: #14100A; }
.bubble.del { display: flex; align-items: center; gap: 6px; font-style: italic; color: var(--muted); background: var(--surface-2) !important; }
.bubble.del [data-lucide] { width: 14px; height: 14px; }
.deleted-msg .msg-reacts, .deleted-msg .author-name { display: none; }

/* ===== Dlouhé podržení zprávy — kontextové menu ===== */
.msg-menu-overlay { position: fixed; inset: 0; z-index: 300; }
.msg-menu-back { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.msg-menu-card { position: absolute; left: 50%; transform: translateX(-50%); width: min(320px, 92vw); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5); animation: mm-pop .15s ease; }
@keyframes mm-pop { from { opacity: 0; transform: translateX(-50%) scale(.92); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
.msg-menu-quick { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.msg-menu-quick button { font-size: 22px; background: none; border: none; padding: 4px; border-radius: 50%; transition: var(--ease); line-height: 1; }
.msg-menu-quick button:active { background: var(--surface-2); transform: scale(1.15); }
.msg-menu-quick .mm-plus { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.msg-menu-quick .mm-plus [data-lucide] { width: 18px; height: 18px; }
.msg-menu-list { display: flex; flex-direction: column; padding: 6px; }
.msg-menu-list button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; background: none; border: none; color: var(--white); font-size: 14px; text-align: left; border-radius: 10px; }
.msg-menu-list button:active { background: var(--surface-2); }
.msg-menu-list button [data-lucide] { width: 17px; height: 17px; color: var(--muted); }
.msg-menu-list button[data-mmact="delete"] { color: #E5807A; }
.msg-menu-list button[data-mmact="delete"] [data-lucide] { color: #E5807A; }

/* ===== Obecný bottom sheet — připnuté zprávy + výběr emoji ===== */
.sheet-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel { width: 100%; max-width: 480px; max-height: 78vh; background: var(--surface); border-radius: 20px 20px 0 0; border: 1px solid var(--border); border-bottom: none; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); animation: sheet-up .2s ease; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-grab { width: 36px; height: 4px; background: var(--border); border-radius: 3px; margin: 10px auto 4px; flex: none; }
.sheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 18px 12px; font-size: 15px; font-weight: 700; color: var(--white); flex: none; }
.sheet-head span { font-size: 12px; font-weight: 600; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 2px 9px; }
.sheet-head .icon-btn { margin-left: auto; }
.sheet-body { overflow-y: auto; padding: 0 14px 18px; }
.pin-row { display: block; width: 100%; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pin-row b { font-size: 12px; color: var(--gold); }
.pin-t { font-size: 13.5px; color: var(--white); margin: 3px 0; line-height: 1.4; }
.pin-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.pin-unpin { color: #E5807A; font-size: 11.5px; font-weight: 600; }
.pin-bar-btn { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 7px 8px 7px 10px; width: 100%; }
.pin-accent { width: 2px; height: 24px; background: var(--gold); border-radius: 2px; flex-shrink: 0; }
.pin-mid { flex: 1; min-width: 0; background: none; border: none; text-align: left; padding: 0; cursor: pointer; }
.pin-label { color: var(--white); font-size: 11px; font-weight: 700; }
.pin-preview { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-count { color: var(--muted-2); font-size: 10px; flex-shrink: 0; }
.pin-bar-btn #pin-open { background: none; border: none; color: var(--muted); flex: none; padding: 6px; display: inline-flex; cursor: pointer; }
.pin-bar-btn #pin-open [data-lucide] { width: 15px; height: 15px; }

/* Telegram-styl "skoč na zprávu" — krátké zablikání, ať člověk hned vidí, na co klikl */
.msg-flash .bubble { animation: msgflash 1.5s ease; }
@keyframes msgflash { 0% { box-shadow: 0 0 0 2px var(--gold); } 35% { box-shadow: 0 0 0 2px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Podržení zprávy nesmí spouštět nativní výběr textu / callout na iOS — bije se to s naším
   vlastním menu (Kopírovat tam už je), a dělalo to přesně tenhle zmatek na screenshotu */
.msg .bubble, .msg-menu-card { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#pin-bar { margin: 7px 10px 0; }
#pin-bar:empty { margin: 0; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 4px 4px 10px; }
.emoji-grid button { font-size: 24px; background: none; border: none; padding: 6px 0; border-radius: 10px; line-height: 1; }
.emoji-grid button:active { background: var(--surface-2); }
@media (max-width: 420px) { .emoji-grid { grid-template-columns: repeat(7, 1fr); } }
.pinned-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--gold-soft); border-bottom: 1px solid var(--gold-line); font-size: 12.5px; }
.pinned-bar .pt { flex: 1; }
.pinned-bar .pt b { color: var(--gold); }

/* ---------- TASKS ---------- */
.task-card { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; transition: var(--ease); }
.task-card:hover { border-color: var(--gold-line); }
.task-card.done { opacity: 0.6; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--muted); background: none; flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; color: #14100A; transition: var(--ease); }
.check.on { background: linear-gradient(135deg, var(--gold), #D4A838); border-color: var(--gold); }
.check [data-lucide] { width: 14px; height: 14px; }
.task-body { flex: 1; min-width: 0; }
.task-body .tt { font-size: 14.5px; font-weight: 500; }
.task-card.done .tt { text-decoration: line-through; color: var(--muted); }
.task-tags { display: flex; align-items: center; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
.tag.prio-high { background: rgba(255,123,114,0.14); color: #FF7B72; }
.tag.prio-mid { background: rgba(var(--gold-rgb), 0.14); color: var(--gold); }
.tag.prio-low { background: rgba(138,138,148,0.14); color: var(--muted); }
.tag.who { background: var(--surface-2); color: var(--muted); }
.tag.when { background: var(--surface-2); color: var(--muted); }
.task-del { background: none; border: none; color: var(--muted-2); padding: 4px; border-radius: 6px; }
.task-del:hover { color: #FF7B72; }

/* ---------- LEADERBOARD ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 8px 0 22px; }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.podium .rank-badge { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-bottom: -18px; z-index: 2; position: relative; }
.podium .p1 .rank-badge { background: var(--gold); color: #14100A; }
.podium .p2 .rank-badge { background: #B8B8C0; color: #14100A; }
.podium .p3 .rank-badge { background: #CD8B5A; color: #14100A; }
.podium .p1 .avatar { width: 76px; height: 76px; font-size: 28px; border: 3px solid var(--gold); }
.podium .pn { font-size: 13.5px; font-weight: 700; }
.podium .pp { font-size: 12px; color: var(--gold); font-weight: 600; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.lb-row .rk { width: 26px; font-size: 14px; font-weight: 700; color: var(--muted); text-align: center; }
.lb-row .ln { flex: 1; font-size: 14px; font-weight: 600; }
.lb-row .lbar { flex: 1.4; height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.lb-row .lbar .fill { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 4px; transition: width 0.6s; }
.lb-row .lp { font-size: 13px; font-weight: 700; color: var(--gold); min-width: 46px; text-align: right; }
.lb-row .ln-lvl { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.podium .plvl { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-top: -3px; }
.level-card { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 20px; background: linear-gradient(135deg, var(--gold-soft), transparent 65%); margin-bottom: 16px; }
.lc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lc-lvl { font-size: 20px; font-weight: 800; }
.lc-streak { font-size: 14px; color: var(--gold); margin-top: 3px; font-weight: 600; }
.xpbar { height: 12px; background: var(--bg); border-radius: 7px; overflow: hidden; }
.xpfill { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 7px; box-shadow: 0 0 12px rgba(var(--gold-rgb), .5); transition: width .9s cubic-bezier(.25,.8,.25,1); }
.xp-note { font-size: 12px; color: var(--muted); margin-top: 7px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.28); border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; }
.badge [data-lucide] { width: 14px; height: 14px; color: var(--gold); }
.hof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hof-card { background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.hof-ico { width: 40px; height: 40px; margin: 0 auto 8px; border-radius: 50%; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; }
.hof-ico [data-lucide] { width: 20px; height: 20px; color: var(--gold); }
.hof-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hof-value { font-size: 20px; font-weight: 800; color: var(--gold); margin: 4px 0 2px; }
.hof-who { font-size: 12px; color: var(--white); }

/* ---------- GOAL ---------- */
.goal-card { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 18px; background: linear-gradient(135deg, var(--gold-soft), transparent); margin-bottom: 16px; }
.goal-card .gnums { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0; }
.goal-card .gcur { font-size: 26px; font-weight: 800; color: var(--gold); }
.goal-card .gtar { font-size: 13px; color: var(--muted); }
.bar { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 6px; transition: width 0.9s cubic-bezier(.25,.8,.25,1); }
.bar.big { height: 16px; border-radius: 9px; }
.bar.big .fill { border-radius: 9px; box-shadow: 0 0 14px rgba(var(--gold-rgb), .5); }
.mission { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 20px; background: linear-gradient(135deg, var(--gold-soft), transparent 60%); margin-bottom: 16px; }
.mission-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.mission-label { font-size: 22px; font-weight: 700; margin-top: 2px; }
.mission-pct { font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; }
.mission-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.mission-stats .ms { background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.mission-stats .ms-n { font-size: 19px; font-weight: 800; }
.mission-stats .ms-l { font-size: 11px; color: var(--muted); margin-top: 3px; }
.contrib { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.contrib:last-child { border-bottom: 0; }
.contrib-body { flex: 1; min-width: 0; }
.contrib-top { display: flex; justify-content: space-between; margin-bottom: 6px; }
.contrib-name { font-weight: 600; font-size: 14px; }
.contrib-amt { font-weight: 700; color: var(--gold); font-size: 14px; }
.cbar { height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.cfill { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 4px; transition: width .9s cubic-bezier(.25,.8,.25,1); }
.contrib-pct { font-weight: 800; color: var(--gold); font-size: 15px; min-width: 44px; text-align: right; }
.tl { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tl:last-child { border-bottom: 0; }
.tl-body { flex: 1; min-width: 0; }
.tl-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-name { font-weight: 600; font-size: 14px; }
.tl-date { font-size: 12px; color: var(--muted); }
.tl-amt { font-weight: 700; color: var(--gold); font-size: 14px; margin-left: auto; }
.tl-text { font-size: 13.5px; color: var(--white); margin-top: 3px; }
.gpct { font-size: 12.5px; color: var(--gold); font-weight: 600; margin-top: 7px; }

/* ---------- WINS FEED ---------- */
.win-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; transition: var(--ease); }
.win-card:hover { border-color: var(--gold-line); }
.win-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.win-head .wh-name { font-size: 13.5px; font-weight: 600; }
.win-head .wh-time { font-size: 11.5px; color: var(--muted); }
.win-text { font-size: 15px; font-weight: 500; line-height: 1.5; }
.win-amount { font-size: 22px; font-weight: 800; color: var(--gold); margin: 8px 0; letter-spacing: -0.01em; }
.win-actions { display: flex; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.win-actions button { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: var(--ease); }
.win-actions button:hover { color: var(--gold); }
.win-actions button [data-lucide] { width: 15px; height: 15px; }

/* ---------- ADMIN ---------- */
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.codebox:first-child { border-top: none; }
.codebox code { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; color: var(--gold); background: var(--gold-soft); padding: 4px 10px; border-radius: 8px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.user-row:first-child { border-top: none; }
.user-row .ui { flex: 1; min-width: 0; }
.user-row .un { font-size: 14px; font-weight: 600; }
.user-row .us { font-size: 11.5px; color: var(--muted); }
.user-row select { background: var(--bg); color: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; max-width: 150px; }

/* ---------- EMPTY STATE ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .emoji { font-size: 40px; margin-bottom: 12px; }
.empty .et { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.empty .es { font-size: 13px; }

/* ---------- avatar edit ---------- */
.avatar-edit, .avatar-btn { position: relative; cursor: pointer; }
.avatar-btn { background: none; border: 0; padding: 0; display: inline-flex; line-height: 0; }
.avatar-btn:hover .cam { transform: scale(1.12); }
.avatar-edit .cam, .avatar-btn .cam { position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #14100A; display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface); transition: transform .15s; }
.avatar-btn.xs .cam { width: 16px; height: 16px; }
.avatar-edit .cam [data-lucide], .avatar-btn .cam [data-lucide] { width: 11px; height: 11px; }
.avatar-btn.xs .cam [data-lucide] { width: 9px; height: 9px; }

/* ---------- NOTICE ---------- */
.notice { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--gold-line); color: var(--white); border-radius: 12px; padding: 12px 18px; font-size: 13px; z-index: 100; box-shadow: var(--shadow); animation: slideUp 0.2s ease; max-width: 90%; }
@keyframes slideUp { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.18s ease; }

/* ---------- MOBILE ---------- */
.mobile-tabbar { display: none; }
@media (max-width: 820px) {
  /* Lišta je normální řádek mřížky, ne plovoucí prvek. Layout si tak sám odečte její výšku —
     odpadá ruční rezerva pod obsahem (magická čísla 52/44px), která nikdy neseděla na všech
     telefonech a dělala černý pruh dole. */
  .shell { grid-template-columns: 1fr; grid-template-rows: 1fr auto; min-height: 0; }
  .main, .main > #main-slot, .content { min-height: 0; }
  .sidebar { display: none; }
  .mobile-topbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--border); background: var(--surface); flex: 0 0 auto; }
  .mobile-topbar .company-switch { margin-bottom: 0; flex: 0 1 auto; max-width: 58%; min-width: 0; }
  .mt-brand { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
  .mt-brand .logo-badge { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: linear-gradient(135deg, var(--gold), #C79A2E); display: flex; align-items: center; justify-content: center; color: #14100A; font-weight: 800; font-size: 14px; }
  .mt-title { font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mt-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }
  .mt-actions .icon-btn { color: var(--white); background: var(--bg); width: 38px; height: 38px; align-items: center; justify-content: center; }
  .mt-actions .icon-btn [data-lucide] { width: 19px; height: 19px; }
  .mt-actions .avatar-btn.xs .cam { width: 15px; height: 15px; }
  .topbar { padding: 12px 16px; }
  .topbar .page-title { font-size: 16px; }
  .content { padding: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
  .stat-tile { padding: 13px; }
  .stat-tile .num { font-size: 23px; margin: 5px 0 1px; }
  .level-card, .mission { padding: 16px; }
  .lc-lvl { font-size: 18px; }
  .hof { gap: 10px; }
  .hof-card { padding: 13px; }
  .hof-value { font-size: 17px; }
  .section { padding: 15px; }
  .mission-stats { grid-template-columns: repeat(2, 1fr); }
  .mission-pct { font-size: 28px; }
  .mission-label { font-size: 18px; }
  .chat-layout { grid-template-columns: 1fr; }
  input, textarea, select { font-size: 16px !important; }
  .chat-layout.show-chat .chat-list { display: none; }
  .chat-layout:not(.show-chat) .chat-main { display: none; }
  .msg { max-width: 82%; }
  .mobile-tabbar { display: flex; position: relative; background: var(--surface); border-top: 1px solid var(--border); padding: 8px 6px; padding-bottom: max(8px, var(--sa-bottom, 0px)); z-index: 50; justify-content: space-around;
    /* Natáhne barvu lišty i pod její box — pokryje případný zbytkový pruh dole
       (systémové pozadí prosvítající v oblasti home indikátoru). */
    box-shadow: 0 200px 0 var(--surface); }
  .mobile-tabbar button { background: none; border: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 500; flex: 1; padding: 4px; }
  .mobile-tabbar button.active { color: var(--gold); }
  .mobile-tabbar button [data-lucide] { width: 20px; height: 20px; }
  /* klávesnice otevřená → schovej spodní navigaci, composer dostane celý prostor (fix z master promptu) */
  body.kb-open .mobile-tabbar { display: none !important; }
  /* uvnitř otevřené konverzace schovej spodní navigaci úplně (ne jen s klávesnicí) —
     ten rezervovaný pruh dole byl pořád vidět i bez klávesnice, tohle ho odstraní natrvalo */
  body.chat-open .mobile-tabbar { display: none !important; }
  /* kompaktnější mobilní chat — hustota blíž WhatsAppu */
  .chat-header { padding: 6px 10px; gap: 7px; }
  .chat-header .hn { font-size: 13.5px; }
  .chat-header .hs { font-size: 10.5px; }
  .avatar.sm, .conv-ava { width: 29px; height: 29px; }
  .messages { padding: 6px 9px; gap: 3px; }
  .bubble { padding: 5px 8px; font-size: 12.5px; border-radius: 13px; }
  .bubble .meta-inline { font-size: 9.5px; }
  .msg .author-name { font-size: 10px; margin: 0 4px 1px; }
  .composer { padding: 5px 9px; padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  .composer textarea { padding: 7px 0; font-size: 16px; }
  .composer .round { width: 34px; height: 34px; }
  .composer .in-btn { padding: 4px; flex-shrink: 0; }
  .composer .in-btn [data-lucide] { width: 18px; height: 18px; }
  .composer .inp-wrap { padding: 0 4px 0 11px; }
  .conv-item { padding: 8px 4px; gap: 10px; }
  /* POZOR: shorthand 'padding' prepise padding-bottom se safe-area z pravidla vyse.
     Safe-area proto musi byt primo tady — jinak lista ztrati spodni odsazeni
     a pod obsahem zbyde cerny pruh (presne ten bug, co se resil dokola). */
  .mobile-tabbar { padding: 6px 6px max(10px, var(--sa-bottom, 0px)); }
  .mobile-tabbar button [data-lucide] { width: 18px; height: 18px; }
  .mobile-tabbar button { font-size: 9.5px; }
}
@media (min-width: 821px) {
  .chat-back { display: none; }
}

/* ============ DOMŮ dashboard ============ */
.home { max-width: 760px; }
.morning { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: linear-gradient(120deg, rgba(var(--gold-rgb), .16), transparent 75%); margin-bottom: 16px; }
.morning .m-sun { font-size: 28px; }
.morning .m-hi { font-weight: 800; font-size: 16px; }
.morning .m-quote { font-size: 13px; color: var(--muted); margin-top: 2px; }
.home-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.oh-head { margin-bottom: 18px; }
.oh-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.oh-stats { margin-bottom: 22px; }
.stat-tile-btn { display: block; width: 100%; background: none; border: none; padding: 0; text-align: left; cursor: pointer; }
.stat-tile-btn .stat-tile { height: 100%; }
.oh-pins { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.oh-pin { display: flex; align-items: center; gap: 10px; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); padding: 9px 12px; }
.oh-pin [data-lucide="pin"] { width: 15px; height: 15px; color: var(--gold); flex: none; }
.oh-pin-t { flex: 1; font-size: 13px; color: var(--white); }
.oh-pin-x { background: none; border: none; color: var(--muted); flex: none; display: inline-flex; padding: 2px; }
.oh-pin-x:hover { color: var(--white); }
.oh-pin-x [data-lucide] { width: 15px; height: 15px; }
.oh-pin-add { display: flex; gap: 8px; margin-top: 10px; }
.oh-pin-add .inp { flex: 1; }
@media (max-width: 720px) { .oh-stats.stats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Nastavení — nový panel (Corporate Partneři / Uživatelé / Co můžeš vytvářet) ===== */
.ns-top { margin-top: 22px; }
.ns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
@media (max-width: 720px) { .ns-grid { grid-template-columns: 1fr; } }
.ns-col { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.ns-col-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.ns-col-head [data-lucide] { width: 16px; height: 16px; color: var(--gold); }
.ns-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }
.ns-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ns-row:last-of-type { border-bottom: none; }
.ns-row.inactive { opacity: .5; }
.ns-row-full { flex-wrap: wrap; padding: 10px 0; }
.ns-row-full .ns-name { flex: 1 1 100%; order: -1; margin-bottom: 2px; }
.ns-row-full .avatar-btn { order: -2; }
.ns-row-full select.ns-role-select { flex: 1 1 130px; min-width: 0; }
@media (min-width: 620px) { .ns-row-full .ns-name { flex: 1 1 auto; order: 0; margin-bottom: 0; } .ns-row-full .avatar-btn { order: 0; } }
.ns-badge { width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px; color: #14100A; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
[data-nslogo] { cursor: pointer; background-size: cover; background-position: center; }
[data-nslogo]:hover { box-shadow: 0 0 0 2px var(--gold-line); }
.tg-admin-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tg-admin-row:last-of-type { border-bottom: none; }
.tg-admin-thumb { width: 44px; height: 44px; border-radius: 10px; background-size: cover; background-position: center; background-color: var(--surface-2); flex-shrink: 0; }
.tg-admin-thumb.empty { display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.tg-admin-thumb.empty [data-lucide] { width: 18px; height: 18px; }
.tg-admin-mid { flex: 1; min-width: 0; }
.tg-admin-n { font-size: 13.5px; font-weight: 700; color: var(--white); }
.tg-admin-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.team-goal-banner { overflow: hidden; position: relative; }
.tg-media { width: 100%; aspect-ratio: 16/8; background-size: cover; background-position: center; border-radius: 12px; margin-bottom: 10px; background-color: var(--surface-2); overflow: hidden; }
.tg-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; flex-direction: column; }
.ns-sub, .ns-sub-r { font-size: 11px; color: var(--muted-2); font-weight: 400; }
.ns-pill { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; font-size: 11.5px; font-weight: 600; color: var(--muted); flex: none; }
.ns-pill.on { color: #6FCF97; border-color: rgba(111,207,151,.35); }
.ns-pill.off { color: var(--muted); }
.ns-del { background: none; border: none; color: var(--muted); padding: 4px; flex: none; margin-left: 2px; }
.ns-del:hover { color: #E5807A; }
.ns-del [data-lucide] { width: 15px; height: 15px; }
.ns-name[data-nsrename] { cursor: pointer; }
.ns-name[data-nsrename]:hover { text-decoration: underline; text-decoration-color: var(--gold-line); }
.fp-row { padding: 10px 4px; gap: 14px; }
.ns-role-select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 4px 6px; flex: none; max-width: 108px; }
.ns-deact { background: none; border: none; font-size: 11.5px; font-weight: 600; color: #E5807A; flex: none; padding: 4px 2px; }
.ns-deact.reactivate { color: #6FCF97; }
.ns-add { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--gold); font-size: 13px; font-weight: 600; padding: 10px 0 0; }
.ns-add [data-lucide] { width: 15px; height: 15px; }
.ns-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.ns-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 720px) { .ns-cards { grid-template-columns: repeat(2, 1fr); } }
.ns-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 10px; color: var(--white); font-size: 13px; font-weight: 600; transition: var(--ease); }
.ns-card:hover { border-color: var(--gold-line); }
.ns-card [data-lucide] { width: 20px; height: 20px; color: var(--gold); }
.ns-flash { animation: ns-flash-kf 1.2s ease; }
@keyframes ns-flash-kf { 0% { box-shadow: 0 0 0 3px var(--gold-line); } 100% { box-shadow: none; } }

/* ===== Sidebar — skupinové nadpisy (Komunikace / Práce / Přehledy) ===== */
.nav-group-label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; margin: 16px 14px 6px; }
.nav-group-label:first-child { margin-top: 4px; }
.nav-item .soon-dot { display: none; }

/* ===== Results & Targets ===== */
.rt-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.rt-card.no-goal { border-style: dashed; border-color: var(--gold-line); }
.rt-top { display: flex; align-items: center; gap: 12px; }
.rt-nm { flex: 1; min-width: 0; }
.rt-n { font-size: 14.5px; font-weight: 700; color: var(--white); }
.rt-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rt-pill { flex: none; border-radius: 999px; padding: 4px 12px; font-size: 11.5px; font-weight: 700; }
.rt-pill.done { color: #6FCF97; background: rgba(111,207,151,.12); }
.rt-pill.ok { color: var(--gold); background: var(--gold-soft); }
.rt-pill.risk { color: #E5807A; background: rgba(229,128,122,.12); }
.rt-pill.none { color: var(--muted); background: var(--surface-2); }
.rt-bar { height: 8px; border-radius: 999px; background: var(--surface-2); margin-top: 14px; overflow: hidden; }
.rt-fill { display: block; height: 100%; border-radius: 999px; }
.rt-fill.done { background: #6FCF97; }
.rt-fill.ok { background: var(--gold); }
.rt-fill.risk { background: #E5807A; }
.rt-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rt-prize { color: var(--gold); font-weight: 600; }
.rt-need { color: #E5807A; font-weight: 600; }

/* ===== Prominentní banner na Domů — Výzva pro tým + Osobní cíl ===== */
.challenge-banner { background: linear-gradient(135deg, var(--gold-soft), var(--bg)); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.challenge-banner.done { border-color: rgba(111,207,151,.4); }
.challenge-banner.goal { background: linear-gradient(135deg, rgba(90,120,190,.12), var(--bg)); border-color: rgba(90,120,190,.3); }
.cb-top { display: flex; align-items: center; gap: 12px; }
.cb-emoji { font-size: 24px; flex: none; }
.cb-tit { flex: 1; min-width: 0; }
.cb-h { font-size: 15px; font-weight: 700; color: var(--white); }
.cb-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cb-claimed { flex: none; font-size: 12px; font-weight: 700; color: #6FCF97; }
.cb-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.cb-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.cb-row span:first-child { flex: 0 0 130px; }
.cb-num { flex: none; font-weight: 600; color: var(--white); font-size: 12px; }
.rt-bar.sm { height: 6px; flex: 1; }
.challenge-banner .rt-bar { background: rgba(255,255,255,.08); }
.cb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cb-list-i { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; }
.cb-list-i b { font-size: 13px; color: var(--white); }
.cb-list-i span { font-size: 11.5px; color: var(--muted); }

/* ===== Pozice & úrovně / Osobní cíle — editor v Nastavení ===== */
.rk-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rk-row input[type="number"] { flex: 0 0 80px; }
.rk-row input[type="text"] { flex: 1; }
.pg-row { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-top: 10px; background: var(--bg); }
.pg-head { display: flex; align-items: center; gap: 10px; }
.pg-progress { margin-top: 10px; }

/* ===== Motto banner na Domů — krátký citát/heslo, ne progress karta ===== */
.motto-banner { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; }
.mb-emoji { font-size: 16px; flex: none; }
.mb-txt { font-family: "Playfair Display", serif; font-style: italic; color: var(--white); font-size: 14px; }

/* ===== Groups ===== */
.grp-off { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: middle; }
.grp-panel-inner { padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); max-height: 40vh; overflow-y: auto; }

/* ===== Skutečná oznámení — permission box v Nastavení ===== */
.notif-perm { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.notif-perm [data-lucide] { width: 18px; height: 18px; color: var(--gold); flex: none; }
.notif-perm span { flex: 1; font-size: 13px; color: var(--white); }
.notif-perm .btn { flex: none; }
.notif-perm.ok { border-color: rgba(111,207,151,.35); }
.notif-perm.ok [data-lucide] { color: #6FCF97; }
.notif-perm.off [data-lucide] { color: #E5807A; }
.notif-perm.off span { color: var(--muted); }

/* ===== Project Room ===== */
/* ===== Project Room — mřížka karet ("bublinka" = jeden projekt) ===== */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.proj-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 14px; transition: var(--ease); }
.proj-card:hover { border-color: var(--gold-line); }
.proj-dot { position: absolute; top: 10px; right: 10px; min-width: 18px; height: 18px; border-radius: 9px; background: #E5473F; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--surface-2); }
.proj-card-badge { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #14100A; font-weight: 800; font-size: 16px; margin-bottom: 10px; flex-shrink: 0; }
.proj-card-name { font-size: 13.5px; font-weight: 700; color: var(--white); line-height: 1.25; margin-bottom: 2px; width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.proj-card-co { font-size: 11px; color: var(--muted); margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.proj-card-bar { width: 100%; height: 5px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-top: auto; }
.proj-card-bar.off { background: var(--border); }
.proj-card-bar span { display: block; height: 100%; background: linear-gradient(135deg, var(--gold), #D4A838); border-radius: 999px; }
.proj-card-pct { font-size: 11px; color: var(--gold); font-weight: 600; margin-top: 6px; }
.proj-card-pct.muted { color: var(--muted-2); font-weight: 500; }
.proj-card-foot { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.proj-card-foot [data-lucide] { width: 12px; height: 12px; }
.proj-card-cover { width: 100%; aspect-ratio: 16/9; border-radius: 12px; background-size: cover; background-position: center; margin-bottom: 10px; }
.proj-card.has-cover .proj-card-name { font-size: 14px; }

/* fotka projektu (v novém projektu i v Overview) */
.proj-cover-pick { position: relative; width: 100%; aspect-ratio: 16/7; border-radius: 14px; border: 1.5px dashed var(--border); background: var(--surface-2); background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; overflow: hidden; }
.proj-cover-pick.has-img { border-style: solid; border-color: var(--gold-line); }
.proj-cover-pick.has-img::after { content: "Změnit fotku"; position: absolute; inset: auto 0 0 0; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); color: #fff; font-size: 11px; font-weight: 600; padding: 16px 10px 6px; text-align: center; }
.proj-cover-pick [data-lucide] { width: 22px; height: 22px; }
.proj-avatars { display: flex; flex-wrap: wrap; gap: 6px; }

/* @zmínky */
.mention-dd { position: absolute; bottom: 100%; left: 10px; right: 10px; margin-bottom: 6px; background: var(--surface-2); border: 1px solid var(--gold-line); border-radius: 12px; padding: 4px; display: flex; flex-direction: column; max-height: 180px; overflow-y: auto; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.mention-dd button { background: none; border: none; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--white); font-size: 13px; font-weight: 500; }
.mention-dd button:hover { background: var(--gold-soft); color: var(--gold); }
.mention-tag { color: var(--gold); font-weight: 700; }
.msg.mine .mention-tag { color: #14100A; text-decoration: underline; }
@media (max-width: 480px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }

.proj-tabs { display: flex; gap: 4px; padding: 8px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; overflow-x: auto; }
.proj-tab { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: none; border: 1px solid transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; flex: none; }
.proj-tab [data-lucide] { width: 14px; height: 14px; }
.proj-tab.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.proj-tab-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; }
.proj-tab-body.chat-fill { padding: 0; overflow: hidden; }
.proj-tab-body.chat-fill .messages { flex: 1; }
.proj-update-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.proj-update-form textarea { resize: vertical; }
.proj-result-row { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; }
.pr-h { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.pr-h b { color: var(--gold); font-size: 12px; }
.pr-t { font-size: 13px; color: var(--white); margin-top: 3px; }
.pr-amt { color: #6FCF97; font-weight: 700; }
.pr-comment { font-size: 12px; color: var(--muted); margin-top: 4px; font-style: italic; line-height: 1.4; }
.pr-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pr-file { display: flex; align-items: center; gap: 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px; font-size: 11.5px; color: var(--gold); font-weight: 600; }
.pr-file [data-lucide] { width: 12px; height: 12px; }
.pr-actions { display: flex; gap: 14px; margin-top: 8px; }
.pr-attach { background: none; border: none; color: var(--muted); font-size: 11px; font-weight: 600; padding: 0; display: flex; align-items: center; gap: 4px; }
.pr-attach [data-lucide] { width: 12px; height: 12px; }
.pr-attach:hover { color: var(--gold); }
.pr-del { background: none; border: none; color: #E5807A; font-size: 11px; font-weight: 600; margin-top: 0; padding: 0; }
.proj-update { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.pu-h { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.pu-h b { color: var(--white); font-size: 12.5px; }
.pu-t { font-size: 13.5px; color: var(--white); line-height: 1.5; }

/* ===== Reakce na zprávy ===== */
.msg-reacts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.react-btn { display: inline-flex; align-items: center; gap: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.react-btn span { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.react-btn.mine { background: var(--gold-soft); border-color: var(--gold-line); }
.react-btn.mine span { color: var(--gold); }
.react-add { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.react-add [data-lucide] { width: 12px; height: 12px; }
.hh-greet { font-size: 22px; font-weight: 800; }
.hh-greet .serif { font-family: "Playfair Display", serif; font-style: italic; color: var(--gold); }
.home-edit { width: 42px; height: 42px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--ease); }
.home-edit [data-lucide] { width: 20px; height: 20px; }
.home-edit.on { background: var(--gold); color: #14100A; border-color: var(--gold); }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.home-grid .widget { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; position: relative; }
.home-grid .widget[data-wgoto] { cursor: pointer; transition: border-color .15s; }
.home-grid .widget[data-wgoto]:hover { border-color: var(--gold-line); }
.home-grid .widget.wide { grid-column: 1 / -1; }
.home-grid .wh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.home-grid .wt { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.home-grid .wt [data-lucide] { width: 15px; height: 15px; color: var(--gold); }
.home-grid .wtools { display: none; align-items: center; gap: 9px; }
.home-grid .w-grip { width: 16px; height: 16px; color: var(--muted); cursor: grab; }
.home-grid .w-x { width: 20px; height: 20px; color: #e5695f; cursor: pointer; background: rgba(229,105,95,.14); border-radius: 6px; padding: 2px; }
.home-grid.editing .widget { border-color: var(--gold-line); border-style: dashed; animation: wiggle 2.6s ease-in-out infinite; }
.home-grid.editing .widget:nth-child(even) { animation-delay: .15s; }
.home-grid.editing .wtools { display: flex; }
.widget.dragging { opacity: .5; }
@keyframes wiggle { 0%,100% { transform: rotate(-.5deg); } 50% { transform: rotate(.5deg); } }
.dash-big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.dash-mini { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dg-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 9px; }
.dg-lbl { font-size: 16px; font-weight: 700; }
.dg-pct { font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1; }
.dash-bar { height: 12px; background: var(--bg); border-radius: 7px; overflow: hidden; }
.dash-bar .f { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 7px; box-shadow: 0 0 12px rgba(var(--gold-rgb), .4); transition: width .8s; }
.dash-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.dash-impact { font-size: 13.5px; line-height: 1.55; }
.dash-impact b { color: var(--gold); }
.dash-task { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.dash-task:last-child { border-bottom: 0; }
.dt-dot { width: 9px; height: 9px; border-radius: 3px; background: var(--muted); flex: 0 0 auto; }
.dt-dot.hi { background: #e5695f; } .dt-dot.mid { background: var(--gold); }
.dash-top3 { display: flex; flex-direction: column; gap: 2px; }
.dt3 { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; font-weight: 600; border-bottom: 1px solid var(--border); }
.dt3:last-child { border-bottom: 0; }
.dt3-rk { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; background: var(--surface-2, #202027); color: var(--muted); flex: 0 0 auto; }
.dt3-rk.r1 { background: var(--gold); color: #14100A; } .dt3-rk.r2 { background: #B8B8C0; color: #14100A; } .dt3-rk.r3 { background: #CD8B5A; color: #14100A; }
.dt3-p { margin-left: auto; color: var(--gold); font-weight: 700; font-size: 12.5px; }
.dash-qa { display: flex; gap: 10px; }
.dash-qb { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--bg); border: 1px solid var(--border); color: var(--white); border-radius: 11px; padding: 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--ease); }
.dash-qb:hover { border-color: var(--gold-line); }
.dash-qb [data-lucide] { width: 16px; height: 16px; color: var(--gold); }
.home-hidden { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.home-hidden .hh-lbl { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.hidden-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px dashed var(--gold-line); color: var(--gold); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; margin: 0 8px 8px 0; }
.hidden-chip [data-lucide] { width: 15px; height: 15px; }
@media (max-width: 820px) {
  .home-grid { gap: 11px; }
  .home-grid .widget { padding: 14px; }
  .dash-big { font-size: 26px; }
  .hh-greet { font-size: 20px; }
}

/* ============ WhatsApp seznam chatů ============ */
.chat-list-view { max-width: 760px; }
.chat-search { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; margin-bottom: 16px; }
.chat-search [data-lucide] { width: 17px; height: 17px; color: var(--muted); }
.chat-search input { flex: 1; background: none; border: 0; outline: 0; color: var(--white); font: inherit; font-size: 14px; }
.conv-sec { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold); margin: 8px 2px 6px; }
.conv-sec [data-lucide] { width: 14px; height: 14px; }
.conv-item { display: flex; align-items: center; gap: 13px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 12px 4px; cursor: pointer; text-align: left; transition: var(--ease); }
.conv-item.unread { background: rgba(255,255,255,.035); border-radius: 12px; }
.conv-item.unread .conv-n { color: var(--white); font-weight: 800; }
.conv-item.unread .conv-last { color: #C9CBD1; }
.conv-item:hover { background: var(--surface); border-radius: 12px; }
.conv-item .avatar, .conv-ava { width: 48px; height: 48px; flex: 0 0 auto; }
.conv-ava { border-radius: 50%; background: linear-gradient(135deg, var(--gold), #C79A2E); color: #14100A; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.conv-ava.grp { border-radius: 15px; }
.conv-mid { flex: 1; min-width: 0; }
.conv-n { font-size: 15px; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.conv-t { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; }
.conv-last { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.conv-empty { font-size: 13px; color: var(--muted); padding: 10px 4px 14px; }
.chat-header .chat-back { background: none; border: 0; color: var(--white); margin-right: 2px; }

/* ============ SCHŮZKY & DENÍK ============ */
.btn.big { width: 100%; justify-content: center; padding: 14px; font-size: 15px; margin-bottom: 16px; }
.btn.ghost { background: var(--surface); color: var(--white); border: 1px solid var(--border); }
.reflect-card { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 18px; background: linear-gradient(135deg, var(--gold-soft), transparent 70%); margin-bottom: 16px; }
.rc-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; }
.rc-head [data-lucide] { width: 18px; height: 18px; color: var(--gold); }
.rc-time { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.rc-cli { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.rc-q { font-size: 13.5px; font-weight: 600; margin: 14px 0 7px; }
.scale { display: flex; gap: 5px; }
.scale .sc { flex: 1; padding: 9px 0; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; transition: var(--ease); }
.scale .sc.on { background: var(--gold); color: #14100A; border-color: var(--gold); }
.diary { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.diary:last-child { border-bottom: 0; }
.d-date { font-size: 13px; font-weight: 800; color: var(--gold); min-width: 40px; }
.d-body { flex: 1; min-width: 0; }
.d-cli { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.d-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.d-note b { color: var(--white); font-weight: 600; }
.d-scale { font-size: 12px; color: var(--muted); margin-top: 6px; }
.d-scale b { color: var(--gold); }
.d-del { margin-left: auto; background: none; border: 0; color: var(--muted-2); cursor: pointer; padding: 4px; }
.d-del:hover { color: #e5695f; }
.d-del [data-lucide] { width: 15px; height: 15px; }
.tag { font-size: 9.5px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.tag.win { background: rgba(87,192,122,.16); color: #57c07a; }
.tag.hot { background: var(--gold-soft); color: var(--gold); }
.tag.new { background: var(--bg); color: var(--muted); }

/* ============ NASTAVENÍ ============ */
.profile-hero { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: linear-gradient(135deg, var(--gold-soft), transparent 65%); margin-bottom: 22px; }
.avatar-btn.lg { position: relative; background: none; border: 0; padding: 0; cursor: pointer; }
.ph-name { font-size: 20px; font-weight: 800; }
.ph-sub { font-size: 13px; color: var(--gold); margin-top: 3px; font-weight: 600; }
.set-group { margin-bottom: 20px; }
.set-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 4px 9px; font-weight: 700; }
.set-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px; border: 0; border-bottom: 1px solid var(--border); background: none; color: var(--white); font: inherit; text-align: left; cursor: pointer; }
.set-row:last-child { border-bottom: 0; }
button.set-row:hover { background: rgba(255,255,255,.03); }
.set-row .si { width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.set-row .si [data-lucide] { width: 18px; height: 18px; color: var(--gold); }
.set-row .st { flex: 1; min-width: 0; display: block; }
.set-row .st .a { display: block; font-size: 14.5px; font-weight: 600; }
.set-row .st .b { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.set-row .chev { width: 18px; height: 18px; color: var(--muted-2); flex: 0 0 auto; }
.toggle { width: 46px; height: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--border); position: relative; flex: 0 0 auto; cursor: pointer; transition: var(--ease); padding: 0; }
.toggle i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #6a6a74; transition: var(--ease); }
.toggle.on { background: var(--gold); border-color: var(--gold); }
.toggle.on i { left: 20px; background: #14100A; }
.owner-settings .section:first-of-type { margin-top: 0; }

/* ============ Systémová oznámení v chatu ============ */
.msg-sys { display: flex; justify-content: center; margin: 12px 0; }
.msg-sys span { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font-size: 12.5px; font-weight: 600; padding: 8px 16px; border-radius: 20px; text-align: center; max-width: 90%; }

/* ============ Žebříček Lidé/Firmy ============ */
.lb-toggle { display: flex; gap: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 5px; margin-bottom: 18px; max-width: 420px; }
.lb-toggle button { flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; padding: 10px; border-radius: 10px; cursor: pointer; transition: var(--ease); }
.lb-toggle button.on { background: var(--gold); color: #14100A; }
.co-winner { display: flex; align-items: center; gap: 16px; }
.cw-name { font-size: 21px; font-weight: 700; color: var(--gold); font-style: italic; }
.cw-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ============ Klienti ============ */
.cl-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }
.cl-f { background: var(--surface); border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: var(--ease); }
.cl-f.on { background: var(--gold); color: #14100A; border-color: var(--gold); }
.client { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 11px; }
.cl-head { display: flex; align-items: center; gap: 11px; }
.cl-i { flex: 1; min-width: 0; }
.cl-n { font-size: 15px; font-weight: 700; }
.cl-o { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.cl-next { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 10px 12px; margin-top: 11px; font-size: 13px; }
.cl-next [data-lucide] { width: 14px; height: 14px; color: var(--gold); flex: 0 0 auto; }
.cl-foot { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.cl-v { font-size: 15px; font-weight: 800; color: var(--gold); flex: 1; }
.cl-v.muted { color: var(--muted-2); font-weight: 500; }
.cl-sel { background: var(--bg); border: 1px solid var(--border); color: var(--white); border-radius: 9px; padding: 7px 10px; font: inherit; font-size: 12.5px; cursor: pointer; }
.cl-del { background: none; border: 0; color: var(--muted-2); cursor: pointer; padding: 6px; }
.cl-del:hover { color: #e5695f; }
.cl-del [data-lucide] { width: 16px; height: 16px; }
.tag.lost { background: rgba(229,105,95,.14); color: #e5807a; }
.tag.mid { background: var(--bg); color: var(--white); }

/* ============ Reporty ============ */
.rep-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.rep-row:last-of-type { border-bottom: 0; }
.rr-i { flex: 1; min-width: 0; }
.rr-n { font-size: 14.5px; font-weight: 700; }
.rr-s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.rr-g { font-size: 15px; font-weight: 800; color: var(--muted); }
.rr-g.up { color: #57c07a; }
.rr-g.down { color: #e5807a; }
.firm-team { padding: 13px 0; border-bottom: 1px solid var(--border); }
.firm-team:last-of-type { border-bottom: 0; }
.ft-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ft-name { font-size: 14.5px; font-weight: 700; }
.ft-meta { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.ft-people { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-p { display: flex; align-items: center; gap: 6px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px 4px 4px; font-size: 12.5px; font-weight: 600; }
.ft-p b { color: var(--gold); font-size: 11px; }
.ft-p .avatar.xs { width: 22px; height: 22px; font-size: 10px; }
.ft-empty { font-size: 12.5px; color: var(--muted-2); }

/* ============ Mystery Box ============ */
.widget .myst-body { display: flex; align-items: center; gap: 14px; }
.myst-box { font-size: 36px; filter: drop-shadow(0 4px 10px rgba(var(--gold-rgb), .4)); animation: float 3s ease-in-out infinite; }
.myst-box.ready { animation: shake .8s ease-in-out infinite; }
.myst-box.open { animation: none; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes shake { 0%,100% { transform: rotate(-8deg) scale(1.05); } 50% { transform: rotate(8deg) scale(1.1); } }
.myst-info { flex: 1; min-width: 0; }
.myst-title { font-size: 13.5px; font-weight: 600; }

/* ============ AI kouč ============ */
.coach-card { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 16px; background: linear-gradient(135deg, var(--gold-soft), transparent 70%); margin-bottom: 16px; }
.cc-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.cc-head [data-lucide] { width: 18px; height: 18px; color: var(--gold); }
.cc-tag { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--gold); background: rgba(0,0,0,.3); border: 1px solid var(--gold-line); padding: 3px 10px; border-radius: 999px; }
.cc-body { font-size: 13.5px; line-height: 1.6; color: var(--white); }
.cc-loading { color: var(--muted); font-style: italic; }

/* ============ MAPA SVĚTA ============ */
.map-bar { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.map-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; margin-bottom: 16px; overflow: hidden; }
.world { width: 100%; height: auto; display: block; }
.world .land { fill: #1e1e25; stroke: #2c2c35; stroke-width: .5; }
/* rozsvícená země */
.ctry .glow { fill: var(--gold); opacity: .28; filter: blur(6px); }
.ctry .fill { fill: var(--gold); stroke: #F5D77E; stroke-width: .8; }
.ctry .clabel { fill: #fff; font-size: 17px; font-weight: 800; font-family: Inter, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.65); stroke-width: 3px; }
.ctry.good .glow { fill: #57c07a; } .ctry.good .fill { fill: #57c07a; stroke: #7fd89b; }
.ctry.warn .glow { fill: #e5807a; } .ctry.warn .fill { fill: #e5807a; stroke: #f0a29c; }
.ctry { animation: ctryPulse 3.2s ease-in-out infinite; transform-origin: center; }
@keyframes ctryPulse { 0%, 100% { opacity: .92; } 50% { opacity: 1; } }
.map-row { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.map-row:last-child { border-bottom: 0; }
.mr-flag { font-size: 26px; }
.mr-i { flex: 1; min-width: 0; }
.mr-n { font-size: 15px; font-weight: 700; }
.mr-c { font-size: 12px; color: var(--muted); margin-top: 1px; }
.mr-r { text-align: right; }
.mr-pct { font-size: 17px; font-weight: 800; color: var(--gold); }
.mr-pct.good { color: #57c07a; } .mr-pct.warn { color: #e5807a; }
.mr-t { font-size: 11.5px; color: var(--muted); }
/* nastavení mapy (majitel) */
.map-cfg { border-color: var(--gold-line); }
.mcfg-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.mcfg-row:last-child { border-bottom: 0; }
.mcfg-flag { font-size: 22px; }
.mcfg-n { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; }
.mcfg-sel { width: 175px; flex: 0 0 auto; padding: 9px 10px; font-size: 13px; }
@media (max-width: 820px) {
  .mcfg-row { flex-wrap: wrap; }
  .mcfg-sel { width: 100%; }
}

/* ============ RANNÍ AI BRIEFING ============ */
.morning.ai { align-items: flex-start; }
.morning .m-body { flex: 1; min-width: 0; }
.m-brief { font-size: 13.5px; color: var(--white); margin-top: 5px; line-height: 1.6; white-space: pre-wrap; }
.m-ask { margin-top: 9px; background: rgba(0,0,0,.28); border: 1px solid var(--gold-line); color: var(--gold); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: var(--ease); }
.m-ask:hover { background: var(--gold); color: #14100A; }

/* ============ ACHIEVEMENTY ============ */
.ach-count { font-size: 12px; color: var(--gold); font-weight: 700; margin-left: 6px; }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ach { background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 9px 6px; text-align: center; opacity: .45; transition: var(--ease); cursor: pointer; }
.ach.got { opacity: 1; border-color: var(--gold-line); background: linear-gradient(160deg, var(--gold-soft), transparent 70%); }
.ach-e { font-size: 19px; filter: grayscale(1); }
.ach.got .ach-e { filter: none; }
.ach-n { font-size: 10.5px; font-weight: 700; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ach-h { font-size: 8.5px; color: var(--muted); margin-top: 1px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ach.got .ach-h { color: var(--gold); }
@media (max-width: 820px) { .ach-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ SCHŮZKY — kalendář ============ */
.f-lbl { display: block; font-size: 12px; color: var(--muted); margin: 10px 2px 5px; font-weight: 600; }
.pending-note { display: flex; align-items: center; gap: 9px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.pending-note [data-lucide] { width: 16px; height: 16px; flex: 0 0 auto; }
.cal { display: flex; flex-direction: column; }
.cal-day { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
.cal-day:first-child { margin-top: 4px; }
.cal-day span { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.cal-day::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.meet { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 9px; cursor: pointer; color: var(--white); font: inherit; transition: var(--ease); }
.meet:hover { border-color: var(--gold-line); transform: translateY(-1px); }
.meet.todo { border-left: 3px solid var(--gold); }
.meet.done { border-left: 3px solid #57c07a; }
.meet-time { font-size: 15px; font-weight: 800; color: var(--gold); min-width: 46px; }
.meet.done .meet-time { color: var(--muted); }
.meet-b { flex: 1; min-width: 0; }
.meet-c { font-size: 15px; font-weight: 700; }
.meet-n { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meet-n b { color: var(--white); font-weight: 600; }
.meet-r { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.meet-sc { font-size: 12px; font-weight: 800; color: var(--gold); }
.meet-r [data-lucide] { width: 17px; height: 17px; color: var(--muted-2); }
.tag.todo { background: var(--gold-soft); color: var(--gold); }

/* detail schůzky */
.back-btn { margin-bottom: 14px; }
.meet-hero { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 18px; background: linear-gradient(135deg, var(--gold-soft), transparent 65%); margin-bottom: 16px; }
.mh-when { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.mh-client { font-size: 22px; font-weight: 800; margin-top: 5px; }
.mh-note { font-size: 13px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.reflect-card.done { border-color: rgba(87,192,122,.35); background: linear-gradient(135deg, rgba(87,192,122,.08), transparent 70%); }
.reflect-card.done .rc-head [data-lucide] { color: #57c07a; }
.r-block { padding: 12px 0; border-bottom: 1px solid var(--border); }
.r-block:last-of-type { border-bottom: 0; }
.r-q { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.r-a { font-size: 14px; margin-top: 5px; line-height: 1.5; }
.r-scale { display: flex; align-items: center; gap: 11px; margin-top: 7px; }
.r-scale b { color: var(--gold); font-size: 14px; }
.rs-bar { flex: 1; height: 9px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.rs-f { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 5px; }
.danger-btn { margin-top: 14px; color: #e5807a; border-color: rgba(229,105,95,.3); }
.danger-btn:hover { background: rgba(229,105,95,.1); }

/* ============ AI FOCUS ============ */
.focus-lead { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.5; }
.focus-i { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.focus-i:last-child { border-bottom: 0; }
.fi-n { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #14100A; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fi-b { flex: 1; min-width: 0; }
.fi-a { font-size: 14px; font-weight: 600; line-height: 1.4; }
.fi-w { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.fi-c { font-size: 14px; font-weight: 800; color: #57c07a; flex: 0 0 auto; }
.widget[data-w="focus"] { border-color: var(--gold-line); background: linear-gradient(150deg, var(--gold-soft), var(--surface) 60%); }

/* ============ KPI ============ */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 11px; padding: 12px 8px; text-align: center; }
.k-n { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.k-n.gold { color: var(--gold); font-size: 17px; }
.k-l { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
@media (max-width: 820px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

/* ============ TÝDENNÍ VÝZVA ============ */
.widget[data-w="vyzva"] { border-color: var(--gold-line); }
.ch-title { font-size: 15px; font-weight: 700; margin-bottom: 11px; }
.ch-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.ch-ok { font-size: 14px; color: var(--gold); width: 16px; }
.ch-l { font-size: 13px; font-weight: 600; min-width: 130px; }
.ch-bar { flex: 1; height: 7px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.ch-f { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 4px; }
.ch-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border); }
.ch-rew { font-size: 12.5px; color: var(--gold); font-weight: 700; flex: 1; }
.ch-done { font-size: 12.5px; color: #57c07a; font-weight: 700; }
.ch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.ch-grid label { font-size: 12px; color: var(--muted); font-weight: 600; }
.ch-grid input { margin-top: 5px; }

/* ============ ÚKOLY s ikonkami ============ */
button.dash-task { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 9px 0; font: inherit; font-size: 13.5px; color: var(--white); cursor: pointer; }
button.dash-task:last-of-type { border-bottom: 0; }
.tk-e { font-size: 15px; flex: 0 0 auto; }
.tk-do { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
button.dash-task:hover .tk-do { background: var(--gold); color: #14100A; border-color: var(--gold); }
.done-list { margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--border); }
.dl-h { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.dl-i { font-size: 12.5px; color: #57c07a; padding: 3px 0; }
.dl-i span { color: var(--muted); }
.done-sec .ds-n { color: var(--gold); font-size: 13px; margin-left: 5px; }
.done-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.done-row:last-child { border-bottom: 0; }
.dr-ok { color: #57c07a; font-weight: 800; }
.dr-t { flex: 1; color: var(--muted); text-decoration: line-through; }
.dr-w { font-size: 11.5px; color: var(--muted-2); }

/* ============ VÝKON / AKTIVITA / HEATMAPA ============ */
.dash-big.gold { color: var(--gold); }
.dash-big .of { font-size: 15px; color: var(--muted); font-weight: 600; }
.act-i { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.act-i:last-child { border-bottom: 0; }
.act-i [data-lucide] { width: 15px; height: 15px; color: var(--gold); flex: 0 0 auto; }
.ai-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-s { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
/* ============ REFLEXE — jednoklikové volby ============ */
.pick { display: flex; flex-wrap: wrap; gap: 7px; }
.pk { background: var(--bg); border: 1px solid var(--border); color: var(--white); border-radius: 11px; padding: 10px 13px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--ease); }
.pk:hover { border-color: var(--gold-line); }
.pk.on { background: var(--gold); color: #14100A; border-color: var(--gold); }
.pick.moods .pk { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; min-width: 62px; padding: 9px 5px; }
.pk-e { font-size: 20px; }
.pk-l { font-size: 10.5px; }
.big-ta { min-height: 78px; }
.rc-hint { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }

/* ============ AI COACH karta ============ */
.ai-card { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 18px; background: linear-gradient(140deg, var(--gold-soft), transparent 70%); margin-bottom: 16px; }
.ai-head { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; }
.ai-head [data-lucide] { width: 19px; height: 19px; color: var(--gold); }
.ai-stars { margin-left: auto; color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.ai-text { font-size: 13.5px; line-height: 1.6; margin: 12px 0 16px; }
.ai-prob { display: flex; align-items: center; gap: 11px; }
.ap-l { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.ap-bar { flex: 1; height: 9px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.ap-f { height: 100%; background: linear-gradient(90deg, #C79A2E, var(--gold)); border-radius: 5px; }
.ap-n { font-size: 15px; font-weight: 800; color: var(--gold); }

/* ============ AI TRENÉR ============ */
.trainer-card { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 20px; background: linear-gradient(150deg, rgba(var(--gold-rgb), .14), transparent 70%); margin-bottom: 18px; }
.tc-head { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; }
.tc-head [data-lucide] { width: 20px; height: 20px; color: var(--gold); }
.tc-n { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.tc-sum { font-size: 14px; line-height: 1.6; margin: 12px 0 14px; }
.tc-pats { display: flex; flex-direction: column; gap: 9px; }
.tc-p { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.45; }
.tc-num { color: var(--gold); font-weight: 800; flex: 0 0 auto; }
.tc-rates { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0; padding: 14px; background: rgba(0,0,0,.25); border-radius: 12px; }
.tc-rates [data-lucide] { width: 20px; height: 20px; color: var(--muted); }
.tr-b { text-align: center; }
.tr-l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tr-v { font-size: 26px; font-weight: 800; margin-top: 2px; }
.tr-b.up .tr-v { color: #57c07a; }
.tc-chall { background: rgba(0,0,0,.25); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 13px 15px; font-size: 13px; line-height: 1.5; }
.tch-l { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.tc-empty { font-size: 13px; color: var(--muted); margin: 10px 0 12px; line-height: 1.5; }

/* ============ STATISTIKY ============ */
.stat-line { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.stat-line:last-child { border-bottom: 0; }
.stat-line span { color: var(--muted); }
.stat-line b { color: var(--white); }
.stat-line.warn b { color: #e5807a; }
.r-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.chip { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; }
.chip.strong { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.r-quote { font-size: 14px; font-style: italic; color: var(--white); margin-top: 6px; line-height: 1.5; padding-left: 11px; border-left: 2px solid var(--gold); }

/* ============ KALENDÁŘ AKTIVITY ============ */
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-b { width: 30px; height: 30px; border-radius: 9px; background: var(--bg); border: 1px solid var(--border); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cal-b [data-lucide] { width: 15px; height: 15px; }
.cal-m { font-size: 14px; font-weight: 700; }
.cal-h { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 6px; }
.cal-h span { text-align: center; font-size: 10.5px; color: var(--muted); font-weight: 700; }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-e { aspect-ratio: 1; }
.cal-d { aspect-ratio: 1; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--muted-2); font-weight: 600; transition: var(--ease); }
.cal-d.l1 { background: rgba(var(--gold-rgb), .22); border-color: transparent; color: var(--white); }
.cal-d.l2 { background: rgba(var(--gold-rgb), .45); border-color: transparent; color: var(--white); }
.cal-d.l3 { background: rgba(var(--gold-rgb), .7); border-color: transparent; color: #14100A; }
.cal-d.l4 { background: var(--gold); border-color: transparent; color: #14100A; font-weight: 800; }
.cal-d.today { box-shadow: 0 0 0 2px var(--gold); color: var(--gold); }
.cal-d.today.l3, .cal-d.today.l4 { color: #14100A; }
.cal-legend { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); margin-top: 11px; }
.cl-scale { display: flex; align-items: center; gap: 4px; }
.cl-scale i { width: 11px; height: 11px; border-radius: 3px; background: var(--bg); border: 1px solid var(--border); }
.cl-scale i.l1 { background: rgba(var(--gold-rgb), .22); border-color: transparent; }
.cl-scale i.l2 { background: rgba(var(--gold-rgb), .45); border-color: transparent; }
.cl-scale i.l3 { background: rgba(var(--gold-rgb), .7); border-color: transparent; }
.cl-scale i.l4 { background: var(--gold); border-color: transparent; }

/* ============ AI HODNOCENÍ (2 týdny) ============ */
.review-card { border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 20px; background: linear-gradient(150deg, rgba(var(--gold-rgb), .13), transparent 70%); margin-bottom: 18px; }
.rv-head { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; }
.rv-head [data-lucide] { width: 20px; height: 20px; color: var(--gold); }
.rv-tr { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.rv-tr.up { color: #57c07a; background: rgba(87,192,122,.14); }
.rv-tr.down { color: #e5807a; background: rgba(229,105,95,.14); }
.rv-line { font-size: 14.5px; line-height: 1.6; margin: 12px 0 16px; }
.rv-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.rv-n { background: rgba(0,0,0,.25); border-radius: 11px; padding: 11px 6px; text-align: center; }
.rvn-v { font-size: 20px; font-weight: 800; }
.rvn-l { font-size: 10px; color: var(--muted); margin-top: 2px; }
.rvn-d { font-size: 11px; font-weight: 700; color: var(--muted-2); margin-top: 3px; }
.rvn-d.up { color: #57c07a; } .rvn-d.down { color: #e5807a; }
.rv-sec { margin-bottom: 14px; }
.rv-l { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; }
.rv-l.good { color: #57c07a; } .rv-l.warn { color: #e5807a; }
.rv-i { font-size: 13.5px; line-height: 1.5; padding: 4px 0; }
.rv-goal { background: rgba(0,0,0,.25); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: 13px 15px; font-size: 13.5px; line-height: 1.5; }
.rvg-l { font-size: 11px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.rv-empty { font-size: 13px; color: var(--muted); margin: 11px 0 13px; line-height: 1.55; }

/* ============ CO SE TI POVEDLO ============ */
.win-i { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.win-i:last-child { border-bottom: 0; }
.wi-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.wi-ic [data-lucide] { width: 17px; height: 17px; color: var(--gold); }
.wi-ic.meet [data-lucide] { color: #7aa7e5; }
.wi-ic.task [data-lucide] { color: #57c07a; }
.wi-b { flex: 1; min-width: 0; }
.wi-t { font-size: 14px; font-weight: 600; }
.wi-s { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wi-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.wi-tag.meeting { background: rgba(90,120,190,.12); border-color: rgba(90,120,190,.3); color: #7C9EE0; }
.wi-tag [data-lucide] { width: 11px; height: 11px; }

/* žebříček v Reportech */
.lb-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .lb-cols { grid-template-columns: 1fr; } }
.lb-col-h { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.lb-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: none; border-bottom: 1px solid var(--border); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { font-size: 11px; font-weight: 700; color: var(--muted-2); width: 14px; flex-shrink: 0; }
.lb-badge { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #14100A; font-weight: 700; font-size: 10.5px; flex-shrink: 0; }
.lb-name { flex: 1; min-width: 0; font-size: 13px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-val { font-size: 12.5px; font-weight: 700; color: var(--gold); flex-shrink: 0; }

/* přepínač "Hlubší analýza" v Reportech — schované ve výchozím stavu */
.reports-adv-toggle { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--surface); border: 1px dashed var(--border); border-radius: 14px; padding: 14px; margin-top: 18px; color: var(--white); font-size: 13.5px; font-weight: 700; }
.reports-adv-toggle:hover { border-color: var(--gold-line); }
.reports-adv-toggle [data-lucide] { width: 16px; height: 16px; color: var(--gold); }
.reports-adv-sub { font-size: 11px; font-weight: 500; color: var(--muted); }
.reports-adv-body { margin-top: 4px; }
.wi-d { font-size: 11.5px; color: var(--muted-2); flex: 0 0 auto; }
@media (max-width: 820px) { .rv-nums { grid-template-columns: repeat(2, 1fr); } }

/* ============ 3D GLÓBUS ============ */
.globe-wrap { position: relative; background: radial-gradient(120% 100% at 50% 0%, #14141a 0%, var(--bg) 70%); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; }
.globe { width: 100%; max-width: 620px; height: auto; margin: 0 auto; display: block; cursor: grab; }
.globe.dragging { cursor: grabbing; }
.globe .g-land { fill: #22222b; stroke: #32323d; stroke-width: .4; }
.globe .g-grat { fill: none; stroke: rgba(var(--gold-rgb), .10); stroke-width: .5; }
.globe .gc-glow { fill: var(--gold); opacity: .5; filter: url(#gGlow); }
.globe .gc-fill { fill: var(--gold); stroke: #FFE39A; stroke-width: .7; }
.globe .g-ctry { animation: gPulse 3.4s ease-in-out infinite; }
.globe .g-ctry.good .gc-glow, .globe .g-ctry.good .gc-fill { fill: var(--green); }
.globe .g-ctry.good .gc-fill { stroke: #86e39a; }
.globe .g-ctry.warn .gc-glow, .globe .g-ctry.warn .gc-fill { fill: #e5807a; }
.globe .g-ctry.warn .gc-fill { stroke: #f0a29c; }
@keyframes gPulse { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
.globe .gp-dot { fill: #fff; }
.globe .gp-ring { fill: none; stroke: var(--gold); stroke-width: 1.4; transform-origin: center; animation: gRing 2s ease-out infinite; }
.globe .gp-flag { font-size: 15px; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 3px; }
@keyframes gRing { 0% { r: 4; opacity: .9; } 100% { r: 16; opacity: 0; } }
.globe .gp-lbl { fill: #fff; font: 700 11px Inter, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.75); stroke-width: 3px; }
.globe-hint { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--muted-2); pointer-events: none; }
.map-row[data-goto] { cursor: pointer; }
.map-row[data-goto]:hover { background: var(--surface-2); }
@media (prefers-reduced-motion: reduce) { .globe .g-ctry, .globe .gp-ring { animation: none; } }

/* ============ PARTNEŘI (bez žebříčku) ============ */
.dash-role { font: 700 26px/1.1 Inter, sans-serif; color: var(--gold); letter-spacing: .01em; }
.dash-partners { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.dp { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: var(--radius-sm); }
.dp.me { background: var(--gold-soft); }
.dp-n { font-weight: 600; color: var(--white); }
.dp-r { font-size: 11px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 8px; }
.dp-c { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ============ KARIÉRA ============ */
.side-profile .r.gold { color: var(--gold); font-size: 11px; }
.xp-mini { height: 3px; background: var(--border); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.xp-mini span { display: block; height: 100%; background: var(--gold); border-radius: 2px; transition: width var(--ease); }

.kar-hero { display: flex; align-items: center; gap: 20px; padding: 22px; margin-bottom: 16px;
  background: radial-gradient(120% 140% at 15% 0%, rgba(var(--gold-rgb), .10) 0%, var(--surface) 60%);
  border: 1px solid var(--gold-line); border-radius: var(--radius); }
.lvl-ring { width: 104px; height: 104px; flex: none; }
.lr-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.lr-fg { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 55px 55px; transition: stroke-dashoffset 600ms var(--ease); }
.lr-n { fill: var(--white); font: 800 30px Inter, sans-serif; text-anchor: middle; }
.lr-l { fill: var(--muted-2); font: 700 9px Inter, sans-serif; letter-spacing: .14em; text-anchor: middle; }
.kh-i { flex: 1; min-width: 0; }
.kh-t { font-size: 26px; color: var(--gold); line-height: 1.2; }
.kh-x { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kh-tot { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.kh-streak { text-align: center; flex: none; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.kh-streak.hot { background: rgba(var(--gold-rgb), .10); border: 1px solid var(--gold-line); }
.ks-n { font: 800 22px Inter, sans-serif; color: var(--white); }
.ks-l { font-size: 11px; color: var(--muted); }
.ks-b { font-size: 10px; color: var(--muted-2); margin-top: 2px; }
.ks-days { font-size: 12px; color: var(--muted); }

.st-bar { position: relative; height: 10px; background: var(--surface-2); border-radius: 999px; margin: 16px 0 10px; }
.st-fill { height: 100%; background: linear-gradient(90deg, #8a6d1f, var(--gold)); border-radius: 999px; transition: width 600ms var(--ease); }
.st-pip { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border); }
.st-pip.on { background: var(--gold); border-color: #FFE39A; box-shadow: 0 0 8px rgba(var(--gold-rgb), .7); }
.st-now { font-size: 13px; color: var(--muted); }
.st-prize { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--gold-line); border-radius: var(--radius-sm); font-size: 13px; color: var(--white); }
.gold { color: var(--gold); }

.mb-row { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.mb-icon { font-size: 34px; flex: none; }
.mb-icon.ready { animation: shake 1.1s ease-in-out infinite; }
.mb-i { flex: 1; min-width: 0; }
.mb-p { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.mb-bar { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.mb-bar div { height: 100%; background: var(--gold); border-radius: 999px; transition: width var(--ease); }
.mb-won { margin-top: 6px; font-size: 13px; }

.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.bdg { padding: 9px 6px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); opacity: .45; cursor: pointer; }
.bdg i { width: 17px; height: 17px; color: var(--muted); }
.bdg.on { opacity: 1; border-color: var(--gold-line); background: var(--gold-soft); }
.bdg.on i { color: var(--gold); }
.bdg-n { font-size: 10.5px; font-weight: 700; color: var(--white); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bdg-h { font-size: 8.5px; color: var(--muted-2); margin-top: 1px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.rec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.rec { padding: 10px 8px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.rec i { width: 15px; height: 15px; color: var(--gold); }
.rec-n { font: 800 16px Inter, sans-serif; color: var(--white); margin-top: 3px; }
.rec-l { font-size: 9.5px; color: var(--muted); }

.xp-list { margin-top: 10px; }
.xp-i { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.xp-i:last-child { border-bottom: 0; }

@media (max-width: 640px) {
  .kar-hero { flex-wrap: wrap; gap: 14px; }
  .kh-streak { width: 100%; }
}

/* ---- Rozvoj: co ti chybí ---- */
.near-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.near-row:last-child { border-bottom: 0; }
.near-row i { width: 20px; height: 20px; color: var(--gold); flex: none; }
.nr-i { flex: 1; min-width: 0; }
.nr-n { font-weight: 600; color: var(--white); font-size: 14px; }
.nr-l { font-size: 12px; color: var(--gold); margin-top: 1px; }
.nr-bar { height: 4px; background: var(--surface-2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.nr-bar span { display: block; height: 100%; background: var(--gold); border-radius: 2px; }
.nr-p { font: 700 15px Inter, sans-serif; color: var(--muted); flex: none; }
.bdg.near { opacity: .8; border-color: var(--gold-line); }
.bdg-bar { height: 3px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.bdg-bar span { display: block; height: 100%; background: var(--gold); }

/* ---- Mapa pro partnery: jen země ---- */
.ctry-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cchip { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--white); cursor: pointer; }
.cchip:hover { border-color: var(--gold-line); }

/* ---- Cíl firmy + odměna ---- */
.goal-card.won { border-color: var(--green); }
.gc-prize { display: flex; align-items: center; gap: 12px; margin: 12px 0; padding: 12px 14px; border: 1px dashed var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-soft); }
.gc-prize.sm { margin: 0 0 10px; padding: 9px 11px; }
.gc-prize.won { border-style: solid; border-color: var(--green); background: rgba(63,185,80,.10); }
.gcp-e { font-size: 22px; }
.gcp-l { font-size: 10px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.gcp-t { font-size: 14px; font-weight: 700; color: var(--white); }
.gc-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.gc-fill { height: 100%; background: linear-gradient(90deg, #8a6d1f, var(--gold)); border-radius: 999px; transition: width 600ms var(--ease); }
.goal-card.won .gc-fill { background: var(--green); }
.gc-nums { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---- Reporty: tempo firem ---- */
.ft-goal { margin-top: 10px; }
.ft-bar { position: relative; height: 8px; background: var(--surface-2); border-radius: 999px; }
.ft-fill { height: 100%; border-radius: 999px; background: var(--gold); transition: width var(--ease); }
.ft-fill.ok { background: var(--green); }
.ft-fill.risk { background: #E0A33E; }
.ft-fill.behind { background: #E5807A; }
.ft-should { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--muted); opacity: .7; }
.ft-pace { margin-top: 6px; font-size: 12px; color: var(--muted); }
.ft-pace.ok { color: var(--green); }
.ft-pace.risk { color: #E0A33E; }
.ft-pace.behind { color: #E5807A; }
.ft-need { color: var(--muted-2); }
.ft-prize { margin-top: 6px; font-size: 12px; color: var(--gold); }

/* ---- reflexe: další krok ---- */
.req { font-size: 10px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 7px; margin-left: 6px; font-weight: 700; }
#p-due { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---- klienti: termíny ---- */
.cl-next .cl-due { margin-left: auto; font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.cl-next.late { color: #E5807A; }
.cl-next.late .cl-due { color: #E5807A; border-color: rgba(229,128,122,.4); }
.cl-next.nostep { color: #E0A33E; }

/* ---- Domů: Dnes tě čeká ---- */
.td-top { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.td-list { display: flex; flex-direction: column; }
.td-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.td-row:last-child { border-bottom: 0; }
.td-row:hover { background: var(--surface-2); }
.td-tag { flex: none; font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 8px; text-transform: uppercase; }
.td-tag.late { color: #E5807A; border-color: rgba(229,128,122,.4); }
.td-tag.warn { color: #E0A33E; border-color: rgba(224,163,62,.4); }
.td-t { font-size: 13px; color: var(--white); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-more { font-size: 12px; color: var(--muted-2); padding-top: 8px; }
.td-clear { font-size: 13px; color: var(--green); padding: 6px 0; }

/* ---- Reporty: Vyžaduje pozornost ---- */
.att .att-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: var(--radius-sm); margin-top: 8px; border: 1px solid var(--border); background: var(--surface-2); width: 100%; font: inherit; text-align: left; cursor: pointer; transition: var(--ease); }
.att .att-row:hover { border-color: var(--gold-line); }
.att .att-row i { width: 18px; height: 18px; flex: none; }
.att .sev3 { border-color: rgba(229,128,122,.5); }
.att .sev3 i { color: #E5807A; }
.att .sev2 { border-color: rgba(224,163,62,.4); }
.att .sev2 i { color: #E0A33E; }
.att .sev1 i { color: var(--muted); }
.att-t { font-size: 13px; color: var(--white); }
.att-s { font-size: 11px; color: var(--muted-2); margin-top: 1px; }

/* ============ MAPA — záložky, offshore, bottom sheet ============ */
.map-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.map-tabs .mtab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.map-tabs .mtab i { width: 15px; height: 15px; }
.map-tabs .mtab.on { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
.map-tabs .mtab.cfg { margin-left: auto; }

.map-cfg-box { margin-bottom: 14px; }

/* offshore piny na glóbu */
.globe .g-ctry.off .gc-glow, .globe .g-ctry.off .gc-fill { fill: var(--gold); }
.globe .g-off .go-dot { fill: var(--gold); }
.globe .g-off.mine .go-dot { fill: #FFE08A; }
.globe .g-off .go-ring { fill: none; stroke: var(--gold); stroke-width: 1; transform-origin: center; animation: gRing 2.4s ease-out infinite; }
.globe .g-off.haven .go-ring { display: none; }
.globe .g-off .go-lbl { fill: #FFE08A; font: 700 9px Inter, sans-serif; paint-order: stroke; stroke: rgba(0,0,0,.8); stroke-width: 2.5px; }

/* jurisdikce grid */
.jur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.jur { padding: 13px 14px; border: 1px solid var(--gold-line); border-radius: var(--radius-sm); background: var(--gold-soft); cursor: pointer; }
.jur-n { font-weight: 700; color: var(--gold); font-size: 14px; }
.jur-t { font-size: 12px; color: var(--muted); margin-top: 2px; }

.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); font-size: 13px; color: var(--white); cursor: pointer; }
.cchip:hover { border-color: var(--gold-line); }
.cchip b { color: var(--gold); font-weight: 700; }

/* bottom sheet */
.map-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); border-top: 1px solid var(--gold-line); border-radius: 18px 18px 0 0; padding: 8px 20px 26px; transform: translateY(100%); transition: transform .22s cubic-bezier(.4,0,.2,1); box-shadow: 0 -8px 40px rgba(0,0,0,.5); }
.map-sheet.up { transform: translateY(0); }
.ms-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 6px auto 16px; cursor: pointer; }
.ms-title { font: 700 20px Inter, sans-serif; color: var(--white); }
.ms-tag { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.ms-tag.mine { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.ms-tag.haven { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.ms-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (min-width: 720px) {
  .map-sheet { left: auto; right: 24px; bottom: 24px; width: 320px; border-radius: 16px; border: 1px solid var(--gold-line); }
}

/* ============ JAK ROSTU ============ */
.gr-hero { display: flex; align-items: center; gap: 14px; }
.gr-ring { width: 56px; height: 56px; flex: none; }
.grr-bg { fill: none; stroke: var(--border); stroke-width: 5; }
.grr-fg { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 30px 30px; transition: stroke-dashoffset .6s var(--ease); }
.grr-n { fill: var(--white); font: 500 20px Inter, sans-serif; }
.gr-i { flex: 1; min-width: 0; }
.gr-t { color: var(--gold); font-size: 15px; font-weight: 600; }
.gr-x { color: var(--muted); font-size: 12px; margin-top: 2px; }
.gr-streak { flex: none; text-align: center; background: var(--surface-2); border-radius: 10px; padding: 7px 11px; font: 700 18px Inter, sans-serif; color: var(--white); }
.gr-streak span { display: block; font-size: 10px; font-weight: 400; color: var(--muted); }
.gr-grid { display: flex; margin-top: 14px; padding-top: 12px; border-top: 0.5px solid var(--border); }
.gr-cell { flex: 1; text-align: center; }
.gr-cell + .gr-cell { border-left: 0.5px solid var(--border); }
.gr-l { font-size: 11px; color: var(--muted); }
.gr-v { font: 500 16px Inter, sans-serif; color: var(--white); margin: 2px 0; }
.gr-up { font-size: 11px; color: var(--green); }
.gr-dn { font-size: 11px; color: #E5807A; }
.gr-eq { font-size: 11px; color: var(--muted-2); }

/* ============ ZLEPŠENÍ DOVEDNOSTÍ ============ */
.dv-row { margin-bottom: 11px; }
.dv-head { display: flex; justify-content: space-between; font-size: 13px; color: #c9c9cd; margin-bottom: 5px; }
.dv-pct { font-weight: 600; }
.dv-pct.good { color: var(--green); }
.dv-pct.mid { color: #E0A33E; }
.dv-pct.low { color: #E5807A; }
.dv-pct .dv-up { color: var(--green); margin-left: 5px; font-size: 11px; }
.dv-pct .dv-dn { color: #E5807A; margin-left: 5px; font-size: 11px; }
.dv-track { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.dv-fill { height: 100%; border-radius: 3px; transition: width .5s var(--ease); }
.dv-fill.good { background: var(--green); }
.dv-fill.mid { background: #E0A33E; }
.dv-fill.low { background: #E5807A; }
.dv-tip { margin-top: 14px; }
.dv-tip-l { color: var(--gold); font-size: 11px; letter-spacing: .04em; margin-bottom: 3px; }
.dv-tip-t { color: var(--white); font-size: 13px; line-height: 1.5; background: var(--surface-2); border-left: 2px solid var(--gold); padding: 10px 12px; }
.dv-empty { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; line-height: 1.5; padding: 6px 0; }
.dv-empty i { width: 22px; height: 22px; color: var(--muted-2); flex: none; }

/* ============ MOBILNÍ "VÍC" PANEL ============ */
.more-sheet { display: none; }
@media (max-width: 820px) {
  .mobile-tabbar button i[data-lucide], .mobile-tabbar button [data-lucide] { width: 20px; height: 20px; }
  .more-sheet { display: block; position: fixed; inset: 0; z-index: 80; }
  .more-sheet[hidden] { display: none; }
  .more-back { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .22s; }
  .more-sheet.up .more-back { opacity: 1; }
  .more-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--gold-line); border-radius: 20px 20px 0 0; padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .24s cubic-bezier(.4,0,.2,1); }
  .more-sheet.up .more-panel { transform: translateY(0); }
  .more-grab { width: 42px; height: 4px; border-radius: 2px; background: var(--border); margin: 4px auto 16px; }
  .more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .more-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 500; }
  .more-item i[data-lucide], .more-item [data-lucide] { width: 24px; height: 24px; }
  .more-item.active { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold); }
}

/* ============ MAPA — legenda ============ */
.globe-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 10px 14px 2px; }
.gl-i { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.gl-dot { width: 10px; height: 10px; border-radius: 50%; }
.gl-dot.gold { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.gl-dot.mine { background: #FFE08A; box-shadow: 0 0 8px #FFE08A; }
.gl-dot.haven { background: var(--gold); }
.gl-dot.good { background: var(--green); box-shadow: 0 0 8px var(--green); }
.gl-dot.warn { background: #E5807A; box-shadow: 0 0 8px #E5807A; }
.ms-use { margin-top: 12px; font-size: 14px; line-height: 1.55; color: #c9c9cd; }

/* ============ SEGMENT PŘEPÍNAČ (období) ============ */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 12px; }
.seg button { border: none; background: transparent; color: var(--muted); cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 9px; transition: var(--ease); }
.seg button.on { background: linear-gradient(180deg, #E8CD73, #C9A848); color: #1a1500; }
.lbl-sm { font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.ch-grid label small { display: block; color: var(--muted-2); font-size: 11px; font-weight: 400; margin-top: 1px; margin-bottom: 5px; }

/* ---- editor Moje jurisdikce ---- */
.jur-edit { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.jur-edit:last-child { border-bottom: 0; }
.je-flag { flex: none; font-size: 16px; }
.je-n { flex: 0 0 130px; font-weight: 600; color: var(--white); font-size: 14px; }
.je-note { flex: 1; }
.je-del { flex: none; color: var(--muted-2); }
.je-del:hover { color: #E5807A; }
.pick-firm { display: flex; align-items: center; gap: 8px; padding: 7px 2px; font-size: 14px; color: var(--white); cursor: pointer; }
.pick-firm input { width: 16px; height: 16px; accent-color: var(--gold); }

/* ============ PRÁCE — sjednocené záložky ============ */
.prace-seg { display: flex; gap: 6px; margin-bottom: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 5px; }
.prace-seg .pseg { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; background: transparent; border: none; border-radius: 10px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--ease); white-space: nowrap; }
.prace-seg .pseg i[data-lucide], .prace-seg .pseg [data-lucide] { width: 16px; height: 16px; flex: none; }
.prace-seg .pseg:hover { color: var(--white); }
.prace-seg .pseg.on { background: linear-gradient(180deg, #E8CD73, #C9A848); color: #1a1500; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.prace-seg .pseg-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(0,0,0,.18); color: inherit; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.prace-seg .pseg:not(.on) .pseg-n { background: var(--surface); color: var(--muted); }
@media (max-width: 640px) {
  .prace-seg .pseg { padding: 11px 6px; font-size: 13px; gap: 5px; }
  .prace-seg .pseg-l { font-size: 13px; }
}
.meet-val { font-size: 12px; color: var(--gold); font-weight: 700; margin-left: 6px; }

/* ============ REPORTY — CEO dashboard ============ */
.ceo-head { margin-bottom: 14px; }
.ceo-t { font: 700 20px Inter, sans-serif; color: var(--white); }
.ceo-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.ceo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.ceo-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px; }
.ceo-box.gold { border-color: var(--gold-line); background: var(--gold-soft); }
.ceo-box .cb-top { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.ceo-box .cb-top [data-lucide] { width: 13px; height: 13px; }
.cb-v { font: 700 22px Inter, sans-serif; color: var(--white); margin-top: 5px; }
.ceo-box.up .cb-v { color: var(--green); }
.ceo-box.down .cb-v { color: #E5807A; }
.ceo-box.gold .cb-v { color: var(--gold); }
.cb-s { font-size: 11px; color: var(--muted-2); margin-top: 2px; }

/* pipeline */
.pipe-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.pipe-l { flex: 0 0 110px; font-size: 13px; color: var(--muted); }
.pipe-l b { color: var(--white); }
.pipe-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.pipe-bar div { height: 100%; background: var(--gold); border-radius: 4px; }
.pipe-v { flex: 0 0 90px; text-align: right; font-size: 13px; font-weight: 700; color: var(--white); }

/* tabulka lidí */
.ppl-scroll { overflow-x: auto; margin-top: 10px; }
.ppl-tab { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.ppl-tab th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.ppl-tab td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--white); }
.ppl-tab td:first-child { display: flex; align-items: center; gap: 8px; }
.pt-n { font-weight: 600; }
.pt-c { color: var(--muted-2); font-size: 11px; }
.ppl-tab td.good { color: var(--green); }
.ppl-tab td.bad { color: #E5807A; }

/* ztráty */
.loss-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.loss-l { flex: 0 0 130px; font-size: 13px; color: var(--white); }
.loss-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.loss-bar div { height: 100%; background: #E5807A; border-radius: 4px; }
.loss-p { flex: 0 0 44px; text-align: right; font-size: 13px; font-weight: 700; color: #E5807A; }
.loss-v { flex: 0 0 80px; text-align: right; font-size: 12px; color: var(--muted-2); }

/* dny v týdnu */
.wd-wrap { display: flex; gap: 8px; align-items: flex-end; margin-top: 14px; height: 120px; }
.wd { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.wd-bar { position: relative; flex: 1; width: 100%; display: flex; align-items: flex-end; }
.wd-bar div { width: 100%; background: linear-gradient(180deg, var(--gold), #8a6d1f); border-radius: 4px 4px 0 0; }
.wd-sg { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--green); }
.wd-d { font-size: 11px; color: var(--muted); margin-top: 6px; }
.wd-n { font-size: 12px; font-weight: 700; color: var(--white); }

/* čas v appce */
.tm-bars { margin-top: 12px; }
.tm-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.tm-l { flex: 0 0 90px; font-size: 13px; color: var(--white); }
.tm-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.tm-bar div { height: 100%; background: var(--gold); border-radius: 4px; }
.tm-v { flex: 0 0 70px; text-align: right; font-size: 12px; color: var(--muted); }
.tm-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.tmp { display: flex; align-items: center; gap: 7px; padding: 7px 11px; background: var(--surface-2); border-radius: 999px; font-size: 12px; }
.tmp-n { color: var(--white); font-weight: 600; }
.tmp-t { color: var(--gold); font-weight: 700; }
.tmp-s { color: var(--muted-2); }

/* stagnující */
.stag-row { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.stag-row:last-child { border-bottom: 0; }
.stag-n { font-weight: 600; color: var(--white); font-size: 14px; }
.stag-c { color: var(--muted-2); font-size: 12px; font-weight: 400; }
.stag-x { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.stag-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(229,128,122,.12); color: #E5807A; }

/* žebříčky */
.bd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.bd { padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.bd i[data-lucide], .bd [data-lucide] { width: 17px; height: 17px; color: var(--gold); }
.bd-l { font-size: 11px; color: var(--muted); margin-top: 5px; }
.bd-w { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--white); margin-top: 6px; }
.bd-v { font: 700 17px Inter, sans-serif; color: var(--gold); margin-top: 3px; }

/* health score */
.hs-all { font-size: 13px; font-weight: 700; }
.hs-all.good, .hs-dot.good, .hs-bar .good { color: var(--green); }
.hs-all.mid { color: #E0A33E; }
.hs-all.bad { color: #E5807A; }
.hs-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.hs-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.hs-dot.good { background: var(--green); }
.hs-dot.mid { background: #E0A33E; }
.hs-dot.bad { background: #E5807A; }
.hs-n { flex: 0 0 120px; font-size: 13px; color: var(--white); font-weight: 600; }
.hs-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hs-bar div { height: 100%; border-radius: 4px; }
.hs-bar div.good { background: var(--green); }
.hs-bar div.mid { background: #E0A33E; }
.hs-bar div.bad { background: #E5807A; }
.hs-v { flex: 0 0 32px; text-align: right; font-size: 13px; font-weight: 700; color: var(--white); }

@media (max-width: 640px) {
  .ceo-grid { grid-template-columns: repeat(2, 1fr); }
  .loss-l, .tm-l, .hs-n { flex-basis: 90px; font-size: 12px; }
  .pipe-l { flex-basis: 80px; }
}

/* ============================================================
   LIMITOVANÉ EDICE (akce) — karty, odpočet, detail, diskuze
   ============================================================ */
.ed-chips { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; z-index: 3; pointer-events: none; }
.ed-badge { background: rgba(10,10,12,.72); backdrop-filter: blur(6px); border: 1px solid var(--gold-line); color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; padding: 5px 10px; border-radius: 999px; text-transform: uppercase; }
.ed-cd { background: rgba(10,10,12,.72); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 700; color: var(--white); margin-left: auto; }
.ed-cd.urgent { border-color: rgba(217,88,79,.6); color: #f0a49d; }
.team-goal-banner.is-edition { cursor: pointer; transition: border-color .15s, transform .08s; }
.team-goal-banner.is-edition:active { transform: scale(.994); }
.ed-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ed-done { color: var(--gold); font-weight: 600; font-size: 12px; }
.ed-open { color: var(--gold); font-weight: 700; font-size: 12px; margin-left: auto; }

/* ---- detail overlay ---- */
#ed-overlay { position: fixed; inset: 0; z-index: 4000; background: rgba(6,6,8,.55); backdrop-filter: blur(4px); display: flex; justify-content: center; }
.ed-sheet { width: 100%; max-width: 520px; background: var(--bg); display: flex; flex-direction: column; height: 100%; animation: edUp .28s cubic-bezier(.2,.9,.3,1); }
@keyframes edUp { from { transform: translateY(30px); opacity: .6 } to { transform: none; opacity: 1 } }
.ed-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.ed-back { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--white); font-size: 20px; display: grid; place-items: center; }
.ed-head-t { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ed-body { flex: 1; overflow-y: auto; padding: 16px 16px 24px; }
.ed-title { font-size: 26px; line-height: 1.15; margin: 16px 0 6px; }
.ed-assign { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ed-desc { color: #cfcbc0; font-size: 14px; line-height: 1.6; margin: 6px 0 4px; }
.ed-sec-t { font-size: 11px; letter-spacing: 2px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin: 22px 0 10px; }
.ed-sub { font-size: 12.5px; color: var(--muted); margin: -6px 0 10px; }

/* countdown box */
.ed-cd-box { background: linear-gradient(160deg,#1b1b20,#141418); border: 1px solid var(--gold-line); border-radius: 16px; padding: 15px; }
.ed-cd-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ed-cd-lbl { font-size: 10px; letter-spacing: 2px; color: var(--gold); font-weight: 700; text-transform: uppercase; }
.ed-cd-state { font-size: 11px; color: var(--muted); }
.ed-cd-units { display: flex; gap: 8px; }
.ed-u { flex: 1; background: #101013; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; padding: 9px 4px; text-align: center; }
.ed-u .n { font-size: 24px; font-weight: 800; line-height: 1; color: #fff; }
.ed-u .l { font-size: 9px; letter-spacing: 1.5px; color: #9a9aa2; margin-top: 5px; }
.ed-u.crit .n { color: #f0a49d; }
.ed-timebar { height: 5px; border-radius: 99px; background: #232329; margin-top: 13px; overflow: hidden; }
.ed-timebar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #e0894a); transition: width 1s linear; }

/* target stat */
.ed-stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.ed-stat-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.ed-stat-n { font-size: 21px; font-weight: 800; }
.ed-stat-n .of { color: var(--muted); font-size: 13px; font-weight: 500; }
.ed-stat-pct { color: var(--gold); font-weight: 800; font-size: 15px; }
.ed-stat-foot { font-size: 12.5px; color: var(--muted); margin-top: 9px; }
.ed-stat-foot b { color: var(--white); }

/* reward */
.ed-reward { display: flex; align-items: center; gap: 12px; background: linear-gradient(160deg, var(--gold-soft), var(--surface)); border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px; }
.ed-r-ico { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(150deg, var(--gold), #b8922f); display: grid; place-items: center; font-size: 20px; flex: none; }
.ed-r-t { font-weight: 700; font-size: 15px; }
.ed-r-s { font-size: 12px; color: var(--muted); }

/* gallery */
.ed-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ed-g { aspect-ratio: 1; border-radius: 11px; border: 1px solid var(--border); background: var(--surface-2) center/cover no-repeat; position: relative; cursor: pointer; }
.ed-g .ed-play { position: absolute; inset: 0; margin: auto; width: 38px; height: 38px; border-radius: 50%; background: rgba(var(--gold-rgb), .92); color: #14100A; display: grid; place-items: center; font-size: 15px; padding-left: 3px; }
.ed-g .ed-g-tag { position: absolute; bottom: 6px; left: 6px; font-size: 9px; letter-spacing: 1px; color: #e8e4d8; background: rgba(8,8,10,.6); padding: 2px 6px; border-radius: 5px; text-transform: uppercase; }
.ed-g.add { display: grid; place-items: center; color: var(--muted); font-size: 24px; border-style: dashed; background: var(--surface); }
.ed-g.add:active { border-color: var(--gold); color: var(--gold); }

.ed-actions { display: flex; flex-direction: column; gap: 9px; }
.ed-actions .btn { width: 100%; }
.ed-doneb { opacity: .7; }

/* thread */
.ed-thread { display: flex; flex-direction: column; gap: 11px; }
.ed-msg { display: flex; gap: 9px; }
.ed-msg.mine { flex-direction: row-reverse; }
.ed-msg-a { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--gold); }
.ed-msg.mine .ed-msg-a { background: linear-gradient(150deg, var(--gold), #b8922f); color: #14100A; border: none; }
.ed-msg-b { background: var(--surface); border: 1px solid var(--border); border-radius: 4px 13px 13px 13px; padding: 8px 12px; max-width: 82%; }
.ed-msg.mine .ed-msg-b { border-radius: 13px 4px 13px 13px; background: linear-gradient(160deg, var(--gold-soft), var(--surface)); border-color: var(--gold-line); }
.ed-msg-n { font-size: 11px; font-weight: 600; color: var(--gold); margin-bottom: 2px; }
.ed-msg-x { font-size: 13.5px; line-height: 1.45; }
.ed-msg-tm { font-size: 10px; color: var(--muted-2); margin-top: 3px; }
.ed-sys { text-align: center; font-size: 12px; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 12px; align-self: center; max-width: 90%; }
.ed-empty-thread { text-align: center; color: var(--muted); font-size: 13px; padding: 22px; }

.ed-reply { display: flex; gap: 9px; align-items: center; padding: 11px 14px; padding-bottom: max(11px, env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--bg); flex: none; }
.ed-reply input { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 11px 15px; color: var(--white); font-size: 14px; outline: none; }
.ed-reply input:focus { border-color: var(--gold-line); }
.ed-send { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: #14100A; display: grid; place-items: center; font-size: 16px; flex: none; }

/* generic bottom sheet */
.sf-sheet-bg { position: fixed; inset: 0; z-index: 4100; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
.sf-sheet { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow-y: auto; animation: edUp .26s cubic-bezier(.2,.9,.3,1); }
.sf-sheet-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sf-sheet-h h3 { margin: 0; font-size: 21px; }
.sf-sheet-x { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); color: var(--muted); font-size: 14px; }

/* ---- edition fields in tg form ---- */
.tg-ed-divider { margin: 16px 0 4px; font-size: 11px; letter-spacing: 1px; color: var(--gold); text-transform: uppercase; font-weight: 700; border-top: 1px solid var(--gold-line); padding-top: 12px; }
.tg-adv { margin-top: 10px; }
.tg-adv summary { cursor: pointer; font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.tg-adv[open] summary { color: var(--gold); }

/* ============================================================
   MŮJ DENÍK — trofeje + schůzky (bez levelů)
   ============================================================ */
.denik-hero { display: flex; gap: 10px; margin-bottom: 16px; }
.dh-cell { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 8px; text-align: center; }
.dh-n { font-size: 22px; font-weight: 800; }
.dh-n.gold { color: var(--gold); }
.dh-l { font-size: 11px; color: var(--muted); margin-top: 4px; }
.tro-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 12px; margin-bottom: 9px; position: relative; overflow: hidden; }
.tro-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold), #b8922f); }
.tro-ico { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(150deg, rgba(var(--gold-rgb), .9), #a37f26); display: grid; place-items: center; font-size: 20px; flex: none; color: #14100A; }
.tro-t { font-weight: 700; font-size: 14.5px; }
.tro-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tro-perm { margin-left: auto; font-size: 9px; letter-spacing: 1px; color: var(--green); border: 1px solid rgba(63,185,80,.4); border-radius: 6px; padding: 3px 6px; text-transform: uppercase; flex: none; }
.denik-meet { display: flex; gap: 10px; margin-top: 12px; }
.dm-cell { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 6px; text-align: center; }
.dm-cell b { display: block; font-size: 19px; font-weight: 800; }
.dm-cell span { font-size: 11px; color: var(--muted); }

/* Časový limit edice — víc voleb (týden…rok): zalomit řádek a zmenšit tlačítka */
#tg-dur { flex-wrap: wrap; }
#tg-dur button { padding: 8px 13px; font-size: 13px; }

/* Chat list — zlaté odznaky nepřečtených, filtrovací taby, ADD na Dashboardu */
.conv-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #14100A; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.conv-item.unread .conv-t { color: var(--gold); }
.chat-tabs { display: flex; gap: 7px; padding: 2px 2px 12px; flex-wrap: wrap; }
.ctab { font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: transparent; cursor: pointer; transition: var(--ease); }
.ctab.on { background: rgba(var(--gold-rgb), .14); border-color: rgba(var(--gold-rgb), .5); color: var(--gold); }
.oh-head { position: relative; padding-right: 50px; }
.oh-add { position: absolute; top: -2px; right: 0; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.oh-add [data-lucide] { width: 20px; height: 20px; }

/* Chat list: připínání držením — potlačit výběr/callout na iOS */
.conv-item { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

html { background: var(--surface); } /* co prosvita na okrajich, ma barvu listy, ne cernou */

/* Cíl typu Schůzky — seznam zapsaných schůzek + stavy */
.ed-mlist { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.ed-m { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.ed-m-main { flex: 1; min-width: 0; }
.ed-m-t { font-size: 14px; font-weight: 600; }
.ed-m-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ed-mst { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); flex: none; white-space: nowrap; }
.ed-mst.wait { background: rgba(224,137,74,.15); color: #e0894a; }
.ed-mst.done { background: rgba(95,191,138,.15); color: var(--green); }
.ed-mfill { flex: none; margin-left: 6px; background: rgba(var(--gold-rgb), .14); border: 1px solid var(--gold-line); color: var(--gold); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }

.logo-badge { overflow: hidden; }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ===== BAREVNÁ TÉMATA (přepis proměnných) — Onyx je default (:root) ===== */
:root[data-theme="pearl"] {
  --bg: #F4F1EA; --surface: #FFFFFF; --surface-2: #F0ECE2; --border: #E5DFD1;
  --gold: #B4882E; --gold-soft: rgba(180,136,46,0.12); --gold-line: rgba(180,136,46,0.32);
  --white: #1A1712; --muted: #8A8272; --muted-2: #B0A896; --green: #2E7D46;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --globe-sea-1: #2f5c86; --globe-sea-2: #1a3a5c; --globe-sea-3: #0d1f33;
}
:root[data-theme="midnight"] {
  --bg: #0C1526; --surface: #14203A; --surface-2: #1B2A48; --border: #24365A;
  --white: #EAEFF9; --muted: #8FA0BE; --muted-2: #5E6E8C;
}
:root[data-theme="emerald"] {
  --bg: #0C1A14; --surface: #123024; --surface-2: #163B2C; --border: #1E4A38;
  --white: #EAF3EE; --muted: #8FB3A0; --muted-2: #5E8570;
}
:root[data-theme="bordeaux"] {
  --bg: #160B10; --surface: #26121B; --surface-2: #301822; --border: #43222F;
  --white: #F6E9EC; --muted: #B5949E; --muted-2: #7E5F69;
}

/* přepínač témat v Nastavení */
.theme-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-tile { border: 1px solid var(--border); border-radius: 14px; padding: 12px; cursor: pointer; text-align: left; position: relative; background: var(--surface); transition: var(--ease); }
.theme-tile.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-line); }
.theme-tile .tt-sw { display: flex; gap: 6px; margin-bottom: 8px; }
.theme-tile .tt-dot { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(128,128,128,.25); }
.theme-tile .tt-name { font-size: 13px; font-weight: 600; color: var(--white); }
.theme-tile .tt-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.theme-tile .tt-check { position: absolute; top: 10px; right: 10px; color: var(--gold); opacity: 0; }
.theme-tile .tt-check [data-lucide] { width: 16px; height: 16px; }
.theme-tile.on .tt-check { opacity: 1; }

/* Odkazy v přihlašovací obrazovce (zapomenuté heslo, zpět na krok 1…) */
.note a { color: var(--gold); text-decoration: none; font-weight: 600; }
.note a:hover { text-decoration: underline; }

/* Detail bez postranního seznamu (projekt, skupina, firemní chat, DM) — na webu
   se má roztáhnout přes celou šířku, ne zůstat vměstnaný do 300px sloupce pro seznam. */
.chat-layout.no-list { grid-template-columns: 1fr; }

/* Project Tasks — sdílený checklist */
.task-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--surface); }
.task-row.done { opacity: .55; }
.task-row.done .task-txt { text-decoration: line-through; }
.task-check [data-lucide] { width: 20px; height: 20px; }
.task-mid { flex: 1; min-width: 0; }
.task-txt { font-size: 14px; font-weight: 600; color: var(--white); }
.task-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.task-row .task-del { flex: none; background: none; border: none; color: var(--muted); cursor: pointer; }
.task-del [data-lucide] { width: 16px; height: 16px; }
.task-del:hover { color: #e0894a; }

/* Project gallery — mřížka fotek (jen majitel edituje, ostatní jen prohlíží) */
.proj-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 4px; }
@media (min-width: 700px) { .proj-gallery { grid-template-columns: repeat(5, 1fr); } }
.proj-g { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); background-size: cover; background-position: center; border: 1px solid var(--border); cursor: pointer; }
.proj-g.add { display: flex; align-items: center; justify-content: center; color: var(--muted); border-style: dashed; cursor: pointer; }
.proj-g.add:hover { border-color: var(--gold-line); color: var(--gold); }
.proj-g-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.proj-g-del [data-lucide] { width: 13px; height: 13px; }

/* Popis projektu — vlastní hezčí karta místo obyčejné poznámky */
.proj-desc-card { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.proj-desc-card [data-lucide] { color: var(--gold); width: 17px; height: 17px; flex: none; margin-top: 1px; }
.proj-desc-txt { font-size: 13.5px; line-height: 1.55; color: var(--white); }

/* Tasks: krokový checklist s číslováním a přílohami (instrukce od zadavatele, důkaz od toho, kdo splnil) */
.task-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.task-add .inp:first-child { flex: 1 1 100%; }
@media (min-width: 640px) { .task-add .inp:first-child { flex: 1 1 auto; } }
.task-add select.inp { flex: 1 1 140px; }
.task-add-hint { font-size: 12px; color: var(--gold); margin: -2px 0 12px; min-height: 1px; }
.task-num { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: 11px; font-weight: 700; }
.task-atts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.task-att [data-lucide] { width: 12px; height: 12px; }
.task-proof-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--gold); background: none; border: 1px dashed var(--gold-line); border-radius: 8px; padding: 6px 10px; margin-top: 6px; cursor: pointer; }
.task-proof-btn [data-lucide] { width: 13px; height: 13px; }
.done-meta { color: var(--green) !important; }

/* Reports: splněné úkoly z projektů u firmy, s odkazem na přiložený dokument */
.ft-tasks { border-top: 1px dashed var(--border); margin-top: 10px; padding-top: 4px; }
.ft-task-row { padding: 6px 0; border-bottom: 1px solid var(--border); }
.ft-task-row:last-child { border-bottom: none; }
.ft-task-txt { font-size: 12.5px; color: var(--white); }
.ft-task-meta { font-size: 11px; color: var(--muted); margin-top: 2px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ft-task-doc { display: inline-flex; align-items: center; gap: 4px; color: var(--green); background: rgba(63,185,80,.1); border: 1px solid rgba(63,185,80,.3); border-radius: 999px; padding: 3px 8px; font-size: 10.5px; font-weight: 600; cursor: pointer; }
.ft-task-doc [data-lucide] { width: 11px; height: 11px; }

/* Galerie edice/cíle — tlačítko smazat na dlaždici (jen majitel) */
.ed-g-del { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.65); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.ed-g-del [data-lucide] { width: 11px; height: 11px; }

/* Dashboard: rozdělení cílů na Firemní / Osobní růst + zvýraznění důležitých */
.tg-section-lbl { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 18px 0 8px; }
.tg-section-lbl:first-child { margin-top: 0; }
.team-goal-banner.is-important { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-line); }
.tg-star { position: absolute; top: 10px; left: 10px; font-size: 15px; z-index: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.tg-important { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--white); margin-top: 10px; cursor: pointer; }

/* Tasks v2: kruhové checkboxy (podle referenčního designu), poznámky, víc dokumentů na úkol */
.task-check { flex: none; background: none; border: none; cursor: pointer; padding: 2px; display: flex; }
.task-circle { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: var(--ease); }
.task-circle.on { background: var(--gold); border-color: var(--gold); color: #14100A; }
.task-circle.on [data-lucide] { width: 14px; height: 14px; stroke-width: 3; }
.task-notes { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; white-space: pre-line; }
.task-att { display: inline-flex; align-items: center; }
.task-att-open { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 5px 6px 5px 9px; border-radius: 999px 0 0 999px; border: 1px solid var(--border); border-right: none; background: var(--surface-2); color: var(--muted); cursor: pointer; }
.task-att.instr .task-att-open { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.task-att.proof .task-att-open { color: var(--green); border-color: rgba(63,185,80,.35); background: rgba(63,185,80,.1); border-radius: 999px; border-right: 1px solid rgba(63,185,80,.35); }
.task-att-open [data-lucide] { width: 12px; height: 12px; }
.task-att-x { display: flex; align-items: center; padding: 5px 8px 5px 4px; border-radius: 0 999px 999px 0; border: 1px solid var(--gold-line); border-left: none; background: var(--gold-soft); color: var(--gold); cursor: pointer; }
.task-att-x [data-lucide] { width: 11px; height: 11px; }
.task-addmore { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); background: none; border: 1px dashed var(--border); border-radius: 8px; padding: 5px 9px; margin-top: 6px; cursor: pointer; }
.task-addmore:hover { color: var(--gold); border-color: var(--gold-line); }
.task-addmore [data-lucide] { width: 12px; height: 12px; }

/* Jednoduchý vizuální přepínač (Aktivita a online stav v Nastavení) */
.switch { flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); position: relative; transition: var(--ease); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: var(--ease); }
.switch.on { background: var(--gold-soft); border-color: var(--gold-line); }
.switch.on::after { left: 20px; background: var(--gold); }
.presence-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; }
.presence-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }

/* Historie výsledků — časová osa Leden 92%, Únor 105%... */
.rh-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.rh-row:last-child { border-bottom: none; }
.rh-period { font-size: 13.5px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 8px; }
.rh-closed { font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: 6px; padding: 2px 6px; font-weight: 700; }
.rh-val { font-size: 13.5px; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.rh-pct { font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 3px 9px; }
.rh-pct.done { color: var(--green); background: rgba(63,185,80,.12); }

/* Plány od Superfly — publikování (majitel) i zobrazení (partner na dashboardu) */
.pp-form select.inp { margin-top: 0; }
.pp-row, .pp-item { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pp-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.pp-item:last-child, .pp-row:last-child { border-bottom: none; }
.pp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pp-type { font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-soft); border-radius: 6px; padding: 2px 7px; font-weight: 700; }
.pp-title { font-size: 13.5px; font-weight: 700; color: var(--white); }
.pp-content { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.pp-feed { display: flex; flex-direction: column; }

/* Hlasové zprávy — nahrávací lišta v composeru + přehrávací bublina v chatu */
.voice-rec-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--bg); }
.voice-rec-bar .vr-dot { width: 10px; height: 10px; border-radius: 50%; background: #e05252; flex: none; animation: vrpulse 1.1s infinite; }
@keyframes vrpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.voice-rec-bar .vr-time { font-weight: 700; font-size: 14px; color: var(--white); font-variant-numeric: tabular-nums; }
.voice-rec-bar .vr-hint { flex: 1; font-size: 12.5px; color: var(--muted); }
.voice-bubble { display: flex; align-items: center; gap: 8px; padding: 10px 12px !important; }
.voice-bubble > [data-lucide] { color: var(--gold); width: 18px; height: 18px; flex: none; }
.voice-bubble audio { height: 32px; max-width: 220px; }

/* Reports: Top projekty */
.rt-project-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border-bottom: 1px solid var(--border); background: none; border-left: none; border-right: none; border-top: none; text-align: left; cursor: pointer; }
.rt-project-row:last-child { border-bottom: none; }
.rt-project-mid { flex: 1; min-width: 0; }
.rt-project-n { font-size: 13.5px; font-weight: 700; color: var(--white); }

/* Achievementy — zobraz jen prvních 6, zbytek na rozkliknutí */
.ach-extra { display: none; }
.ach-grid.expanded .ach-extra { display: block; }

/* Banner "nová verze je připravena" */
.update-banner { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h, 0px) + 12px); z-index: 400; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--gold-line); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 30px rgba(0,0,0,.45); font-size: 13px; color: var(--white); }
.update-banner span { flex: 1; }
.update-banner button { background: var(--gold); color: #14100A; border: none; border-radius: 9px; padding: 8px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; flex: none; }
.update-banner .ub-x { background: none; color: var(--muted); padding: 6px 4px; font-weight: 400; }
@media (min-width: 620px) { .update-banner { left: auto; right: 20px; bottom: 20px; max-width: 380px; } }

/* Superfly moment — 2× měsíčně, příjemné překvapení */
.life-card { display: flex; align-items: flex-start; gap: 14px; background: linear-gradient(140deg, var(--gold-soft), transparent 75%); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; position: relative; }
.life-card.preview { opacity: .72; border-style: dashed; }
.life-emoji { font-size: 30px; line-height: 1; flex: none; }
.life-body { flex: 1; min-width: 0; }
.life-title { font-size: 10.5px; letter-spacing: 1.6px; font-weight: 800; color: var(--gold); margin-bottom: 7px; }
.life-text { font-size: 15px; line-height: 1.6; color: var(--white); }
.life-sign { font-size: 12px; color: var(--muted); margin-top: 10px; font-style: italic; }
.life-edit { position: absolute; top: 12px; right: 12px; background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.life-edit [data-lucide] { width: 15px; height: 15px; }
.life-edit:hover { color: var(--gold); }

/* Potažení zprávy doprava = odpověď (jako ve WhatsAppu) */
.msg[data-msgid] { touch-action: pan-y; position: relative; }
.msg.swiping { transition: none; }
.msg[data-msgid]::before {
  content: "↩";
  position: absolute; left: -34px; top: 50%; transform: translateY(-50%) scale(.7);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  opacity: 0; transition: opacity .12s ease, transform .12s ease; pointer-events: none;
}
.msg.swiping::before { opacity: 1; transform: translateY(-50%) scale(1); }

/* Štítek „kdo úkol zadal“ — ať je jasné, odkud úkol přišel */
.tag.from { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }

/* Úkoly na dashboardu — kompaktní karta s info kdo zadal + rozbalení */
.dash-task .dt-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; text-align: left; }
.dash-task .dt-txt { font-size: 13.5px; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-task .dt-meta { font-size: 10.5px; color: var(--muted); }
.dash-task .dt-from { color: var(--gold); }
.dt-extra { display: none; }
#dash-tasks.show-all .dt-extra { display: block; }

/* iOS: vypnout "poklepání = přiblížit". Bez toho stránka při dvojkliku cukne nahoru.
   'manipulation' nechá běžet scrollování i gesta, jen zruší reakci na dvojité klepnutí. */
html, body { touch-action: manipulation; }
button, a, .set-row, .conv-item, .dash-task, .task-row, .pill, .pk, .proj-tab, .pseg, .seg button, .ach, .bdg, .rec {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Můj růst na stránce Schůzky — AI hodnocení dovedností z reflexí (žádné body) */
.growth-card { background: linear-gradient(150deg, var(--gold-soft), transparent 70%); border: 1px solid var(--gold-line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.growth-card.locked { background: var(--surface); border-color: var(--border); border-style: dashed; }
.gw-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.gw-head [data-lucide] { width: 16px; height: 16px; }
.growth-card.locked .gw-head { color: var(--muted); }
.gw-n { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--muted); }
.gw-row { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.gw-l { flex: 0 0 118px; font-size: 12px; color: var(--muted); }
.gw-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.gw-f { display: block; height: 100%; border-radius: 4px; transition: width .5s ease; }
.gw-f.good { background: var(--green); }
.gw-f.mid { background: var(--gold); }
.gw-f.low { background: #e0894a; }
.gw-v { flex: 0 0 26px; text-align: right; font-size: 12px; font-weight: 700; color: var(--white); }
.gw-note { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.gw-note.good { color: var(--green); }

/* Next move — compact, touch-friendly Czech dashboard */
.next-move{padding:22px;margin:0 0 20px;border:1px solid #b99a4b66;border-radius:20px;background:linear-gradient(135deg,#26231b,#161616);color:#faf7ef}
.next-move h2{font-size:24px;margin:8px 0}.next-move h3{font-size:18px;margin:16px 0 6px}.next-move p,.nm-method{color:#c5c0b5;font-size:13px;line-height:1.5}.next-move ol{list-style:none;padding:0;margin:12px 0}.nm-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:14px 0;border:0;border-bottom:1px solid #ffffff18;background:none;color:inherit;cursor:pointer;min-height:64px}.nm-rank{color:#e5c66a;font-size:18px}.nm-item>span:nth-child(2){flex:1;min-width:0}.nm-item strong{display:block;font-size:15px;overflow-wrap:anywhere}.nm-item small{display:block;color:#c5c0b5;margin-top:5px;line-height:1.5}.nm-primary,.nm-results{width:100%;margin-top:8px;min-height:48px;white-space:normal}.nm-method{display:block;margin-top:14px;font-size:11px}.next-move .eyebrow{color:#e5c66a}#w-add{min-height:48px;width:100%}@media(max-width:480px){.next-move{padding:17px;border-radius:16px}.next-move h2{font-size:22px}}

/* v62 — focused dashboard and flat navigation */
.nav-group-label{display:none}.nav-item{margin:3px 0!important;min-height:48px}.next-move{background:var(--surface,#123227);border-color:#bba15d55;margin-bottom:18px}.next-move h2{font-size:26px;letter-spacing:-.5px}.next-move h3{font-size:17px}.next-move~.home .hh-greet{display:none}.next-move~.home .home-head{justify-content:flex-end}.next-move~.home .home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.next-move~.home .home-grid>.wide{grid-column:1/-1}.next-move~.home .section{margin-top:14px}.result-detail{border-bottom:1px solid #8caa9433;padding:14px 0}.result-detail summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;min-height:44px;align-items:center}.result-detail summary strong{overflow-wrap:anywhere}.result-detail summary:after{content:'＋';color:#d9ba62}.result-detail[open] summary:after{content:'−'}.result-detail p{font-size:13px;opacity:.8}#content:has(.next-move),#content:has(#w-add){max-width:1100px;width:100%;margin-inline:auto}.oh-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px}.nm-item:focus-visible,.nav-item:focus-visible,summary:focus-visible{outline:2px solid #e7c666;outline-offset:3px}#w-add:disabled{opacity:.65;cursor:wait}@media(max-width:600px){.next-move~.home .home-grid{grid-template-columns:1fr}.next-move{padding:18px}.next-move h2{font-size:23px}.next-move~.home .section{padding:16px}.result-detail summary{font-size:14px}.oh-stats .stat-tile{padding:14px}}

/* v63: compact goals, one greeting, services */
.member-banners{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.member-banners>.motto-banner,.member-banners>.tg-section-lbl{grid-column:1/-1}.member-banners>.challenge-banner{margin:0!important;padding:14px!important;border-radius:14px}.member-banners .tg-media{height:100px!important;min-height:0!important;aspect-ratio:auto!important;margin-bottom:10px}.member-banners .cb-h{font-size:16px!important;line-height:1.3}.member-banners .cb-sub{font-size:13px!important;line-height:1.4}.member-banners .rt-bottom{font-size:12px;gap:8px;flex-wrap:wrap}.member-banners .ed-badge,.member-banners .ed-cd{font-size:10px;padding:5px 8px}.member-banners .ed-foot{font-size:12px}.motto-day-label{display:block;font-size:11px;font-style:normal;text-transform:uppercase;letter-spacing:1px;margin-bottom:5px;opacity:.75}.motto-banner{padding:14px 18px!important}.service-rank{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid #93aa9433}.service-rank>strong{flex:1;min-width:140px}.service-rank>span{font-size:13px;opacity:.75}.service-rank>b{margin-left:auto}#service-form{display:grid;gap:12px}#service-form label{display:grid;gap:6px;font-size:13px}#service-form .row>label{flex:1;min-width:0}.home-head .hh-greet:empty,.oh-head .hh-greet:empty{display:none}.next-move{padding:18px}.nm-method{font-size:11px}.nm-item{padding:10px 0;min-height:56px}.nm-primary,.nm-results{min-height:42px}@media(max-width:600px){.member-banners{grid-template-columns:1fr}.member-banners .tg-media{height:80px!important}.member-banners .cb-emoji{font-size:22px}.member-banners .ed-chips{position:static!important;margin-bottom:8px}.service-rank{gap:8px}.service-rank>b{font-size:14px}}
:root{--note-bg:rgba(221,183,80,.08)}
.result-note{margin:10px 0;padding:10px 12px;border-left:3px solid var(--gold);background:var(--note-bg);font-size:13px;line-height:1.45}
.w-move{border:0;background:transparent;color:var(--muted);font-size:18px;cursor:pointer;padding:2px 5px}
.map-mode-label{position:absolute;right:14px;top:12px;z-index:4;padding:7px 10px;border-radius:999px;background:rgba(8,18,22,.62);border:1px solid rgba(var(--gold-rgb), .35);font-size:11px;color:var(--gold);backdrop-filter:blur(8px)}.globe-wrap.map-day{background:radial-gradient(circle at 50% 35%,#1c3b4f,#10261f 68%,#08150f)}.globe-wrap.map-night{background:radial-gradient(circle at 30% 25%,#263552,#0a1221 62%,#050812)}.globe-wrap.map-night:after{content:'✦  ·  ⋆   ·  ✦     ⋆  ·   ✦';position:absolute;inset:10% 8%;color:rgba(255,255,255,.32);font-size:18px;letter-spacing:18px;pointer-events:none}.globe-wrap{position:relative;overflow:hidden}.home-grid .widget{min-height:0}.home-grid{align-items:start}.home-hidden{display:flex;flex-wrap:wrap;gap:8px}.hidden-chip{border-radius:999px!important;padding:9px 13px!important}.wtools .w-move{display:inline-flex}.home-grid.editing .widget{animation:none}.map-only-form{display:grid;gap:8px;margin-top:10px}.map-only-form .btn{justify-self:start}.map-only-list{display:grid;gap:7px;margin-top:12px}.map-only-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid rgba(212,175,55,.22);border-radius:10px;background:rgba(8,29,24,.42)}.map-only-row span{display:block;color:var(--muted);font-size:12px;margin-top:3px}.map-only-badge{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:5px;background:rgba(212,175,55,.18);color:var(--gold);font-size:9px;letter-spacing:.08em;vertical-align:middle}
.add-friend-top{width:calc(100% - 22px);margin:12px 11px 8px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid rgba(var(--gold-rgb), .48);border-radius:12px;background:linear-gradient(135deg,rgba(var(--gold-rgb), .22),rgba(var(--gold-rgb), .08));color:var(--gold);font-weight:700;cursor:pointer}.add-friend-top:hover{background:rgba(var(--gold-rgb), .3)}.add-friend-top svg{width:18px;height:18px}.home-date-row{display:flex;align-items:baseline;gap:9px;margin:0 0 10px;padding:0 3px;color:var(--muted);font-size:13px}.home-date-row strong{color:var(--white);font-size:16px;font-weight:700}.home-date-label{text-transform:uppercase;letter-spacing:.1em;font-size:10px;color:var(--gold)}
.g-exp .ge-ring{fill:none;stroke-width:2.5;stroke-opacity:.95}.g-exp .ge-dot{stroke:#fff;stroke-width:1}.g-exp .ge-lbl{font-size:13px}.g-exp.red .ge-ring{stroke:#e6bf55}.g-exp.red .ge-dot{fill:#d8ad38}.g-exp.purple .ge-ring{stroke:#79c99b}.g-exp.purple .ge-dot{fill:#58ad7d}.globe-wrap.map-day{background:linear-gradient(145deg,#193f53 0%,#0f2e2a 52%,#102019 100%)!important}.globe-wrap.map-night{background:linear-gradient(145deg,#172b55 0%,#111a35 52%,#070c1a 100%)!important}.globe-wrap.map-day #g-sea{filter:brightness(1.18) saturate(1.15)}.globe-wrap.map-night #g-sea{filter:brightness(.72) saturate(1.35)}
@media(max-width:700px){.sidebar .add-friend-top{display:none}}@media(min-width:701px){.mobile-topbar [data-add-friend]{display:none}}
/* Reporty: měny zůstávají oddělené a čitelné bez přepínání filtru. */
.currency-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.currency-summary>div{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid rgba(238,190,63,.22);border-radius:12px;background:rgba(8,35,27,.35)}
.currency-summary b{font-size:12px;color:var(--muted,#9ab8a9);text-transform:uppercase;letter-spacing:.08em}
.currency-summary span{font-weight:700;color:var(--cream,#f5f2e9);line-height:1.35}
@media(max-width:700px){.currency-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.currency-summary>div{padding:10px;font-size:13px}}

/* Pearl: světlý motiv musí zůstat čitelný i na panelech s bílým pozadím.
   Kritické barvy jsou zde záměrně explicitní, aby je nepřebily starší inline styly. */
:root[data-theme="pearl"] body,
:root[data-theme="pearl"] #app { background: var(--bg); color: var(--white); }
:root[data-theme="pearl"] .main,
:root[data-theme="pearl"] .content { background: var(--bg); }
:root[data-theme="pearl"] .topbar,
:root[data-theme="pearl"] .sidebar,
:root[data-theme="pearl"] .section,
:root[data-theme="pearl"] .card,
:root[data-theme="pearl"] .home-grid .widget,
:root[data-theme="pearl"] .ai-card,
:root[data-theme="pearl"] .trainer-card,
:root[data-theme="pearl"] .growth-card,
:root[data-theme="pearl"] .next-move { color: var(--white); }
:root[data-theme="pearl"] .next-move { background: linear-gradient(145deg,#fffdf8,#f4efe3); border-color: #c7a34e; }
:root[data-theme="pearl"] .next-move p,
:root[data-theme="pearl"] .next-move .nm-method,
:root[data-theme="pearl"] .next-move .nm-item small { color: #655e52; }
:root[data-theme="pearl"] .next-move .nm-item { border-bottom-color: #d9d1c2; }
:root[data-theme="pearl"] .ai-card,
:root[data-theme="pearl"] .trainer-card,
:root[data-theme="pearl"] .growth-card { background: linear-gradient(145deg,#fffdf8,#f4efe3); }
:root[data-theme="pearl"] .topbar .page-title,
:root[data-theme="pearl"] .section-head h3,
:root[data-theme="pearl"] .hh-greet,
:root[data-theme="pearl"] .dg-lbl,
:root[data-theme="pearl"] .dash-big,
:root[data-theme="pearl"] .ai-head,
:root[data-theme="pearl"] .tc-head,
:root[data-theme="pearl"] .nm-item strong,
:root[data-theme="pearl"] .home-grid .widget { color: #1a1712; }
:root[data-theme="pearl"] .muted,
:root[data-theme="pearl"] .dash-mini,
:root[data-theme="pearl"] .dash-sub,
:root[data-theme="pearl"] .ai-text,
:root[data-theme="pearl"] .tc-sum,
:root[data-theme="pearl"] .home-grid .wt,
:root[data-theme="pearl"] .home-grid .dash-mini { color: #655e52; }
:root[data-theme="pearl"] .inp,
:root[data-theme="pearl"] .topbar .search input,
:root[data-theme="pearl"] .dash-qb,
:root[data-theme="pearl"] .pk,
:root[data-theme="pearl"] .chat-search { color: #1a1712; background: #fffdf8; }
:root[data-theme="pearl"] .inp::placeholder,
:root[data-theme="pearl"] .topbar .search input::placeholder,
:root[data-theme="pearl"] .chat-search input::placeholder { color: #8a8272; opacity: 1; }
:root[data-theme="pearl"] .nav-item { color: #756d60; }
:root[data-theme="pearl"] .nav-item:hover { color: #1a1712; }
:root[data-theme="pearl"] .nav-item.active { color: #9a6f16; }
:root[data-theme="pearl"] .currency-summary>div { background: #fffdf8; border-color: #dfd5c3; }
:root[data-theme="pearl"] .currency-summary span,
:root[data-theme="pearl"] .report-history-grid,
:root[data-theme="pearl"] .report-history-grid * { color: #1a1712; }
:root[data-theme="pearl"] .report-history-grid .dash-mini,
:root[data-theme="pearl"] .report-history-grid .rh-period { color: #655e52; }

/* Startovací animace Superfly — zobrazí se místo bílé plochy při otevření appky. */
#superfly-splash{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;overflow:hidden;background:#050807;color:#f5f0e6;isolation:isolate;opacity:1;transition:opacity .72s ease,visibility .72s ease}
#superfly-splash.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
#superfly-splash:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 43%,rgba(225,177,45,.13),transparent 25%),radial-gradient(circle at 50% 85%,rgba(31,117,80,.2),transparent 44%)}
.splash-glow{position:absolute;border-radius:50%;filter:blur(24px);opacity:.5;pointer-events:none}
.splash-glow-a{width:180px;height:180px;background:#d8a92f;animation:splashGlow 3.8s ease-in-out infinite}
.splash-glow-b{width:360px;height:160px;background:#174a36;transform:translateY(230px);filter:blur(55px);animation:splashGlowB 4.5s ease-in-out infinite}
.splash-orbit{position:absolute;width:min(66vw,330px);aspect-ratio:1;border:1px solid rgba(235,190,64,.2);border-radius:50%;transform:rotate(-21deg);animation:splashOrbit 8s linear infinite}
.splash-orbit:before,.splash-orbit:after{content:"";position:absolute;inset:12%;border:1px solid rgba(235,190,64,.1);border-radius:50%;transform:rotate(56deg)}
.splash-orbit span{position:absolute;top:-5px;left:50%;width:10px;height:10px;border-radius:50%;background:#f4c94c;box-shadow:0 0 20px 7px rgba(244,201,76,.75);transform:translateX(-50%)}
.splash-brand{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;animation:splashBrandIn 1s cubic-bezier(.22,.8,.25,1) both}
.splash-mark{width:clamp(112px,34vw,174px);height:clamp(112px,34vw,174px);border-radius:34%;overflow:hidden;box-shadow:0 0 0 1px rgba(240,195,68,.35),0 0 50px rgba(215,166,39,.25);animation:splashFloat 3.2s ease-in-out .9s infinite}
.splash-mark img{width:100%;height:100%;display:block;object-fit:cover}
.splash-mark img{mix-blend-mode:screen}
.splash-word{font-family:Georgia,'Times New Roman',serif;font-size:clamp(27px,8vw,44px);letter-spacing:.18em;margin-left:.18em;color:#f1c84b;text-shadow:0 0 22px rgba(241,200,75,.24);animation:splashWordIn 1.1s ease .25s both}
.splash-line{width:90px;height:1px;background:rgba(242,200,78,.28);overflow:hidden}
.splash-line i{display:block;width:38%;height:100%;background:#f5c94b;box-shadow:0 0 10px #f5c94b;animation:splashSweep 1.5s ease-in-out infinite}
.splash-caption{font-size:10px;letter-spacing:.36em;color:#9fbcae;margin-left:.36em;animation:splashCaptionIn 1s ease .55s both}
.splash-loading{position:absolute;bottom:max(34px,env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;gap:10px;color:#7d9d8e;font-size:11px;letter-spacing:.12em;text-transform:uppercase;animation:splashCaptionIn 1s ease .8s both}
.splash-loading b{display:block;width:100px;height:2px;background:rgba(241,200,75,.18);overflow:hidden;border-radius:2px}
.splash-loading b:after{content:"";display:block;width:42%;height:100%;background:#e9ba3f;box-shadow:0 0 9px #e9ba3f;animation:splashLoad 1.25s ease-in-out infinite}
@keyframes splashBrandIn{from{opacity:0;transform:translateY(15px) scale(.94)}to{opacity:1;transform:none}}
@keyframes splashWordIn{from{opacity:0;letter-spacing:.42em;transform:translateY(8px)}to{opacity:1;letter-spacing:.18em;transform:none}}
@keyframes splashCaptionIn{from{opacity:0}to{opacity:1}}
@keyframes splashFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes splashOrbit{to{transform:rotate(339deg)}}
@keyframes splashGlow{0%,100%{opacity:.28;transform:scale(.86)}50%{opacity:.62;transform:scale(1.12)}}
@keyframes splashGlowB{0%,100%{opacity:.22;transform:translateY(230px) scale(.9)}50%{opacity:.48;transform:translateY(210px) scale(1.08)}}
@keyframes splashSweep{0%{transform:translateX(-100%)}100%{transform:translateX(270%)}}
@keyframes splashLoad{0%{transform:translateX(-120%)}100%{transform:translateX(260%)}}
@media(prefers-reduced-motion:reduce){#superfly-splash *{animation:none!important}.splash-brand{opacity:1}}
.report-history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.report-history-grid>div{padding:13px;border:1px solid rgba(238,190,63,.18);border-radius:12px;background:rgba(8,35,27,.28)}
.report-history-grid>div:last-child{grid-column:1/-1}
.report-history-grid h4{margin:0 0 8px;color:#efc344;font-size:13px;text-transform:uppercase;letter-spacing:.08em}
.report-period-row{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid rgba(157,196,175,.13);padding:8px 0;font-size:13px}
.report-period-row:first-of-type{border-top:0;padding-top:0}.report-period-row span{display:flex;flex-direction:column;gap:2px}.report-period-row small{color:var(--muted,#9ab8a9);font-size:11px}.report-period-row strong{color:#f5f0e6;text-align:right}
@media(max-width:700px){.report-history-grid{grid-template-columns:1fr 1fr;gap:8px}.report-history-grid>div:last-child{grid-column:1/-1}.report-period-row{font-size:12px;gap:6px}}
.goal-photo{height:150px;margin:12px 0 4px;border-radius:14px;background-size:cover;background-position:center;box-shadow:inset 0 0 0 1px rgba(238,190,63,.2);cursor:pointer}

/* ============ OFFSHORE INTEL ============ */
.oi-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.oi-searchbox { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.oi-searchbox input { flex: 1; min-width: 0; }
.oi-headline { margin: 6px 0 8px; font-size: 18px; line-height: 1.35; color: var(--gold); }
.oi-summary { color: var(--white); opacity: .9; line-height: 1.6; }
.oi-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.oi-row { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.oi-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); margin-top: 12px; }
.oi-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; min-width: 0; }
.oi-row .oi-item { margin-bottom: 0; }
.oi-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; }
.oi-jur { font-weight: 700; font-size: 12.5px; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 3px 10px; }
.oi-cat { font-size: 11.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.oi-item-top .rt-pill { margin-left: auto; }
.rt-pill.none { color: var(--muted); background: rgba(138,138,148,.12); }
.oi-title { font-weight: 700; font-size: 15px; line-height: 1.4; }
.oi-date { font-size: 12px; color: var(--muted); margin-top: 2px; }
.oi-what { margin-top: 8px; line-height: 1.55; overflow-wrap: anywhere; }
.oi-impact { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--surface-2); border-radius: 0 8px 8px 0; line-height: 1.5; overflow-wrap: anywhere; }
.oi-srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.oi-src { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); text-decoration: none; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oi-src:hover { color: var(--gold); border-color: var(--gold-line); }
.oi-src svg { width: 12px; height: 12px; flex: none; }
.oi-ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.oi-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.oi-status > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; }
.oi-status span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.oi-arch { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: transparent; color: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.oi-arch.on { border-color: var(--gold-line); background: var(--gold-soft); }
.oi-arch-w { font-size: 12px; color: var(--gold); font-weight: 700; }
.oi-arch-h { font-size: 13px; opacity: .85; }
.oi-check { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
.oi-check input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
@media (max-width: 520px) {
  .oi-row { grid-template-columns: minmax(0, 1fr); }
  .oi-rank { display: none; }
  .oi-actions { justify-content: flex-start; margin-top: 8px; }
  .oi-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============ API A NAPOJENÍ ============ */
.api-steps { margin: 0; padding-left: 20px; line-height: 1.65; }
.api-steps li { margin-bottom: 8px; }
.api-steps a { color: var(--gold); }
.api-steps code, .section code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }
.api-row { display: flex; gap: 8px; margin: 10px 0; }
.api-row input, .api-grid input { flex: 1; min-width: 0; background: var(--surface-2); color: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.api-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 10px; }
.api-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.api-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.api-test { margin-top: 10px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); overflow-wrap: anywhere; }
.api-test.ok { border-left: 3px solid var(--green); } .api-test.bad { border-left: 3px solid #E5807A; }
.api-ts { color: var(--muted); font-size: 11px; margin-left: 6px; }
.api-table { display: flex; flex-direction: column; gap: 2px; overflow-x: auto; }
.api-tr { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; min-width: 460px; }
.api-th { background: transparent; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

/* ============ SÍŤ KONTAKTŮ ============ */
.net-stats { margin-top: 12px; }
.net-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.net-filters .chat-search { flex: 1 1 260px; margin: 0; }
.net-filters select { background: var(--surface-2); color: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; font-size: 13px; max-width: 100%; }
.net-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.net-toggle input { accent-color: var(--gold); }
.net-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
.net-stage { position: relative; height: min(68vh, 680px); min-height: 380px; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, rgba(var(--gold-rgb), .07), transparent 60%), radial-gradient(circle at 50% 50%, #17171d 0%, #0c0c10 100%); touch-action: none; }
.net-stage svg { width: 100%; height: 100%; display: block; cursor: grab; user-select: none; -webkit-user-select: none; }
.net-stage svg:active { cursor: grabbing; }
.net-e { stroke: rgba(var(--gold-rgb), .28); stroke-linecap: round; transition: opacity .2s, stroke .2s; }
.net-e.rec { stroke: rgba(63,185,80,.5); }
.net-e.inf { stroke: rgba(180,180,200,.28); stroke-dasharray: 3 5; }
.net-e.on { stroke: rgba(var(--gold-rgb), .85); }
.net-e.path { stroke: #F5D27A; stroke-width: 3.2 !important; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(var(--gold-rgb), .8)); }
.net-e.dim { opacity: .08; }
.net-n { cursor: pointer; transition: opacity .2s; }
.net-n .net-c { stroke: rgba(0,0,0,.45); stroke-width: 1.5; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)); }
.net-n .net-glow { opacity: .16; }
.net-n.team .net-c { stroke: #FFE9A8; stroke-width: 2; }
.net-n.root .net-glow { opacity: .35; animation: netPulse 2.6s ease-in-out infinite; }
@keyframes netPulse { 0%,100% { opacity: .22; } 50% { opacity: .45; } }
.net-n:hover .net-glow, .net-n.hl .net-glow { opacity: .45; }
.net-n.sel .net-c { stroke: #fff; stroke-width: 3; }
.net-n.sel .net-glow { opacity: .6; }
.net-n.dim { opacity: .14; }
.net-ini { fill: rgba(10,10,14,.85); font-weight: 800; text-anchor: middle; pointer-events: none; }
.net-n.team .net-ini { fill: #3a2a05; }
.net-lbl { fill: #E8E8EE; font-size: 11px; font-weight: 600; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: #0c0c10; stroke-width: 3px; }
svg.zoomed-out .net-n:not(.team):not(.sel):not(.hl) .net-lbl { display: none; }
.net-zoom { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.net-zoom .icon-btn { background: rgba(24,24,29,.9); border: 1px solid var(--border); width: 34px; height: 34px; font-size: 18px; color: var(--white); }
.net-legend { position: absolute; left: 10px; bottom: 10px; right: 56px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--muted); pointer-events: none; }
.net-legend span { display: inline-flex; align-items: center; gap: 5px; background: rgba(12,12,16,.75); padding: 2px 8px; border-radius: 999px; }
.net-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.net-legend .net-lg-note { background: transparent; padding: 0; opacity: .8; }
.net-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.net-pempty, .net-p-empty { color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (min-width: 1000px) {
  .net-wrap { grid-template-columns: minmax(0, 1fr) 340px; }
  .net-panel:not(.net-panel-static) { max-height: min(68vh, 680px); overflow-y: auto; }
}
.net-p-head { display: flex; align-items: center; gap: 10px; }
.net-p-bub { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #111; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.net-p-t { flex: 1; min-width: 0; }
.net-p-n { font-weight: 800; font-size: 16px; }
.net-p-s { color: var(--muted); font-size: 12.5px; }
.net-p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.net-tag { font-size: 11.5px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; color: var(--white); }
.net-p-own { margin-top: 8px; font-size: 13px; color: var(--muted); }
.net-p-notes { margin-top: 8px; font-size: 13px; line-height: 1.5; background: var(--surface-2); border-radius: 10px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.net-p-sec { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); font-weight: 700; }
.net-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.net-chip { background: var(--surface-2); color: var(--white); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.net-chip small { color: var(--gold); font-size: 8px; letter-spacing: 1px; margin-left: 2px; }
.net-chip.inf { border-style: dashed; color: var(--muted); }
.net-chip:hover { border-color: var(--gold-line); color: var(--gold); }
.net-p-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.btn.danger { color: #E5807A; }
.net-path, .net-match, .net-opp { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.net-path-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.net-arrow { color: var(--gold); font-weight: 800; }
.net-conf { margin-left: auto; font-weight: 800; color: var(--gold); font-size: 13px; }
.net-path-how { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.net-msg { margin-top: 8px; font-size: 13px; line-height: 1.5; border-left: 3px solid var(--gold); padding: 6px 10px; background: var(--surface); border-radius: 0 8px 8px 0; }
.net-msg .btn { margin-top: 6px; display: block; }
.net-opp-t { font-weight: 700; margin-bottom: 6px; }
.net-next { margin-top: 6px; font-size: 13px; }
.net-ai-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.net-goal { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.net-goal input { flex: 1; min-width: 0; }
.net-score { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.net-score-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.net-score-bar span { display: block; height: 100%; background: linear-gradient(90deg, #9C7422, var(--gold), #FFE9A8); }
.net-li { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; color: var(--white); border: none; border-bottom: 1px solid var(--border); padding: 10px 4px; }
.net-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.net-li-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.net-li-m small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-li-n { color: var(--gold); font-size: 12px; flex: none; }
.net-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.net-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.net-f.full { grid-column: 1 / -1; }
.net-f input:not([type=range]), .net-f select, .net-f textarea { background: var(--surface-2); color: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; font-size: 14px; font-family: inherit; width: 100%; box-sizing: border-box; }
.net-f input[type=range] { accent-color: var(--gold); }
.net-via { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px; padding: 10px; }
.net-via2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) {
  .net-form { grid-template-columns: 1fr; }
  .net-stage { height: 58vh; min-height: 340px; }
  .net-legend .net-lg-note { display: none; }
  .net-stats { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 4px; }
  .net-stats .stat-tile { padding: 8px 6px; text-align: center; }
  .net-stats .stat-tile .top { font-size: 10px; justify-content: center; line-height: 1.2; }
  .net-stats .stat-tile .top [data-lucide] { display: none; }
  .net-stats .stat-tile .num { font-size: 17px; margin: 4px 0 0; }
  .net-stats .stat-tile .sub { display: none; }
  .net-filters select { flex: 1 1 45%; }
}
.oi-overlay .sheet-panel { max-width: 640px; max-height: 88vh; }


/* ================================================================
   PRIVATE NOIR (v113) — luxusní vrstva nad původním designem.
   Barvy, písmo a velikost řídí proměnné, které nastavuje Nastavení → Vzhled.
   ================================================================ */
:root[data-theme="pearl"] { --line: rgba(138,106,52,0.22); }
body { background: radial-gradient(900px 520px at 88% -8%, var(--gold-soft), transparent 60%), var(--bg); }
button, input, textarea, select { font-family: inherit; }
.content { zoom: var(--ui-scale, 1); }
.content.no-zoom { zoom: 1; }

/* nadpisy a čísla = serif (privátní banka) */
.topbar .page-title { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: 0; }
.section-head h3, .oi-headline, .net-p-n, .ph-name, .rt-n, .empty .et, .sheet-head { font-family: var(--font-display); font-weight: 500; letter-spacing: 0; }
.section-head h3 { font-size: 22px; }
.oi-headline { font-size: 24px; }
.stat-tile .num { font-family: var(--font-display); font-weight: 500; font-size: 36px; letter-spacing: 0; line-height: 1.05; }
:root[data-font="modern"] .stat-tile .num, :root[data-font="original"] .stat-tile .num { font-weight: 700; font-size: 30px; }
:root[data-font="modern"] .section-head h3, :root[data-font="original"] .section-head h3 { font-weight: 700; font-size: 17px; }
:root[data-font="modern"] .topbar .page-title, :root[data-font="original"] .topbar .page-title { font-weight: 700; font-size: 18px; }
.stat-tile .top { text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; font-weight: 600; }
.eyebrow, .set-label { letter-spacing: 0.28em; }
.set-label { text-transform: uppercase; font-size: 10.5px; color: var(--gold); }

/* karty: jemná zlatá linka, víc vzduchu */
.section { background: linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0) 40%), var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.stat-tile { background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)), var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.stat-tile:hover { border-color: var(--gold-line); transform: none; }
.set-card, .rt-card, .oi-item, .net-panel { border-color: var(--line) !important; }
:root[data-theme="pearl"] .section, :root[data-theme="pearl"] .stat-tile { background: var(--surface); }

/* tlačítka: hlavní = zlatý přechod, vedlejší = zlatá linka */
.btn { background: linear-gradient(135deg, var(--gold-hi), var(--gold) 45%, var(--gold-lo)); color: #1A1408; border-radius: 999px; padding: 12px 20px; letter-spacing: 0.02em; box-shadow: 0 6px 18px -8px var(--gold-line); }
.btn.small { padding: 8px 14px; }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid var(--gold-line); box-shadow: none; }
.btn.ghost:hover { background: var(--gold-soft); border-color: var(--gold); }
.btn.danger { color: #D9918A; border-color: rgba(217,145,138,0.35); }
:root[data-theme="pearl"] .btn { color: #FFFFFF; }
:root[data-theme="pearl"] .btn.ghost { color: var(--gold); }

/* navigace */
.sidebar { background: color-mix(in srgb, var(--surface) 88%, transparent); border-right: 1px solid var(--line); }
.side-brand .name { font-weight: 600; font-size: 13px; letter-spacing: 0.42em; }
.nav-item { border-radius: 12px; letter-spacing: 0.01em; }
.nav-item.active { background: var(--gold-soft); color: var(--gold); }
.topbar { border-bottom: 1px solid var(--line); }
.topbar .search input, .chat-search, .net-filters select, .cl-sel { border-color: var(--line) !important; }
.topbar .search input { border-radius: 999px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold-line) !important; }
@media (max-width: 820px) {
  .mobile-tabbar { background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .mobile-tabbar button { letter-spacing: 0.04em; }
  .topbar .page-title { font-size: 21px; }
  .section { padding: 18px; border-radius: 18px; }
  .stat-tile .num { font-size: 28px; }
}

/* štítky a pilulky */
.rt-pill, .oi-jur, .net-tag, .oi-cat { letter-spacing: 0.08em; }
.oi-jur { background: transparent; border: 1px solid var(--gold-line); }
.oi-impact, .net-msg { border-left-color: var(--gold); }

/* bublinková síť — skleněné koule, soustředné kruhy */
.net-stage { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 139px, rgba(201,169,110,0.05) 139px 140px), radial-gradient(ellipse at 50% 45%, var(--gold-soft), transparent 62%), radial-gradient(circle at 50% 50%, #151517 0%, #0A0A0B 100%); border-color: var(--line); }
.net-n .net-c { stroke-opacity: 1; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6)); }
.net-n.team .net-c { stroke: var(--gold-hi); stroke-width: 1.2; }
.net-ini { font-family: var(--font-display); font-weight: 500; }
.net-n.team .net-ini { fill: #2A1E08; }
.net-e { stroke: var(--gold-line); }
.net-e.on, .net-e.path { stroke: var(--gold-hi); }

/* Nastavení → Vzhled */
.ap-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ap-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; color: var(--muted); padding: 4px; }
.ap-sw span { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.ap-sw small { font-size: 11px; text-align: center; }
.ap-sw.on span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }
.ap-sw.on small { color: var(--white); }
.ap-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ap-font { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--white); text-align: left; }
.ap-font.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-line); }
.ap-font-s { font-size: 26px; line-height: 1.1; }
.ap-font-n { font-size: 13px; font-weight: 600; }
.ap-font-d { font-size: 11px; color: var(--muted); }
.ap-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.ap-seg-b { height: 40px; border-radius: 999px; border: none; background: transparent; color: var(--muted); }
.ap-seg-b.on { background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.ap-owner { margin-top: 14px; }

.serif, .mb-txt, .hh-greet .serif { font-family: var(--font-display); }

.auth-lang { position: absolute; top: 14px; right: 14px; display: flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); z-index: 2; }
.auth-lang button { border: none; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 5px 10px; border-radius: 999px; }
.auth-lang button.on { background: var(--gold-soft); color: var(--gold); }
@media (max-width: 560px) {
  .net-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .net-stats .stat-tile { text-align: left; padding: 10px 12px; }
  .net-stats .stat-tile .top { letter-spacing: 0.1em; justify-content: flex-start; font-size: 9.5px; }
  .net-stats .stat-tile .num { font-size: 22px; }
}

/* v113.1 — levé menu na PC jde scrollovat, když se položky nevejdou (Nastavení bylo schované dole) */
.sidebar { height: 100%; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent; }
.sidebar > * { flex-shrink: 0; }
.sidebar .side-spacer { flex: 1 0 12px; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gold-line); border-radius: 3px; }
@media (max-height: 900px) and (min-width: 821px) {
  .sidebar .nav-item { padding-top: 8px; padding-bottom: 8px; }
}

/* v115 — galerie projektu: náhledy se vejdou do čtverečku (dřív velká fotka rozbila celý Overview) */
.proj-gallery { width: 100%; min-width: 0; }
.proj-g { overflow: hidden; min-width: 0; }
.proj-g img, .proj-g video, .proj-g .proj-g-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; pointer-events: none; }
.proj-g-del { z-index: 2; }
.proj-g-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; color: #fff; pointer-events: none; }
.proj-g-play [data-lucide] { width: 18px; height: 18px; margin-left: 2px; }
.proj-g.add { flex-direction: column; gap: 4px; }
.proj-g-addt { font-size: 10.5px; }
.proj-g.media-error::after { content: "!"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }

/* galerie přes celou obrazovku se swipem */
.mg-overlay { position: fixed; inset: 0; z-index: 5000; background: #050506; opacity: 1; display: flex; flex-direction: column; }
.mg-top { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px 8px; color: var(--white); }
.mg-count { font-size: 13px; letter-spacing: .12em; color: var(--gold); font-weight: 600; }
.mg-actions { display: flex; gap: 8px; }
.mg-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; display: flex; align-items: center; justify-content: center; }
.mg-track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mg-track::-webkit-scrollbar { display: none; }
.mg-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 8px; box-sizing: border-box; }
.mg-slide img, .mg-slide video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; background: #000; }
.mg-load { color: var(--muted); font-size: 14px; }
.mg-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; }
.mg-nav.prev { left: 14px; } .mg-nav.next { right: 14px; }
@media (max-width: 700px) { .mg-nav { display: none; } }
.mg-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 max(16px, env(safe-area-inset-bottom)); }
.mg-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; }
.mg-dots span.on { background: var(--gold); width: 18px; border-radius: 4px; }

/* v116 — „AI pracuje" animace */
.ai-loader { display: flex; align-items: center; gap: 18px; margin: 14px 0 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--gold-line); background: linear-gradient(135deg, var(--gold-soft), transparent 70%); }
.ai-orb { position: relative; width: 54px; height: 54px; flex: none; }
.ai-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--gold); border-right-color: var(--gold-line); animation: aiSpin 1.1s linear infinite; }
.ai-ring.r2 { inset: 8px; border-top-color: var(--gold-hi); border-right-color: transparent; border-left-color: var(--gold-line); animation-duration: 1.7s; animation-direction: reverse; }
.ai-core { position: absolute; inset: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); box-shadow: 0 0 18px var(--gold-line); animation: aiPulse 1.6s ease-in-out infinite; }
.ai-ltxt { flex: 1; min-width: 0; }
.ai-ltitle { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.ai-lstep { margin-top: 5px; font-size: 15px; color: var(--white); min-height: 22px; }
.ai-lstep.in { animation: aiStepIn .45s ease; }
.ai-lbar { position: relative; height: 3px; margin-top: 10px; border-radius: 3px; overflow: hidden; background: rgba(var(--gold-rgb), .14); }
.ai-lbar span { position: absolute; top: 0; bottom: 0; width: 35%; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold-hi), var(--gold), transparent); animation: aiBar 1.6s ease-in-out infinite; }
.ai-ltime { margin-top: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.btn.is-busy [data-lucide], .btn.is-busy svg { animation: aiSpin 1s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
@keyframes aiPulse { 0%, 100% { transform: scale(.85); opacity: .8; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes aiBar { 0% { left: -35%; } 100% { left: 100%; } }
@keyframes aiStepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ai-ring, .ai-core, .ai-lbar span, .btn.is-busy svg { animation: none; } }

/* v118 — spolumajitelé */
.co-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.co-crown { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); flex: none; }
.co-crown svg { width: 17px; height: 17px; }
.co-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.co-name small { color: var(--muted); font-size: 12px; }
.co-tag { font-size: 11px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 8px; margin-left: 8px; }
.co-legacy { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.co-legacy summary { cursor: pointer; color: var(--muted); font-size: 13px; }

/* v121 — Offshore Desk */
.dk-gmail { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--gold-line); }
.dk-gmail.on { border-style: solid; background: var(--gold-soft); }
.dk-gmail > svg { color: var(--gold); flex: none; }
.dk-gmail-t { flex: 1; min-width: 0; font-size: 13.5px; }
.dk-muted { color: var(--muted); font-size: 12.5px; }
.dk-stages { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dk-st { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; }
.dk-st b { color: var(--white); margin-left: 4px; }
.dk-st.on { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.dk-client { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--white); flex-wrap: wrap; }
.dk-av { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); font-family: var(--font-display); font-size: 18px; flex: none; }
.dk-cm { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.dk-cm small { color: var(--muted); font-size: 12px; }
.dk-badge { font-size: 11px; border-radius: 999px; padding: 3px 8px; background: rgba(229,128,122,.15); color: #E5807A; }
.dk-badge.gold { background: var(--gold-soft); color: var(--gold); }
.dk-when { color: var(--muted); font-size: 11.5px; }
.dk-draft { border: 1px solid var(--gold-line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: linear-gradient(135deg, var(--gold-soft), transparent 60%); }
.dk-draft-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dk-link { background: none; border: none; color: var(--gold); font-weight: 700; padding: 0; }
.dk-to { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.dk-reason { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.dk-warn { margin-top: 6px; font-size: 13px; color: #E5A04A; }
.dk-subj { margin-top: 6px; font-weight: 600; }
.dk-subj-in { margin-top: 8px; width: 100%; box-sizing: border-box; font-weight: 600; }
.dk-body-in { margin-top: 8px; width: 100%; box-sizing: border-box; line-height: 1.5; font-family: inherit; }
.dk-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dk-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dk-head-t { flex: 1; min-width: 180px; }
.dk-stage-sel { width: auto; min-width: 180px; }
.dk-suggest { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--gold-soft); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.dk-facts > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.dk-facts span { display: block; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dk-facts b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.dk-compose { display: flex; gap: 8px; flex-wrap: wrap; }
.dk-compose select { flex: 0 0 auto; width: auto; }
.dk-compose input { flex: 1 1 260px; }
.dk-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dk-msg { border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.dk-msg.out { border-color: var(--gold-line); background: linear-gradient(135deg, var(--gold-soft), var(--surface-2) 70%); }
.dk-msg-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; }
.dk-msg-h span { color: var(--muted); }
.dk-msg-s { margin-top: 4px; font-weight: 600; font-size: 14px; }
.dk-msg-b { margin-top: 8px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; max-height: 320px; overflow: auto; overflow-wrap: anywhere; }
.dk-ai { margin-top: 8px; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.5; }

/* v122 — Offshore Desk: přehled, úkoly, bezpečnost */
.dk-sec { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(111,207,151,.35); background: rgba(111,207,151,.07); font-size: 13px; line-height: 1.5; }
.dk-sec > svg { color: #6FCF97; flex: none; margin-top: 2px; }
.dk-warn-inline { color: #E5A04A; }
.dk-need { border-color: var(--gold-line); }
.dk-req { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.dk-req-i { font-size: 18px; }
.dk-req-t { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.dk-req-t small { color: var(--muted); font-size: 12px; }
.dk-check { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dk-check span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.dk-check .ok { color: #6FCF97; border-color: rgba(111,207,151,.35); }
.dk-check .miss { color: #E5A04A; border-color: rgba(229,160,74,.35); }
.dk-what { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.dk-what > span:first-child { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.dk-what b { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.dk-what em { font-style: normal; color: var(--muted); font-size: 13px; }
.dk-what .rt-pill { margin-left: auto; }
.dk-steps { display: flex; gap: 4px; margin-top: 12px; overflow-x: auto; }
.dk-step { flex: 1; min-width: 74px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.dk-step span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.dk-step small { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.dk-step.done span { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.dk-step.cur span { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1A1408; border: none; }
.dk-step.cur small { color: var(--white); font-weight: 600; }
.dk-attach { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.dk-audit { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.dk-audit small { display: block; color: var(--muted); font-size: 11.5px; }

.dk-rowdel { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted, #8F887D); opacity: .7; cursor: pointer; margin-left: auto; }
.dk-rowdel:hover { color: #e0894a; opacity: 1; background: rgba(224,137,74,.1); }
.dk-rowdel svg { width: 16px; height: 16px; }

.dk-partner { padding: 14px; margin-bottom: 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.dk-partner .btn { margin-top: 8px; }
.dk-partner-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold, #C9A96E); padding: 8px 12px; border-radius: 12px; background: rgba(var(--gold-rgb, 201,169,110), .08); border: 1px solid rgba(var(--gold-rgb, 201,169,110), .25); }
.dk-partner-hint svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Offshore prodej (tým) */
.os-h { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold, #C9A96E); margin: 16px 0 8px; }
.os-h:first-child { margin-top: 0; }
.os-card { padding: 14px; margin-bottom: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.os-top { display: flex; align-items: center; gap: 12px; }
.os-top .dk-cm { flex: 1; min-width: 0; }
.os-files { display: flex; flex-direction: column; gap: 8px; }
.os-files #os-flist { display: flex; flex-wrap: wrap; gap: 6px; }
.os-file { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; }
.os-file button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.dk-intake { margin-top: 12px; padding: 14px; border-radius: 16px; border: 1px solid rgba(var(--gold-rgb, 201,169,110), .3); background: rgba(var(--gold-rgb, 201,169,110), .06); }
.dk-intake-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dk-intake-h svg { width: 16px; height: 16px; color: var(--gold, #C9A96E); }
.dk-intake-h small { margin-left: auto; opacity: .6; }
.dk-intake-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* v126 — hlasovky (vlastní přehrávač) */
.voice-bubble { min-width: 230px; max-width: 290px; }
.vb { display: flex; align-items: center; gap: 10px; width: 100%; }
.vb audio { display: none; }
.vb-play { width: 38px; height: 38px; flex: none; border-radius: 50%; border: none; background: linear-gradient(145deg, var(--gold, #C9A96E), #9C7C45); color: #14100A; display: grid; place-items: center; cursor: pointer; }
.vb-play svg { width: 17px; height: 17px; fill: currentColor; }
.vb-play.busy { opacity: .55; }
.vb-track { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.vb-bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.14); overflow: hidden; cursor: pointer; position: relative; }
.vb-bar::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; bottom: -8px; }
.vb-bar > i { display: block; height: 100%; width: 0; background: var(--gold, #C9A96E); border-radius: inherit; transition: width .2s linear; }
.vb-t { font-size: 11px; color: var(--muted, #8F887D); font-variant-numeric: tabular-nums; }
.vb-mic { width: 15px !important; height: 15px !important; color: var(--gold, #C9A96E); flex: none; opacity: .8; }

/* v126 — detail akce: video v galerii bylo obří a stránka se hýbala do stran */
.ed-sheet { max-width: min(520px, 100vw); overflow: hidden; }
.ed-body { overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; }
.ed-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed-g { overflow: hidden; min-width: 0; }
.ed-g > video, .ed-g > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; pointer-events: none; display: block; }
.ed-g .ed-play, .ed-g .ed-g-tag, .ed-g .ed-g-del { z-index: 2; }
.ed-msg-b { min-width: 0; overflow-wrap: anywhere; }
.msg.mine .vb-play { background: #14100A; color: var(--gold, #C9A96E); }
.msg.mine .vb-bar { background: rgba(20,16,10,.22); }
.msg.mine .vb-bar > i { background: #14100A; }
.msg.mine .vb-t, .msg.mine .vb-mic { color: rgba(20,16,10,.75); }

/* v127 — rychlá volba jurisdikce v novém klientovi */
.dk-quick { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.dk-quick > span { font-size: 12.5px; color: var(--muted, #8F887D); }
.dk-quick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dk-qchip { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(var(--gold-rgb, 201,169,110), .4); background: transparent; color: var(--gold, #C9A96E); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.dk-qchip:hover { background: rgba(var(--gold-rgb, 201,169,110), .08); }
.dk-qchip.on { background: linear-gradient(135deg, #F1DDAE, #C9A96E 45%, #9C7C45); color: #1A1408; border-color: transparent; }
.net-f.dk-partner-hint { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; min-height: 0; height: auto; padding: 8px 12px; text-align: left; }
.net-f.full:has(> input[type="checkbox"]) { justify-content: flex-start; text-align: left; }
.net-f.full > input[type="checkbox"] { width: 18px; height: 18px; flex: none; margin: 0; }

/* v128 — Plány od Superfly: na iPhonu to byla šedá systémová tlačítka */
.pp-item-btn { -webkit-appearance: none; appearance: none; display: block; width: 100%; text-align: left; background: transparent; color: inherit; font: inherit; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 12px 0; cursor: pointer; }
.pp-item-btn:last-child { border-bottom: 0; }
.pp-item-btn:active { background: rgba(var(--gold-rgb, 201,169,110), .06); }
.pp-item-btn .pp-title { color: var(--white); }
.pp-item-btn .pp-content { color: var(--muted); }
.os-all { margin-bottom: 10px; border: 1px solid rgba(var(--gold-rgb, 201,169,110), .35); border-radius: 12px; padding: 10px 12px; }

/* ============ TRADING (jen hlavní majitel) ============ */
:root { --tr-up: #3FBF8A; --tr-dn: #E0645A; }
.tr-wrap h3 i, .tr-set summary i { width: 18px; height: 18px; vertical-align: -3px; color: var(--gold); }
.tr-lock { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 5px 10px; }
.tr-lock i { width: 13px; height: 13px; }
.tr-syms, .tr-tfs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; align-items: center; }
.tr-sym, .tr-tf { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tr-sym.on, .tr-tf.on { color: #14100A; background: linear-gradient(135deg, var(--gold), #D4A838); border-color: transparent; }
.tr-tf { padding: 5px 11px; font-size: 12px; }
.tr-symadd { width: 210px; padding: 7px 12px; font-size: 13px; border-radius: 999px; }
.tr-chart { position: relative; height: 520px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0B0B0C; }
.tr-chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.tr-live { margin-top: 16px; }
.tr-muted { color: var(--muted); font-size: 12px; }
.tr-up { color: var(--tr-up) !important; } .tr-dn { color: var(--tr-dn) !important; }
.tr-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tr-big { font-size: 30px; font-weight: 800; color: var(--white, #fff); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tr-spark { width: 220px; height: 44px; max-width: 100%; }
.tr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.tr-tile { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.tr-tl { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tr-tv { font-size: 18px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tr-ts { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tr-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
@media (max-width: 860px) { .tr-cols { grid-template-columns: 1fr; } .tr-chart { height: 380px; } .tr-symadd { width: 100%; } }
.tr-h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 8px; }
.tr-h5 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 14px 0 6px; }
.tr-levels { display: flex; flex-direction: column; gap: 3px; }
.tr-lv { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 5px 9px; border-radius: 8px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.tr-lv.above b { color: var(--tr-dn); } .tr-lv.below b { color: var(--tr-up); }
.tr-lv.now { background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); font-weight: 700; }
.tr-liq { font-size: 13px; margin: 4px 0; }
.tr-book { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; }
.tr-bh { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.tr-imb { display: grid; grid-template-columns: 46px 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; margin: 3px 0; color: var(--muted); }
.tr-imbbar { height: 7px; border-radius: 4px; background: var(--tr-dn); overflow: hidden; }
.tr-imbbar i { display: block; height: 100%; background: var(--tr-up); }
.tr-imbv { font-variant-numeric: tabular-nums; }
.tr-walls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 520px) { .tr-walls { grid-template-columns: 1fr; } }
.tr-wt { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.tr-wall { display: grid; grid-template-columns: 72px 1fr 52px; gap: 6px; align-items: center; font-size: 11.5px; margin: 2px 0; font-variant-numeric: tabular-nums; }
.tr-wbar { height: 8px; background: rgba(255,255,255,.04); border-radius: 4px; overflow: hidden; }
.tr-wall.bid .tr-wbar i { display: block; height: 100%; background: var(--tr-up); opacity: .8; }
.tr-wall.ask .tr-wbar i { display: block; height: 100%; background: var(--tr-dn); opacity: .8; }
.tr-wu { text-align: right; color: var(--muted); }
.tr-ask textarea { resize: vertical; }
.tr-askrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; align-items: center; }
.tr-file { cursor: pointer; }
.tr-analysis { margin-top: 14px; }
.tr-verdict { border-radius: 14px; padding: 16px 18px; border: 1px solid var(--border); background: var(--surface-2); }
.tr-verdict.long { border-color: rgba(63,191,138,.5); background: rgba(63,191,138,.08); }
.tr-verdict.short { border-color: rgba(224,100,90,.5); background: rgba(224,100,90,.08); }
.tr-verdict.wait { border-color: var(--gold-line); background: var(--gold-soft); }
.tr-verdict.no { border-color: rgba(154,147,136,.4); }
.tr-vbig { font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.tr-verdict.long .tr-vbig { color: var(--tr-up); } .tr-verdict.short .tr-vbig { color: var(--tr-dn); } .tr-verdict.wait .tr-vbig { color: var(--gold); }
.tr-vmeta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.tr-headline { font-size: 16px; font-weight: 600; margin: 12px 0 6px; line-height: 1.45; }
.tr-answer { background: var(--surface-2); border-left: 3px solid var(--gold); padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: 14px; line-height: 1.5; }
.tr-p { font-size: 13.5px; line-height: 1.55; margin: 8px 0; }
.tr-avoid { color: #e0894a; }
.tr-ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.tr-ev { display: grid; grid-template-columns: minmax(120px, 210px) 1fr auto; gap: 10px; font-size: 13px; padding: 6px 9px; border-radius: 8px; background: var(--surface-2); margin: 3px 0; }
.tr-ev span { color: var(--muted); } .tr-ev em { font-style: normal; font-size: 11px; color: var(--muted); }
.tr-ev.hi { border: 1px solid rgba(224,100,90,.45); } .tr-ev.hi em { color: var(--tr-dn); font-weight: 700; }
.tr-plan { display: grid; gap: 4px; }
.tr-plan div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; font-size: 13.5px; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; }
.tr-plan span { color: var(--gold); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding-top: 2px; }
.tr-calc { margin-top: 8px; font-size: 13px; padding: 9px 12px; border-radius: 8px; border: 1px dashed var(--gold-line); }
.tr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.tr-src { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: 11.5px; }
.tr-src a { color: var(--gold); text-decoration: none; opacity: .85; }
.tr-hist { display: flex; flex-direction: column; gap: 4px; }
.tr-hrow { display: grid; grid-template-columns: 170px 170px 1fr; gap: 10px; text-align: left; align-items: center; background: var(--surface-2); border: 1px solid var(--border); color: inherit; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; cursor: pointer; }
.tr-hrow.on { border-color: var(--gold-line); }
@media (max-width: 700px) { .tr-hrow { grid-template-columns: 1fr; gap: 2px; } .tr-ev { grid-template-columns: 1fr; gap: 2px; } .tr-plan div { grid-template-columns: 1fr; gap: 2px; } }
.tr-hv { font-weight: 700; }
.tr-set summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 14px; }
.tr-grid .tr-full { grid-column: 1 / -1; }
.tr-grid .lbl .inp { margin-top: 6px; }
.tr-wrap a.btn { text-decoration: none; }

/* ============ PROJEKT → PRODEJ JEDNOTEK ============ */
:root { --un-free: #3FBF8A; --un-res: #E0A33E; --un-pend: #5B9BE0; --un-sold: #E0645A; }
.un-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.un-sum { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.un-big { font-size: 15px; color: var(--muted); } .un-big b { font-size: 26px; color: var(--white, #fff); font-family: var(--font-display); }
.un-big span { float: right; color: var(--gold); font-weight: 700; font-size: 18px; }
.un-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: rgba(63,191,138,.25); margin: 10px 0 8px; }
.un-bar i { display: block; height: 100%; }
.un-bar i.sold { background: var(--un-sold); } .un-bar i.reserved { background: var(--un-res); } .un-bar i.pending { background: var(--un-pend); }
.un-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
.un-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: 0; }
.un-legend .free::before { background: var(--un-free); } .un-legend .reserved::before { background: var(--un-res); } .un-legend .pending::before { background: var(--un-pend); } .un-legend .sold::before { background: var(--un-sold); }
.un-val { margin-top: 8px; font-size: 13px; color: var(--gold); font-weight: 600; }
.un-top { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); } .un-top b { color: var(--white, #fff); }
.un-pendbox { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(91,155,224,.5); background: rgba(91,155,224,.08); font-size: 13px; margin-bottom: 12px; }
.un-pendbox i { width: 16px; height: 16px; color: var(--un-pend); }
.un-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.un-chip { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.un-chip.on { color: #14100A; background: linear-gradient(135deg, var(--gold), #D4A838); border-color: transparent; }
.un-sel { width: auto; padding: 6px 10px; font-size: 12.5px; border-radius: 999px; }
.un-q { flex: 1; min-width: 140px; padding: 7px 12px; font-size: 13px; border-radius: 999px; }
.un-glbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 14px 0 6px; }
.un-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.un-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 8px 9px; border-radius: 10px; border: 1px solid rgba(63,191,138,.45); background: rgba(63,191,138,.07); color: inherit; cursor: pointer; min-height: 58px; }
.un-tile b { font-size: 13.5px; } .un-tile span { font-size: 10.5px; color: var(--muted); } .un-tile em { font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: auto; }
.un-tile.reserved { border-color: rgba(224,163,62,.6); background: rgba(224,163,62,.10); }
.un-tile.pending { border-color: rgba(91,155,224,.7); background: rgba(91,155,224,.12); }
.un-tile.sold { border-color: rgba(224,100,90,.55); background: rgba(224,100,90,.12); }
.un-tile.sold b { color: var(--un-sold); } .un-tile.reserved b { color: var(--un-res); } .un-tile.pending b { color: var(--un-pend); }
.un-tile.mine { box-shadow: 0 0 0 2px var(--gold) inset; }
.un-detail .lbl { margin-top: 12px; }
.un-dst { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.un-dst.free { color: var(--un-free); background: rgba(63,191,138,.12); } .un-dst.reserved { color: var(--un-res); background: rgba(224,163,62,.12); } .un-dst.pending { color: var(--un-pend); background: rgba(91,155,224,.12); } .un-dst.sold { color: var(--un-sold); background: rgba(224,100,90,.12); }
.un-drows { display: flex; flex-direction: column; gap: 3px; }
.un-drows div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 10px; background: var(--surface-2); border-radius: 8px; } .un-drows span { color: var(--muted); }
.un-acts { display: flex; gap: 8px; margin-top: 14px; } .un-acts .btn { flex: 1; }
.un-rel { margin-top: 10px; }
.un-edit { margin-top: 14px; } .un-edit summary { cursor: pointer; color: var(--gold); font-size: 13px; font-weight: 600; }
.un-egrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; } .un-egrid .lbl .inp { margin-top: 5px; }
.un-hist { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; max-height: 160px; overflow-y: auto; } .un-hist span { color: var(--muted-2, #6E685F); }
.un-addtabs { display: flex; gap: 6px; margin-bottom: 6px; }
.un-radio { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 0; }
.un-people { padding: 4px 0 4px 22px; max-height: 180px; overflow-y: auto; }
.tr-poscols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 860px) { .tr-poscols { grid-template-columns: 1fr; } }
.tr-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.tr-card .tr-tile { background: var(--surface); }
.tr-card .tr-lv { background: var(--surface); }
.tr-tiles-sm { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin: 6px 0; }
.tr-tiles-sm .tr-tv { font-size: 16px; }
.tr-cot { display: flex; flex-direction: column; gap: 6px; }
.tr-cotrow { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l v" "e e" "bar n"; gap: 2px 10px; font-size: 12.5px; padding: 7px 10px; background: var(--surface); border-radius: 8px; }
.tr-cotrow span { grid-area: l; color: var(--muted); } .tr-cotrow b { grid-area: v; font-variant-numeric: tabular-nums; } .tr-cotrow em { grid-area: e; font-style: normal; font-size: 11px; color: var(--muted); }
.tr-cotidx { grid-area: bar; position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--tr-dn), #555 50%, var(--tr-up)); margin-top: 4px; align-self: center; }
.tr-cotidx i { position: absolute; top: -3px; width: 4px; height: 12px; border-radius: 2px; background: #fff; transform: translateX(-2px); }
.tr-cotrow small { grid-area: n; font-size: 11px; color: var(--muted); align-self: center; }
/* ===== Trading: KOLÁČ ===== */
.tr-cakewrap { margin: 14px 0 6px; }
.tr-cakebar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--gold-line); background: var(--gold-soft); }
.tr-cakebar b { font-size: 16px; } .tr-cakebar span { font-size: 13px; color: var(--muted); }
.tr-cakebar.long { border-color: rgba(63,191,138,.5); background: rgba(63,191,138,.08); } .tr-cakebar.long b { color: var(--tr-up); }
.tr-cakebar.short { border-color: rgba(224,100,90,.5); background: rgba(224,100,90,.08); } .tr-cakebar.short b { color: var(--tr-dn); }
.tr-cakebar.wait b { color: var(--gold); }
.tr-cakes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
@media (max-width: 860px) { .tr-cakes { grid-template-columns: 1fr; } }
.tr-cake { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; }
.tr-cake-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.tr-donut { width: 96px; height: 96px; flex-shrink: 0; }
.tr-donut-n { font-size: 24px; font-weight: 800; fill: var(--gold); font-family: var(--font-display); } .tr-donut-n.up { fill: var(--tr-up); } .tr-donut-n.dn { fill: var(--tr-dn); }
.tr-donut-s { font-size: 10px; fill: var(--muted); }
.tr-cake-cnt { font-size: 18px; font-weight: 700; margin: 4px 0 2px; }
.tr-fl { display: flex; flex-direction: column; gap: 3px; }
.tr-f { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; padding: 6px 8px; border-radius: 8px; background: var(--surface); font-size: 12.5px; }
.tr-f b { text-align: center; border-radius: 6px; padding: 2px 0; font-size: 12px; }
.tr-f.p b { background: rgba(63,191,138,.18); color: var(--tr-up); } .tr-f.m b { background: rgba(224,100,90,.18); color: var(--tr-dn); } .tr-f.z b { background: rgba(255,255,255,.06); color: var(--muted); }
.tr-f em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 1px; }
.tr-f.ai { box-shadow: inset 2px 0 0 var(--gold); }
.tr-aitag { font-style: normal; font-size: 9.5px; font-weight: 700; color: #14100A; background: var(--gold); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }
.tr-hbars { display: flex; gap: 4px; align-items: flex-end; height: 70px; padding: 4px 0 14px; position: relative; }
.tr-hb { flex: 1; max-width: 26px; height: 100%; display: flex; gap: 2px; align-items: flex-end; position: relative; }
.tr-hb i { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; } .tr-hb i.u { background: var(--tr-up); } .tr-hb i.n { background: var(--tr-dn); } .tr-hb i.w { opacity: .55; }
.tr-hb small { position: absolute; bottom: -14px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--muted); }
/* ===== Trading: nápady, toky peněz, vyhodnocení ===== */
.tr-dirbtn { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.tr-dirbtn.long.on { background: rgba(63,191,138,.15); border-color: rgba(63,191,138,.6); color: var(--tr-up); }
.tr-dirbtn.short.on { background: rgba(224,100,90,.15); border-color: rgba(224,100,90,.6); color: var(--tr-dn); }
.tr-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; } .tr-grid3 .lbl .inp { margin-top: 5px; }
@media (max-width: 600px) { .tr-grid3 { grid-template-columns: 1fr 1fr; } }
.tr-idea { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.tr-idea-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.tr-idel { margin-left: auto; width: 30px; height: 30px; } .tr-idel i { width: 15px; height: 15px; }
.tr-dirtag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; } .tr-dirtag.long { background: rgba(63,191,138,.18); color: var(--tr-up); } .tr-dirtag.short { background: rgba(224,100,90,.18); color: var(--tr-dn); }
.tr-idea-ai { margin-top: 8px; font-size: 13px; line-height: 1.5; padding: 8px 10px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 6px; }
.tr-flowbars { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.tr-fb { display: grid; grid-template-columns: 140px 1fr 80px; gap: 10px; align-items: center; font-size: 13px; }
@media (max-width: 600px) { .tr-fb { grid-template-columns: 105px 1fr 66px; font-size: 12px; } }
.tr-fbt { position: relative; height: 12px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.tr-fbt em { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--muted-2, #6E685F); }
.tr-fbt i { position: absolute; top: 0; bottom: 0; } .tr-fbt i.up { background: var(--tr-up); border-radius: 0 6px 6px 0; } .tr-fbt i.dn { background: var(--tr-dn); border-radius: 6px 0 0 6px; }
.tr-fb b { text-align: right; font-variant-numeric: tabular-nums; }
.tr-tablewrap { overflow-x: auto; }
.tr-table { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 13px; }
.tr-table th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 4px 8px; }
.tr-table td { background: var(--surface-2); padding: 6px 8px; } .tr-table td:first-child { border-radius: 8px 0 0 8px; } .tr-table td:last-child { border-radius: 0 8px 8px 0; }
.tr-pc b { font-variant-numeric: tabular-nums; } .tr-pc small { display: block; font-size: 10px; color: var(--muted); }
.tr-pc.good b { color: var(--tr-up); } .tr-pc.bad b { color: var(--tr-dn); } .tr-pc.low b { color: var(--muted); } .tr-pc.mid b { color: var(--gold); }
.tr-review { margin-top: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--gold-line); border-radius: 12px; font-size: 13.5px; line-height: 1.6; }
.tr-donebox { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(63,191,138,.45); background: rgba(63,191,138,.07); font-size: 13.5px; line-height: 1.5; }
.tr-donebox i { width: 18px; height: 18px; color: var(--tr-up); flex-shrink: 0; margin-top: 2px; }
/* ===== Kdo vidí jaké složky ===== */
.sec-lock { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px; background: none; border: 1px solid var(--gold-line); color: var(--gold); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sec-lock i { width: 13px; height: 13px; }
@media (max-width: 600px) { .sec-lock span { display: none; } .sec-lock { padding: 6px 8px; } }
.sa-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; cursor: pointer; }
.sa-opt input { margin-top: 3px; } .sa-opt b { display: block; font-size: 14px; } .sa-opt em { font-style: normal; font-size: 12px; color: var(--muted); }
.sa-opt:has(input:checked) { border-color: var(--gold-line); background: var(--gold-soft); }
/* ===== Týmový odkaz ===== */
.tl-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.tl-item.dead { opacity: .55; }
.tl-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .tl-top code { font-size: 12.5px; color: var(--gold); word-break: break-all; flex: 1; min-width: 180px; }
.tl-users { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; } .tl-users span { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
/* ===== Orderflow graf (jako Coinee) ===== */
.tr-chartsrc { align-items: center; } .tr-clink { font-size: 12px; color: var(--gold); text-decoration: none; margin-left: 8px; }
.fc-wrap { position: relative; background: #0B0B0C; border: 1px solid var(--border); border-radius: 12px; padding: 6px; margin: 8px 0 12px; }
.fc-svg { width: 100%; height: 520px; display: block; }
@media (max-width: 700px) { .fc-svg { height: 440px; } }
.fc-t { font-size: 12px; fill: var(--muted); } .fc-ax { font-size: 11px; fill: var(--muted); }
.fc-sep { stroke: rgba(255,255,255,.07); }
.fc-tip { position: absolute; top: 10px; width: 220px; background: rgba(20,20,22,.95); border: 1px solid var(--gold-line); border-radius: 8px; padding: 8px 10px; font-size: 11.5px; line-height: 1.5; pointer-events: none; }

/* ===== VZHLED 2025 (vrstva navrch — nepřepisuje nic staršího) ===== */
/* Barevné iniciály avatarů (jen když člověk nemá fotku) */
.avatar.avc-0{background:linear-gradient(140deg,#F5D77A,#C79A2E);color:#1a140a}
.avatar.avc-1{background:linear-gradient(140deg,#7FD3B8,#3C9076);color:#06251c}
.avatar.avc-2{background:linear-gradient(140deg,#93AEE8,#4E6DB8);color:#0a1838}
.avatar.avc-3{background:linear-gradient(140deg,#E2969C,#B5575F);color:#2e0d10}
.avatar.avc-4{background:linear-gradient(140deg,#C6A7E8,#8A5FB8);color:#200b33}
.avatar.avc-5{background:linear-gradient(140deg,#7FD0D6,#3C9AA0);color:#042528}
.avatar.avc-6{background:linear-gradient(140deg,#F2B987,#C77F3E);color:#2e1605}
.avatar.avc-7{background:linear-gradient(140deg,#E7A6C4,#B85F8E);color:#2e0b1f}
.avatar img{background:none}

/* Stlačení tlačítek a položek při ťuknutí */
@media (prefers-reduced-motion:no-preference){
  .btn,.cs-btn,.set-row,.nav-item,.more-item,.mobile-tabbar button,.icon-btn,[data-add-friend],.lk-card,.chat,.conv-item{transition:transform .12s ease,filter .15s ease}
  .btn:active,.cs-btn:active,.set-row:active,.nav-item:active,.more-item:active,.mobile-tabbar button:active,.icon-btn:active,[data-add-friend]:active{transform:scale(.965)}
}

/* Plovoucí zlaté menu (mobil) — jen přestylování, zůstává v toku, nic nepřekrývá */
@media(max-width:700px){
  .mobile-tabbar{
    margin:6px 12px calc(max(10px,var(--sa-bottom,0px)) + 10px);
    padding:6px 6px;
    border:1px solid var(--gold-line);
    border-top:1px solid var(--gold-line);
    border-radius:22px;
    background:var(--surface);
    background:color-mix(in srgb, var(--surface) 66%, transparent);
    -webkit-backdrop-filter:blur(22px) saturate(1.35);
    backdrop-filter:blur(22px) saturate(1.35);
    box-shadow:0 16px 34px -14px rgba(0,0,0,.55),0 0 0 1px rgba(var(--gold-rgb),.06);
  }
  .mobile-tabbar button{border-radius:16px;margin:0 2px;padding:7px 2px 6px;transition:background .18s ease,color .18s ease}
  .mobile-tabbar button.active{
    color:#1a140a;
    background:linear-gradient(150deg,var(--gold-hi),var(--gold-lo));
    box-shadow:0 6px 14px -5px rgba(var(--gold-rgb),.55);
  }
  .mobile-tabbar button.active [data-lucide]{color:#1a140a}
  .mobile-tabbar .nav-badge{right:calc(50% - 20px)}
}

/* ===== MOTIVAČNÍ BALÍČEK — denní kruhy ===== */
.motiv{margin:0 0 14px;padding:14px;border:1px solid var(--gold-line);border-radius:18px;background:var(--surface)}
.motiv-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.motiv-ttl{font-family:'Fraunces',Georgia,serif;font-size:17px;font-weight:600;color:var(--white)}
.motiv-streak{font-size:13px;font-weight:700;color:var(--gold);background:var(--gold-soft);border:1px solid var(--gold-line);border-radius:20px;padding:3px 10px}
.mr-row{display:flex;gap:10px}
.mr-card{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:7px;background:var(--bg);border:1px solid var(--border);border-radius:16px;padding:12px 6px 10px;cursor:pointer;color:inherit;font:inherit;transition:transform .12s ease}
.mr-card:active{transform:scale(.96)}
.mr-ring{--p:0;--rc:var(--gold);width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--rc) calc(var(--p)*1%),rgba(var(--gold-rgb),.14) 0);transition:background .5s ease}
.mr-ring i{width:44px;height:44px;border-radius:50%;background:var(--surface);display:grid;place-items:center;font-size:18px;font-style:normal}
.mr-card b{font-size:12px;font-weight:600;color:var(--white)}
.mr-card .mr-n{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.motiv-coach{display:flex;align-items:center;gap:9px;margin-top:12px;padding:11px 13px;border-radius:14px;background:linear-gradient(135deg,var(--gold-soft),transparent);border:1px solid var(--gold-line);font-size:13px;color:var(--white)}
.motiv-coach .dot{width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px var(--gold);flex:0 0 auto}
@media(min-width:701px){.motiv .mr-ring{width:60px;height:60px}.motiv .mr-ring i{width:47px;height:47px}}

/* ===== Spodní lišta: 4 + Víc, vlastní nastavení podržením ===== */
@media(max-width:700px){
  .mobile-tabbar{padding:5px 4px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
  .mobile-tabbar button{min-width:0;margin:0 1px;padding:6px 1px 5px;font-size:9.5px;gap:2px}
  .mobile-tabbar button span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-tabbar button [data-lucide]{width:19px;height:19px}
}
.tabc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,130px),1fr));gap:8px;margin-top:10px}
.tabc-item{position:relative;display:flex;align-items:center;gap:8px;padding:11px 10px;border-radius:12px;border:1px solid var(--border);background:var(--bg);color:var(--white);font:inherit;font-size:13px;cursor:pointer;text-align:left;min-width:0}
.tabc-item span:not(.tabc-b){flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabc-item [data-lucide]{width:17px;height:17px;color:var(--gold);flex:0 0 auto}
.tabc-item.on{border-color:var(--gold);background:var(--gold-soft)}
.tabc-b{flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:linear-gradient(150deg,var(--gold-hi),var(--gold-lo));color:#1a140a;font-size:11px;font-weight:700;display:grid;place-items:center}

/* ===== Holografický glóbus ===== */
.globe-wrap.holo,.globe-wrap.holo.map-day,.globe-wrap.holo.map-night{background:radial-gradient(120% 95% at 50% 0%,#0b2147 0%,#050d1f 55%,#02060f 100%)!important;border-color:rgba(90,170,255,.22)}
.globe-wrap.holo .globe-hint{top:14px;left:14px;bottom:auto;right:auto}
.globe-wrap.holo .globe-holo{position:absolute;pointer-events:none;z-index:0}
.globe-wrap.holo .globe{position:relative;z-index:1}
.globe-wrap.holo #g-sea,.globe-wrap.holo #g-land,.globe-wrap.holo #g-shade,.globe-wrap.holo #g-atmo{opacity:0}
.globe-wrap.holo .globe .g-grat{stroke:rgba(110,190,255,.13)}
.globe-wrap.holo .globe .gc-glow{opacity:.22}
.globe-wrap.holo .globe .gc-fill{fill:rgba(212,175,55,.10);stroke:rgba(255,220,130,.75);stroke-width:.8}
.globe-wrap.holo .globe .g-ctry.good .gc-fill{fill:rgba(80,200,120,.10)}
.globe-wrap.holo .globe .g-ctry.warn .gc-fill{fill:rgba(229,128,122,.10)}
.globe-wrap.holo .map-mode-label{background:rgba(6,20,44,.65);border-color:rgba(110,190,255,.4);color:#9fd4ff}
.globe-wrap.holo .globe-hint,.globe-wrap.holo .globe-legend{color:#9cc6ec}
.map-tabs{flex-wrap:wrap}
.map-tabs .mtab.sty{padding:9px 13px}

/* ===== SUPERFLY ZOOM ===== */
.zm-hero{display:flex;align-items:center;gap:16px;padding:18px;margin-bottom:14px;border:1px solid var(--gold-line);border-radius:var(--radius);background:radial-gradient(120% 140% at 0% 0%,rgba(var(--gold-rgb),.14),transparent 60%),var(--surface)}
.zm-hero .zm-logo{width:64px;height:64px;flex:0 0 auto;filter:drop-shadow(0 8px 18px rgba(var(--gold-rgb),.25))}
.zm-hero-t{min-width:0}
.zm-wm{display:flex;align-items:baseline;gap:8px;line-height:1}
.zm-wm b{font-size:15px;letter-spacing:.3em;font-weight:800;color:var(--white)}
.zm-wm span{font-size:15px;letter-spacing:.38em;font-weight:800;color:var(--gold)}
.zm-hero p{margin:8px 0 0;font-size:13px;color:var(--muted);line-height:1.45;max-width:60ch}
.zm-new{display:grid;gap:10px}
.zm-new-btns{display:flex;gap:10px;flex-wrap:wrap}
.zm-new-btns .btn{flex:1;min-width:180px}
.zm-list{display:flex;flex-direction:column;gap:8px}
.zm-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--bg);flex-wrap:wrap}
.zm-ri{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.zm-ri b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zm-ri span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zm-live{color:#4cd07d;font-size:12px;font-weight:600;margin-left:6px}
.zm-ra{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.icon-btn.zm-call{color:var(--gold)}
.zm-join{display:flex;align-items:center;gap:10px;margin:8px 0 2px;padding:10px 12px;border-radius:12px;text-decoration:none;color:#1a140a;background:linear-gradient(150deg,var(--gold-hi),var(--gold-lo));box-shadow:0 6px 16px -6px rgba(var(--gold-rgb),.55)}
.zm-join-i{font-size:20px}
.zm-join b{display:block;font-size:13px}
.zm-join small{display:block;font-size:12px;opacity:.8}
.zm-turn{margin:0 0 14px;padding:11px 14px;border-radius:12px;font-size:13px;line-height:1.45}
.zm-turn.ok{background:rgba(76,208,125,.08);border:1px solid rgba(76,208,125,.3)}
.zm-turn.warn{background:rgba(229,128,122,.08);border:1px solid rgba(229,128,122,.35)}

/* ===== Superfly Zoom — zpětná vazba v reportech ===== */
.zf h4{margin:0 0 8px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#efc344;font-weight:600}
.zf-empty{color:var(--muted,#9a948a);font-size:14px;line-height:1.5}
.zf-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px}
.zf-kpi>div{border:1px solid rgba(238,190,63,.18);border-radius:12px;padding:12px;background:rgba(8,35,27,.28)}
.zf-big{font-size:26px;font-weight:700;color:#f5f0e6;line-height:1.1}
.zf-st{color:#efc344;letter-spacing:1px;font-size:14px}.zf-st0{color:rgba(255,255,255,.18)}
.zf-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:14px}
.zf-dr{display:flex;align-items:center;gap:8px;font-size:13px;margin:4px 0}.zf-dr span{width:26px;color:var(--muted,#9a948a)}.zf-dr b{width:24px;text-align:right}
.zf-bar{flex:1;height:8px;border-radius:99px;background:rgba(255,255,255,.07);overflow:hidden}.zf-bar i{display:block;height:100%;background:#efc344;border-radius:99px}
.zf-tags,.zf-itags{display:flex;flex-wrap:wrap;gap:6px}.zf-itags{margin-top:6px}
.zf-tag{padding:5px 10px;border-radius:99px;font-size:12.5px;background:rgba(238,190,63,.12);border:1px solid rgba(238,190,63,.3)}
.zf-tag.neg{background:rgba(229,83,75,.12);border-color:rgba(229,83,75,.4)}.zf-tag.sm{font-size:11.5px;padding:3px 8px}
.zf-h{margin-top:6px!important}.zf-list{display:flex;flex-direction:column;gap:8px}
.zf-item{border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px;background:rgba(255,255,255,.02)}
.zf-item.low{border-color:rgba(229,83,75,.4)}
.zf-ih{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:14px}
.zf-g{font-size:10.5px;padding:2px 6px;border-radius:6px;background:rgba(255,255,255,.08);color:var(--muted,#9a948a)}
.zf-meta{margin-left:auto;font-size:12px;color:var(--muted,#9a948a)}
.zf-txt{margin-top:6px;font-size:14px;line-height:1.45;color:#e9e4da}

.zm-hero .zm-logo{width:150px;height:auto}
@media(max-width:560px){.zm-hero .zm-logo{width:120px}}
.zm-hero .zm-logo{filter:none!important;background:none!important;border:0!important;box-shadow:none!important}
/* ===== Fajfky přečtení ===== */
.msg .tick.read { color: #3fb6ff !important; }
.msg.mine .tick.read { color: #0a6fd1 !important; }

/* ===== LIQUID GLASS tlačítka (v195) — hlavní = lesklé zlaté sklo, vedlejší = tmavé sklo ===== */
.btn:not(.ghost):not(.small):not(:disabled) {
  position: relative; isolation: isolate;
  color: #2a1d07;
  background: radial-gradient(120% 150% at 30% 0%, #fff3cf 0%, var(--gold-hi) 28%, var(--gold) 62%, var(--gold-lo) 100%);
  border: 1px solid rgba(255,235,180,.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -6px 14px rgba(120,80,20,.38), 0 0 0 3px rgba(var(--gold-rgb),.10), 0 0 26px -4px rgba(var(--gold-rgb),.55), 0 10px 24px -10px rgba(0,0,0,.6);
}
.btn:not(.ghost):not(.small)::before, .btn.ghost:not(.small)::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 1px; height: 50%; border-radius: 999px 999px 40% 40%; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0));
}
.btn.ghost:not(.small) {
  position: relative; isolation: isolate;
  color: var(--white);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 55%, rgba(255,255,255,.06));
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -6px 14px rgba(0,0,0,.22), 0 10px 24px -12px rgba(0,0,0,.6);
}
.btn.ghost:not(.small)::before { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0)); }
.btn.ghost:not(.small):hover { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.05) 55%, rgba(255,255,255,.08)); border-color: rgba(var(--gold-rgb),.5); }
.btn.danger.ghost:not(.small) { color: #F0A49E; }
/* malá tlačítka v seznamech: jen jemný skleněný lesk, bez záře */
.btn.small:not(.ghost) { box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -3px 8px rgba(120,80,20,.3), 0 4px 12px -6px rgba(var(--gold-rgb),.5); }
.btn.ghost.small { box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
/* spodní lišta — vybraná položka jako zlatá skleněná pilulka */
@media (max-width: 900px) {
  .mobile-tabbar button.active {
    position: relative; isolation: isolate;
    background: radial-gradient(120% 150% at 30% 0%, #fff3cf 0%, var(--gold-hi) 30%, var(--gold) 65%, var(--gold-lo) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), inset 0 -5px 10px rgba(120,80,20,.35), 0 0 18px -2px rgba(var(--gold-rgb),.55);
  }
  .mobile-tabbar button.active::before { content: ""; position: absolute; left: 14%; right: 14%; top: 2px; height: 40%; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0)); pointer-events: none; z-index: -1; }
  .mobile-tabbar { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 34px -14px rgba(0,0,0,.55), 0 0 0 1px rgba(var(--gold-rgb),.06); }
}
/* Bordeaux: hlavní tlačítka vínové sklo */
:root[data-theme="bordeaux"] .btn:not(.ghost):not(.small):not(:disabled),
:root[data-theme="bordeaux"] .mobile-tabbar button.active {
  color: #fff4f6;
  background: radial-gradient(120% 150% at 30% 0%, #f0a9bd 0%, #b8426a 38%, #8a2446 68%, #5e1328 100%);
  border-color: rgba(255,190,210,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -6px 14px rgba(60,0,20,.5), 0 0 26px -4px rgba(190,60,100,.55), 0 10px 24px -10px rgba(0,0,0,.6);
}
:root[data-theme="bordeaux"] .mobile-tabbar button.active [data-lucide] { color: #fff4f6; }
:root[data-theme="bordeaux"] .btn:not(.ghost):not(.small)::before { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0)); }
/* Pearl (světlé): vedlejší tlačítka bílé sklo */
:root[data-theme="pearl"] .btn.ghost:not(.small) { color: var(--white); background: linear-gradient(180deg, #fff, rgba(255,255,255,.7)); border-color: rgba(0,0,0,.1); box-shadow: inset 0 1px 0 #fff, inset 0 -5px 12px rgba(0,0,0,.05), 0 8px 20px -12px rgba(0,0,0,.3); }
:root[data-theme="pearl"] .btn.ghost:not(.small)::before { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0)); }
@media (prefers-reduced-transparency: reduce) { .btn.ghost:not(.small) { -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ===== STUDIO VZHLEDU — skleněná koule + segment + tečky (v195) ===== */
.vs-card { position: relative; overflow: hidden; border-radius: 26px; padding: 30px 18px 24px; text-align: center; border: 1px solid var(--border);
  background: radial-gradient(420px 260px at 50% 25%, rgba(var(--gold-rgb), .10), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #fff 8%), var(--surface)); }
.vs-stage { position: relative; height: 210px; display: grid; place-items: center; }
.vs-orb { --o-bg: #0b0b0c; --o-sf: #1a1a1d; --o-hi: #F1DDAE; --o-c: #C9A96E; --o-lo: #9C7C45; --o-scale: 1;
  position: relative; width: 150px; height: 150px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255,255,255,.9) 0 4%, rgba(255,255,255,.35) 9%, transparent 22%),
    radial-gradient(ellipse 70% 40% at 50% 92%, color-mix(in srgb, var(--o-c) 70%, transparent), transparent 70%),
    radial-gradient(circle at 42% 38%, color-mix(in srgb, var(--o-sf) 80%, #fff 20%) 0%, var(--o-sf) 35%, var(--o-bg) 72%, #000 100%);
  box-shadow: inset 0 -22px 34px rgba(0,0,0,.5), inset 0 12px 26px rgba(255,255,255,.16), inset 0 0 0 1.5px color-mix(in srgb, var(--o-hi) 55%, transparent), 0 0 46px -6px color-mix(in srgb, var(--o-c) 45%, transparent);
  transform: perspective(600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--o-scale)); transition: box-shadow .5s ease; }
.vs-orb .vs-glint { position: absolute; left: 22%; top: 11%; width: 34%; height: 16%; border-radius: 50%; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); transform: rotate(-22deg); filter: blur(1px); }
.vs-orb .vs-rim { position: absolute; inset: -1px; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, transparent 0 20%, var(--o-hi) 32%, transparent 45%, transparent 70%, var(--o-c) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; animation: vsSpin 9s linear infinite; }

.vs-shadow { position: absolute; bottom: 8px; left: 50%; width: 120px; height: 18px; margin-left: -60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); animation: vsShadow 5.5s ease-in-out infinite; }
.vs-name { font-family: var(--font-display, Georgia, serif); font-size: 22px; font-weight: 600; color: var(--white); margin-top: 4px; }
.vs-sub { font-size: 13px; color: var(--muted); margin: 2px 0 18px; }
.vs-seg { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--border); box-shadow: inset 0 1px 3px rgba(0,0,0,.25); }
.vs-seg button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .25s; }
.vs-seg button.on { color: var(--white); }
.vs-seg .vs-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 12px rgba(0,0,0,.3); transition: transform .35s cubic-bezier(.3,1.3,.5,1), width .35s; }
:root[data-theme="pearl"] .vs-seg .vs-thumb { background: #fff; border-color: rgba(0,0,0,.06); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.vs-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.vs-dot { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -4px 8px rgba(0,0,0,.3), 0 0 0 0 transparent; transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; position: relative; color: var(--white); font-weight: 700; }
.vs-dot::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ring, transparent); border: 2px solid var(--surface); display: var(--ring-d, none); }
.vs-dot[style*="--ring"] { --ring-d: block; }
.vs-dot.txt { background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); width: 46px; }
.vs-dot:hover { transform: scale(1.08); }
.vs-dot.on { transform: scale(1.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 3px var(--surface), 0 0 0 5px var(--gold); }
@keyframes vsFloat { 0%,100% { transform: translateY(0) scale(var(--o-scale)); } 50% { transform: translateY(-10px) scale(var(--o-scale)); } }
@keyframes vsShadow { 0%,100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.82); opacity: .55; } }
@keyframes vsSpin { to { transform: rotate(360deg); } }
@keyframes vsPop { 0% { transform: scale(calc(var(--o-scale) * .86)); } 60% { transform: scale(calc(var(--o-scale) * 1.06)); } 100% { transform: scale(var(--o-scale)); } }


/* ===== REGISTRACE po krocích + zámek s válečky (v196) ===== */
.reg-dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 14px; }
.reg-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--border); transition: all .3s; }
.reg-dots i.done { background: var(--gold-line); }
.reg-dots i.on { width: 22px; background: var(--gold); box-shadow: 0 0 10px rgba(var(--gold-rgb), .5); }
.reg-h { text-align: center; font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: -.01em; margin: 6px 0 4px; }
.reg-sub { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.45; }
.inp.reg-code { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cl { --H: 34px; position: relative; width: 156px; height: 140px; margin: 4px auto 14px; border-radius: 30px; padding: 9px;
  background: linear-gradient(160deg, #5a5a5e 0%, #2b2b2e 30%, #161618 70%, #3a3a3d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 6px rgba(0,0,0,.6), 0 18px 34px -12px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.6);
  transition: box-shadow .5s ease; animation: clIn .7s cubic-bezier(.2,1.3,.4,1) both; }
.cl-in { position: relative; height: 100%; border-radius: 22px; overflow: hidden; display: flex; gap: 3px; padding: 0 6px; background: #0c0c0d; box-shadow: inset 0 4px 10px rgba(0,0,0,.9), inset 0 -4px 10px rgba(0,0,0,.9); }
.cl-reel { position: relative; flex: 1; height: 100%; overflow: hidden;
  background: linear-gradient(90deg, #111 0%, #3d3d40 22%, #58585c 50%, #3d3d40 78%, #111 100%);
  -webkit-mask: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); mask: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }
.cl-reel::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 2px, rgba(0,0,0,.12) 2px 3px); pointer-events: none; }
.cl-strip { position: absolute; left: 0; right: 0; top: calc(50% - var(--H) * 1.5); will-change: transform; }
.cl-strip b { display: block; height: var(--H); line-height: var(--H); text-align: center; font: 700 25px/var(--H) "SF Mono", ui-monospace, Menlo, monospace; color: #e9e9ea; text-shadow: 0 1px 0 #000, 0 0 6px rgba(255,255,255,.15); }
.cl-line { position: absolute; left: 4px; right: 4px; top: calc(50% - var(--H) / 2); height: var(--H); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(0,0,0,.6); pointer-events: none; }
.cl-badge { position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #1a1a1b;
  background: linear-gradient(160deg, #e8e8ea, #9a9a9e); box-shadow: inset 0 1px 0 #fff, 0 4px 10px rgba(0,0,0,.5); transition: all .4s cubic-bezier(.3,1.6,.5,1); }
.cl.ok { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 6px rgba(0,0,0,.6), 0 18px 34px -12px rgba(0,0,0,.65), 0 0 0 2px rgba(var(--gold-rgb), .9), 0 0 34px rgba(var(--gold-rgb), .55); }
.cl.ok .cl-strip b { color: #fff3cf; text-shadow: 0 0 10px rgba(var(--gold-rgb), .9); }
.cl.ok .cl-badge { color: #2a1d07; background: radial-gradient(120% 140% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); transform: rotate(-12deg) scale(1.12); box-shadow: inset 0 1px 0 #fff, 0 0 16px rgba(var(--gold-rgb), .7); }
@keyframes clIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.pw-wrap { position: relative; }
.pw-wrap .inp { padding-right: 46px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.pw-eye.on { color: var(--gold); }
.pw-wrap + .inp { margin-top: 10px; }
.pw-meter { height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; margin: 12px 2px 6px; }
.pw-meter i { display: block; height: 100%; width: 4%; border-radius: 99px; background: #e5534b; transition: width .35s ease, background .35s; }
.pw-meter[data-lv="1"] i { background: #e0894a; } .pw-meter[data-lv="2"] i { background: #e7b94a; } .pw-meter[data-lv="3"] i, .pw-meter[data-lv="4"] i { background: linear-gradient(90deg, var(--gold), #5fbf8a); }
.pw-hint { font-size: 12.5px; color: var(--muted); text-align: center; min-height: 18px; }
@media (prefers-reduced-motion: reduce) { .cl-strip { transition: none !important; } .cl { animation: none; } }

/* ===== živá koule (v197): vznáší se, uvnitř se přelévá „tekutina“, kroutí se za prstem, želé po ťuknutí ===== */
.vs-stage { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vs-float { animation: vsFloat2 5s ease-in-out infinite; will-change: transform; }
.vs-pop.pop { animation: vsPop2 .6s cubic-bezier(.3,1.6,.5,1); }
.vs-orb { animation: vsWobble 7s ease-in-out infinite; overflow: hidden; }
.vs-orb.jelly { animation: vsJelly .75s cubic-bezier(.3,1.5,.5,1), vsWobble 7s ease-in-out .75s infinite; }
.vs-liquid { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; mix-blend-mode: screen; opacity: .85; pointer-events: none; }
.vs-liquid i { position: absolute; border-radius: 50%; filter: blur(14px); }
.vs-liquid .lq1 { width: 70%; height: 55%; left: 10%; bottom: -8%; background: radial-gradient(closest-side, color-mix(in srgb, var(--o-c) 85%, transparent), transparent); animation: lq1 6s ease-in-out infinite; }
.vs-liquid .lq2 { width: 55%; height: 45%; right: -5%; top: 30%; background: radial-gradient(closest-side, color-mix(in srgb, var(--o-hi) 55%, transparent), transparent); animation: lq2 8s ease-in-out infinite; }
.vs-liquid .lq3 { width: 60%; height: 50%; left: -10%; top: 15%; background: radial-gradient(closest-side, color-mix(in srgb, var(--o-sf) 70%, #fff 30%), transparent); opacity: .45; animation: lq3 9s ease-in-out infinite; }
.vs-orb .vs-glint { transform: translate(var(--gx, 0px), var(--gy, 0px)) rotate(-22deg); transition: none; }
@keyframes vsFloat2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes vsPop2 { 0% { transform: scale(.82); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes vsWobble { 0%,100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; } 25% { border-radius: 52% 48% 49% 51% / 49% 52% 48% 51%; } 50% { border-radius: 48% 52% 52% 48% / 52% 48% 51% 49%; } 75% { border-radius: 51% 49% 48% 52% / 48% 51% 52% 49%; } }
@keyframes vsJelly { 0% { border-radius: 50%; } 20% { border-radius: 58% 42% 46% 54% / 40% 56% 44% 60%; } 40% { border-radius: 44% 56% 55% 45% / 57% 43% 58% 42%; } 60% { border-radius: 53% 47% 48% 52% / 47% 53% 46% 54%; } 100% { border-radius: 50%; } }
@keyframes lq1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(18%,-12%) scale(1.15); } 66% { transform: translate(-14%,-6%) scale(.9); } }
@keyframes lq2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30%,20%) scale(1.25); } }
@keyframes lq3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(35%,25%) scale(1.2); } }
.vs-shadow { animation: vsShadow2 5s ease-in-out infinite; }
@keyframes vsShadow2 { 0%,100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.78); opacity: .5; } }

/* ===== téma ICE — jemně modré, průhledné sklo (v197) ===== */
:root[data-theme="pearl"][data-tone="ice"] {
  --bg: #EAF1F8; --surface: rgba(255,255,255,.72); --surface-2: #E1EAF4; --border: #CFDCEA;
  --white: #12202F; --muted: #6A7E95; --muted-2: #9FB0C3;
  --shadow: 0 2px 14px rgba(40,80,130,.10);
}
:root[data-tone="ice"] body { background: radial-gradient(900px 600px at 15% -10%, rgba(150,200,245,.45), transparent 60%), radial-gradient(800px 500px at 100% 100%, rgba(185,215,245,.5), transparent 60%), #EAF1F8; }
:root[data-tone="ice"] .card, :root[data-tone="ice"] .section, :root[data-tone="ice"] .set-card, :root[data-tone="ice"] .stat-tile, :root[data-tone="ice"] .vs-card {
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
:root[data-tone="ice"] .mobile-tabbar { background: rgba(255,255,255,.55); }
:root[data-tone="ice"] .btn.ghost:not(.small) { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(225,236,248,.7)); border-color: rgba(120,160,210,.35); }
:root[data-tone="ice"] .next-move, :root[data-tone="ice"] .growth-card { background: linear-gradient(145deg, rgba(255,255,255,.85), rgba(222,234,247,.75)); border-color: rgba(180,136,46,.55); }
:root[data-tone="ice"] .motiv, :root[data-tone="ice"] .stat-tile { background: rgba(255,255,255,.6); }

/* =====================================================================
   GLASS UI (v199) — barevná mlha v pozadí, průhledné skleněné panely,
   nové menu (ikony v skleněných dlaždicích, aktivní = zlatá skleněná pilulka)
   ===================================================================== */
:root { --glass: color-mix(in srgb, var(--surface) 62%, transparent); --glass-2: color-mix(in srgb, var(--surface) 45%, transparent); --glass-line: rgba(255,255,255,.08); --glass-hi: rgba(255,255,255,.10); --aura-2: rgba(80,110,200,.16); }
:root[data-theme="emerald"] { --aura-2: rgba(40,160,110,.18); }
:root[data-theme="bordeaux"] { --aura-2: rgba(190,50,95,.20); }
:root[data-theme="midnight"] { --aura-2: rgba(70,120,230,.22); }
:root[data-theme="pearl"] { --glass: rgba(255,255,255,.62); --glass-2: rgba(255,255,255,.45); --glass-line: rgba(0,0,0,.06); --glass-hi: rgba(255,255,255,.9); --aura-2: rgba(200,170,110,.18); }
:root[data-tone="ice"] { --aura-2: rgba(110,170,240,.30); }
/* barevná mlha za vším (pomalu se pohybuje) */
body::before { content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(38% 32% at 18% 12%, rgba(var(--gold-rgb), .16), transparent 70%), radial-gradient(40% 36% at 88% 78%, var(--aura-2), transparent 70%), radial-gradient(30% 26% at 70% 8%, color-mix(in srgb, var(--aura-2) 60%, transparent), transparent 70%);
  filter: blur(10px); animation: auraDrift 28s ease-in-out infinite alternate; }
@keyframes auraDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(3%, -2%) scale(1.06); } 100% { transform: translate(-3%, 2%) scale(1.02); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }

/* --- boční menu --- */
.sidebar { background: var(--glass) !important; -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5); border-right: 1px solid var(--glass-line) !important; box-shadow: inset -1px 0 0 var(--glass-hi); padding: 14px 10px; }
.sidebar .nav-item { position: relative; min-height: 46px !important; margin: 2px 0 !important; padding: 6px 10px 6px 7px; gap: 12px; border-radius: 15px; border: 1px solid transparent; color: var(--muted); font-size: 14.5px; font-weight: 550; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.sidebar .nav-item > svg, .sidebar .nav-item > i[data-lucide] { flex: 0 0 auto; width: 34px; height: 34px; padding: 8px; border-radius: 11px; color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.05); transition: all .2s; }
.sidebar .nav-item:hover { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-color: var(--glass-line); color: var(--white); }
.sidebar .nav-item:hover > svg { color: var(--white); }
.sidebar .nav-item.active { color: var(--white); font-weight: 650;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .20), rgba(var(--gold-rgb), .07)); border-color: rgba(var(--gold-rgb), .35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 22px -12px rgba(var(--gold-rgb), .6); }
.sidebar .nav-item.active::before { content: ""; position: absolute; left: -10px; top: 50%; width: 4px; height: 22px; margin-top: -11px; border-radius: 0 4px 4px 0; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.sidebar .nav-item.active > svg { color: #2a1d07; background: radial-gradient(120% 140% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 14px -2px rgba(var(--gold-rgb), .7); }
.sidebar .nav-item .nav-badge, .sidebar .nav-item .badge { box-shadow: 0 0 0 2px rgba(0,0,0,.3), 0 0 10px rgba(229,71,63,.5); }
.side-profile { background: var(--glass-2) !important; border: 1px solid var(--glass-line) !important; border-radius: 16px !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 var(--glass-hi); }
:root[data-theme="pearl"] .sidebar .nav-item > svg { background: linear-gradient(180deg, #fff, rgba(255,255,255,.6)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.05); }
:root[data-theme="pearl"] .sidebar .nav-item.active { color: #1a1408; }
:root[data-theme="pearl"] .sidebar .nav-item:hover { background: rgba(255,255,255,.6); }

/* --- horní lišta --- */
.topbar { background: var(--glass-2); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border-bottom: 1px solid var(--glass-line) !important; position: relative; z-index: 3; }
.topbar .search input { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important; border: 1px solid var(--glass-line) !important; box-shadow: inset 0 1px 0 var(--glass-hi); }
:root[data-theme="pearl"] .topbar .search input { background: rgba(255,255,255,.8) !important; }

/* --- karty a sekce ze skla --- */
.section, .stat-tile, .set-card, .next-move, .growth-card, .motiv, .zf-kpi > div {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 60%), var(--glass) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border-color: var(--glass-line) !important; box-shadow: inset 0 1px 0 var(--glass-hi), 0 18px 40px -26px rgba(0,0,0,.6); }
.next-move { border-color: rgba(var(--gold-rgb), .35) !important; box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px rgba(var(--gold-rgb), .06), 0 24px 50px -28px rgba(var(--gold-rgb), .45) !important; }
.stat-tile-btn:hover .stat-tile { border-color: rgba(var(--gold-rgb), .35) !important; transform: translateY(-2px); }
:root[data-theme="pearl"] .section, :root[data-theme="pearl"] .stat-tile, :root[data-theme="pearl"] .set-card, :root[data-theme="pearl"] .motiv {
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.55)) !important; box-shadow: inset 0 1px 0 #fff, 0 14px 34px -24px rgba(60,50,30,.35); }

/* --- mobilní „Víc“ menu jako skleněné dlaždice --- */
@media (max-width: 900px) {
  .more-panel { background: var(--glass) !important; -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6); border-top: 1px solid rgba(var(--gold-rgb), .3) !important; box-shadow: inset 0 1px 0 var(--glass-hi), 0 -20px 50px -20px rgba(0,0,0,.6); }
  .more-back { background: rgba(0,0,0,.35) !important; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
  .more-item { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important; border: 1px solid var(--glass-line) !important; border-radius: 18px !important; box-shadow: inset 0 1px 0 var(--glass-hi); color: var(--white) !important; padding: 16px 6px !important; }
  .more-item > svg, .more-item > i[data-lucide] { width: 42px !important; height: 42px !important; padding: 10px; border-radius: 14px; color: var(--gold); background: linear-gradient(180deg, rgba(var(--gold-rgb), .18), rgba(var(--gold-rgb), .05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), inset 0 0 0 1px rgba(var(--gold-rgb), .2); }
  .more-item.active { border-color: rgba(var(--gold-rgb), .45) !important; background: linear-gradient(180deg, rgba(var(--gold-rgb), .2), rgba(var(--gold-rgb), .06)) !important; }
  .more-item.active > svg { color: #2a1d07; background: radial-gradient(120% 140% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); }
  .topbar { position: sticky; top: 0; }
}
.sidebar .nav-item.active > i[data-lucide] { background: radial-gradient(120% 140% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); }
.sidebar .nav-item > svg.lucide, .more-item > svg.lucide { stroke-width: 1.9; }
/* světlá témata: ať prosvítá barevná mlha (dřív ji zakrývalo plné pozadí) */
:root[data-theme="pearl"] #app, :root[data-theme="pearl"] .main, :root[data-theme="pearl"] .content { background: transparent !important; }
/* ICE výrazněji ledově modré */
:root[data-theme="pearl"][data-tone="ice"] { --bg: #D8E6F4; --surface: rgba(255,255,255,.58); --surface-2: rgba(230,240,250,.7); --border: rgba(110,150,200,.28); --white: #0F1E30; --muted: #5C7590; --muted-2: #8FA6BF; --aura-2: rgba(90,160,240,.45); --glass: rgba(255,255,255,.5); --glass-2: rgba(240,247,255,.45); --glass-line: rgba(120,160,210,.28); }
:root[data-tone="ice"] body { background: radial-gradient(900px 600px at 10% -10%, rgba(120,185,250,.55), transparent 60%), radial-gradient(800px 600px at 100% 100%, rgba(150,200,250,.6), transparent 60%), linear-gradient(180deg, #DCEAF7, #CFE1F3) !important; }
:root[data-tone="ice"] .sidebar { background: rgba(235,244,253,.55) !important; }
:root[data-tone="ice"] .topbar { background: rgba(240,247,255,.5) !important; }
:root[data-tone="ice"] .section, :root[data-tone="ice"] .stat-tile, :root[data-tone="ice"] .set-card, :root[data-tone="ice"] .motiv, :root[data-tone="ice"] .wg, :root[data-tone="ice"] .next-move { background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(235,244,253,.45)) !important; border-color: rgba(120,160,210,.3) !important; }
:root[data-tone="ice"] .sidebar .nav-item > svg { background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(225,238,252,.6)); color: #3f6c99; }
:root[data-tone="ice"] .mobile-tabbar { background: rgba(240,247,255,.55) !important; border-color: rgba(120,160,210,.35) !important; }

/* ===== WIDGETY NA DOMŮ + lvíček Fly (v200) ===== */
.wg-wrap { margin: 0 0 18px; }
.wg-top { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 10px; }
.wg-top span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.wg-edit { border: 1px solid var(--glass-line, var(--border)); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); color: var(--white); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.1)); }
.wg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .wg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wg { position: relative; overflow: hidden; border-radius: 24px; padding: 16px; min-height: 150px; color: var(--white);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.015) 60%), var(--glass, var(--surface));
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-line, var(--border)); box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.1)), 0 18px 40px -26px rgba(0,0,0,.6); animation: wgIn .5s cubic-bezier(.2,1.2,.4,1) both; }
.wg.wide { grid-column: span 2; }
.wg-grid .wg:nth-child(2) { animation-delay: .05s } .wg-grid .wg:nth-child(3) { animation-delay: .1s } .wg-grid .wg:nth-child(4) { animation-delay: .15s } .wg-grid .wg:nth-child(5) { animation-delay: .2s }
@keyframes wgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.wg-h { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; letter-spacing: .02em; }
.wg-empty { font-size: 13px; color: var(--muted); line-height: 1.45; }
.wg-big { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.wg-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.wg-foot { margin-top: 12px; font-size: 12px; color: var(--muted); }
.wg-who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg-cd { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(var(--gold-rgb), .12); border: 1px solid rgba(var(--gold-rgb), .25); }
.wg-join { position: absolute; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none; color: #2a1d07; background: radial-gradient(120% 150% at 30% 0%, #fff3cf, var(--gold-hi) 30%, var(--gold) 65%, var(--gold-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 16px -2px rgba(var(--gold-rgb), .6); }
.wg-goal { display: flex; align-items: center; gap: 14px; }
.wg-ring { --p: 0; flex: 0 0 auto; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255,255,255,.08) 0); -webkit-mask: radial-gradient(farthest-side, transparent 72%, #000 73%); mask: radial-gradient(farthest-side, transparent 72%, #000 73%); position: relative; }
.wg-goal .wg-ring + div { min-width: 0; }
.wg-ring b { position: absolute; font-size: 17px; }
.wg-goal { position: relative; }
.wg-goal::before { content: ""; }
.wg-goal .wg-ring b { -webkit-mask: none; }
.wg-clocks { display: grid; gap: 7px; }
.wck { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.wck span { flex: 1; color: var(--muted); white-space: nowrap; }
.wck b { font-variant-numeric: tabular-nums; font-size: 15px; }
.wck i { font-style: normal; font-size: 13px; }
.wg-bd { display: grid; gap: 8px; }
.wg-bd .bd { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.wg-bd .bd-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: #fff; flex: 0 0 auto; }
.wg-bd .bd-n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.wg-bd .bd-d { color: var(--gold); font-weight: 700; font-size: 12px; }
.wg-note { width: 100%; min-height: 90px; resize: none; border: 0; background: transparent; color: var(--white); font: inherit; font-size: 14px; line-height: 1.45; outline: none; padding: 0; }
/* lvíček */
.wgk-lion { display: flex; align-items: center; gap: 14px; min-height: 170px;
  background: radial-gradient(120% 120% at 15% 30%, rgba(var(--gold-rgb), .22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.015) 60%), var(--glass, var(--surface)); }
.ln-stage { position: relative; flex: 0 0 auto; width: 132px; height: 140px; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ln-svg { position: absolute; left: 6px; top: 4px; width: 120px; height: 122px; overflow: visible; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)); animation: lnBob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.ln-shadow { position: absolute; left: 30px; right: 30px; bottom: 6px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.4), transparent); animation: lnShadow 3.2s ease-in-out infinite; }
.ln-mane { transform-origin: 55px 56px; animation: lnMane 6s ease-in-out infinite; }
.ln-eyes { transform-origin: 55px 52px; animation: lnBlink 4.5s infinite; }
.ln-happy .ln-svg, .ln-party .ln-svg { animation: lnHop 1.6s ease-in-out infinite; }
.ln-sad .ln-svg { animation: lnSad 4s ease-in-out infinite; filter: drop-shadow(0 10px 14px rgba(0,0,0,.35)) saturate(.75); }
.ln-sleep .ln-svg { animation: lnSleep 4s ease-in-out infinite; }
.ln-z text { font: 800 12px/1 system-ui, sans-serif; fill: var(--muted); animation: lnZ 2.6s ease-in-out infinite; }
.ln-z text:nth-child(2) { animation-delay: .8s; font-size: 15px; }
.ln-crown { transform-origin: 55px 18px; animation: lnCrown 3s ease-in-out infinite; }
.ln-conf > * { animation: lnConf 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ln-conf > *:nth-child(2) { animation-delay: .3s } .ln-conf > *:nth-child(3) { animation-delay: .6s } .ln-conf > *:nth-child(4) { animation-delay: .9s }
.ln-stage.jump .ln-svg { animation: lnJump .7s cubic-bezier(.3,1.5,.5,1); }
.ln-info { flex: 1; min-width: 0; }
.ln-name { font-family: var(--font-display, Georgia, serif); font-size: 22px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ln-lvl { font-family: var(--font-body, system-ui); font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; color: #2a1d07; background: radial-gradient(120% 150% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); }
.ln-mood { font-size: 12.5px; color: var(--muted); margin: 2px 0 10px; }
.ln-bubble { position: relative; display: inline-block; max-width: 100%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; font-size: 13.5px; font-weight: 600; line-height: 1.4;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.ln-bubble.pop { animation: lnPop .45s cubic-bezier(.3,1.6,.5,1); }
.ln-dots { display: flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.ln-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ln-dots i.on { background: var(--gold); box-shadow: 0 0 8px rgba(var(--gold-rgb), .7); }
.ln-dots span { margin-left: 4px; }
:root[data-theme="pearl"] .ln-bubble { background: rgba(255,255,255,.85); border-color: rgba(0,0,0,.06); box-shadow: 0 4px 14px -6px rgba(0,0,0,.15); }
:root[data-theme="pearl"] .ln-dots i { background: rgba(0,0,0,.1); }
@keyframes lnBob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes lnHop { 0%,100% { transform: translateY(0) scale(1,1); } 30% { transform: translateY(0) scale(1.06,.94); } 55% { transform: translateY(-12px) scale(.97,1.04); } 80% { transform: translateY(0) scale(1.03,.97); } }
@keyframes lnSad { 0%,100% { transform: translateY(2px) rotate(-1deg); } 50% { transform: translateY(4px) rotate(1deg); } }
@keyframes lnSleep { 0%,100% { transform: translateY(3px) rotate(-6deg) scale(1); } 50% { transform: translateY(3px) rotate(-6deg) scale(1.03); } }
@keyframes lnShadow { 0%,100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.8); opacity: .55; } }
@keyframes lnMane { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.03); } }
@keyframes lnBlink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes lnZ { 0% { opacity: 0; transform: translate(0,4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(6px,-10px); } }
@keyframes lnCrown { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-1px); } }
@keyframes lnConf { 0%,100% { transform: translateY(0) rotate(0); opacity: 1; } 50% { transform: translateY(-6px) rotate(40deg); opacity: .6; } }
@keyframes lnJump { 0% { transform: translateY(0) scale(1); } 25% { transform: translateY(0) scale(1.12,.86); } 55% { transform: translateY(-26px) scale(.92,1.1) rotate(-6deg); } 80% { transform: translateY(0) scale(1.08,.92); } 100% { transform: translateY(0) scale(1); } }
@keyframes lnPop { 0% { transform: scale(.85); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
.wge { display: grid; gap: 8px; }
.wge-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.wge-row.on { border-color: rgba(var(--gold-rgb), .35); }
.wge-t { flex: 1; min-width: 0; } .wge-t b { display: block; font-size: 14px; } .wge-t span { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .wg-grid { gap: 10px; } .wg { padding: 14px; border-radius: 22px; min-height: 140px; } .ln-stage { width: 112px; height: 124px; } .ln-svg { width: 104px; height: 106px; } .wg-big { font-size: 19px; } .wg-ring { width: 62px; height: 62px; } }
@media (prefers-reduced-motion: reduce) { .ln-svg, .ln-mane, .ln-eyes, .ln-crown, .ln-shadow { animation-duration: 8s; } }
/* výběr jazyka v registraci */
.lang-pick { display: grid; gap: 10px; margin: 6px 0 16px; }
.lp { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--glass-line, var(--border)); color: var(--white); text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.1)); transition: transform .2s cubic-bezier(.3,1.6,.5,1), border-color .2s, box-shadow .2s; animation: wgIn .45s cubic-bezier(.2,1.2,.4,1) both; }
.lp:nth-child(2) { animation-delay: .06s } .lp:nth-child(3) { animation-delay: .12s }
.lp:hover { transform: translateY(-2px); }
.lp-f { font-size: 30px; line-height: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 6px 14px -6px rgba(0,0,0,.5); }
.lp-n { flex: 1; font-size: 16px; font-weight: 700; }
.lp-c { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: transparent; border: 1.5px solid var(--glass-line, var(--border)); }
.lp.on { border-color: rgba(var(--gold-rgb), .55); background: linear-gradient(180deg, rgba(var(--gold-rgb), .18), rgba(var(--gold-rgb), .05)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 26px -14px rgba(var(--gold-rgb), .7); }
.lp.on .lp-c { color: #2a1d07; border-color: transparent; background: radial-gradient(120% 150% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); }

/* ===== lvíček Fly — plstěný obrázek (v200) ===== */
.ln-brand { position: absolute; left: 16px; top: 13px; display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .3em; color: var(--gold); opacity: .9; }
.ln-brand img { height: 15px; width: auto; }
.wgk-lion { padding-top: 34px; border: 1.5px solid rgba(var(--gold-rgb), .55) !important; box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.1)), 0 0 0 1px rgba(var(--gold-rgb), .08), 0 20px 44px -26px rgba(var(--gold-rgb), .55) !important; }
.ln-stage { width: 160px; height: 142px; }
.ln-body { position: absolute; left: 0; right: 0; top: 0; height: 134px; display: block; transform-origin: 50% 92%; will-change: transform; animation: lnBreath 3.6s ease-in-out infinite; }
.ln-img { position: absolute; left: 0; top: 0; width: 160px; height: 134px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); -webkit-user-drag: none; user-select: none; }
.ln-fx { position: absolute; inset: 0; width: 160px; height: 134px; overflow: visible; pointer-events: none; }
.ln-shadow { left: 26px; right: 26px; bottom: 2px; }
.ln-happy .ln-body, .ln-party .ln-body { animation: lnHop2 1.8s ease-in-out infinite; }
.ln-sad .ln-img { filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)) saturate(.7) brightness(.92); }
.ln-sleep .ln-body { animation: lnBreath 4.2s ease-in-out infinite; }
.ln-stage.jump .ln-body { animation: lnJump .7s cubic-bezier(.3,1.5,.5,1); }
.ln-cloud { animation: lnCrown 3s ease-in-out infinite; transform-origin: 128px 16px; }
@keyframes lnBreath { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.025,.975) translateY(1px); } }
@keyframes lnHop2 { 0%,100% { transform: translateY(0) scale(1,1); } 25% { transform: translateY(0) scale(1.05,.95); } 50% { transform: translateY(-10px) scale(.97,1.03); } 75% { transform: translateY(0) scale(1.02,.98); } }
.ln-eyes.blink { transform: scaleY(.1); }
@media (max-width: 600px) { .ln-stage { width: 132px; height: 120px; } .ln-body { height: 112px; } .ln-img, .ln-fx { width: 132px; height: 112px; } .wgk-lion { gap: 10px; } .ln-name { font-size: 20px; } }

/* ===== RYCHLOST (v200): méně náročných efektů, ať nic neseká ===== */
body::before { animation: none !important; filter: none !important; inset: 0 !important; }
@media (max-width: 900px), (hover: none) {
  .section, .stat-tile, .set-card, .next-move, .growth-card, .motiv, .wg, .zf-kpi > div, .vs-card, .lp {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .section, .stat-tile, .set-card, .growth-card, .motiv, .wg, .zf-kpi > div {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 60%), color-mix(in srgb, var(--surface) 86%, transparent) !important; }
  :root[data-theme="pearl"] .section, :root[data-theme="pearl"] .stat-tile, :root[data-theme="pearl"] .set-card, :root[data-theme="pearl"] .motiv, :root[data-theme="pearl"] .wg { background: rgba(255,255,255,.82) !important; }
  .btn.ghost:not(.small) { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .wg { animation: none; }
}
.content, .chat-msgs, #msgs { -webkit-overflow-scrolling: touch; }
.wg { contain: layout paint; }

/* ===== LIQUID LOGIN (v200) ===== */
.login-wrap { position: relative; overflow: hidden; }
.login-wrap::before, .login-wrap::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform; }
.login-wrap::before { left: -140px; top: -120px; background: radial-gradient(closest-side, rgba(var(--gold-rgb), .32), transparent 70%); animation: lgBlobA 16s ease-in-out infinite alternate; }
.login-wrap::after { right: -160px; bottom: -160px; background: radial-gradient(closest-side, var(--aura-2, rgba(80,110,200,.25)), transparent 70%); animation: lgBlobB 19s ease-in-out infinite alternate; }
@keyframes lgBlobA { to { transform: translate(120px, 90px) scale(1.15); } }
@keyframes lgBlobB { to { transform: translate(-110px, -80px) scale(1.1); } }
.login-wrap .card { position: relative; z-index: 1; max-width: 420px; border-radius: 32px; padding: 34px 28px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.025) 55%), color-mix(in srgb, var(--surface) 55%, transparent);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(var(--gold-rgb), .08), 0 40px 80px -30px rgba(0,0,0,.75), 0 0 60px -20px rgba(var(--gold-rgb), .35); }
.login-wrap .card::before { content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), .8), transparent); }
.login-wrap .brandmark .logo-badge { width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 22px -4px rgba(var(--gold-rgb), .7); }
.login-wrap .login-title { font-size: 38px; letter-spacing: .14em; font-weight: 800; background: linear-gradient(180deg, #fff, rgba(255,255,255,.7)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="pearl"] .login-wrap .login-title { background: linear-gradient(180deg, #1a1408, #5a4a2a); -webkit-background-clip: text; background-clip: text; }
.login-wrap .auth-switch { position: relative; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 4px; box-shadow: inset 0 1px 3px rgba(0,0,0,.35); }
.login-wrap .auth-switch button { border-radius: 999px; padding: 10px; font-size: 13.5px; }
.login-wrap .auth-switch button.active { color: var(--white); background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 16px -8px rgba(0,0,0,.6); }
.login-wrap .inp { border-radius: 16px; padding: 14px 16px; font-size: 15px; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.08)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 2px 6px rgba(0,0,0,.25), 0 1px 0 rgba(255,255,255,.05); transition: border-color .2s, box-shadow .2s; }
.login-wrap .inp:focus { border-color: rgba(var(--gold-rgb), .65); box-shadow: inset 0 2px 6px rgba(0,0,0,.2), 0 0 0 4px rgba(var(--gold-rgb), .14); }
.login-wrap .lbl { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.login-wrap .btn.full { height: 52px; font-size: 15.5px; margin-top: 16px; }
.login-wrap .auth-lang { background: rgba(0,0,0,.2); border-color: rgba(255,255,255,.1); }
.login-wrap .auth-lang button.on { background: linear-gradient(180deg, rgba(var(--gold-rgb), .3), rgba(var(--gold-rgb), .12)); color: var(--white); }
.login-wrap .card.fade-in { animation: lgIn .6s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes lgIn { from { opacity: 0; transform: translateY(16px) scale(.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
:root[data-theme="pearl"] .login-wrap .card { background: rgba(255,255,255,.62); border-color: rgba(0,0,0,.06); }
:root[data-theme="pearl"] .login-wrap .inp { background: rgba(255,255,255,.8); box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }
@media (prefers-reduced-motion: reduce) { .login-wrap::before, .login-wrap::after { animation: none; } }
.ln-img { opacity: 0; transition: opacity .12s linear; }
.ln-img.on { opacity: 1; }
.ln-z text { fill: var(--gold) !important; font-size: 15px !important; opacity: .9; }
.ln-z text:nth-child(3) { font-size: 20px !important; }
@media (min-width: 601px) { .ln-stage { width: 180px; height: 156px; } .ln-body { height: 150px; } .ln-img, .ln-fx { width: 180px; height: 150px; } }

/* ===== TUTORIAL s lvíčkem (v200) ===== */
.tour { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(5,6,10,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: tourIn .3s ease both; }
.tour.out { animation: tourOut .3s ease both; }
@keyframes tourIn { from { opacity: 0; } } @keyframes tourOut { to { opacity: 0; } }
.tour-card { position: relative; width: min(400px, 100%); border-radius: 32px; padding: 26px 22px 20px; text-align: center; color: var(--white);
  background: radial-gradient(120% 70% at 50% 0%, rgba(var(--gold-rgb), .2), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02)), color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1.5px solid rgba(var(--gold-rgb), .45); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 40px 80px -30px rgba(0,0,0,.8), 0 0 50px -20px rgba(var(--gold-rgb), .5); }
.tour-card.in-r { animation: tourR .4s cubic-bezier(.2,1.1,.3,1) both; } .tour-card.in-l { animation: tourL .4s cubic-bezier(.2,1.1,.3,1) both; }
.tour-card:not(.in-r):not(.in-l) { animation: lgIn .5s cubic-bezier(.2,1.1,.3,1) both; }
@keyframes tourR { from { opacity: 0; transform: translateX(40px) scale(.97); } } @keyframes tourL { from { opacity: 0; transform: translateX(-40px) scale(.97); } }
.tour-skip { position: absolute; top: 14px; right: 16px; border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.tour-lion { position: relative; width: 190px; height: 168px; margin: 0 auto 6px; animation: lnBreath 3.4s ease-in-out infinite; transform-origin: 50% 90%; }
.tour-lion img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(0,0,0,.4)); }
.tour-conf { position: absolute; inset: -10px; background: radial-gradient(circle at 15% 20%, #ffd36b 0 4px, transparent 5px), radial-gradient(circle at 85% 25%, #e05a7a 0 4px, transparent 5px), radial-gradient(circle at 10% 70%, #7fd1b0 0 3px, transparent 4px), radial-gradient(circle at 90% 65%, #8fa8ff 0 3px, transparent 4px); animation: lnConf 1.6s ease-in-out infinite; }
.tour-t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 4px 0 8px; }
.tour-d { font-size: 14.5px; line-height: 1.55; color: var(--muted); min-height: 66px; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0; }
.tour-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--border); transition: all .3s; }
.tour-dots i.done { background: rgba(var(--gold-rgb), .45); } .tour-dots i.on { width: 22px; background: var(--gold); box-shadow: 0 0 10px rgba(var(--gold-rgb), .6); }
.tour-btns { display: flex; gap: 10px; } .tour-btns .btn { flex: 1; height: 50px; border-radius: 999px; }

/* ===== návod „Přidat na plochu“ (v201) ===== */
.ig { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 18px; background: rgba(5,7,12,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: tourIn .3s ease both; }
.ig.out { animation: tourOut .3s ease both; }
.ig-card { position: relative; width: min(410px, 100%); max-height: calc(100dvh - 90px); overflow: auto; border-radius: 32px; padding: 24px 20px 16px; text-align: center; color: #F3EFE7;
  background: radial-gradient(120% 60% at 50% 0%, rgba(201,169,110,.22), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02)), rgba(18,20,30,.88);
  border: 1.5px solid rgba(201,169,110,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 40px 80px -30px rgba(0,0,0,.8), 0 0 50px -20px rgba(201,169,110,.5); animation: lgIn .5s cubic-bezier(.2,1.1,.3,1) both; }
.ig-icon { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin: 2px auto 10px; animation: lnBreath 3.4s ease-in-out infinite; }
.ig-icon img { width: 86px; height: 86px; border-radius: 20px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); }
.ig-icon span { font-size: 12px; font-weight: 600; color: #ddd; }
.ig-h { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.ig-sub { font-size: 13.5px; line-height: 1.5; color: #a59f95; margin-bottom: 14px; }
.ig-steps { display: grid; gap: 9px; text-align: left; margin: 12px 0 8px; }
.ig-st { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); animation: wgIn .45s cubic-bezier(.2,1.2,.4,1) both; }
.ig-n { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #2a1d07; background: radial-gradient(120% 150% at 30% 0%, #fff3cf, #F1DDAE 35%, #C9A96E 70%, #9C7C45); }
.ig-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #0a84ff; font-size: 18px; font-weight: 800; background: rgba(255,255,255,.92); box-shadow: 0 4px 10px -4px rgba(0,0,0,.5); }
.ig-tx { display: flex; flex-direction: column; min-width: 0; } .ig-t { font-size: 14.5px; font-weight: 600; } .ig-t b { color: #F1DDAE; } .ig-tx small { font-size: 12px; color: #a59f95; margin-top: 2px; }
.ig-later { display: block; margin: 10px auto 2px; border: 0; background: none; color: #a59f95; font-size: 13px; text-decoration: underline; }
.ig .btn.full { margin: 4px 0 6px; }
.ig-arrow { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); font-size: 34px; font-weight: 800; color: #F1DDAE; text-shadow: 0 0 18px rgba(201,169,110,.8); animation: igBounce 1.2s ease-in-out infinite; }
.ig-arrow.up { top: 6px; bottom: auto; left: auto; right: 22px; transform: none; animation-name: igBounceUp; }
@keyframes igBounce { 50% { transform: translate(-50%, 8px); } } @keyframes igBounceUp { 50% { transform: translateY(-8px); } }
.ig [hidden], .btn[hidden] { display: none !important; }

/* ===== START APPKY — lvíček Fly naskočí (v202) ===== */
#superfly-splash { background: radial-gradient(70% 55% at 50% 42%, #1c2440 0%, #0b0d16 60%, #050608 100%) !important; transition: opacity .6s ease, visibility .6s ease, transform .6s ease !important; }
#superfly-splash.is-hidden { transform: scale(1.04); }
#superfly-splash:before { background: radial-gradient(circle at 50% 40%, rgba(225,177,45,.16), transparent 30%) !important; }
.splash-orbit, .splash-glow-b { display: none !important; }
.splash-glow-a { width: 240px !important; height: 240px !important; transform: translateY(-40px); }
.splash-brand { gap: 8px !important; animation: none !important; }
.sp-lion { position: relative; width: clamp(170px, 46vw, 230px); aspect-ratio: 545 / 492; animation: spDrop .9s cubic-bezier(.3,1.4,.5,1) both; transform-origin: 50% 95%; }
.sp-lion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgba(0,0,0,.5)); }
.sp-b { opacity: 0; animation: spBlink 2.6s steps(1) 1.1s infinite; }
.sp-a { animation: spBlinkA 2.6s steps(1) 1.1s infinite; }
.sp-shadow { position: absolute; left: 22%; right: 22%; bottom: -6px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); animation: spShadow .9s cubic-bezier(.3,1.4,.5,1) both; }
.sp-word { display: flex; gap: .02em; letter-spacing: .14em !important; animation: none !important; font-weight: 600; background: linear-gradient(180deg, #fff1c4, #e2b04a 60%, #b8862c); -webkit-background-clip: text; background-clip: text; }
.sp-word span { display: inline-block; color: transparent; background: inherit; -webkit-background-clip: text; background-clip: text; opacity: 0; animation: spLetter .5s cubic-bezier(.3,1.5,.5,1) both; }
.sp-word span:nth-child(1){animation-delay:.55s}.sp-word span:nth-child(2){animation-delay:.6s}.sp-word span:nth-child(3){animation-delay:.65s}.sp-word span:nth-child(4){animation-delay:.7s}.sp-word span:nth-child(5){animation-delay:.75s}.sp-word span:nth-child(6){animation-delay:.8s}.sp-word span:nth-child(7){animation-delay:.85s}.sp-word span:nth-child(8){animation-delay:.9s}
.sp-cap { animation: splashCaptionIn .6s ease 1.05s both !important; color: #b9a77e !important; }
@keyframes spDrop { 0% { opacity: 0; transform: translateY(-60px) scale(.7); } 55% { opacity: 1; transform: translateY(6px) scale(1.08,.9); } 75% { transform: translateY(-6px) scale(.97,1.03); } 100% { transform: none; } }
@keyframes spShadow { 0% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.1); } 100% { transform: none; } }
@keyframes spLetter { from { opacity: 0; transform: translateY(14px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes spBlink { 0%, 88% { opacity: 0; } 90%, 96% { opacity: 1; } }
@keyframes spBlinkA { 0%, 88% { opacity: 1; } 90%, 96% { opacity: 0; } }
/* ===== UVÍTACÍ OBRAZOVKA (jako Duolingo) ===== */
.welcome { text-align: center; padding-top: 44px !important; }
.wl-lion { position: relative; width: min(240px, 64vw); aspect-ratio: 545 / 492; margin: 0 auto 6px; animation: spDrop .9s cubic-bezier(.3,1.4,.5,1) both; transform-origin: 50% 95%; }
.wl-lion img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: drop-shadow(0 18px 22px rgba(0,0,0,.5)); transition: opacity .12s linear; }
.wl-lion img.on { opacity: 1; }
.wl-lion i { position: absolute; left: 24%; right: 24%; bottom: -8px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.5), transparent); }
.wl-lion img.on { animation: lnBreath 3.4s ease-in-out infinite; transform-origin: 50% 92%; }
.wl-title { font-family: Georgia, "Times New Roman", serif; font-size: 40px; font-weight: 600; letter-spacing: .16em; margin-top: 14px; background: linear-gradient(180deg, #fff1c4, #e2b04a 60%, #b8862c); -webkit-background-clip: text; background-clip: text; color: transparent; animation: spLetter .6s cubic-bezier(.3,1.5,.5,1) .35s both; }
.wl-sub { font-size: 12px; font-weight: 800; letter-spacing: .6em; margin-left: .6em; color: var(--gold); opacity: .85; animation: splashCaptionIn .6s ease .6s both; }
.wl-tag { min-height: 46px; margin: 16px 6px 20px; font-size: 16px; line-height: 1.45; color: var(--white); font-weight: 600; }
.wl-tag.in { animation: lnPop .45s cubic-bezier(.3,1.6,.5,1); }
.welcome .btn.full { margin-top: 10px !important; height: 54px; font-size: 15.5px; }
.wl-terms { margin-top: 16px; font-size: 12px; } .wl-terms a { color: var(--muted); }
/* v203: lvíček jen ve widgetu — start, uvítání a průvodce mají logo Superfly */
.sp-logo { width: clamp(120px, 36vw, 170px); aspect-ratio: 1; border-radius: 24%; overflow: hidden; box-shadow: 0 0 0 1px rgba(240,195,68,.35), 0 18px 40px -12px rgba(0,0,0,.7), 0 0 60px -6px rgba(215,166,39,.45); animation: spDrop .9s cubic-bezier(.3,1.4,.5,1) both; }
.sp-logo img { width: 100%; height: 100%; display: block; }
.wl-logo { width: min(150px, 42vw); aspect-ratio: 1; margin: 6px auto 0; border-radius: 24%; overflow: hidden; box-shadow: 0 0 0 1px rgba(240,195,68,.35), 0 22px 44px -14px rgba(0,0,0,.75), 0 0 60px -10px rgba(215,166,39,.5); animation: spDrop .9s cubic-bezier(.3,1.4,.5,1) both, splashFloat 4s ease-in-out 1s infinite; }
.wl-logo img { width: 100%; height: 100%; display: block; }
.tour-logo { position: relative; width: 110px; height: 110px; margin: 4px auto 14px; border-radius: 24%; box-shadow: 0 0 0 1px rgba(240,195,68,.35), 0 18px 36px -12px rgba(0,0,0,.7), 0 0 44px -8px rgba(215,166,39,.5); animation: splashFloat 4s ease-in-out infinite; }
.tour-logo img { width: 100%; height: 100%; display: block; border-radius: 24%; }
/* Fly: bublina je klikací + seznam „co se děje“ (v204) */
button.ln-bubble { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ln-bubble.has-go { padding-right: 30px; border-color: rgba(var(--gold-rgb), .45); }
.ln-go { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--gold); font-weight: 800; }
.ln-feed { display: grid; gap: 6px; margin-top: 12px; }
.ln-fi { text-align: left; border: 1px solid var(--glass-line, var(--border)); background: rgba(255,255,255,.04); color: var(--white); border-radius: 12px; padding: 7px 10px; font-size: 12.5px; line-height: 1.35; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, border-color .2s; }
.ln-fi:hover { background: rgba(var(--gold-rgb), .12); border-color: rgba(var(--gold-rgb), .4); }
:root[data-theme="pearl"] .ln-fi { background: rgba(255,255,255,.7); }
/* ===== FLY mini appka (/fly) ===== */
body.fly-mode #app { overflow-y: auto; }
.fly-app { min-height: 100%; max-width: 520px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--white); }
.fly-top { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .32em; color: var(--gold); margin: 6px 0 4px; } .fly-top img { height: 16px; }
.ln-stage.fly-big { width: min(300px, 78vw); height: auto; aspect-ratio: 545 / 470; margin: 6px auto 0; }
.fly-big .ln-body { height: 100%; } .fly-big .ln-img, .fly-big .ln-fx { width: 100% !important; height: 100% !important; }
.fly-name { font-family: var(--font-display, Georgia, serif); font-size: 30px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.fly-bubble { width: 100%; margin: 12px 0 4px; font-size: 16px !important; padding: 14px 34px 14px 16px !important; border-radius: 20px 20px 20px 6px !important; min-height: 56px; }
.fly-dots { justify-content: center; }
.fly-h { align-self: flex-start; margin: 22px 4px 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.fly-feed { width: 100%; display: grid; gap: 8px; }
.fly-fi { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--glass-line, var(--border)); color: var(--white); font: inherit; font-size: 14px; line-height: 1.4;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)), color-mix(in srgb, var(--surface) 80%, transparent); box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.1)); animation: wgIn .4s cubic-bezier(.2,1.2,.4,1) both; }
.fly-fi span { flex: 1; } .fly-fi b { color: var(--gold); font-size: 20px; }
.fly-empty { color: var(--muted); font-size: 14px; padding: 10px; }
.fly-open { margin-top: 20px; text-decoration: none; height: 52px; }
.wg.wgk-lion { grid-column: 1 / -1; }
.wgk-lion .ln-info { max-width: 640px; }
@media (min-width: 900px) { .wgk-lion .ln-feed { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

/* ===== Motivační cíl — formulář (v205) ===== */
.goal-maker { border-color: rgba(var(--gold-rgb), .35) !important; background: radial-gradient(120% 80% at 0% 0%, rgba(var(--gold-rgb), .14), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.012) 60%), var(--glass, var(--surface)) !important; }
.gm-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.gm-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: radial-gradient(120% 140% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 22px -4px rgba(var(--gold-rgb), .7); }
.gm-head h3 { margin: 2px 0 4px; font-size: 22px; }
.gm-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.gm-firm { display: inline-block; margin-left: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--gold); background: rgba(var(--gold-rgb), .12); border: 1px solid rgba(var(--gold-rgb), .3); }
.gper-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.18); border: 1px solid var(--glass-line, var(--border)); }
.gper-row .seg { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; display: contents; }
.gper-row .seg button { flex: 1 1 auto; border-radius: 12px; }
#ge-per, #ge-per2 { display: inline-flex; margin: 0 6px 6px 0 !important; }

/* ===== Odhalení nového cíle pro tým ===== */
.gr { position: fixed; inset: 0; z-index: 260; display: grid; place-items: center; padding: 18px; background: rgba(4,5,9,.66); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: tourIn .3s ease both; }
.gr.out { animation: tourOut .3s ease both; }
.gr-card { position: relative; overflow: hidden; width: min(430px, 100%); border-radius: 34px; padding: 30px 22px 20px; text-align: center; color: #F5EFE2;
  background: radial-gradient(120% 70% at 50% 0%, rgba(201,169,110,.32), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02)), rgba(16,18,28,.92);
  border: 1.5px solid rgba(231,190,100,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 40px 90px -30px rgba(0,0,0,.85), 0 0 70px -16px rgba(231,190,100,.6); animation: grIn .7s cubic-bezier(.2,1.3,.3,1) both; }
@keyframes grIn { from { opacity: 0; transform: translateY(30px) scale(.86) rotate(-2deg); } to { opacity: 1; transform: none; } }
.gr-rays { position: absolute; left: 50%; top: -160px; width: 520px; height: 520px; margin-left: -260px; pointer-events: none; opacity: .35; background: repeating-conic-gradient(from 0deg, rgba(255,220,140,.35) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%); animation: grSpin 18s linear infinite; }
@keyframes grSpin { to { transform: rotate(360deg); } }
.gr-top { position: relative; font-size: 12px; font-weight: 800; letter-spacing: .24em; color: #F1DDAE; }
.gr-label { position: relative; font-size: 22px; font-weight: 800; margin-top: 10px; }
.gr-amt { position: relative; margin-top: 10px; font-size: 52px; font-weight: 900; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff6d6, #F1C35A 55%, #b8862c); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgba(241,195,90,.25); }
.gr-amt small { font-size: 22px; }
.gr-per { position: relative; margin-top: 6px; font-size: 13px; color: #b9b0a0; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.gr-prize { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; margin: 18px 0 4px; padding: 14px; border-radius: 20px; background: linear-gradient(180deg, rgba(241,195,90,.2), rgba(241,195,90,.06)); border: 1px solid rgba(241,195,90,.45); animation: wgIn .5s cubic-bezier(.2,1.2,.4,1) .5s both; }
.gr-trophy { font-size: 34px; animation: lnHop2 1.8s ease-in-out infinite; }
.gr-prize small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #F1DDAE; font-weight: 800; }
.gr-prize b { font-size: 16.5px; }
.gr-prog { position: relative; margin-top: 16px; }
.gr-bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.gr-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #b8862c, #F1C35A, #fff0c0); box-shadow: 0 0 14px rgba(241,195,90,.8); transition: width 1.2s cubic-bezier(.2,.9,.3,1); }
.gr-pt { margin-top: 6px; font-size: 12.5px; color: #b9b0a0; }
.gr-hint { position: relative; margin: 14px 4px 14px; font-size: 14px; color: #ddd3c2; }
.gr .btn.full { height: 54px; font-size: 16px; }
/* ===== Fly widget na plochu — návod (v207) ===== */
.ln-pin { position: absolute; right: 14px; top: 11px; z-index: 2; border: 1px solid rgba(var(--gold-rgb), .4); background: rgba(var(--gold-rgb), .12); color: var(--gold); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.fwg-sub { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.fwg-prev { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 26px; margin-bottom: 14px; background: linear-gradient(160deg, #1f2a4d, #0b0d16); box-shadow: 0 16px 34px -16px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12); color: #fff; }
.fwg-prev img { width: 96px; height: auto; }
.fwg-prev small { display: block; font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #E7C27A; margin-bottom: 4px; }
.fwg-prev b { display: block; font-size: 14px; line-height: 1.3; }
.fwg-prev span { display: block; margin-top: 6px; font-size: 11px; color: #E7C27A; }
.fwg-note { font-size: 13px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .3); margin-bottom: 12px; }
.fwg-st { display: flex; gap: 12px; padding: 12px; border-radius: 16px; margin-bottom: 8px; border: 1px solid var(--glass-line, var(--border)); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); }
.fwg-n { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #2a1d07; background: radial-gradient(120% 150% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); }
.fwg-tx { flex: 1; font-size: 14px; line-height: 1.5; } .fwg-tx b { color: var(--gold); }
.fwg-b { margin-top: 8px; text-decoration: none; display: inline-flex; }
.fwg-b.ok { background: linear-gradient(180deg, #6ee7a3, #2e9d63) !important; color: #06210f !important; }
.fwg-row { display: flex; gap: 8px; flex-wrap: wrap; }
.fwg-tip { font-size: 13px; color: var(--muted); margin: 6px 2px 10px; line-height: 1.5; }
.fwg-renew { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 4px 0 8px; }
/* Zeptej se Flyho */
.fly-ask { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 4px 4px 14px; border-radius: 999px; border: 1px solid var(--glass-line, var(--border)); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.1)); transition: border-color .2s, box-shadow .2s; }
.fly-ask:focus-within { border-color: rgba(var(--gold-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .12); }
.fly-ask input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--white); font: inherit; font-size: 14px; outline: none; padding: 7px 0; }
.fly-ask button { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 0; font-size: 16px; font-weight: 900; color: #2a1d07; background: radial-gradient(120% 150% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); box-shadow: 0 0 12px -2px rgba(var(--gold-rgb), .6); }
.fly-ask.busy button { opacity: .5; }
.ln-bubble.thinking { min-width: 70px; }
.fly-dots { display: inline-flex; gap: 4px; } .fly-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: sfDot 1.2s ease-in-out infinite; } .fly-dots i:nth-child(2) { animation-delay: .15s } .fly-dots i:nth-child(3) { animation-delay: .3s }
@keyframes sfDot { 0%,80%,100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.fly-app .fly-ask { width: 100%; }

/* ===== CHATY — nový seznam (v208) ===== */
.cl2 { padding-top: 14px; }
.cl-head { display: flex; align-items: center; gap: 10px; margin: 2px 2px 14px; }
.cl-title { flex: 1; margin: 0; font-family: var(--font-display, Georgia, serif); font-size: 32px; font-weight: 600; letter-spacing: -.01em; }
.cl-stack { display: flex; align-items: center; }
.cl-st { position: relative; margin-left: -10px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg); }
.cl-st:first-child { margin-left: 0; }
.cl-st .avatar { width: 30px !important; height: 30px !important; font-size: 12px !important; }
.cl-onl { margin-left: 8px; font-size: 11.5px; font-weight: 700; color: #5fd08f; white-space: nowrap; }
.cl-round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,235,180,.6); color: #2a1d07; background: radial-gradient(120% 150% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 16px -4px rgba(var(--gold-rgb), .7); }
.cl-round.ghost { color: var(--white); border-color: var(--glass-line, var(--border)); background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.12)); }
.cl-round [data-lucide], .cl-round svg { width: 19px; height: 19px; }
.cl-search { border-radius: 999px !important; padding: 12px 16px !important; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)) !important; border: 1px solid var(--glass-line, var(--border)) !important; box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.08)); }
.cl-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px 0 8px; padding-bottom: 2px; }
.cl-chips::-webkit-scrollbar { display: none; }
.cl-chips .ctab { flex: 0 0 auto; border-radius: 999px !important; padding: 8px 15px !important; font-size: 13.5px; font-weight: 600; border: 1px solid var(--glass-line, var(--border)) !important; background: rgba(255,255,255,.04) !important; color: var(--muted) !important; }
.cl-chips .ctab.on { color: var(--white) !important; background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.06)) !important; border-color: rgba(255,255,255,.2) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -8px rgba(0,0,0,.6); }
.cl-chips .ctab b { margin-left: 4px; padding: 1px 6px; border-radius: 999px; font-size: 11px; color: #2a1d07; background: var(--gold); }
.cl2 .conv-sec { margin: 14px 4px 4px; }
.cl2 .conv-item { border-bottom: 0 !important; border-radius: 18px; padding: 10px 10px !important; margin: 2px 0; gap: 13px; transition: background .2s; }
.cl2 .conv-item:hover { background: rgba(255,255,255,.04) !important; }
.cl2 .conv-item.unread { background: linear-gradient(90deg, rgba(var(--gold-rgb), .08), transparent) !important; }
.cl2 .conv-item .avatar, .cl2 .conv-ava { width: 54px !important; height: 54px !important; }
.cl-av { position: relative; flex: 0 0 auto; display: inline-flex; }
.cl-on { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #3ecf7a; box-shadow: 0 0 0 2.5px var(--bg), 0 0 8px rgba(62,207,122,.7); }
.cl-st .cl-on { width: 9px; height: 9px; right: -1px; bottom: -1px; }
.cl2 .conv-n { font-size: 15.5px; }
.cl2 .conv-last { font-size: 13.5px; margin-top: 3px; }
.cl-you { color: var(--muted-2, var(--muted)); }
.cl2 .conv-badge { box-shadow: 0 0 10px -2px rgba(var(--gold-rgb), .7); }
.cl-dot-space { width: 0; }
/* konverzace: plovoucí skleněné psaní a hlavička */
.chat-header { background: var(--glass-2, var(--surface)); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border-bottom: 1px solid var(--glass-line, var(--border)) !important; }
.composer { border-top: 0 !important; background: transparent; }
.composer .inp-wrap { border-radius: 999px !important; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)), var(--glass, var(--surface)) !important; border: 1px solid var(--glass-line, var(--border)) !important; box-shadow: inset 0 1px 0 var(--glass-hi, rgba(255,255,255,.1)), 0 10px 26px -14px rgba(0,0,0,.7); }
.composer .round { background: radial-gradient(120% 150% at 30% 0%, #fff3cf, var(--gold-hi) 35%, var(--gold) 70%, var(--gold-lo)) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 16px -4px rgba(var(--gold-rgb), .7); }
.bubble { border-radius: 20px !important; }
.msg.mine .bubble { background: radial-gradient(130% 160% at 20% 0%, #fff3cf, var(--gold-hi) 30%, var(--gold) 75%) !important; border-bottom-right-radius: 6px !important; box-shadow: 0 6px 16px -10px rgba(var(--gold-rgb), .8); }
.msg:not(.mine) .bubble { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)), var(--surface-2) !important; border: 1px solid var(--glass-line, var(--border)) !important; border-bottom-left-radius: 6px !important; }
:root[data-theme="pearl"] .msg:not(.mine) .bubble { background: #fff !important; }
.cl-chips { flex-wrap: nowrap !important; }

/* ============ 💼 KLIENTSKÁ ZÓNA ============ */
.kz{display:flex;flex-direction:column;gap:10px;padding-bottom:30px}
.kz .up{color:#4ADE80}.kz .dn,.kz-d .dn{color:#FF7A70}.kz-d .up,.kz-live .up{color:#4ADE80}.kz-live .dn{color:#FF7A70}
[data-theme=pearl] .kz .up,[data-theme=pearl] .kz-d .up{color:#159947}
.kz-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;padding:20px;border-radius:26px;background:linear-gradient(135deg,rgba(231,194,122,.16),rgba(255,255,255,.04));border:1px solid rgba(231,194,122,.28);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.kz-eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--gold,#E7C27A)}
.kz-big{font-size:34px;font-weight:800;letter-spacing:-.02em;margin-top:4px}.kz-big small{font-size:15px;font-weight:600;opacity:.6}
.kz-sums{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.kz-sum{display:inline-flex;gap:8px;align-items:center;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.07);font-size:13px}.kz-sum i{font-style:normal;font-weight:800}
.kz-add{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-radius:999px;border:0;font-weight:800;font-size:14px;color:#1a1408;background:linear-gradient(180deg,#f6dc9a,#c9a35f);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 8px 22px rgba(201,163,95,.35);cursor:pointer}
.kz-add svg{width:18px;height:18px}
.kz-alert{padding:12px 16px;border-radius:16px;background:rgba(124,196,255,.12);border:1px solid rgba(124,196,255,.3);font-weight:600;font-size:14px}
.kz-sec{display:flex;align-items:center;gap:10px;margin-top:10px;padding:0 4px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.kz-sec small{text-transform:none;letter-spacing:0;font-weight:500;opacity:.6}
.kz-link{margin-left:auto;background:none;border:0;color:var(--gold,#E7C27A);font-weight:800;font-size:13px;cursor:pointer;text-transform:none;letter-spacing:0}
.kz-promos{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:none}.kz-promos::-webkit-scrollbar{display:none}
.kz-promo{flex:0 0 auto;width:min(290px,80vw);display:flex;gap:12px;align-items:center;text-align:left;padding:14px;border-radius:20px;border:1px solid rgba(255,255,255,.1);background:linear-gradient(135deg,rgba(255,255,255,.09),rgba(255,255,255,.03));color:inherit;cursor:pointer;font:inherit}
.kz-promo.sug{border-style:dashed;border-color:rgba(231,194,122,.45);background:rgba(231,194,122,.06)}
.kz-pe{font-size:30px;width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.08)}
.kz-pb{flex:1;min-width:0}.kz-pb b{display:block;font-size:14.5px}.kz-pb small{display:block;font-size:12px;opacity:.65;margin-top:2px}
.kz-mk{flex:none;font-size:12px;font-weight:800;color:#1a1408;background:linear-gradient(180deg,#f6dc9a,#c9a35f);padding:6px 10px;border-radius:999px}
.kz-search{width:100%;padding:12px 16px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:inherit;font:inherit;font-size:15px;outline:none}
.kz-list{display:flex;flex-direction:column;gap:8px}
.kz-card{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;border-radius:20px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);color:inherit;font:inherit;cursor:pointer;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:transform .15s,background .2s}
.kz-card:active{transform:scale(.985)}.kz-card:hover{background:rgba(255,255,255,.07)}
.kz-av{position:relative;width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:15px;color:#fff}
.kz-av.big{width:56px;height:56px;font-size:19px}
.kz-dot{position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#FF3B30;color:#fff;font:800 11px/19px system-ui;font-style:normal;text-align:center;border:2px solid var(--bg,#0B0B0C)}
.kz-cb{flex:1;min-width:0}.kz-cb b{display:block;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kz-cb small{display:block;font-size:12px;opacity:.6;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kz-cv{text-align:right;flex:none}.kz-cv b{display:block;font-size:14px}.kz-cv i{font-style:normal;font-weight:800;font-size:12.5px}
.kz-empty{text-align:center;padding:30px 20px;border-radius:22px;border:1px dashed rgba(255,255,255,.15)}.kz-empty b{display:block;font-size:17px;margin:6px 0}.kz-empty p{opacity:.7;margin:0;font-size:14px;line-height:1.5}
.kz-empty-s{opacity:.6;font-size:13px;padding:10px 4px}
.kz-form{display:flex;flex-direction:column;gap:12px;padding-top:4px}
.kz-lb{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;opacity:.95}.kz-lb small{font-weight:500;opacity:.6}
.kz-in{width:100%;padding:11px 13px;border-radius:13px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:inherit;font:inherit;font-size:15px;font-weight:500;outline:none;resize:vertical}
.kz-in:focus{border-color:rgba(231,194,122,.6);box-shadow:0 0 0 3px rgba(231,194,122,.15)}
select.kz-in option{color:#111}
.kz-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:480px){.kz-2{grid-template-columns:1fr}}
.kz-row3{display:grid;grid-template-columns:1fr 1fr 86px;gap:6px}
.kz-seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:rgba(255,255,255,.06);flex-wrap:wrap}
.kz-seg button{flex:1;padding:9px 8px;border-radius:10px;border:0;background:none;color:inherit;font:inherit;font-size:13px;font-weight:700;opacity:.65;cursor:pointer;white-space:nowrap}
.kz-seg button.on{opacity:1;background:rgba(231,194,122,.22);box-shadow:inset 0 0 0 1px rgba(231,194,122,.5)}
.kz-emo{display:flex;flex-wrap:wrap;gap:6px}.kz-emo button{width:42px;height:42px;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);font-size:21px;cursor:pointer}.kz-emo button.on{border-color:#E7C27A;background:rgba(231,194,122,.2);transform:scale(1.08)}
.kz-pos-row{position:relative;display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);margin-bottom:8px}
.kz-x{position:absolute;top:-8px;right:-6px;width:26px;height:26px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:inherit;cursor:pointer;font-size:12px}
.kz-ghost{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:11px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:inherit;font:inherit;font-weight:700;font-size:14px;cursor:pointer;text-decoration:none}
.kz-ghost.danger{color:#FF7A70;border-color:rgba(255,122,112,.3)}.kz-ghost:disabled{opacity:.4}
.kz-d{display:flex;flex-direction:column;gap:10px;padding-bottom:10px}
.kz-dh{display:flex;gap:12px;align-items:center}.kz-dh b{font-size:19px;display:block}.kz-dh small{opacity:.65;font-size:13px}
.kz-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px}
.kz-act{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px;border-radius:16px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:inherit;text-decoration:none;font-size:20px;cursor:pointer;font-family:inherit}
.kz-act span{font-size:11.5px;font-weight:700;opacity:.85}.kz-act.wa{background:rgba(37,211,102,.14);border-color:rgba(37,211,102,.35)}
.kz-tot{display:flex;flex-direction:column;gap:8px}
.kz-t{padding:16px;border-radius:20px;background:linear-gradient(135deg,rgba(231,194,122,.16),rgba(255,255,255,.04));border:1px solid rgba(231,194,122,.25)}
.kz-t small{display:block;opacity:.7;font-size:12.5px}.kz-t b{display:block;font-size:28px;font-weight:800;margin:2px 0}.kz-t i{font-style:normal;font-weight:800;font-size:14px}
.kz-pos{display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.kz-pos b{font-size:14.5px}.kz-pos small{display:block;opacity:.6;font-size:12px}.kz-pv{text-align:right}.kz-pv b{display:block}.kz-pv i{font-style:normal;font-weight:800;font-size:12.5px}
.kz-upd{grid-column:1/-1;justify-self:start;padding:6px 12px;border-radius:999px;border:1px solid rgba(231,194,122,.4);background:rgba(231,194,122,.1);color:inherit;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.kz-thread{display:flex;flex-direction:column;gap:6px;max-height:260px;overflow:auto;padding:10px;border-radius:16px;background:rgba(0,0,0,.18)}
[data-theme=pearl] .kz-thread{background:rgba(0,0,0,.04)}
.kz-m{max-width:82%;align-self:flex-start;padding:9px 12px;border-radius:16px 16px 16px 4px;background:rgba(255,255,255,.08);font-size:14px}
.kz-m.me{align-self:flex-end;border-radius:16px 16px 4px 16px;background:rgba(231,194,122,.22)}
.kz-m small{display:block;opacity:.55;font-size:10.5px;margin-top:3px}
.kz-reply{display:flex;gap:8px;align-items:flex-end}.kz-reply .kz-in{flex:1}
.kz-acts2{display:flex;flex-direction:column;gap:8px}
.kz-note{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05);font-size:13.5px;line-height:1.5}
.kz-live{font-size:14px;padding:2px 4px}
.kz-pbig{text-align:center;padding:10px 4px}.kz-pbig .e{font-size:58px}.kz-pbig b{display:block;font-size:22px;margin-top:6px}.kz-pbig p{opacity:.8;line-height:1.5}.kz-pbig small{opacity:.6}
[data-theme=pearl] .kz-card,[data-theme=pearl] .kz-pos,[data-theme=pearl] .kz-promo,[data-theme=pearl] .kz-act,[data-theme=pearl] .kz-ghost,[data-theme=pearl] .kz-in,[data-theme=pearl] .kz-seg,[data-theme=pearl] .kz-pos-row,[data-theme=pearl] .kz-search{background:rgba(255,255,255,.7);border-color:rgba(0,0,0,.08)}
[data-theme=pearl] .kz-sum,[data-theme=pearl] .kz-m{background:rgba(0,0,0,.05)}

/* ============ 🧭 INVESTOR RADAR ============ */
.rd{display:flex;flex-direction:column;gap:12px;padding-bottom:30px}
.rd-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;padding:20px;border-radius:26px;background:linear-gradient(135deg,rgba(124,196,255,.14),rgba(231,194,122,.10));border:1px solid rgba(124,196,255,.25);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.rd-h1{font-size:22px;font-weight:800;letter-spacing:-.02em;margin-top:6px;max-width:520px}
.rd-sub{opacity:.65;font-size:13px;margin-top:4px}
.rd-sorts{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px}.rd-sorts::-webkit-scrollbar{display:none}
.rd-sorts button{flex:none;padding:8px 13px;border-radius:999px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:inherit;font:inherit;font-size:13px;font-weight:700;opacity:.75;cursor:pointer}
.rd-sorts button.on{opacity:1;background:rgba(231,194,122,.2);border-color:rgba(231,194,122,.5)}
.rd-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px;align-items:start}
@media(max-width:860px){.rd-grid{grid-template-columns:1fr}}
.rd-mapc{border-radius:24px;border:1px solid rgba(255,255,255,.08);background:radial-gradient(120% 80% at 30% 20%,rgba(124,196,255,.10),transparent 60%),rgba(255,255,255,.03);padding:8px 8px 10px;overflow:hidden}
.rd-map{width:100%;height:auto;aspect-ratio:262/286;display:block;max-height:68vh}
.rd-land{fill:rgba(255,255,255,.075);stroke:rgba(255,255,255,.16);stroke-width:.35}
[data-theme=pearl] .rd-land{fill:rgba(0,0,0,.07);stroke:rgba(0,0,0,.15)}
.rd-pin{cursor:pointer}.rd-pin .h{opacity:.22;transition:opacity .2s}.rd-pin:hover .h,.rd-pin.on .h{opacity:.5}
.rd-pin.on circle:last-of-type{stroke:#fff;stroke-width:.8}
.rd-pin text{font:700 5.5px system-ui;fill:currentColor;text-anchor:middle;paint-order:stroke;stroke:rgba(0,0,0,.6);stroke-width:1.6px}
[data-theme=pearl] .rd-pin text{stroke:rgba(255,255,255,.8)}
.rd-prop{cursor:pointer}
.rd-leg{display:flex;flex-wrap:wrap;gap:10px;padding:6px 8px 0;font-size:11.5px;opacity:.75}.rd-leg span{display:inline-flex;align-items:center;gap:5px}.rd-leg i{width:9px;height:9px;border-radius:50%;display:inline-block}
.rd-leg .dia{width:8px;height:8px;background:#7CC4FF;transform:rotate(45deg);display:inline-block}
.rd-card,.rd-pd{display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:24px;background:linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.1)}
.rd-pd{background:none;border:0;padding:0}
.rd-ch{display:flex;gap:14px;align-items:center}
.rd-score{width:64px;height:64px;flex:none;border-radius:50%;display:grid;place-content:center;text-align:center;border:3px solid var(--c);box-shadow:0 0 22px color-mix(in srgb,var(--c) 35%,transparent)}
.rd-score b{font-size:22px;line-height:1}.rd-score small{font-size:9.5px;opacity:.65;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.rd-cn{font-size:20px;font-weight:800}.rd-tag{font-size:13px;opacity:.7;margin-top:2px;line-height:1.4}
.rd-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rd-stats>div{padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05)}
.rd-stats small{display:block;font-size:11px;opacity:.6;font-weight:600}.rd-stats b{display:block;font-size:15px;margin-top:2px}
.rd-risk{color:#F5A524;letter-spacing:2px}
.rd-ex{font-size:13.5px;padding:10px 12px;border-radius:14px;background:rgba(231,194,122,.1);border:1px solid rgba(231,194,122,.25)}
.rd-ai{font-size:13.5px;line-height:1.55;padding:12px;border-radius:14px;background:rgba(124,196,255,.08);border:1px solid rgba(124,196,255,.25)}
.rd-ait{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7CC4FF;margin-bottom:4px}
.rd-src{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.rd-src a{font-size:11.5px;color:#7CC4FF;text-decoration:none;padding:3px 8px;border-radius:999px;background:rgba(124,196,255,.1)}
.rd-note{font-size:12px;opacity:.6}
.rd-acts{display:flex;flex-direction:column;gap:8px}
.rd-props{display:flex;flex-direction:column;gap:8px}
.rd-p{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);color:inherit;font:inherit;cursor:pointer}
.rd-ps{width:44px;height:44px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:15px;border:2.5px solid var(--c);color:var(--c)}
.rd-pb{flex:1;min-width:0}.rd-pb b{display:block;font-size:15px}.rd-pb small{display:block;font-size:12px;opacity:.6;margin-top:1px}.rd-pb i{font-style:normal;font-size:12px;font-weight:800}
.rd-rank{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;border:1px solid rgba(255,255,255,.08)}
.rd-r{display:grid;grid-template-columns:26px 1fr auto 34px;gap:8px;align-items:center;padding:11px 14px;border:0;border-top:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.03);color:inherit;font:inherit;text-align:left;cursor:pointer}
.rd-r:first-child{border-top:0}.rd-r.on{background:rgba(231,194,122,.12)}
.rd-ri{opacity:.5;font-weight:800;font-size:12px}.rd-rn{font-weight:700;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rd-rv{font-size:12px;opacity:.6;white-space:nowrap}.rd-rs{font-weight:800;text-align:right}
@media(max-width:420px){.rd-rv{display:none}.rd-r{grid-template-columns:26px 1fr 34px}}
.rd-verdict{padding:10px 14px;border-radius:14px;font-weight:800;color:var(--c);background:color-mix(in srgb,var(--c) 12%,transparent);border:1px solid color-mix(in srgb,var(--c) 35%,transparent)}
.rd-pc{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:13.5px}
.rd-pc li::before{content:"✓ ";color:#4ADE80;font-weight:800}.rd-pc li.bad::before{content:"! ";color:#FF7A70}
.rd-live{display:flex;flex-direction:column;gap:4px;font-size:13.5px;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.05)}
.rd-disc{font-size:11.5px;opacity:.5;line-height:1.5;text-align:center;padding:4px 10px}
.kz-chk{display:flex;gap:8px;align-items:center;font-size:13.5px}
[data-theme=pearl] .rd-card,[data-theme=pearl] .rd-p,[data-theme=pearl] .rd-r,[data-theme=pearl] .rd-stats>div,[data-theme=pearl] .rd-mapc{background:rgba(255,255,255,.7);border-color:rgba(0,0,0,.08)}
.rd-tabs{display:flex;gap:4px;padding:4px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.rd-tabs button{flex:1;padding:10px 8px;border-radius:12px;border:0;background:none;color:inherit;font:inherit;font-weight:800;font-size:14px;opacity:.6;cursor:pointer}
.rd-tabs button.on{opacity:1;background:rgba(231,194,122,.18);box-shadow:inset 0 0 0 1px rgba(231,194,122,.45)}
.rd-frame{width:100%;height:calc(100dvh - 200px);min-height:520px;border:0;border-radius:0;background:transparent;display:block;color-scheme:dark}
.rd:has(.rd-frame){gap:8px}
.kz-seg-wrap button{flex:1 1 30%}
.kz-custom{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:14px;font-weight:600}
.kz-custom .kz-in{width:80px;text-align:center;font-size:16px;font-weight:800}
/* 🎁 editor akcí s živým náhledem */
.sheet-panel.kzp-wide{max-width:1040px;width:min(1040px,100%)}
.kzp-ed{display:grid;grid-template-columns:minmax(0,420px) minmax(0,1fr);gap:22px;align-items:start}
.kzp-prevw{position:sticky;top:0;padding-top:4px}
.kzp-lab{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;opacity:.65;margin-bottom:8px}
@media(max-width:820px){.kzp-ed{grid-template-columns:1fr}.kzp-prevw{position:static}}
.kzp-themes{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px}
.kzp-themes button{padding:14px 8px;border-radius:14px;border:2px solid transparent;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}
.kzp-themes button.on{border-color:#fff;transform:scale(1.03);box-shadow:0 6px 18px rgba(0,0,0,.35)}
.kzp-img{display:flex;gap:8px;flex-wrap:wrap}
.kzi{position:relative;display:grid;grid-template-columns:52px 54px 1fr;gap:6px;align-items:center;padding:8px;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);margin-bottom:6px}
.kzi[data-shop="1"]{grid-template-columns:52px 54px 1fr 74px 78px}
@media(max-width:520px){.kzi[data-shop="1"]{grid-template-columns:52px 54px 1fr;}.kzi[data-shop="1"] .kzi-p{grid-column:2/3}.kzi[data-shop="1"] .kzi-c{grid-column:3/4}}
.kzi-ph{width:52px;height:52px;border-radius:12px;border:1px dashed rgba(255,255,255,.3);background:rgba(255,255,255,.05);font-size:24px;cursor:pointer;overflow:hidden;padding:0;color:inherit}
.kzi-ph img{width:100%;height:100%;object-fit:cover;display:block}
.kzi .kz-in{padding:9px 10px;font-size:14px}.kzi-e{text-align:center;font-size:18px!important}
.kzp-det{display:flex;flex-direction:column;gap:12px;max-width:460px;margin:0 auto}
.kz-ghost[hidden]{display:none!important}

@media(max-width:760px){.rd-frame{height:calc(100dvh - 250px);min-height:460px}.rd-tabs button{padding:8px 6px;font-size:13px}}
/* 🔒 zámek appky */
.sf-lock{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:radial-gradient(80% 60% at 50% 20%,#2a2212 0%,#0b0b0c 70%);color:#f2eee6;transition:opacity .3s}
.sf-lock.out{opacity:0}
.sl-in{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px;width:min(340px,100%)}
.sl-logo{width:92px;height:92px;border-radius:24px;box-shadow:0 14px 40px rgba(0,0,0,.5)}
.sl-t{font-size:20px;font-weight:800;margin-top:6px}.sl-s{font-size:14px;opacity:.7;min-height:20px}
.sl-dots{display:flex;gap:14px;margin:10px 0 6px}.sl-dots i{width:14px;height:14px;border-radius:50%;border:2px solid #e7c27a}.sl-dots i.on{background:#e7c27a}
.sl-dots.shake{animation:slsh .4s}@keyframes slsh{25%{transform:translateX(-10px)}75%{transform:translateX(10px)}}
.sl-pad{display:grid;grid-template-columns:repeat(3,72px);gap:14px;margin-top:6px}
.sl-pad button{width:72px;height:72px;border-radius:50%;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;font:600 26px system-ui;cursor:pointer}
.sl-pad button:active{background:rgba(231,194,122,.3)}
.sl-bio{margin-top:14px;padding:16px 30px;border-radius:999px;border:0;font:800 17px system-ui;color:#1a1408;background:linear-gradient(180deg,#f6dc9a,#c9a35f);cursor:pointer}
.sl-out{margin-top:18px;background:none;border:0;color:rgba(255,255,255,.5);font:13px system-ui;text-decoration:underline;cursor:pointer}
.bk-big{font-size:18px;font-weight:800;padding:14px;border-radius:16px;background:rgba(74,222,128,.1);border:1px solid rgba(74,222,128,.3)}.bk-big.bad{background:rgba(255,122,112,.1);border-color:rgba(255,122,112,.35)}
.bk-test{display:flex;flex-direction:column;gap:4px;margin-top:10px;padding:12px 14px;border-radius:14px;font-size:13.5px;line-height:1.5;background:rgba(74,222,128,.08);border:1px solid rgba(74,222,128,.3)}.bk-test.bad{background:rgba(255,122,112,.08);border-color:rgba(255,122,112,.35)}

/* 📱 „Víc“ v2 — kompaktní knihovna sekcí, vždy se vejde na displej */
@media (max-width: 900px) {
  .more-panel { max-height: calc(100dvh - env(safe-area-inset-top) - 28px); display: flex; flex-direction: column; padding: 0 0 calc(10px + env(safe-area-inset-bottom)) !important; border-radius: 26px 26px 0 0 !important; }
  .more-top { flex: none; padding: 8px 14px 10px; }
  .more-grab { margin: 2px auto 10px !important; width: 40px; height: 5px; }
  .more-search { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; height: 42px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--glass-line, rgba(255,255,255,.1)); }
  .more-search > svg, .more-search > i { width: 17px; height: 17px; opacity: .55; flex: none; }
  .more-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text, #fff); font: inherit; font-size: 16px; outline: none; }
  .more-x { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: inherit; display: grid; place-items: center; cursor: pointer; }
  .more-x svg { width: 16px; height: 16px; }
  .more-scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0 12px 6px; }
  .more-sec { margin-top: 6px; }
  .more-sec[hidden] { display: none; }
  .more-h { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .6; padding: 10px 4px 8px; }
  .more-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 6px 4px !important; }
  .more-item { padding: 8px 2px 6px !important; gap: 6px !important; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 16px !important; font-size: 11.5px !important; line-height: 1.2; text-align: center; color: var(--text, #f2eee6) !important; }
  .more-item[hidden] { display: none !important; }
  .more-item > svg, .more-item > i[data-lucide] { width: 54px !important; height: 54px !important; padding: 14px !important; border-radius: 17px !important; }
  .more-item span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .more-item.active { background: none !important; }
  .more-item.active span { color: var(--gold); font-weight: 700; }
  .more-item .nav-badge { top: 2px !important; right: calc(50% - 32px) !important; }
  .more-empty { text-align: center; opacity: .55; padding: 30px 0; font-size: 14px; }
}
/* iOS: iframe se roztahuje podle obsahu → bílý pruh vpravo. Klasická oprava: width 1px + min-width 100 % */
.rd-frame, #todo-frame { width: 1px !important; min-width: 100% !important; max-width: 100% !important; background: #0b0b0c !important; }
.rd { overflow: hidden; }
/* 🌍 karta „Radar světa“ — otevře radar přes celou obrazovku (bez okna v okně) */
.rdw-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:26px 22px;border-radius:26px;text-decoration:none;color:inherit;background:radial-gradient(120% 90% at 85% 0%,rgba(124,196,255,.22),transparent 55%),radial-gradient(90% 80% at 0% 100%,rgba(231,194,122,.22),transparent 60%),linear-gradient(160deg,#141a2b,#0d0f16);border:1px solid rgba(231,194,122,.32);box-shadow:0 18px 50px rgba(0,0,0,.35)}
.rdw-glow{position:absolute;right:-60px;top:-60px;width:240px;height:240px;border-radius:50%;background:radial-gradient(circle,rgba(124,196,255,.35),transparent 65%);animation:rdwP 4s ease-in-out infinite}
@keyframes rdwP{50%{transform:scale(1.15);opacity:.7}}
.rdw-globe{font-size:64px;line-height:1;filter:drop-shadow(0 10px 24px rgba(124,196,255,.45));animation:rdwS 12s linear infinite}
@keyframes rdwS{50%{transform:rotate(8deg) scale(1.04)}}
.rdw-t{font-size:28px;font-weight:900;letter-spacing:-.02em}
.rdw-s{font-size:15px;opacity:.8;max-width:520px;line-height:1.5}
.rdw-l{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:7px;font-size:14px}
.rdw-btn{margin-top:10px;align-self:stretch;text-align:center;padding:15px 20px;border-radius:999px;font-weight:900;font-size:16px;color:#1a1408;background:linear-gradient(180deg,#f6dc9a,#c9a35f);box-shadow:inset 0 1px 0 rgba(255,255,255,.6),0 10px 26px rgba(201,163,95,.35)}
.rdw-card:active{transform:scale(.99)}
@media (prefers-reduced-motion:reduce){.rdw-glow,.rdw-globe{animation:none}}
@media (max-width:760px){.rdw-card{padding:18px 18px 20px;gap:8px}.rdw-globe{font-size:46px}.rdw-t{font-size:23px}.rdw-s{font-size:14px}.rdw-l{font-size:13px;gap:5px}.rdw-btn{margin-top:6px}}

/* ============ 🏋️ SUPERFLY GYM ============ */
.gym{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:14px;padding-bottom:30px}
.gym-hero{display:flex;gap:14px;align-items:stretch;padding:16px;border-radius:22px;background:radial-gradient(120% 90% at 0% 0%,rgba(var(--gold-rgb),.20),transparent 60%),linear-gradient(160deg,#17151a,#0e0d10);border:1px solid var(--gold-line);position:relative;overflow:hidden}
.gym-fig-w{flex:0 0 140px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
.gym-fig{width:118px;height:196px;filter:drop-shadow(0 6px 18px rgba(var(--gold-rgb),.35));animation:gymBreath 3.4s ease-in-out infinite;transform-origin:50% 100%}
@keyframes gymBreath{0%,100%{transform:scale(1)}50%{transform:scale(1.025,1.015)}}
.gym-lvl{margin-top:4px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#14100a;background:linear-gradient(135deg,var(--gold-hi),var(--gold));padding:4px 10px;border-radius:99px}
.gym-hi{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.gym-sel{position:absolute;top:14px;right:14px;width:46px;height:46px;border-radius:50%;border:2px solid var(--gold);background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;font-size:20px;cursor:pointer;overflow:hidden}
.gym-sel img{width:100%;height:100%;object-fit:cover}
.gym-h1{font-family:var(--font-display);font-size:24px;font-weight:700;color:var(--gold-hi);padding-right:54px}
.gym-h2{font-size:13px;color:var(--muted)}
.gym-wkt{font-size:12px;color:var(--muted)}.gym-wkt b{color:var(--white)}
.gym-bars{display:flex;gap:6px;height:58px;align-items:flex-end;margin-top:4px}
.gym-bars span{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;height:100%;justify-content:flex-end}
.gym-bars i{display:block;width:100%;max-width:26px;border-radius:6px;background:rgba(255,255,255,.08)}
.gym-bars span.on i{background:linear-gradient(180deg,var(--gold-hi),var(--gold-lo))}
.gym-bars small{font-size:10px;color:var(--muted-2)}.gym-bars span.td small{color:var(--gold);font-weight:800}
.gym-parts{display:flex;flex-wrap:wrap;gap:5px}.gym-parts span{font-size:11px;padding:3px 8px;border-radius:99px;background:rgba(255,255,255,.05);color:var(--muted)}.gym-parts b{color:var(--gold-hi)}
.gym-note{font-size:11px;color:var(--muted-2)}
.gym-tabs{display:flex;gap:2px;padding:4px;overflow-x:auto;scrollbar-width:none;border-radius:16px;background:rgba(255,255,255,.05);position:sticky;top:0;z-index:5;backdrop-filter:blur(10px)}
.gym-tabs button{flex:1 0 auto;border:0;background:none;color:var(--muted);font:inherit;font-size:12.5px;font-weight:700;padding:10px 7px;border-radius:12px;cursor:pointer;white-space:nowrap}
.gym-tabs button.on{background:linear-gradient(135deg,var(--gold-hi),var(--gold));color:#14100a}
.gym-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.gym-days button{border:1px solid var(--border);background:var(--surface);color:var(--white);border-radius:14px;padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:2px;font:inherit;cursor:pointer}
.gym-days button b{font-size:13px}.gym-days button small{font-size:14px}
.gym-days button.t-rest{opacity:.55}.gym-days button.td{border-color:var(--gold-line)}
.gym-days button.on{background:linear-gradient(135deg,var(--gold-hi),var(--gold));color:#14100a;border-color:transparent;opacity:1}
.gym-dayh{display:flex;justify-content:space-between;align-items:center;padding:4px 2px}
.gym-dt{font-size:12px;color:var(--gold);font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.gym-dn{font-family:var(--font-display);font-size:21px;font-weight:700}
.gym-prog{text-align:right}.gym-prog b{font-size:22px;color:var(--gold-hi);display:block}.gym-prog small{font-size:11px;color:var(--muted)}
.gym-ex{display:flex;gap:12px;padding:12px;border-radius:18px;background:var(--surface);border:1px solid var(--border);transition:border-color .2s,background .2s}
.gym-ex.done{border-color:rgba(63,185,80,.5);background:linear-gradient(160deg,rgba(63,185,80,.08),var(--surface))}
.gym-anim{flex:0 0 104px;height:104px;border-radius:14px;overflow:hidden;position:relative;background:#fff}
.gym-anim img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gym-anim img:nth-child(2){animation:gymFrame 1.6s steps(1) infinite}
@keyframes gymFrame{0%{opacity:0}50%{opacity:1}}
.gym-no{position:absolute;left:6px;top:6px;width:22px;height:22px;border-radius:50%;background:#14100a;color:var(--gold-hi);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.gym-exb{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.gym-exn{font-weight:800;font-size:15px;line-height:1.25}
.gym-exs{font-size:11px;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gym-sr{display:flex;gap:10px;align-items:baseline}.gym-sr b{font-size:18px;color:var(--gold-hi)}.gym-sr span{font-size:12px;color:var(--muted)}
.gym-sets{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.gym-set{width:36px;height:36px;border-radius:50%;border:2px solid var(--gold-line);background:none;color:var(--white);font:inherit;font-weight:800;font-size:13px;cursor:pointer;transition:transform .15s}
.gym-set:active{transform:scale(.88)}.gym-set.on{background:var(--green);border-color:var(--green);color:#06210c}.gym-set:disabled{opacity:.45;cursor:default}
.gym-kg{width:64px;height:36px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--white);font:inherit;font-size:14px;text-align:center}
.gym-tip{font-size:12px;color:var(--muted);line-height:1.4}
.gym-exa{display:flex;gap:14px}
.gym-how{font-size:12.5px;line-height:1.5;color:var(--muted);background:rgba(255,255,255,.04);padding:10px;border-radius:12px}
.gym-rest{text-align:center;padding:30px 16px;border-radius:20px;background:var(--surface);border:1px solid var(--border)}.gym-rest p{color:var(--muted);font-size:14px;max-width:340px;margin:8px auto 0}
.gym-restp{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top,0px));transform:translateX(-50%);z-index:9999;background:linear-gradient(135deg,var(--gold-hi),var(--gold));color:#14100a;font-weight:700;padding:12px 16px;border-radius:99px;display:flex;gap:10px;align-items:center;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.gym-restp b{font-size:18px}.gym-restp button{border:0;background:rgba(0,0,0,.15);color:inherit;border-radius:50%;width:26px;height:26px;cursor:pointer}
.gym-food{display:flex;gap:16px;align-items:center;padding:16px;border-radius:20px;background:var(--surface);border:1px solid var(--border)}
.gym-ring{position:relative;flex:0 0 120px;height:120px}.gym-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.gym-ring circle{fill:none;stroke-width:10}.gym-ring .bg{stroke:rgba(255,255,255,.07)}.gym-ring .fg{stroke:var(--gold);stroke-linecap:round;transition:stroke-dashoffset .6s}
.gym-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.gym-ring b{font-size:24px;color:var(--gold-hi)}.gym-ring small{font-size:11px;color:var(--muted)}
.gym-macros{flex:1;display:flex;flex-direction:column;gap:7px;font-size:13px}.gym-macros>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px}.gym-macros span{color:var(--muted)}
.gym-macros i{flex-basis:100%;height:6px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden}.gym-macros em{display:block;height:100%;background:var(--green)}
.gym-left{font-size:12px;color:var(--gold)}
.gym-fbtns{display:flex;gap:8px}.gym-fbtns .kz-add{flex:1}
.gym-flist{display:flex;flex-direction:column;gap:6px}
.gym-fi{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--border)}
.gym-fi>div{flex:1;min-width:0;display:flex;flex-direction:column}.gym-fi small{font-size:11px;color:var(--muted)}.gym-fi>span{font-weight:800;color:var(--gold-hi);white-space:nowrap}
.gym-card{padding:16px;border-radius:20px;background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:10px}
.gym-ct{font-weight:800}.gym-ct small{font-weight:500;color:var(--muted);font-size:11px;margin-left:6px}
.gym-wrow{display:flex;align-items:baseline;gap:10px}.gym-wrow b{font-size:26px;color:var(--gold-hi)}.gym-wrow .up{color:var(--green);font-size:13px}.gym-wrow .dn{color:#ff9b7a;font-size:13px}
.gym-wchart{width:100%;height:100px;background:rgba(255,255,255,.03);border-radius:12px}
.gym-wadd{display:flex;gap:8px}.gym-wadd .kz-in{flex:1}
.gym-ph{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.gym-phi{position:relative;aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:#000;cursor:pointer}.gym-phi img{width:100%;height:100%;object-fit:cover}
.gym-phi small{position:absolute;left:0;right:0;bottom:0;padding:14px 6px 5px;font-size:10px;background:linear-gradient(transparent,rgba(0,0,0,.8))}
.gym-phadd{aspect-ratio:3/4;border-radius:14px;border:2px dashed var(--gold-line);background:none;color:var(--gold);font-size:28px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;font-family:inherit}.gym-phadd small{font-size:11px}
.gym-cmpw{display:grid;grid-template-columns:1fr 1fr;gap:8px}.gym-cmpw figure{margin:0}.gym-cmpw img{width:100%;border-radius:12px;aspect-ratio:3/4;object-fit:cover}.gym-cmpw figcaption{font-size:11px;color:var(--muted);text-align:center;margin-top:4px}
.gym-pl{font-size:14px;line-height:1.5}.gym-pl.muted{color:var(--muted);font-size:12px}
.gym-form{gap:14px}
.gym-form .kz-lb small{display:block;font-weight:500;color:var(--muted-2);font-size:11px;margin:2px 0 4px}
.gym-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.gym-chips button{border:1px solid var(--border);background:var(--surface);color:var(--white);border-radius:99px;padding:8px 14px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.gym-chips button.on{background:linear-gradient(135deg,var(--gold-hi),var(--gold));color:#14100a;border-color:transparent}
.gym-dsel{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:6px}
.gym-dsel button{border:1px solid var(--border);background:var(--surface);color:var(--white);border-radius:14px;padding:8px 0;display:flex;flex-direction:column;align-items:center;gap:3px;font:inherit;cursor:pointer}
.gym-dsel button[data-v="gym"]{border-color:var(--gold)}.gym-dsel button[data-v="home"]{border-color:rgba(63,185,80,.6)}.gym-dsel button[data-v="rest"]{opacity:.55}
.gym-dsel span{font-size:18px}
.gym-go{padding:15px!important;font-size:16px!important}
.gym-hero.setup .gym-h1{padding-right:0}
@media (max-width:480px){.gym-fig-w{flex-basis:96px}.gym-fig{width:96px;height:160px}.gym-anim{flex-basis:84px;height:84px}.gym-food{flex-direction:column;align-items:stretch}.gym-ring{align-self:center}}
@media (prefers-reduced-motion:reduce){.gym-fig,.gym-anim img:nth-child(2){animation:none}}
.gym-anim.noimg{background:linear-gradient(135deg,#2a2418,#151310);display:flex;align-items:center;justify-content:center}.gym-noimg{font-size:38px}
.gym-watch{font-size:12px;color:var(--gold-hi);background:rgba(var(--gold-rgb),.1);border:1px solid var(--gold-line);border-radius:12px;padding:6px 10px;align-self:flex-start}
.gym-burn{font-size:12px;color:#ffb27a}
.gym-step{display:flex;gap:10px;align-items:flex-start;margin:8px 0}.gym-step>span{flex:0 0 26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--gold-hi),var(--gold));color:#14100a;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:12px}
.gym-step p{margin:3px 0 0;font-size:13px;color:var(--muted);line-height:1.45}.gym-guide code{background:rgba(255,255,255,.08);padding:1px 5px;border-radius:5px;font-size:12px}
.gym-guide .gym-ct{margin-top:14px}
.gym-url{display:flex;gap:8px;align-items:center;margin:8px 0}.gym-url code{flex:1;min-width:0;overflow-wrap:anywhere;font-size:11px!important;padding:8px!important}
.gym-shareon{text-align:center;align-items:center}.gym-shares{display:flex;flex-direction:column;gap:6px;text-align:left;font-size:13px;background:rgba(255,255,255,.04);border-radius:14px;padding:12px;width:100%;box-sizing:border-box}
.gym-board{display:flex;flex-direction:column;gap:8px}
.gym-br{display:flex;align-items:center;gap:10px;padding:12px;border-radius:16px;background:var(--surface);border:1px solid var(--border)}
.gym-br.me{border-color:var(--gold);background:linear-gradient(160deg,rgba(var(--gold-rgb),.12),var(--surface))}
.gym-rk{flex:0 0 26px;text-align:center;font-weight:800;font-size:18px;color:var(--muted)}
.gym-av{flex:0 0 40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--gold-hi),var(--gold-lo));color:#14100a;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:14px}
.gym-bm{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.gym-bm b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.gym-bm small{font-size:11.5px;color:var(--muted)}
.gym-dots{display:flex;gap:3px}.gym-dots em{width:14px;height:5px;border-radius:3px;background:rgba(255,255,255,.08)}.gym-dots em.on{background:var(--green)}
.gym-bk{text-align:right;font-weight:800;color:#ffb27a;font-size:14px;display:flex;flex-direction:column}.gym-bk small{font-size:10px;color:var(--muted);font-weight:500}
.gym-fi{cursor:pointer}.gym-fg{font-style:normal;font-weight:500;color:var(--muted);font-size:12px}
.gym-fedit{border:0;background:rgba(255,255,255,.06);border-radius:10px;width:32px;height:32px;cursor:pointer;font-size:14px}
.gym-wlink{border:1px dashed var(--gold-line);background:none;color:var(--gold);border-radius:14px;padding:12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
/* 🗣️ kouč */
.gym-say{position:relative;background:#fff8e8;color:#1b160c;border-radius:16px;padding:10px 12px;font-size:13.5px;font-weight:600;line-height:1.35;box-shadow:0 6px 20px rgba(0,0,0,.35);cursor:pointer;margin-top:2px}
.gym-say::before{content:"";position:absolute;left:-7px;top:16px;border:8px solid transparent;border-right-color:#fff8e8;border-left:0}
.gym-say.pop{animation:gymPop .35s cubic-bezier(.2,1.4,.4,1)}@keyframes gymPop{0%{transform:scale(.85);opacity:.3}100%{transform:scale(1);opacity:1}}
.gym-say-a{display:flex;align-items:center;gap:8px;margin-top:8px;flex-wrap:wrap}.gym-say-a:empty{display:none}
.gym-say-btn{border:0;background:#1b160c;color:var(--gold-hi);border-radius:99px;padding:7px 12px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
.gym-say-set{border:0;background:none;font-size:14px;cursor:pointer;margin-left:auto;opacity:.6}.gym-say .kz-link{color:#6b5a35}
.gym-nogym{padding:14px;border-radius:18px;border:1px dashed var(--gold-line);display:flex;flex-direction:column;gap:6px}.gym-nogym span{font-size:13px;color:var(--muted)}.gym-nogym>div{display:flex;gap:6px;flex-wrap:wrap}.gym-nogym .kz-link{align-self:flex-start;margin-top:4px}
.sf-coach{position:fixed;left:12px;right:12px;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:9998;display:flex;align-items:flex-end;gap:6px;max-width:420px;transform:translateY(30px);opacity:0;transition:transform .35s cubic-bezier(.2,1.3,.4,1),opacity .3s;pointer-events:none}
.sf-coach.in{transform:none;opacity:1;pointer-events:auto}
.sf-coach-fig{flex:0 0 64px}.sf-coach-fig .gym-fig{width:64px;height:106px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.6))}.sf-coach .gym-say{flex:1;margin-bottom:46px}
@media (min-width:900px){.sf-coach{left:auto;right:24px;bottom:24px}}
.gc-hero{display:flex;gap:10px;align-items:center;margin-bottom:8px}.gc-hero .gym-fig{width:70px;height:116px;flex:0 0 70px}.gc-hero .gym-say{flex:1}
.gc-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid var(--border)}.gc-row span{display:flex;flex-direction:column;gap:2px}.gc-row small{font-size:12px;color:var(--muted)}
.gc-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--gold);flex:0 0 22px}
.gq{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.gq-mins{display:flex;gap:6px}.gq-mins button{border:1px solid var(--border);background:var(--surface);color:var(--white);border-radius:99px;padding:6px 12px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.gq-mins button.on{background:var(--gold);color:#14100a;border-color:transparent}
.gq-anim::before{content:"🏃";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:72px}.gq-anim{position:relative;width:200px;height:200px;border-radius:22px;overflow:hidden;background:linear-gradient(135deg,#2a2418,#151310)}.gq-anim img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.gq-anim img:nth-child(2){animation:gymFrame 1.4s steps(1) infinite}
.gq-ph{font-size:13px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:4px 12px;border-radius:99px}.gq-ph.work{background:var(--green);color:#06210c}.gq-ph.rest{background:rgba(255,255,255,.1);color:var(--muted)}
.gq-name{font-family:var(--font-display);font-size:24px;font-weight:700}.gq-t{font-size:64px;font-weight:800;color:var(--gold-hi);line-height:1;font-variant-numeric:tabular-nums}
.gq-bar{width:100%;height:6px;border-radius:9px;background:rgba(255,255,255,.08);overflow:hidden}.gq-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--gold-lo),var(--gold-hi));transition:width 1s linear}
.gq-next{font-size:13px;color:var(--muted);min-height:18px}
.gc-when{display:block;font-size:11px;color:var(--muted-2);margin-top:6px;font-weight:500}
/* 🧍 animovaná postavička */
.gym-av{display:block;width:140px;height:205px;border-radius:18px;cursor:pointer;touch-action:pan-y;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.gym-av.sm{width:84px;height:123px;flex:0 0 84px;border-radius:14px}
.gc-hero .gym-av{flex:0 0 84px}
.gq-row{display:flex;gap:10px;align-items:stretch;justify-content:center}.gq-row .gq-anim{width:170px;height:205px}.gq-av{width:140px;height:205px;cursor:default}
.gav-sex{margin-bottom:12px}
.gav-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gav{border:2px solid var(--border);background:var(--surface);border-radius:18px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--white);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.gav canvas{width:100%;max-width:150px;aspect-ratio:300/440;height:auto;border-radius:12px}
.gav.on{border-color:var(--gold);box-shadow:0 0 0 3px rgba(var(--gold-rgb),.25)}
@media (max-width:480px){.gym-fig-w{flex-basis:112px}.gym-av{width:112px;height:164px}.gq-row .gq-anim{width:140px;height:170px}.gq-av{width:116px;height:170px}}
/* ✏️ úpravy dne */
.gym-dedit{border:0;background:rgba(255,255,255,.07);border-radius:10px;width:32px;height:32px;font-size:14px;cursor:pointer;vertical-align:middle;margin-left:4px}
.gym-exm{margin-left:auto;display:flex;gap:4px}.gym-exm button{border:1px solid var(--border);background:none;color:var(--muted);border-radius:9px;width:30px;height:28px;cursor:pointer;font:inherit;font-size:13px}.gym-exm button:disabled{opacity:.3}
.gym-exa{flex-wrap:wrap;align-items:center}
.gym-addex{border:1.5px dashed var(--gold-line);background:none;color:var(--gold);border-radius:16px;padding:14px;font:inherit;font-weight:800;font-size:14px;cursor:pointer}
.gym-rest .kz-ghost{margin-top:12px}
.gym-step{display:flex;align-items:center;gap:14px;margin-top:6px}.gym-step button{width:44px;height:44px;border-radius:50%;border:1px solid var(--gold-line);background:none;color:var(--gold-hi);font-size:22px;cursor:pointer}.gym-step b{font-size:26px;min-width:30px;text-align:center}
.glb-row{display:flex;gap:8px;align-items:center;margin:10px 0}.glb-row .kz-in{flex:1}.glb-bw{display:flex;gap:6px;align-items:center;font-size:12px;color:var(--muted);white-space:nowrap}
.glb-list{display:flex;flex-direction:column;gap:6px}
.glb-it{display:flex;align-items:center;gap:10px;padding:8px;border-radius:14px;background:var(--surface);border:1px solid var(--border)}.glb-it img{width:52px;height:52px;border-radius:10px;object-fit:cover;background:#fff;flex:0 0 52px}
.glb-it>div{flex:1;min-width:0;display:flex;flex-direction:column}.glb-it small{font-size:11px;color:var(--muted)}
.glb-it button{width:36px;height:36px;border-radius:50%;border:0;background:linear-gradient(135deg,var(--gold-hi),var(--gold));color:#14100a;font-size:18px;font-weight:800;cursor:pointer;flex:0 0 36px}.glb-it button:disabled{background:rgba(63,185,80,.25);color:var(--green)}
/* 📷 cvičení s kamerou */
.gym-cam{padding:14px;border-radius:20px;border:1px solid var(--gold-line);background:linear-gradient(150deg,rgba(var(--gold-rgb),.12),var(--surface));display:flex;flex-direction:column;gap:10px}
.gym-cam-h{display:flex;gap:10px;align-items:flex-start}.gym-cam-h>span{font-size:28px}.gym-cam-h div{display:flex;flex-direction:column;gap:2px}.gym-cam-h small{font-size:12px;color:var(--muted);line-height:1.4}
.gym-cam-done{font-size:12px;color:var(--green);font-weight:700}
.gym-cam-ex{display:flex;gap:6px;flex-wrap:wrap}.gym-cam-ex .kz-ghost{flex:1 1 auto;padding:9px 10px}
body.sfc-open{overflow:hidden}
.sfc{position:fixed;inset:0;z-index:10050;background:#000;display:flex;flex-direction:column;color:#fff;padding:env(safe-area-inset-top,0) 0 env(safe-area-inset-bottom,0)}
.sfc-top{display:flex;align-items:center;gap:10px;padding:10px 12px}.sfc-tt{flex:1;display:flex;flex-direction:column}.sfc-tt b{font-size:16px}.sfc-tt span{font-size:12px;color:#bbb}
.sfc-x,.sfc-voice{width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:17px;cursor:pointer}.sfc-voice:not(.on){opacity:.6}
.sfc-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#111}
.sfc-stage video,.sfc-stage canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}
.sfc-msg{position:absolute;left:16px;right:16px;top:16px;background:rgba(0,0,0,.65);backdrop-filter:blur(6px);padding:12px 14px;border-radius:16px;font-weight:700;font-size:15px;text-align:center}
.sfc-end{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:20px;background:radial-gradient(circle at 50% 40%,rgba(231,194,122,.25),#000 70%)}.sfc-end b{font-size:28px;color:#fbe7b0}.sfc-end p{color:#ddd;font-size:15px;max-width:340px}
.sfc-bot{padding:12px 16px 16px;display:flex;flex-direction:column;align-items:center;gap:6px;background:linear-gradient(transparent,rgba(0,0,0,.9))}
.sfc-hint{min-height:22px;font-size:14px;font-weight:800;color:#fbe7b0}.sfc-hint.on{color:#ffb27a}
.sfc-count{display:flex;align-items:baseline;gap:4px}.sfc-n{font-size:72px;line-height:1;font-weight:900;color:#fbe7b0;font-variant-numeric:tabular-nums}.sfc-of{font-size:22px;color:#aaa;font-weight:700}
.sfc.pop .sfc-n{animation:sfcPop .3s cubic-bezier(.2,1.6,.4,1)}@keyframes sfcPop{0%{transform:scale(1.35);color:#7dffa0}100%{transform:scale(1)}}
.sfc-ex{font-size:15px;font-weight:700;color:#eee}
.sfc-bar{width:100%;max-width:420px;height:6px;border-radius:9px;background:rgba(255,255,255,.15);overflow:hidden}.sfc-bar i{display:block;height:100%;background:linear-gradient(90deg,#a77a30,#fbe7b0);transition:width .3s}
.sfc-acts{display:flex;gap:8px;width:100%;max-width:420px;margin-top:6px}.sfc-btn{flex:1;border:0;border-radius:14px;padding:13px;font:inherit;font-weight:800;font-size:15px;cursor:pointer;background:linear-gradient(135deg,#fbe7b0,#e7c27a);color:#14100a}.sfc-btn.ghost{background:rgba(255,255,255,.12);color:#fff}
.sfc-guide{position:absolute;left:22%;right:22%;top:6%;bottom:4%;border:3px dashed rgba(251,231,176,.55);border-radius:40% 40% 18px 18px / 18% 18% 18px 18px;pointer-events:none}.sfc-guide.lying{left:6%;right:6%;top:45%;bottom:22%;border-radius:18px}
.sfc-check{position:absolute;left:16px;right:16px;bottom:14px;display:flex;flex-direction:column;gap:6px;background:rgba(0,0,0,.6);backdrop-filter:blur(6px);border-radius:16px;padding:12px 14px;font-size:14px;font-weight:700}
.sfc-check div{display:flex;gap:8px;align-items:center;color:#ccc}.sfc-check div.ok{color:#7dffa0}
.sfc [hidden]{display:none!important}
/* 🏆 žebříček v2 */
.gym-per{margin-bottom:8px}.gym-met{margin-bottom:10px}.gym-met button{padding:7px 11px;font-size:12px}
.gym-push{padding:10px 12px;border-radius:14px;background:rgba(var(--gold-rgb),.12);border:1px solid var(--gold-line);color:var(--gold-hi);font-weight:700;font-size:13px;margin-bottom:10px}
button.gym-br{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.gym-bbar{display:block;height:5px;border-radius:9px;background:rgba(255,255,255,.07);overflow:hidden;margin-top:3px}.gym-bbar em{display:block;height:100%;background:linear-gradient(90deg,var(--gold-lo),var(--gold-hi))}
.gym-bv{font-weight:900;font-size:17px;color:var(--gold-hi);white-space:nowrap}
.gym-v2{margin-bottom:12px;font-size:13px}
.gym-tots{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.gym-tots div{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:8px;text-align:center}.gym-tots small{display:block;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.gym-tots b{font-size:15px;color:var(--gold-hi)}
.gym-hbars{display:flex;gap:4px;align-items:flex-end;height:120px;margin-top:6px}.gym-hbars>div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:3px;min-width:0}
.gym-hbars i{display:block;width:100%;max-width:30px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,var(--gold-hi),var(--gold-lo))}.gym-hbars span{font-size:10px;color:var(--white);font-weight:700;white-space:nowrap}.gym-hbars small{font-size:10px;color:var(--muted)}
.gym-hbars.m span{font-size:9px}
button.gym-br{display:flex;align-items:center;gap:10px;height:auto;min-height:0}button.gym-br .gym-av{height:40px;width:40px;align-self:center;line-height:40px}button.gym-br .gym-rk{align-self:center}
button.gym-br .gym-av{display:flex;justify-content:center;align-items:center;font-size:14px}
/* 📦 světový obchod */
.trd-act{display:flex;gap:6px;align-items:center}
.trd-card{margin-top:12px;padding:14px;border-radius:18px;background:var(--surface);border:1px solid var(--border);display:flex;flex-direction:column;gap:10px}
.trd-h{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.trd-h b{font-size:15px}
.trd-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.trd-stats div{background:rgba(255,255,255,.03);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;min-width:0}
.trd-stats small{font-size:11px;color:var(--muted)}.trd-stats b{font-size:16px;color:var(--gold-hi)}.trd-stats em,.trd-pv em{font-style:normal;font-size:11px;font-weight:700}
em.up{color:var(--green)}em.dn{color:#ff8f7a}
.trd-ct{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.trd-ps{display:flex;flex-direction:column;gap:6px}.trd-p{display:grid;grid-template-columns:110px 1fr auto;gap:8px;align-items:center;font-size:13px}
.trd-pn{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trd-p i{height:8px;border-radius:9px;background:rgba(255,255,255,.06);overflow:hidden}.trd-p i em{display:block;height:100%;background:linear-gradient(90deg,var(--gold-lo),var(--gold-hi))}.trd-pv{font-size:12px;color:var(--muted);white-space:nowrap}
.trd-ins{font-size:13px;padding:8px 10px;border-radius:12px;background:rgba(var(--gold-rgb),.08)}
.trd-sub{font-size:11px;color:var(--muted-2)}
@media (max-width:480px){.trd-stats{grid-template-columns:1fr 1fr}.trd-p{grid-template-columns:86px 1fr}.trd-pv{grid-column:2}}
/* 🦁 výrazy Flyho */
.ln-img.ln-x{transition:opacity .18s ease,transform .25s cubic-bezier(.2,1.5,.4,1);transform:scale(.92)}
.ln-img.ln-x.on{opacity:1;transform:scale(1.04)}
.ln-xon .ln-img[data-fr]{opacity:0!important}
.ln-stage[data-face="angry"] .ln-body,.ln-stage[data-face="rage"] .ln-body{animation:flyShake .4s linear 2}
.ln-stage[data-face="cheer"] .ln-body,.ln-stage[data-face="thumbs"] .ln-body{animation:flyHop .5s ease 2}
.ln-stage[data-face="cry"] .ln-body,.ln-stage[data-face="worried"] .ln-body{animation:flySag 2s ease-in-out infinite}
@keyframes flyShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px) rotate(-2deg)}75%{transform:translateX(4px) rotate(2deg)}}
@keyframes flyHop{0%,100%{transform:translateY(0)}40%{transform:translateY(-10px)}}
@keyframes flySag{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
@media (prefers-reduced-motion:reduce){.ln-stage .ln-body{animation:none!important}}
/* 📰 krypto zprávy */
.crn{display:flex;flex-direction:column;gap:10px}.crn-h{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}.crn-h b{font-size:16px}
.crn-mk{display:flex;flex-wrap:wrap;gap:6px}.crn-mk span{font-size:12px;padding:5px 9px;border-radius:99px;background:rgba(255,255,255,.05);border:1px solid var(--border)}.crn-mk .up{color:var(--green);font-weight:700}.crn-mk .dn{color:#ff7a6b;font-weight:700}
.crn-sum{font-size:14px;line-height:1.5;padding:10px 12px;border-radius:12px;background:rgba(var(--gold-rgb),.08);border:1px solid var(--gold-line)}
.crn-it{display:flex;gap:10px;padding:12px;border-radius:14px;border:1px solid var(--border);background:var(--surface);color:inherit;text-decoration:none}.crn-it:hover{border-color:var(--gold-line)}
.crn-n{flex:0 0 26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--gold-hi),var(--gold));color:#14100a;font-weight:900;display:flex;align-items:center;justify-content:center;font-size:13px}
.crn-it>div{flex:1;min-width:0}.crn-it b{font-size:14.5px;line-height:1.35;display:block}.crn-it p{margin:5px 0 0;font-size:13px;color:var(--muted);line-height:1.45}
.crn-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;font-size:11.5px;color:var(--muted-2)}.crn-imp{font-weight:800}.crn-imp.up{color:var(--green)}.crn-imp.down{color:#ff7a6b}.crn-imp.mixed{color:var(--gold)}.crn-unc{color:#ffb27a;font-weight:700}.crn-ok{color:var(--green)}
.crn-foot{font-size:11px;color:var(--muted-2)}
/* ✍️ souhlas s podmínkami */
.tg-chk{display:flex;gap:10px;align-items:flex-start;margin:6px 0 12px;font-size:13.5px;line-height:1.45;color:var(--muted);cursor:pointer;text-align:left}.tg-chk input{flex:0 0 20px;width:20px;height:20px;margin-top:1px;accent-color:var(--gold)}.tg-chk a{color:var(--gold)}
