/* ============ FanFlow – čistý „premium CRM“ vzhled ============
   Zásady: sklo jen na hlavních panelech, uvnitř plochý obsah s jemnými linkami; jednobarevné ikony;
   jeden akcent; klidná typografie; vycentrovaný obsah. Načítá se po style.css (a editor.css). */

:root {
  --line: rgba(0, 0, 0, .08);
  --r-xl: 20px; --r-lg: 16px; --r-md: 12px; --r-sm: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --line: rgba(255, 255, 255, .08); } }
:root[data-theme="dark"] { --line: rgba(255, 255, 255, .08); }
html.has-photo { --hair: var(--line); }
@media (prefers-color-scheme: dark) {
  html.has-photo:not([data-theme="light"]) { --text: #ececf1; --text-2: #a3a3ad; --text-3: #6f6f7a; --fill: rgba(255, 255, 255, .05); --fill-2: rgba(255, 255, 255, .09); }
}
html.has-photo[data-theme="dark"] { --text: #ececf1; --text-2: #a3a3ad; --text-3: #6f6f7a; --fill: rgba(255, 255, 255, .05); --fill-2: rgba(255, 255, 255, .09); }
html.has-photo:not([data-theme="dark"]) { --fill: rgba(0, 0, 0, .035); --fill-2: rgba(0, 0, 0, .06); }
@media (prefers-color-scheme: dark) { html.has-photo:not([data-theme]) { --fill: rgba(255, 255, 255, .05); --fill-2: rgba(255, 255, 255, .09); } }

body { font-size: 14px; letter-spacing: -0.006em; }

/* sklo panelů: neutrální, bez přesycení, tenká linka místo lesklých okrajů */
.lg-host > .lg-glass { --lg-filter: saturate(1.05) !important; --lg-blur: 18px; box-shadow: inset 0 0 0 1px var(--line) !important; }
.glass { box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .06), 0 18px 40px -24px rgba(0, 0, 0, .45) !important; }
.glass.lg-in { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .45) !important; }

/* ============ rozvržení ============ */
.content { max-width: 1400px; margin: 0 auto; padding: 28px 32px 80px; }
.sidebar { border-radius: 18px; padding: 16px 10px; gap: 18px; }
.vhead { margin: 2px 0 18px; }
.vhead h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.eyebrow { font-size: 12.5px; }
.card { border-radius: var(--r-xl); padding: 20px; }
.card h2, .card-head h2 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.card-head { margin-bottom: 14px; }
.group-title { font-size: 11px; letter-spacing: .08em; }

/* ============ navigace ============ */
.brand b { font-size: 15px; font-weight: 650; }
.brand span { font-size: 11.5px; }
.logo { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; box-shadow: none; background: linear-gradient(145deg, #ff5c93, #e0245e); }
#nav { gap: 1px; }
#nav button { padding: 8px 10px; border-radius: 9px; font-size: 13.5px; gap: 10px; }
#nav button svg { width: 17px; height: 17px; }
#nav button.active { background: var(--fill-2); box-shadow: none; }
#nav button.active svg { color: var(--text); }
#nav em { background: var(--fill-2); color: var(--text-2); font-size: 11px; min-width: 18px; height: 18px; }
.ig-chip { background: transparent; border: 1px solid var(--line); border-radius: 12px; }
.theme-btn { background: transparent; border: 1px solid var(--line); width: 32px; height: 32px; }

/* ============ ovládací prvky ============ */
.btn { height: 34px; padding: 0 13px; border-radius: 10px; font-size: 13px; font-weight: 550; gap: 6px;
  background: var(--fill); border: 1px solid var(--line); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn:hover { background: var(--fill-2); filter: none; }
.btn svg { width: 15px; height: 15px; }
.btn.small { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
/* hlavní akce: invertovaná (světlá na tmavém, tmavá na světlém) – bez záře a přechodu */
.btn.primary { background: #16161a; color: #fff; border-color: transparent; box-shadow: none; }
.btn.primary:hover { background: #2a2a30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: #f2f2f5; color: #0d0d10; } :root:not([data-theme="light"]) .btn.primary:hover { background: #fff; } }
:root[data-theme="dark"] .btn.primary { background: #f2f2f5; color: #0d0d10; }
:root[data-theme="dark"] .btn.primary:hover { background: #fff; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; background: transparent; }
.icon-btn:hover { background: var(--fill-2); }
.link { font-size: 13px; color: var(--text-2); font-weight: 500; }
.link:hover { color: var(--text); }
.segmented { padding: 2px; border-radius: 10px; }
.segmented button { height: 28px; border-radius: 8px; font-size: 12.5px; padding: 0 11px; }
.segmented button.on { background: var(--fill-2); box-shadow: none; }
.pill-select { height: 34px; border-radius: 10px; font-size: 13px; background: var(--fill); border: 1px solid var(--line); }
input, textarea, select { border-radius: 10px; border: 1px solid var(--line); }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px var(--fill-2); border-color: var(--text-3); background: var(--fill); }
.tag { font-size: 11px; font-weight: 550; padding: 2px 8px; border-radius: 6px; background: var(--fill-2); }
.tag.accent { background: var(--fill-2); color: var(--text); }
.chip-btn { border-radius: 8px; padding: 5px 10px; font-size: 12.5px; background: var(--fill); border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.chip-btn.on { background: var(--fill-2); box-shadow: none; }

/* jednobarevné ikony místo barevných čtverečků */
.st-ic { background: var(--fill-2) !important; color: var(--text-2) !important; box-shadow: none !important; }
.hk .hk-top svg { color: var(--text-3) !important; }

/* ============ přehled ============ */
.hero { border-radius: var(--r-xl); padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 20px; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; }
.hero-main > :not(.hero-actions) { grid-column: 1; }
.hero-actions { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
.hero h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.035em; }
.hero .eyebrow { margin-bottom: 2px; }
.hero-sub { margin: 6px 0 0; font-size: 13.5px; max-width: 60ch; }
.hero-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); padding-top: 16px; }
.hk { background: none !important; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 2px 16px; transform: none !important; }
.hk:first-child { border-left: 0; padding-left: 0; }
.hk .hk-top { font-size: 11.5px; font-weight: 500; }
.hk b { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; }
.hk small { font-size: 11.5px; }
.hk small em { color: var(--text); }
.dash { gap: 14px; }
.pipe { gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.stage { background: none; border-radius: 0; border-left: 1px solid var(--line); padding: 14px 16px; }
.stage:first-child { border-left: 0; }
.stage:hover { background: var(--fill); }
.stage::after { display: none; }
.stage .st-ic { width: 26px; height: 26px; border-radius: 7px; margin-bottom: 8px; }
.stage .st-ic svg { width: 14px; height: 14px; }
.stage b { font-size: 24px; font-weight: 600; }
.stage span { font-size: 12px; }
.recent { grid-template-columns: repeat(6, 1fr); gap: 8px; }
.recent a { border-radius: 10px; }
.recent .add { border: 1px dashed var(--line); }
.bar i { background: var(--text-2); opacity: .55; border-radius: 3px; }
.bar i.p { background: var(--accent); opacity: 1; }
.bar i.z { background: var(--fill-2); opacity: 1; }
.legend span::before { border-radius: 50%; }
.lg-a::before { background: var(--text-2); }
.log div { font-size: 12px; border-top-color: var(--line); }
.hb { font-size: 13px; }
.hb .hb-track { height: 4px; background: var(--fill-2); }
.hb .hb-track i, .d-acc .hb .hb-track i { background: var(--text); opacity: .75; }
.hb .hb-sub { color: var(--text-3); }
.quick { padding: 10px 2px; border-top-color: var(--line); }
.quick .qn { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; background: var(--fill-2); }
.quick .qt { font-size: 13.5px; font-weight: 550; }
.quick .icon-btn { opacity: .55; }
.quick:hover .icon-btn { opacity: 1; }
.nc { border-radius: var(--r-lg); padding: 16px; }
.nc-top b { font-size: 14px; font-weight: 600; }
.nc-stats div { background: none; border: 1px solid var(--line); border-radius: 10px; }
.nc-stats b { font-size: 16px; font-weight: 600; }
.mini-reels .reel, .reel { border-radius: 12px; }

/* ============ studio / nástěnka ============ */
.studio-stats { gap: 0; border-radius: var(--r-lg); overflow: hidden; }
.sstat { border-radius: 0; box-shadow: none !important; border-left: 1px solid var(--line); padding: 14px 18px; }
.sstat:first-child { border-left: 0; }
.studio-stats { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.studio-stats .sstat { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.studio-stats .sstat .lg-host { display: none; }
.sstat .st-ic { width: 32px; height: 32px; border-radius: 9px; }
.sstat b { font-size: 20px; font-weight: 600; }
.col { border-radius: var(--r-lg); padding: 10px; gap: 8px; }
.col-head b { font-size: 13px; font-weight: 600; }
.col-head .st-ic { width: 22px; height: 22px; border-radius: 6px; }
.col-head em { background: var(--fill-2); font-size: 11px; }
.kc { background: var(--fill); border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
.kc:hover { background: var(--fill-2); }
.kc-idea .hk-txt { font-size: 13.5px; font-weight: 600; }
.col-empty { border: 1px dashed var(--line); border-radius: 12px; }
.proj, .sound { border-radius: var(--r-lg); }

/* ============ texty, účty, warmup, nastavení ============ */
.idea { border-radius: var(--r-xl); }
.hook { letter-spacing: -0.02em; }
.concept { background: var(--fill); border: 1px solid var(--line); }
.concept svg { color: var(--text-2); }
.why { background: none; border: 1px solid var(--line); }
.qual { background: var(--fill-2); }
.group { border-radius: var(--r-lg); }
.srow { border-top-color: var(--line); }
.acc-row { border-top-color: var(--line); }
.warm { border-radius: var(--r-xl); }
.warm-day { background: var(--fill-2); color: var(--text); box-shadow: none; }
.warm-phases i.cur { background: var(--text); }
.warm-facts > div { background: none; border: 1px solid var(--line); }
.niche { border-radius: var(--r-lg); }
.kpi { border-radius: var(--r-lg); }
.island { border-radius: 14px; }
#toast { border-radius: 12px; }
.dialog { border-radius: var(--r-xl); }

/* ============ mobil ============ */
@media (max-width: 1180px) {
  .hero-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; }
  .hk:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 820px) {
  .content { padding: 18px 14px 120px; }
  .hero-main { grid-template-columns: 1fr; }
  .hero-actions { grid-column: 1; grid-row: auto; margin-top: 14px; }
  .hero h1 { font-size: 24px; }
  .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk { padding: 2px 12px; }
  .hk:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hk:nth-child(4) { border-left: 1px solid var(--line); padding-left: 12px; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(3) { border-left: 0; }
  .stage:nth-child(n+3) { border-top: 1px solid var(--line); }
  .studio-stats { grid-template-columns: repeat(2, 1fr); }
  .sstat:nth-child(3) { border-left: 0; }
  .sstat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sidebar { border-radius: 20px; }
}

/* opravy */
.hero { align-items: stretch; }
a.btn, .btn { color: var(--text); }
.btn.primary { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0d0d10; } }
:root[data-theme="dark"] .btn.primary { color: #0d0d10; }
.vtype, .vtype.text, .vtype.mix, .vtype.mluvene { background: var(--fill-2) !important; color: var(--text-2) !important; }
.niche-pill { font-weight: 500; }

/* ============ živé pozadí (liquid.js) ============ */
.backdrop canvas.liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.backdrop::before, .backdrop::after { z-index: 1; }
html.live-bg .backdrop i { display: none; }

/* ============ glassmorphism ============ */
/* panely: průsvitné matné sklo, barvy pozadí prosvítají; světlá hrana a odlesk nahoře */
.lg-host > .lg-glass { --lg-blur: 30px; --lg-filter: saturate(1.7) brightness(1.06) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .22) !important; }
.glass { -webkit-backdrop-filter: blur(30px) saturate(170%) brightness(1.06); backdrop-filter: blur(30px) saturate(170%) brightness(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .2), 0 20px 50px -24px rgba(0, 0, 0, .55) !important; }
html:not([data-theme="dark"]) .lg-host > .lg-glass { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .8) !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme]) .lg-host > .lg-glass { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), inset 0 1px 0 rgba(255, 255, 255, .22) !important; } }

/* vnitřní prvky: skleněné výplně a světlé hrany místo šedých ploch */
@media (prefers-color-scheme: dark) {
  html.has-photo:not([data-theme="light"]) { --fill: rgba(255, 255, 255, .06); --fill-2: rgba(255, 255, 255, .11); --line: rgba(255, 255, 255, .1); }
}
html.has-photo[data-theme="dark"] { --fill: rgba(255, 255, 255, .06); --fill-2: rgba(255, 255, 255, .11); --line: rgba(255, 255, 255, .1); }
html.has-photo[data-theme="light"] { --fill: rgba(255, 255, 255, .38); --fill-2: rgba(255, 255, 255, .58); --line: rgba(255, 255, 255, .6); }
@media (prefers-color-scheme: light) { html.has-photo:not([data-theme]) { --fill: rgba(255, 255, 255, .38); --fill-2: rgba(255, 255, 255, .58); --line: rgba(255, 255, 255, .6); } }
.btn, .pill-select, input, textarea, select, .chip-btn, .kc, .nc-stats div, .warm-facts > div, .concept, .why, .ig-chip, .theme-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn:not(.primary), .chip-btn, .kc { background: linear-gradient(180deg, var(--fill-2), var(--fill)); }
.pipe, .studio-stats { background: linear-gradient(180deg, var(--fill), transparent); }
.studio-stats { -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); background: var(--glass); }
#nav button.active { background: linear-gradient(180deg, var(--fill-2), var(--fill)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .1); }
.segmented button.on { background: linear-gradient(180deg, var(--fill-2), var(--fill)); box-shadow: inset 0 0 0 1px var(--line); }
.btn.primary { box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }

/* ============ styl podle předloh: čiré sklo se světlou hranou, lehké písmo, skleněné ikony a pilulky ============ */
:root {
  --edge: rgba(255, 255, 255, .22);        /* světlá hrana skla */
  --edge-hi: rgba(255, 255, 255, .38);     /* horní odlesk */
  --pane: rgba(255, 255, 255, .055);       /* výplň vnitřních skleněných prvků */
  --pane-2: rgba(255, 255, 255, .1);
  --accent: #ff3d7f; --accent-soft: rgba(255, 61, 127, .16);
  --r-xl: 26px; --r-lg: 20px; --r-md: 16px; --r-sm: 12px;
}
html[data-theme="light"], html:not([data-theme]) { --edge: rgba(255, 255, 255, .6); --edge-hi: rgba(255, 255, 255, .9); --pane: rgba(255, 255, 255, .28); --pane-2: rgba(255, 255, 255, .45); }
@media (prefers-color-scheme: dark) { html:not([data-theme]) { --edge: rgba(255, 255, 255, .22); --edge-hi: rgba(255, 255, 255, .38); --pane: rgba(255, 255, 255, .055); --pane-2: rgba(255, 255, 255, .1); } }
html.has-photo { --line: rgba(255, 255, 255, .14); --fill: var(--pane); --fill-2: var(--pane-2); }
html.has-photo[data-theme="light"] { --line: rgba(255, 255, 255, .55); }
@media (prefers-color-scheme: light) { html.has-photo:not([data-theme]) { --line: rgba(255, 255, 255, .55); } }
@media (prefers-color-scheme: dark) {
  html.has-photo:not([data-theme="light"]) { --text: #fff; --text-2: rgba(255, 255, 255, .68); --text-3: rgba(255, 255, 255, .42); }
}
html.has-photo[data-theme="dark"] { --text: #fff; --text-2: rgba(255, 255, 255, .68); --text-3: rgba(255, 255, 255, .42); }

/* panely: čiré sklo, světlá hrana, odlesk nahoře, měkký stín */
.lg-host > .lg-glass { --lg-blur: 26px; box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-hi) !important; }
.glass { border-radius: var(--r-xl); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-hi), 0 24px 60px -30px rgba(0, 0, 0, .6) !important; }
.glass.lg-in { box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6) !important; }
.card { padding: 22px 24px; }

/* písmo: velké věci lehce, popisky klidně */
.vhead h1, .hero h1 { font-weight: 300; letter-spacing: -0.03em; }
.vhead h1 { font-size: 34px; }
.hero h1 { font-size: 40px; }
.hero .eyebrow, .vhead .eyebrow { font-size: 13px; font-weight: 400; color: var(--text-2); }
.card h2, .card-head h2 { font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.hk b, .stage b, .sstat b, .nc-stats b, .warm-day b, .kpi b { font-weight: 300 !important; letter-spacing: -0.035em; }
.hk b { font-size: 32px; }
.stage b { font-size: 30px; }
.sstat b { font-size: 26px; }
.hk .hk-top, .stage span, .sstat span { font-weight: 400; }
.hook { font-weight: 500; }

/* ikony ve skleněných čtverečcích s hranou */
.st-ic { background: var(--pane) !important; color: var(--text) !important; box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-hi) !important; border-radius: 12px !important; }
.stage .st-ic { width: 38px; height: 38px; }
.stage .st-ic svg { width: 18px; height: 18px; stroke-width: 1.6; }
.sstat .st-ic { width: 44px; height: 44px; border-radius: 14px !important; }
.sstat .st-ic svg { width: 20px; height: 20px; stroke-width: 1.6; }
.col-head .st-ic { width: 28px; height: 28px; border-radius: 9px !important; }
.hk .hk-top svg { color: var(--text-2) !important; }

/* tlačítka: skleněné pilulky s hranou; hlavní akce plná barva (jako oranžové „Home“) */
.btn { height: 38px; padding: 0 16px; border-radius: 14px; font-weight: 500; font-size: 13.5px;
  background: var(--pane) !important; border: 0; box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-hi) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn:hover { background: var(--pane-2) !important; }
.btn.small { height: 30px; padding: 0 12px; border-radius: 11px; }
.btn.primary, :root[data-theme="dark"] .btn.primary { background: var(--accent) !important; color: #fff !important; box-shadow: 0 10px 24px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .35) !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--accent) !important; color: #fff !important; } }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: #ff453a !important; color: #fff; box-shadow: none !important; }
.icon-btn { width: 34px; height: 34px; border-radius: 12px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--edge); }
.icon-btn:hover { background: var(--pane-2); }
.theme-btn { border: 0; box-shadow: inset 0 0 0 1px var(--edge); background: var(--pane); width: 36px; height: 36px; }
.segmented { border-radius: 16px; padding: 3px; background: var(--pane) !important; box-shadow: inset 0 0 0 1px var(--edge) !important; }
.segmented button { border-radius: 12px; height: 30px; }
.segmented button.on { background: var(--pane-2) !important; box-shadow: inset 0 0 0 1px var(--edge-hi) !important; }
.chip-btn { border-radius: 999px; background: var(--pane) !important; border: 0; box-shadow: inset 0 0 0 1px var(--edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.chip-btn.on { background: var(--pane-2) !important; box-shadow: inset 0 0 0 1px var(--edge-hi); }
.pill-select, input, textarea, select { background: var(--pane); border: 0; box-shadow: inset 0 0 0 1px var(--edge); border-radius: 14px; }
input:focus, textarea:focus, select:focus { box-shadow: inset 0 0 0 1px var(--edge-hi), 0 0 0 3px var(--accent-soft); background: var(--pane-2); }
.tag { border-radius: 999px; padding: 3px 9px; background: var(--pane-2); }
.link { color: var(--text-2); }

/* navigace: skleněný panel, aktivní položka jako pilulka s hranou */
.sidebar { border-radius: 26px; }
#nav button { border-radius: 14px; padding: 9px 12px; color: var(--text-2); font-weight: 400; }
#nav button.active { background: var(--pane-2) !important; color: var(--text); box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-hi) !important; font-weight: 500; }
#nav em { background: var(--accent); color: #fff; }
.ig-chip { border: 0; box-shadow: inset 0 0 0 1px var(--edge); background: var(--pane); border-radius: 16px; }
.logo { border-radius: 12px; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }

/* vnitřní skupiny: sklo s hranou místo plných ploch */
.pipe { border: 0; box-shadow: inset 0 0 0 1px var(--edge); border-radius: 20px; background: var(--pane) !important; }
.stage { border-left-color: var(--line); padding: 16px 18px; }
.hero-kpis { border-top-color: var(--line); }
.hk { border-left-color: var(--line); }
.studio-stats { border-radius: 22px; box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-hi); }
.kc { border: 0; border-radius: 18px; background: var(--pane) !important; box-shadow: inset 0 0 0 1px var(--edge), inset 0 1px 0 var(--edge-hi); }
.kc:hover { background: var(--pane-2) !important; }
.col { border-radius: 24px; }
.nc-stats div, .warm-facts > div { border: 0; box-shadow: inset 0 0 0 1px var(--edge); background: var(--pane); border-radius: 14px; }
.concept, .why { border: 0; box-shadow: inset 0 0 0 1px var(--edge); background: var(--pane); border-radius: 16px; }
.recent a { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--edge); }
.recent .add { border: 0; box-shadow: inset 0 0 0 1px var(--edge); background: var(--pane); }
.quick .qn { background: var(--pane-2); box-shadow: inset 0 0 0 1px var(--edge); border-radius: 9px; width: 26px; height: 26px; }
.mini-reels .reel, .reel { border-radius: 18px; }
.bar i { background: rgba(255, 255, 255, .55); }
html[data-theme="light"] .bar i { background: rgba(0, 0, 0, .35); }
.hb .hb-track { background: var(--pane-2); height: 5px; }
.hb .hb-track i, .d-acc .hb .hb-track i { background: var(--text); opacity: .85; }
.wt .box { border-radius: 7px; }
.wt.done .box { background: #30d158; border-color: #30d158; box-shadow: 0 0 10px rgba(48, 209, 88, .55); }
/* zelené „svítící“ stavové tečky */
.status-dot.ok::before { background: #30d158; box-shadow: 0 0 10px rgba(48, 209, 88, .8); }
.island { border-radius: 999px; }

/* ============ Apple: plné barevné čtverečky s bílou ikonou (jako Nastavení), popisky v barvě (jako Zdraví), zaoblená čísla, jedna RGB záře ============ */
:root {
  --c-blue: #0a84ff; --c-green: #30d158; --c-indigo: #5e5ce6; --c-orange: #ff9f0a; --c-pink: #ff375f;
  --c-purple: #bf5af2; --c-red: #ff453a; --c-teal: #40c8e0; --c-yellow: #ffcc00; --c-mint: #63e6e2; --c-gray: #8e8e93;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* čtvereček jako ikona aplikace: plná barva, nahoře o kousek světlejší, bílý symbol */
.st-ic { --ic: var(--c-gray); color: #fff !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ic) 84%, #fff), var(--ic)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 6px 14px -8px var(--ic) !important; }
.st-ic svg { stroke-width: 2 !important; }
.st-ic.k-todo { --ic: var(--c-purple); }
.st-ic.k-editing { --ic: var(--c-orange); }
.st-ic.k-ready { --ic: var(--c-green); }
.st-ic.k-posted { --ic: var(--c-pink); }

/* menu na počítači: jako Nastavení na Macu/iPhonu – barevné čtverečky, bílé symboly, text normální */
#nav button[data-view="home"] { --ic: var(--c-blue); }
#nav button[data-view="ideas"] { --ic: var(--c-yellow); }
#nav button[data-view="studio"] { --ic: var(--c-pink); }
#nav button[data-view="warmup"] { --ic: var(--c-orange); }
#nav button[data-view="accounts"] { --ic: var(--c-green); }
#nav button[data-view="videos"] { --ic: var(--c-purple); }
#nav button[data-view="brain"] { --ic: var(--c-teal); }
#nav button[data-view="settings"] { --ic: var(--c-gray); }
@media (min-width: 821px) {
  #nav button { color: var(--text); padding: 6px 10px; gap: 11px; }
  #nav button svg, #nav button.active svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 8px; color: #fff !important; stroke-width: 2;
    background: linear-gradient(180deg, color-mix(in srgb, var(--ic) 84%, #fff), var(--ic));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 0 0 .5px rgba(255, 255, 255, .15); }
}
/* mobil: jako spodní lišta v iOS – šedé ikony, aktivní v barvě */
@media (max-width: 820px) {
  #nav button { padding: 7px 2px; font-size: 10.5px; gap: 3px; border-radius: 16px; color: var(--text-2); font-weight: 500; }
  #nav button svg { width: 22px; height: 22px; color: var(--text-2); }
  #nav button.active, #nav button.active svg { color: var(--ic) !important; }
}

/* horní ukazatele jako karty ve Zdraví: popisek a symbol v barvě, číslo zaoblené */
.hk.c1 { --ic: var(--c-pink); } .hk.c2 { --ic: var(--c-blue); } .hk.c3 { --ic: var(--c-orange); }
.hk.c4 { --ic: var(--c-purple); } .hk.c5 { --ic: var(--c-green); } .hk.c6 { --ic: var(--c-teal); }
.hk .hk-top { color: var(--ic); font-weight: 600 !important; }
/* světlý režim: tmavší varianty systémových barev, ať jsou popisky čitelné (jako Apple) */
html[data-theme="light"] .hk { --c-pink: #d30f45; --c-blue: #0062cc; --c-orange: #c25400; --c-purple: #8944ab; --c-green: #1f7a37; --c-teal: #0071a4; }
@media (prefers-color-scheme: light) { html:not([data-theme]) .hk { --c-pink: #d30f45; --c-blue: #0062cc; --c-orange: #c25400; --c-purple: #8944ab; --c-green: #1f7a37; --c-teal: #0071a4; } }
.hk .hk-top svg { color: var(--ic) !important; width: 15px; height: 15px; stroke-width: 2.2; }
.hk b, .stage b, .sstat b, .nc-stats b, .warm-day b, .kpi b { font-family: var(--rounded); font-weight: 500 !important; letter-spacing: -0.02em; }

/* stavy */
.tag.green, .proj-thumb .tag.green { color: var(--c-green) !important; background: color-mix(in srgb, var(--c-green) 16%, transparent) !important; }
.tag.orange, .proj-thumb .tag.orange { color: var(--c-orange) !important; background: color-mix(in srgb, var(--c-orange) 16%, transparent) !important; }
.tag.red, .proj-thumb .tag.red { color: var(--c-red) !important; background: color-mix(in srgb, var(--c-red) 16%, transparent) !important; }
.tag.accent { color: var(--c-pink) !important; background: color-mix(in srgb, var(--c-pink) 15%, transparent) !important; }
.kc-sched { color: var(--c-blue) !important; }
.vtype.text { color: var(--c-blue) !important; background: color-mix(in srgb, var(--c-blue) 15%, transparent) !important; }
.vtype.mix { color: var(--c-purple) !important; background: color-mix(in srgb, var(--c-purple) 15%, transparent) !important; }
.vtype.mluvene { color: var(--c-orange) !important; background: color-mix(in srgb, var(--c-orange) 15%, transparent) !important; }

/* grafy jako Čas u obrazovky: zaoblené sloupce, plné systémové barvy */
.bar i { background: var(--c-blue) !important; border-radius: 5px !important; }
.bar i.p { background: var(--c-teal) !important; }
.bar i.z { background: var(--pane-2) !important; }
.lg-a::before { background: var(--c-blue); }
.lg-b::before { background: var(--c-teal); }
.hb .hb-track, .hb .hb-track i, .wt-bar, .wt-bar i, .warm-phases i { border-radius: 99px !important; }
.hb .hb-track { height: 6px; }
.d-formats .hb .hb-track i { background: var(--c-orange) !important; opacity: 1; }
.d-acc .hb .hb-track i { background: var(--c-blue) !important; opacity: 1; }
.wt-bar i { background: var(--c-green); }
.warm-phases i.done { background: var(--c-green); }
.warm-phases i.cur { background: var(--c-orange); }
.warm-day { background: linear-gradient(180deg, color-mix(in srgb, var(--c-orange) 84%, #fff), var(--c-orange)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 6px 14px -8px var(--c-orange) !important; color: #fff !important; }
.warm-facts .ok b, .warm-facts .ok svg { color: var(--c-green); }
.warm-facts .lock b { color: var(--c-orange); }

/* jedna RGB záře: pomalu obíhající duhový okraj (jako Apple Intelligence) – jen horní panel a bublina úlohy */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
.hero.glass::after, .island.show::after {
  content: ""; display: block !important; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px; z-index: 2;
  background: conic-gradient(from var(--spin), var(--c-blue), var(--c-purple), var(--c-pink), var(--c-orange), var(--c-yellow), var(--c-green), var(--c-teal), var(--c-blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; animation: spin 10s linear infinite;
}
.hero.glass::before, .island.show::before {
  content: ""; display: block !important; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none; z-index: -2;
  background: conic-gradient(from var(--spin), var(--c-blue), var(--c-purple), var(--c-pink), var(--c-orange), var(--c-yellow), var(--c-green), var(--c-teal), var(--c-blue));
  filter: blur(22px); opacity: .22; animation: spin 10s linear infinite;
}
.island.show::after { opacity: .8; }
.island.show::before { opacity: .45; filter: blur(14px); }
@media (prefers-reduced-motion: reduce) { .hero.glass::after, .hero.glass::before, .island.show::after, .island.show::before { animation: none; } }

/* ============ ovládací prvky podle Apple HIG: bez obrysů, šedá průsvitná výplň, plný „palec“, polotučné písmo ============ */
:root {
  --ctl: rgba(118, 118, 128, .24); --ctl-hover: rgba(118, 118, 128, .34); --ctl-thumb: #636366;
  --ctl-thumb-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
  --ctl-blur: blur(20px) saturate(180%); --focus: color-mix(in srgb, var(--c-blue) 55%, transparent);
}
html[data-theme="light"] { --ctl: rgba(118, 118, 128, .12); --ctl-hover: rgba(118, 118, 128, .2); --ctl-thumb: #fff; }
@media (prefers-color-scheme: light) { html:not([data-theme]) { --ctl: rgba(118, 118, 128, .12); --ctl-hover: rgba(118, 118, 128, .2); --ctl-thumb: #fff; } }
/* na barevném pozadí víc „skla“, ať prvky nesplývají */
html.has-grad, html.has-photo { --ctl: rgba(255, 255, 255, .1); --ctl-hover: rgba(255, 255, 255, .16); --ctl-thumb: rgba(255, 255, 255, .24); }
html.has-grad[data-theme="light"], html.has-photo[data-theme="light"] { --ctl: rgba(255, 255, 255, .4); --ctl-hover: rgba(255, 255, 255, .55); --ctl-thumb: #fff; }
@media (prefers-color-scheme: light) { html.has-grad:not([data-theme]), html.has-photo:not([data-theme]) { --ctl: rgba(255, 255, 255, .4); --ctl-hover: rgba(255, 255, 255, .55); --ctl-thumb: #fff; } }

/* tlačítka: kapsle, žádný obrys ani barevná záře */
.btn { height: 34px; padding: 0 16px; border-radius: 999px; gap: 7px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--text) !important; background: var(--ctl) !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: var(--ctl-blur); backdrop-filter: var(--ctl-blur); transition: background .15s, transform .12s, opacity .15s; }
.btn:hover { background: var(--ctl-hover) !important; filter: none; }
.btn:active { transform: scale(.97); opacity: .85; }
.btn svg { width: 15px; height: 15px; stroke-width: 2; }
.btn.small { height: 28px; padding: 0 12px; font-size: 13px; gap: 5px; }
.btn.small svg { width: 13px; height: 13px; }
.btn.primary, :root[data-theme="dark"] .btn.primary { background: var(--accent) !important; color: #fff !important; box-shadow: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--accent) !important; color: #fff !important; } }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff) !important; }
.btn.danger { background: color-mix(in srgb, var(--c-red) 18%, transparent) !important; color: var(--c-red) !important; }
.btn:disabled { opacity: .4; transform: none; }

/* kulatá ikonová tlačítka jako šedé „x“ v iOS */
.icon-btn, .theme-btn { width: 30px; height: 30px; border-radius: 50% !important; border: 0; background: var(--ctl) !important; box-shadow: none !important; color: var(--text-2);
  -webkit-backdrop-filter: var(--ctl-blur); backdrop-filter: var(--ctl-blur); }
.icon-btn:hover, .theme-btn:hover { background: var(--ctl-hover) !important; color: var(--text); }
.icon-btn svg { width: 14px; height: 14px; stroke-width: 2; }
.theme-btn { width: 34px; height: 34px; }

/* přepínač segmentů: šedá kolej, plný palec se stínem, žádné obrysy */
.segmented { display: inline-flex; padding: 2px !important; gap: 0; border-radius: 999px !important; background: var(--ctl) !important; box-shadow: none !important; border: 0 !important;
  -webkit-backdrop-filter: var(--ctl-blur); backdrop-filter: var(--ctl-blur); }
.segmented button { height: 30px; padding: 0 14px; border-radius: 999px !important; font-size: 13px; font-weight: 500; color: var(--text) !important; background: none !important; box-shadow: none !important; }
.segmented button:hover:not(.on) { opacity: .7; }
.segmented button.on { background: var(--ctl-thumb) !important; box-shadow: var(--ctl-thumb-shadow) !important; font-weight: 600; }

/* filtrovací kapsle jako v Hudbě/Fotkách: šedé, vybraná plná bílá s tmavým textem */
.chip-btn { height: 30px; padding: 0 13px; border: 0 !important; border-radius: 999px; background: var(--ctl) !important; box-shadow: none !important; color: var(--text) !important; font-size: 13px; font-weight: 500;
  -webkit-backdrop-filter: var(--ctl-blur); backdrop-filter: var(--ctl-blur); }
.chip-btn:hover { background: var(--ctl-hover) !important; }
.chip-btn.on { background: var(--text) !important; color: var(--bg, #000) !important; font-weight: 600; }
html:not([data-theme="light"]) .chip-btn.on { color: #000 !important; }
html[data-theme="light"] .chip-btn.on { color: #fff !important; }
@media (prefers-color-scheme: light) { html:not([data-theme]) .chip-btn.on { color: #fff !important; } }

/* pole a výběry: zaoblený obdélník s výplní, při psaní modrý fokus (jako macOS) */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), textarea, select, .pill-select {
  border: 0 !important; border-radius: 10px !important; background: var(--ctl) !important; box-shadow: none !important; color: var(--text);
  -webkit-backdrop-filter: var(--ctl-blur); backdrop-filter: var(--ctl-blur); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, textarea:focus, select:focus, .pill-select:focus { outline: none; box-shadow: 0 0 0 3.5px var(--focus) !important; }
.pill-select { height: 32px; font-size: 13px; font-weight: 500; }

/* přepínač: zelený jako v iOS */
.switch i { background: var(--ctl) !important; }
.switch input:checked + i { background: var(--c-green) !important; }

/* výběr v menu na počítači: jen tichá výplň, bez obrysu (jako postranní panel v macOS) */
@media (min-width: 821px) { #nav button.active { background: var(--ctl) !important; box-shadow: none !important; } #nav button:hover:not(.active) { background: rgba(118, 118, 128, .12); } }
@media (max-width: 820px) { #nav button.active { background: var(--ctl) !important; box-shadow: none !important; } }

/* štítky: kapsle bez obrysu */
.tag { border: 0 !important; font-weight: 600; }

/* hlavička karty textu: štítky se nelámou, dlouhý formát se zkrátí */
.idea-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.idea-top .vtype, .idea-top .qual, .idea-top .num { white-space: nowrap; flex: none; }
.idea-top .vtype { display: inline-flex; align-items: center; gap: 4px; }
.idea-top .tag.accent { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea-top .num { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 12px; }
.qual { border-radius: 999px !important; border: 0 !important; background: var(--ctl) !important; font-weight: 600; }
