/* ============ tokeny ============ */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  --bg: #eef0f7;
  --blob1: #ff9ec0; --blob2: #b7a4ff; --blob3: #8fd8ff; --blob4: #ffd29e;
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-shine: rgba(255, 255, 255, .55);
  --hair: rgba(60, 60, 67, .12);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --accent: #ff2d6f;
  --accent-soft: rgba(255, 45, 111, .12);
  --green: #30b158; --green-soft: rgba(52, 199, 89, .14);
  --orange: #f08c00; --orange-soft: rgba(255, 159, 10, .15);
  --red: #ff3b30; --red-soft: rgba(255, 59, 48, .12);
  --blue: #0a84ff; --violet: #8e5cf7;
  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 10px 30px -8px rgba(40, 30, 80, .16);
  --shadow-lg: 0 30px 80px -20px rgba(40, 30, 80, .35);
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --blur: blur(30px) saturate(180%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07070b;
    --blob1: #7a1f47; --blob2: #3b2a8a; --blob3: #0f4a6b; --blob4: #5a3a14;
    --glass: rgba(36, 36, 44, .5);
    --glass-strong: rgba(44, 44, 54, .78);
    --glass-border: rgba(255, 255, 255, .09);
    --glass-shine: rgba(255, 255, 255, .07);
    --hair: rgba(255, 255, 255, .09);
    --fill: rgba(118, 118, 128, .22);
    --fill-2: rgba(118, 118, 128, .32);
    --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73;
    --accent: #ff4f86; --accent-soft: rgba(255, 79, 134, .16);
    --shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 12px 34px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  --bg: #07070b;
  --blob1: #7a1f47; --blob2: #3b2a8a; --blob3: #0f4a6b; --blob4: #5a3a14;
  --glass: rgba(36, 36, 44, .5);
  --glass-strong: rgba(44, 44, 54, .78);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-shine: rgba(255, 255, 255, .07);
  --hair: rgba(255, 255, 255, .09);
  --fill: rgba(118, 118, 128, .22);
  --fill-2: rgba(118, 118, 128, .32);
  --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73;
  --accent: #ff4f86; --accent-soft: rgba(255, 79, 134, .16);
  --shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 12px 34px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .8);
}

/* ============ základ ============ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; overflow-x: clip; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: var(--accent); text-decoration: none; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; background: var(--fill); padding: 1px 6px; border-radius: 6px; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }

/* pozadí – barevné skvrny pod sklem */
/* pozadí bez fotky: tmavý zrnitý přechod (žhnoucí tvary, tmavá vlna, filmové zrno) */
:root { --g1: #ff2a12; --g2: #c4170a; }
html[data-grad="ember"] { --g1: #ff6a1f; --g2: #ff1f3d; }
html[data-grad="magenta"] { --g1: #ff2d7a; --g2: #b0124f; }
html[data-grad="violet"] { --g1: #9147ff; --g2: #4b1fd1; }
html[data-grad="blue"] { --g1: #2f7bff; --g2: #1238c4; }
html[data-grad="teal"] { --g1: #14d4b4; --g2: #0b6f8a; }
html[data-grad="amber"] { --g1: #ffab24; --g2: #ff5c0a; }
html[data-grad="silver"] { --g1: #d9dae3; --g2: #7d7f8f; }
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #050506; }
.backdrop i { position: absolute; border-radius: 50%; }
.backdrop .b1 { width: 78vw; height: 58vh; left: -12vw; top: 30vh; background: var(--g1); filter: blur(80px); opacity: .95; transform: rotate(-14deg); }
.backdrop .b2 { width: 52vw; height: 46vh; right: -8vw; top: 4vh; background: var(--g2); filter: blur(90px); opacity: .9; }
.backdrop .b3 { width: 34vw; height: 30vh; left: 4vw; top: 6vh; background: var(--g2); filter: blur(90px); opacity: .55; }
/* tmavá vlna, která tvary rozdělí (jako ohyb látky) */
.backdrop .b4 { width: 70vw; height: 22vh; left: 14vw; top: 22vh; background: #050506; filter: blur(55px); transform: rotate(-12deg); border-radius: 45%; }
/* filmové zrno (dvě vrstvy: kontrast na barvě + jemné tečky i na černé) a ztmavené okraje */
.backdrop::before, .backdrop::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncG type='linear' slope='2.4' intercept='-.7'/%3E%3CfeFuncB type='linear' slope='2.4' intercept='-.7'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"); background-size: 240px 240px; }
.backdrop::before { mix-blend-mode: overlay; opacity: 1; }
.backdrop::after { opacity: .13; box-shadow: inset 0 0 22vw 6vw rgba(0, 0, 0, .7); }

/* liquid glass: skoro čiré sklo, které jen lehce rozostří, láme světlo na hranách a má lesklý okraj */
:root {
  --lq-hi: rgba(255, 255, 255, .9);
  --lq-lo: rgba(255, 255, 255, .3);
  --lq-glow: rgba(255, 255, 255, .42);
  --lq-spec: rgba(255, 255, 255, .5);
  --lq-rim: rgba(255, 255, 255, .95);
  --lq-shadow: rgba(12, 16, 32, .26);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --lq-hi: rgba(255, 255, 255, .3); --lq-lo: rgba(255, 255, 255, .06); --lq-glow: rgba(255, 255, 255, .07); --lq-spec: rgba(255, 255, 255, .12); --lq-rim: rgba(255, 255, 255, .42); --lq-shadow: rgba(0, 0, 0, .6); }
}
:root[data-theme="dark"] { --lq-hi: rgba(255, 255, 255, .3); --lq-lo: rgba(255, 255, 255, .06); --lq-glow: rgba(255, 255, 255, .07); --lq-spec: rgba(255, 255, 255, .12); --lq-rim: rgba(255, 255, 255, .42); --lq-shadow: rgba(0, 0, 0, .6); }
.glass {
  position: relative;
  isolation: isolate;
  background: linear-gradient(160deg, var(--glass) 0%, var(--glass-2, var(--glass)) 100%);
  -webkit-backdrop-filter: blur(var(--lg-blur, 4px)) saturate(160%) brightness(1.04);
  backdrop-filter: blur(var(--lg-blur, 4px)) saturate(160%) brightness(1.04);
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 0 var(--lq-hi),
    inset 0 -1px 0 0 var(--lq-lo),
    inset 0 0 22px 0 var(--lq-glow),
    inset 10px 10px 24px -18px var(--lq-hi),
    0 12px 40px -14px var(--lq-shadow),
    0 2px 6px -2px rgba(0, 0, 0, .1);
}
/* odlesk světla zleva nahoře a slabší zprava dole */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 70% at 12% -10%, var(--lq-spec), transparent 52%),
    radial-gradient(70% 45% at 100% 110%, color-mix(in srgb, var(--lq-spec) 55%, transparent), transparent 60%);
}
/* glisse (public/vendor/glisse.js): frosted glass podle glisse – panel jen nese obsah, sklo kreslí vrstva .lg-host.
   Výplň, mráz, okraj i stín jsou výchozí z glisse (světlý: bílá 60 %, tmavý: rgb(40 40 40 / .62), blur 3px, saturace 1.5).
   Lom světla vypnutý (--lg-filter), u panelů přes obrazovku by při scrollu sekal. */
.lg-root { display: contents; }
.lg-host { position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; }
.lg-host > .lg-glass { position: absolute; inset: 0; border-radius: inherit; --lg-filter: saturate(1.5) !important; }
.lg-host + .acc-row, .lg-host + .srow { border-top: 0; }
/* vlastní CSS sklo pryč, kreslí ho glisse; zapnutý stav (.on/.active) si u tlačítek výplň nechává */
.glass.lg-in { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; }
.glass.lg-in::before, .glass.lg-in::after { display: none; }
.lg-in:not(.glass) { position: relative; isolation: isolate; }
.lg-in:not(.glass):not(.on):not(.active) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; }
/* lesklý okraj – na hranách se světlo láme */
.glass::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.3px;
  background: linear-gradient(135deg, var(--lq-rim) 0%, color-mix(in srgb, var(--lq-rim) 25%, transparent) 26%, transparent 48%, color-mix(in srgb, var(--lq-rim) 20%, transparent) 72%, color-mix(in srgb, var(--lq-rim) 80%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ============ layout ============ */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 14px; margin: 14px 0 14px 14px; height: calc(100vh - 28px);
  border-radius: var(--r-xl); padding: 18px 12px; display: flex; flex-direction: column; gap: 22px; z-index: 4;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; }
.brand b { display: block; font-size: 16px; letter-spacing: -0.02em; }
.brand span { display: block; font-size: 12px; color: var(--text-2); }
.logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; letter-spacing: -0.06em;
  background: linear-gradient(145deg, #ff6b9a, #ff2d6f 50%, #b04dff); box-shadow: 0 6px 16px -4px rgba(255, 45, 111, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
#nav { display: flex; flex-direction: column; gap: 3px; }
#nav button {
  display: flex; align-items: center; gap: 11px; border: 0; background: none; cursor: pointer;
  padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; text-align: left; position: relative;
  transition: background .15s, color .15s;
}
#nav button:hover { background: var(--fill); color: var(--text); }
#nav button.active { background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 10px -2px rgba(0, 0, 0, .12), inset 0 1px 0 var(--glass-shine); }
#nav button.active svg { color: var(--accent); }
#nav em { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
#nav em:empty { display: none; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.next { flex: 1; font-size: 12px; color: var(--text-2); line-height: 1.35; }
.next b { color: var(--text); font-weight: 600; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--fill); cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.theme-btn:hover { color: var(--text); }

.content { padding: 30px 36px 80px; max-width: 1240px; width: 100%; min-width: 0; }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 6px 0 22px; }
.vhead h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.035em; margin: 0; font-weight: 700; }
.eyebrow { margin: 0 0 4px; color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.vactions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.view { animation: viewIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ============ ovládací prvky ============ */
.btn { white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--glass-strong); font-weight: 600; font-size: 14px;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 2px 8px -2px rgba(0, 0, 0, .1);
  transition: transform .12s, filter .15s, background .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, #fff), var(--accent)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.danger { background: var(--red); border-color: transparent; color: #fff; }
.btn.small { height: 30px; padding: 0 12px; font-size: 13px; }
.link { border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; padding: 4px; font-size: 14px; }
.link svg { width: 15px; height: 15px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); display: grid; place-items: center; cursor: pointer; color: var(--text-2); transition: background .15s, color .15s, transform .12s; }
.icon-btn:hover { background: var(--fill-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 16px; height: 16px; }

input, textarea, select { background: var(--fill); border: 1px solid transparent; border-radius: var(--r-sm); padding: 10px 13px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--glass-strong); }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.8px solid var(--text-2); border-bottom: 1.8px solid var(--text-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pill-select { appearance: none; -webkit-appearance: none; border-radius: 999px; height: 38px; padding: 0 36px 0 15px; font-weight: 500; font-size: 14px; cursor: pointer; background: var(--glass-strong); border: 1px solid var(--glass-border); }

.segmented { display: inline-flex; padding: 3px; border-radius: 999px; gap: 2px; }
.segmented button { border: 0; background: none; border-radius: 999px; padding: 0 14px; height: 32px; cursor: pointer; font-weight: 500; font-size: 13.5px; color: var(--text-2); transition: all .2s; }
.segmented button.on { background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .18), inset 0 1px 0 var(--glass-shine); }

.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--fill-2); transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }

.stepper { display: inline-flex; align-items: center; background: var(--fill); border-radius: 999px; padding: 3px; }
.stepper button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--glass-strong); cursor: pointer; font-size: 17px; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stepper input { width: 46px; text-align: center; background: none; border: 0; padding: 4px; font-weight: 600; -moz-appearance: textfield; }
.stepper input:focus { box-shadow: none; background: none; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--fill); color: var(--text-2); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.orange { background: var(--orange-soft); color: var(--orange); }
.tag.red { background: var(--red-soft); color: var(--red); }

/* ============ karty ============ */
.card { border-radius: var(--r-xl); padding: 22px; }
.card h2 { font-size: 17px; margin: 0; letter-spacing: -0.02em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; margin: -8px 0 18px; }
.hint svg { width: 16px; height: 16px; }
.empty-s { color: var(--text-2); padding: 26px 8px; text-align: center; font-size: 14px; }
.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--text-2); border-radius: var(--r-xl); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* přehled */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 30px; letter-spacing: -0.03em; line-height: 1.15; margin-top: 10px; font-variant-numeric: tabular-nums; }
.kpi > span:last-child { color: var(--text-2); font-size: 13.5px; }
.k-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.k-ic svg { width: 17px; height: 17px; stroke-width: 2; }
.k-ic.pink { background: linear-gradient(145deg, #ff7aa5, #ff2d6f); }
.k-ic.violet { background: linear-gradient(145deg, #b18cff, #7a4cf0); }
.k-ic.blue { background: linear-gradient(145deg, #6cc3ff, #0a84ff); }
.k-ic.green { background: linear-gradient(145deg, #6ee08f, #28a745); }
.home-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }

.onboard { margin-bottom: 16px; }
.onboard h2 { margin-bottom: 4px; }
.onboard > p { margin: 0 0 14px; color: var(--text-2); font-size: 14px; }
.ob-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ob-step { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--fill); }
.ob-step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--glass-strong); }
.ob-step.done { opacity: .55; }
.ob-step.done .n { background: var(--green); color: #fff; }
.ob-step.current { background: var(--accent-soft); outline: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ob-step.current .n { background: var(--accent); color: #fff; }
.ob-step p { margin: 0; font-size: 14px; font-weight: 500; flex: 1; }
.ob-step .btn { align-self: flex-start; }

.quick-list { display: flex; flex-direction: column; }
.quick { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--hair); }
.quick:first-child { border-top: 0; }
.quick .qn { width: 26px; height: 26px; border-radius: 9px; background: var(--fill); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--text-2); flex: none; }
.quick .qt { flex: 1; font-weight: 600; font-size: 14.5px; min-width: 0; }
.quick .qt small { display: block; font-weight: 400; color: var(--text-2); font-size: 12.5px; }
.quick.used .qn { background: var(--green); color: #fff; }

.mini-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* ============ texty ============ */
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; }
.idea { border-radius: var(--r-xl); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: transform .2s, opacity .2s; }
.idea:hover { transform: translateY(-2px); }
.idea.down { opacity: .5; }
.idea.used { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green) 55%, transparent), var(--shadow); }
.idea-top { display: flex; align-items: center; gap: 8px; }
.type-filter { margin: -6px 0 18px; }
.vtype { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px 4px 8px; border-radius: 99px; }
.vtype svg { width: 14px; height: 14px; stroke-width: 2.1; }
.vtype.text { background: rgba(10, 132, 255, .13); color: var(--blue); }
.vtype.mix { background: rgba(142, 92, 247, .14); color: var(--violet); }
.vtype.mluvene { background: var(--orange-soft); color: var(--orange); }
.idea-top .num { margin-left: auto; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.hook {
  font-size: 22px; font-weight: 700; line-height: 1.22; letter-spacing: -0.025em; cursor: copy;
  padding: 16px 18px; border-radius: var(--r-md); background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-shine);
  position: relative; transition: background .15s;
}
.hook:hover { background: color-mix(in srgb, var(--glass-strong) 80%, var(--accent-soft)); }
.hook .copy-ic { position: absolute; right: 12px; top: 12px; color: var(--text-3); opacity: 0; transition: opacity .15s; }
.hook:hover .copy-ic { opacity: 1; }
.field { display: grid; grid-template-columns: 22px 1fr; gap: 4px 10px; }
.field svg { width: 17px; height: 17px; color: var(--text-3); margin-top: 2px; }
.field .lbl { font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; grid-column: 2; }
.field .txt { grid-column: 2; white-space: pre-wrap; font-size: 14.5px; }
.field .txt.copyable { cursor: copy; border-radius: 8px; transition: background .15s; margin: -2px -6px; padding: 2px 6px; }
.field .txt.copyable:hover { background: var(--fill); }
.concept { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; padding: 11px 13px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text); }
.concept svg { width: 17px; height: 17px; flex: none; margin-top: 1px; color: var(--accent); }
.concept span { display: block; margin-top: 4px; color: var(--text-2); font-size: 13px; }
.qual { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--fill); color: var(--text-2); }
.why { font-size: 13.5px; color: var(--text-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--fill); }
.source { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-md); background: var(--fill); color: inherit; transition: background .15s; }
.source:hover { background: var(--fill-2); }
.source img { width: 44px; height: 78px; object-fit: cover; border-radius: 9px; flex: none; }
.source .lbl { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-bottom: 3px; }
.source .src-txt { font-size: 13.5px; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.insp { display: flex; gap: 6px; flex-wrap: wrap; }
.insp a { display: inline-flex; align-items: center; gap: 7px; background: var(--fill); border-radius: 999px; padding: 3px 10px 3px 3px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.insp a:hover { background: var(--fill-2); color: var(--text); }
.insp img { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; }
.idea-foot { display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--hair); }
.idea-foot .icon-btn.on-up { background: var(--accent-soft); color: var(--accent); }
.idea-foot .icon-btn.on-down { background: var(--red-soft); color: var(--red); }
.idea-foot .icon-btn.on-note { background: var(--fill-2); color: var(--text); }
.use-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; background: var(--fill); font-weight: 600; font-size: 13.5px; color: var(--text-2); transition: all .18s; }
.use-btn:hover { background: var(--fill-2); color: var(--text); }
.use-btn.on { background: var(--green); color: #fff; }
.use-btn svg { width: 15px; height: 15px; stroke-width: 2.3; }
.note-in { width: 100%; font-size: 13.5px; }

/* ============ niche ============ */
.niche-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: -6px 0 14px; scrollbar-width: none; }
.niche-tabs::-webkit-scrollbar { display: none; }
.niche-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px;
  border: 1px solid var(--glass-border); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--text-2); transition: all .18s; }
.niche-tab:hover { color: var(--text); }
.niche-tab.on { background: var(--text); color: var(--bg); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.niche-tab em { font-style: normal; font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.niche-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.niche-head { margin: 4px 4px 6px; }
.niche-intro { margin: 0 4px 12px; }
.niches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 28px; }
.niche { border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.niche.off { opacity: .55; }
.niche-top { display: flex; align-items: center; gap: 10px; }
.niche-top .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.niche-top input { flex: 1; min-width: 0; font-weight: 700; font-size: 15.5px; background: none; padding: 4px 6px; margin-left: -6px; }
.niche textarea { font-size: 13.5px; min-height: 96px; }
.niche-foot { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.niche-foot .stats { flex: 1; }
.niche-foot .stepper button { width: 26px; height: 26px; font-size: 15px; }
.niche-foot .stepper input { width: 34px; font-size: 13px; }
.niche-foot .switch { transform: scale(.8); transform-origin: right center; }
.niche-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.niche-pill .dot { width: 7px; height: 7px; border-radius: 50%; }

/* ============ účty ============ */
.add-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; margin-bottom: 16px; }
.add-bar .at { color: var(--text-3); }
.add-bar input { flex: 1; min-width: 120px; background: none; border: 0; padding: 8px 4px; }
.add-bar input:focus { box-shadow: none; background: none; }
.list { border-radius: var(--r-xl); overflow: hidden; }
.acc-row { display: grid; grid-template-columns: 46px minmax(0, 1.5fr) .8fr .9fr 1fr auto auto; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--hair); transition: background .15s; }
.acc-row:first-child { border-top: 0; }
.acc-row:hover { background: color-mix(in srgb, var(--glass-strong) 50%, transparent); }
.acc-row.off { opacity: .5; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px -4px rgba(0, 0, 0, .3); }
.acc-name b { display: block; font-size: 15px; }
.acc-name span { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.acc-stat b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.acc-stat span { font-size: 12.5px; color: var(--text-2); }
.acc-tools { display: flex; gap: 6px; align-items: center; }
.acc-tools .pill-select { height: 34px; font-size: 13px; }
.acc-err { grid-column: 2 / -1; color: var(--red); font-size: 13px; margin-top: -6px; }
.progress { height: 5px; border-radius: 99px; background: var(--fill); overflow: hidden; margin-top: 6px; width: 100%; max-width: 140px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--accent)); border-radius: inherit; }

/* ============ videa ============ */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-radius: 999px; flex: 1; min-width: 220px; height: 40px; }
.search svg { color: var(--text-3); }
.search input { background: none; border: 0; flex: 1; padding: 8px 4px; }
.search input:focus { box-shadow: none; background: none; }
.reels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: var(--fill); box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; border: 0; padding: 0; text-align: left; color: #fff; }
.reel:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-lg); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 28%, transparent 45%, rgba(0, 0, 0, .78) 100%); }
.reel .r-top, .reel .r-bot { position: absolute; left: 10px; right: 10px; z-index: 1; }
.reel .r-top { top: 10px; display: flex; gap: 5px; align-items: center; }
.reel .r-bot { bottom: 10px; }
.reel .r-text { font-weight: 700; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.reel .r-meta { display: flex; gap: 8px; font-size: 11.5px; opacity: .9; margin-top: 6px; align-items: center; white-space: nowrap; overflow: hidden; }
.reel .r-meta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.reel .r-meta svg { width: 13px; height: 13px; }
.reel .r-meta span { display: inline-flex; align-items: center; gap: 3px; }
.chip { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; display: inline-flex; align-items: center; gap: 3px; }
.chip.hot { background: rgba(255, 45, 111, .85); }
.chip.err { background: rgba(255, 59, 48, .85); }
.chip.wait { background: rgba(240, 140, 0, .85); }
.chip svg { width: 11px; height: 11px; stroke-width: 2.2; }
.mini-reels .reel { border-radius: var(--r-md); }
.mini-reels .r-text { font-size: 12px; -webkit-line-clamp: 2; }

/* panel detailu */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .25); z-index: 30; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(480px, calc(100vw - 24px)); border-radius: var(--r-xl); z-index: 31; padding: 22px; overflow-y: auto; transform: translateX(110%); transition: transform .38s cubic-bezier(.2, .9, .25, 1); background: var(--glass-strong); }
.sheet.open { transform: none; }
.sheet .close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill); cursor: pointer; display: grid; place-items: center; z-index: 2; }
.sd-head { display: flex; gap: 16px; margin-bottom: 18px; }
.sd-head img, .sd-head .ph { width: 110px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-md); background: var(--fill); flex: none; }
.sd-head h3 { margin: 4px 0 6px; font-size: 19px; letter-spacing: -0.02em; }
.sd-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.sd-sec { margin-top: 18px; }
.sd-sec h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 0 0 6px; }
.sd-sec .box { padding: 12px 14px; border-radius: var(--r-md); background: var(--fill); white-space: pre-wrap; font-size: 14.5px; }
.sd-sec .box.big { font-weight: 700; font-size: 16px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }

/* ============ mozek ============ */
.brain-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; }
.brain-grid textarea { margin: 10px 0 12px; }
.row-end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.md { font-size: 14.5px; }
.md h3 { font-size: 15px; margin: 18px 0 6px; letter-spacing: -0.01em; }
.md h3:first-child { margin-top: 0; }
.md p { margin: 6px 0; }
.md ul { margin: 4px 0; padding-left: 18px; }
.md li { margin: 3px 0; }
.md li::marker { color: var(--accent); }

/* ============ nastavení ============ */
.settings { max-width: 720px; }
.group-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin: 24px 0 8px 18px; }
.group-title:first-child { margin-top: 0; }
.group { border-radius: var(--r-lg); overflow: hidden; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--hair); }
.srow:first-child { border-top: 0; }
.srow > div:first-child b { display: block; font-weight: 500; }
.srow > div:first-child span { display: block; }
.srow.col { flex-direction: column; align-items: stretch; }
.srow-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.srow-top b { display: block; font-weight: 500; }
.steps { margin: 0; padding: 12px 14px 12px 32px; border-radius: var(--r-md); background: var(--fill); font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); }
.status-dot.ok::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.status-dot.bad::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }

/* ============ ostrůvek, toast, modal ============ */
.island {
  position: fixed; top: 14px; left: 50%; transform: translate(-50%, -200%); z-index: 20;
  display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  max-width: min(700px, calc(100vw - 32px)); transition: transform .45s cubic-bezier(.2, 1.2, .3, 1), opacity .25s; background: var(--glass-strong); opacity: 0;
}
.island.show { transform: translate(-50%, 0); opacity: 1; }
.island #islandText { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }

#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px); opacity: 0; z-index: 50; padding: 11px 20px; border-radius: 999px; font-weight: 500; font-size: 14px; pointer-events: none; transition: all .3s cubic-bezier(.2, 1.2, .3, 1); background: var(--glass-strong); display: flex; align-items: center; gap: 8px; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { color: var(--red); }
#toast svg { width: 16px; height: 16px; color: var(--green); stroke-width: 2.4; }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 0, 0, .25); animation: fade .2s; padding: 16px; }
.dialog { width: min(380px, 100%); border-radius: var(--r-xl); padding: 24px; text-align: center; background: var(--glass-strong); animation: pop .3s cubic-bezier(.2, 1.3, .3, 1); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.dialog h3 { margin: 0 0 6px; font-size: 18px; }
.dialog p { margin: 0 0 20px; font-size: 14px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions .btn { justify-content: center; }


/* ============ studio ============ */
.studio-tabs { margin: -6px 0 18px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; align-items: start; }
.proj { border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.proj-thumb { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--fill); overflow: hidden; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-thumb .strip { position: absolute; inset: 0; background-size: auto 100%; background-position: center; filter: saturate(1.1); }
.proj-thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.proj-thumb .ph svg { width: 40px; height: 40px; }
.proj-thumb .tag { position: absolute; left: 10px; top: 10px; background: var(--glass-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.proj-thumb .tag.green { color: var(--green); } .proj-thumb .tag.accent { color: var(--accent); } .proj-thumb .tag.orange { color: var(--orange); } .proj-thumb .tag.red { color: var(--red); }
.proj-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.proj-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.proj-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.proj-actions .icon-btn { margin-left: auto; }
.sounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.sound { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: var(--r-md); }
.sound-cover { position: relative; width: 56px; height: 56px; flex: none; border-radius: 12px; border: 0; padding: 0; overflow: hidden; background: var(--fill); display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.sound-cover img { width: 100%; height: 100%; object-fit: cover; }
.sound-cover .pp { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .28); color: #fff; opacity: 0; transition: opacity .15s; }
.sound-cover:hover .pp, .sound-cover.playing .pp { opacity: 1; }
.sound-cover.playing .pp svg { animation: pulse 1s ease-in-out infinite; }
.sound-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sound-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.own { justify-content: flex-start; }
.own .own-name { flex: 1; min-width: 0; }
.own .own-name b, .own .own-name span { display: block; }
.own .avatar { width: 40px; height: 40px; }
#devices .srow b { display: flex !important; align-items: center; gap: 6px; }
.qr-dialog { width: min(360px, 100%); }
.qr { background: #fff; border-radius: var(--r-md); padding: 12px; width: 230px; margin: 0 auto 14px; }
.qr svg { width: 100%; height: auto; display: block; }
.pair-code { font-size: 34px; font-weight: 800; letter-spacing: .12em; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.qr-dialog .btn { margin-top: 10px; width: 100%; justify-content: center; }
@keyframes pulse { 50% { transform: scale(.85); } }


/* ============ fotka na pozadí ============ */
.photo-bg, .photo-scrim { position: fixed; inset: 0; pointer-events: none; display: none; }
.photo-bg { z-index: -3; background: #0d1016; overflow: hidden; }
.photo-bg i { position: absolute; inset: calc(var(--frost-blur, 5px) * -2.5); background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s ease;
  filter: blur(var(--frost-blur, 5px)) saturate(1.12); transform: translateZ(0); }
.photo-bg i.on { opacity: 1; }
/* matné sklo: zesvětlení, jemné zrno a odlesk přes celou fotku */
.photo-scrim::before, .photo-scrim::after { content: ""; position: absolute; inset: 0; }
.photo-scrim::before { background: var(--frost-c, #fff); opacity: var(--frost-op, .1);
  -webkit-mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, .75) 50%, rgba(0, 0, 0, .55) 100%); mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, .75) 50%, rgba(0, 0, 0, .55) 100%); }
.photo-scrim::after { opacity: .07; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
html[data-frost="0"] .photo-scrim::after { display: none; }
.photo-scrim { z-index: -2; background: linear-gradient(180deg, rgba(8, 10, 18, .42) 0%, rgba(8, 10, 18, .12) 30%, rgba(8, 10, 18, .06) 60%, rgba(8, 10, 18, .32) 100%); }
html.has-photo .photo-bg, html.has-photo .photo-scrim { display: block; }
html.has-photo .backdrop { display: none; }
html.has-grad .backdrop { display: block; }
html.has-grad .photo-bg, html.has-grad .photo-scrim { display: none; }
html.has-grad body { background: #050506; }
html.has-photo body { background: #0d1016; }
html.has-photo { --glass-border: rgba(255, 255, 255, .5); --blur: blur(14px) saturate(180%);
  /* čiré sklo na fotce: tmavší vedlejší texty a světlé výplně, ať je vše čitelné */
  --text: #111114; --text-2: #3f3f46; --text-3: #63636b; --fill: rgba(255, 255, 255, .38); --fill-2: rgba(255, 255, 255, .55); --hair: rgba(0, 0, 0, .1); }
@media (prefers-color-scheme: dark) {
  html.has-photo:not([data-theme="light"]) { --glass-border: rgba(255, 255, 255, .12); --text: #fafafc; --text-2: #d1d1d6; --text-3: #a0a0a8; --fill: rgba(255, 255, 255, .09); --fill-2: rgba(255, 255, 255, .16); --hair: rgba(255, 255, 255, .1); }
  html.has-photo:not([data-theme="light"]) .photo-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .28) 40%, rgba(0, 0, 0, .5)); }
}
html.has-photo[data-theme="dark"] { --glass-border: rgba(255, 255, 255, .12); --text: #fafafc; --text-2: #d1d1d6; --text-3: #a0a0a8; --fill: rgba(255, 255, 255, .09); --fill-2: rgba(255, 255, 255, .16); --hair: rgba(255, 255, 255, .1); }
html.has-photo[data-theme="dark"] .photo-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .28) 40%, rgba(0, 0, 0, .5)); }
/* texty položené přímo na fotce */
html.has-photo .vhead h1, html.has-photo .vhead .eyebrow, html.has-photo .hint, html.has-photo .group-title,
html.has-photo .niche-head h2, html.has-photo .niche-intro, html.has-photo .on-photo h2 { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
html.has-photo .vhead .eyebrow, html.has-photo .hint, html.has-photo .niche-intro { color: rgba(255, 255, 255, .86); }
html.has-photo .niche-head .link, html.has-photo .on-photo .link { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.photo-credit { display: block; font-size: 11px; color: var(--text-3); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit:empty { display: none; }
.side-ig { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.side-ig:empty { display: none; }
.ig-chip { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; background: var(--fill); font-size: 13px; }
.ig-chip .avatar { width: 28px; height: 28px; font-size: 13px; border-radius: 9px; }
.ig-chip b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-chip span { color: var(--text-2); font-size: 11.5px; }
.ig-chip > div { min-width: 0; }

/* ============ přehled (dashboard) ============ */
.hero { border-radius: var(--r-xl); padding: 26px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 26px; align-items: center; margin-bottom: 16px; }
.hero h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.04em; margin: 0; }
.hero .eyebrow { text-transform: capitalize; }
.hero-sub { margin: 10px 0 18px; color: var(--text-2); font-size: 15px; max-width: 46ch; }
.hero-sub b { color: var(--text); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hk { border-radius: var(--r-md); padding: 14px 15px; background: var(--glass-strong); border: 1px solid var(--glass-border); display: flex; flex-direction: column; gap: 2px; min-width: 0; cursor: pointer; transition: transform .15s; }
.hk:hover { transform: translateY(-2px); }
.hk .hk-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.hk .hk-top svg { width: 16px; height: 16px; }
.hk b { font-size: 28px; letter-spacing: -0.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hk small { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk small em { font-style: normal; color: var(--green); font-weight: 600; }
.hk.c1 .hk-top svg { color: #ff2d6f; } .hk.c2 .hk-top svg { color: #8e5cf7; } .hk.c3 .hk-top svg { color: #f08c00; }
.hk.c4 .hk-top svg { color: #0a84ff; } .hk.c5 .hk-top svg { color: #13a87a; } .hk.c6 .hk-top svg { color: #e8505b; }

.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 26px; }
.d-pipe { grid-column: span 8; } .d-act { grid-column: span 4; display: flex; flex-direction: column; }
.d-act .log { flex: 1; max-height: none; min-height: 120px; }
.d-ideas { grid-column: span 7; } .d-formats { grid-column: span 5; }
.d-top { grid-column: span 8; } .d-acc { grid-column: span 4; }
.dash .mini-reels { grid-template-columns: repeat(4, 1fr); }

.pipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; }
.stage { position: relative; border-radius: var(--r-md); padding: 14px; background: var(--fill); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: background .15s; }
.stage:hover { background: var(--fill-2); }
.stage .st-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; margin-bottom: 6px; }
.stage .st-ic svg { width: 17px; height: 17px; }
.stage b { font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stage span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.stage:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--text-3); border-right: 2px solid var(--text-3); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.recent { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.recent a { position: relative; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: var(--fill) center / cover; display: block; }
.recent a img { width: 100%; height: 100%; object-fit: cover; }
.recent a .tag { position: absolute; left: 6px; bottom: 6px; font-size: 10px; padding: 2px 7px; background: var(--glass-strong); }
.recent .add { display: grid; place-items: center; color: var(--text-2); border: 1.5px dashed var(--fill-2); background: none; }
.recent .add svg { width: 22px; height: 22px; }

.legend { display: flex; gap: 10px; font-size: 12px; color: var(--text-2); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }
.lg-a::before { background: var(--violet); } .lg-b::before { background: var(--accent); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 110px; padding-bottom: 18px; position: relative; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.bar i { display: block; border-radius: 4px; min-height: 3px; background: var(--violet); opacity: .85; }
.bar i.p { background: var(--accent); }
.bar i.z { background: var(--fill-2); opacity: 1; }
.bar small { position: absolute; bottom: -17px; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--text-2); white-space: nowrap; }
.bar:not(:nth-child(odd)) small { display: none; }
.log { margin-top: 18px; display: flex; flex-direction: column; gap: 0; max-height: 180px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.log div { display: flex; gap: 10px; font-size: 12.5px; padding: 6px 0; border-top: 1px solid var(--hair); }
.log div:first-child { border-top: 0; }
.log time { color: var(--text-3); font-variant-numeric: tabular-nums; flex: none; width: 38px; }
.log .warn { color: var(--orange); } .log .error { color: var(--red); }

.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; font-size: 13.5px; }
.hb .hb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb .hb-val { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.hb .hb-track { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: var(--fill); overflow: hidden; }
.hb .hb-track i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ff6b9a, #ff2d6f); }
.d-acc .hb .hb-track i { background: linear-gradient(90deg, #6cc3ff, #0a84ff); }
.hb .hb-sub { grid-column: 1 / -1; font-size: 11.5px; color: var(--text-2); margin-top: -1px; }

.d-niches { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.nc { border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.nc.off { opacity: .6; }
.nc-top { display: flex; align-items: center; gap: 9px; }
.nc-top b { font-size: 16px; letter-spacing: -0.02em; flex: 1; }
.nc-top .dot { width: 10px; height: 10px; border-radius: 50%; }
.nc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nc-stats div { background: var(--fill); border-radius: 10px; padding: 8px 9px; }
.nc-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.nc-stats span { font-size: 11px; color: var(--text-2); }
.nc-foot { font-size: 12.5px; color: var(--text-2); display: flex; justify-content: space-between; }

/* ============ studio: nástěnka ============ */
.studio-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.sstat { border-radius: var(--r-lg); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.sstat .st-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.sstat b { display: block; font-size: 24px; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sstat span { font-size: 12.5px; color: var(--text-2); }
.studio-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--glass-border); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.chip-btn .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-btn.on { background: var(--glass-strong); color: var(--text); box-shadow: 0 2px 10px -3px rgba(0, 0, 0, .2); }
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.col { border-radius: var(--r-xl); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; }
.col-head { display: flex; align-items: center; gap: 9px; padding: 4px 6px 2px; }
.col-head .st-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; }
.col-head .st-ic svg { width: 14px; height: 14px; }
.col-head b { flex: 1; font-size: 15px; }
.col-head em { font-style: normal; font-size: 12px; font-weight: 700; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--fill); display: grid; place-items: center; color: var(--text-2); }
.col-body { display: flex; flex-direction: column; gap: 9px; max-height: 70vh; overflow-y: auto; margin: 0 -4px; padding: 0 4px 4px; }
.col-body > * { flex: none; }
.col-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 26px 10px; border: 1.5px dashed var(--fill-2); border-radius: var(--r-md); }
.kc { border-radius: var(--r-md); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .15); overflow: hidden; display: flex; flex-direction: column; }
.kc-idea { padding: 12px 13px; gap: 8px; }
.kc-idea .kc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kc-idea .hk-txt { font-weight: 700; font-size: 14.5px; line-height: 1.35; letter-spacing: -0.01em; }
.kc-idea p { margin: 0; font-size: 12.5px; color: var(--text-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kc-idea .btn { align-self: flex-start; }
.kc-proj { display: grid; grid-template-columns: 74px minmax(0, 1fr); text-decoration: none; color: inherit; }
.kc-proj .kc-th { position: relative; aspect-ratio: 9 / 14; background: #1b1b22 center / cover; }
.kc-proj .kc-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kc-proj .kc-th .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .4); }
.kc-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kc-body b { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kc-body small { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kc-body .kc-act { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; align-items: center; }
.kc-body .kc-act .icon-btn { width: 28px; height: 28px; margin-left: auto; }
.kc-body .kc-act .icon-btn svg { width: 14px; height: 14px; }
.vtype.sm { font-size: 11px; padding: 2px 7px; }
.drop { position: fixed; inset: 20px; z-index: 50; border-radius: var(--r-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--accent); font-size: 15px; }
.drop svg { width: 44px; height: 44px; color: var(--accent); }
.drop b { font-size: 22px; }

/* plán postů */
.plan { display: flex; flex-direction: column; gap: 6px; }
.plan-h { font-size: 18px; margin: 10px 0 4px; letter-spacing: -0.02em; }
.plan-day h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 10px 0 8px 6px; }
html.has-photo .plan-day h3 { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
.plan-card { border-radius: var(--r-lg); overflow: hidden; }
.plan-row { display: grid; grid-template-columns: 52px 40px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--hair); }
.lg-host + .plan-row, .plan-row:first-child { border-top: 0; }
.plan-row time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; }
.plan-th { width: 40px; height: 56px; border-radius: 8px; overflow: hidden; background: #1b1b22; display: block; }
.plan-th img { width: 100%; height: 100%; object-fit: cover; }
.plan-main { min-width: 0; display: flex; flex-direction: column; }
.plan-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-act { display: flex; gap: 6px; align-items: center; }
.kc-sched { color: var(--accent) !important; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.kc-sched svg { width: 12px; height: 12px; }

/* nastavení: pozadí */
.tint-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tint { width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; position: relative; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 2px 4px rgba(255, 255, 255, .5); }
.tint.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 1px rgba(0, 0, 0, .12); }
.tint.auto { background: conic-gradient(from 200deg, #fff 0 50%, #1d1f26 0 100%); }
.tint-custom { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); cursor: pointer; border: 2px solid transparent; }
.tint-custom.on { border-color: var(--accent); }
.tint-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.bg-group { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin: 16px 0 -4px; text-transform: uppercase; letter-spacing: .04em; }
.frost-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; }
.bg-opt { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--fill) center / cover; color: #fff; font-size: 11.5px; font-weight: 600; }
.bg-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bg-opt span { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bg-opt.special { display: grid; place-items: center; background: var(--fill); color: var(--text); }
.bg-opt.grad { background: #050506; overflow: hidden; }
.bg-opt.grad::before { content: ""; position: absolute; inset: -20%; background: radial-gradient(40% 35% at 30% 70%, var(--g1), transparent 70%), radial-gradient(35% 35% at 80% 25%, var(--g2), transparent 70%); filter: blur(8px); }
.bg-opt.grad span { z-index: 1; }
.bg-opt.special span { position: static; background: none; padding: 0; text-align: center; white-space: normal; }

/* účty: náhledy nejlepších videí */
.acc-top { display: flex !important; flex-direction: row !important; gap: 4px; align-items: center; }
.acc-top img { cursor: pointer; }
.acc-stat span { white-space: nowrap; }
.acc-top img { width: 30px; height: 40px; object-fit: cover; border-radius: 6px; }

/* ============ responzivita ============ */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .d-pipe, .d-act, .d-ideas, .d-formats, .d-top, .d-acc { grid-column: span 12; }
  .board { grid-template-columns: repeat(4, minmax(260px, 1fr)); }
}
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .home-grid, .brain-grid { grid-template-columns: 1fr; }
  .acc-row { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .acc-row .acc-stat { display: none; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: auto; bottom: 12px; left: 12px; right: 12px; margin: 0; height: auto; padding: 6px;
    flex-direction: row; border-radius: 26px; gap: 0;
  }
  .brand, .side-foot { display: none; }
  #nav { flex-direction: row; flex: 1; justify-content: space-around; }
  #nav button { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: 10px; flex: 1; min-width: 0; align-items: center; }
  #nav button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #nav button svg { width: 21px; height: 21px; }
  #nav em { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 16px; height: 16px; font-size: 10px; }
  .content { padding: 20px 16px 120px; }
  .vhead { align-items: flex-start; }
  .kpi b { font-size: 26px; }
  .mini-reels { grid-template-columns: repeat(2, 1fr); }
  .hook { font-size: 20px; }
  .vhead h1 { font-size: 28px; }
  .ideas { grid-template-columns: 1fr; }
  .reels { grid-template-columns: repeat(2, 1fr); }
  .add-bar { border-radius: var(--r-lg); flex-wrap: wrap; padding: 10px; }
  .add-bar .at { display: none; }
  .add-bar input { flex-basis: 100%; background: var(--fill); padding: 10px 13px; border-radius: var(--r-sm); }
  .acc-row { grid-template-columns: 40px minmax(0, 1fr); }
  .avatar { width: 40px; height: 40px; }
  .acc-tools { grid-column: 1 / -1; }
  .desk-only { display: none !important; }
  .hero { padding: 20px 18px; gap: 18px; }
  .hero h1 { font-size: 32px; }
  .hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .hk b { font-size: 24px; }
  .pipe { grid-template-columns: repeat(2, 1fr); }
  .stage:nth-child(2)::after { display: none; }
  .recent { grid-template-columns: repeat(3, 1fr); }
  .dash .mini-reels { grid-template-columns: repeat(2, 1fr); }
  .studio-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .board { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; gap: 12px; }
  .col { flex: 0 0 84%; scroll-snap-align: center; }
  .col-body { max-height: none; }
  .side-ig, .photo-credit { display: none; }
  .plan-row { grid-template-columns: 44px 36px minmax(0, 1fr); padding: 10px 12px; }
  .plan-row .tag, .plan-row .plan-act { grid-column: 3; justify-self: start; }
  .own { flex-wrap: wrap; }
  .own .vactions { width: 100%; }
  .projects { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .proj-body { padding: 10px 12px 12px; }
  .proj-actions .btn { padding: 0 10px; }
}
/* PWA na ploše: místo pro výřez a domácí lištu */
@media (display-mode: standalone) {
  .content { padding-top: max(20px, env(safe-area-inset-top)); }
  .sidebar { bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ============ warmup ============ */
.warm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 16px; align-items: start; margin-bottom: 26px; }
.warm { border-radius: var(--r-xl); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.warm-top { display: flex; align-items: center; gap: 12px; }
.warm-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.warm-name b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.warm-day { text-align: center; min-width: 58px; padding: 6px 10px; border-radius: 14px; background: linear-gradient(145deg, #ff9f43, #ff5f2d); color: #fff; box-shadow: 0 8px 20px -8px #ff5f2d; }
.warm-day b { display: block; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; }
.warm-day span { font-size: 11px; font-weight: 600; opacity: .9; }
.warm-phases { display: flex; gap: 4px; }
.warm-phases i { flex: 1; height: 6px; border-radius: 3px; background: var(--fill-2); }
.warm-phases i.done { background: var(--green); }
.warm-phases i.cur { background: linear-gradient(90deg, #ff9f43, #ff5f2d); }
.warm-phase { margin-top: -6px; }
.warm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.warm-facts > div { background: var(--fill); border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column; gap: 1px; }
.warm-facts svg { width: 15px; height: 15px; color: var(--text-2); margin-bottom: 3px; }
.warm-facts b { font-size: 15px; font-variant-numeric: tabular-nums; }
.warm-facts span { font-size: 11.5px; color: var(--text-2); }
.warm-facts .ok b, .warm-facts .ok svg { color: var(--green); }
.warm-facts .lock b { color: var(--orange); }
.warm-facts .bad b, .warm-facts .bad svg { color: var(--red); }
.warm-tasks { display: flex; flex-direction: column; gap: 4px; }
.wt-head { display: flex; justify-content: space-between; align-items: baseline; }
.wt-bar { height: 5px; border-radius: 3px; background: var(--fill-2); overflow: hidden; margin: 4px 0 6px; }
.wt-bar i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .3s; }
.wt { display: flex; align-items: flex-start; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; font-size: 14px; line-height: 1.4; }
.wt:hover { background: var(--fill); }
.wt input { display: none; }
.wt .box { width: 20px; height: 20px; flex: none; border-radius: 6px; border: 1.8px solid var(--text-3); display: grid; place-items: center; margin-top: 1px; }
.wt .box svg { width: 13px; height: 13px; opacity: 0; color: #fff; stroke-width: 3; }
.wt.done .box { background: var(--green); border-color: var(--green); }
.wt.done .box svg { opacity: 1; }
.wt.done span:last-child { color: var(--text-2); text-decoration: line-through; }
.warm-hist { display: flex; gap: 3px; }
.warm-hist i { flex: 1; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--green) calc(var(--p) * 100%), var(--fill-2)); }
.warm-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.warm-more[open] { display: flex; flex-direction: column; gap: 10px; }
.warm-more input[type=date] { padding: 7px 10px; }
.plan-ph { border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.plan-ph .ph-title { flex: 1; font-weight: 700; }
.ph-nums { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; align-items: end; }
.ph-nums label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.ph-nums input[type=number] { padding: 7px 9px; width: 100%; }
.ph-nums .ph-link { flex-direction: row; align-items: center; gap: 6px; padding-bottom: 8px; }
.plan-ph textarea { font-size: 13.5px; }
@media (max-width: 820px) {
  .ph-nums { grid-template-columns: repeat(3, 1fr); }
  .ph-nums .ph-link { grid-column: 1 / -1; }
}
