/* ============ TMSITI — glass theme ============ */
:root {
    --tm-glass: rgba(255, 255, 255, .58);
    --tm-glass-strong: rgba(255, 255, 255, .82);
    --tm-glass-soft: rgba(255, 255, 255, .38);
    --tm-border: rgba(255, 255, 255, .7);
    --tm-border-soft: rgba(15, 23, 42, .06);
    --tm-shadow: 0 10px 40px -12px rgba(30, 41, 80, .18), 0 2px 6px rgba(30, 41, 80, .05);
    --tm-shadow-hover: 0 22px 50px -14px rgba(14, 116, 180, .30), 0 4px 10px rgba(30, 41, 80, .06);
    --tm-text: #0f172a;
    --tm-muted: #64748b;
    --tm-accent: #0ea5e9;
    --tm-accent-2: #8b5cf6;
    --tm-radius: 20px;
    --tm-blur: blur(18px) saturate(170%);
    --tm-ease: cubic-bezier(.2, .8, .2, 1);
    --tm-spring: cubic-bezier(.34, 1.56, .64, 1);
    --tm-bg: #eaf0fb;
}
.dark {
    --tm-glass: rgba(15, 23, 42, .52);
    --tm-glass-strong: rgba(15, 23, 42, .82);
    --tm-glass-soft: rgba(30, 41, 59, .35);
    --tm-border: rgba(148, 163, 184, .14);
    --tm-border-soft: rgba(148, 163, 184, .10);
    --tm-shadow: 0 10px 40px -12px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .25);
    --tm-shadow-hover: 0 24px 60px -16px rgba(56, 189, 248, .25), 0 4px 10px rgba(0, 0, 0, .3);
    --tm-text: #e2e8f0;
    --tm-muted: #94a3b8;
    --tm-bg: #060a14;
}

/* ---- фон: плавающие цветные пятна + зерно ---- */
html, body.fi-body { background: var(--tm-bg) !important; }
.tm-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tm-blob-layer { position: absolute; inset: 0; transition: transform .9s var(--tm-ease); will-change: transform; }
.tm-blob { position: absolute; display: block; border-radius: 50%; filter: blur(80px); opacity: .55; animation: tm-drift 26s ease-in-out infinite alternate; }
.dark .tm-blob { opacity: .35; }
.tm-blob.b1 { width: 46vw; height: 46vw; left: -10vw; top: -14vw; background: radial-gradient(circle at 30% 30%, #38bdf8, transparent 65%); }
.tm-blob.b2 { width: 40vw; height: 40vw; right: -12vw; top: 10vh; background: radial-gradient(circle at 50% 50%, #a78bfa, transparent 65%); animation-duration: 32s; animation-delay: -6s; }
.tm-blob.b3 { width: 38vw; height: 38vw; left: 25vw; bottom: -18vw; background: radial-gradient(circle at 50% 50%, #34d399, transparent 65%); animation-duration: 29s; animation-delay: -12s; opacity: .38; }
.tm-blob.b4 { width: 26vw; height: 26vw; right: 18vw; bottom: 4vh; background: radial-gradient(circle at 50% 50%, #f472b6, transparent 65%); animation-duration: 35s; animation-delay: -3s; opacity: .30; }
.tm-grain { position: absolute; inset: -50%; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes tm-drift {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(6vw, 4vh) scale(1.12) rotate(25deg); }
    100% { transform: translate(-4vw, 8vh) scale(.92) rotate(-15deg); }
}

/* ---- стеклянные поверхности ---- */
.fi-sidebar, .fi-topbar > nav, .fi-topbar {
    background: var(--tm-glass) !important;
    backdrop-filter: var(--tm-blur); -webkit-backdrop-filter: var(--tm-blur);
    border-color: var(--tm-border) !important;
}
.fi-sidebar { border-right: 1px solid var(--tm-border); }
.fi-topbar > nav, .fi-topbar { box-shadow: 0 1px 0 var(--tm-border-soft) !important; }
.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .tm-glass, .fi-simple-main, .fi-fo-repeater-item {
    background: var(--tm-glass) !important;
    backdrop-filter: var(--tm-blur); -webkit-backdrop-filter: var(--tm-blur);
    border: 1px solid var(--tm-border) !important;
    box-shadow: var(--tm-shadow) !important;
    border-radius: var(--tm-radius) !important;
    --tw-ring-color: transparent !important;
}
.fi-section .fi-section, .fi-section .fi-ta-ctn { background: var(--tm-glass-soft) !important; box-shadow: none !important; backdrop-filter: none; }
.fi-modal-window, .fi-dropdown-panel {
    background: var(--tm-glass-strong) !important;
    backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--tm-border) !important;
    box-shadow: 0 30px 80px -20px rgba(15, 23, 42, .45) !important;
}
.fi-modal-window { border-radius: 24px !important; animation: tm-pop .35s var(--tm-spring) both; }
.fi-dropdown-panel { border-radius: 16px !important; animation: tm-drop .22s var(--tm-ease) both; }
.fi-input-wrp { background: var(--tm-glass-soft) !important; border-radius: 12px !important; transition: box-shadow .25s, transform .25s; }
.fi-input-wrp:focus-within { box-shadow: 0 0 0 3px rgba(14, 165, 233, .25) !important; }
.fi-ta-row { transition: background-color .2s, transform .2s; }
.fi-ta-row:hover { background: rgba(14, 165, 233, .06) !important; }
.fi-simple-main { padding: 2.25rem !important; animation: tm-pop .6s var(--tm-spring) both; }

/* ---- сайдбар ---- */
.fi-sidebar-item a, .fi-sidebar-item button { border-radius: 12px !important; transition: transform .25s var(--tm-ease), background-color .2s; }
.fi-sidebar-item a:hover { transform: translateX(4px); }
.fi-sidebar-item-active a, .fi-sidebar-item.fi-active a {
    background: linear-gradient(90deg, rgba(14, 165, 233, .18), rgba(139, 92, 246, .10)) !important;
    box-shadow: inset 3px 0 0 var(--tm-accent);
}

/* ---- кнопки ---- */
.fi-btn { border-radius: 12px !important; transition: transform .2s var(--tm-ease), box-shadow .25s, filter .2s !important; position: relative; overflow: hidden; }
.fi-btn:hover { transform: translateY(-1px); }
.fi-btn:active { transform: translateY(1px) scale(.98); }
.fi-btn.fi-color-primary, .fi-btn-color-primary { box-shadow: 0 8px 22px -8px rgba(14, 165, 233, .7); }
.tm-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: tm-ripple .6s ease-out; pointer-events: none; }
@keyframes tm-ripple { to { transform: scale(4); opacity: 0; } }
.fi-badge { border-radius: 999px !important; }

/* ---- статистика ---- */
.fi-wi-stats-overview-stat { transition: transform .35s var(--tm-ease), box-shadow .35s !important; transform-style: preserve-3d; }
.fi-wi-stats-overview-stat:hover { box-shadow: var(--tm-shadow-hover) !important; }
.fi-wi-stats-overview-stat-value { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---- появление контента ---- */
.fi-main .fi-section, .fi-main .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-wi, .tm-kcol, .tm-hero {
    animation: tm-rise .7s var(--tm-ease) both;
}
.fi-wi:nth-child(2), .fi-wi-stats-overview-stat:nth-child(2), .tm-kcol:nth-child(2) { animation-delay: .06s; }
.fi-wi:nth-child(3), .fi-wi-stats-overview-stat:nth-child(3), .tm-kcol:nth-child(3) { animation-delay: .12s; }
.fi-wi:nth-child(4), .fi-wi-stats-overview-stat:nth-child(4), .tm-kcol:nth-child(4) { animation-delay: .18s; }
.fi-wi:nth-child(5), .tm-kcol:nth-child(5) { animation-delay: .24s; }
.fi-wi:nth-child(6) { animation-delay: .30s; }
@keyframes tm-rise { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes tm-pop { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tm-drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }

/* переходы между страницами (Chrome / Edge) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: tm-vt-out .22s ease both; }
::view-transition-new(root) { animation: tm-vt-in .38s var(--tm-ease) both; }
@keyframes tm-vt-out { to { opacity: 0; transform: scale(.99); filter: blur(3px); } }
@keyframes tm-vt-in { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* ---- общие элементы ---- */
.tm-grad { background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #ec4899, #0ea5e9); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: tm-shine 6s linear infinite; }
@keyframes tm-shine { to { background-position: 300% 0; } }
.tm-text-danger { color: #ef4444; }
.tm-hint { font-size: .78rem; color: var(--tm-muted); }
.tm-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: rgba(100, 116, 139, .12); color: var(--tm-muted); white-space: nowrap; }
.tm-chip-danger { background: rgba(239, 68, 68, .14); color: #ef4444; }
.tm-chip-warn { background: rgba(245, 158, 11, .16); color: #d97706; }
.tm-chip-ok { background: rgba(16, 185, 129, .15); color: #059669; }
.tm-pulse { animation: tm-pulse 1.6s ease-in-out infinite; }
@keyframes tm-pulse { 50% { transform: scale(1.12); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } }
.tm-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: 12px; font-weight: 600; font-size: .875rem; background: var(--tm-glass-soft); border: 1px solid var(--tm-border); color: var(--tm-text); transition: transform .2s var(--tm-ease), box-shadow .25s, background .2s; cursor: pointer; }
.tm-btn:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow); }
.tm-btn-primary { background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .8); }
.tm-btn-primary:hover { box-shadow: 0 16px 30px -10px rgba(99, 102, 241, .8); }

/* прогресс-бар */
.tm-bar { position: relative; height: 6px; border-radius: 999px; background: rgba(100, 116, 139, .15); overflow: hidden; }
.tm-bar > i { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #818cf8); animation: tm-grow 1.1s var(--tm-ease) both; }
.tm-bar > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: tm-shimmer 2.4s ease-in-out infinite; }
.tm-bar-sm { display: inline-block; width: 70px; height: 5px; vertical-align: middle; margin-right: .4rem; }
.tm-bar-label { font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--tm-muted); }
@keyframes tm-grow { from { width: 0; } }
@keyframes tm-shimmer { 60%, 100% { transform: translateX(100%); } }

/* ---- HERO ---- */
.tm-hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; padding: 2rem 2.2rem; border-radius: 28px; overflow: hidden;
    background: linear-gradient(135deg, rgba(14, 165, 233, .20), rgba(139, 92, 246, .16) 55%, rgba(236, 72, 153, .12)), var(--tm-glass);
    backdrop-filter: var(--tm-blur); -webkit-backdrop-filter: var(--tm-blur); border: 1px solid var(--tm-border); box-shadow: var(--tm-shadow); }
.tm-hero-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 70%); animation: tm-drift 18s ease-in-out infinite alternate; pointer-events: none; }
.tm-hero-date { text-transform: capitalize; font-size: .82rem; letter-spacing: .04em; color: var(--tm-muted); font-weight: 600; }
.tm-hero-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 800; letter-spacing: -.03em; margin: .35rem 0 .5rem; color: var(--tm-text); }
.tm-hero-sub { color: var(--tm-muted); }
.tm-hero-sub b { color: var(--tm-text); }
.tm-hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.tm-hero-side { display: flex; align-items: center; gap: 1.5rem; position: relative; }
.tm-ring { position: relative; width: 120px; height: 120px; }
.tm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-ring-bg { fill: none; stroke: rgba(100, 116, 139, .18); stroke-width: 10; }
.tm-ring-fg { fill: none; stroke: url(#tmRingGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--p) / 100); animation: tm-ring 1.6s var(--tm-ease) both; filter: drop-shadow(0 4px 10px rgba(56, 189, 248, .45)); }
@keyframes tm-ring { from { stroke-dashoffset: 326.7; } }
.tm-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; color: var(--tm-text); }
.tm-ring-label b { font-size: 1.7rem; line-height: 1; }
.tm-ring-label small, .tm-streak small { font-size: .68rem; font-weight: 600; color: var(--tm-muted); }
.tm-streak { display: flex; flex-direction: column; align-items: center; color: var(--tm-text); }
.tm-streak b { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.tm-flame { font-size: 2rem; display: inline-block; animation: tm-flame 1.4s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes tm-flame { from { transform: scale(1) rotate(-4deg); filter: drop-shadow(0 0 4px rgba(251, 146, 60, .5)); } to { transform: scale(1.15) rotate(4deg); filter: drop-shadow(0 0 14px rgba(251, 146, 60, .9)); } }
.tm-focus { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .6rem; position: relative; }
.tm-focus-title { grid-column: 1 / -1; font-weight: 700; font-size: .85rem; color: var(--tm-muted); }
.tm-focus-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 14px; background: var(--tm-glass-soft); border: 1px solid var(--tm-border); border-left: 3px solid var(--tm-pri); transition: transform .25s var(--tm-ease), box-shadow .25s; }
.tm-focus-item:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow); }
.tm-focus-item a { flex: 1; font-weight: 600; font-size: .88rem; color: var(--tm-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--tm-pri, #38bdf8); transition: all .25s var(--tm-spring); position: relative; }
.tm-check:hover { background: rgba(16, 185, 129, .15); border-color: #10b981; transform: scale(1.15); }
.tm-check:hover::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; color: #10b981; font-weight: 800; }
@media (max-width: 768px) { .tm-hero { grid-template-columns: 1fr; padding: 1.4rem; } .tm-hero-side { justify-content: flex-start; } }

/* ---- KANBAN ---- */
.tm-kanban-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.tm-search { position: relative; flex: 0 1 340px; }
.tm-search input { width: 100%; padding: .6rem .9rem .6rem 2.3rem; border-radius: 14px; background: var(--tm-glass); border: 1px solid var(--tm-border); backdrop-filter: var(--tm-blur); color: var(--tm-text); outline: none; transition: box-shadow .25s; }
.tm-search input:focus { box-shadow: 0 0 0 3px rgba(14, 165, 233, .25); }
.tm-search-icon { position: absolute; left: .75rem; top: 50%; width: 1.1rem; height: 1.1rem; transform: translateY(-50%); color: var(--tm-muted); }
.tm-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x proximity; }
.tm-kcol { scroll-snap-align: start; display: flex; flex-direction: column; min-height: 60vh; border-radius: 22px; padding: .75rem; background: var(--tm-glass-soft); border: 1px solid var(--tm-border); backdrop-filter: var(--tm-blur); -webkit-backdrop-filter: var(--tm-blur); position: relative; }
.tm-kcol::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 22px 22px 0 0; background: var(--tm-col); opacity: .85; }
.tm-kcol-head { display: flex; align-items: center; gap: .5rem; padding: .4rem .35rem .7rem; font-weight: 700; color: var(--tm-text); }
.tm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tm-col); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tm-col) 25%, transparent); }
.tm-kcol-title { flex: 1; }
.tm-count { min-width: 1.6rem; text-align: center; padding: .05rem .45rem; border-radius: 999px; font-size: .75rem; background: color-mix(in srgb, var(--tm-col) 18%, transparent); color: var(--tm-col); }
.tm-kcol-body { flex: 1; display: flex; flex-direction: column; gap: .6rem; min-height: 80px; padding: 2px; }
.tm-kcard { position: relative; padding: .8rem .9rem .75rem 1rem; border-radius: 16px; background: var(--tm-glass-strong); border: 1px solid var(--tm-border); box-shadow: 0 4px 14px -6px rgba(15, 23, 42, .18); cursor: grab; transition: transform .25s var(--tm-ease), box-shadow .25s; animation: tm-rise .5s var(--tm-ease) both; }
.tm-kcard::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tm-pri); }
.tm-kcard:hover { transform: translateY(-3px) rotate(-.3deg); box-shadow: var(--tm-shadow-hover); }
.tm-kcard.is-overdue { box-shadow: 0 0 0 1px rgba(239, 68, 68, .35), 0 6px 18px -8px rgba(239, 68, 68, .45); }
.tm-kcard-title { display: block; font-weight: 650; font-size: .9rem; line-height: 1.35; color: var(--tm-text); margin-bottom: .25rem; }
.tm-kcard-title:hover { color: var(--tm-accent); }
.tm-kcard-sub { font-size: .75rem; color: var(--tm-muted); margin-bottom: .4rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-kcard-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .55rem; }
.tm-kcard-ghost { opacity: .35; background: rgba(14, 165, 233, .12) !important; border: 2px dashed var(--tm-accent) !important; }
.tm-kcard-chosen { box-shadow: 0 25px 50px -12px rgba(14, 165, 233, .5) !important; transform: rotate(2deg) scale(1.03); }
.tm-kcard-drag { opacity: .95 !important; }
.tm-kadd { margin-top: .6rem; }
.tm-kadd button { width: 100%; padding: .5rem; border-radius: 12px; font-weight: 600; font-size: .82rem; color: var(--tm-muted); border: 1px dashed rgba(100, 116, 139, .35); transition: all .2s; }
.tm-kadd button:hover { color: var(--tm-accent); border-color: var(--tm-accent); background: rgba(14, 165, 233, .06); }
.tm-kadd input { width: 100%; padding: .55rem .75rem; border-radius: 12px; background: var(--tm-glass-strong); border: 1px solid var(--tm-accent); color: var(--tm-text); outline: none; box-shadow: 0 0 0 3px rgba(14, 165, 233, .2); }

/* ---- TIMELINE ---- */
.tm-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .75rem 1rem; }
.tm-period { font-weight: 700; min-width: 12rem; text-align: center; text-transform: capitalize; color: var(--tm-text); }
.tm-seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(100, 116, 139, .12); }
.tm-seg button { padding: .35rem .8rem; border-radius: 9px; font-size: .82rem; font-weight: 600; color: var(--tm-muted); transition: all .25s var(--tm-ease); }
.tm-seg button.is-active { background: var(--tm-glass-strong); color: var(--tm-text); box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }
.tm-mini-stats { display: flex; gap: .9rem; font-size: .9rem; color: var(--tm-muted); }
.tm-mini-stats b { color: var(--tm-text); }
.tm-timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.tm-tl-date { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .75rem; }
.tm-tl-dnum { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(135deg, #0ea5e9, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-tl-dname { text-transform: capitalize; font-weight: 600; color: var(--tm-muted); }
.tm-tl-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 2.4rem; display: flex; flex-direction: column; gap: .6rem; }
.tm-tl-list::before { content: ''; position: absolute; left: .95rem; top: .4rem; bottom: .4rem; width: 2px; border-radius: 2px; background: linear-gradient(#38bdf8, #a78bfa, transparent); }
.tm-tl-item { position: relative; }
.tm-tl-icon { position: absolute; left: -2.4rem; top: .45rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--tm-glass-strong); border: 1px solid var(--tm-border); box-shadow: var(--tm-shadow); font-size: .95rem; z-index: 1; }
.tm-tl-card { padding: .7rem 1rem !important; border-radius: 16px !important; transition: transform .25s var(--tm-ease); }
.tm-tl-card:hover { transform: translateX(4px); }
.tm-tl-done .tm-tl-card { border-left: 3px solid #22c55e !important; }
.tm-tl-created .tm-tl-card { border-left: 3px solid #3b82f6 !important; }
.tm-tl-check .tm-tl-card { border-left: 3px solid #a78bfa !important; }
.tm-tl-entry .tm-tl-card { border-left: 3px solid #f59e0b !important; }
.tm-tl-head { display: flex; justify-content: space-between; gap: 1rem; }
.tm-tl-title { font-weight: 700; font-size: .88rem; color: var(--tm-text); }
a.tm-tl-title:hover { color: var(--tm-accent); }
.tm-tl-time { font-size: .75rem; color: var(--tm-muted); font-variant-numeric: tabular-nums; }
.tm-tl-text { font-size: .86rem; color: var(--tm-muted); margin-top: .15rem; }
.tm-empty { text-align: center; padding: 3rem 1rem; color: var(--tm-muted); }
.tm-empty-emoji { font-size: 3rem; animation: tm-float 3s ease-in-out infinite; }
@keyframes tm-float { 50% { transform: translateY(-10px); } }

/* появление при прокрутке */
[data-tm-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--tm-ease), transform .6s var(--tm-ease); transition-delay: calc(var(--i, 0) * 40ms); }
[data-tm-reveal].tm-in { opacity: 1; transform: none; }

/* ---- DOCK + POMODORO ---- */
[x-cloak] { display: none !important; }
.tm-dock { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.tm-dock-bar { display: flex; gap: .25rem; padding: .35rem !important; border-radius: 999px !important; }
.tm-dock-btn { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.1rem; color: var(--tm-text); transition: transform .25s var(--tm-spring), background .2s; }
.tm-dock-btn:hover { transform: translateY(-4px) scale(1.12); background: rgba(14, 165, 233, .14); }
.tm-dock-btn.is-live { width: auto; padding: 0 .8rem; border-radius: 999px; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; animation: tm-glow 2s ease-in-out infinite; }
.tm-dock-time { font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
@keyframes tm-glow { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, .18), 0 10px 25px -8px rgba(239, 68, 68, .8); } }
.tm-pomo-panel { width: 270px; padding: 1rem !important; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.tm-pomo-clock { position: relative; width: 170px; height: 170px; }
.tm-pomo-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-pomo-arc { fill: none; stroke: url(#tmRingGrad); stroke: #f97316; stroke-width: 8; stroke-linecap: round; stroke-dasharray: 339.3; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 3px 8px rgba(249, 115, 22, .5)); }
.tm-pomo-clock.is-running { animation: tm-breathe 4s ease-in-out infinite; }
@keyframes tm-breathe { 50% { transform: scale(1.03); } }
.tm-pomo-time { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--tm-text); }
.tm-pomo-task { width: 100%; padding: .45rem .6rem; border-radius: 10px; font-size: .8rem; background: var(--tm-glass-soft); border: 1px solid var(--tm-border); color: var(--tm-text); }
.tm-pomo-actions { display: flex; gap: .4rem; }
.tm-pomo-actions .tm-btn { padding: .45rem .75rem; }
.tm-pomo-foot { font-size: .78rem; color: var(--tm-muted); }

/* шпаргалка по горячим клавишам */
.tm-keys-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(15, 23, 42, .35); backdrop-filter: blur(6px); animation: tm-fade .2s ease both; }
.tm-keys { min-width: 320px; padding: 1.5rem 1.75rem; border-radius: 24px; background: var(--tm-glass-strong); border: 1px solid var(--tm-border); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5); color: var(--tm-text); animation: tm-pop .35s var(--tm-spring) both; }
.tm-keys h3 { font-weight: 800; margin-bottom: .75rem; }
.tm-keys div { display: flex; justify-content: space-between; gap: 2rem; padding: .3rem 0; font-size: .9rem; }
.tm-keys kbd { padding: .1rem .45rem; border-radius: 6px; font-size: .78rem; font-weight: 700; background: rgba(100, 116, 139, .15); border: 1px solid rgba(100, 116, 139, .25); }
@keyframes tm-fade { from { opacity: 0; } }

/* тост-всплывашка */
.tm-toast { position: fixed; left: 50%; bottom: 2rem; z-index: 70; transform: translateX(-50%); padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #10b981, #0ea5e9); box-shadow: 0 20px 40px -12px rgba(16, 185, 129, .6); animation: tm-toast 2.6s var(--tm-ease) both; }
@keyframes tm-toast { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.9); } 12%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -10px); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
