/* PULSE / 2026-10-15. Patterns adapted from Magic UI; see THIRD-PARTY-NOTICES.md. */
.content.studio-page > .running {
  grid-column:1 / -1; width:100%; min-width:0; box-sizing:border-box;
  display:grid; grid-template-columns:12px minmax(0,1fr) auto auto; align-items:center;
  gap:20px; padding:24px 28px; margin:0 0 28px; border:1px solid #58634b;
  border-radius:18px; background:linear-gradient(110deg,#2b3228,#252a2e 60%);
}
.content.studio-page > .running > .pulse { width:9px; height:9px; margin:0; border-radius:50%; background:#c5f46a; box-shadow:0 0 0 6px #c5f46a12; }
.content.studio-page > .running > div { min-width:0; font-size:12px; line-height:1.6; color:#b5bdbf; }
.content.studio-page > .running b { display:block; color:#eef2ee; font-size:16px; font-weight:600; overflow-wrap:anywhere; }
.content.studio-page > .running > strong { font-size:clamp(28px,2.6vw,40px); line-height:1.1; letter-spacing:-.04em; font-variant-numeric:tabular-nums; white-space:nowrap; color:#d9f5b5; }
.content.studio-page > .running > button { min-height:44px; margin:0; white-space:nowrap; }
@media(min-width:1200px){
 .studio-tasks:has(> .running) > .panel.queue.attention-inbox { grid-row:3 / 6; }
 .studio-tasks > .running { grid-row:2; }
}
/* A contained SVG grid, with low-opacity cells, following Animated Grid Pattern. */
.studio-page .pagetitle { position:relative; isolation:isolate; }
.pulse-ambient-grid { position:absolute; inset:-24px 0 0; width:100%; height:calc(100% + 24px); pointer-events:none; z-index:-1; color:#c5f46a; mask-image:linear-gradient(90deg,#0003,#0009 45%,#0009 85%,transparent); }
.pulse-ambient-grid .pulse-grid-cell { opacity:0; animation:pulse-cell 7s ease-in-out infinite; }
@keyframes pulse-cell { 0%,100% {opacity:.015} 30%,60% {opacity:.13} }
/* Bento composition: primary measure, two compact measures, horizontal outcome. */
.studio-tasks .pagetitle .stats { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:10px; border:0; margin:0; background:transparent; }
.studio-tasks .pagetitle .stat { display:flex; flex-direction:column; justify-content:space-between; min-width:0; padding:18px; border:1px solid #3b4348; border-radius:16px; background:#23282ce8; transition:transform .24s ease,border-color .24s ease; }
.studio-tasks .pagetitle .stat:first-child { grid-row:span 2; background:linear-gradient(155deg,#333c2a,#242b27); border-color:#59644a; }
.studio-tasks .pagetitle .stat:first-child strong { font-size:52px !important; color:#c5f46a; }
.studio-tasks .pagetitle .stat.spotlight { grid-column:2 / 4; flex-direction:row; align-items:center; gap:12px; }
.studio-tasks .pagetitle .stat > span { font-size:11px; order:0; line-height:1.5; }
.studio-tasks .pagetitle .stat strong { margin:12px 0 0; order:1; font-size:26px !important; line-height:1.1; }
.studio-tasks .pagetitle .stat:nth-child(3) strong { font-size:18px !important; line-height:1.5; }
.studio-tasks .pagetitle .stat.spotlight strong { margin:0; }
.studio-tasks .pagetitle .stat::after { display:none; }
.studio-tasks .pagetitle .stat small { display:none; }
/* Interactive Hover Button: expanding accent disk, without duplicating labels. */
button.primary { position:relative; isolation:isolate; overflow:hidden; transition:transform .2s ease,box-shadow .25s ease,background .25s ease; }
button.primary::before { content:''; position:absolute; z-index:-1; left:8%; top:50%; width:20px; height:20px; border-radius:50%; background:#e3ffb5; transform:translateY(-50%) scale(0); transition:transform .45s cubic-bezier(.22,1,.36,1); pointer-events:none; }
button.primary:focus-visible { outline:2px solid #e4ffb4; outline-offset:4px; }
button.primary:active:not(:disabled) { transform:scale(.98); }
@media(hover:hover){
 button.primary:hover:not(:disabled)::before { transform:translateY(-50%) scale(65); }
 button.primary:hover:not(:disabled) { box-shadow:0 5px 22px #b8ec5122; transform:translateY(-1px); }
 .studio-tasks .pagetitle .stat:hover { transform:translateY(-3px); border-color:#82906d; }
}
@media(max-width:700px){
 .content.studio-page > .running { grid-template-columns:10px minmax(0,1fr); gap:14px 16px; padding:20px; }
 .content.studio-page > .running > strong { grid-column:2; font-size:34px; }
 .content.studio-page > .running > button { grid-column:1 / -1; width:100%; }
 .studio-tasks .pagetitle .stats { margin-top:24px; grid-template-columns:1fr 1fr; gap:10px; }
 .studio-tasks .pagetitle .stat:first-child { grid-row:auto; }
 .studio-tasks .pagetitle .stat.spotlight { grid-column:auto; flex-direction:column; align-items:flex-start; }
 .studio-tasks .pagetitle .stat:first-child strong { font-size:36px !important; }
 .studio-tasks .pagetitle .stat.spotlight strong { margin-top:12px; }
}
/* Logo-only boot: continuous line drawing and soft entrance/exit. */
.pulse-boot { position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:#16181b; color:#f1f4ef; overflow:hidden; }
.pulse-boot.is-ready { animation:pulse-flight-backdrop 1.6s ease-in-out both; }
.pulse-boot-inner { display:grid; place-items:center; transform-origin:50% 50%; }
.pulse-boot.is-ready .pulse-boot-inner { will-change:transform,opacity; animation:pulse-logo-flight 1.6s cubic-bezier(.7,0,.85,.5) both; }
/* Preserve the completed line animation during the flight; do not snap its offset. */
@keyframes pulse-logo-flight {
  0% { transform:scale(1); opacity:1; }
  20% { transform:scale(1.08); opacity:1; }
  70% { opacity:1; }
  87% { opacity:.35; }
  100% { transform:scale(var(--pulse-flight-scale,18)); opacity:0; }
}
@keyframes pulse-flight-backdrop {
  0%,78% { background-color:#16181b; }
  100% { background-color:transparent; }
}
.pulse-boot-brand { position:relative; display:grid; place-items:center; }
.pulse-boot-label { position:absolute; top:calc(50% + clamp(56px,7vw,74px) + 28px); left:50%; transform:translateX(-50%); }
.pulse-boot-caption.brand { display:block; white-space:nowrap; font-family:Manrope,Arial,sans-serif; font-size:27px; font-weight:900; line-height:1.2; letter-spacing:-1px; color:#edf3e7; animation:pulse-caption-draw 1.35s cubic-bezier(.45,0,.55,1) both; }
.pulse-boot.is-ready .pulse-boot-label { animation:pulse-label-out 1.6s ease both; }
@keyframes pulse-label-out { 0%,12%{opacity:1} 42%,100%{opacity:0} }
@keyframes pulse-caption-draw { from { clip-path:inset(0 100% 0 0); opacity:0; translate:0 5px; } to { clip-path:inset(0 0 0 0); opacity:1; translate:0 0; } }
.pulse-boot-mark { width:clamp(112px,14vw,148px); aspect-ratio:1; border-radius:28%; background:#c5f46a; color:#1c2615; display:grid; place-items:center; transform:rotate(-6deg); animation:pulse-mark-in .9s cubic-bezier(.22,1,.36,1) both; box-shadow:0 0 64px #c5f46a0c; }
.pulse-boot-mark svg { width:66%; height:66%; }
.pulse-boot-mark path { stroke-dasharray:100; stroke-dashoffset:100; animation:pulse-draw 1.35s cubic-bezier(.45,0,.55,1) both; }
@keyframes pulse-mark-in {from{opacity:0;transform:translateY(8px) rotate(-6deg) scale(.94)}to{opacity:1;transform:translateY(0) rotate(-6deg) scale(1)}}
@keyframes pulse-draw {from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){
 .pulse-boot,.pulse-boot *,.pulse-ambient-grid .pulse-grid-cell { animation:none!important; transition:none!important; }
 .pulse-boot-mark path { stroke-dashoffset:0; }
 button.primary,button.primary::before,.studio-tasks .pagetitle .stat { transition:none!important; transform:none!important; }
 .pulse-ambient-grid .pulse-grid-cell { opacity:.045; }
}
/* Same rounded outline for the collapsed and expanded attention panel at every breakpoint. */
.studio-tasks > .panel.queue.attention-inbox { border:1px solid #4a525b; border-radius:16px; overflow:hidden; }
.studio-tasks > .panel.queue.attention-inbox > summary { border-radius:inherit; }
.studio-tasks > .panel.queue.attention-inbox[open] > summary { border-bottom-left-radius:0; border-bottom-right-radius:0; }
/* Tablet header: logo, navigation, account share one row. */
@media (min-width:768px) and (max-width:1199px) {
 [data-slot="sidebar-container"].side { height:72px!important; }
 .side [data-slot="sidebar-inner"] { flex-wrap:nowrap; padding:0 16px; gap:12px; }
 .side [data-slot="sidebar-header"] { order:0; }
 .side [data-slot="sidebar-content"] { order:1; flex:1 1 auto; justify-content:center; min-width:0; }
 .side [data-slot="sidebar-footer"] { order:2; }
 .side [data-slot="sidebar-menu"] { gap:2px; }
 .side [data-slot="sidebar-menu-button"] { padding:0 8px; gap:5px; font-size:12px; white-space:nowrap; }
 .side [data-slot="sidebar-menu-button"] > svg { display:none; }
 .side .brand { font-size:21px; gap:8px; }
 .side .brandmark { width:29px; height:29px; }
 .side .account-trigger { padding:0 10px; gap:7px; }
 .main { padding-top:96px; }
}
@media (min-width:768px) and (max-width:860px) {
 .side [data-slot="sidebar-inner"] { padding:0 12px; gap:10px; }
 .side .account-trigger > span:not(.account-chevron) { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .side .account-trigger { min-width:54px; }
}
/* Allow the bento cards to lift beyond the statistics container. */
.studio-tasks .pagetitle .stats { overflow:visible; }
/* Keep mobile navigation reachable while the document scrolls. */
@media (max-width:767px) {
 .main { padding-top:calc(80px + env(safe-area-inset-top,0px)); }
 .main > .topbar { position:fixed; top:calc(10px + env(safe-area-inset-top,0px)); left:10px; right:10px; width:auto; margin:0; z-index:30; height:60px; box-shadow:0 8px 24px #0c0d0e38; }
 .topbar [data-slot="sidebar-trigger"] { min-width:44px; min-height:44px; }
 html { scroll-padding-top:calc(90px + env(safe-area-inset-top,0px)); }
}
/* Use the desktop active-state treatment in the mobile navigation drawer. */
@media (max-width:767px) {
 [data-mobile="true"] [data-slot="sidebar-menu-button"][data-active="true"],
 [data-mobile="true"] [data-slot="sidebar-menu-button"][data-active="true"]:hover {
  background:#c5f46a; color:#192219; border-color:transparent; border-radius:10px;
  box-shadow:0 3px 12px #050d0750; font-weight:650;
 }
 [data-mobile="true"] [data-slot="sidebar-menu-button"][data-active="true"] > small { background:#26351c; color:#d7f6b2; }
 [data-mobile="true"] [data-slot="sidebar-menu-button"][data-active="true"] > svg { color:inherit; }
}
.settings-destinations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-bottom:24px; }
.settings-destinations > button.secondary { display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding:20px; border-radius:14px; text-align:left; }
.settings-destinations b { font-size:16px; color:#eef2ed; }
.settings-destinations span { font-size:12px; color:#bcc8ba; }
.pulse-saving-mark { display:inline-grid; place-items:center; width:24px; height:24px; flex-shrink:0; border-radius:7px; background:#26351c; color:#c5f46a; rotate:-6deg; }
.pulse-saving-mark svg { width:19px; height:19px; }
.pulse-saving-mark path { stroke-dasharray:100; animation:pulse-saving-line 1.35s ease-in-out infinite; }
@keyframes pulse-saving-line { 0%{stroke-dashoffset:100;opacity:0} 15%{opacity:1} 65%,85%{stroke-dashoffset:0;opacity:1} 100%{stroke-dashoffset:0;opacity:0} }
button.primary[aria-busy="true"] { opacity:1; cursor:wait; }
@media(max-width:540px){.settings-destinations { grid-template-columns:1fr; }}
@media(prefers-reduced-motion:reduce){.pulse-saving-mark path { animation:none; stroke-dashoffset:0; }}
/* Mobile primary navigation stays within thumb reach. */
.pulse-mobile-nav { display:none; }
@media(max-width:767px){
 .pulse-mobile-nav { display:flex; position:fixed; z-index:45; bottom:calc(12px + env(safe-area-inset-bottom,0px)); left:50%; transform:translateX(-50%); width:min(360px,calc(100% - 32px)); justify-content:space-around; gap:12px; padding:10px 14px; border:1px solid #48515a; border-radius:40px; background:#23282dee; backdrop-filter:blur(16px); box-shadow:0 8px 32px #0006; }
 .pulse-mobile-nav button { display:grid; place-items:center; width:48px; height:48px; min-width:48px; padding:0; border:1px solid #505962; border-radius:50%; background:#2c3238; color:#bac5ca; transition:background .2s,color .2s,transform .2s; }
 .pulse-mobile-nav button[aria-current="page"] { background:#c5f46a; color:#192219; border-color:#c5f46a; box-shadow:0 3px 12px #050d0750; }
 .pulse-mobile-nav button:active { transform:scale(.93); }
 .pulse-mobile-nav button:focus-visible { outline:2px solid #c5f46a; outline-offset:3px; }
 .main { padding-bottom:calc(110px + env(safe-area-inset-bottom,0px)); }
 [data-mobile="true"] [data-slot="sidebar-content"] { display:none; }
}
.studio-tasks > .filterbar > button.secondary { font-family:inherit; font-size:14px; font-weight:400; }
@media(max-width:767px){
 .main > .topbar { display:none; }
 .main { padding-top:calc(24px + env(safe-area-inset-top,0px)); }
 .pulse-mobile-nav { width:min(390px,calc(100% - 20px)); gap:4px; padding:10px 8px; }
 .pulse-mobile-nav > button,.pulse-mobile-nav .account-trigger { position:relative; }
 .pulse-mobile-nav .account-trigger > span { display:none; }
 .pulse-mobile-nav .account-panel { position:absolute; top:auto; bottom:68px; right:0; width:min(280px,calc(100vw - 36px)); }
 .pulse-mobile-nav .account-panel button { display:block; width:100%; height:auto; border:0; border-radius:8px; background:transparent; color:#eef2ef; text-align:left; padding:12px; font-size:13px; }
 .pulse-mobile-nav .account-panel .account-exit { color:#e8b4a3; }
 .pulse-nav-badge { position:absolute; top:-5px; right:-5px; display:grid; place-items:center; min-width:20px; height:20px; padding:0 4px; border:2px solid #23282d; border-radius:50%; background:#c5f46a; color:#192219; font-size:10px; font-weight:750; line-height:1; }
 .pulse-mobile-nav button[aria-current="page"] .pulse-nav-badge { background:#26351c; color:#d7f6b2; }
 .pulse-nav-dot { min-width:13px; width:13px; height:13px; padding:0; top:0; right:0; }
}
.pulse-picker-trigger { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:44px; padding:10px 12px; border:1px solid #48545e; border-radius:10px; background:#1b2025; color:#eef2ef; font:500 14px Manrope,Arial,sans-serif; }
.period-control .pulse-picker-trigger { border:0; padding:8px 4px; font-size:13px; background:transparent; }
.pulse-picker-dialog { margin:auto; padding:0; width:min(440px,calc(100vw - 24px)); max-height:90dvh; border:1px solid #505a63; border-radius:24px; background:#252b31; color:#eef2ef; box-shadow:0 20px 80px #0009; }
.pulse-picker-dialog::backdrop { background:#080d10a8; backdrop-filter:blur(5px); }
.pulse-picker-body { padding:16px 12px 24px; }
.pulse-picker-header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:16px; }
.pulse-picker-header button { border:0; padding:10px 8px; background:transparent; color:#c5f46a; font:500 14px Manrope,Arial,sans-serif; }
.pulse-picker-header strong { font-size:14px; }
.pulse-picker-header button:disabled { opacity:.35; }
.pulse-wheels { display:flex; gap:4px; }
.pulse-wheel-column { flex:1; min-width:0; text-align:center; }
.pulse-wheel-label { display:block; font-size:11px; color:#9eaab2; margin-bottom:8px; }
.pulse-wheel { height:220px; overflow-y:auto; overscroll-behavior:contain; scroll-snap-type:y mandatory; scrollbar-width:none; padding:88px 0; box-sizing:border-box; background:linear-gradient(to bottom,transparent 88px,#c5f46a12 88px,#c5f46a12 132px,transparent 132px); border-radius:12px; mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent); }
.pulse-wheel::-webkit-scrollbar { display:none; }
.pulse-wheel [role="option"] { height:44px; min-height:44px; display:flex; align-items:center; justify-content:center; scroll-snap-align:center; cursor:pointer; color:#a6b0b6; font:500 16px Manrope,Arial,sans-serif; }
.pulse-wheel [aria-selected="true"] { color:#d1f88e; font-weight:700; }
.pulse-wheel:focus-visible { outline:2px solid #c5f46a; outline-offset:2px; }
@media(max-width:767px){.pulse-picker-dialog { margin:auto auto max(12px,env(safe-area-inset-bottom)) auto; width:calc(100vw - 20px); }.pulse-picker-body{padding-bottom:30px}}
@media(max-width:767px){
 .pulse-mobile-nav { align-items:center; overflow:visible; }
 .pulse-mobile-nav > .pulse-nav-tasks { width:60px; height:60px; min-width:60px; margin-top:-22px; box-shadow:0 0 0 5px #23282d,0 6px 18px #0005; }
 .pulse-mobile-nav > .pulse-nav-tasks > svg { width:27px; height:27px; }
 .pulse-mobile-nav > .pulse-nav-tasks[aria-current="page"] { box-shadow:0 0 0 5px #23282d,0 5px 22px #c5f46a24; }
}
@media(max-width:767px){
 .pulse-mobile-nav .account-panel { background:#252b31; backdrop-filter:none; opacity:1; box-shadow:0 12px 40px #0008; }
}
.pulse-picker-validation { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; border:0!important; opacity:0; pointer-events:none; clip-path:inset(50%); }
[data-slot="dialog-content"].pulse-picker-dialog { position:fixed; top:50%; left:50%; bottom:auto; transform:translate(-50%,-50%); margin:0; padding:0; width:min(440px,calc(100vw - 24px)); max-width:440px; max-height:90dvh; z-index:100; display:block; overflow:hidden; }
.pulse-picker-dialog > .dialog-body { padding:0; max-height:85dvh; overflow:auto; }
.pulse-picker-clear { display:block; margin:12px auto 0; padding:10px; background:transparent; color:#c5f46a; border:0; }
.pulse-time-wheels { margin-top:12px; }
.pulse-time-wheels .pulse-wheel { height:132px; padding:44px 0; background:linear-gradient(to bottom,transparent 44px,#c5f46a12 44px,#c5f46a12 88px,transparent 88px); }
.pulse-choice-wheel [role="option"] { font-size:14px; padding:0 8px; line-height:1.3; overflow-wrap:anywhere; }
.filterbar > .pulse-select-trigger { width:auto; min-width:140px; font-weight:400; }
.pulse-select-trigger svg { flex-shrink:0; color:#c5f46a; }
@media(max-width:767px){[data-slot="dialog-content"].pulse-picker-dialog { top:auto; bottom:max(12px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:calc(100vw - 20px); }.filterbar > .pulse-select-trigger{width:100%}}
[data-slot="dialog-content"].pulse-picker-dialog { translate:none; }
/* In-app push banners; Sonner retains stacking, swipe and live announcements. */
[data-sonner-toaster].pulse-push-toaster { --width:400px; z-index:999999; font-family:Manrope,Arial,sans-serif; }
[data-sonner-toaster].pulse-push-toaster [data-sonner-toast] { border-radius:24px; padding:18px 44px 18px 18px; gap:13px; background:#2b3238f5; color:#eef2ef; border:1px solid #59636e88; box-shadow:0 12px 40px #0005,inset 0 1px #ffffff08; backdrop-filter:blur(20px) saturate(1.3); min-height:82px; }
.pulse-push-toaster [data-content] { gap:5px; }
.pulse-push-toaster [data-content]::before { content:'ПУЛЬС'; color:#b6c0c5; font-size:10px; font-weight:800; letter-spacing:1.1px; }
.pulse-push-toaster [data-title] { font-size:14px; font-weight:600; line-height:1.45; overflow-wrap:anywhere; }
.pulse-push-toaster [data-icon] { width:32px; height:32px; flex:0 0 32px; margin:0; display:grid; place-items:center; border-radius:10px; color:#c5f46a; background:#c5f46a18; }
.pulse-push-toaster [data-type="error"] [data-icon] { color:#ffb5a7; background:#ffb5a718; }
.pulse-push-toaster [data-close-button] { top:14px; left:auto; right:12px; transform:none; width:24px; height:24px; border:0; background:#ffffff0b; color:#b6c0c5; }
.pulse-feedback-settings { margin-bottom:24px; }
.pulse-feedback-settings .check { display:flex; align-items:center; gap:12px; margin-top:18px; }
.pulse-feedback-settings p { margin-top:16px; font-size:12px; }
@media(max-width:767px){[data-sonner-toaster].pulse-push-toaster { left:12px; right:12px; width:calc(100% - 24px); transform:none; }[data-sonner-toaster].pulse-push-toaster [data-sonner-toast]{width:100%;}}
@media(prefers-reduced-motion:reduce){.pulse-push-toaster [data-sonner-toast]{transition:none!important;animation:none!important;}}
[data-sonner-toaster].pulse-push-toaster [data-sonner-toast] [data-icon] { width:32px; height:32px; flex:0 0 32px; margin:0; display:grid; place-items:center; border-radius:10px; }
[data-sonner-toaster].pulse-push-toaster [data-sonner-toast] [data-close-button] { top:14px; left:auto; right:12px; transform:none; width:24px; height:24px; border:0; background:#ffffff0b; color:#b6c0c5; }
/* Keep desktop notifications below the measured header, including tablet widths. */
@media(min-width:768px){
 [data-sonner-toaster].pulse-push-toaster[data-y-position="top"] { top:var(--pulse-notification-top,100px); }
}
[data-sonner-toaster].pulse-push-toaster [data-sonner-toast] [data-icon] { display:flex; align-items:center; justify-content:center; padding:0; }
[data-sonner-toaster].pulse-push-toaster [data-sonner-toast] [data-icon] > svg { display:block; width:18px; height:18px; margin:0; flex-shrink:0; }
