/* Prompta product pages v128 — shared visual language for real Mini App data */
html[data-pc128-page] body{overflow:hidden!important}
.pc128-page-layer{position:fixed;z-index:38;inset:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;padding:max(18px,calc(var(--app-safe-top,0px) + 8px)) max(11px,env(safe-area-inset-right)) calc(94px + max(14px,env(safe-area-inset-bottom))) max(11px,env(safe-area-inset-left));background:
  radial-gradient(110% 74% at 80% -8%,rgba(56,39,255,.35),transparent 52%),
  radial-gradient(90% 58% at -10% 36%,rgba(32,70,255,.16),transparent 58%),
  linear-gradient(180deg,#050615 0%,#02040f 52%,#03040d 100%);
color:#f8f8ff;font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif}
.pc128-page-layer[hidden]{display:none!important}
.pc128-page-layer::before{content:"";position:fixed;z-index:-1;left:50%;top:-90px;width:min(620px,130vw);height:430px;transform:translateX(-50%);background:linear-gradient(135deg,transparent 26%,rgba(37,42,210,.18) 26.5%,rgba(60,43,238,.07) 61%,transparent 61.5%);pointer-events:none}
.pc128-shell{width:min(354px,calc(100vw - 22px));margin:0 auto;display:grid;gap:12px;animation:pc128In .24s cubic-bezier(.18,.82,.24,1)}
.pc128-header{min-height:61px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pc128-brand{display:grid;gap:3px;min-width:0}.pc128-brand img{display:block;width:157px;max-width:none;height:auto;object-fit:contain}.pc128-brand span{color:#8899c4;font-size:7.4px;font-weight:650;letter-spacing:.18em}
.pc128-pro-chip{min-width:57px;height:27px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:1px solid rgba(87,224,100,.42);border-radius:10px;background:linear-gradient(145deg,rgba(37,84,43,.4),rgba(9,29,22,.52));color:#a9ff72;font:800 10px/1 inherit;box-shadow:inset 0 0 18px rgba(75,255,113,.05)}
.pc128-pro-chip svg{width:13px;height:13px;fill:#81ff55;stroke:none}
.pc128-hero{position:relative;min-height:137px;display:grid;grid-template-columns:minmax(0,1fr) 142px;align-items:center;gap:3px;padding:2px 0 8px}
.pc128-hero-copy{position:relative;z-index:2;min-width:0}.pc128-hero h1{margin:0;color:#fff;font-size:clamp(35px,10.2vw,46px);line-height:.94;letter-spacing:-.045em;font-weight:900;text-wrap:balance}.pc128-hero p{margin:10px 0 0;color:#8fa4dc;font-size:14px;line-height:1.34}
.pc128-hero-art{position:relative;height:140px;margin-left:-20px}.pc128-hero-art::before{content:"";position:absolute;inset:22% 3% 5%;border-radius:50%;background:radial-gradient(circle,rgba(35,86,255,.34),rgba(188,23,255,.13) 42%,transparent 68%);filter:blur(12px)}
.pc128-hero-art img{position:absolute;z-index:1;width:155px;height:155px;right:-4px;bottom:-5px;object-fit:contain;filter:drop-shadow(0 14px 26px rgba(31,28,255,.23))}
.pc128-panel,.pc128-balance-card,.pc128-pro-card,.pc128-ear-card,.pc128-coach-lead,.pc128-current-task,.pc128-profile-card,.pc128-membership,.pc128-settings-list,.pc128-stats{position:relative;border:1px solid rgba(53,111,255,.56);border-radius:18px;background:linear-gradient(145deg,rgba(10,18,50,.89),rgba(4,7,22,.91));box-shadow:inset 0 1px 0 rgba(105,161,255,.08),0 16px 38px rgba(0,0,0,.18)}
.pc128-panel{padding:15px}.pc128-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}.pc128-panel-head strong{display:block;font-size:16px;line-height:1.1}.pc128-panel-head small{display:block;margin-top:5px;color:#8596c8;font-size:10px;line-height:1.35}
.pc128-icon,.pc128-crown-box{display:grid;place-items:center;flex:0 0 auto;width:39px;height:39px;border:1px solid rgba(105,97,255,.38);border-radius:13px;background:linear-gradient(145deg,rgba(47,80,255,.23),rgba(137,30,255,.1));color:#8da8ff;box-shadow:inset 0 0 16px rgba(100,62,255,.08)}
.pc128-icon svg,.pc128-crown-box svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.pc128-crown-box svg{fill:rgba(103,81,255,.42);stroke:#bc7cff}
.pc128-balance-card{padding:16px}.pc128-balance-title{display:flex;align-items:center;gap:10px}.pc128-balance-title>div{display:grid;gap:3px}.pc128-balance-title strong{font-size:16px}.pc128-balance-title small{color:#8798cc;font-size:10px}
.pc128-balance-value{display:flex;align-items:flex-end;gap:10px;margin-top:15px}.pc128-balance-value b{font-size:48px;line-height:.85;letter-spacing:.08em;font-weight:950;background:linear-gradient(110deg,#3edcff,#5da7ff 35%,#bc5dff 70%,#ff3be1);-webkit-background-clip:text;background-clip:text;color:transparent}.pc128-balance-value span{padding-bottom:4px;color:#9cb0ec;font-size:10px;font-weight:800}.pc128-balance-card>p{margin:13px 0;color:#889ac9;font-size:11px;line-height:1.4}
.pc128-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.pc128-btn{min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;border-radius:15px;color:#fff;font:800 12px/1 inherit}.pc128-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pc128-btn.is-primary{border:1px solid rgba(86,205,255,.8);background:linear-gradient(110deg,#10d6e8 0%,#2a82ff 37%,#8a45ff 69%,#ef36e4 100%);box-shadow:0 10px 25px rgba(85,69,255,.2)}.pc128-btn.is-secondary{border:1px solid rgba(109,72,255,.55);background:rgba(24,19,73,.52);color:#e4ddff}.pc128-btn:disabled{opacity:.45}
.pc128-note{display:block;margin-top:8px;color:#69789f;font-size:8.5px}
.pc128-list{display:grid;gap:7px}.pc128-list-row{min-height:53px;display:grid;grid-template-columns:7px 1fr auto;align-items:center;gap:9px;padding:9px 10px;border:1px solid rgba(73,106,198,.26);border-radius:12px;background:rgba(8,14,40,.56)}.pc128-dot{width:5px;height:5px;border-radius:50%;background:#43d9ff;box-shadow:0 0 8px #43d9ff}.pc128-list-row div{display:grid;gap:3px}.pc128-list-row strong{font-size:11px}.pc128-list-row small{color:#8395c6;font-size:8.5px}.pc128-list-row b{padding:6px 9px;border:1px solid rgba(59,161,255,.31);border-radius:999px;background:rgba(28,91,153,.2);color:#75dcff;font-size:9px}
.pc128-stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;overflow:hidden}.pc128-stats>div{display:grid;gap:3px;padding:13px;background:rgba(8,13,37,.62)}.pc128-stats strong{font-size:18px}.pc128-stats small{color:#7788b5;font-size:8.5px}
.pc128-search{height:47px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid rgba(69,101,199,.48);border-radius:15px;background:rgba(8,13,42,.76);color:#8195d0}.pc128-search svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.pc128-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#eef1ff;font:500 12px/1 inherit}.pc128-search input::placeholder{color:#7082ba}
.pc128-template-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pc128-template{position:relative;min-height:112px;display:grid;align-content:start;gap:5px;padding:12px 28px 11px 11px;border:1px solid rgba(57,103,218,.48);border-radius:14px;background:linear-gradient(150deg,rgba(15,27,69,.86),rgba(8,10,30,.9));color:#fff;text-align:left}.pc128-template-icon{display:grid;width:30px;height:30px;place-items:center;border-radius:10px;background:linear-gradient(140deg,rgba(28,201,255,.14),rgba(166,52,255,.16));color:#82c6ff}.pc128-template-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.pc128-template strong{font-size:11px;line-height:1.2}.pc128-template small{color:#8193c6;font-size:8px;line-height:1.3}.pc128-template>i{position:absolute;right:9px;top:12px;color:#91a9eb}.pc128-template>i svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.pc128-empty{padding:14px;border:1px dashed rgba(98,93,211,.35);border-radius:13px;background:rgba(18,18,56,.28);text-align:center}.pc128-empty strong{font-size:12px}.pc128-empty p{margin:6px 0 0;color:#7b8dbd;font-size:9px;line-height:1.4}.pc128-empty+.pc128-btn{margin-top:9px;width:100%}
.pc128-inline-link{text-align:center}.pc128-inline-link button,.pc128-text-actions button{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#9b8cff;font:700 10px/1.2 inherit}.pc128-inline-link svg,.pc128-text-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.pc128-pro-card{padding:15px;overflow:hidden}.pc128-pro-card::after{content:"";position:absolute;z-index:0;right:-40px;bottom:-45px;width:190px;height:190px;background:url('/prompta-page-pro-crown-v128.webp?v=128') center/contain no-repeat;opacity:.18;filter:saturate(1.2)}.pc128-pro-card>*{position:relative;z-index:1}.pc128-pro-title{display:flex;align-items:center;gap:10px}.pc128-pro-title>div{display:grid;gap:3px}.pc128-pro-title strong{font-size:18px}.pc128-pro-title small{color:#8da0d5;font-size:10px}.pc128-status{margin-left:auto;padding:7px 9px;border:1px solid rgba(120,114,194,.35);border-radius:999px;background:rgba(42,37,88,.5);color:#a9a5cd;font-size:8px;font-weight:850}.pc128-status.is-active{border-color:rgba(49,216,96,.38);background:rgba(23,94,45,.25);color:#8bff91}.pc128-feature-list{display:grid;gap:9px;margin:16px 0}.pc128-feature-list>div{display:flex;align-items:center;gap:9px;color:#e7eaff;font-size:11px}.pc128-feature-list svg{width:19px;height:19px;fill:none;stroke:#7a8cff;stroke-width:1.8}.pc128-pro-until{margin:0 0 10px;color:#7f91c4;font-size:9px}.pc128-pro-card>.pc128-btn{width:100%}.pc128-text-actions{text-align:center;margin-top:10px}
.pc128-coach-lead{display:grid;grid-template-columns:92px 1fr;align-items:center;gap:13px;padding:15px}.pc128-progress-ring{width:84px;height:84px;display:grid;place-content:center;text-align:center;border-radius:50%;background:radial-gradient(circle at center,#09122c 58%,transparent 59%),conic-gradient(#e84cff calc(var(--pc128-progress)*1%),#3dd8ff 0 calc(var(--pc128-progress)*1% + 11%),rgba(70,83,152,.25) 0);box-shadow:0 0 28px rgba(92,70,255,.17)}.pc128-progress-ring b{font-size:22px}.pc128-progress-ring small{color:#8296cb;font-size:8px}.pc128-eyebrow{display:block;color:#91a6e1;font-size:8px;font-weight:850;letter-spacing:.13em}.pc128-coach-lead>div:last-child>strong,.pc128-ear-card>div:first-child>strong{display:block;margin-top:5px;font-size:18px;line-height:1.12}.pc128-coach-lead p,.pc128-ear-card p{margin:6px 0 0;color:#8799cd;font-size:10px;line-height:1.4}
.pc128-current-task{display:grid;grid-template-columns:1fr 128px;align-items:center;gap:12px;padding:14px}.pc128-current-task>div>span{color:#7b91d1;font-size:8px;font-weight:850;letter-spacing:.12em}.pc128-current-task strong{display:block;margin-top:5px;font-size:15px}.pc128-current-task p{margin:4px 0 0;color:#8496ca;font-size:9px}.pc128-current-task .pc128-btn{width:100%}
.pc128-task-list{display:grid;gap:7px}.pc128-task{min-height:52px;display:grid;grid-template-columns:1fr auto 14px;align-items:center;gap:8px;padding:9px 10px;border:1px solid rgba(70,100,190,.3);border-radius:12px;background:rgba(8,14,41,.62);color:#fff;text-align:left}.pc128-task span{display:grid;gap:3px}.pc128-task b{font-size:11px}.pc128-task small{color:#8294c7;font-size:8.5px}.pc128-task em{font-style:normal;color:#978aff;font-size:9px}.pc128-task>svg{width:14px;height:14px;fill:none;stroke:#91a8eb;stroke-width:2}
.pc128-ear-card{display:grid;gap:14px;padding:15px;background:linear-gradient(145deg,rgba(12,22,61,.92),rgba(6,9,27,.94))}.pc128-ear-state{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid rgba(86,114,197,.22)}.pc128-ear-state>span{font-size:11px;font-weight:750}.pc128-ear-state button{min-width:83px;height:34px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(111,82,255,.5);border-radius:999px;background:rgba(64,38,155,.35);color:#a89eff;font:800 8px/1 inherit}.pc128-ear-state button i,.pc128-switch i{width:13px;height:13px;border-radius:50%;background:#72748e;box-shadow:0 0 0 3px rgba(255,255,255,.03)}.pc128-ear-state button[aria-pressed="true"]{border-color:rgba(31,217,246,.55);background:linear-gradient(110deg,rgba(15,190,223,.34),rgba(151,49,246,.36));color:#fff}.pc128-ear-state button[aria-pressed="true"] i{background:#58f2ff;box-shadow:0 0 12px #3adfff}
.pc128-mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.pc128-mode-grid button{min-height:96px;display:grid;justify-items:start;align-content:start;gap:5px;padding:10px 8px;border:1px solid rgba(77,100,177,.42);border-radius:13px;background:rgba(10,16,45,.72);color:#f4f3ff;text-align:left}.pc128-mode-grid button.is-selected{border-color:#62cfff;box-shadow:inset 0 0 0 1px rgba(191,65,255,.55),0 0 18px rgba(83,95,255,.12)}.pc128-mode-grid svg{width:21px;height:21px;fill:none;stroke:#8e87ff;stroke-width:1.8}.pc128-mode-grid strong{font-size:10px}.pc128-mode-grid small{color:#8393bf;font-size:7.8px;line-height:1.25}
.pc128-settings-list{overflow:hidden}.pc128-setting-row{min-height:58px;display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-bottom:1px solid rgba(85,105,164,.2);background:transparent;color:#fff;text-align:left}.pc128-setting-row:last-child{border-bottom:0}.pc128-setting-row>div{display:grid;gap:3px;flex:1}.pc128-setting-row strong{font-size:11px}.pc128-setting-row small{color:#8294c6;font-size:9px}.pc128-setting-row>svg{width:16px;height:16px;fill:none;stroke:#91a7e7;stroke-width:2}.pc128-switch{position:relative;width:43px;height:26px;border:1px solid rgba(117,98,239,.46);border-radius:999px;background:#171a39}.pc128-switch i{position:absolute;top:5px;left:5px;width:14px;height:14px;transition:left .18s ease}.pc128-switch[aria-pressed="true"]{background:linear-gradient(100deg,#10d5e8,#8f43ff)}.pc128-switch[aria-pressed="true"] i{left:22px;background:#fff}
.pc128-profile-card{display:flex;align-items:center;gap:14px;padding:15px}.pc128-avatar{width:66px;height:66px;display:grid;place-items:center;flex:0 0 66px;border:1px solid rgba(110,88,255,.55);border-radius:50%;background:linear-gradient(135deg,#1bc8ff,#554eff 55%,#df35ed);font-size:23px;font-weight:900;box-shadow:0 12px 24px rgba(69,64,255,.2)}.pc128-profile-card>div:last-child{display:grid;gap:4px}.pc128-profile-card strong{font-size:18px}.pc128-profile-card small{color:#8799cc;font-size:11px}.pc128-online{color:#4af078;font-size:9px}
.pc128-membership{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px}.pc128-membership.is-pro{border-color:rgba(180,65,255,.65);background:linear-gradient(135deg,rgba(25,30,78,.93),rgba(67,14,91,.6))}.pc128-membership>div{display:grid;gap:3px}.pc128-membership strong{font-size:15px}.pc128-membership small{color:#8799cc;font-size:9px}.pc128-membership .pc128-btn{min-height:36px;padding:0 9px;font-size:9px}.pc128-profile-note{margin:0 5px;color:#5f6d92;font-size:8px;line-height:1.45;text-align:center}
.pc128-loading{height:70vh;display:grid;place-content:center;justify-items:center;gap:10px;color:#8c9aca}.pc128-loading span{width:36px;height:36px;border:2px solid rgba(106,85,255,.22);border-top-color:#4fdcff;border-right-color:#d44cff;border-radius:50%;animation:pc128Spin .8s linear infinite}.pc128-loading p{margin:0;font-size:10px}
.pc128-page-layer button{cursor:pointer;-webkit-tap-highlight-color:transparent}.pc128-page-layer button:active{transform:scale(.985)}
@keyframes pc128Spin{to{transform:rotate(360deg)}}@keyframes pc128In{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(max-width:370px){.pc128-hero{grid-template-columns:minmax(0,1fr) 128px}.pc128-hero h1{font-size:34px}.pc128-hero-art img{width:142px;height:142px}.pc128-balance-value b{font-size:43px}.pc128-current-task{grid-template-columns:1fr 115px}.pc128-brand img{width:148px}}
@media(prefers-reduced-motion:reduce){.pc128-shell,.pc128-loading span{animation:none!important}.pc128-page-layer button:active{transform:none}}

.pc128-dock{position:fixed;z-index:6;left:50%;bottom:max(10px,env(safe-area-inset-bottom));width:min(354px,calc(100vw - 22px));height:66px;display:grid;grid-template-columns:1fr 1.45fr 1fr;align-items:center;gap:8px;padding:7px 10px;border:1px solid rgba(58,92,191,.45);border-radius:25px;background:linear-gradient(180deg,rgba(6,10,29,.96),rgba(3,6,18,.97));box-shadow:0 16px 42px rgba(0,0,0,.38),inset 0 1px 0 rgba(129,154,255,.07);backdrop-filter:blur(18px)}
.pc128-dock button{height:50px;border:0;background:transparent;color:#9aa9d1}
.pc128-dock-side{display:grid;place-content:center;justify-items:center;gap:2px;font:700 8px/1 inherit}.pc128-dock-side svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pc128-dock-camera{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(57,219,255,.75)!important;border-radius:19px!important;background:linear-gradient(110deg,#13d8eb 0%,#2a82ff 36%,#8d45ff 68%,#ed38e8 100%)!important;color:#fff!important;box-shadow:0 8px 22px rgba(70,72,255,.28)}.pc128-dock-camera svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}.pc128-dock-camera strong{font-size:13px}

/* v129: user-provided product art + three-frame Coach animation */
.pc129-coach-hero .pc128-hero-copy{position:relative;z-index:2}
.pc129-coach-art{position:relative;width:174px;height:174px;align-self:end;justify-self:end;overflow:visible;filter:drop-shadow(0 18px 30px rgba(43,57,255,.22))}
.pc129-coach-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;transform:translateY(3px) scale(.985);will-change:opacity,transform;animation:pc129CoachCycle 8.1s infinite cubic-bezier(.22,.78,.25,1)}
.pc129-coach-frame.is-one{animation-delay:0s}
.pc129-coach-frame.is-two{animation-delay:2.7s}
.pc129-coach-frame.is-three{animation-delay:5.4s}
@keyframes pc129CoachCycle{
  0%,28%{opacity:1;transform:translateY(0) scale(1)}
  32%{opacity:0;transform:translateY(-4px) scale(1.025)}
  33%,100%{opacity:0;transform:translateY(3px) scale(.985)}
}
@media(max-width:370px){.pc129-coach-art{width:148px;height:148px}}
@media(prefers-reduced-motion:reduce){
  .pc129-coach-frame{animation:none!important;opacity:0!important;transform:none!important}
  .pc129-coach-frame.is-one{opacity:1!important}
}


/* v130: Scenario page + shared mobile-safe navigation/header */
.pc130-scenario-hero{min-height:145px}
.pc130-scenario-art{height:148px;margin-left:-28px}
.pc130-scenario-art img{width:166px;height:166px;right:-8px;bottom:-7px}
.pc130-script-card,.pc130-privacy{position:relative;border:1px solid rgba(56,105,255,.58);border-radius:18px;background:linear-gradient(145deg,rgba(10,18,50,.9),rgba(4,7,22,.94));box-shadow:inset 0 1px 0 rgba(105,161,255,.08),0 16px 38px rgba(0,0,0,.18)}
.pc130-script-card{padding:14px}
.pc130-script-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.pc130-script-head>div{display:grid;gap:3px;min-width:0}
.pc130-script-head strong{font-size:15px}
.pc130-script-head small{color:#8799ca;font-size:9px;line-height:1.32}
.pc130-doc-icon{width:37px;height:37px;border-radius:12px}
.pc130-hints{height:36px;display:inline-flex;align-items:center;gap:6px;padding:0 10px;border:1px solid rgba(167,72,255,.7);border-radius:12px;background:linear-gradient(145deg,rgba(62,36,145,.62),rgba(27,19,74,.78));color:#cf91ff;font:800 9px/1 inherit}
.pc130-hints svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc130-script-input{width:100%;min-height:245px;margin-top:13px;padding:15px 14px;resize:vertical;border:1px solid rgba(72,101,190,.46);border-radius:15px;outline:0;background:linear-gradient(145deg,rgba(10,16,41,.94),rgba(6,9,27,.96));color:#f8f8ff;font:500 15px/1.5 Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;caret-color:#4b8dff;box-shadow:inset 0 0 30px rgba(31,44,111,.1)}
.pc130-script-input:focus{border-color:rgba(61,129,255,.88);box-shadow:inset 0 0 30px rgba(31,44,111,.1),0 0 0 2px rgba(50,100,255,.09)}
.pc130-script-input::placeholder{color:#60709f}
.pc130-script-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:11px}
.pc130-meta{display:flex;gap:12px;color:#7183b8;font-size:8.5px;white-space:nowrap}
.pc130-script-actions{display:flex;gap:7px}
.pc130-clear,.pc130-save{height:40px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border-radius:13px;color:#fff;font:800 10px/1 inherit}
.pc130-clear{border:1px solid rgba(82,103,170,.4);background:rgba(18,24,56,.8)}
.pc130-save{border:1px solid rgba(76,198,255,.68);background:linear-gradient(110deg,#18bfe5 0%,#377cff 42%,#9b43ff 74%,#e438dd 100%);box-shadow:0 8px 20px rgba(80,67,255,.2)}
.pc130-clear svg,.pc130-save svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc130-save-state{margin-top:8px;color:#55e88b;font-size:8px;text-align:right;opacity:.82}
.pc130-privacy{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:10px;padding:12px 13px}
.pc130-status-dot{width:7px;height:7px;margin-top:5px;border-radius:50%;background:#62f36f;box-shadow:0 0 12px rgba(98,243,111,.8)}
.pc130-privacy>div{display:grid;gap:4px}
.pc130-privacy strong{font-size:10px}
.pc130-privacy small{color:#7e90c1;font-size:8.5px;line-height:1.35}

@media(max-width:430px){
  .pc128-page-layer{padding-top:max(18px,calc(var(--app-safe-top,0px) + 8px))}
  .pc128-header{min-height:48px;align-items:flex-start}
  .pc128-brand img{width:156px;height:auto!important;transform:none!important}
  .pc128-brand span{font-size:7.4px;letter-spacing:.18em}
  .pc130-scenario-hero{min-height:138px}
  .pc130-scenario-art{margin-left:-24px}
}
@media(max-width:370px){
  .pc130-script-head{grid-template-columns:auto minmax(0,1fr)}
  .pc130-hints{grid-column:1/-1;justify-self:end;margin-top:-2px}
  .pc130-script-foot{align-items:flex-end;flex-direction:column}
  .pc130-meta{align-self:flex-start}
  .pc130-script-actions{width:100%}
  .pc130-clear,.pc130-save{flex:1}
}


/* v131: one shared mobile header, Telegram-native back and hard horizontal containment */
.pc128-page-layer,.pc128-page-layer *{box-sizing:border-box}
.pc128-page-layer{max-width:100vw}
.pc128-shell{max-width:100%;overflow:visible}
.pc128-header{align-items:flex-start}
.pc130-script-card,.pc130-privacy{width:100%;max-width:100%;min-width:0;overflow:hidden}
.pc130-script-head{grid-template-columns:37px minmax(0,1fr) 92px;min-width:0}
.pc130-script-head>div{min-width:0;overflow:hidden}
.pc130-script-head small{display:block;overflow:hidden;text-overflow:ellipsis}
.pc130-hints{width:92px;max-width:92px;padding:0 8px;white-space:nowrap}
.pc130-script-input{display:block;max-width:100%;min-width:0}
.pc130-script-foot{min-width:0}
.pc130-script-actions{flex:0 0 auto}
@media(max-width:370px){
  .pc130-script-head{grid-template-columns:37px minmax(0,1fr) 86px}
  .pc130-hints{width:86px;max-width:86px;padding:0 6px}
}


/* v132: unified commerce state, pull-to-refresh, template add card, modern Scenario/AI workspace */
.pc128-page-layer svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;shape-rendering:geometricPrecision}
.pc128-header{min-height:44px}
.pc128-pro-chip{min-width:57px!important;width:auto;height:27px!important;padding:0 8px!important;margin:0!important;border-radius:10px!important;align-self:flex-start;font-size:10px!important}
.pc128-pro-chip svg{width:13px!important;height:13px!important}
.pc128-pro-chip.is-pro{border-color:rgba(255,214,103,.48);background:linear-gradient(145deg,rgba(92,73,26,.46),rgba(43,31,10,.55));color:#ffd968;box-shadow:inset 0 0 18px rgba(255,218,100,.06),0 0 18px rgba(255,196,61,.06)}
.pc128-pro-chip.is-pro svg{fill:rgba(255,207,76,.25);stroke:#ffd968}
.pc128-pro-chip.is-ready{border-color:rgba(87,224,100,.42);color:#9cff72}
.pc128-pro-chip.is-ready svg{fill:#83ff59;stroke:none}
.pc128-pro-chip.is-zero{border-color:rgba(255,82,105,.46);background:linear-gradient(145deg,rgba(83,24,38,.48),rgba(37,12,20,.58));color:#ff6f82}
.pc128-pro-chip.is-zero svg{fill:#ff6177;stroke:none}
.pc128-dock{z-index:60}
.pc128-dock-side svg,.pc128-dock-camera svg{shape-rendering:geometricPrecision}
.pc128-setting-row .pc128-icon{width:28px;height:28px;flex-basis:28px;border:0;border-radius:0;background:transparent;box-shadow:none}
.pc128-setting-row .pc128-icon svg{width:21px;height:21px;stroke-width:1.75}
.pc128-setting-row.pc132-icon-purple .pc128-icon{color:#9b7dff}
.pc128-setting-row.pc132-icon-blue .pc128-icon{color:#5aa9ff}
.pc128-setting-row.pc132-icon-green .pc128-icon{color:#6ee58a}
.pc132-membership-state{min-width:76px;height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:1px solid rgba(255,214,103,.42);border-radius:999px;background:rgba(94,70,18,.26);color:#ffdc72;font:800 8.5px/1 inherit}
.pc132-membership-state svg{width:14px;height:14px;fill:rgba(255,218,104,.18);stroke:#ffdc72}
.pc132-template-add{border-style:dashed!important;place-content:center;justify-items:center;text-align:center;padding:14px 12px!important}
.pc132-template-add .pc128-template-icon{width:38px;height:38px;border-radius:50%;color:#b17bff;background:linear-gradient(145deg,rgba(72,67,255,.2),rgba(187,55,255,.14))}
.pc132-template-add .pc128-template-icon svg{width:21px;height:21px}
.pc132-template-add small{max-width:125px}
.pc132-token-actions{grid-template-columns:1fr}
.pc132-token-actions .pc128-btn{width:100%}
.pc130-script-head{grid-template-columns:37px minmax(0,1fr) 96px}
.pc130-hints{width:96px;max-width:96px;justify-content:center;padding:0 7px}
.pc130-script-foot{justify-content:flex-end}
.pc130-meta{margin-right:auto}
.pc130-script-actions{justify-content:flex-end;max-width:100%}
.pc130-clear,.pc130-save{min-width:92px;padding:0 10px}
.pc132-ai-pane{display:grid;gap:12px;margin-top:13px}
.pc132-ai-pane[hidden],[data-pc132-script-pane][hidden]{display:none!important}
.pc132-ai-intro{display:grid;grid-template-columns:39px minmax(0,1fr);align-items:start;gap:10px;padding:12px;border:1px solid rgba(79,102,205,.34);border-radius:14px;background:rgba(9,15,43,.66)}
.pc132-ai-intro>div{display:grid;gap:4px}.pc132-ai-intro strong{font-size:13px}.pc132-ai-intro small{color:#8395c8;font-size:9px;line-height:1.35}
.pc132-ai-quick{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.pc132-ai-quick button{min-height:40px;display:flex;align-items:center;gap:7px;padding:0 9px;border:1px solid rgba(92,93,204,.36);border-radius:12px;background:rgba(15,20,57,.75);color:#dcdfff;font:750 9px/1 inherit;text-align:left}
.pc132-ai-quick button svg{width:16px;height:16px;color:#9d7cff}
.pc132-ai-quick button.is-selected{border-color:rgba(71,177,255,.72);background:linear-gradient(145deg,rgba(34,89,170,.38),rgba(89,36,157,.4));box-shadow:inset 0 0 0 1px rgba(177,75,255,.22)}
.pc132-ai-task,.pc132-ai-result textarea{width:100%;max-width:100%;min-width:0;resize:vertical;border:1px solid rgba(72,101,190,.46);border-radius:14px;outline:0;background:linear-gradient(145deg,rgba(10,16,41,.94),rgba(6,9,27,.96));color:#f8f8ff;font:500 13px/1.45 Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;caret-color:#4b8dff}
.pc132-ai-task{min-height:78px;padding:12px}
.pc132-ai-result textarea{min-height:190px;padding:13px}
.pc132-ai-generate{height:43px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(72,202,255,.72);border-radius:14px;background:linear-gradient(110deg,#16cfe6 0%,#367dff 40%,#9844ff 72%,#e63bdc 100%);color:#fff;font:850 11px/1 inherit;box-shadow:0 9px 22px rgba(71,69,255,.2)}
.pc132-ai-generate svg{width:18px;height:18px}
.pc132-ai-status{min-height:14px;margin:0;color:#8596c9;font-size:9px;line-height:1.35}.pc132-ai-status[data-tone="success"]{color:#63e997}.pc132-ai-status[data-tone="error"]{color:#ff7588}
.pc132-ai-result{display:grid;gap:9px;padding:11px;border:1px solid rgba(105,83,234,.42);border-radius:14px;background:rgba(20,17,61,.45)}
.pc132-ai-result-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.pc132-ai-result-head strong{font-size:12px}.pc132-ai-result-head small{color:#7588bd;font-size:8.5px}
.pc132-ai-result-actions{display:flex;justify-content:flex-end;gap:6px}.pc132-ai-result-actions button{min-height:36px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 9px;border:1px solid rgba(92,103,174,.4);border-radius:11px;background:rgba(17,23,57,.82);color:#f4f4ff;font:800 9px/1 inherit}.pc132-ai-result-actions button:last-child{border-color:rgba(75,194,255,.66);background:linear-gradient(110deg,#1abce2,#4377ff 45%,#9f43ff)}
.pc132-ai-result-actions svg{width:14px;height:14px}
.pc132-pull{position:sticky;z-index:80;top:-1px;height:0;display:grid;place-items:center;pointer-events:none;transform:translateY(calc(var(--pc132-pull,0px) - 42px));opacity:calc(var(--pc132-pull,0px)/74);transition:transform .14s ease,opacity .14s ease}
.pc132-pull span{width:28px;height:28px;border:2px solid rgba(113,105,255,.22);border-top-color:#51dcff;border-right-color:#d659ff;border-radius:50%}.pc132-pull.is-ready span{box-shadow:0 0 18px rgba(83,102,255,.25)}.pc132-pull.is-refreshing span{animation:pc128Spin .7s linear infinite}
@media(max-width:370px){.pc130-script-head{grid-template-columns:34px minmax(0,1fr) 88px}.pc130-hints{width:88px;max-width:88px}.pc130-clear,.pc130-save{min-width:82px}.pc132-ai-result-actions{flex-wrap:wrap}}


/* v133: centered adaptive dock + stable keyboard overlay + compact-on-scroll + simplified Scenario AI */
.pc128-dock{
  z-index:60;
  left:50%;
  bottom:max(20px,calc(env(safe-area-inset-bottom,0px) + 10px));
  width:min(354px,calc(100vw - 22px));
  height:66px;
  display:grid;
  grid-template-columns:auto auto auto;
  justify-content:center;
  align-items:center;
  gap:6px;
  padding:7px 10px;
  transform:translateX(-50%) scale(1);
  transform-origin:50% 100%;
  transition:transform .22s cubic-bezier(.2,.78,.24,1),bottom .22s ease,width .22s ease;
  will-change:transform,bottom;
}
.pc128-dock button{
  width:54px;
  min-width:54px;
  height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  padding:0 14px;
  overflow:hidden;
  border:1px solid transparent!important;
  border-radius:19px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#9aa9d1!important;
  white-space:nowrap;
  transition:width .22s cubic-bezier(.2,.75,.25,1),background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease;
}
.pc128-dock .pc133-dock-label{
  max-width:0;
  margin-left:0;
  overflow:hidden;
  opacity:0;
  color:inherit;
  font-size:12px;
  font-weight:800;
  line-height:1;
  transition:max-width .18s ease,margin-left .18s ease,opacity .14s ease;
}
.pc128-dock button.is-expanded{width:128px}
.pc128-dock button.is-expanded .pc133-dock-label{max-width:76px;margin-left:8px;opacity:1}
.pc128-dock-side{display:flex;place-content:normal;justify-items:normal}
.pc128-dock-side svg,.pc128-dock-camera svg{width:23px;height:23px;flex:0 0 23px}
.pc128-dock-camera.is-expanded{
  border-color:rgba(57,219,255,.75)!important;
  background:linear-gradient(110deg,#13d8eb 0%,#2a82ff 36%,#8d45ff 68%,#ed38e8 100%)!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(70,72,255,.28)!important;
}
.pc128-dock-side.is-expanded{
  border-color:rgba(108,91,238,.42)!important;
  background:linear-gradient(145deg,rgba(61,45,147,.34),rgba(17,22,63,.78))!important;
  color:#eeeaff!important;
}
.pc128-dock-side.pc133-dock-pro.is-expanded{
  border-color:rgba(170,91,255,.42)!important;
  background:linear-gradient(145deg,rgba(77,37,152,.34),rgba(23,18,67,.78))!important;
}
.pc128-dock.is-compact{
  bottom:max(12px,calc(env(safe-area-inset-bottom,0px) + 2px));
  transform:translateX(-50%) scale(.8);
}
.pc128-dock.is-keyboard-locked{
  top:var(--pc133-lock-top)!important;
  bottom:auto!important;
  transition:none!important;
}
.pc128-dock.is-keyboard-locked.is-compact{transform:translateX(-50%) scale(.8)}
.pc132-ai-pane{margin-top:12px;gap:9px}
.pc132-ai-intro{display:none!important}
.pc132-ai-task{min-height:96px;padding:13px}
.pc132-ai-task::placeholder{color:#8192bf;opacity:.86}
.pc132-ai-quick{margin-top:0}
.pc132-ai-generate{margin-top:1px}
@media(max-width:370px){
  .pc128-dock{width:calc(100vw - 18px);gap:4px;padding-left:7px;padding-right:7px}
  .pc128-dock button.is-expanded{width:118px}
}
@media(prefers-reduced-motion:reduce){
  .pc128-dock,.pc128-dock button,.pc128-dock .pc133-dock-label{transition:none!important}
}


/* v134: only one dock on product pages, visually aligned Pro chip, invisible idle pull indicator */
html[data-pc128-page] body .promptcam-editor-hub{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
.pc128-header{align-items:flex-start!important}
.pc128-pro-chip{margin-top:18px!important}
.pc132-pull{
  opacity:0!important;
  visibility:hidden;
}
.pc132-pull.is-pulling,.pc132-pull.is-refreshing{
  opacity:1!important;
  visibility:visible;
}
.pc134-page-pending{height:1px;min-height:1px;pointer-events:none}


/* v135: persistent dock during transitions + center loader + stronger pull threshold */
.pc128-pro-chip{margin-top:15px!important}
.pc135-transition-shell{min-height:calc(100dvh - max(18px,calc(var(--app-safe-top,0px) + 8px)) - 18px);display:block}
.pc135-transition-stage{height:calc(100dvh - 118px - max(14px,env(safe-area-inset-bottom)));display:grid;place-items:center;pointer-events:none}
.pc135-transition-spinner{
  width:38px;height:38px;border:2px solid rgba(102,89,255,.24);border-top-color:#4fdcff;border-right-color:#d84cff;border-radius:50%;
  background:radial-gradient(circle,rgba(59,69,180,.12),transparent 66%);
  box-shadow:0 0 30px rgba(77,82,255,.12);
  animation:pc128Spin .78s linear infinite;
}
.pc132-pull{top:0!important;transform:none!important;height:0;overflow:visible}
.pc135-pull-glyph{
  position:absolute;left:50%;top:0;width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(99,103,222,.4);border-radius:50%;
  background:rgba(8,12,35,.94);color:#80cfff;box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 20px rgba(81,77,255,.12);
  transform:translate(-50%,var(--pc135-pull-y,-44px)) rotate(calc(var(--pc135-pull-progress,0) * 160deg));
  opacity:calc(.35 + var(--pc135-pull-progress,0) * .65);
  transition:box-shadow .12s ease,border-color .12s ease;
}
.pc135-pull-glyph svg{width:19px;height:19px}
.pc132-pull.is-ready .pc135-pull-glyph{border-color:rgba(74,215,255,.72);box-shadow:0 0 24px rgba(81,93,255,.22)}
.pc132-pull.is-refreshing .pc135-pull-glyph{animation:pc128Spin .72s linear infinite}
.pc135-coach-actions{grid-template-columns:1fr!important}
.pc135-coach-actions .pc128-btn{width:100%}


/* v136: one persistent global dock, stable keyboard state, fixed pull affordance, AI draft order, modern template editor */
.pc136-global-dock{z-index:214!important}
html[data-pc136-global-dock="true"] body .promptcam-editor-hub,
html[data-pc136-global-dock="true"].promptcam-ui-v54.promptcam-keyboard-open body .promptcam-editor-hub,
html[data-pc136-global-dock="true"].promptcam-ui-v57.promptcam-keyboard-open body .promptcam-editor-hub,
html[data-pc136-global-dock="true"].promptcam-text-editing-v73 body .promptcam-editor-hub,
html[data-pc136-global-dock="true"].promptcam-text-editing-v74 body .promptcam-editor-hub{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important
}
.pc135-transition-shell{padding-bottom:86px}
.pc132-pull{position:fixed!important;z-index:205!important;left:50%!important;top:30px!important;width:38px!important;height:38px!important;overflow:visible!important;transform:translateX(-50%)!important;pointer-events:none}
.pc135-pull-glyph{
  position:static!important;left:auto!important;top:auto!important;transform:rotate(calc(var(--pc135-pull-progress,0) * 160deg))!important;
  opacity:calc(.3 + var(--pc135-pull-progress,0) * .7)!important
}
.pc132-pull.is-refreshing .pc135-pull-glyph{opacity:1!important}
[data-pc132-scenario-card][data-mode="ai"] [data-pc132-script-pane]{display:block!important}
[data-pc132-scenario-card][data-mode="ai"] .pc130-script-foot{opacity:.72}
.pc132-ai-pane{padding-top:2px}
.pc132-ai-result{order:0}
.pc132-ai-task{order:1}
.pc132-ai-quick{order:2}
.pc132-ai-generate{order:3}
.pc132-ai-status{order:4}
.pc136-ai-result-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pc136-ai-result-foot>small{color:#7a8dbf;font-size:9px;white-space:nowrap}
.pc136-ai-result-foot .pc132-ai-result-actions{margin-left:auto}
.pc136-ai-result-foot .pc132-ai-result-actions button{min-width:96px}
.pc136-template-card{padding:0!important;display:block!important;min-height:112px;overflow:hidden}
.pc136-template-use{width:100%;min-height:112px;display:grid;align-content:start;gap:5px;padding:12px 34px 11px 11px;border:0;background:transparent;color:#fff;text-align:left}
.pc136-template-use>i{position:absolute;right:10px;bottom:11px;color:#91a9eb}
.pc136-template-use>i svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2}
.pc136-template-edit{position:absolute;z-index:2;right:8px;top:8px;width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(114,93,238,.38);border-radius:10px;background:rgba(16,21,55,.9);color:#a895ff}
.pc136-template-edit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc136-template-editor-backdrop{position:fixed;z-index:250;inset:0;border:0;background:rgba(1,3,12,.68);backdrop-filter:blur(9px)}
.pc136-template-editor-backdrop[hidden],.pc136-template-editor[hidden]{display:none!important}
.pc136-template-editor{position:fixed;z-index:251;left:50%;bottom:max(10px,env(safe-area-inset-bottom));transform:translateX(-50%);width:min(520px,calc(100vw - 18px));max-height:min(82dvh,720px);overflow:auto;padding:14px;border:1px solid rgba(75,113,255,.52);border-radius:20px;background:linear-gradient(155deg,rgba(9,15,45,.99),rgba(4,7,23,.99));box-shadow:0 -18px 72px rgba(0,0,0,.48),inset 0 1px 0 rgba(119,149,255,.08)}
.pc136-template-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.pc136-template-editor-head>div{display:grid;gap:3px}.pc136-template-editor-head strong{font-size:16px}.pc136-template-editor-head small{color:#7f92c8;font-size:9px}
.pc136-template-editor-head>button{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(90,103,185,.36);border-radius:11px;background:rgba(14,20,52,.8);color:#b9c7ef}
.pc136-template-editor-head svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc136-template-editor label{display:grid;gap:6px;margin-top:10px}.pc136-template-editor label>span{color:#9bacd8;font-size:9px;font-weight:800}
.pc136-template-editor input,.pc136-template-editor textarea{width:100%;box-sizing:border-box;border:1px solid rgba(72,101,190,.46);border-radius:14px;outline:0;background:linear-gradient(145deg,rgba(10,16,41,.96),rgba(6,9,27,.98));color:#f8f8ff;font:500 13px/1.45 Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif}
.pc136-template-editor input{height:44px;padding:0 12px}.pc136-template-editor textarea{min-height:220px;padding:12px;resize:vertical}
.pc136-template-status{min-height:16px;margin:8px 0 0;color:#7d91c8;font-size:9px}.pc136-template-status[data-tone="error"]{color:#ff7588}
.pc136-template-editor-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:8px;margin-top:8px}
.pc136-template-editor-actions button{height:43px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:13px;color:#fff;font:800 10px/1 inherit}
.pc136-template-editor-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc136-template-editor-actions .is-danger{border:1px solid rgba(255,85,112,.42);background:rgba(80,21,39,.55);color:#ff8394}
.pc136-template-editor-actions .is-primary{border:1px solid rgba(70,201,255,.7);background:linear-gradient(110deg,#16cfe6 0%,#367dff 40%,#9844ff 72%,#e63bdc 100%)}


/* v137: AI draft is present immediately; Home shares dock scroll behavior */
.pc132-ai-result[hidden]{display:grid!important}
.pc132-ai-result button:disabled{opacity:.42;filter:saturate(.55);pointer-events:none}


/* v138: pull-to-refresh is the same spinner in the same anchor as page transition loading */
.pc135-transition-stage{
  position:fixed!important;
  z-index:204!important;
  inset:0!important;
  height:auto!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  padding-bottom:86px!important;
  pointer-events:none!important;
}
.pc132-pull{
  position:fixed!important;
  z-index:205!important;
  inset:0!important;
  left:0!important;
  top:0!important;
  width:auto!important;
  height:auto!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  padding-bottom:86px!important;
  transform:none!important;
  pointer-events:none!important;
}
.pc132-pull .pc138-pull-spinner{
  animation:none!important;
  transform:rotate(calc(var(--pc135-pull-progress,0) * 220deg));
}
.pc132-pull.is-pulling .pc138-pull-spinner{opacity:1}
.pc132-pull.is-refreshing .pc138-pull-spinner{
  animation:pc128Spin .78s linear infinite!important;
}
.pc132-pull:not(.is-pulling):not(.is-refreshing) .pc138-pull-spinner{opacity:0}
[data-pc132-scenario-card][data-mode="ai"] [data-pc132-script-pane]{display:none!important}
.pc132-ai-result[hidden]{display:none!important}


/* v139: one scroll surface everywhere and no bottom dock inside camera */
.pc128-page-layer{
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scrollbar-width:none;
}
.pc128-page-layer::-webkit-scrollbar{display:none;width:0;height:0}
html[data-pc139-camera-open="true"] .pc136-global-dock{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}


/* v140: viewport loader cannot inherit shell transforms; mobile pages do not vertically jump after loading */
.pc135-transition-stage[data-pc140-viewport-loader="true"]{
  position:fixed!important;
  z-index:204!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  padding:0 0 86px!important;
  transform:none!important;
  animation:none!important;
  pointer-events:none!important;
}
html[data-telegram-device="mobile"] .pc128-shell{
  animation:pc140MobileIn .16s ease-out both!important;
}
@keyframes pc140MobileIn{
  from{opacity:0}
  to{opacity:1}
}
html[data-telegram-device="mobile"] .pc135-transition-spinner{
  transform:none;
}


/* v140 baseline-safe mobile top reserve: keep new UI geometry stable while Telegram swaps Close/Back chrome */
html[data-telegram="true"][data-telegram-device="mobile"]{
  --app-safe-top:max(
    env(safe-area-inset-top,0px),
    var(--tg-content-safe-area-inset-top,0px),
    var(--tg-safe-area-inset-top,0px),
    84px
  )!important;
}


/* v141: page chrome renders immediately; loader floats over it only while live user data hydrates */
.pc135-transition-stage[data-pc140-viewport-loader="true"]{
  background:transparent!important;
  backdrop-filter:none!important;
}
.pc128-page-layer:has([data-pc140-viewport-loader="true"]) .pc128-shell{
  pointer-events:none;
}
.pc128-page-layer:has([data-pc140-viewport-loader="true"]) .pc128-shell img{
  opacity:1;
}


/* v142: one canonical refresh pattern for Home + every new page */
:root{--pc142-loader-bottom-offset:86px}
.pc135-transition-stage[data-pc140-viewport-loader="true"],
.pc142-refresh-indicator{
  position:fixed!important;
  z-index:205!important;
  inset:0!important;
  left:0!important;
  top:0!important;
  width:100vw!important;
  height:100dvh!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  padding:0 0 var(--pc142-loader-bottom-offset)!important;
  transform:none!important;
  pointer-events:none!important;
}
.pc135-transition-stage[data-pc140-viewport-loader="true"] .pc135-transition-spinner,
.pc142-refresh-indicator .pc138-pull-spinner{
  width:38px!important;
  height:38px!important;
  box-sizing:border-box!important;
  border:2px solid rgba(102,89,255,.24)!important;
  border-top-color:#4fdcff!important;
  border-right-color:#d84cff!important;
  border-radius:50%!important;
  background:radial-gradient(circle,rgba(59,69,180,.12),transparent 66%)!important;
  box-shadow:0 0 30px rgba(77,82,255,.12)!important;
}
.pc142-refresh-indicator{
  opacity:0!important;
  visibility:hidden!important;
}
.pc142-refresh-indicator.is-pulling,
.pc142-refresh-indicator.is-refreshing{
  opacity:1!important;
  visibility:visible!important;
}
.pc142-refresh-indicator .pc138-pull-spinner{
  opacity:1!important;
  animation:pc128Spin .78s linear infinite!important;
  transform:none!important;
}
.pc142-refresh-indicator.is-ready .pc138-pull-spinner{
  box-shadow:0 0 30px rgba(77,82,255,.12)!important;
}
.pc128-page-layer{
  overscroll-behavior-x:none!important;
  overscroll-behavior-y:none!important;
}
html.pc142-pull-active,
html.pc142-pull-active body{
  overscroll-behavior:none!important;
}


/* v143: Coach CTA follows Pro -> create -> open states */
.pc143-coach-actions{margin-top:12px!important}
.pc143-coach-cta{
  position:relative;isolation:isolate;min-height:54px!important;width:100%!important;overflow:hidden;
  justify-content:flex-start!important;gap:10px!important;padding:0 14px!important;
  border-color:rgba(92,221,255,.9)!important;
  background:linear-gradient(112deg,#11d8ea 0%,#337eff 35%,#8e45ff 68%,#ee39df 100%)!important;
  box-shadow:0 12px 30px rgba(72,69,255,.32),0 0 24px rgba(93,69,255,.18),inset 0 1px 0 rgba(255,255,255,.2)!important;
}
.pc143-coach-cta::before{content:"";position:absolute;z-index:-1;inset:-70% 48% -70% -18%;transform:rotate(16deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.24),transparent);pointer-events:none}
.pc143-coach-cta .pc143-coach-cta-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);border-radius:10px;background:rgba(5,11,40,.2);box-shadow:inset 0 0 14px rgba(255,255,255,.08)}
.pc143-coach-cta .pc143-coach-cta-icon svg{width:19px;height:19px}
.pc143-coach-cta[data-coach-state="upgrade"] .pc143-coach-cta-icon svg{fill:rgba(255,232,112,.35);stroke:#fff0a0}
.pc143-coach-cta>span{min-width:0;flex:1;text-align:center;font-size:13px;letter-spacing:.01em}
.pc143-coach-cta .pc143-coach-cta-arrow{width:22px;height:30px;flex:0 0 22px;display:grid;place-items:center}
.pc143-coach-cta .pc143-coach-cta-arrow svg{width:17px;height:17px}
.pc143-coach-cta:active{transform:translateY(1px);filter:brightness(1.05)}
.pc143-coach-cta:disabled{opacity:.58!important;filter:saturate(.7)}
.pc143-coach-cta-status{min-height:12px;margin:-5px 4px 0;text-align:center;color:#7f91c6;font-size:9px;line-height:1.35}
.pc143-coach-cta-status:empty{display:none}
.pc143-coach-cta-status[data-tone="success"]{color:#7ce8c6}
.pc143-coach-cta-status[data-tone="error"]{color:#ff8ca0}


/* v144: full Coach dashboard on real v97-v105 data */
.pc144-coach-continue,.pc144-progress,.pc144-today,.pc144-recommendations{
  margin-top:12px;border:1px solid rgba(62,94,210,.52);border-radius:19px;
  background:linear-gradient(150deg,rgba(10,19,55,.94),rgba(8,11,37,.97) 58%,rgba(28,9,62,.9));
  box-shadow:0 14px 38px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)
}
.pc144-coach-continue{padding:14px;display:grid;gap:11px;overflow:hidden;position:relative}
.pc144-coach-continue::after{content:"";position:absolute;width:160px;height:160px;right:-70px;top:-95px;border-radius:50%;background:radial-gradient(circle,rgba(114,57,255,.24),transparent 68%);pointer-events:none}
.pc144-coach-continue>div:first-child{display:grid;gap:4px}
.pc144-coach-continue>div>strong{font-size:18px;line-height:1.15;color:#fff}
.pc144-coach-continue>div>p{margin:0;color:#98a8d2;font-size:11px;line-height:1.4}
.pc144-coach-continue .pc143-coach-cta{min-height:44px!important}
.pc144-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pc144-section-head>div{display:grid;gap:3px}
.pc144-section-head span{color:#8294c4;font-size:8px;font-weight:900;letter-spacing:.12em}
.pc144-section-head strong{font-size:14px;color:#f6f7ff}
.pc144-section-head>b{padding:5px 8px;border:1px solid rgba(135,90,255,.35);border-radius:999px;background:rgba(72,37,133,.34);color:#cbbaff;font-size:9px}
.pc144-progress{padding:13px}
.pc144-progress-body{display:grid;grid-template-columns:82px 1fr;gap:12px;align-items:center;margin-top:10px}
.pc144-cycle{--pc144-cycle:0;width:78px;height:78px;border-radius:50%;display:grid;place-items:center;
  background:conic-gradient(#45dff2 calc(var(--pc144-cycle) * 1%),#7357ff calc(var(--pc144-cycle) * 1%),rgba(62,71,139,.18) 0);
  box-shadow:0 0 22px rgba(74,91,255,.12)}
.pc144-cycle::before{content:"";grid-area:1/1;width:64px;height:64px;border-radius:50%;background:#0a1030;border:1px solid rgba(74,90,185,.28)}
.pc144-cycle>div{grid-area:1/1;z-index:1;text-align:center;display:grid}
.pc144-cycle b{font-size:15px;color:#fff}
.pc144-cycle small{font-size:8px;color:#7183b5}
.pc144-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.pc144-stat{min-width:0;padding:8px;border:1px solid rgba(71,83,170,.25);border-radius:11px;background:rgba(15,22,59,.55);display:grid;gap:2px}
.pc144-stat strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f7f7ff;font-size:12px}
.pc144-stat small{color:#7184b6;font-size:7.5px;line-height:1.2}
.pc144-focus-line{display:flex;gap:8px;align-items:flex-start;margin-top:10px;padding:9px 10px;border:1px solid rgba(105,77,236,.28);border-radius:12px;background:rgba(37,26,94,.24)}
.pc144-focus-line>span{width:24px;height:24px;display:grid;place-items:center;color:#e0bbff}
.pc144-focus-line svg{width:16px;height:16px}
.pc144-focus-line p{margin:0;color:#aab8dd;font-size:9px;line-height:1.45}
.pc144-focus-line b{color:#dedfff}
.pc144-today{padding:13px}
.pc144-today-task{margin:11px 0 0;color:#f7f8ff;font-size:13px;font-weight:760;line-height:1.45}
.pc144-today-focus{display:flex;gap:7px;align-items:flex-start;margin:8px 0 0;padding:8px;border-radius:10px;background:rgba(35,42,95,.44);color:#9fafda;font-size:9px;line-height:1.4}
.pc144-today-focus svg{width:16px;height:16px;flex:0 0 16px;stroke:#7edfff}
.pc144-today-focus b{color:#dce6ff}
.pc144-today-meta{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0}
.pc144-today-meta span{padding:4px 7px;border:1px solid rgba(69,86,172,.28);border-radius:999px;background:rgba(10,16,48,.6);color:#8192bf;font-size:8px}
.pc144-today .pc143-coach-cta{min-height:42px!important}
.pc144-recommendations{padding:13px}
.pc144-recommendation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}
.pc144-recommendation{min-width:0;padding:9px 8px;border:1px solid rgba(68,81,169,.28);border-radius:12px;background:rgba(12,19,53,.62);display:grid;gap:7px}
.pc144-recommendation>i{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,rgba(41,89,211,.46),rgba(112,45,197,.38));color:#8adfff}
.pc144-recommendation svg{width:16px;height:16px}
.pc144-recommendation div{min-width:0}
.pc144-recommendation strong{display:block;color:#f3f4ff;font-size:9px;line-height:1.25}
.pc144-recommendation p{margin:4px 0 0;color:#788bbd;font-size:7.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.pc144-task-panel{margin-top:12px!important}
.pc144-task-list .pc144-task small{max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc144-open-chat{margin-top:12px!important}
.pc144-access-ended{margin-top:10px;display:flex;gap:9px;align-items:center;padding:10px 12px;border:1px solid rgba(234,184,66,.3);border-radius:14px;background:rgba(91,61,12,.18)}
.pc144-access-ended>svg{width:20px;height:20px;stroke:#ffe485;fill:rgba(255,214,75,.16)}
.pc144-access-ended span{display:grid;gap:2px}
.pc144-access-ended b{color:#fff2b6;font-size:10px}
.pc144-access-ended small{color:#b6a97e;font-size:8px;line-height:1.35}
@media(max-width:370px){
  .pc144-progress-body{grid-template-columns:72px 1fr;gap:9px}.pc144-cycle{width:68px;height:68px}.pc144-cycle::before{width:56px;height:56px}
  .pc144-recommendation-grid{grid-template-columns:1fr}.pc144-recommendation{grid-template-columns:28px 1fr;align-items:start}
}


/* v145: larger Coach typography, shorter labels and solid icon-inline actions */
.pc129-coach-hero .pc128-hero p{
  color:#aab9e3;
  font-size:16px!important;
  line-height:1.32!important;
  font-weight:720!important;
  letter-spacing:-.012em;
}
.pc144-coach-continue>div>strong,
.pc144-section-head strong{
  font-size:18px!important;
  line-height:1.14!important;
  font-weight:850!important;
  letter-spacing:-.025em!important;
  color:#fff!important;
}
.pc144-coach-continue>div>p{
  color:#b5c0df!important;
  font-size:12.5px!important;
  line-height:1.4!important;
  font-weight:620!important;
}
.pc144-section-head span{
  font-size:8.8px!important;
  line-height:1.2!important;
}
.pc144-cycle b{
  font-size:19px!important;
  line-height:1!important;
  font-weight:900!important;
  letter-spacing:-.025em!important;
}
.pc144-cycle small{
  margin-top:3px;
  font-size:9px!important;
  font-weight:700!important;
}
.pc144-stat{
  min-height:51px;
  justify-content:center;
  padding:9px 10px!important;
}
.pc144-stat strong{
  font-size:17px!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-.025em!important;
}
.pc144-stat small{
  margin-top:3px;
  color:#8fa1cf!important;
  font-size:9px!important;
  line-height:1.18!important;
  font-weight:650!important;
}
.pc144-focus-line p{
  font-size:10.5px!important;
  line-height:1.42!important;
}
.pc144-today-task{
  font-size:14px!important;
  line-height:1.46!important;
  font-weight:760!important;
}
.pc144-today-focus{
  font-size:10.5px!important;
  line-height:1.42!important;
}
.pc144-today-meta span{
  font-size:9px!important;
  font-weight:700!important;
}
.pc144-recommendation{
  padding:10px 9px!important;
}
.pc144-recommendation strong{
  font-size:11.5px!important;
  line-height:1.18!important;
  font-weight:820!important;
  letter-spacing:-.01em;
}
.pc144-recommendation p{
  margin-top:5px!important;
  color:#93a3cf!important;
  font-size:9px!important;
  line-height:1.38!important;
  -webkit-line-clamp:4;
}
.pc144-task-list .pc144-task b{
  font-size:12px!important;
}
.pc144-task-list .pc144-task small{
  font-size:9.5px!important;
}

/* Dense, opaque Coach actions: icon sits directly beside the label. */
.pc143-coach-cta{
  min-height:50px!important;
  justify-content:center!important;
  gap:8px!important;
  padding:0 46px 0 16px!important;
  border:0!important;
  outline:0!important;
  background:linear-gradient(108deg,#285be7 0%,#514ee9 46%,#7c3fe5 100%)!important;
  box-shadow:0 12px 28px rgba(54,52,194,.34),inset 0 1px 0 rgba(255,255,255,.12)!important;
}
.pc143-coach-cta::before{display:none!important}
.pc143-coach-cta .pc143-coach-cta-icon{
  width:20px!important;
  height:20px!important;
  flex:0 0 20px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#fff!important;
}
.pc143-coach-cta .pc143-coach-cta-icon svg{
  width:19px!important;
  height:19px!important;
  stroke:#fff!important;
  fill:none;
}
.pc143-coach-cta[data-coach-state="upgrade"] .pc143-coach-cta-icon svg{
  fill:#ffe970!important;
  stroke:#ffe970!important;
}
.pc143-coach-cta>span{
  min-width:0!important;
  flex:0 1 auto!important;
  text-align:left!important;
  font-size:13px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:.005em!important;
}
.pc143-coach-cta .pc143-coach-cta-arrow{
  position:absolute!important;
  right:14px!important;
  top:50%!important;
  width:20px!important;
  height:20px!important;
  transform:translateY(-50%)!important;
}
.pc143-coach-cta .pc143-coach-cta-arrow svg{
  width:16px!important;
  height:16px!important;
  stroke:rgba(255,255,255,.85)!important;
}
.pc144-coach-continue .pc143-coach-cta,
.pc144-today .pc143-coach-cta{
  min-height:46px!important;
}
@media(max-width:370px){
  .pc129-coach-hero .pc128-hero p{font-size:15px!important}
  .pc144-coach-continue>div>strong,.pc144-section-head strong{font-size:17px!important}
  .pc144-stat strong{font-size:16px!important}
  .pc144-recommendation strong{font-size:11px!important}
}


/* v156 compact Coach dashboard + sheets */
.pc156-coach-hero .pc129-coach-art{animation:none!important}
.pc156-coach-state-art{opacity:1!important;animation:none!important;transform:none!important}
.pc156-motivation{width:100%;margin-top:11px;padding:11px 12px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid rgba(154,112,255,.34);border-radius:16px;background:linear-gradient(120deg,rgba(51,36,123,.52),rgba(18,27,73,.7) 54%,rgba(12,17,46,.82));color:#fff;text-align:left;box-shadow:0 12px 30px rgba(0,0,0,.15)}
.pc156-motivation>i{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,rgba(255,200,66,.26),rgba(123,67,255,.28));color:#ffe58a}
.pc156-motivation>i svg{width:21px;height:21px}
.pc156-motivation>span{min-width:0;display:grid;gap:3px}.pc156-motivation b{font-size:12px;line-height:1.2}.pc156-motivation small{color:#9caad2;font-size:8.5px;line-height:1.3}
.pc156-motivation em{display:flex;align-items:center;gap:3px;color:#b9c8ff;font-size:8px;font-style:normal;white-space:nowrap}.pc156-motivation em svg{width:14px;height:14px}
.pc156-progress-card,.pc156-today,.pc156-recommendations,.pc156-task-hub{margin-top:11px;padding:13px;border:1px solid rgba(66,92,205,.48);border-radius:19px;background:linear-gradient(150deg,rgba(9,18,53,.96),rgba(8,11,36,.98) 60%,rgba(29,9,61,.91));box-shadow:0 14px 38px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)}
.pc156-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.pc156-card-head>div{display:grid;gap:3px}.pc156-card-head span{color:#8496c7;font-size:8px;font-weight:900;letter-spacing:.13em}.pc156-card-head strong{color:#fff;font-size:17px;line-height:1.1;letter-spacing:-.02em}
.pc156-card-head>button{width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(104,122,226,.24);border-radius:10px;background:rgba(26,35,86,.45);color:#b6c6ff}.pc156-card-head>button svg{width:16px;height:16px}
.pc156-card-head>em{padding:5px 8px;border:1px solid rgba(145,88,255,.35);border-radius:999px;background:rgba(75,37,138,.34);color:#cbbaff;font-size:8px;font-style:normal}
.pc156-progress-main{display:grid;grid-template-columns:82px minmax(0,1fr);align-items:center;gap:11px;margin-top:11px}.pc156-cycle{width:78px;height:78px}.pc156-progress-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}.pc156-progress-stat{min-width:0;padding:9px 8px;border:1px solid rgba(76,92,187,.25);border-radius:11px;background:rgba(14,22,59,.58);display:grid;gap:2px}.pc156-progress-stat b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:15px;line-height:1.05}.pc156-progress-stat small{color:#8295c7;font-size:8px}
.pc156-focus{display:flex;align-items:flex-start;gap:8px;margin-top:9px;padding:9px 10px;border:1px solid rgba(108,78,235,.27);border-radius:12px;background:rgba(38,25,94,.25)}.pc156-focus>svg{width:17px;height:17px;flex:0 0 17px;color:#dcbcff}.pc156-focus span{min-width:0;display:grid;gap:2px}.pc156-focus b{color:#dfe5ff;font-size:9px}.pc156-focus small{color:#96a7d3;font-size:9px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pc156-progress-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.pc156-progress-actions button{min-height:37px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(91,115,232,.25);border-radius:11px;background:rgba(27,37,93,.46);color:#dce5ff;font-size:9px;font-weight:800}.pc156-progress-actions button:last-child{background:linear-gradient(115deg,rgba(28,178,219,.42),rgba(93,62,223,.48))}.pc156-progress-actions svg{width:15px;height:15px}
.pc156-today-body{width:100%;margin-top:10px;padding:11px 10px;display:flex;align-items:center;gap:10px;border:1px solid rgba(72,88,178,.25);border-radius:13px;background:rgba(13,20,55,.58);color:#fff;text-align:left}.pc156-today-body>div{min-width:0;display:grid;gap:5px;flex:1}.pc156-today-body b{font-size:11.5px;line-height:1.38;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pc156-today-body small{color:#91a2cf;font-size:8.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc156-today-body>svg{width:17px;height:17px;color:#aabaff}
.pc156-today-meta{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.pc156-today-meta span{padding:4px 7px;border:1px solid rgba(75,91,177,.25);border-radius:999px;background:rgba(9,16,48,.62);color:#8597c6;font-size:8px}
.pc156-recommendations .pc156-rec-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.pc156-rec-grid article{min-width:0;padding:9px;border:1px solid rgba(71,84,174,.26);border-radius:12px;background:rgba(12,19,53,.63)}.pc156-rec-grid i{width:27px;height:27px;display:grid;place-items:center;margin-bottom:7px;border-radius:9px;background:linear-gradient(145deg,rgba(38,93,216,.44),rgba(115,43,196,.36));color:#91e5ff}.pc156-rec-grid svg{width:16px;height:16px}.pc156-rec-grid b{display:block;color:#f5f6ff;font-size:10px}.pc156-rec-grid p{margin:5px 0 0;color:#8294c4;font-size:8px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pc156-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px;padding:4px;border:1px solid rgba(69,86,178,.22);border-radius:12px;background:rgba(7,12,36,.55)}.pc156-tabs button{min-height:32px;border:0;border-radius:9px;background:transparent;color:#8294c4;font-size:9px;font-weight:800}.pc156-tabs button.is-active{background:linear-gradient(120deg,rgba(33,103,218,.52),rgba(105,54,203,.48));color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.pc156-tab-body{margin-top:9px}.pc156-stage-grid,.pc156-task-feature{display:grid;gap:7px}.pc156-stage{width:100%;min-height:52px;padding:9px 10px;display:flex;align-items:center;gap:8px;border:1px solid rgba(70,85,173,.24);border-radius:12px;background:rgba(12,19,51,.54);color:#fff;text-align:left}.pc156-stage>span{min-width:0;display:grid;grid-template-columns:24px 1fr;align-items:center;column-gap:8px;flex:1}.pc156-stage i{grid-row:1/3;width:24px;height:24px;display:grid;place-items:center;border-radius:8px;background:rgba(91,68,197,.26);color:#bfcaff;font-size:9px;font-style:normal;font-weight:900}.pc156-stage b{font-size:10px}.pc156-stage small{color:#7e90bf;font-size:8px}.pc156-stage>svg{width:15px;height:15px;color:#8fa3da}.pc156-stage.is-current{border-color:rgba(74,161,255,.42);background:linear-gradient(120deg,rgba(20,68,141,.42),rgba(58,36,124,.38))}.pc156-stage.is-done i{background:rgba(36,153,119,.22);color:#83e5c2}
.pc156-next-label{margin:3px 2px;color:#7082b3;font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.pc156-plan-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding:2px}.pc156-plan-head>div{min-width:0;display:grid;gap:2px}.pc156-plan-head b{color:#fff;font-size:11px}.pc156-plan-head small{color:#7f91c2;font-size:8px}.pc156-plan-head em{color:#c0b6ff;font-size:10px;font-style:normal;font-weight:900}
.pc156-history-list{display:grid;gap:7px}.pc156-history-list>button{width:100%;min-height:55px;padding:9px 10px;display:flex;align-items:center;gap:8px;border:1px solid rgba(72,87,177,.24);border-radius:12px;background:rgba(12,19,51,.54);color:#fff;text-align:left}.pc156-history-list span{min-width:0;display:grid;gap:3px;flex:1}.pc156-history-list b{font-size:10px}.pc156-history-list small{color:#7d90bf;font-size:8px}.pc156-history-list em{color:#b9afff;font-size:9px;font-style:normal}.pc156-history-list svg{width:15px;height:15px;color:#92a7df}
.pc156-sheet-backdrop{position:fixed;z-index:980;inset:0;border:0;background:rgba(1,3,12,.62);backdrop-filter:blur(4px)}.pc156-sheet{position:fixed;z-index:981;left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));max-height:min(76dvh,650px);overflow:auto;padding:10px 13px 15px;border:1px solid rgba(82,103,224,.42);border-radius:24px;background:linear-gradient(160deg,rgba(10,18,51,.985),rgba(8,10,31,.99) 60%,rgba(38,10,65,.98));box-shadow:0 -22px 70px rgba(0,0,0,.48);color:#fff}.pc156-sheet[hidden],.pc156-sheet-backdrop[hidden]{display:none!important}.pc156-sheet-grab{width:38px;height:4px;margin:1px auto 10px;border-radius:999px;background:rgba(164,177,220,.25)}.pc156-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.pc156-sheet-head>div{display:grid;gap:3px}.pc156-sheet-head span{color:#8497c9;font-size:8px;font-weight:900;letter-spacing:.13em}.pc156-sheet-head strong{font-size:18px;line-height:1.1}.pc156-sheet-head>button{width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(96,116,220,.25);border-radius:11px;background:rgba(25,34,82,.46);color:#c2cdf4}.pc156-sheet-head svg{width:17px;height:17px}
.pc156-progress-hero{margin-top:13px;padding:13px;display:flex;align-items:center;gap:12px;border:1px solid rgba(177,122,255,.3);border-radius:16px;background:linear-gradient(120deg,rgba(91,45,168,.34),rgba(22,44,111,.42))}.pc156-progress-hero>svg{width:36px;height:36px;color:#ffe17a}.pc156-progress-hero>div{display:grid}.pc156-progress-hero b{font-size:26px;line-height:1}.pc156-progress-hero small{margin-top:4px;color:#9eadd5;font-size:9px}
.pc156-sheet-metrics{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.pc156-sheet-metrics>div{padding:10px;border:1px solid rgba(73,88,179,.24);border-radius:12px;background:rgba(13,21,57,.54);display:grid;gap:3px}.pc156-sheet-metrics b{font-size:15px}.pc156-sheet-metrics small{color:#8194c4;font-size:8px}
.pc156-sheet-focus{display:flex;gap:9px;margin-top:9px;padding:10px;border:1px solid rgba(104,75,230,.26);border-radius:13px;background:rgba(39,25,92,.24)}.pc156-sheet-focus>span{width:26px;height:26px;display:grid;place-items:center;color:#d9baff}.pc156-sheet-focus svg{width:17px;height:17px}.pc156-sheet-focus>div{min-width:0}.pc156-sheet-focus b{font-size:9px}.pc156-sheet-focus p{margin:4px 0 0;color:#9badd6;font-size:9px;line-height:1.4}
.pc156-share-progress,.pc156-sheet-primary{width:100%;min-height:48px;margin-top:11px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:14px;background:linear-gradient(105deg,#19cbe7 0%,#3976f4 45%,#9b43ef 100%);color:#fff;font-size:11px;font-weight:900;box-shadow:0 12px 30px rgba(60,69,207,.27)}.pc156-share-progress svg,.pc156-sheet-primary svg{width:18px;height:18px}.pc156-share-status{min-height:12px;margin:7px 2px 0;text-align:center;color:#8ea1d1;font-size:8px}
.pc156-task-detail{margin-top:12px}.pc156-task-state{display:inline-flex;padding:4px 7px;border:1px solid rgba(105,88,215,.28);border-radius:999px;background:rgba(55,37,121,.26);color:#c8bcff;font-size:8px}.pc156-task-detail>p{margin:10px 0 0;color:#e7ebff;font-size:11px;line-height:1.5}.pc156-review{margin-top:8px;padding:10px;border:1px solid rgba(76,92,184,.24);border-radius:12px;background:rgba(12,20,55,.54)}.pc156-review.is-good{border-color:rgba(51,189,146,.24);background:rgba(20,91,71,.16)}.pc156-review b{font-size:9px}.pc156-review p{margin:4px 0 0;color:#98a9d2;font-size:9px;line-height:1.4}.pc156-sheet-task-list{display:grid;gap:7px;margin-top:12px}
html.pc156-sheet-open .pc128-page-layer{overflow:hidden}
.pc156-empty-coach{margin-top:10px}
@media(max-width:370px){.pc156-rec-grid{grid-template-columns:1fr!important}.pc156-progress-main{grid-template-columns:72px minmax(0,1fr)}.pc156-cycle{width:68px;height:68px}.pc156-motivation{grid-template-columns:34px minmax(0,1fr)}.pc156-motivation em{display:none}}


/* v157 Coach trophy card polish */
.pc157-motivation{
  position:relative!important;
  min-height:132px!important;
  padding:14px 14px 14px 126px!important;
  display:flex!important;
  align-items:stretch!important;
  overflow:hidden;
  border-color:rgba(83,128,255,.48)!important;
  border-radius:20px!important;
  background:
    radial-gradient(circle at 14% 46%,rgba(15,207,244,.16),transparent 32%),
    radial-gradient(circle at 92% 18%,rgba(210,48,255,.16),transparent 32%),
    linear-gradient(120deg,rgba(16,30,83,.92),rgba(18,20,61,.96) 58%,rgba(40,15,79,.94))!important;
  box-shadow:0 16px 42px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035)!important
}
.pc157-motivation::after{
  content:"";position:absolute;left:-36px;bottom:-82px;width:210px;height:210px;border-radius:50%;
  background:radial-gradient(circle,rgba(51,161,255,.19),rgba(118,55,255,.08) 48%,transparent 72%);
  pointer-events:none
}
.pc157-motivation-art{
  position:absolute;z-index:1;left:7px;top:50%;width:112px;height:112px;transform:translateY(-50%);
  display:grid;place-items:center;border:0;background:transparent;padding:0
}
.pc157-motivation-art img{display:block;width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 10px 22px rgba(34,86,255,.28))}
.pc157-motivation-copy{position:relative;z-index:2;min-width:0;flex:1;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:9px}
.pc157-motivation-main{width:100%;padding:0;border:0;background:transparent;color:#fff;text-align:left;display:grid;gap:4px}
.pc157-motivation-main>span{display:flex;align-items:center;justify-content:flex-end;gap:3px;color:#9eb8ff;font-size:8px;font-weight:900;letter-spacing:.08em}
.pc157-motivation-main>span svg{width:13px;height:13px}
.pc157-motivation-main>b{font-size:14px;line-height:1.2;font-weight:900;letter-spacing:-.015em}
.pc157-motivation-main>small{color:#9aaad1;font-size:9px;line-height:1.35}
.pc157-motivation-share{
  align-self:flex-start;min-height:34px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:0;border-radius:10px;background:linear-gradient(105deg,#17cde8 0%,#3976f1 48%,#8d43e8 100%);
  color:#fff;font-size:9px;font-weight:900;box-shadow:0 8px 20px rgba(54,76,220,.24)
}
.pc157-motivation-share svg{width:15px;height:15px}
.pc157-progress-head{position:relative;min-height:54px;padding-right:70px}
.pc157-progress-head>div{min-width:0}
.pc157-progress-trophy{
  position:absolute;right:-4px;top:-12px;width:68px!important;height:68px!important;
  display:grid!important;place-items:center!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;padding:0!important
}
.pc157-progress-trophy img{display:block;width:66px;height:66px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(47,80,255,.24))}
.pc157-progress-card{overflow:hidden}
@media(max-width:370px){
  .pc157-motivation{min-height:124px!important;padding-left:112px!important}
  .pc157-motivation-art{left:5px;width:100px;height:100px}.pc157-motivation-art img{width:96px;height:96px}
  .pc157-motivation-main>b{font-size:13px}
  .pc157-progress-head{padding-right:60px}.pc157-progress-trophy{width:60px!important;height:60px!important}.pc157-progress-trophy img{width:58px;height:58px}
}


/* v159 program switching + button hierarchy + dock clearance */
:root{
  --pc159-major:linear-gradient(110deg,#15cce8 0%,#347cf5 46%,#8d43ec 100%);
  --pc159-action:linear-gradient(110deg,#2f73f4 0%,#5b55ef 48%,#9539ea 100%);
}
.pc128-page-layer{
  --pc159-major:linear-gradient(110deg,#15cce8 0%,#347cf5 46%,#8d43ec 100%);
  --pc159-action:linear-gradient(110deg,#2f73f4 0%,#5b55ef 48%,#9539ea 100%);
  padding-bottom:calc(152px + max(16px,env(safe-area-inset-bottom,0px)))!important;
  scroll-padding-bottom:calc(152px + max(16px,env(safe-area-inset-bottom,0px)))!important;
}
.pc128-shell{padding-bottom:8px}
.pc159-program-head{min-height:38px!important;padding-right:42px!important}
.pc159-program-next{
  position:absolute;right:0;top:1px;width:34px!important;height:34px!important;
  border:1px solid rgba(104,122,226,.28)!important;border-radius:11px!important;
  background:rgba(25,34,82,.5)!important;color:#c8d4ff!important;box-shadow:none!important
}
.pc159-program-next svg{width:17px!important;height:17px!important}
.pc159-program-next:disabled{opacity:.32!important}
.pc159-program-status{min-height:12px;margin:7px 2px -1px;color:#8799c8;font-size:8px;line-height:1.35;text-align:center}
.pc159-program-status[data-tone="error"]{color:#ff8ca0}
.pc159-program-actions button{background:rgba(22,29,72,.68)!important;border-color:rgba(91,115,232,.28)!important;color:#dce5ff!important}
.pc159-program-actions button:last-child{
  background:linear-gradient(110deg,rgba(46,105,236,.74),rgba(104,59,220,.78))!important;
  border-color:rgba(95,118,245,.38)!important;color:#fff!important
}
.pc159-program-actions button:disabled{opacity:.38!important}

/* Major CTA: camera, payment/premium and share. Keep geometry intact; only unify visual priority. */
.pc143-coach-cta:not([data-coach-state="training"]),
.pc128-dock-camera,
.pc156-share-progress,
.pc157-motivation-share,
.pc128-pro-card>.pc128-btn.is-primary,
.pc132-token-actions .pc128-btn.is-primary,
.pro-button,
.plan-option{
  background:var(--pc159-major)!important;
  border-color:rgba(76,202,255,.7)!important;
  box-shadow:0 10px 26px rgba(63,73,222,.26),inset 0 1px 0 rgba(255,255,255,.16)!important
}

/* Start/create actions: calmer blue-violet fill, separate from purchase/share CTA. */
.pc143-coach-cta[data-coach-state="training"],
.pc156-sheet-primary{
  background:var(--pc159-action)!important;
  border-color:rgba(104,111,245,.46)!important;
  box-shadow:0 10px 24px rgba(78,65,214,.23),inset 0 1px 0 rgba(255,255,255,.12)!important
}

/* Compact 2–3 button rows stay compact and use the restrained action fill. */
.pc130-save,
.pc132-ai-result-actions button:last-child{
  background:linear-gradient(110deg,#315fd8 0%,#6650da 55%,#8b42d6 100%)!important;
  border-color:rgba(95,111,220,.46)!important;
  box-shadow:none!important
}


/* v187 · per-user Coach media preferences */
.pc187-settings-panel{overflow:hidden}
.pc187-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pc187-mode-grid button,.pc187-voice-grid button{min-width:0;min-height:70px;padding:11px 12px;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);color:inherit;text-align:left;display:grid;align-content:center;gap:4px}
.pc187-mode-grid button:last-child:nth-child(odd){grid-column:1/-1}
.pc187-mode-grid button strong,.pc187-voice-grid button strong{font-size:12px;font-weight:800;color:#f4f0ff}
.pc187-mode-grid button small,.pc187-voice-grid button small{font-size:9px;line-height:1.35;color:#817a90}
.pc187-mode-grid button.is-selected,.pc187-voice-grid button.is-selected{border-color:rgba(128,91,255,.58);background:linear-gradient(145deg,rgba(100,65,225,.19),rgba(93,48,180,.10));box-shadow:inset 0 0 0 1px rgba(156,124,255,.08)}
.pc187-mode-grid button.is-selected strong,.pc187-voice-grid button.is-selected strong{color:#fff}
.pc187-voice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.pc187-voice-grid button{min-height:58px}
.pc187-cost-note{margin:12px 0 92px;padding:13px 14px;display:flex;gap:11px;align-items:flex-start;border:1px solid rgba(124,97,255,.18);border-radius:16px;background:rgba(85,58,176,.07)}
.pc187-cost-note>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(111,77,238,.12);color:#c7baff;flex:0 0 auto}
.pc187-cost-note>span svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc187-cost-note div{display:grid;gap:3px}
.pc187-cost-note strong{font-size:11px;color:#eee9fa}
.pc187-cost-note small{font-size:9px;line-height:1.45;color:#817a8d}
.pc187-coach-settings-row .pc128-icon{color:#b79aff}
@media(max-width:390px){.pc187-mode-grid,.pc187-voice-grid{grid-template-columns:1fr}.pc187-mode-grid button:last-child:nth-child(odd){grid-column:auto}}

.pc190-voice-grid{grid-template-columns:1fr}.pc190-voice-card{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:7px;align-items:stretch;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}.pc190-voice-card.is-selected{border-color:rgba(128,91,255,.58);background:linear-gradient(145deg,rgba(100,65,225,.19),rgba(93,48,180,.10));box-shadow:inset 0 0 0 1px rgba(156,124,255,.08)}.pc190-voice-card>button[data-pc187-voice-choice]{min-height:58px;border:0;border-radius:0;background:transparent;padding:11px 12px;text-align:left;display:grid;gap:4px;color:inherit}.pc190-voice-card strong{font-size:12px;color:#f4f0ff}.pc190-voice-card small{font-size:9px;color:#817a90}.pc190-voice-play{margin:8px 8px 8px 0;border:1px solid rgba(139,108,255,.35);border-radius:11px;background:rgba(101,72,220,.15);color:#d8ccff;font-size:15px;font-weight:900}.pc190-voice-play:disabled{opacity:.45}.pc190-voice-status{grid-column:1/-1;display:block;min-height:0;padding:0 12px 8px;color:#817a90}.pc190-voice-status:empty{display:none}.pc190-voice-status.is-error{color:#f3a0ae}.pc190-voice-status button{border:0;background:none;color:#cfc1ff;padding:0;font:inherit;text-decoration:underline}.pc190-voice-card.is-selected>button[data-pc187-voice-choice] strong{color:#fff}


/* v191 · unified settings accordions + toggle rows */
.pc191-settings-stack{display:grid;gap:10px;margin:12px 0 92px}
.pc191-accordion{border:1px solid rgba(255,255,255,.08);border-radius:16px;background:rgba(255,255,255,.025);overflow:hidden}
.pc191-accordion[open]{border-color:rgba(128,91,255,.26);background:linear-gradient(180deg,rgba(80,54,160,.08),rgba(255,255,255,.02))}
.pc191-accordion>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 24px;gap:10px;align-items:center;padding:14px;cursor:pointer;user-select:none}
.pc191-accordion>summary::-webkit-details-marker{display:none}
.pc191-accordion>summary>span{display:grid;gap:3px;min-width:0}
.pc191-accordion>summary strong{font-size:12px;color:#f3effb}
.pc191-accordion>summary small{font-size:9px;line-height:1.4;color:#817a90}
.pc191-accordion>summary>b{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:800;color:#c9baff;padding:5px 8px;border:1px solid rgba(139,108,255,.24);border-radius:999px;background:rgba(111,77,238,.09)}
.pc191-chevron{width:20px;height:20px;display:grid;place-items:center;transition:transform .18s ease;color:#766f82}
.pc191-chevron svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc191-accordion[open] .pc191-chevron{transform:rotate(90deg)}
.pc191-accordion-body{padding:0 10px 10px}
.pc191-option-list{display:grid;gap:7px}
.pc191-option{width:100%;min-height:54px;border:1px solid rgba(255,255,255,.07);border-radius:12px;background:rgba(255,255,255,.018);color:inherit;padding:10px 11px;display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:10px;align-items:center;text-align:left}
.pc191-option>span{display:grid;gap:3px}
.pc191-option strong{font-size:11px;color:#eeeaf7}.pc191-option small{font-size:9px;line-height:1.35;color:#7f788c}
.pc191-option>i{width:34px;height:20px;border-radius:999px;background:rgba(255,255,255,.1);position:relative;transition:.18s}
.pc191-option>i:after{content:"";position:absolute;left:3px;top:3px;width:14px;height:14px;border-radius:50%;background:#817b8c;transition:.18s}
.pc191-option.is-selected{border-color:rgba(128,91,255,.34);background:rgba(102,70,216,.10)}
.pc191-option.is-selected>i{background:rgba(120,83,255,.72)}
.pc191-option.is-selected>i:after{left:17px;background:#fff}
.pc191-switch-row,.pc191-static-row{min-height:58px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 6px;border-bottom:1px solid rgba(255,255,255,.055)}
.pc191-switch-row:last-child,.pc191-static-row:last-child{border-bottom:0}
.pc191-switch-row>span,.pc191-static-row>span{display:grid;gap:3px}.pc191-switch-row strong,.pc191-static-row strong{font-size:11px;color:#eeeaf7}.pc191-switch-row small,.pc191-static-row small{font-size:9px;line-height:1.35;color:#7f788c}
.pc191-static-row>b{font-size:9px;color:#b8acd0}
.pc190-voice-card>button:not(.pc190-voice-play){min-height:58px;border:0;border-radius:0;background:transparent;padding:11px 12px;text-align:left;display:grid;gap:4px;color:inherit}
.pc190-voice-card.is-selected>button:not(.pc190-voice-play) strong{color:#fff}


/* v193 · AI earpiece language */
.pc193-language-field{display:grid;gap:7px;padding:4px 2px 2px}
.pc193-language-field>span{font-size:10px;font-weight:800;color:#eeeaf7}
.pc193-language-field>select{width:100%;min-height:44px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:#0b0c19;color:#f3effb;padding:0 12px;font:inherit;font-size:11px;outline:none}
.pc193-language-field>select:focus{border-color:rgba(128,91,255,.58);box-shadow:0 0 0 2px rgba(128,91,255,.09)}
.pc193-language-field>small{font-size:9px;line-height:1.4;color:#817a90}


/* v228 Tokens page: no product header, supplied coin art centered above copy */
.pc228-tokens-shell{
  gap:12px!important;
}
.pc228-tokens-shell>.pc128-header{
  display:none!important;
}
.pc228-token-hero{
  width:100%;
  display:grid;
  justify-items:center;
  align-items:start;
  gap:4px;
  padding:0 4px 10px;
  text-align:center;
}
.pc228-token-art{
  position:relative;
  width:222px;
  height:204px;
  display:grid;
  place-items:center;
  margin:0 auto -2px;
}
.pc228-token-art::before{
  content:"";
  position:absolute;
  inset:20% 10% 7%;
  border-radius:50%;
  background:radial-gradient(circle,rgba(29,213,255,.18),rgba(84,72,255,.16) 42%,rgba(229,41,255,.08) 61%,transparent 74%);
  filter:blur(15px);
  pointer-events:none;
}
.pc228-token-art img{
  position:relative;
  z-index:1;
  display:block;
  width:214px;
  height:214px;
  object-fit:contain;
  filter:drop-shadow(0 17px 28px rgba(34,55,255,.25));
}
.pc228-token-copy{
  width:min(314px,100%);
  display:grid;
  justify-items:center;
  gap:8px;
}
.pc228-token-copy h1{
  margin:0;
  color:#fff;
  font-size:clamp(31px,9vw,38px);
  line-height:.98;
  letter-spacing:-.04em;
  font-weight:900;
}
.pc228-token-copy p{
  max-width:300px;
  margin:0;
  color:#8fa4dc;
  font-size:13px;
  line-height:1.38;
}
@media(max-width:370px){
  .pc228-token-art{width:202px;height:188px}
  .pc228-token-art img{width:196px;height:196px}
  .pc228-token-copy h1{font-size:30px}
}


/* v230 Tokens scroll choreography: sticky hero recedes while account content glides over it */
.pc228-tokens-shell{
  isolation:isolate;
}
.pc228-token-hero{
  --pc230-token-progress:0;
  position:sticky;
  top:0;
  z-index:0;
  transform-origin:50% 18%;
  opacity:calc(1 - (var(--pc230-token-progress) * .98));
  transform:
    translate3d(0,calc(var(--pc230-token-progress) * -14px),0)
    scale(calc(1 - (var(--pc230-token-progress) * .055)));
  filter:
    saturate(calc(1 - (var(--pc230-token-progress) * .28)))
    blur(calc(var(--pc230-token-progress) * 2.2px));
  will-change:transform,opacity,filter;
  transition:opacity .08s linear,filter .08s linear;
  pointer-events:none;
}
.pc228-token-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:-18px;
  right:-18px;
  bottom:-26px;
  height:92px;
  opacity:calc(var(--pc230-token-progress) * .95);
  background:linear-gradient(180deg,rgba(3,5,17,0),rgba(3,5,17,.74) 52%,#030511 100%);
  pointer-events:none;
}
.pc228-tokens-shell>.pc128-balance-card,
.pc228-tokens-shell>.pc128-panel,
.pc228-tokens-shell>.pc128-stats{
  z-index:2;
}
.pc228-tokens-shell>.pc128-balance-card{
  box-shadow:
    inset 0 1px 0 rgba(105,161,255,.08),
    0 -18px 34px rgba(2,4,15,calc(var(--pc230-token-progress,0) * .28)),
    0 16px 38px rgba(0,0,0,.18);
}
.pc228-token-hero.is-token-collapsed{
  visibility:hidden;
}
@media(prefers-reduced-motion:reduce){
  .pc228-token-hero{
    transform:none;
    filter:none;
    transition:none;
  }
}


/* v231 Tokens pinned balance card: content travels underneath after the hero recedes */
.pc228-tokens-shell>.pc128-balance-card{
  position:sticky!important;
  top:10px!important;
  z-index:8!important;
  background:
    linear-gradient(145deg,rgba(10,18,50,.965),rgba(4,7,22,.975))!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
  backdrop-filter:blur(18px) saturate(1.08);
  transform:translateZ(0);
  transition:
    box-shadow .22s ease,
    border-color .22s ease,
    background-color .22s ease;
}
.pc228-tokens-shell>.pc128-panel,
.pc228-tokens-shell>.pc128-stats{
  position:relative;
  z-index:1!important;
}
.pc228-tokens-shell>.pc128-balance-card.is-token-stuck{
  border-color:rgba(67,135,255,.72);
  box-shadow:
    inset 0 1px 0 rgba(130,178,255,.11),
    0 14px 38px rgba(0,0,0,.38),
    0 34px 58px rgba(2,4,15,.34),
    0 -12px 30px rgba(4,7,22,.46)!important;
}
.pc228-tokens-shell>.pc128-balance-card.is-token-stuck::after{
  content:"";
  position:absolute;
  z-index:-1;
  left:-12px;
  right:-12px;
  bottom:-34px;
  height:42px;
  background:linear-gradient(180deg,rgba(3,5,17,.42),rgba(3,5,17,0));
  pointer-events:none;
}
@media(prefers-reduced-motion:reduce){
  .pc228-tokens-shell>.pc128-balance-card{
    transition:none;
  }
}


/* v232 Tokens: Home-like pull spring, payment card artwork and transparent finance tabs */
.pc228-tokens-shell[data-pc232-pulling="true"],
.pc228-tokens-shell[data-pc232-returning="true"]{
  transform:translate3d(0,var(--pc232-pull-offset,0px),0);
  transform-origin:50% 0;
  will-change:transform;
}
.pc228-tokens-shell[data-pc232-pulling="true"]{transition:none!important}
.pc228-tokens-shell[data-pc232-returning="true"]{transition:transform .28s cubic-bezier(.22,.86,.25,1.08)!important}

.pc228-tokens-shell>.pc128-balance-card.pc232-token-balance{
  min-height:292px;
  overflow:hidden;
  padding:17px!important;
  border-color:rgba(54,143,255,.72)!important;
  background:
    radial-gradient(circle at 88% 31%,rgba(84,42,255,.26),transparent 37%),
    radial-gradient(circle at 10% 100%,rgba(0,205,255,.08),transparent 35%),
    linear-gradient(145deg,rgba(9,20,58,.985),rgba(4,7,25,.985))!important;
  box-shadow:
    inset 0 1px 0 rgba(128,190,255,.1),
    inset 0 0 32px rgba(37,72,255,.055),
    0 18px 42px rgba(0,0,0,.22)!important;
}
.pc232-balance-head{position:relative;z-index:3;display:flex;align-items:center;gap:10px;max-width:58%}
.pc232-balance-head>div{display:grid;gap:3px}
.pc232-balance-head strong{font-size:17px;line-height:1.05}
.pc232-balance-head small{color:#8fa2d8;font-size:10px}
.pc232-balance-icon{width:42px;height:42px;border-color:rgba(94,77,255,.55);background:linear-gradient(145deg,rgba(36,91,255,.28),rgba(143,33,255,.13));box-shadow:0 0 24px rgba(48,80,255,.1),inset 0 0 16px rgba(83,58,255,.11)}
.pc232-balance-art{position:absolute;z-index:1;top:31px;right:-6px;width:178px;height:178px;display:grid;place-items:center;pointer-events:none}
.pc232-balance-art::before{content:"";position:absolute;inset:17%;border-radius:50%;background:radial-gradient(circle,rgba(18,202,255,.24),rgba(97,39,255,.22) 44%,rgba(237,37,255,.1) 62%,transparent 75%);filter:blur(13px)}
.pc232-balance-art img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 15px 22px rgba(27,49,255,.3))}
.pc232-token-balance .pc232-balance-value{position:relative;z-index:3;width:54%;margin-top:28px;gap:8px}
.pc232-token-balance .pc232-balance-value b{font-size:58px;letter-spacing:.015em}
.pc232-token-balance .pc232-balance-value span{padding-bottom:6px;font-size:11px;color:#b4bfff}
.pc232-token-balance>p{position:relative;z-index:3;width:61%;min-height:46px;margin:12px 0 0!important;color:#98a9d8!important;font-size:10.5px!important;line-height:1.42!important}
.pc232-token-actions{position:relative;z-index:4;grid-template-columns:1fr!important;margin-top:14px!important}
.pc232-token-actions .pc128-btn{min-height:49px;border-radius:16px;font-size:14px;box-shadow:0 12px 28px rgba(68,72,255,.26),0 0 22px rgba(19,202,255,.08)}
.pc232-token-actions .pc128-btn svg{width:18px;height:18px}
.pc232-pack-note{position:relative;z-index:4;display:flex!important;align-items:center;gap:7px;margin-top:9px!important;color:#7f91c7!important;font-size:9px!important}
.pc232-pack-cube{display:grid;place-items:center;color:#879bff}
.pc232-pack-cube svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.pc228-tokens-shell>.pc232-token-finance{position:relative;z-index:1;display:grid;gap:10px;padding:8px 0 118px}
.pc232-finance-kicker{color:#9aacdf;font-size:9px;font-weight:850;letter-spacing:.22em}
.pc232-token-finance h2{margin:-2px 0 3px;color:#fff;font-size:25px;line-height:1.02;letter-spacing:-.035em}
.pc232-finance-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;border:1px solid rgba(64,89,221,.48);border-radius:14px;background:rgba(8,10,36,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.pc232-finance-tabs button{min-width:0;min-height:39px;padding:0 5px;border:0;border-radius:11px;background:transparent;color:#8598d4;font:750 9.4px/1 inherit;white-space:nowrap}
.pc232-finance-tabs button.is-active{color:#fff;background:linear-gradient(110deg,#18c9ec,#3a78ff 43%,#9c43ff 72%,#e938e5);box-shadow:0 7px 17px rgba(63,75,255,.19),inset 0 1px 0 rgba(255,255,255,.13)}
.pc232-finance-panels{display:grid}
.pc232-finance-panels>[data-pc232-token-panel]{display:grid;gap:7px}
.pc232-finance-panels>[data-pc232-token-panel][hidden]{display:none!important}
.pc232-finance-row{min-height:65px;display:grid;grid-template-columns:37px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid rgba(65,111,229,.48);border-radius:14px;background:linear-gradient(145deg,rgba(10,19,53,.84),rgba(5,8,26,.86));box-shadow:inset 0 1px 0 rgba(110,160,255,.055)}
.pc232-finance-index{width:37px;height:37px;display:grid;place-items:center;border:1px solid rgba(81,91,255,.46);border-radius:11px;background:linear-gradient(145deg,rgba(41,104,255,.24),rgba(135,30,255,.16));color:#dfe5ff;font-size:13px;font-weight:900}
.pc232-finance-row>div{min-width:0;display:grid;gap:4px}
.pc232-finance-row strong{overflow:hidden;color:#f7f8ff;font-size:12px;line-height:1.12;text-overflow:ellipsis}
.pc232-finance-row small{overflow:hidden;color:#8598ca;font-size:8.7px;line-height:1.25;text-overflow:ellipsis}
.pc232-finance-row>b{max-width:93px;color:#9bc7ff;font-size:10px;line-height:1.2;text-align:right}
.pc232-finance-row.is-accent{border-color:rgba(52,184,255,.58)}
.pc232-finance-row.is-accent>b,.pc232-finance-row.is-credit>b{color:#6ee7cf}
.pc232-finance-row.is-debit>b{color:#c6a8ff}
.pc232-finance-empty{display:grid;gap:5px;padding:18px 14px;border:1px dashed rgba(87,105,208,.36);border-radius:14px;background:rgba(9,14,43,.38);text-align:center}
.pc232-finance-empty strong{font-size:12px}.pc232-finance-empty small{color:#8193c3;font-size:9px;line-height:1.4}
.pc232-finance-footnote{margin:1px 3px 0;color:#6679aa;font-size:8.5px;line-height:1.4}

.pc228-tokens-shell>.pc128-panel,
.pc228-tokens-shell>.pc128-stats{display:none!important}
.pc228-tokens-shell>.pc128-balance-card.pc232-token-balance.is-token-stuck{
  border-color:rgba(65,154,255,.82)!important;
  background:
    radial-gradient(circle at 88% 31%,rgba(84,42,255,.2),transparent 35%),
    linear-gradient(145deg,rgba(8,18,52,.985),rgba(3,6,21,.99))!important;
}
@media(max-width:370px){
  .pc232-balance-art{right:-13px;width:164px;height:164px}
  .pc232-token-balance>p{width:59%;font-size:10px!important}
  .pc232-token-balance .pc232-balance-value b{font-size:53px}
  .pc232-finance-tabs button{font-size:8.7px}
}
@media(prefers-reduced-motion:reduce){
  .pc228-tokens-shell[data-pc232-pulling="true"],
  .pc228-tokens-shell[data-pc232-returning="true"]{transition:none!important}
}


/* v234 Tokens: stacked sticky finance menu and unified typography */
.pc228-tokens-shell>.pc232-token-finance{
  z-index:2;
}
.pc232-finance-tabs{
  position:sticky;
  top:calc(18px + var(--pc234-balance-height,292px));
  z-index:6;
  background:linear-gradient(145deg,rgba(8,13,43,.985),rgba(5,7,25,.985));
  -webkit-backdrop-filter:blur(18px) saturate(1.08);
  backdrop-filter:blur(18px) saturate(1.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 10px 24px rgba(0,0,0,.24),
    0 20px 34px rgba(2,4,15,.18);
}
.pc232-finance-tabs::after{
  content:"";
  position:absolute;
  left:7px;
  right:7px;
  bottom:-12px;
  height:12px;
  background:linear-gradient(180deg,rgba(3,5,17,.36),rgba(3,5,17,0));
  pointer-events:none;
}
.pc232-balance-head strong,
.pc232-finance-row strong,
.pc232-finance-empty strong{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  letter-spacing:-.018em;
}
.pc232-balance-head strong{font-size:18px;line-height:1.08;font-weight:800}
.pc232-balance-head small{font-size:10.8px;line-height:1.25;font-weight:500}
.pc232-token-balance .pc232-balance-value span{font-size:11.5px;font-weight:800;letter-spacing:.015em}
.pc232-token-balance>p{font-size:11.4px!important;line-height:1.45!important}
.pc232-pack-note{font-size:9.8px!important;line-height:1.3}
.pc232-finance-tabs button{font-size:10.5px;font-weight:760;letter-spacing:-.012em}
.pc232-finance-row{
  min-height:70px;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:11px;
  padding:11px 12px;
}
.pc232-finance-index{
  width:40px;
  height:40px;
  font-size:14px;
}
.pc232-finance-row>div{gap:4px}
.pc232-finance-row strong{font-size:13.5px;line-height:1.14;font-weight:800}
.pc232-finance-row small{font-size:9.8px;line-height:1.32}
.pc232-finance-row>b{max-width:98px;font-size:11.3px;line-height:1.2;font-weight:800}
.pc232-finance-empty strong{font-size:13.5px;line-height:1.2;font-weight:800}
.pc232-finance-empty small{font-size:10px;line-height:1.42}
.pc232-finance-footnote{font-size:9.4px;line-height:1.45}
@media(max-width:370px){
  .pc232-balance-head strong{font-size:17px}
  .pc232-token-balance>p{font-size:10.8px!important}
  .pc232-finance-tabs button{font-size:9.7px}
  .pc232-finance-row strong{font-size:12.8px}
  .pc232-finance-row small{font-size:9.3px}
  .pc232-finance-row>b{font-size:10.6px}
}


/* v235 Tokens: no top mask, sticky snap/haptics and 3-tab finance menu */
.pc228-tokens-shell>.pc128-balance-card.pc235-sticky-snap,
.pc232-finance-tabs.pc235-sticky-snap{
  animation:pc235TokenStickySnap .24s cubic-bezier(.2,.86,.28,1.12);
}
.pc228-token-hero.pc235-hero-return .pc228-token-art{
  animation:pc235TokenHeroReturn .25s cubic-bezier(.18,.88,.26,1.12);
}
.pc232-finance-tabs.is-token-menu-stuck{
  border-color:rgba(75,111,245,.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 11px 26px rgba(0,0,0,.27),
    0 20px 34px rgba(2,4,15,.18);
}
.pc232-token-actions .pc235-token-topup{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;
  font-size:13px;
  font-weight:760;
  letter-spacing:-.012em;
}
.pc235-token-stack{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  color:#fff;
}
.pc235-token-stack svg{
  width:22px!important;
  height:22px!important;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 7px rgba(255,255,255,.18));
}
@keyframes pc235TokenStickySnap{
  0%{transform:translateZ(0) scale(1)}
  42%{transform:translate3d(0,2px,0) scale(.992)}
  72%{transform:translate3d(0,-1px,0) scale(1.003)}
  100%{transform:translateZ(0) scale(1)}
}
@keyframes pc235TokenHeroReturn{
  0%{transform:translate3d(0,-5px,0) scale(.975);opacity:.72}
  62%{transform:translate3d(0,2px,0) scale(1.012);opacity:1}
  100%{transform:translate3d(0,0,0) scale(1);opacity:1}
}
@media(max-width:370px){
  .pc232-token-actions .pc235-token-topup{font-size:12.4px}
}
@media(prefers-reduced-motion:reduce){
  .pc228-tokens-shell>.pc128-balance-card.pc235-sticky-snap,
  .pc232-finance-tabs.pc235-sticky-snap,
  .pc228-token-hero.pc235-hero-return .pc228-token-art{animation:none!important}
}


/* v236 Tokens refresh spinner stays viewport-centered while the content spring stretches */
html[data-pc128-page="tokens"] .pc128-page-layer>.pc142-refresh-indicator{
  position:fixed!important;
  inset:0!important;
  translate:none!important;
  scale:1!important;
  transform:none!important;
}


/* v237 token dock balance badge: visible only while top-up sheet is collapsed */
.pc136-global-dock [data-pc128-action="open-tokens"]{position:relative;overflow:visible!important}
.pc237-token-dock-badge{
  position:absolute;z-index:5;top:-7px;left:25px;min-width:31px;height:19px;display:inline-flex;align-items:center;justify-content:center;gap:2px;
  padding:0 6px;border:1px solid rgba(90,137,255,.62);border-radius:999px;
  background:linear-gradient(120deg,rgba(12,168,225,.96),rgba(91,76,239,.96) 58%,rgba(192,56,233,.96));
  color:#fff;box-shadow:0 5px 15px rgba(37,69,214,.28),inset 0 1px 0 rgba(255,255,255,.18);
  font:850 8px/1 Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;
  pointer-events:none;white-space:nowrap
}
.pc237-token-dock-badge[hidden]{display:none!important}
.pc237-token-dock-badge svg{width:10px!important;height:10px!important;flex:0 0 10px;fill:none;stroke:currentColor!important;stroke-width:2!important}
.pc237-token-dock-badge b{font:inherit;color:inherit}
.pc128-dock.is-compact .pc237-token-dock-badge{top:-5px;left:23px}


/* v238 commerce parity: token state badge + Pro sticky card pattern */
.pc237-token-dock-badge.is-ready{
  border-color:rgba(75,231,112,.72)!important;
  background:linear-gradient(145deg,rgba(31,116,52,.98),rgba(8,55,27,.98))!important;
  color:#a0ffae!important;
  box-shadow:0 5px 15px rgba(21,148,68,.24),0 0 16px rgba(63,236,112,.12),inset 0 1px 0 rgba(255,255,255,.14)!important
}
.pc237-token-dock-badge.is-zero{
  border-color:rgba(255,79,103,.76)!important;
  background:linear-gradient(145deg,rgba(132,34,50,.98),rgba(62,13,25,.98))!important;
  color:#ff9baa!important;
  box-shadow:0 5px 15px rgba(144,24,49,.26),0 0 16px rgba(255,72,99,.1),inset 0 1px 0 rgba(255,255,255,.11)!important
}
.pc237-token-dock-badge svg{
  width:12px!important;height:12px!important;flex-basis:12px!important;padding:1px;border:1px solid currentColor;border-radius:50%;box-sizing:border-box
}
.pc238-pro-shell{gap:12px!important;isolation:isolate}
.pc238-pro-shell>.pc128-header{display:none!important}
.pc238-pro-hero{
  --pc238-pro-progress:0;position:sticky;top:0;z-index:0;display:grid;justify-items:center;gap:2px;padding:4px 0 11px;
  transform-origin:50% 18%;opacity:calc(1 - (var(--pc238-pro-progress) * .98));
  transform:translate3d(0,calc(var(--pc238-pro-progress) * -14px),0) scale(calc(1 - (var(--pc238-pro-progress) * .055)));
  filter:saturate(calc(1 - (var(--pc238-pro-progress) * .26))) blur(calc(var(--pc238-pro-progress) * 2px));
  will-change:transform,opacity,filter;pointer-events:none
}
.pc238-pro-hero::after{
  content:"";position:absolute;z-index:-1;left:-18px;right:-18px;bottom:-24px;height:86px;
  opacity:calc(var(--pc238-pro-progress) * .95);background:linear-gradient(180deg,rgba(3,5,17,0),rgba(3,5,17,.74) 52%,#030511 100%)
}
.pc238-pro-hero.is-pro-collapsed{visibility:hidden}
.pc238-pro-art{position:relative;width:222px;height:196px;display:grid;place-items:center;margin:0 auto -7px}
.pc238-pro-art::before{
  content:"";position:absolute;inset:16%;border-radius:50%;background:radial-gradient(circle,rgba(22,208,255,.24),rgba(91,45,255,.2) 45%,rgba(235,46,255,.11) 62%,transparent 74%);filter:blur(15px)
}
.pc238-pro-art img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 17px 28px rgba(41,49,255,.26))}
.pc238-pro-copy{width:min(320px,100%);display:grid;gap:7px;text-align:center}
.pc238-pro-copy h1{margin:0;color:#fff;font-size:32px;line-height:.98;font-weight:900;letter-spacing:-.04em}
.pc238-pro-copy p{margin:0;color:#90a4db;font-size:11.2px;line-height:1.4}
.pc238-pro-card{
  position:sticky!important;top:10px!important;z-index:8!important;min-height:226px;padding:17px!important;overflow:hidden!important;
  border-color:rgba(69,126,255,.72)!important;
  background:radial-gradient(circle at 88% 30%,rgba(120,47,255,.22),transparent 37%),radial-gradient(circle at 8% 100%,rgba(0,204,255,.075),transparent 35%),linear-gradient(145deg,rgba(9,20,58,.985),rgba(4,7,25,.985))!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.08);backdrop-filter:blur(18px) saturate(1.08);
  box-shadow:inset 0 1px 0 rgba(128,190,255,.1),0 18px 42px rgba(0,0,0,.22)!important
}
.pc238-pro-card::after{display:none!important}
.pc238-pro-card-art{position:absolute!important;z-index:1!important;top:39px;right:-17px;width:162px;height:162px;display:grid;place-items:center;pointer-events:none}
.pc238-pro-card-art::before{content:"";position:absolute;inset:18%;border-radius:50%;background:radial-gradient(circle,rgba(36,202,255,.19),rgba(120,43,255,.18) 48%,transparent 74%);filter:blur(12px)}
.pc238-pro-card-art img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 12px 22px rgba(49,48,255,.24))}
.pc238-pro-card>*:not(.pc238-pro-card-art){position:relative;z-index:3}
.pc238-pro-card .pc128-pro-title{max-width:72%;align-items:center}
.pc238-pro-icon{width:42px;height:42px;color:#a99dff;border-color:rgba(103,83,255,.55);background:linear-gradient(145deg,rgba(40,94,255,.26),rgba(172,37,255,.14))}
.pc238-pro-icon svg{width:22px;height:22px}
.pc238-pro-card .pc128-pro-title strong{font-size:18px;font-weight:820;letter-spacing:-.02em}
.pc238-pro-card .pc128-pro-title small{font-size:10.4px;line-height:1.28}
.pc238-pro-card-copy{position:relative;z-index:3;width:63%;min-height:45px;margin:17px 0 0;color:#96a8d7;font-size:10.8px;line-height:1.44}
.pc238-pro-actions{position:relative;z-index:4;margin-top:15px}
.pc238-pro-actions .pc128-btn{width:100%;min-height:49px;border-radius:16px;font-size:13px;font-weight:760;letter-spacing:-.012em;box-shadow:0 12px 28px rgba(68,72,255,.26),0 0 22px rgba(19,202,255,.08)}
.pc238-pro-card.is-pro-stuck{
  border-color:rgba(83,148,255,.84)!important;
  box-shadow:inset 0 1px 0 rgba(130,178,255,.11),0 14px 38px rgba(0,0,0,.38),0 34px 58px rgba(2,4,15,.34),0 -12px 30px rgba(4,7,22,.42)!important
}
.pc238-pro-card.is-pro-stuck::before{content:"";position:absolute;z-index:-1;left:-12px;right:-12px;bottom:-34px;height:42px;background:linear-gradient(180deg,rgba(3,5,17,.42),rgba(3,5,17,0));pointer-events:none}
.pc238-pro-sticky-snap{animation:pc235TokenStickySnap .24s cubic-bezier(.2,.86,.28,1.12)}
.pc238-pro-hero-return .pc238-pro-art{animation:pc235TokenHeroReturn .25s cubic-bezier(.18,.88,.26,1.12)}
.pc238-pro-features{position:relative;z-index:1;display:grid;gap:10px;padding:8px 0 118px}
.pc238-pro-kicker{color:#9aacdf;font-size:9px;font-weight:850;letter-spacing:.22em}
.pc238-pro-features h2{margin:-2px 0 3px;color:#fff;font-size:25px;line-height:1.02;letter-spacing:-.035em}
.pc238-pro-feature-list{display:grid;gap:8px}
.pc238-pro-feature{
  min-height:70px;display:grid;grid-template-columns:40px minmax(0,1fr) auto 14px;align-items:center;gap:11px;padding:11px 12px;
  border:1px solid rgba(65,111,229,.48);border-radius:14px;background:linear-gradient(145deg,rgba(10,19,53,.84),rgba(5,8,26,.86));
  color:#fff;text-align:left;box-shadow:inset 0 1px 0 rgba(110,160,255,.055)
}
.pc238-pro-feature:disabled{cursor:default;opacity:.72}
.pc238-pro-feature.is-active:active{transform:scale(.992)}
.pc238-pro-feature-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid rgba(81,91,255,.46);border-radius:11px;background:linear-gradient(145deg,rgba(41,104,255,.24),rgba(135,30,255,.16));color:#9bc2ff}
.pc238-pro-feature-icon svg{width:21px;height:21px}
.pc238-pro-feature-copy{min-width:0;display:grid;gap:4px}
.pc238-pro-feature-copy strong{overflow:hidden;color:#f7f8ff;font-size:13.5px;line-height:1.14;font-weight:800;letter-spacing:-.018em;text-overflow:ellipsis}
.pc238-pro-feature-copy small{overflow:hidden;color:#8598ca;font-size:9.8px;line-height:1.32;text-overflow:ellipsis}
.pc238-pro-feature-state{color:#ff8799;font-size:9.5px;font-weight:800;white-space:nowrap}
.pc238-pro-feature.is-active .pc238-pro-feature-state{color:#73e8bf}
.pc238-pro-feature>svg{width:14px;height:14px;color:#91a8eb}
.pc238-pro-feature.is-locked{grid-template-columns:40px minmax(0,1fr) auto}
.pc238-pro-footnote{margin:1px 3px 0;color:#6679aa;font-size:9.4px;line-height:1.45}
html[data-pc128-page="pro"] .pc128-page-layer>.pc142-refresh-indicator{position:fixed!important;inset:0!important;translate:none!important;scale:1!important;transform:none!important}
@media(max-width:370px){
  .pc238-pro-art{width:202px;height:180px}
  .pc238-pro-card-art{right:-24px;width:150px;height:150px}
  .pc238-pro-card-copy{width:61%;font-size:10.2px}
  .pc238-pro-feature-copy strong{font-size:12.8px}
  .pc238-pro-feature-copy small{font-size:9.3px}
}
@media(prefers-reduced-motion:reduce){
  .pc238-pro-hero{transform:none;filter:none;transition:none}
  .pc238-pro-sticky-snap,.pc238-pro-hero-return .pc238-pro-art{animation:none!important}
}


/* v239 Pro: token-page geometry, state artwork and shared pull spring */
.pc238-pro-art{width:206px!important;height:176px!important;margin:0 auto 2px!important}
.pc238-pro-copy{margin-top:0!important;align-items:start!important}
.pc238-pro-copy h1{margin:0!important;text-align:center!important}
.pc238-pro-copy p{text-align:center!important}
.pc238-pro-card{min-height:292px!important;padding:17px!important}
.pc238-pro-card-art{top:58px!important;right:-10px!important;width:176px!important;height:176px!important}
.pc238-pro-card-art img{filter:grayscale(1) brightness(1.3) contrast(1.08) drop-shadow(0 14px 24px rgba(124,151,255,.18))!important}
.pc238-pro-card.is-pro-active .pc238-pro-card-art::before{
  background:radial-gradient(circle,rgba(255,184,50,.24),rgba(255,112,31,.14) 48%,transparent 75%)!important
}
.pc238-pro-card.is-pro-active .pc238-pro-card-art img{
  filter:sepia(1) saturate(4.8) hue-rotate(345deg) brightness(1.12) contrast(1.08) drop-shadow(0 14px 24px rgba(255,153,40,.22))!important
}
.pc238-pro-card-copy{width:60%!important;min-height:58px!important;margin-top:24px!important}
.pc238-pro-actions{margin-top:16px!important}
.pc238-pro-actions .pc128-btn{min-height:49px!important}
.pc238-pro-shell[data-pc232-pulling="true"]{
  transform:translate3d(0,var(--pc232-pull-offset,0px),0) scale(calc(1 + (var(--pc232-pull-progress,0) * .008)))!important;
  transform-origin:50% 0;will-change:transform
}
.pc238-pro-shell[data-pc232-returning="true"]{transition:transform .28s cubic-bezier(.22,.86,.25,1.08)!important}
@media(max-width:370px){
  .pc238-pro-art{width:190px!important;height:164px!important}
  .pc238-pro-card-art{right:-20px!important;width:164px!important;height:164px!important}
  .pc238-pro-card-copy{width:59%!important}
}


/* v240 Pro spacing parity + dock status typography */
.pc238-pro-hero{
  gap:10px!important;
  padding:6px 0 24px!important;
}
.pc238-pro-art{
  margin:0 auto 14px!important;
}
.pc238-pro-copy{
  gap:10px!important;
}
.pc238-pro-copy h1{
  margin:0!important;
}
.pc238-pro-copy p{
  margin:0!important;
}
.pc238-pro-card{
  padding:19px!important;
}
.pc238-pro-card-copy{
  margin-top:30px!important;
  min-height:62px!important;
}
.pc238-pro-actions{
  margin-top:24px!important;
}
.pc238-pro-features{
  padding-top:18px!important;
}
.pc128-dock .pc133-dock-pro .pc133-dock-label{
  font:850 8px/1 Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif!important;
  letter-spacing:0!important;
}
@media(max-width:370px){
  .pc238-pro-hero{padding-bottom:20px!important}
  .pc238-pro-art{margin-bottom:11px!important}
  .pc238-pro-card{padding:18px!important}
  .pc238-pro-card-copy{margin-top:27px!important}
  .pc238-pro-actions{margin-top:21px!important}
}


/* v241 Pro card mirrors Tokens balance-card composition */
.pc241-pro-balance{
  min-height:292px!important;
  padding:16px!important;
  display:block!important;
}
.pc241-pro-head{
  position:relative;z-index:3;
  display:flex;align-items:center;gap:10px;
  max-width:64%;
}
.pc241-pro-head>div{display:grid;gap:3px}
.pc241-pro-head strong{font-size:16px;line-height:1.08;font-weight:820;letter-spacing:-.02em}
.pc241-pro-head small{color:#8798cc;font-size:10px;line-height:1.28}
.pc241-pro-value{
  position:relative;z-index:3;
  display:flex;align-items:flex-end;gap:10px;
  margin-top:23px;
}
.pc241-pro-value b{
  font-size:46px;line-height:.85;letter-spacing:.045em;font-weight:950;
  background:linear-gradient(110deg,#3edcff,#5da7ff 35%,#bc5dff 70%,#ff3be1);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.pc241-pro-value span{
  padding-bottom:4px;color:#9cb0ec;font-size:10px;font-weight:800
}
.pc241-pro-balance .pc238-pro-card-copy{
  position:relative;z-index:3;
  width:62%!important;
  min-height:42px!important;
  margin:14px 0 0!important;
  color:#889ac9!important;
  font-size:10.6px!important;
  line-height:1.42!important;
}
.pc241-pro-balance .pc238-pro-card-art{
  top:48px!important;right:-2px!important;
  width:172px!important;height:172px!important;
  overflow:visible!important;
}
.pc241-pro-balance .pc238-pro-card-art img{
  width:100%!important;height:100%!important;
  object-fit:contain!important;object-position:center!important;
}
.pc241-pro-balance .pc238-pro-actions{
  position:relative;z-index:4;
  margin-top:18px!important;
}
.pc241-pro-balance .pc238-pro-actions .pc128-btn{
  min-height:49px!important;
}
.pc241-pro-note{
  position:relative;z-index:4;
  display:flex;align-items:center;gap:6px;
  margin-top:9px;
  color:#69789f;font-size:8.5px;line-height:1.3;
}
.pc241-pro-note>span{display:grid;place-items:center;width:13px;height:13px;color:#7f91d8}
.pc241-pro-note svg{width:13px!important;height:13px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important}
.pc241-pro-balance .pc128-status{display:none!important}
@media(max-width:370px){
  .pc241-pro-head{max-width:62%}
  .pc241-pro-value b{font-size:42px}
  .pc241-pro-balance .pc238-pro-card-art{right:-10px!important;width:160px!important;height:160px!important}
  .pc241-pro-balance .pc238-pro-card-copy{width:60%!important;font-size:10.1px!important}
}


/* v242 token dock feedback: zero persists; positive balance flashes only after spend */
.pc237-token-dock-badge.is-ready.is-transient{
  animation:pc242TokenSpendBalance 3.6s cubic-bezier(.2,.72,.24,1) both
}
@keyframes pc242TokenSpendBalance{
  0%{opacity:0;transform:translateY(3px) scale(.9)}
  10%{opacity:1;transform:translateY(0) scale(1.04)}
  18%{transform:translateY(0) scale(1)}
  78%{opacity:1}
  100%{opacity:0;transform:translateY(-2px) scale(.96)}
}
.pc237-token-dock-badge.is-zero{opacity:1!important;animation:none!important}
@media(prefers-reduced-motion:reduce){
  .pc237-token-dock-badge.is-ready.is-transient{animation:pc242TokenSpendBalanceReduced 3.6s linear both}
}
@keyframes pc242TokenSpendBalanceReduced{
  0%,82%{opacity:1}
  100%{opacity:0}
}

/* v260 Scenario follows the Home / Tokens / Pro visual language. */
html[data-pc128-page="scenario"] .pc128-shell>.pc128-header{display:none!important}
html[data-pc128-page="scenario"] .pc128-shell{gap:12px!important;isolation:isolate}
.pc260-scenario-hero{display:grid;justify-items:center;gap:3px;padding:2px 0 10px;text-align:center}
.pc260-scenario-art{position:relative;width:228px;height:200px;display:grid;place-items:center}
.pc260-scenario-art::before{content:"";position:absolute;inset:16% 9%;border-radius:50%;background:radial-gradient(circle,rgba(30,205,255,.23),rgba(82,58,255,.19) 47%,rgba(223,44,255,.08) 68%,transparent 76%);filter:blur(16px)}
.pc260-scenario-art img{position:relative;z-index:1;display:block;width:214px;height:214px;object-fit:contain;filter:drop-shadow(0 17px 27px rgba(42,46,255,.29))}
.pc260-scenario-copy{display:grid;gap:7px;justify-items:center;max-width:320px}
.pc260-scenario-copy h1{margin:0;color:#fff;font-size:clamp(32px,9vw,39px);line-height:.98;letter-spacing:-.043em;font-weight:900}
.pc260-scenario-copy p{margin:0;color:#93a7db;font-size:12.6px;line-height:1.38}
.pc260-recent{min-width:0}
.pc260-recent-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 10px}
.pc260-recent-head>div{display:grid;gap:3px;min-width:0}
.pc260-recent-head strong{font-size:16px;font-weight:800;letter-spacing:-.02em}
.pc260-recent-head small{color:#8095cc;font-size:10px}
.pc260-recent-head>button{flex:0 0 auto;display:flex;align-items:center;gap:3px;border:0;background:transparent;color:#9abaff;font:750 11px/1 inherit;padding:7px 0}
.pc260-recent-head>button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.pc260-recent-strip{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:none;touch-action:pan-x;padding:0 0 3px;-webkit-overflow-scrolling:touch}
.pc260-recent-strip::-webkit-scrollbar{display:none}
.pc260-recent-card{position:relative;flex:0 0 calc((100% - 16px)/3);min-width:calc((100% - 16px)/3);aspect-ratio:.78;scroll-snap-align:start;overflow:hidden;border:1px solid rgba(70,135,255,.58);border-radius:16px;padding:0;background:#0b1538;text-align:left;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 8px 18px rgba(1,3,15,.26)}
.pc260-recent-card:focus-visible{outline:2px solid #60d8ff;outline-offset:2px}
.pc260-recent-art,.pc260-recent-art svg{position:absolute;inset:0;display:block;width:100%;height:100%}
.pc260-recent-card::after{content:"";position:absolute;inset:42% 0 0;background:linear-gradient(180deg,transparent,rgba(3,5,19,.32) 24%,rgba(3,5,19,.94) 96%);pointer-events:none}
.pc260-recent-title{position:absolute;z-index:1;left:8px;right:7px;bottom:10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:12.5px;line-height:1.13;font-weight:850;text-shadow:0 2px 8px rgba(0,0,0,.7)}
html[data-pc128-page="scenario"] .pc130-script-card{padding:16px!important;border-color:rgba(72,132,255,.67)!important;border-radius:22px!important;background:radial-gradient(90% 65% at 95% 0%,rgba(81,45,206,.19),transparent 68%),linear-gradient(145deg,rgba(9,20,55,.98),rgba(4,7,24,.98))!important;box-shadow:inset 0 1px 0 rgba(150,198,255,.09),0 18px 42px rgba(0,0,0,.22)!important}
html[data-pc128-page="scenario"] .pc130-script-input{border-radius:17px;background:linear-gradient(145deg,rgba(8,17,43,.98),rgba(6,9,27,.98));border-color:rgba(76,114,207,.55)}
html[data-pc128-page="scenario"] .pc130-privacy{border-radius:18px;background:rgba(9,15,40,.88)}
@media(max-width:370px){.pc260-scenario-art{width:202px;height:184px}.pc260-scenario-art img{width:198px;height:198px}.pc260-recent-title{font-size:11.5px}}

/* v261 Scenario: recommendations first, independent mode switch, free editor layout. */
html[data-pc128-page="scenario"] .pc128-page-layer{padding-top:24px!important}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="scenario"] .pc128-page-layer{
  padding-top:max(92px,calc(var(--app-safe-top,84px) + 8px))!important
}
.pc260-recent[hidden]{display:none!important}
.pc260-recent{position:relative;z-index:1}
.pc260-recent-head{align-items:center;padding-bottom:8px}
.pc261-recent-tools{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.pc261-recent-all{display:flex;align-items:center;gap:2px;border:0;background:transparent;color:#9abaff;font:750 11px/1 inherit;padding:6px 0}
.pc261-recent-all svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}
.pc261-recent-close{width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid rgba(101,122,203,.38);border-radius:50%;background:rgba(14,20,51,.83);color:#bfcaed}
.pc261-recent-close svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.pc261-strip-wrap{position:relative}
.pc260-recent-strip{touch-action:pan-y;scroll-snap-type:x proximity;scroll-padding-left:2px;padding:0 1px 3px}
.pc260-recent-strip.is-pc261-dragging{scroll-snap-type:none}
.pc261-strip-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:31px;height:31px;display:grid;place-items:center;padding:0;border:1px solid rgba(123,176,255,.55);border-radius:50%;background:rgba(11,19,49,.91);color:#e4efff;font:700 25px/1 Inter,sans-serif;box-shadow:0 4px 14px rgba(0,0,0,.28)}
.pc261-strip-arrow[hidden]{display:none!important}
.pc261-strip-prev{left:4px}.pc261-strip-next{right:4px}
.pc260-scenario-hero{padding:10px 0 17px}
.pc260-scenario-art{width:208px;height:179px}
.pc260-scenario-art img{width:204px;height:204px}
.pc261-mode-panel{display:grid;gap:12px;padding:15px;border:1px solid rgba(71,120,245,.54);border-radius:19px;background:linear-gradient(145deg,rgba(11,21,56,.93),rgba(5,9,29,.94));box-shadow:inset 0 1px 0 rgba(138,182,255,.08),0 12px 28px rgba(0,0,0,.16)}
.pc261-mode-copy{display:grid;gap:4px}
.pc261-mode-copy strong{font-size:16px;font-weight:820;letter-spacing:-.02em}
.pc261-mode-copy small{color:#879bd0;font-size:10px}
.pc261-mode-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.pc261-mode-tabs button{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(78,107,190,.43);border-radius:13px;background:rgba(18,25,62,.7);color:#aebce8;font:750 11.5px/1 inherit}
.pc261-mode-tabs button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc261-mode-tabs button.is-active{border-color:rgba(91,202,255,.75);background:linear-gradient(115deg,rgba(30,111,210,.75),rgba(92,59,196,.8));color:#fff;box-shadow:0 7px 19px rgba(36,73,180,.22)}
html[data-pc128-page="scenario"] .pc261-editor-content{padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
.pc261-editor-content [data-pc132-script-pane][hidden],.pc261-editor-content [data-pc132-ai-pane][hidden]{display:none!important}
.pc261-editor-content .pc130-script-input{min-height:270px;margin-top:0!important;border-radius:18px!important;background:linear-gradient(145deg,rgba(9,17,44,.98),rgba(5,9,27,.98))!important;box-shadow:inset 0 1px 0 rgba(129,170,255,.07),0 13px 30px rgba(0,0,0,.16)!important}
.pc261-editor-content .pc130-script-foot{margin-top:11px;padding:0 2px}
.pc261-editor-content .pc130-save-state{padding:0 2px}
html[data-pc128-page="scenario"].pc261-editing .pc128-dock{display:none!important;visibility:hidden!important;pointer-events:none!important}
@media(max-width:370px){.pc261-mode-panel{padding:13px}.pc261-mode-tabs button{font-size:10.5px}.pc260-scenario-art{width:196px;height:170px}}

/* v262 Scenario tabs, independent AI draft, template imagery. */
html[data-pc128-page="scenario"] .pc261-mode-panel{display:block;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.pc261-mode-title{margin:0 2px 10px;color:#fff;font-size:18px;line-height:1.2;font-weight:850;letter-spacing:-.025em}
.pc261-mode-tabs.pc232-finance-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:3px;border:1px solid rgba(64,89,221,.48);border-radius:14px;background:rgba(8,10,36,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.pc261-mode-tabs.pc232-finance-tabs button{min-height:39px;padding:0 5px;border:0;border-radius:11px;background:transparent;color:#8598d4;box-shadow:none;font-size:12px;font-weight:750}
.pc261-mode-tabs.pc232-finance-tabs button svg{width:15px;height:15px}
.pc261-mode-tabs.pc232-finance-tabs button.is-active{color:#fff;background:linear-gradient(110deg,#18c9ec,#3a78ff 43%,#9c43ff 72%,#e938e5);box-shadow:0 7px 17px rgba(63,75,255,.19),inset 0 1px 0 rgba(255,255,255,.13)}
.pc261-editor-content .pc132-ai-pane{margin-top:0}
.pc261-editor-content .pc132-ai-result{padding:0;border:0;border-radius:0;background:none;box-shadow:none;gap:10px}
.pc261-editor-content .pc132-ai-result-head{padding:0 2px}.pc261-editor-content .pc132-ai-result-head strong{font-size:14px}
.pc261-editor-content .pc132-ai-result textarea{min-height:240px;border-radius:18px!important;background:linear-gradient(145deg,rgba(9,17,44,.98),rgba(5,9,27,.98))!important}
.pc261-editor-content .pc136-ai-result-foot{padding:0 2px}
.pc260-recent-art img,.pc262-template-art img{width:100%;height:100%;display:block;object-fit:cover}
.pc262-template-art{overflow:hidden;padding:0!important}
.pc262-image-field{margin:12px 0;padding:0;border:0}.pc262-image-field legend{margin-bottom:8px;color:#c8d4fb;font-size:12px;font-weight:750}
.pc262-image-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pc262-image-choices label{position:relative;display:grid;gap:5px;min-width:0;padding:5px;border:1px solid rgba(85,116,204,.43);border-radius:12px;background:rgba(11,18,45,.75);cursor:pointer}
.pc262-image-choices label:has(input:checked){border-color:#54ccff;box-shadow:0 0 0 1px #54ccff}
.pc262-image-choices input{position:absolute;width:1px;height:1px;opacity:0}.pc262-image-choices input:focus-visible+img{outline:2px solid #fff}
.pc262-image-choices img{display:block;width:100%;aspect-ratio:1.2;object-fit:cover;border-radius:8px}.pc262-image-choices span{text-align:center;color:#b5c8f2;font-size:10px}

/* v263 Scenario: Home-style fading templates, sticky editor, viewport-sized writing space. */
html[data-pc128-page="scenario"] .pc128-page-layer{--pc263-top:12px}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="scenario"] .pc128-page-layer{--pc263-top:max(92px,calc(var(--app-safe-top,84px) + 8px))}
html[data-pc128-page="scenario"] .pc128-shell{isolation:isolate}
html[data-pc128-page="scenario"] .pc260-recent{z-index:0;opacity:calc(1 - var(--pc263-recent-progress,0));transform:translate3d(0,calc(var(--pc263-recent-progress,0) * 28px),0);filter:blur(calc(var(--pc263-recent-progress,0) * 1.4px));will-change:opacity,transform}
html[data-pc128-page="scenario"] .pc260-recent.is-pc263-faded{visibility:hidden;pointer-events:none}
.pc263-workspace{position:sticky;top:var(--pc263-top);z-index:3;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;height:max(250px,min(750px,calc(var(--pc263-vh,100dvh) - var(--pc263-top) - 91px)));min-height:0;align-self:start}
.pc263-workspace .pc261-mode-panel{min-height:0}
html[data-pc128-page="scenario"] .pc263-workspace .pc261-editor-content{height:100%;min-height:0;display:block}
.pc263-workspace [data-pc132-script-pane]:not([hidden]){display:grid;height:100%;min-height:0;grid-template-rows:minmax(0,1fr) auto auto}
.pc263-workspace .pc130-script-input{height:100%;min-height:0!important;max-height:none!important;resize:none}
.pc263-workspace [data-pc132-ai-pane]:not([hidden]){display:flex!important;flex-direction:column;height:100%;min-height:0;margin:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.pc263-workspace .pc132-ai-result:not([hidden]){flex:1 0 180px;min-height:180px;display:flex;flex-direction:column}
.pc263-workspace .pc132-ai-result textarea{flex:1 1 auto;height:100%;min-height:110px!important;max-height:none!important;resize:none}
.pc263-workspace .pc132-ai-task{flex:1 1 150px;min-height:90px;resize:none}
.pc263-workspace .pc132-ai-pane:has(.pc132-ai-result:not([hidden])) .pc132-ai-task{flex:0 0 84px;min-height:84px}
.pc263-scroll-space{height:clamp(110px,20vh,200px);pointer-events:none}
.pc263-scroll-space[hidden]{display:none!important}
html[data-pc128-page="scenario"].pc261-editing .pc263-workspace{height:max(230px,calc(var(--pc263-vh,100dvh) - var(--pc263-top) - 14px))}
@media(prefers-reduced-motion:reduce){html[data-pc128-page="scenario"] .pc260-recent{filter:none}}

/* v264: keep AI controls legible while a generated draft is visible. */
.pc263-workspace .pc132-ai-quick{flex:0 0 auto;min-width:0}
.pc263-workspace .pc132-ai-generate{flex:0 0 46px;width:100%;min-width:0;min-height:46px;height:46px;padding:0 12px;white-space:nowrap}
.pc263-workspace .pc132-ai-generate span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.pc263-workspace .pc132-ai-status{flex:0 0 auto;min-height:16px;overflow-wrap:anywhere}
.pc263-workspace .pc132-ai-result-head,.pc263-workspace .pc136-ai-result-foot{flex:0 0 auto}
.pc263-workspace .pc132-ai-result-actions button{min-height:40px}

/* v266: sticky offset accounts for the page scrollport padding. */
html[data-pc128-page="scenario"] .pc128-page-layer{--pc263-top:0px;--pc264-visual-top:24px}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="scenario"] .pc128-page-layer{--pc263-top:0px;--pc264-visual-top:max(92px,calc(var(--app-safe-top,84px) + 8px))}
html[data-pc128-page="scenario"] .pc263-workspace{height:max(250px,min(750px,calc(var(--pc263-vh,100dvh) - var(--pc264-visual-top) - 91px)))}
html[data-pc128-page="scenario"].pc261-editing .pc263-workspace{height:max(230px,calc(var(--pc263-vh,100dvh) - var(--pc264-visual-top) - 14px))}

/* v268 Coach: pinned identity, fading intro, simple cards and shared mode tabs. */
html[data-pc128-page="coach"] .pc128-shell.pc268-coach-shell{isolation:isolate;gap:14px}
.pc268-coach-header{position:relative;z-index:1;align-self:start;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 2px;border:0;background:transparent;opacity:calc(1 - var(--pc268-hero-progress,0));will-change:opacity}
.pc268-coach-identity{display:grid;gap:3px;min-width:0}
.pc268-coach-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:16px;font-weight:850;letter-spacing:-.02em}
.pc268-coach-identity small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#92a7df;font-size:11px}
.pc268-coach-settings-trigger{flex:0 0 34px;width:34px;height:34px;display:grid;place-items:center;padding:0;border:0;border-radius:10px;background:rgba(30,44,106,.35);color:#d3e4ff}
.pc268-coach-settings-trigger svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round}
.pc268-coach-settings-trigger:focus-visible{outline:2px solid #56ccff;outline-offset:2px}
.pc268-coach-hero{z-index:0;opacity:calc(1 - var(--pc268-hero-progress,0));will-change:opacity}
.pc268-coach-hero.is-pc268-faded,.pc268-coach-header.is-pc268-faded{visibility:hidden;pointer-events:none}
.pc268-coach-hero .pc129-coach-art{width:174px;height:174px}
.pc268-coach-hero .pc129-coach-art img{width:100%;height:100%;object-fit:contain}
.pc268-coach-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin-top:12px;padding:3px;border:1px solid rgba(64,89,221,.48);border-radius:14px;background:rgba(8,10,36,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.pc268-coach-tabs button{min-width:0;min-height:40px;padding:0 5px;border:0;border-radius:11px;background:transparent;color:#8598d4;font:750 12px/1.1 inherit;box-shadow:none}
.pc268-coach-tabs button.is-active{color:#fff;background:linear-gradient(110deg,#18c9ec,#3a78ff 43%,#9c43ff 72%,#e938e5);box-shadow:0 7px 17px rgba(63,75,255,.19),inset 0 1px 0 rgba(255,255,255,.13)}
.pc268-task-hub,.pc268-coach-shell .pc156-recommendations{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.pc268-coach-shell .pc156-progress-stat{padding:7px 3px;border:0;border-radius:0;background:none}
.pc268-coach-shell .pc156-today-body{padding:8px 2px;border:0;border-radius:0;background:none}
.pc268-coach-shell .pc156-rec-grid article{background:linear-gradient(145deg,rgba(12,21,58,.88),rgba(10,13,39,.94));border-color:rgba(75,105,208,.4)}
.pc268-coach-shell .pc128-panel .pc128-empty{border:0;background:none}
.pc156-sheet[data-pc268-settings]{max-height:min(82dvh,760px);padding-bottom:max(18px,env(safe-area-inset-bottom))}
.pc156-sheet[data-pc268-settings] .pc191-settings-stack{margin:14px 0 0}
.pc156-sheet[data-pc268-settings] .pc191-accordion{border-color:rgba(72,102,203,.44);background:linear-gradient(145deg,rgba(15,24,62,.94),rgba(11,14,43,.96))}
.pc156-sheet[data-pc268-settings] .pc191-accordion[open]{border-color:rgba(118,106,239,.65)}
@media(max-width:370px){.pc268-coach-hero .pc129-coach-art{width:148px;height:148px}.pc268-coach-tabs button{font-size:11px}}
@media(prefers-reduced-motion:reduce){.pc268-coach-hero{filter:none;transform:none}}

html[data-pc128-page="coach"].pc156-sheet-open .pc136-global-dock{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
@media(min-width:620px){.pc156-sheet[data-pc268-settings]{left:50%;right:auto;width:min(520px,calc(100vw - 20px));transform:translateX(-50%)}}

/* v269 Coach: readable content, award milestones, and a scrolling intro. */
.pc268-coach-hero{transform:none;filter:none}
.pc268-coach-shell .pc269-award{min-height:272px!important;padding:19px!important;align-items:flex-start!important;border-radius:22px!important;background:radial-gradient(circle at 75% 28%,rgba(105,83,255,.27),transparent 45%),linear-gradient(135deg,#122251,#101638 57%,#291848)!important}
.pc268-coach-shell .pc269-award[data-pc269-award="gold"]{background:radial-gradient(circle at 77% 30%,rgba(242,166,65,.24),transparent 45%),linear-gradient(135deg,#142554,#181737 58%,#372047)!important}
.pc268-coach-shell .pc269-award[data-pc269-award="bronze"]{background:radial-gradient(circle at 77% 30%,rgba(225,115,83,.24),transparent 45%),linear-gradient(135deg,#142550,#171738 58%,#352047)!important}
.pc269-award .pc157-motivation-art{left:auto;right:7px;top:17px;transform:none;width:156px;height:156px}
.pc269-award .pc157-motivation-art img{width:154px;height:154px;filter:drop-shadow(0 14px 24px rgba(42,60,203,.27))}
.pc269-award .pc157-motivation-copy{width:100%;min-height:231px;justify-content:space-between;gap:16px}
.pc269-award .pc157-motivation-main{width:100%;min-height:152px;align-content:start;gap:9px;padding-right:135px}
.pc269-award .pc157-motivation-main>span{justify-content:flex-start;color:#9eb8ff;font-size:10px}
.pc269-award .pc157-motivation-main>b{font-size:20px;line-height:1.17;letter-spacing:-.025em}
.pc269-award .pc157-motivation-main>small{color:#b5c2e5;font-size:12px;line-height:1.38}
.pc269-award .pc157-motivation-share{align-self:stretch;min-height:47px;font-size:13px;border-radius:13px}
.pc268-coach-shell .pc156-card-head{gap:12px}
.pc268-coach-shell .pc156-card-head>div{gap:5px}
.pc268-coach-shell .pc156-card-head span{font-size:10px}
.pc268-coach-shell .pc156-card-head strong{font-size:20px;line-height:1.18}
.pc268-coach-shell .pc156-card-head>em{font-size:11px}
.pc268-coach-shell .pc156-progress-stat b{font-size:18px}
.pc268-coach-shell .pc156-progress-stat small,.pc268-coach-shell .pc156-cycle small{font-size:11px}
.pc268-coach-shell .pc156-focus b{font-size:13px}
.pc268-coach-shell .pc156-focus small{font-size:12px;line-height:1.4;display:block;overflow:visible}
.pc268-coach-shell .pc156-today-body{gap:12px}
.pc268-coach-shell .pc156-today-body b{font-size:14px;line-height:1.4}
.pc268-coach-shell .pc156-today-body small{font-size:11px}
.pc268-coach-shell .pc156-today-meta span{font-size:10px;padding:6px 9px}
.pc268-coach-shell .pc156-rec-grid{grid-template-columns:1fr;gap:9px}
.pc268-coach-shell .pc156-rec-grid article{min-height:76px;padding:12px 14px 12px 52px;position:relative}
.pc268-coach-shell .pc156-rec-grid i{position:absolute;left:13px;top:14px;width:28px;height:28px;margin:0}
.pc268-coach-shell .pc156-rec-grid b{font-size:14px}
.pc268-coach-shell .pc156-rec-grid p{font-size:12px;line-height:1.43;display:block;overflow:visible}
.pc268-coach-shell .pc156-next-label{font-size:10px}
.pc268-coach-shell .pc156-stage{min-height:65px;padding:10px 12px}
.pc268-coach-shell .pc156-stage>span{grid-template-columns:30px 1fr;column-gap:10px;row-gap:3px}
.pc268-coach-shell .pc156-stage i{width:30px;height:30px;font-size:11px}
.pc268-coach-shell .pc156-stage b{font-size:14px;line-height:1.25}
.pc268-coach-shell .pc156-stage small{font-size:11px;line-height:1.3}
.pc268-coach-shell .pc156-plan-head b,.pc268-coach-shell .pc156-history-list b{font-size:14px}
.pc268-coach-shell .pc156-plan-head small,.pc268-coach-shell .pc156-history-list small{font-size:11px}
.pc268-coach-shell .pc156-plan-head em,.pc268-coach-shell .pc156-history-list em{font-size:12px}
.pc268-coach-shell .pc156-history-list>button{min-height:65px}
.pc268-coach-shell .pc268-coach-tabs button{font-size:13px}
.pc156-sheet .pc156-sheet-head span{font-size:10px}
.pc156-sheet .pc156-sheet-head strong{font-size:20px}
.pc156-sheet .pc156-progress-hero small,.pc156-sheet .pc156-sheet-metrics small{font-size:11px}
.pc156-sheet .pc156-sheet-focus{gap:12px;padding:13px}
.pc156-sheet .pc156-sheet-focus b,.pc156-sheet .pc156-review b{font-size:13px}
.pc156-sheet .pc156-sheet-focus p,.pc156-sheet .pc156-review p{font-size:12px;line-height:1.45}
.pc156-sheet .pc156-task-state{font-size:11px}
.pc156-sheet .pc156-task-detail>p{font-size:14px;line-height:1.5}
.pc156-sheet .pc156-share-progress,.pc156-sheet .pc156-sheet-primary{font-size:13px}
.pc156-sheet[data-pc268-settings] .pc191-accordion>summary strong{font-size:14px}
.pc156-sheet[data-pc268-settings] .pc191-accordion>summary small{font-size:11px}
.pc156-sheet[data-pc268-settings] .pc191-accordion>summary>b{font-size:11px;max-width:100px}
.pc156-sheet[data-pc268-settings] .pc191-option strong{font-size:13px}
.pc156-sheet[data-pc268-settings] .pc191-option small{font-size:11px}
@media(max-width:370px){
  .pc269-award .pc157-motivation-art{width:135px;height:135px}
  .pc269-award .pc157-motivation-art img{width:134px;height:134px}
  .pc269-award .pc157-motivation-main{padding-right:108px}
  .pc269-award .pc157-motivation-main>b{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.pc268-coach-header,.pc268-coach-hero{will-change:auto}}


/* v270 Coach: sticky identity stays pinned while intro scrolls away. */
html[data-pc128-page="coach"] .pc128-page-layer{--pc270-coach-sticky-top:max(18px,calc(var(--app-safe-top,0px) + 8px))}
.pc268-coach-header{position:sticky;top:var(--pc270-coach-sticky-top);z-index:14;opacity:1!important;will-change:auto;background:linear-gradient(180deg,rgba(5,6,21,.96),rgba(5,6,21,.84) 68%,rgba(5,6,21,0));backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.pc268-coach-header.is-pc268-faded{visibility:visible;pointer-events:auto}
.pc268-coach-identity strong{font-size:17.6px}
.pc268-coach-settings-trigger{flex:0 0 41px;width:41px;height:41px;border-radius:12px}
.pc268-coach-settings-trigger svg{width:19.2px;height:19.2px}


/* v271 Coach: pinned identity stays visually transparent. */
.pc268-coach-header{
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  box-shadow:none!important;
}
.pc268-coach-settings-trigger{
  background:transparent!important;
  box-shadow:none!important;
}


/* v272 Coach: all scrolled cards dissolve beneath the pinned identity. */
.pc272-coach-top-fade{
  position:fixed;
  z-index:13;
  pointer-events:none;
  left:0;
  right:0;
  top:0;
  height:calc(var(--pc270-coach-sticky-top,18px) + 120px);
  opacity:var(--pc272-coach-mask,0);
  background:linear-gradient(
    180deg,
    rgba(5,6,21,.995) 0%,
    rgba(5,6,21,.97) 36%,
    rgba(5,6,21,.82) 57%,
    rgba(5,6,21,.50) 74%,
    rgba(5,6,21,.18) 88%,
    rgba(5,6,21,0) 100%
  );
  transition:opacity .12s ease-out;
  will-change:opacity;
}


/* v273 Coach: raise pinned identity without moving the hero/content. */
html[data-pc128-page="coach"] .pc128-page-layer{
  --pc273-coach-header-lift:12px;
}
.pc268-coach-header{
  transform:translate3d(0,calc(-1 * var(--pc273-coach-header-lift)),0);
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="coach"] .pc128-page-layer{
  --pc273-coach-header-lift:42px;
}


/* v274 Coach mobile: tuck identity under Telegram chrome and align gear with ellipsis. */
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="coach"] .pc128-page-layer{
  --pc273-coach-header-lift:84px;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="coach"] .pc268-coach-settings-trigger{
  transform:translate3d(7px,0,0);
}


/* v275 Templates: user identity replaces logo/Pro and stays pinned like Coach. */
html[data-pc128-page="templates"] .pc128-page-layer{
  --pc275-templates-sticky-top:max(18px,calc(var(--app-safe-top,0px) + 8px));
  --pc275-templates-header-lift:12px;
}
.pc275-templates-shell{isolation:isolate;gap:14px}
.pc275-templates-header{
  position:sticky;
  top:var(--pc275-templates-sticky-top);
  z-index:14;
  align-self:start;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 2px;
  border:0;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:translate3d(0,calc(-1 * var(--pc275-templates-header-lift)),0);
}
.pc275-templates-top-fade{
  position:fixed;
  z-index:13;
  pointer-events:none;
  left:0;
  right:0;
  top:0;
  height:calc(var(--pc275-templates-sticky-top,18px) + 120px);
  opacity:var(--pc275-templates-mask,0);
  background:linear-gradient(
    180deg,
    rgba(5,6,21,.995) 0%,
    rgba(5,6,21,.97) 36%,
    rgba(5,6,21,.82) 57%,
    rgba(5,6,21,.50) 74%,
    rgba(5,6,21,.18) 88%,
    rgba(5,6,21,0) 100%
  );
  transition:opacity .12s ease-out;
  will-change:opacity;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="templates"] .pc128-page-layer{
  --pc275-templates-header-lift:84px;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="templates"] .pc275-templates-settings{
  transform:translate3d(7px,0,0);
}


/* v276 Profile/Earpiece: clean chrome, membership artwork and Home earbuds. */
.pc276-profile-shell,
.pc276-earpiece-shell{gap:14px}
.pc276-profile-hero .pc276-profile-member-art::before{
  background:radial-gradient(circle,rgba(124,151,255,.20),rgba(105,89,255,.12) 48%,transparent 74%);
}
.pc276-profile-hero .pc276-profile-member-art img{
  width:164px!important;
  height:164px!important;
  right:-8px!important;
  bottom:-8px!important;
  object-fit:contain!important;
  filter:grayscale(1) brightness(1.3) contrast(1.08) drop-shadow(0 14px 24px rgba(124,151,255,.18))!important;
}
.pc276-profile-hero.is-pro-active .pc276-profile-member-art::before{
  background:radial-gradient(circle,rgba(255,184,50,.24),rgba(255,112,31,.14) 48%,transparent 75%)!important;
}
.pc276-profile-hero.is-pro-active .pc276-profile-member-art img{
  filter:sepia(1) saturate(4.8) hue-rotate(345deg) brightness(1.12) contrast(1.08) drop-shadow(0 14px 24px rgba(255,153,40,.22))!important;
}
.pc276-earpiece-shell .pc128-hero-art img{
  width:166px!important;
  height:166px!important;
  object-fit:contain!important;
}
@media(max-width:370px){
  .pc276-profile-hero .pc276-profile-member-art img,
  .pc276-earpiece-shell .pc128-hero-art img{width:150px!important;height:150px!important}
}


/* v277 Commerce identity: move Templates user header to Tokens and Pro. */
html[data-pc128-page="tokens"] .pc128-page-layer,
html[data-pc128-page="pro"] .pc128-page-layer{
  --pc277-account-sticky-top:max(18px,calc(var(--app-safe-top,0px) + 8px));
  --pc277-account-header-lift:12px;
  --pc277-commerce-sticky-top:72px;
}
.pc277-account-shell{isolation:isolate}
.pc277-account-header{
  position:sticky;
  top:var(--pc277-account-sticky-top);
  z-index:14;
  align-self:start;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 2px;
  border:0;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:translate3d(0,calc(-1 * var(--pc277-account-header-lift)),0);
}
.pc277-account-top-fade{
  position:fixed;
  z-index:13;
  pointer-events:none;
  left:0;
  right:0;
  top:0;
  height:calc(var(--pc277-account-sticky-top,18px) + 120px);
  opacity:var(--pc277-account-mask,0);
  background:linear-gradient(
    180deg,
    rgba(5,6,21,.995) 0%,
    rgba(5,6,21,.97) 36%,
    rgba(5,6,21,.82) 57%,
    rgba(5,6,21,.50) 74%,
    rgba(5,6,21,.18) 88%,
    rgba(5,6,21,0) 100%
  );
  transition:opacity .12s ease-out;
  will-change:opacity;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="tokens"] .pc128-page-layer,
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="pro"] .pc128-page-layer{
  --pc277-account-header-lift:84px;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="tokens"] .pc277-account-settings,
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="pro"] .pc277-account-settings{
  transform:translate3d(7px,0,0);
}
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card{
  top:var(--pc277-commerce-sticky-top)!important;
}
html[data-pc128-page="tokens"] .pc232-finance-tabs{
  top:calc(var(--pc277-commerce-sticky-top) + 8px + var(--pc234-balance-height,292px));
}
html[data-pc128-page="pro"] .pc238-pro-card{
  top:var(--pc277-commerce-sticky-top)!important;
}


/* v278 Scenario recent templates: Telegram-like header capsules. */
.pc260-recent-head{padding-bottom:8px}
.pc260-recent-head>div{gap:0}
.pc261-recent-tools{gap:6px}
.pc261-recent-all,
.pc261-recent-close{
  height:32px;
  min-height:32px;
  box-sizing:border-box;
  border:1px solid rgba(101,122,203,.38);
  border-radius:999px;
  background:rgba(14,20,51,.83);
  color:#bfcaed;
  -webkit-backdrop-filter:blur(12px) saturate(1.08);
  backdrop-filter:blur(12px) saturate(1.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.pc261-recent-all{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:3px;
  min-width:58px;
  padding:0 10px;
  font:750 11px/1 inherit;
}
.pc261-recent-all svg{width:14px;height:14px;flex:0 0 14px}
.pc261-recent-close{
  width:32px;
  min-width:32px;
  padding:0;
  display:grid;
  place-items:center;
}
.pc261-recent-close svg{width:15px;height:15px}


/* v279 Templates: discovery catalog inspired by the approved reference. */
.pc275-templates-shell{gap:13px}
.pc279-template-search{margin-bottom:0}
.pc279-template-catalog{display:grid;gap:15px;min-width:0;padding-bottom:8px}
.pc279-template-categories{display:flex;gap:6px;min-width:0;overflow-x:auto;padding:1px 1px 3px;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.pc279-template-categories::-webkit-scrollbar{display:none}
.pc279-template-category{height:31px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 10px;border:1px solid rgba(96,116,190,.32);border-radius:999px;background:rgba(12,17,43,.72);color:#a8b5dc;font:720 10px/1 inherit;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.pc279-template-category svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc279-template-category.is-active{border-color:transparent;background:linear-gradient(110deg,#13d7e8 0%,#8846ff 58%,#ed2bd7 100%);color:#fff;box-shadow:0 7px 22px rgba(117,55,255,.25)}
.pc279-template-featured{position:relative;min-height:174px;overflow:hidden;border:1px solid rgba(66,106,229,.58);border-radius:18px;background:#0a1032;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 16px 34px rgba(1,5,24,.18)}
.pc279-template-featured-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
.pc279-template-featured-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,9,34,.97) 0%,rgba(6,10,37,.91) 38%,rgba(8,10,35,.48) 62%,rgba(5,7,27,.08) 100%)}
.pc279-template-featured-copy{position:relative;z-index:2;max-width:62%;min-height:174px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:17px 0 17px 17px;box-sizing:border-box}
.pc279-template-featured-copy>span{display:flex;align-items:center;gap:5px;color:#8fb4ff;font:800 8px/1.1 inherit;letter-spacing:.08em}
.pc279-template-featured-copy>span svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc279-template-featured-copy h2{margin:7px 0 5px;max-width:190px;color:#fff;font-size:20px;line-height:.98;letter-spacing:-.045em}
.pc279-template-featured-copy p{margin:0;max-width:190px;color:#9badd9;font-size:9.5px;line-height:1.35}
.pc279-template-featured-copy button{height:32px;display:flex;align-items:center;gap:7px;margin-top:12px;padding:0 13px;border:0;border-radius:999px;background:linear-gradient(105deg,#18d6ef,#724dff 58%,#f030d0);color:#fff;box-shadow:0 8px 20px rgba(93,58,255,.3);font:750 9.5px/1 inherit}
.pc279-template-featured-copy button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
.pc279-template-section{display:grid;gap:9px;min-width:0}
.pc279-template-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 1px}
.pc279-template-section-head h2{display:flex;align-items:center;gap:5px;margin:0;color:#f6f7ff;font-size:13.5px;line-height:1.1;letter-spacing:-.02em}
.pc279-template-section-head>button{display:flex;align-items:center;gap:2px;padding:4px 0;border:0;background:transparent;color:#859ef0;font:700 8.5px/1 inherit}
.pc279-template-section-head>button svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2}
.pc279-popular-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-width:0}
.pc279-popular-card{min-width:0;overflow:hidden;padding:0;border:1px solid rgba(75,91,159,.46);border-radius:12px;background:linear-gradient(180deg,rgba(17,22,54,.93),rgba(9,12,34,.95));color:#fff;text-align:left;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.pc279-popular-art{display:block;width:100%;aspect-ratio:3/4;background-image:url('/prompta-template-popular-sprite-v279.webp?v=279');background-repeat:no-repeat;background-size:400% 100%;background-position-y:center}
.pc279-popular-art.is-education{background-position-x:0%}
.pc279-popular-art.is-product{background-position-x:33.333%}
.pc279-popular-art.is-story{background-position-x:66.666%}
.pc279-popular-art.is-expert{background-position-x:100%}
.pc279-popular-copy{display:grid;gap:3px;padding:7px 6px 7px}
.pc279-popular-copy strong{min-height:24px;font-size:8.8px;line-height:1.15}
.pc279-popular-copy small{min-height:22px;color:#8495c2;font-size:7px;line-height:1.28}
.pc279-popular-copy i{justify-self:start;margin-top:2px;padding:3px 5px;border-radius:999px;background:rgba(43,56,104,.56);color:#8ea4de;font:650 6.3px/1 inherit;font-style:normal}
.pc279-clock{width:14px;height:14px;display:inline-grid;place-items:center;border:1px solid #7186c4;border-radius:50%;color:#9baee3;font-size:9px}
.pc279-recent-strip{display:flex;gap:7px;min-width:0;overflow-x:auto;padding:0 1px 3px;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
.pc279-recent-strip::-webkit-scrollbar{display:none}
.pc279-recent-card{position:relative;flex:0 0 143px;min-width:0;height:62px;overflow:hidden;border:1px solid rgba(71,88,151,.43);border-radius:11px;background:rgba(12,16,42,.84);scroll-snap-align:start}
.pc279-recent-use{width:100%;height:100%;display:flex;align-items:center;gap:7px;padding:6px 24px 6px 6px;border:0;background:transparent;color:#fff;text-align:left}
.pc279-recent-thumb{flex:0 0 42px;width:42px;height:48px;overflow:hidden;border-radius:8px;background:#151a46}
.pc279-recent-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.pc279-recent-thumb.pc279-popular-art{aspect-ratio:auto;background-size:400% 100%}
.pc279-recent-copy{min-width:0;display:grid;gap:4px}
.pc279-recent-copy strong{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:7.7px;line-height:1.15}
.pc279-recent-copy small{overflow:hidden;color:#7588bd;font-size:5.8px;line-height:1;white-space:nowrap;text-overflow:ellipsis}
.pc279-recent-edit{position:absolute;right:4px;top:4px;width:19px;height:19px;padding:0;border:0;border-radius:7px;background:rgba(8,12,35,.72);color:#8799ca;font:800 7px/1 inherit;letter-spacing:-.08em}
.pc279-template-catalog [hidden]{display:none!important}
@media(max-width:350px){
  .pc279-template-featured{min-height:166px}
  .pc279-template-featured-copy{min-height:166px;max-width:65%;padding-left:14px}
  .pc279-template-featured-copy h2{font-size:18px}
  .pc279-popular-grid{gap:5px}
  .pc279-popular-copy{padding:6px 5px}
  .pc279-popular-copy strong{font-size:8px}
  .pc279-popular-copy small{font-size:6.3px}
}
@media(min-width:560px){
  .pc279-template-featured{min-height:204px}
  .pc279-template-featured-copy{min-height:204px;padding-left:22px}
  .pc279-template-featured-copy h2{font-size:24px;max-width:230px}
  .pc279-template-featured-copy p{font-size:11px;max-width:240px}
  .pc279-popular-copy strong{font-size:10px}
  .pc279-popular-copy small{font-size:8px}
  .pc279-recent-card{flex-basis:176px;height:68px}
}


/* v280 Templates: sticky search/categories, larger feature card and readable three-column library. */
html[data-pc128-page="templates"] .pc128-page-layer{
  --pc280-template-sticky-top:max(10px,calc(var(--app-safe-top,0px) + 6px));
}
.pc280-template-sticky{
  position:sticky;
  top:var(--pc280-template-sticky-top);
  z-index:14;
  display:grid;
  gap:9px;
  margin:0 -1px;
  padding:2px 1px 9px;
  isolation:isolate;
}
.pc280-template-sticky::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:-18px;
  right:-18px;
  top:-118px;
  bottom:-15px;
  pointer-events:none;
  opacity:var(--pc280-template-mask,0);
  background:linear-gradient(180deg,rgba(5,6,21,.985) 0%,rgba(5,6,21,.97) 58%,rgba(5,6,21,.90) 82%,rgba(5,6,21,0) 100%);
  transition:opacity .16s ease;
}
.pc280-template-sticky.is-pc280-pinned::before{
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.pc280-template-sticky>*{position:relative;z-index:1}
.pc280-template-sticky .pc279-template-search{
  height:50px;
  border-radius:17px;
  background:rgba(8,13,42,.82);
  box-shadow:0 7px 22px rgba(1,4,18,.16);
}
.pc280-template-sticky .pc279-template-search input{font-size:14px}
.pc280-template-sticky .pc279-template-categories{padding-bottom:2px}
.pc280-template-sticky .pc279-template-category{
  height:34px;
  gap:6px;
  padding:0 11px;
  font-size:11px;
}
.pc280-template-sticky .pc279-template-category svg{width:14px;height:14px}

.pc279-template-catalog{gap:18px}
.pc279-template-featured{
  min-height:232px;
  border-radius:20px;
  border-color:rgba(65,122,244,.68);
}
.pc279-template-featured-art{object-position:56% center}
.pc279-template-featured-shade{
  background:linear-gradient(90deg,rgba(5,9,34,.985) 0%,rgba(6,10,37,.95) 39%,rgba(8,10,35,.56) 64%,rgba(5,7,27,.08) 100%);
}
.pc279-template-featured-copy{
  min-height:232px;
  max-width:63%;
  padding:22px 0 22px 17px;
}
.pc279-template-featured-copy>span{font-size:10px;gap:6px}
.pc279-template-featured-copy>span svg{width:14px;height:14px}
.pc279-template-featured-copy h2{
  max-width:220px;
  margin:9px 0 7px;
  font-size:27px;
  line-height:.94;
}
.pc279-template-featured-copy p{
  max-width:210px;
  font-size:11.5px;
  line-height:1.42;
}
.pc279-template-featured-copy button{
  min-width:180px;
  height:40px;
  justify-content:center;
  margin-top:16px;
  padding:0 16px;
  font-size:11.5px;
}
.pc279-template-featured-copy button svg{width:16px;height:16px}

.pc279-template-section{gap:11px}
.pc279-template-section-head h2{font-size:15.5px}
.pc279-template-section-head>button{font-size:10.5px}
.pc279-template-section-head>button svg{width:14px;height:14px}

.pc279-popular-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.pc279-popular-card{border-radius:14px}
.pc279-popular-art{aspect-ratio:3/4}
.pc279-popular-copy{gap:4px;padding:9px 8px 10px}
.pc279-popular-copy strong{
  min-height:30px;
  font-size:11.2px;
  line-height:1.18;
}
.pc279-popular-copy small{
  min-height:28px;
  font-size:8.8px;
  line-height:1.3;
}
.pc279-popular-copy i{
  margin-top:3px;
  padding:4px 6px;
  font-size:8px;
}

.pc279-recent-strip{gap:9px;padding-bottom:4px}
.pc279-recent-card{
  flex-basis:184px;
  height:84px;
  border-radius:13px;
}
.pc279-recent-use{
  gap:9px;
  padding:7px 27px 7px 7px;
}
.pc279-recent-thumb{
  flex-basis:58px;
  width:58px;
  height:68px;
  border-radius:10px;
}
.pc279-recent-copy{gap:5px}
.pc279-recent-copy strong{
  font-size:10.5px;
  line-height:1.18;
}
.pc279-recent-copy small{
  font-size:8px;
  line-height:1.15;
}
.pc279-recent-edit{
  right:6px;
  top:6px;
  width:23px;
  height:23px;
  border-radius:8px;
  font-size:9px;
}
.pc279-clock{width:16px;height:16px;font-size:10px}

@media(max-width:350px){
  .pc280-template-sticky{gap:7px}
  .pc280-template-sticky .pc279-template-category{height:32px;padding:0 9px;font-size:10px}
  .pc279-template-featured{min-height:214px}
  .pc279-template-featured-copy{min-height:214px;max-width:66%;padding-left:14px}
  .pc279-template-featured-copy h2{font-size:24px}
  .pc279-template-featured-copy p{font-size:10.5px}
  .pc279-template-featured-copy button{min-width:164px;height:38px}
  .pc279-popular-grid{gap:6px}
  .pc279-popular-copy{padding:8px 6px 9px}
  .pc279-popular-copy strong{font-size:10px}
  .pc279-popular-copy small{font-size:8px}
  .pc279-recent-card{flex-basis:170px;height:80px}
  .pc279-recent-thumb{flex-basis:54px;width:54px;height:64px}
}
@media(min-width:560px){
  .pc279-template-featured{min-height:270px}
  .pc279-template-featured-copy{min-height:270px;padding-left:23px}
  .pc279-template-featured-copy h2{font-size:31px;max-width:270px}
  .pc279-template-featured-copy p{font-size:13px;max-width:265px}
  .pc279-template-featured-copy button{height:43px;font-size:12px}
  .pc279-popular-copy strong{font-size:12.5px}
  .pc279-popular-copy small{font-size:10px}
  .pc279-recent-card{flex-basis:210px;height:92px}
  .pc279-recent-thumb{flex-basis:64px;width:64px;height:76px}
  .pc279-recent-copy strong{font-size:11.5px}
  .pc279-recent-copy small{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .pc280-template-sticky::before{transition:none}
}


/* v281 Templates: Coach-style fixed fade and raised Telegram-mobile controls. */
.pc280-template-sticky::before{display:none!important}
.pc281-template-top-fade{
  position:fixed;
  z-index:13;
  pointer-events:none;
  left:0;
  right:0;
  top:0;
  height:calc(var(--pc280-template-sticky-top,10px) + 126px);
  opacity:var(--pc280-template-mask,0);
  background:linear-gradient(
    180deg,
    rgba(5,6,21,.998) 0%,
    rgba(5,6,21,.985) 34%,
    rgba(5,6,21,.90) 58%,
    rgba(5,6,21,.62) 74%,
    rgba(5,6,21,.24) 88%,
    rgba(5,6,21,0) 100%
  );
  transition:opacity .12s ease-out;
  will-change:opacity;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="templates"] .pc128-page-layer{
  --pc280-template-sticky-top:max(58px,calc(var(--app-safe-top,0px) - 58px));
}
@media(prefers-reduced-motion:reduce){
  .pc281-template-top-fade{transition:none}
}


/* v282 Templates: pin against the scrollport padding edge and size fade to the real sticky controls. */
.pc281-template-top-fade{
  height:var(--pc282-template-fade-height,156px)!important;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="templates"] .pc128-page-layer{
  --pc280-template-sticky-top:0px!important;
}


/* v283 Templates: preview, personalize, AI-ready teleprompter flow. */
.pc283-template-flow-backdrop{
  position:fixed;
  z-index:990;
  inset:0;
  border:0;
  background:rgba(1,3,12,.66);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
.pc283-template-flow{
  position:fixed;
  z-index:991;
  left:50%;
  bottom:max(8px,env(safe-area-inset-bottom,0px));
  transform:translateX(-50%);
  width:min(560px,calc(100vw - 16px));
  max-height:min(88dvh,760px);
  overflow:auto;
  box-sizing:border-box;
  padding:9px 13px 15px;
  border:1px solid rgba(83,111,229,.48);
  border-radius:25px;
  background:linear-gradient(160deg,rgba(10,18,51,.995),rgba(7,10,31,.995) 58%,rgba(36,10,65,.99));
  box-shadow:0 -24px 74px rgba(0,0,0,.52),inset 0 1px 0 rgba(125,153,255,.08);
  color:#fff;
  overscroll-behavior:contain;
}
.pc283-template-flow[hidden],.pc283-template-flow-backdrop[hidden]{display:none!important}
.pc283-flow-grab{width:39px;height:4px;margin:1px auto 10px;border-radius:999px;background:rgba(164,177,220,.26)}
.pc283-flow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pc283-flow-head>div:first-child{min-width:0;display:grid;gap:4px}
.pc283-flow-head>div:first-child>span{color:#8e9fd0;font-size:8px;font-weight:900;letter-spacing:.13em}
.pc283-flow-head>div:first-child>strong{font-size:20px;line-height:1.05}
.pc283-flow-head-actions{display:flex!important;grid-auto-flow:column;gap:6px}
.pc283-flow-icon,.pc283-flow-heart{
  width:36px;height:36px;display:grid;place-items:center;flex:0 0 36px;
  border:1px solid rgba(96,116,220,.30);border-radius:12px;
  background:rgba(25,34,82,.52);color:#c7d2f6;font-size:21px;line-height:1;
}
.pc283-flow-icon svg{width:17px;height:17px}
.pc283-flow-heart{font-size:20px}.pc283-flow-heart.is-saved{color:#ff688f;border-color:rgba(255,90,131,.45);background:rgba(85,20,48,.46)}
.pc283-flow-preview{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:12px;margin-top:13px;padding:11px;border:1px solid rgba(87,105,218,.28);border-radius:17px;background:rgba(16,24,66,.52)}
.pc283-flow-cover{width:112px;height:138px;border-radius:13px;overflow:hidden;background-position:center;background-size:cover}
.pc283-flow-cover img{width:100%;height:100%;display:block;object-fit:cover}
.pc283-flow-cover.is-featured img{object-position:58% center}
.pc283-flow-cover.pc279-popular-art{aspect-ratio:auto}
.pc283-flow-preview>div:last-child{min-width:0;display:grid;gap:7px}
.pc283-flow-preview p{margin:0;color:#f2f4ff;font-size:13px;line-height:1.38}
.pc283-flow-preview small{color:#8fa1d2;font-size:9.5px;line-height:1.4}
.pc283-flow-script-preview{margin-top:10px;padding:12px;border:1px solid rgba(70,91,185,.26);border-radius:15px;background:rgba(7,12,35,.64)}
.pc283-flow-script-preview>b{display:block;margin-bottom:7px;color:#aab8e1;font-size:9px;letter-spacing:.06em}
.pc283-flow-script-preview>div{max-height:154px;overflow:auto;color:#e9edff;font-size:12px;line-height:1.48}
.pc283-flow-script-preview p{margin:0}.pc283-flow-script-preview p+p{margin-top:8px}
.pc283-flow-actions{display:grid;grid-template-columns:1.25fr .75fr;gap:8px;margin-top:11px}
.pc283-flow-actions button,.pc283-flow-main{
  min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;
  border-radius:14px;color:#fff;font-size:11px;font-weight:900;
}
.pc283-flow-actions svg,.pc283-flow-main svg{width:18px;height:18px}
.pc283-flow-actions .is-primary,.pc283-flow-main{
  border:0;background:linear-gradient(105deg,#19cbe7 0%,#3976f4 45%,#9b43ef 100%);
  box-shadow:0 12px 30px rgba(60,69,207,.25);
}
.pc283-flow-actions .is-secondary{border:1px solid rgba(91,108,194,.40);background:rgba(20,28,69,.72);color:#cdd6f7}
.pc283-flow-main{width:100%;margin-top:11px}.pc283-flow-main:disabled,.pc283-flow-quick button:disabled{opacity:.52;pointer-events:none}
.pc283-flow-lead{margin:12px 1px 0;color:#a7b5db;font-size:11px;line-height:1.48}
.pc283-flow-field{display:grid;gap:6px;margin-top:11px}
.pc283-flow-field>span,.pc283-flow-goals>span{color:#a7b5dd;font-size:9px;font-weight:850}
.pc283-flow-field input,.pc283-flow-field textarea,.pc283-flow-result{
  width:100%;box-sizing:border-box;border:1px solid rgba(75,103,192,.48);border-radius:14px;outline:0;
  background:linear-gradient(145deg,rgba(10,16,41,.96),rgba(6,9,27,.98));color:#f8f8ff;
  font:500 13px/1.48 Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;caret-color:#54d9ff;
}
.pc283-flow-field input{height:45px;padding:0 12px}.pc283-flow-field textarea{min-height:86px;padding:11px;resize:vertical}
.pc283-flow-goals{display:grid;gap:7px;margin-top:11px}.pc283-flow-goals>div{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.pc283-flow-goals>div::-webkit-scrollbar{display:none}
.pc283-flow-goals button,.pc283-flow-quick button{
  min-height:34px;white-space:nowrap;padding:0 11px;border:1px solid rgba(83,99,181,.38);border-radius:999px;background:rgba(16,23,60,.82);color:#b9c5e7;font-size:9px;font-weight:800;
}
.pc283-flow-goals button.is-active{border-color:rgba(42,210,245,.72);background:linear-gradient(105deg,rgba(24,198,232,.86),rgba(109,63,241,.88));color:#fff}
.pc283-flow-status{margin:8px 2px 0;color:#8ea0d1;font-size:9px;line-height:1.4}.pc283-flow-status.is-error{color:#ff7b91}
.pc283-flow-ready-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding:9px 10px;border:1px solid rgba(82,105,205,.28);border-radius:13px;background:rgba(17,27,70,.45)}
.pc283-flow-ready-meta>span{display:flex;align-items:center;gap:6px;color:#9fe8cf;font-size:9px}.pc283-flow-ready-meta svg{width:15px;height:15px}.pc283-flow-ready-meta>b{color:#a9b9e5;font-size:9px}
.pc283-flow-quick{display:flex;gap:6px;overflow-x:auto;margin-top:9px;padding-bottom:2px;scrollbar-width:none}.pc283-flow-quick::-webkit-scrollbar{display:none}
.pc283-flow-result{min-height:235px;margin-top:9px;padding:12px;resize:vertical}
.pc283-flow-cues-toggle{width:100%;min-height:42px;margin-top:8px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid rgba(92,103,174,.38);border-radius:13px;background:rgba(17,23,57,.80);color:#dce4ff;font-size:10px;font-weight:850}
.pc283-flow-cues-toggle svg{width:17px;height:17px;color:#d9baff}.pc283-flow-cues-toggle b{margin-left:auto;min-width:22px;padding:3px 6px;border-radius:999px;background:rgba(104,78,224,.32);color:#cdbfff;font-size:8px}
.pc283-flow-cues{display:grid;gap:7px;margin:8px 0 0;padding:0;list-style:none}.pc283-flow-cues[hidden]{display:none!important}
.pc283-flow-cues li{display:grid;gap:3px;padding:9px 10px;border:1px solid rgba(75,92,180,.24);border-radius:12px;background:rgba(12,20,54,.54)}
.pc283-flow-cues b{font-size:10px}.pc283-flow-cues span{color:#96a8d4;font-size:9px;line-height:1.35}
.pc283-flow-summary{margin:8px 2px 0;color:#91a2d0;font-size:9px;line-height:1.42}
@media(max-width:370px){
  .pc283-template-flow{left:7px;right:7px;width:auto;transform:none;padding-left:11px;padding-right:11px}
  .pc283-flow-preview{grid-template-columns:94px minmax(0,1fr)}
  .pc283-flow-cover{width:94px;height:122px}
  .pc283-flow-actions{grid-template-columns:1fr}
  .pc283-flow-head>div:first-child>strong{font-size:18px}
  .pc283-flow-result{min-height:210px}
}


/* v284 Templates: modal flow owns the bottom viewport and keeps actions visible. */
html.pc284-template-flow-open .pc128-dock{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.pc283-template-flow{
  padding-bottom:max(16px,calc(env(safe-area-inset-bottom,0px) + 10px));
}
.pc283-flow-actions{
  position:sticky;
  z-index:5;
  bottom:0;
  margin:10px -2px -2px;
  padding:16px 2px 2px;
  background:linear-gradient(180deg,rgba(8,11,34,0),rgba(8,11,34,.96) 34%,rgba(8,11,34,.995) 100%);
}
.pc283-flow-main{
  position:sticky;
  z-index:5;
  bottom:0;
  margin-top:10px;
  box-shadow:0 -10px 24px rgba(5,7,24,.52),0 12px 30px rgba(60,69,207,.25);
}


/* v286 Templates: catalog creates; Recent and My templates open only the editor. */
.pc286-catalog-create{grid-template-columns:1fr!important}
.pc286-catalog-create .is-primary{width:100%}
.pc286-my-templates{margin-top:2px}
.pc286-heart-icon{
  width:16px;height:16px;display:inline-grid;place-items:center;flex:0 0 16px;
  border:1px solid rgba(115,126,218,.46);border-radius:999px;
  color:#d5b7ff;font-size:11px;line-height:1;
}
.pc286-template-empty{
  min-width:210px;padding:14px 12px;border:1px dashed rgba(92,108,190,.28);
  border-radius:13px;color:#8292bd;font-size:10px;line-height:1.35;
}


/* v288 Templates: passive library cards, precise horizontal snap and a dock-safe unified editor. */
.pc279-recent-strip{
  scroll-snap-type:x mandatory!important;
  scroll-padding-inline:1px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
}
.pc279-recent-card{scroll-snap-stop:always}
.pc288-library-card-body{
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  cursor:default;
}
.pc279-recent-edit{
  z-index:4;
  width:28px!important;
  height:28px!important;
  right:3px!important;
  top:3px!important;
  border:1px solid rgba(111,126,203,.22)!important;
  border-radius:9px!important;
  background:rgba(7,11,31,.84)!important;
  color:#aebbe0!important;
  font-size:11px!important;
  letter-spacing:.04em!important;
  touch-action:manipulation;
}
.pc279-recent-edit:active{transform:scale(.92);background:rgba(35,44,91,.94)!important}
html.pc288-library-editor-open .pc128-dock,
html.pc288-library-editor-open .promptcam-editor-hub{
  display:none!important;
}
.pc136-template-editor-backdrop{
  z-index:30020!important;
  background:rgba(2,4,16,.74)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.pc288-library-editor{
  z-index:30021!important;
  bottom:max(8px,env(safe-area-inset-bottom))!important;
  width:min(540px,calc(100vw - 14px))!important;
  max-height:min(91dvh,760px)!important;
  padding:9px 14px max(12px,env(safe-area-inset-bottom))!important;
  border:1px solid rgba(77,100,210,.54)!important;
  border-radius:25px!important;
  background:linear-gradient(165deg,rgba(10,15,43,.995),rgba(4,7,24,.995))!important;
  box-shadow:0 -22px 80px rgba(0,0,0,.58),inset 0 1px 0 rgba(145,166,255,.09)!important;
}
.pc288-editor-grab{
  width:46px;height:4px;margin:0 auto 10px;border-radius:99px;
  background:rgba(130,145,205,.34);
}
.pc288-library-editor .pc136-template-editor-head{align-items:center;margin-bottom:9px}
.pc288-library-editor .pc136-template-editor-head>div{gap:2px}
.pc288-editor-kicker{
  color:#7e91c8;font-size:8px;font-weight:850;letter-spacing:.11em;
}
.pc288-library-editor .pc136-template-editor-head strong{font-size:18px;line-height:1.12}
.pc288-library-editor .pc136-template-editor-head small{font-size:10px;line-height:1.3}
.pc288-library-editor .pc136-template-editor-head>button{
  flex:0 0 39px;width:39px;height:39px;border-radius:13px;
  border:1px solid rgba(93,111,194,.34);background:rgba(17,23,58,.72);color:#d5ddf5;
}
.pc288-library-editor label>span,.pc288-library-editor .pc262-image-field legend{
  color:#9eadd4;font-size:10px;font-weight:800;
}
.pc288-library-editor input,.pc288-library-editor textarea{
  border-radius:15px!important;
  border-color:rgba(74,102,196,.45)!important;
  background:linear-gradient(150deg,rgba(9,14,39,.98),rgba(5,8,25,.99))!important;
  font-size:14px!important;
}
.pc288-library-editor textarea{min-height:230px!important}
.pc288-library-editor .pc288-editor-cover[hidden]{display:none!important}
.pc288-library-editor .pc136-template-editor-actions{
  position:sticky;
  z-index:5;
  bottom:-1px;
  grid-template-columns:.78fr 1.22fr;
  gap:9px;
  margin:10px -3px -3px;
  padding:11px 3px 3px;
  background:linear-gradient(180deg,rgba(5,8,25,0),rgba(5,8,25,.96) 27%,rgba(5,8,25,.995) 100%);
}
.pc288-library-editor .pc136-template-editor-actions button{
  height:49px;border-radius:15px;font-size:12px;
}
.pc288-library-editor .pc136-template-editor-actions .is-primary{
  box-shadow:0 9px 25px rgba(88,63,255,.25);
}
@media(max-width:380px){
  .pc288-library-editor{max-height:92dvh!important}
  .pc288-library-editor textarea{min-height:190px!important}
}


/* v289 Templates: compact cover picker, save/apply editor state and refined featured CTA. */
.pc288-library-editor .pc262-image-field{margin:10px 0 6px!important}
.pc288-library-editor .pc262-image-field legend{margin-bottom:7px!important}
.pc288-library-editor .pc289-cover-choices{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
}
.pc288-library-editor .pc289-cover-choice{
  position:relative!important;
  display:block!important;
  flex:0 0 58px!important;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  padding:3px!important;
  border:1px solid rgba(76,97,177,.46)!important;
  border-radius:14px!important;
  background:rgba(9,14,39,.82)!important;
  box-sizing:border-box!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease!important;
}
.pc288-library-editor .pc289-cover-choice img{
  width:100%!important;
  height:100%!important;
  aspect-ratio:1!important;
  object-fit:cover!important;
  border-radius:10px!important;
}
.pc288-library-editor .pc289-cover-choice:has(input:checked){
  border-color:#52d8ff!important;
  background:linear-gradient(145deg,rgba(19,170,230,.18),rgba(121,55,255,.20))!important;
  box-shadow:0 0 0 1px rgba(82,216,255,.58),0 0 18px rgba(72,173,255,.22),0 8px 22px rgba(80,47,220,.18)!important;
  transform:translateY(-1px);
}
.pc288-library-editor .pc289-cover-choice:has(input:checked)::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:16px;
  pointer-events:none;
  background:linear-gradient(120deg,rgba(46,220,255,.22),rgba(159,64,255,.20));
  filter:blur(5px);
  z-index:-1;
}
.pc288-library-editor .pc289-cover-choice input:focus-visible+img{outline:2px solid #66dcff!important;outline-offset:1px}
.pc288-library-editor .pc136-template-status[data-tone="success"]{color:#64e4b3}
.pc288-library-editor .pc136-template-editor-actions .is-primary.is-apply{
  border-color:rgba(87,189,255,.72);
  box-shadow:0 9px 25px rgba(61,96,255,.22);
}
.pc279-template-featured-art{object-position:51% center!important}
.pc279-template-featured-copy button{border-radius:15px!important}


/* v290 Templates: apply into Scenario, editable Recent covers, freer swipe and visible featured face. */
.pc279-template-featured-art{
  object-position:30% center!important;
  transform:scale(1.12) translateX(6%)!important;
  transform-origin:center center!important;
}
.pc279-recent-strip{
  scroll-snap-type:x proximity!important;
  scroll-padding-inline:6px!important;
  padding-right:18px!important;
  touch-action:pan-x pan-y;
  cursor:grab;
}
.pc279-recent-card{scroll-snap-stop:normal!important}
.pc279-recent-strip.is-pc290-dragging{
  cursor:grabbing;
  scroll-snap-type:none!important;
  user-select:none;
  -webkit-user-select:none;
}


/* v291 Templates: unified personal filters, expanded library grids and 10 structured catalog templates. */
.pc279-recent-strip.is-pc291-expanded{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  overflow:visible!important;
  padding:0!important;
  scroll-snap-type:none!important;
  cursor:default!important;
  touch-action:auto!important;
}
.pc279-recent-strip.is-pc291-expanded .pc279-recent-card{
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  flex:none!important;
  overflow:hidden!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,rgba(17,22,54,.93),rgba(9,12,34,.95))!important;
}
.pc279-recent-strip.is-pc291-expanded .pc288-library-card-body{
  display:grid!important;
  grid-template-columns:1fr!important;
  align-items:stretch!important;
  gap:0!important;
  width:100%!important;
  height:auto!important;
  padding:0 0 8px!important;
}
.pc279-recent-strip.is-pc291-expanded .pc279-recent-thumb{
  width:100%!important;
  height:auto!important;
  flex:none!important;
  aspect-ratio:3/4!important;
  border-radius:0!important;
  background:#11163c!important;
}
.pc279-recent-strip.is-pc291-expanded .pc279-recent-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.pc279-recent-strip.is-pc291-expanded .pc279-recent-copy{
  display:grid!important;
  gap:5px!important;
  padding:9px 8px 2px!important;
}
.pc279-recent-strip.is-pc291-expanded .pc279-recent-copy strong{
  min-height:28px!important;
  -webkit-line-clamp:2!important;
  font-size:11.2px!important;
  line-height:1.18!important;
}
.pc279-recent-strip.is-pc291-expanded .pc279-recent-copy small{
  min-height:24px!important;
  display:-webkit-box!important;
  overflow:hidden!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  color:#8495c2!important;
  font-size:8.6px!important;
  line-height:1.28!important;
}
.pc279-recent-strip.is-pc291-expanded .pc279-recent-edit{
  top:6px!important;
  right:6px!important;
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
  background:rgba(5,9,29,.9)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
}
.pc279-recent-strip.is-pc291-expanded .pc286-template-empty{
  grid-column:1/-1;
  min-width:0!important;
}

@media(max-width:350px){
  .pc279-recent-strip.is-pc291-expanded{gap:6px!important}
  .pc279-recent-strip.is-pc291-expanded .pc279-recent-copy{padding:8px 6px 2px!important}
  .pc279-recent-strip.is-pc291-expanded .pc279-recent-copy strong{font-size:10px!important}
  .pc279-recent-strip.is-pc291-expanded .pc279-recent-copy small{font-size:8px!important}
}


/* v292 Templates: dedicated artwork for structured catalog cards. */
.pc292-popular-art{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:3/4!important;
  object-fit:cover!important;
  object-position:center!important;
  background-image:none!important;
}
.pc283-flow-cover.is-pc292-photo{
  overflow:hidden;
  background:#0d1234;
}
.pc283-flow-cover.is-pc292-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}


/* v294 Templates: clean content categories and stronger scenario shelf headings. */
.pc294-shelf-icon{
  width:19px!important;
  height:19px!important;
  flex:0 0 19px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  line-height:1!important;
}
.pc294-shelf-icon svg{
  width:18px!important;
  height:18px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.pc294-shelf-icon.is-recent{
  color:#45dfff!important;
  filter:drop-shadow(0 0 5px rgba(69,223,255,.48));
}
.pc294-shelf-icon.is-mine{
  color:#c96bff!important;
  filter:drop-shadow(0 0 5px rgba(201,107,255,.44));
}
.pc279-template-section-head h2{gap:7px!important}


/* v297 Pro: magnetic sticky latch with 70% release hysteresis and spring return. */
html[data-pc128-page="pro"] .pc238-pro-card{
  transform:translate3d(0,var(--pc297-pro-magnet-shift,0px),0);
  transform-origin:50% 0;
}
html[data-pc128-page="pro"] .pc238-pro-card.is-pc297-magnet-held{
  transition:none!important;
  will-change:transform;
}
html[data-pc128-page="pro"] .pc238-pro-card.is-pc297-releasing{
  transition:transform .34s cubic-bezier(.16,.88,.24,1.08)!important;
  will-change:transform;
}
html[data-pc128-page="pro"] .pc238-pro-card.is-pc297-returning{
  filter:brightness(1.015);
}
html[data-pc128-page="pro"] .pc238-pro-card.pc297-pro-magnet-lock{
  animation:pc297ProMagnetLock .31s cubic-bezier(.18,.9,.24,1.12);
}
@keyframes pc297ProMagnetLock{
  0%{scale:.991}
  58%{scale:1.006}
  100%{scale:1}
}
@media(prefers-reduced-motion:reduce){
  html[data-pc128-page="pro"] .pc238-pro-card.is-pc297-releasing{transition:none!important}
  html[data-pc128-page="pro"] .pc238-pro-card.pc297-pro-magnet-lock{animation:none!important}
}

/* v298 Pro: an obvious spring when the card catches the account header. */
html[data-pc128-page="pro"] .pc238-pro-card.pc297-pro-magnet-lock{
  animation:pc298ProMagnetCatch .42s cubic-bezier(.18,.86,.25,1.08);
}
@keyframes pc298ProMagnetCatch{
  0%{translate:0 13px;scale:.984}
  56%{translate:0 -5px;scale:1.008}
  78%{translate:0 2px;scale:.998}
  100%{translate:0 0;scale:1}
}
@media(prefers-reduced-motion:reduce){
  html[data-pc128-page="pro"] .pc238-pro-card.pc297-pro-magnet-lock{animation:none!important}
}

/* v304 Pro: pin the membership card just below the visible identity header. */
html[data-pc128-page="pro"] .pc238-pro-card{top:var(--pc304-pro-sticky-top,var(--pc277-commerce-sticky-top))!important}

/* v305 Pro: resist a downward pull and release without vertical overshoot. */
html[data-pc128-page="pro"] .pc238-pro-card.is-pc297-releasing{
  transition:transform .38s cubic-bezier(.2,.72,.24,1)!important;
}
html[data-pc128-page="pro"] .pc238-pro-card.pc297-pro-magnet-lock{
  animation:pc305ProMagnetCatch .28s cubic-bezier(.22,.78,.24,1);
}
@keyframes pc305ProMagnetCatch{
  from{translate:0 8px;scale:.996}
  to{translate:0 0;scale:1}
}
@media(prefers-reduced-motion:reduce){
  html[data-pc128-page="pro"] .pc238-pro-card.pc297-pro-magnet-lock{animation:none!important}
}

/* v306 Tokens: shared balance and finance-menu magnet with a delayed handoff. */
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card{
  top:var(--pc306-token-sticky-top,var(--pc277-commerce-sticky-top))!important;
  transform:translate3d(0,calc(var(--pc306-token-magnet-shift,0px) - var(--pc306-token-fly-distance,0px)),0);
  transform-origin:50% 0;
}
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc306-magnet-held{
  transition:none!important;
  will-change:transform;
}
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc306-handoff{
  transition:transform .4s cubic-bezier(.2,.72,.24,1)!important;
}
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc306-releasing{
  transition:transform .38s cubic-bezier(.2,.72,.24,1)!important;
}
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.pc235-sticky-snap,
html[data-pc128-page="tokens"] .pc232-finance-tabs.pc235-sticky-snap{animation:none!important}
html[data-pc128-page="tokens"] .pc232-finance-tabs{
  top:var(--pc306-token-tabs-top,calc(var(--pc277-commerce-sticky-top) + 8px + var(--pc234-balance-height,292px)));
}
html[data-pc128-page="tokens"] .pc232-finance-tabs.is-pc306-handoff{
  transition:top .4s cubic-bezier(.2,.72,.24,1);
}
html[data-pc128-page="tokens"] .pc232-token-finance{
  padding-bottom:calc(118px + var(--pc306-handoff-space,0px));
}
@media(prefers-reduced-motion:reduce){
  html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc306-handoff,
  html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc306-releasing,
  html[data-pc128-page="tokens"] .pc232-finance-tabs.is-pc306-handoff{transition:none!important}
}

/* v307 Commerce: catch before the natural sticky edge; detach in one direction. */
html[data-pc128-page="pro"] .pc238-pro-card.is-pc307-catching,
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc307-catching{
  transition:transform .27s cubic-bezier(.18,.85,.28,1)!important;
}
html[data-pc128-page="pro"] .pc238-pro-card.is-pc297-releasing,
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc306-releasing{
  transition:transform .32s cubic-bezier(.2,.72,.28,1)!important;
}
html[data-pc128-page="pro"] .pc238-pro-card.is-pc307-detaching,
html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc307-detaching{
  animation:pc307CardDetach .32s ease-out;
}
@keyframes pc307CardDetach{
  0%{scale:1}
  42%{scale:.985}
  100%{scale:1}
}
html[data-pc128-page="tokens"] .pc232-finance-tabs.is-pc307-releasing{
  transition:top .32s cubic-bezier(.2,.72,.28,1);
}
@media(prefers-reduced-motion:reduce){
  html[data-pc128-page="pro"] .pc238-pro-card.is-pc307-catching,
  html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc307-catching,
  html[data-pc128-page="pro"] .pc238-pro-card.is-pc297-releasing,
  html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc306-releasing,
  html[data-pc128-page="tokens"] .pc232-finance-tabs.is-pc307-releasing{transition:none!important}
  html[data-pc128-page="pro"] .pc238-pro-card.is-pc307-detaching,
  html[data-pc128-page="tokens"] .pc228-tokens-shell>.pc128-balance-card.is-pc307-detaching{animation:none!important}
}

/* v308 Account headers: shared identity on settings pages and a quiet Profile shade. */
html[data-pc128-page="earpiece"] .pc128-page-layer,
html[data-pc128-page="coach-settings"] .pc128-page-layer,
html[data-pc128-page="profile"] .pc128-page-layer{
  --pc277-account-sticky-top:max(18px,calc(var(--app-safe-top,0px) + 8px));
  --pc277-account-header-lift:12px;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="earpiece"] .pc128-page-layer,
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="coach-settings"] .pc128-page-layer,
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="profile"] .pc128-page-layer{
  --pc277-account-header-lift:84px;
}
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="earpiece"] .pc277-account-settings,
html[data-telegram="true"][data-telegram-device="mobile"][data-pc128-page="coach-settings"] .pc277-account-settings{
  transform:translate3d(7px,0,0);
}
.pc308-profile-top-bar{
  position:sticky;
  top:var(--pc277-account-sticky-top);
  z-index:14;
  align-self:start;
  min-height:56px;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  transform:translate3d(0,calc(-1 * var(--pc277-account-header-lift)),0);
}

/* v314: every account and creation page shares the commerce pull gesture. */
html[data-pc128-page] .pc128-page-layer>.pc128-shell[data-pc232-pulling="true"],
html[data-pc128-page] .pc128-page-layer>.pc128-shell[data-pc232-returning="true"]{
  transform:translate3d(0,var(--pc232-pull-offset,0px),0);
  transform-origin:50% 0;
  will-change:transform;
}
html[data-pc128-page] .pc128-page-layer>.pc128-shell[data-pc232-pulling="true"]{transition:none!important}
html[data-pc128-page] .pc128-page-layer>.pc128-shell[data-pc232-returning="true"]{transition:transform .28s cubic-bezier(.22,.86,.25,1.08)!important}
@media(prefers-reduced-motion:reduce){
  html[data-pc128-page] .pc128-page-layer>.pc128-shell[data-pc232-pulling="true"],
  html[data-pc128-page] .pc128-page-layer>.pc128-shell[data-pc232-returning="true"]{transition:none!important}
}

/* v315: personal scenario shelves expand downward and collapse on the same control. */
.pc279-template-section-head>button[data-pc279-recent-all] svg,
.pc279-template-section-head>button[data-pc286-my-all] svg{
  transform:rotate(0deg);
  transition:transform .22s cubic-bezier(.2,.8,.25,1);
}
.pc279-template-section-head>button[aria-expanded="true"] svg{transform:rotate(90deg)}
.pc279-recent-strip.is-pc291-expanded{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(min-width:480px){
  .pc279-recent-strip.is-pc291-expanded{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){
  .pc279-template-section-head>button[data-pc279-recent-all] svg,
  .pc279-template-section-head>button[data-pc286-my-all] svg{transition:none}
}

/* v316: saved scripts use the same three-across cover cards as Scenario quick access. */
[data-pc286-my-strip],
[data-pc286-my-strip].is-pc291-expanded{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  overflow:visible!important;
  padding:0!important;
  scroll-snap-type:none!important;
  touch-action:auto!important;
  cursor:default!important;
}
[data-pc286-my-strip] .pc286-my-template-card{
  position:relative;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:.78;
  overflow:hidden;
  border:1px solid rgba(70,135,255,.58)!important;
  border-radius:16px!important;
  background:#0b1538!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 8px 18px rgba(1,3,15,.26);
}
[data-pc286-my-strip] .pc286-my-template-card::after{
  content:"";
  position:absolute;
  z-index:1;
  inset:42% 0 0;
  background:linear-gradient(180deg,transparent,rgba(3,5,19,.32) 24%,rgba(3,5,19,.94) 96%);
  pointer-events:none;
}
[data-pc286-my-strip] .pc288-library-card-body,
[data-pc286-my-strip].is-pc291-expanded .pc288-library-card-body{
  position:absolute;
  inset:0;
  display:block!important;
  width:100%!important;
  height:100%!important;
  padding:0!important;
}
[data-pc286-my-strip] .pc279-recent-thumb,
[data-pc286-my-strip].is-pc291-expanded .pc279-recent-thumb{
  position:absolute;
  inset:0;
  display:block;
  width:100%!important;
  height:100%!important;
  aspect-ratio:auto!important;
  border-radius:0!important;
}
[data-pc286-my-strip] .pc279-recent-thumb img{width:100%;height:100%;object-fit:cover}
[data-pc286-my-strip] .pc279-recent-copy,
[data-pc286-my-strip].is-pc291-expanded .pc279-recent-copy{
  position:absolute;
  z-index:2;
  left:0;
  right:0;
  bottom:0;
  display:block!important;
  padding:0 8px 10px!important;
}
[data-pc286-my-strip] .pc279-recent-copy strong,
[data-pc286-my-strip].is-pc291-expanded .pc279-recent-copy strong{
  display:-webkit-box!important;
  min-height:0!important;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2!important;
  color:#fff;
  font-size:11.5px!important;
  line-height:1.13!important;
  font-weight:850;
  text-shadow:0 2px 8px rgba(0,0,0,.7);
}
[data-pc286-my-strip] .pc286-template-empty{grid-column:1/-1}

/* v317: Scenario shares the saved-script header and three-column expandable cover grid. */
.pc316-scenario-library{gap:11px}
.pc316-scenario-library .pc279-template-section-head{padding:0 1px}
.pc316-scenario-library [data-pc316-scenario-all] svg{
  transform:rotate(0deg);
  transition:transform .22s cubic-bezier(.2,.8,.25,1);
}
.pc316-scenario-library [data-pc316-scenario-all][aria-expanded="true"] svg{transform:rotate(90deg)}

@media(prefers-reduced-motion:reduce){
  .pc316-scenario-library [data-pc316-scenario-all] svg{transition:none}
}

/* v318: collapsed Scenario cards swipe horizontally; expanded cards scroll with the page. */
.pc316-scenario-library [data-pc286-my-strip]:not(.is-pc291-expanded){
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity!important;
  scroll-padding-inline:1px;
  overscroll-behavior-x:contain;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y!important;
  cursor:grab!important;
}
.pc316-scenario-library [data-pc286-my-strip]:not(.is-pc291-expanded)::-webkit-scrollbar{display:none}
.pc316-scenario-library [data-pc286-my-strip]:not(.is-pc291-expanded) .pc286-my-template-card{
  flex:0 0 calc((100% - 16px)/3)!important;
  width:calc((100% - 16px)/3)!important;
  min-width:calc((100% - 16px)/3)!important;
  scroll-snap-align:start;
}
.pc316-scenario-library [data-pc286-my-strip].is-pc318-dragging{scroll-snap-type:none!important;cursor:grabbing!important}
.pc316-scenario-library [data-pc286-my-strip].is-pc291-expanded{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  overflow:visible!important;
  touch-action:auto!important;
  cursor:default!important;
}
html[data-pc128-page="scenario"][data-pc318-library-expanded="true"] .pc316-scenario-library{
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  transform:none;
}
html[data-pc128-page="scenario"][data-pc318-library-expanded="true"] .pc263-workspace{
  position:relative;
  top:auto;
  height:0!important;
  min-height:0!important;
  opacity:0;
  transform:translate3d(0,52px,0) scale(.985);
  overflow:hidden;
  pointer-events:none;
}
html[data-pc128-page="scenario"][data-pc318-library-expanded="true"].pc261-editing .pc263-workspace{height:0!important}
html[data-pc128-page="scenario"][data-pc318-library-expanded="true"] .pc263-scroll-space{display:none}
.pc316-scenario-library.is-pc318-pulling,
.pc316-scenario-library.is-pc318-returning{
  transform:translate3d(0,var(--pc318-pull,0px),0)!important;
}
.pc316-scenario-library.is-pc318-pulling{transition:none!important}
.pc316-scenario-library.is-pc318-returning{transition:transform .28s cubic-bezier(.2,.86,.25,1.12)!important}
.pc316-scenario-library.is-pc318-settling{
  transition:height .38s cubic-bezier(.2,.86,.25,1.12)!important;
  animation:pc318-scenario-spring .38s cubic-bezier(.2,.86,.25,1.12);
}
@keyframes pc318-scenario-spring{
  0%{transform:translate3d(0,13px,0)}
  58%{transform:translate3d(0,-4px,0)}
  100%{transform:translate3d(0,0,0)}
}
@media(prefers-reduced-motion:reduce){
  .pc316-scenario-library.is-pc318-returning,
  .pc316-scenario-library.is-pc318-settling{transition:none!important;animation:none!important}
}

/* v319: the card grid and work area trade places with a gentle spring. */
html[data-pc128-page="scenario"] .pc263-workspace{
  transition:height .62s cubic-bezier(.18,.83,.22,1.04),transform .62s cubic-bezier(.18,.83,.22,1.04),opacity .44s ease;
  transform-origin:top center;
}
.pc316-scenario-library.is-pc319-transitioning{
  transition:height .62s cubic-bezier(.18,.83,.22,1.04)!important;
  will-change:height;
}
.pc316-scenario-library .pc286-my-template-card.is-pc319-entering{
  animation:pc319-scenario-card-rise .58s cubic-bezier(.18,.84,.22,1.06) both;
  animation-delay:calc(var(--pc319-enter-index,0) * 32ms);
}
@keyframes pc319-scenario-card-rise{
  0%{opacity:0;transform:translate3d(0,22px,0) scale(.96)}
  65%{opacity:1;transform:translate3d(0,-3px,0) scale(1.01)}
  100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
  html[data-pc128-page="scenario"] .pc263-workspace,
  .pc316-scenario-library.is-pc319-transitioning{transition:none!important}
  .pc316-scenario-library .pc286-my-template-card.is-pc319-entering{animation:none!important}
}

/* v320: keep the Scenario heading above its tabs throughout the spring return. */
html[data-pc128-page="scenario"] .pc263-workspace{
  grid-template-rows:max-content minmax(0,1fr);
}
html[data-pc128-page="scenario"] .pc263-workspace.is-pc320-restoring{overflow:hidden}
html[data-pc128-page="scenario"] .pc261-mode-panel{
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:max-content;
}
html[data-pc128-page="scenario"] .pc320-mode-heading{
  display:grid;
  gap:10px;
  flex:none;
  padding:0 2px;
}
html[data-pc128-page="scenario"] .pc320-mode-kicker{
  color:#9aacdf;
  font-size:9px;
  font-weight:850;
  letter-spacing:.22em;
  line-height:1.15;
}
html[data-pc128-page="scenario"] .pc320-mode-heading .pc261-mode-title{
  margin:-2px 0 3px;
  color:#fff;
  font-size:25px;
  line-height:1.02;
  font-weight:850;
  letter-spacing:-.035em;
}
html[data-pc128-page="scenario"] .pc261-mode-tabs.pc232-finance-tabs{
  flex:none;
  align-self:stretch;
}

/* v322: Scenario cover swipes freely; the title below and upper-right dots open its editor. */
.pc316-scenario-library .pc286-my-template-card{cursor:default}
.pc316-scenario-library .pc279-recent-thumb,
.pc316-scenario-library .pc279-recent-thumb img{
  pointer-events:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
}
.pc316-scenario-library .pc321-scenario-edit{
  position:absolute;
  z-index:4;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  align-items:flex-end;
  justify-content:flex-start;
  width:100%;
  min-height:51px;
  max-height:70px;
  padding:21px 8px 8px;
  border:0;
  border-radius:0 0 15px 15px;
  background:linear-gradient(180deg,transparent,rgba(3,5,19,.55) 42%,rgba(3,5,19,.96));
  color:#fff;
  text-align:left;
  cursor:pointer;
  touch-action:pan-x pan-y;
}
.pc316-scenario-library .pc321-scenario-title{
  display:-webkit-box;
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  font-size:11.5px;
  line-height:1.13;
  font-weight:850;
  text-shadow:0 2px 8px rgba(0,0,0,.7);
}
.pc316-scenario-library .pc321-scenario-edit:focus-visible{outline:2px solid #60d8ff;outline-offset:-3px}

/* Profile language control. */
.pc325-language-row .pc325-language-change{
  flex:none;
  padding:7px 10px;
  border:1px solid rgba(91,143,255,.38);
  border-radius:999px;
  background:rgba(58,82,191,.16);
  color:#b9d1ff;
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
}
.pc325-language-row:focus-visible{outline:2px solid #88b6ff;outline-offset:-2px}
@media(max-width:350px){.pc325-language-row .pc325-language-change{padding:6px 7px;font-size:9px}}

/* v331 Earpiece accordion typography follows Camera Settings. */
@media(max-width:560px){
  .pc276-earpiece-shell .pc191-accordion>summary strong{
    font-size:16px!important;
    line-height:1.18!important;
  }
  .pc276-earpiece-shell .pc191-accordion>summary small{
    font-size:10.5px!important;
    line-height:1.4!important;
  }
}

/* v332 Earpiece accordion icons: one clear symbol before every heading. */
.pc276-earpiece-shell .pc191-accordion>summary>.pc191-summary-main{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
}
.pc276-earpiece-shell .pc191-summary-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.pc276-earpiece-shell .pc191-summary-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border:1px solid rgba(112,129,234,.22);
  border-radius:11px;
  background:linear-gradient(145deg,rgba(40,60,145,.36),rgba(76,38,157,.22));
  color:#aabaff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.pc276-earpiece-shell .pc191-summary-icon svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.pc276-earpiece-shell .pc191-accordion[open] .pc191-summary-icon{
  border-color:rgba(75,205,255,.36);
  color:#8fe9ff;
  background:linear-gradient(145deg,rgba(18,117,171,.28),rgba(116,55,226,.24));
}

/* v333 Earpiece accordion icons: no outline, keep only the inner glow. */
.pc276-earpiece-shell .pc191-summary-icon{
  border:0!important;
  box-shadow:none!important;
}
.pc276-earpiece-shell .pc191-accordion[open] .pc191-summary-icon{
  border:0!important;
  box-shadow:none!important;
}

/* v334 Templates featured CTA: match the Tokens Top up typography exactly. */
.pc279-template-featured-copy button{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif!important;
  font-size:13px!important;
  font-weight:760!important;
  letter-spacing:-.012em!important;
}
.pc279-template-featured-copy button b{
  font:inherit!important;
  letter-spacing:inherit!important;
}
@media(max-width:370px){
  .pc279-template-featured-copy button{font-size:12.4px!important}
}

/* v335 Templates featured CTA: match Tokens Top up corner radius. */
.pc279-template-featured-copy button{
  border-radius:16px!important;
}

/* v336 Templates featured CTA: exact Tokens Top up height and rounding. */
.pc279-template-featured-copy button{
  height:49px!important;
  min-height:49px!important;
  border-radius:16px!important;
}
