/* JoyJoy Cabinet — HowTo page + account menu help animation. */
.account-user-dropdown .account-menu-link-howto .account-menu-icon-help{transform-box:fill-box;transform-origin:center;animation:jjHowtoQuestionAttention 6.2s cubic-bezier(.2,.78,.2,1) infinite;will-change:transform,opacity}
.account-user-dropdown .account-menu-link-howto .menu-help-dot{transform-box:fill-box;transform-origin:center;animation:jjHowtoQuestionBlink 6.2s ease infinite}
.account-user-dropdown .account-menu-link-howto:hover .account-menu-icon-help,.account-user-dropdown .account-menu-link-howto:focus-visible .account-menu-icon-help{animation:jjHowtoQuestionHover .72s cubic-bezier(.2,.78,.2,1)}
.account-user-dropdown .account-menu-link-howto:hover .menu-help-dot,.account-user-dropdown .account-menu-link-howto:focus-visible .menu-help-dot{animation:jjHowtoQuestionHoverBlink .72s ease}
@keyframes jjHowtoQuestionAttention{0%,68%,100%{transform:scale(1);opacity:1}74%{transform:scale(1.16);opacity:1}78%{transform:scale(1.23);opacity:.14}82%{transform:scale(1.23);opacity:1}90%{transform:scale(1);opacity:1}}
@keyframes jjHowtoQuestionBlink{0%,73%,77%,81%,100%{opacity:1}75%,79%{opacity:.08}}
@keyframes jjHowtoQuestionHover{0%,100%{transform:scale(1);opacity:1}42%{transform:scale(1.25);opacity:1}57%{transform:scale(1.25);opacity:.12}70%{transform:scale(1.18);opacity:1}}
@keyframes jjHowtoQuestionHoverBlink{0%,40%,68%,100%{opacity:1}52%{opacity:.04}}
body[data-account-page="howto"]{--howto-tune:#7357ff;--howto-tune-2:#31a6ff;--howto-shield:#1fb68d;--howto-shield-2:#57d8b8;--howto-game:#ff7948;--howto-game-2:#ffb340}
body[data-account-page="howto"] .howto-shell{display:grid;gap:18px;min-width:0}
body[data-account-page="howto"] .howto-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:27px;border-radius:24px;overflow:hidden;border:1px solid rgba(99,102,241,.18);background:radial-gradient(circle at 92% 0%,rgba(115,87,255,.18),transparent 38%),radial-gradient(circle at 4% 100%,rgba(49,166,255,.11),transparent 42%),var(--account-card-bg,#fff);box-shadow:0 16px 44px rgba(15,23,42,.08)}
body[data-account-page="howto"] .howto-hero h1{margin:0;font-size:clamp(28px,4vw,42px);line-height:1.05;letter-spacing:-.035em}
body[data-account-page="howto"] .howto-hero p:last-child{max-width:780px;margin:12px 0 0;color:var(--account-muted,#64748b);line-height:1.65}
body[data-account-page="howto"] .howto-hero-question{width:90px;height:90px;display:grid;place-items:center;border-radius:27px;color:#fff;font-size:53px;font-weight:900;line-height:1;background:linear-gradient(145deg,var(--howto-tune),var(--howto-tune-2));box-shadow:0 16px 38px rgba(88,83,255,.27);animation:jjHowtoHeroQuestion 6.2s cubic-bezier(.2,.78,.2,1) infinite}
@keyframes jjHowtoHeroQuestion{0%,68%,100%{transform:scale(1);opacity:1}75%{transform:scale(1.08);opacity:1}79%{transform:scale(1.14);opacity:.14}83%{transform:scale(1.14);opacity:1}91%{transform:scale(1);opacity:1}}
body[data-account-page="howto"] .howto-bot-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
body[data-account-page="howto"] .howto-bot-button{--howto-card:#7357ff;--howto-soft:rgba(115,87,255,.10);position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:13px;min-height:104px;padding:17px;border-radius:19px;border:1px solid color-mix(in srgb,var(--howto-card) 27%,transparent);color:var(--account-text,#172033);text-decoration:none;background:linear-gradient(135deg,var(--howto-soft),transparent 72%),var(--account-card-bg,#fff);box-shadow:0 11px 29px rgba(15,23,42,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
body[data-account-page="howto"] .howto-bot-button::after{content:"";position:absolute;z-index:-1;width:120px;height:120px;right:-42px;top:-50px;border-radius:50%;background:var(--howto-card);opacity:.14}
body[data-account-page="howto"] .howto-bot-button:hover,body[data-account-page="howto"] .howto-bot-button:focus-visible{transform:translateY(-3px);box-shadow:0 17px 38px rgba(15,23,42,.12);outline:none}
body[data-account-page="howto"] .howto-bot-button--shieldy{--howto-card:var(--howto-shield);--howto-soft:rgba(31,182,141,.10)}body[data-account-page="howto"] .howto-bot-button--gamey{--howto-card:var(--howto-game);--howto-soft:rgba(255,121,72,.11)}
body[data-account-page="howto"] .howto-bot-button img{width:58px;height:58px;border-radius:16px;object-fit:cover;box-shadow:0 8px 22px rgba(15,23,42,.12)}body[data-account-page="howto"] .howto-bot-button-copy{min-width:0}body[data-account-page="howto"] .howto-bot-button-copy strong{display:block;font-size:19px;line-height:1.1}body[data-account-page="howto"] .howto-bot-button-copy span{display:block;margin-top:5px;color:var(--account-muted,#64748b);font-size:12.5px;line-height:1.4}body[data-account-page="howto"] .howto-bot-button-arrow{font-size:24px;opacity:.65}
body[data-account-page="howto"] .howto-admin-entry{display:flex;justify-content:flex-end;min-width:0}body[data-account-page="howto"] .howto-admin-entry[hidden]{display:none!important}body[data-account-page="howto"] .howto-admin-entry button{min-height:44px;display:inline-flex;align-items:center;gap:8px}body[data-account-page="howto"] .howto-admin-entry button::before{content:"✎";font-size:16px}
body[data-account-page="howto"] .howto-manual{--manual-accent:var(--howto-tune);--manual-accent2:var(--howto-tune-2);--manual-soft:rgba(115,87,255,.075);--manual-border:rgba(115,87,255,.21);scroll-margin-top:92px;overflow:hidden;border-radius:23px;border:1px solid var(--manual-border);background:var(--account-card-bg,#fff);box-shadow:0 16px 46px rgba(15,23,42,.07)}
body[data-account-page="howto"] .howto-manual--shieldy{--manual-accent:var(--howto-shield);--manual-accent2:var(--howto-shield-2);--manual-soft:rgba(31,182,141,.075);--manual-border:rgba(31,182,141,.22)}body[data-account-page="howto"] .howto-manual--gamey{--manual-accent:var(--howto-game);--manual-accent2:var(--howto-game-2);--manual-soft:rgba(255,121,72,.075);--manual-border:rgba(255,121,72,.22)}
body[data-account-page="howto"] .howto-manual-head{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:center;gap:15px;padding:20px 22px;border-bottom:1px solid var(--manual-border);background:radial-gradient(circle at 96% 15%,var(--manual-soft),transparent 36%),linear-gradient(135deg,var(--manual-soft),transparent 60%)}
body[data-account-page="howto"] .howto-manual-head img{width:64px;height:64px;border-radius:18px;object-fit:cover}body[data-account-page="howto"] .howto-manual-head-copy{min-width:0}body[data-account-page="howto"] .howto-manual-head-copy>span{color:var(--manual-accent);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}body[data-account-page="howto"] .howto-manual-head-copy h2{margin:3px 0;font-size:27px}body[data-account-page="howto"] .howto-manual-head-copy p{margin:0;color:var(--account-muted,#64748b);line-height:1.5}
body[data-account-page="howto"] .howto-open-bot{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:12px;color:#fff;font-weight:900;text-decoration:none;background:linear-gradient(135deg,var(--manual-accent),var(--manual-accent2))}
body[data-account-page="howto"] .howto-manual-body{display:grid;gap:18px;padding:22px;min-width:0}body[data-account-page="howto"] .howto-quickstart{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;counter-reset:howto-step}body[data-account-page="howto"] .howto-step{counter-increment:howto-step;min-width:0;padding:14px;border-radius:15px;background:var(--manual-soft);border:1px solid var(--manual-border)}body[data-account-page="howto"] .howto-step::before{content:counter(howto-step);display:grid;place-items:center;width:28px;height:28px;margin-bottom:9px;border-radius:9px;color:#fff;font-size:13px;font-weight:900;background:linear-gradient(135deg,var(--manual-accent),var(--manual-accent2))}body[data-account-page="howto"] .howto-step strong{display:block;font-size:14px}body[data-account-page="howto"] .howto-step p{margin:6px 0 0;color:var(--account-muted,#64748b);font-size:12.5px;line-height:1.5}
body[data-account-page="howto"] .howto-subtitle{display:flex;align-items:center;gap:9px;margin:0;font-size:18px}body[data-account-page="howto"] .howto-subtitle::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--manual-accent);box-shadow:0 0 0 5px var(--manual-soft)}body[data-account-page="howto"] .howto-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body[data-account-page="howto"] .howto-module{min-width:0;padding:14px 15px;border-radius:15px;border:1px solid var(--manual-border);background:color-mix(in srgb,var(--account-card-bg,#fff) 95%,var(--manual-soft))}body[data-account-page="howto"] .howto-module strong{display:block;font-size:14px}body[data-account-page="howto"] .howto-module p{margin:5px 0 0;color:var(--account-muted,#64748b);font-size:12.5px;line-height:1.55}
body[data-account-page="howto"] .howto-details{display:grid;gap:8px}body[data-account-page="howto"] .howto-details details{border:1px solid var(--manual-border);border-radius:14px;background:var(--account-card-bg,#fff);overflow:hidden}body[data-account-page="howto"] .howto-details summary{min-height:48px;display:flex;align-items:center;cursor:pointer;padding:0 14px;font-weight:900;list-style:none;user-select:none}body[data-account-page="howto"] .howto-details summary::-webkit-details-marker{display:none}body[data-account-page="howto"] .howto-details summary::after{content:"+";margin-left:auto;color:var(--manual-accent);font-size:20px}body[data-account-page="howto"] .howto-details details[open] summary::after{content:"–"}body[data-account-page="howto"] .howto-details-content{padding:0 14px 14px;color:var(--account-muted,#64748b);font-size:13px;line-height:1.6}body[data-account-page="howto"] .howto-details-content :is(ol,ul){margin:7px 0 0;padding-left:20px}body[data-account-page="howto"] .howto-details-content li+li{margin-top:5px}
body[data-account-page="howto"] .howto-premium{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:16px;border-radius:18px;border:1px solid var(--manual-border);background:linear-gradient(135deg,var(--manual-soft),transparent 65%)}body[data-account-page="howto"] .howto-premium h3{margin:0 0 5px;font-size:17px}body[data-account-page="howto"] .howto-premium p,body[data-account-page="howto"] .howto-premium ul{color:var(--account-muted,#64748b);font-size:12.5px;line-height:1.65}body[data-account-page="howto"] .howto-premium p{margin:0}body[data-account-page="howto"] .howto-premium ul{margin:0;padding-left:20px}body[data-account-page="howto"] .howto-note{padding:13px 15px;border-left:4px solid var(--manual-accent);border-radius:0 13px 13px 0;background:var(--manual-soft);color:var(--account-muted,#64748b);font-size:13px;line-height:1.55}body[data-account-page="howto"] .howto-note strong{color:var(--account-text,#172033)}body[data-account-page="howto"] .howto-bottom-actions{display:flex;flex-wrap:wrap;gap:9px}body[data-account-page="howto"] .howto-bottom-actions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 15px;border-radius:12px;border:1px solid var(--manual-border);color:var(--account-text,#172033);text-decoration:none;font-size:13px;font-weight:900;background:var(--account-card-bg,#fff)}body[data-account-page="howto"] .howto-bottom-actions a:first-child{color:#fff;border-color:transparent;background:linear-gradient(135deg,var(--manual-accent),var(--manual-accent2))}
/* Admin editor */
body[data-account-page="howto"] .howto-admin-panel{display:grid;gap:14px;padding:18px;border-radius:22px;border:1px solid rgba(51,65,85,.18);background:var(--account-card-bg,#fff);box-shadow:0 18px 52px rgba(15,23,42,.09)}body[data-account-page="howto"] .howto-admin-panel[hidden]{display:none!important}body[data-account-page="howto"] .howto-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}body[data-account-page="howto"] .howto-admin-head h2{margin:0;font-size:21px}body[data-account-page="howto"] .howto-admin-head p{margin:5px 0 0;color:var(--account-muted,#64748b);font-size:13px}
body[data-account-page="howto"] .howto-admin-bot-tabs{display:flex;gap:7px;max-width:100%;overflow-x:auto;padding-bottom:3px}body[data-account-page="howto"] .howto-admin-bot-tabs button{flex:0 0 auto;min-height:44px;padding:0 15px;border-radius:12px}body[data-account-page="howto"] .howto-admin-bot-tabs button.is-active{color:#fff;background:linear-gradient(135deg,#7357ff,#31a6ff);border-color:transparent}
body[data-account-page="howto"] .howto-admin-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}body[data-account-page="howto"] .howto-admin-form .field{min-width:0}body[data-account-page="howto"] .howto-admin-form .field--wide{grid-column:1/-1}body[data-account-page="howto"] .howto-cover-control{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center}body[data-account-page="howto"] .howto-cover-preview{width:100%;max-width:460px;aspect-ratio:16/7;object-fit:cover;border-radius:14px;border:1px solid rgba(100,116,139,.2);background:rgba(148,163,184,.08)}body[data-account-page="howto"] .howto-cover-preview[hidden]{display:none!important}
body[data-account-page="howto"] .howto-rich-editor-shell{grid-column:1/-1;min-width:0;border:1px solid rgba(100,116,139,.24);border-radius:15px;overflow:hidden}body[data-account-page="howto"] .howto-editor-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;border-bottom:1px solid rgba(100,116,139,.19);background:rgba(148,163,184,.06)}body[data-account-page="howto"] .howto-editor-toolbar button,body[data-account-page="howto"] .howto-editor-toolbar select{min-width:40px;min-height:40px;padding:0 9px;border-radius:9px}body[data-account-page="howto"] .howto-editor-toolbar .toolbar-sep{width:1px;align-self:stretch;background:rgba(100,116,139,.17);margin:0 2px}body[data-account-page="howto"] .howto-editor-surface{min-height:360px;max-height:68vh;overflow:auto;padding:18px;outline:none;line-height:1.65}body[data-account-page="howto"] .howto-editor-surface:focus{box-shadow:inset 0 0 0 2px rgba(115,87,255,.17)}body[data-account-page="howto"] .howto-editor-surface img{max-width:100%;height:auto;border-radius:12px}body[data-account-page="howto"] .howto-editor-surface pre{max-width:100%;overflow:auto;padding:12px;border-radius:10px;background:rgba(15,23,42,.08)}body[data-account-page="howto"] .howto-admin-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;align-items:center}body[data-account-page="howto"] .howto-admin-actions button{min-height:44px}body[data-account-page="howto"] .howto-admin-status{flex:1 1 280px;min-width:0;color:var(--account-muted,#64748b);font-size:12.5px;line-height:1.45}body[data-account-page="howto"] .howto-admin-status.is-error{color:#c2413a}body[data-account-page="howto"] .howto-admin-status.is-ok{color:#16835c}body[data-account-page="howto"] .howto-editor-server-note{grid-column:1/-1;padding:11px 13px;border-radius:12px;border:1px solid rgba(245,158,11,.24);background:rgba(245,158,11,.08);color:var(--account-muted,#64748b);font-size:12.5px;line-height:1.5}body[data-account-page="howto"] .howto-editor-server-note strong{color:var(--account-text,#172033)}
@media(max-width:900px){body[data-account-page="howto"] .howto-bot-selector{grid-template-columns:1fr}body[data-account-page="howto"] .howto-quickstart{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){body[data-account-page="howto"] .howto-hero{grid-template-columns:minmax(0,1fr);padding:19px}body[data-account-page="howto"] .howto-hero-question{width:68px;height:68px;border-radius:20px;font-size:40px}body[data-account-page="howto"] .howto-manual-head{grid-template-columns:52px minmax(0,1fr);padding:16px}body[data-account-page="howto"] .howto-manual-head img{width:52px;height:52px;border-radius:15px}body[data-account-page="howto"] .howto-open-bot{grid-column:1/-1;width:100%;box-sizing:border-box}body[data-account-page="howto"] .howto-manual-body{padding:16px}body[data-account-page="howto"] .howto-module-grid,body[data-account-page="howto"] .howto-premium,body[data-account-page="howto"] .howto-admin-form{grid-template-columns:minmax(0,1fr)}body[data-account-page="howto"] .howto-cover-control{grid-template-columns:minmax(0,1fr)}body[data-account-page="howto"] .howto-cover-control button{width:100%}}
@media(max-width:480px){body[data-account-page="howto"] .howto-shell{gap:14px}body[data-account-page="howto"] .howto-hero{border-radius:18px;padding:16px}body[data-account-page="howto"] .howto-bot-button{grid-template-columns:50px minmax(0,1fr) 22px;min-height:92px;padding:14px;border-radius:16px}body[data-account-page="howto"] .howto-bot-button img{width:50px;height:50px;border-radius:14px}body[data-account-page="howto"] .howto-quickstart{grid-template-columns:minmax(0,1fr)}body[data-account-page="howto"] .howto-manual{border-radius:18px}body[data-account-page="howto"] .howto-bottom-actions{display:grid;grid-template-columns:minmax(0,1fr)}body[data-account-page="howto"] .howto-bottom-actions a{width:100%;box-sizing:border-box}body[data-account-page="howto"] .howto-editor-toolbar{flex-wrap:nowrap;overflow-x:auto}body[data-account-page="howto"] .howto-editor-toolbar button,body[data-account-page="howto"] .howto-editor-toolbar select{flex:0 0 auto}body[data-account-page="howto"] .howto-editor-surface{min-height:300px;padding:13px}}
@media(prefers-reduced-motion:reduce){.account-user-dropdown .account-menu-link-howto .account-menu-icon-help,.account-user-dropdown .account-menu-link-howto .menu-help-dot,body[data-account-page="howto"] .howto-hero-question{animation:none!important}body[data-account-page="howto"] .howto-bot-button{transition:none!important}}


/* Stage 11.1 — rich visual blocks + deep mobile HowTo editor */
body[data-account-page="howto"] :is(.github-layout,.github-content,#panel-howto,.howto-shell,.howto-admin-panel,.howto-admin-form,.howto-rich-editor-shell){min-width:0;max-width:100%}
body[data-account-page="howto"] .howto-editor-surface{width:100%;box-sizing:border-box;overflow-x:hidden;overflow-wrap:anywhere;word-break:break-word}
body[data-account-page="howto"] .howto-editor-surface :is(img,video,iframe){max-width:100%;height:auto}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) pre{max-width:100%;overflow-x:auto;white-space:pre}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;-webkit-overflow-scrolling:touch}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) a{overflow-wrap:anywhere}

body[data-account-page="howto"] .howto-toolbar-component{width:auto!important;padding-inline:11px!important;font-weight:800;white-space:nowrap}
body[data-account-page="howto"] .howto-block-style-panel{display:grid;gap:11px;padding:12px;border-bottom:1px solid rgba(100,116,139,.19);background:color-mix(in srgb,var(--account-card-bg,#fff) 95%,#7357ff 5%)}
body[data-account-page="howto"] .howto-block-style-panel[hidden]{display:none!important}
body[data-account-page="howto"] .howto-block-style-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
body[data-account-page="howto"] .howto-block-style-head>div:first-child{display:grid;gap:2px;min-width:0}
body[data-account-page="howto"] .howto-block-style-head strong{font-size:13px}
body[data-account-page="howto"] .howto-block-style-head span{color:var(--account-muted,#64748b);font-size:11.5px;overflow-wrap:anywhere}
body[data-account-page="howto"] .howto-block-style-head-actions{display:flex;gap:6px;flex:0 0 auto}
body[data-account-page="howto"] .howto-block-style-head-actions button{min-height:40px}
body[data-account-page="howto"] .howto-block-style-controls{display:grid;grid-template-columns:repeat(5,minmax(104px,1fr));gap:8px;min-width:0}
body[data-account-page="howto"] .howto-block-style-controls label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;min-height:46px;padding:6px 8px;border:1px solid rgba(100,116,139,.17);border-radius:10px;background:var(--account-card-bg,#fff);font-size:11.5px;font-weight:800;min-width:0}
body[data-account-page="howto"] .howto-block-style-controls label>span{min-width:0;overflow-wrap:anywhere}
body[data-account-page="howto"] .howto-block-style-controls input[type="color"]{width:38px;height:32px;padding:2px;border-radius:8px;cursor:pointer}
body[data-account-page="howto"] .howto-block-style-controls select{min-width:74px;max-width:110px;height:34px;padding:0 7px;border-radius:8px;font-size:12px}
body[data-account-page="howto"] .howto-block-presets{display:flex;align-items:center;gap:6px;max-width:100%;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
body[data-account-page="howto"] .howto-block-presets>span{flex:0 0 auto;color:var(--account-muted,#64748b);font-size:11.5px;font-weight:800}
body[data-account-page="howto"] .howto-block-presets button{flex:0 0 auto;min-height:38px;display:inline-flex;align-items:center;gap:6px;padding:0 9px;border-radius:9px;font-size:11.5px;font-weight:800}
body[data-account-page="howto"] .howto-block-presets i{width:14px;height:14px;border-radius:5px;background:var(--preset);box-shadow:0 0 0 1px rgba(15,23,42,.15)}
body[data-account-page="howto"] .howto-block-style-help{color:var(--account-muted,#64748b);font-size:11.5px;line-height:1.45}

body[data-account-page="howto"] .howto-editor-surface [data-howto-block]{position:relative;cursor:pointer;transition:outline-color .12s ease,box-shadow .12s ease}
body[data-account-page="howto"] .howto-editor-surface [data-howto-block].is-howto-block-selected{outline:2px solid var(--howto-block-accent,#7357ff);outline-offset:3px;box-shadow:0 0 0 5px color-mix(in srgb,var(--howto-block-accent,#7357ff) 10%,transparent)}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-block{
  --howto-block-bg:#F5F3FF;--howto-block-text:#1F2937;--howto-block-border:#D6CCFF;--howto-block-accent:#7357FF;--howto-block-radius:16px;--howto-block-padding:14px;--howto-block-border-width:1px;--howto-block-align:left;
  min-width:0;padding:var(--howto-block-padding)!important;border:var(--howto-block-border-width) solid var(--howto-block-border)!important;border-radius:var(--howto-block-radius)!important;background:var(--howto-block-bg)!important;color:var(--howto-block-text)!important;text-align:var(--howto-block-align)!important;box-sizing:border-box
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-block *{color:inherit}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-block :is(h2,h3,h4,p){margin-top:0}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-block :is(p,ul,ol):last-child{margin-bottom:0}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-block--notice{border-left:5px solid var(--howto-block-accent)!important}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-block--accent{border-left:5px solid var(--howto-block-accent)!important;background:color-mix(in srgb,var(--howto-block-bg) 94%,var(--howto-block-accent) 6%)!important}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid{
  --howto-block-cols:2;display:grid!important;grid-template-columns:repeat(var(--howto-block-cols),minmax(0,1fr))!important;gap:10px;min-width:0;max-width:100%
}
body[data-account-page="howto"] .howto-editor-surface .howto-rich-grid{padding:8px;border:1px dashed color-mix(in srgb,var(--howto-block-accent,#7357ff) 42%,transparent);border-radius:14px}
body[data-account-page="howto"] .howto-editor-surface .howto-rich-grid.is-howto-block-selected{outline-offset:1px}

@media(max-width:980px){
  body[data-account-page="howto"] .howto-block-style-controls{grid-template-columns:repeat(3,minmax(120px,1fr))}
}
@media(max-width:820px){
  body[data-account-page="howto"] .github-content{width:100%;max-width:100%;padding-inline:max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right));box-sizing:border-box}
  body[data-account-page="howto"] .howto-admin-panel{padding:14px;border-radius:18px}
  body[data-account-page="howto"] .howto-admin-bot-tabs{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
  body[data-account-page="howto"] .howto-admin-bot-tabs button{flex:0 0 auto;min-height:44px;scroll-snap-align:start}
  body[data-account-page="howto"] .howto-editor-toolbar{position:sticky;top:0;z-index:4;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:7px;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  body[data-account-page="howto"] .howto-editor-toolbar :is(button,select){flex:0 0 auto;min-height:44px!important}
  body[data-account-page="howto"] .howto-editor-toolbar .toolbar-sep{flex:0 0 1px}
  body[data-account-page="howto"] .howto-block-style-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-account-page="howto"] .howto-block-style-controls label{min-height:48px}
  body[data-account-page="howto"] .howto-block-style-controls input[type="color"]{width:44px;height:36px}
  body[data-account-page="howto"] .howto-editor-surface{min-height:340px;max-height:62dvh;padding:14px;font-size:15px}
  body[data-account-page="howto"] :is(.howto-admin-form input,.howto-admin-form select,.howto-admin-form textarea){font-size:16px!important;min-height:44px}
  body[data-account-page="howto"] .howto-cover-preview{max-width:100%}
  body[data-account-page="howto"] .howto-details summary{height:auto;min-height:48px;padding-block:10px;line-height:1.35}
}
@media(max-width:640px){
  body[data-account-page="howto"] .howto-quickstart{grid-template-columns:minmax(0,1fr)!important}
  body[data-account-page="howto"] :is(.howto-module-grid,.howto-premium){grid-template-columns:minmax(0,1fr)!important}
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid{grid-template-columns:minmax(0,1fr)!important}
  body[data-account-page="howto"] .howto-block-style-head{align-items:stretch;flex-direction:column}
  body[data-account-page="howto"] .howto-block-style-head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  body[data-account-page="howto"] .howto-block-style-head-actions button{width:100%;min-height:44px}
  body[data-account-page="howto"] .howto-admin-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
  body[data-account-page="howto"] .howto-admin-actions button{width:100%;min-width:0}
  body[data-account-page="howto"] .howto-admin-status{grid-column:1/-1}
}
@media(max-width:480px){
  body[data-account-page="howto"] .github-content{padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right))}
  body[data-account-page="howto"] .howto-hero{padding:14px;border-radius:16px;gap:12px}
  body[data-account-page="howto"] .howto-hero h1{font-size:26px}
  body[data-account-page="howto"] .howto-hero-question{width:58px;height:58px;border-radius:17px;font-size:34px}
  body[data-account-page="howto"] .howto-bot-button{grid-template-columns:46px minmax(0,1fr) 18px;min-height:86px;padding:12px;gap:10px}
  body[data-account-page="howto"] .howto-bot-button img{width:46px;height:46px}
  body[data-account-page="howto"] .howto-bot-button-copy strong{font-size:17px}
  body[data-account-page="howto"] .howto-bot-button-copy span{font-size:11.5px}
  body[data-account-page="howto"] .howto-manual-head{grid-template-columns:46px minmax(0,1fr);gap:10px;padding:13px}
  body[data-account-page="howto"] .howto-manual-head img{width:46px;height:46px}
  body[data-account-page="howto"] .howto-manual-head-copy h2{font-size:21px}
  body[data-account-page="howto"] .howto-manual-head-copy p{font-size:12px}
  body[data-account-page="howto"] .howto-manual-body{padding:12px;gap:14px}
  body[data-account-page="howto"] .howto-step,body[data-account-page="howto"] .howto-module{padding:12px}
  body[data-account-page="howto"] .howto-admin-panel{padding:10px;border-radius:15px}
  body[data-account-page="howto"] .howto-admin-head{display:grid;grid-template-columns:minmax(0,1fr)}
  body[data-account-page="howto"] .howto-admin-head>button{width:100%;min-height:44px}
  body[data-account-page="howto"] .howto-block-style-controls{grid-template-columns:minmax(0,1fr)}
  body[data-account-page="howto"] .howto-block-style-controls label{grid-template-columns:minmax(0,1fr) auto;padding:7px 9px}
  body[data-account-page="howto"] .howto-block-style-controls select{min-width:112px;max-width:132px}
  body[data-account-page="howto"] .howto-block-style-panel{padding:9px}
  body[data-account-page="howto"] .howto-editor-surface{min-height:300px;max-height:58dvh;padding:11px;font-size:15px}
  body[data-account-page="howto"] .howto-admin-actions{grid-template-columns:minmax(0,1fr)}
  body[data-account-page="howto"] .howto-admin-status{grid-column:auto}
  body[data-account-page="howto"] .howto-bottom-actions{grid-template-columns:minmax(0,1fr)!important}
}

/* Stage 11.1 mobile toolbar/color polish */
body[data-account-page="howto"] .howto-block-style-controls input[type="color"]{
  -webkit-appearance:none;appearance:none;padding:0;border:0;background:transparent;overflow:hidden
}
body[data-account-page="howto"] .howto-block-style-controls input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
body[data-account-page="howto"] .howto-block-style-controls input[type="color"]::-webkit-color-swatch{border:1px solid rgba(15,23,42,.18);border-radius:8px}
body[data-account-page="howto"] .howto-block-style-controls input[type="color"]::-moz-color-swatch{border:1px solid rgba(15,23,42,.18);border-radius:8px}
@media(max-width:820px){
  body[data-account-page="howto"] .howto-editor-toolbar{scroll-snap-type:x proximity;scroll-padding-inline:7px}
  body[data-account-page="howto"] .howto-editor-toolbar select[data-howto-format]{width:132px!important;min-width:132px!important;max-width:132px!important;padding-inline:10px!important;order:-2}
  body[data-account-page="howto"] .howto-editor-toolbar .howto-toolbar-component{order:-1;scroll-snap-align:start}
  body[data-account-page="howto"] .howto-editor-toolbar button{scroll-snap-align:start}
}
body[data-account-page="howto"] .howto-block-style-controls input[type="color"]{width:44px!important;min-width:44px!important;max-width:44px!important;height:36px!important;display:block!important}
@media(max-width:820px){
  body[data-account-page="howto"] .howto-block-presets button{min-height:44px}
}
body[data-account-page="howto"] .howto-block-presets button{min-height:44px}
@media(max-width:820px){
  body[data-account-page="howto"] .howto-editor-toolbar .howto-toolbar-component{order:-2}
  body[data-account-page="howto"] .howto-editor-toolbar select[data-howto-format]{order:-1}
}
body[data-account-page="howto"] :is(.howto-editor-toolbar button,.howto-block-presets button,.howto-block-style-head-actions button){min-height:44px}
body[data-account-page="howto"] .howto-admin-panel button{min-height:44px}
body[data-account-page="howto"] .howto-admin-panel button{min-height:44px!important}


/* Stage 11.3 — structured layout blocks */
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid{
  gap:var(--howto-block-gap,10px)!important;
}

/* Invisible layout grid: only the editor shows guides. */
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid--invisible{
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-cell{
  min-width:0;
  box-sizing:border-box;
  color:var(--howto-block-text,#1F2937);
  text-align:var(--howto-block-align,left);
  overflow-wrap:anywhere;
}
body[data-account-page="howto"] .howto-editor-surface .howto-rich-grid--invisible{
  padding:8px!important;
  border:1px dashed color-mix(in srgb,var(--howto-block-accent,#7357ff) 45%,transparent)!important;
  border-radius:12px!important;
}
body[data-account-page="howto"] .howto-editor-surface .howto-rich-grid--invisible>.howto-rich-cell{
  min-height:72px;
  padding:12px;
  border:1px dashed color-mix(in srgb,var(--howto-block-border,#D6CCFF) 70%,transparent);
  border-radius:10px;
  background:color-mix(in srgb,var(--howto-block-bg,#F5F3FF) 35%,transparent);
}

/* Visible grid/table. */
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid--visible{
  overflow:hidden;
  gap:max(1px,var(--howto-block-gap,0px))!important;
  padding:0!important;
  border:var(--howto-block-border-width,1px) solid var(--howto-block-border,#D6CCFF)!important;
  border-radius:var(--howto-block-radius,16px)!important;
  background:var(--howto-block-border,#D6CCFF)!important;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid--visible>.howto-rich-cell{
  min-height:72px;
  padding:var(--howto-block-padding,14px);
  background:var(--howto-block-bg,#F5F3FF);
  color:var(--howto-block-text,#1F2937);
}
body[data-account-page="howto"] .howto-editor-surface .howto-rich-grid--visible>.howto-rich-cell{
  outline:1px dashed color-mix(in srgb,var(--howto-block-accent,#7357ff) 32%,transparent);
  outline-offset:-5px;
}

/* Section divider. */
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-section-divider{
  display:grid;
  grid-template-columns:minmax(20px,1fr) auto minmax(20px,1fr);
  align-items:center;
  gap:12px;
  min-width:0;
  margin:calc(var(--howto-block-padding,14px) * .75) 0;
  color:var(--howto-block-text,#1F2937);
  text-align:center;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-section-divider::before,
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-section-divider::after{
  content:"";
  height:max(1px,var(--howto-block-border-width,1px));
  background:var(--howto-block-accent,#7357FF);
  border-radius:999px;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-section-divider>span{
  min-width:0;
  max-width:min(560px,70vw);
  font-weight:900;
  overflow-wrap:anywhere;
}
body[data-account-page="howto"] .howto-editor-surface .howto-section-divider{
  min-height:46px;
  padding:4px 8px;
  border-radius:10px;
  background:color-mix(in srgb,var(--howto-block-bg,#F5F3FF) 40%,transparent);
}

/* Empty vertical spacing. Public side remains truly empty. */
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-spacer{
  display:block;
  width:100%;
  height:var(--howto-block-space,32px);
  min-height:8px;
  max-height:96px;
}
body[data-account-page="howto"] .howto-editor-surface .howto-spacer{
  position:relative;
  border:1px dashed color-mix(in srgb,var(--howto-block-accent,#7357ff) 45%,transparent);
  border-radius:9px;
  background:repeating-linear-gradient(
    -45deg,
    color-mix(in srgb,var(--howto-block-bg,#F5F3FF) 42%,transparent) 0 7px,
    transparent 7px 14px
  );
}
body[data-account-page="howto"] .howto-editor-surface .howto-spacer::after{
  content:"Пустой отступ · " attr(data-howto-space) " px";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:4px;
  color:var(--howto-block-text,#64748b);
  font-size:11px;
  font-weight:800;
  pointer-events:none;
}

/* No accidental page overflow from authored layouts. */
body[data-account-page="howto"] :is(.howto-rich-grid,.howto-rich-cell,.howto-section-divider,.howto-spacer){
  max-width:100%;
  box-sizing:border-box;
}
body[data-account-page="howto"] .howto-rich-cell :is(img,video,iframe,pre,table){
  max-width:100%;
}
body[data-account-page="howto"] .howto-rich-cell :is(pre,table){
  overflow:auto;
}

/* Tablet: 3/4 columns gracefully reduce to 2. */
@media(min-width:641px) and (max-width:900px){
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid[data-howto-cols="1"]{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid:not([data-howto-cols="1"]){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Phone: authored tables/grids always become one readable column. */
@media(max-width:640px){
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) :is(.howto-rich-grid,.howto-rich-grid--visible,.howto-rich-grid--invisible){
    grid-template-columns:minmax(0,1fr)!important;
  }
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-rich-grid--visible{
    gap:max(1px,var(--howto-block-gap,0px))!important;
  }
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-section-divider{
    grid-template-columns:minmax(14px,1fr) minmax(0,auto) minmax(14px,1fr);
    gap:8px;
  }
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-section-divider>span{
    max-width:72vw;
    font-size:13px;
  }
}


/* Stage 11.4 — JoyJoy accordion block */
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion{
  width:100%;max-width:100%;box-sizing:border-box;overflow:hidden;
  margin:10px 0;
  border:var(--howto-block-border-width,1px) solid var(--howto-block-border,#D6CCFF);
  border-radius:var(--howto-block-radius,16px);
  background:var(--howto-block-bg,#F5F3FF);
  color:var(--howto-block-text,#1F2937);
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-summary{
  list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;
  padding:var(--howto-block-padding,14px);font-weight:900;line-height:1.35;
  color:var(--howto-block-text,#1F2937);text-align:var(--howto-block-align,left);
  user-select:none;transition:background .18s ease,color .18s ease;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-summary::-webkit-details-marker{display:none}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-summary::after{
  content:"";width:8px;height:8px;margin-left:auto;flex:0 0 auto;
  border-right:2px solid var(--howto-block-accent,#7357FF);border-bottom:2px solid var(--howto-block-accent,#7357FF);
  transform:rotate(45deg);transition:transform .22s ease;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion[open]>.howto-accordion-summary::after{transform:rotate(225deg)}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-summary:hover{background:color-mix(in srgb,var(--howto-block-accent,#7357FF) 7%,transparent)}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-icon{
  display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 7px;box-sizing:border-box;
  border-radius:9px;background:color-mix(in srgb,var(--howto-block-accent,#7357FF) 13%,transparent);
  color:var(--howto-block-accent,#7357FF);font-size:13px;font-weight:950;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-content{
  padding:0 var(--howto-block-padding,14px) var(--howto-block-padding,14px);
  border-top:1px solid color-mix(in srgb,var(--howto-block-border,#D6CCFF) 70%,transparent);
  color:var(--howto-block-text,#1F2937);text-align:var(--howto-block-align,left);
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-content>*:first-child{margin-top:var(--howto-block-padding,14px)}
body[data-account-page="howto"] .howto-editor-surface .howto-accordion.is-howto-block-selected{
  outline:2px solid color-mix(in srgb,var(--howto-block-accent,#7357FF) 70%,transparent);outline-offset:3px;
}
@media(max-width:640px){
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-summary{gap:8px;padding:12px}
  body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-accordion-content{padding:0 12px 12px}
}

/* Stage 12 — unified JoyJoy rich editor UI */
body[data-account-page="howto"] .joyjoy-editor-toolbar{
  --jj-editor-accent:#7357ff;
  display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;
  padding:10px;background:
    radial-gradient(circle at 8% 0%,rgba(115,87,255,.08),transparent 28%),
    linear-gradient(180deg,rgba(248,250,252,.96),rgba(241,245,249,.84));
  border-bottom:1px solid rgba(100,116,139,.18);
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.7);
}
body[data-account-page="howto"] .joyjoy-editor-group{
  position:relative;display:flex;align-items:center;gap:5px;min-width:0;
  padding:20px 6px 6px;border:1px solid rgba(100,116,139,.14);border-radius:13px;
  background:color-mix(in srgb,var(--account-card-bg,#fff) 94%,#f5f3ff 6%);
  box-shadow:0 3px 10px rgba(15,23,42,.035);
}
body[data-account-page="howto"] .joyjoy-editor-group-label{
  position:absolute;top:4px;left:8px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--account-muted,#64748b);font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;line-height:1;
}
body[data-account-page="howto"] :is(.joyjoy-editor-tool,.joyjoy-editor-select,.joyjoy-editor-color){
  min-height:38px!important;box-sizing:border-box;border:1px solid rgba(100,116,139,.18)!important;border-radius:10px!important;
  background:var(--account-card-bg,#fff)!important;color:var(--account-text,#172033)!important;
  box-shadow:0 1px 2px rgba(15,23,42,.025);transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body[data-account-page="howto"] .joyjoy-editor-tool{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:38px!important;padding:0 9px!important;
  font:inherit;font-size:12px;font-weight:850;line-height:1;cursor:pointer;
}
body[data-account-page="howto"] .joyjoy-editor-tool--wide{min-width:auto!important;white-space:nowrap}
body[data-account-page="howto"] .joyjoy-editor-tool:hover,
body[data-account-page="howto"] .joyjoy-editor-tool:focus-visible,
body[data-account-page="howto"] .joyjoy-editor-select:hover,
body[data-account-page="howto"] .joyjoy-editor-select:focus-within,
body[data-account-page="howto"] .joyjoy-editor-color:hover,
body[data-account-page="howto"] .joyjoy-editor-color:focus-within{
  border-color:color-mix(in srgb,var(--jj-editor-accent) 52%,transparent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--jj-editor-accent) 10%,transparent),0 4px 12px rgba(15,23,42,.06);
  outline:none;
}
body[data-account-page="howto"] .joyjoy-editor-tool:hover{transform:translateY(-1px)}
body[data-account-page="howto"] .joyjoy-editor-tool.is-active,
body[data-account-page="howto"] .joyjoy-editor-tool[aria-pressed="true"]{
  border-color:color-mix(in srgb,var(--jj-editor-accent) 58%,transparent)!important;
  background:color-mix(in srgb,var(--jj-editor-accent) 11%,var(--account-card-bg,#fff))!important;
  color:var(--jj-editor-accent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--jj-editor-accent) 10%,transparent);
}
body[data-account-page="howto"] .joyjoy-editor-tool.is-accent{
  border-color:color-mix(in srgb,var(--jj-editor-accent) 40%,transparent)!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--jj-editor-accent) 13%,#fff),#fff)!important;color:#6046e8!important;
}
body[data-account-page="howto"] .joyjoy-editor-select{
  position:relative;display:inline-flex;align-items:center;gap:5px;min-width:96px;padding:0 7px!important;overflow:hidden;
}
body[data-account-page="howto"] .joyjoy-editor-select>span:first-child{flex:0 0 auto;color:var(--jj-editor-accent);font-size:11px;font-weight:950}
body[data-account-page="howto"] .joyjoy-editor-select select{
  appearance:none;-webkit-appearance:none;min-width:0!important;max-width:180px;height:36px!important;min-height:36px!important;padding:0 20px 0 3px!important;
  border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;outline:none!important;
  font:inherit;font-size:11.5px;font-weight:800;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,#7c8799 50%),linear-gradient(135deg,#7c8799 50%,transparent 50%)!important;
  background-position:calc(100% - 9px) 15px,calc(100% - 5px) 15px!important;background-size:4px 4px,4px 4px!important;background-repeat:no-repeat!important;
}
body[data-account-page="howto"] .joyjoy-editor-select--compact{min-width:72px}
body[data-account-page="howto"] .joyjoy-editor-select--compact select{max-width:78px}
body[data-account-page="howto"] .joyjoy-editor-unit{margin-left:-18px!important;margin-right:17px;color:var(--account-muted,#64748b)!important;font-size:9px!important;font-weight:800!important;pointer-events:none}
body[data-account-page="howto"] .joyjoy-editor-color{display:inline-flex;align-items:center;gap:6px;padding:0 6px 0 9px!important;cursor:pointer}
body[data-account-page="howto"] .joyjoy-editor-color>span{font-size:13px;font-weight:950;text-decoration:underline;text-decoration-thickness:3px;text-decoration-color:var(--jj-editor-accent)}
body[data-account-page="howto"] .joyjoy-editor-color input[type="color"]{
  appearance:none;-webkit-appearance:none;width:26px!important;min-width:26px!important;height:26px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;overflow:hidden;cursor:pointer;
}
body[data-account-page="howto"] .joyjoy-editor-color input[type="color"]::-webkit-color-swatch-wrapper{padding:0}
body[data-account-page="howto"] .joyjoy-editor-color input[type="color"]::-webkit-color-swatch{border:1px solid rgba(15,23,42,.16);border-radius:7px}
body[data-account-page="howto"] .joyjoy-editor-segment{display:inline-flex;align-items:center;border-radius:10px;overflow:hidden}
body[data-account-page="howto"] .joyjoy-editor-segment .joyjoy-editor-tool{border-radius:0!important;margin-left:-1px}
body[data-account-page="howto"] .joyjoy-editor-segment .joyjoy-editor-tool:first-child{margin-left:0;border-radius:10px 0 0 10px!important}
body[data-account-page="howto"] .joyjoy-editor-segment .joyjoy-editor-tool:last-child{border-radius:0 10px 10px 0!important}
body[data-account-page="howto"] .joyjoy-editor-dropdown{position:relative;display:block}
body[data-account-page="howto"] .joyjoy-editor-dropdown>summary{list-style:none;cursor:pointer;user-select:none}
body[data-account-page="howto"] .joyjoy-editor-dropdown>summary::-webkit-details-marker{display:none}
body[data-account-page="howto"] .joyjoy-editor-caret{font-size:9px;opacity:.62;transition:transform .16s ease}
body[data-account-page="howto"] .joyjoy-editor-dropdown[open] .joyjoy-editor-caret{transform:rotate(180deg)}
body[data-account-page="howto"] .joyjoy-editor-popover{
  position:absolute;z-index:30;top:calc(100% + 8px);left:0;display:grid!important;grid-template-columns:repeat(4,38px);gap:6px;width:max-content;max-width:min(230px,78vw);padding:9px!important;
  border:1px solid rgba(100,116,139,.18)!important;border-radius:13px!important;background:var(--account-card-bg,#fff)!important;box-shadow:0 18px 44px rgba(15,23,42,.18)!important;
}
body[data-account-page="howto"] .joyjoy-editor-popover button{
  min-width:38px!important;width:38px;height:38px;min-height:38px!important;padding:0!important;border:1px solid rgba(100,116,139,.16);border-radius:10px;background:#fff;color:#334155;font-weight:950;cursor:pointer;
}
body[data-account-page="howto"] .joyjoy-editor-popover button:hover{border-color:rgba(115,87,255,.42);background:#f5f3ff;color:#6046e8}

/* Link composer and block settings share the same JoyJoy surface language. */
body[data-account-page="howto"] :is(.howto-link-button-panel,.howto-block-style-panel){
  margin:10px;border:1px solid rgba(100,116,139,.17)!important;border-radius:15px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--account-card-bg,#fff) 96%,#f5f3ff 4%),var(--account-card-bg,#fff))!important;
  box-shadow:0 10px 30px rgba(15,23,42,.07)!important;
}
body[data-account-page="howto"] .howto-link-button-panel{padding:12px}
body[data-account-page="howto"] .howto-link-button-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid rgba(100,116,139,.12)}
body[data-account-page="howto"] .howto-link-button-panel-head>div{display:grid;gap:2px}
body[data-account-page="howto"] .howto-link-button-panel-head strong{font-size:14px}
body[data-account-page="howto"] .howto-link-button-panel-head span{font-size:11.5px;color:var(--account-muted,#64748b)}
body[data-account-page="howto"] .howto-link-button-grid{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:9px;margin-top:10px}
body[data-account-page="howto"] .howto-link-button-grid label{display:grid;gap:5px;min-width:0;padding:8px;border:1px solid rgba(100,116,139,.13);border-radius:11px;background:rgba(248,250,252,.72);font-size:11px;font-weight:850}
body[data-account-page="howto"] .howto-link-button-grid :is(input,select){width:100%;min-width:0;min-height:39px;box-sizing:border-box;border:1px solid rgba(100,116,139,.2);border-radius:9px;background:#fff;color:#172033;padding:0 10px;outline:none}
body[data-account-page="howto"] .howto-link-button-grid select{appearance:none;-webkit-appearance:none;padding-right:28px;background-image:linear-gradient(45deg,transparent 50%,#7c8799 50%),linear-gradient(135deg,#7c8799 50%,transparent 50%);background-position:calc(100% - 13px) 16px,calc(100% - 9px) 16px;background-size:4px 4px,4px 4px;background-repeat:no-repeat}
body[data-account-page="howto"] .howto-link-button-grid :is(input,select):focus{border-color:rgba(115,87,255,.48);box-shadow:0 0 0 3px rgba(115,87,255,.09)}
body[data-account-page="howto"] .howto-link-button-grid input[type="color"]{padding:3px;cursor:pointer}
body[data-account-page="howto"] .howto-link-button-check{grid-template-columns:minmax(0,1fr) auto!important;align-items:center}
body[data-account-page="howto"] .howto-link-button-check .normalized-switch{justify-self:end}
body[data-account-page="howto"] .howto-link-button-check .normalized-switch input{width:1px!important;min-height:1px!important}
body[data-account-page="howto"] .howto-link-button-actions{display:flex;justify-content:flex-end;margin-top:10px}
body[data-account-page="howto"] .howto-block-style-controls label,
body[data-account-page="howto"] .howto-block-presets button{
  border-color:rgba(100,116,139,.15)!important;background:color-mix(in srgb,var(--account-card-bg,#fff) 97%,#f5f3ff 3%)!important;
  box-shadow:0 1px 3px rgba(15,23,42,.025);transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body[data-account-page="howto"] .howto-block-style-controls label:hover,
body[data-account-page="howto"] .howto-block-presets button:hover{border-color:rgba(115,87,255,.34)!important;box-shadow:0 5px 14px rgba(15,23,42,.06)}
body[data-account-page="howto"] .howto-block-style-controls select{appearance:none;-webkit-appearance:none;background:#fff;padding-right:22px;background-image:linear-gradient(45deg,transparent 50%,#7c8799 50%),linear-gradient(135deg,#7c8799 50%,transparent 50%);background-position:calc(100% - 11px) 14px,calc(100% - 7px) 14px;background-size:4px 4px,4px 4px;background-repeat:no-repeat}

/* Rich-content elements */
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-inline-icon{
  display:inline-grid;place-items:center;min-width:1.72em;height:1.72em;padding:0 .34em;vertical-align:-.18em;margin:0 .12em;
  border-radius:.58em;background:rgba(115,87,255,.11);color:#674ce9;font-size:.82em;font-weight:950;line-height:1;border:1px solid rgba(115,87,255,.16);
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-text-link{color:var(--howto-link-color,#5865f2)!important;font-weight:800;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:2px}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-link-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;margin:3px 3px 3px 0;border-radius:11px;
  font-weight:900;text-decoration:none!important;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;box-sizing:border-box;
}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-link-button--solid{background:var(--howto-link-bg,#5865f2)!important;color:var(--howto-link-text,#fff)!important;border:1px solid var(--howto-link-bg,#5865f2)!important;box-shadow:0 7px 18px color-mix(in srgb,var(--howto-link-bg,#5865f2) 25%,transparent)}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-link-button--outline{background:transparent!important;color:var(--howto-link-text,var(--howto-link-bg,#5865f2))!important;border:1.5px solid var(--howto-link-bg,#5865f2)!important}
body[data-account-page="howto"] :is(.howto-editor-surface,.howto-manual-body) .howto-link-button--soft{background:color-mix(in srgb,var(--howto-link-bg,#5865f2) 12%,transparent)!important;color:var(--howto-link-text,var(--howto-link-bg,#5865f2))!important;border:1px solid color-mix(in srgb,var(--howto-link-bg,#5865f2) 22%,transparent)!important}
body[data-account-page="howto"] .howto-manual-body .howto-link-button:hover{transform:translateY(-1px);filter:saturate(1.06);box-shadow:0 10px 22px rgba(15,23,42,.12)}

/* JoyJoy confirmation overlay replaces browser confirm dialogs in the editor. */
.joyjoy-editor-confirm{position:fixed;z-index:10050;inset:0;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.42);backdrop-filter:blur(7px)}
.joyjoy-editor-confirm[hidden]{display:none!important}
.joyjoy-editor-confirm-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;width:min(430px,100%);padding:16px;border:1px solid rgba(148,163,184,.24);border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.24)}
.joyjoy-editor-confirm-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff7ed;color:#d97706;font-size:21px;font-weight:950;border:1px solid #fed7aa}
.joyjoy-editor-confirm-card strong{display:block;margin:2px 0 4px;font-size:15px;color:#172033}
.joyjoy-editor-confirm-card p{margin:0;color:#64748b;font-size:12.5px;line-height:1.5}
.joyjoy-editor-confirm-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.joyjoy-editor-confirm-actions button{min-height:42px}

@media(max-width:980px){
  body[data-account-page="howto"] .howto-link-button-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  body[data-account-page="howto"] .joyjoy-editor-toolbar{align-items:stretch;scroll-snap-type:x proximity;gap:7px}
  body[data-account-page="howto"] .joyjoy-editor-group{flex:0 0 auto;scroll-snap-align:start;padding-top:21px}
  body[data-account-page="howto"] .joyjoy-editor-toolbar :is(.joyjoy-editor-tool,.joyjoy-editor-select,.joyjoy-editor-color){min-height:42px!important}
  body[data-account-page="howto"] .joyjoy-editor-select select{min-height:40px!important;height:40px!important;background-position:calc(100% - 9px) 17px,calc(100% - 5px) 17px!important}
}
@media(max-width:560px){
  body[data-account-page="howto"] .howto-link-button-grid{grid-template-columns:minmax(0,1fr)}
  body[data-account-page="howto"] .howto-link-button-panel-head{align-items:stretch;flex-direction:column}
  body[data-account-page="howto"] .howto-link-button-panel-head>button{width:100%}
  .joyjoy-editor-confirm-card{grid-template-columns:36px minmax(0,1fr);padding:13px;border-radius:15px}
  .joyjoy-editor-confirm-icon{width:36px;height:36px;border-radius:11px}
  .joyjoy-editor-confirm-actions{display:grid;grid-template-columns:1fr 1fr}
}

/* Stage 13 — JoyJoy block drag & drop controls */
body[data-account-page="howto"] .howto-editor-surface [data-howto-block]{cursor:default}
body[data-account-page="howto"] .howto-editor-surface [data-howto-block] :is(p,h2,h3,h4,blockquote,pre,li,figcaption,th,td){cursor:text}
body[data-account-page="howto"] .howto-block-controls{
  position:absolute;z-index:18;top:7px;right:7px;display:inline-flex;align-items:center;gap:4px;
  padding:4px;border:1px solid rgba(100,116,139,.2);border-radius:12px;
  background:color-mix(in srgb,var(--account-card-bg,#fff) 94%,#f5f3ff 6%);
  box-shadow:0 8px 24px rgba(15,23,42,.13),inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  opacity:0;transform:translateY(-4px) scale(.98);pointer-events:none;
  transition:opacity .14s ease,transform .14s ease,border-color .14s ease,box-shadow .14s ease;
  user-select:none;-webkit-user-select:none;
}
body[data-account-page="howto"] .howto-editor-surface [data-howto-block]:hover>.howto-block-controls,
body[data-account-page="howto"] .howto-editor-surface [data-howto-block].is-howto-block-selected>.howto-block-controls,
body[data-account-page="howto"] .howto-editor-surface [data-howto-block]:focus-within>.howto-block-controls{
  opacity:1;transform:none;pointer-events:auto;
}
body[data-account-page="howto"] .howto-block-control{
  display:inline-grid;place-items:center;width:31px;height:31px;min-width:31px;min-height:31px;padding:0!important;
  border:1px solid rgba(100,116,139,.16)!important;border-radius:9px!important;background:#fff!important;color:#475569!important;
  font:900 15px/1 Nunito,ui-rounded,"Segoe UI",Arial,sans-serif!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  cursor:pointer;transition:transform .14s ease,border-color .14s ease,background .14s ease,color .14s ease,box-shadow .14s ease;
}
body[data-account-page="howto"] .howto-block-control:hover,
body[data-account-page="howto"] .howto-block-control:focus-visible{
  border-color:rgba(115,87,255,.42)!important;background:#f5f3ff!important;color:#6046e8!important;
  box-shadow:0 0 0 3px rgba(115,87,255,.09)!important;outline:none;transform:translateY(-1px);
}
body[data-account-page="howto"] .howto-block-drag{cursor:grab;background:linear-gradient(135deg,#f5f3ff,#fff)!important;color:#674ce9!important}
body[data-account-page="howto"] .howto-block-drag:active{cursor:grabbing;transform:scale(.96)}
body[data-account-page="howto"] .howto-block-control--delete:hover,
body[data-account-page="howto"] .howto-block-control--delete:focus-visible{
  border-color:rgba(220,53,69,.34)!important;background:#fff1f2!important;color:#c92a3a!important;box-shadow:0 0 0 3px rgba(220,53,69,.08)!important;
}
body[data-account-page="howto"] .howto-editor-surface.is-howto-dragging{cursor:grabbing}
body[data-account-page="howto"] .howto-editor-surface [data-howto-block].is-howto-block-dragging{
  opacity:.5;filter:saturate(.75);outline:2px dashed rgba(115,87,255,.48)!important;outline-offset:3px!important;
}
body[data-account-page="howto"] .howto-editor-surface [data-howto-block].is-howto-drop-before{
  box-shadow:0 -4px 0 -1px #7357ff,0 -8px 18px -10px rgba(115,87,255,.8)!important;
}
body[data-account-page="howto"] .howto-editor-surface [data-howto-block].is-howto-drop-after{
  box-shadow:0 4px 0 -1px #7357ff,0 8px 18px -10px rgba(115,87,255,.8)!important;
}
body[data-account-page="howto"] .howto-editor-surface .howto-spacer>.howto-block-controls,
body[data-account-page="howto"] .howto-editor-surface .howto-section-divider>.howto-block-controls{top:50%;transform:translateY(-50%) scale(.98)}
body[data-account-page="howto"] .howto-editor-surface .howto-spacer:hover>.howto-block-controls,
body[data-account-page="howto"] .howto-editor-surface .howto-spacer.is-howto-block-selected>.howto-block-controls,
body[data-account-page="howto"] .howto-editor-surface .howto-section-divider:hover>.howto-block-controls,
body[data-account-page="howto"] .howto-editor-surface .howto-section-divider.is-howto-block-selected>.howto-block-controls{transform:translateY(-50%)}
@media(max-width:640px){
  body[data-account-page="howto"] .howto-block-controls{top:6px;right:6px;gap:3px;padding:3px;border-radius:10px}
  body[data-account-page="howto"] .howto-block-control{width:34px;height:34px;min-width:34px;min-height:34px}
  body[data-account-page="howto"] .howto-editor-surface [data-howto-block].is-howto-block-selected>.howto-block-controls{opacity:1;pointer-events:auto}
}
@media(hover:none){
  body[data-account-page="howto"] .howto-editor-surface [data-howto-block]>.howto-block-controls{opacity:0;pointer-events:none}
  body[data-account-page="howto"] .howto-editor-surface [data-howto-block].is-howto-block-selected>.howto-block-controls{opacity:1;transform:none;pointer-events:auto}
  body[data-account-page="howto"] .howto-editor-surface .howto-spacer.is-howto-block-selected>.howto-block-controls,
  body[data-account-page="howto"] .howto-editor-surface .howto-section-divider.is-howto-block-selected>.howto-block-controls{transform:translateY(-50%)}
}

/* Stage 13.1 — link/button objects inside the editor */
body[data-account-page="howto"] .howto-editor-surface :is(.howto-link-button,.howto-text-link){cursor:pointer;user-select:none;-webkit-user-select:none}
body[data-account-page="howto"] .howto-editor-surface .howto-link-button{
  position:relative;display:inline-flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center!important;
  min-width:150px;max-width:min(100%,360px);padding:8px 13px!important;vertical-align:middle;white-space:normal;text-align:left;
}
body[data-account-page="howto"] .howto-editor-surface .howto-link-button::after{
  content:attr(href);display:block;max-width:100%;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:9px;font-weight:750;line-height:1.2;letter-spacing:0;opacity:.7;text-decoration:none!important;
}
body[data-account-page="howto"] .howto-editor-surface .howto-text-link:focus,
body[data-account-page="howto"] .howto-editor-surface .howto-link-button:focus{
  outline:2px solid rgba(115,87,255,.52);outline-offset:3px;
}
body[data-account-page="howto"] .howto-link-button-actions{align-items:center;justify-content:flex-end;gap:8px}
body[data-account-page="howto"] .howto-link-button-actions [data-howto-link-delete]:not([hidden]){margin-right:auto}
@media(max-width:560px){
  body[data-account-page="howto"] .howto-link-button-actions{display:grid;grid-template-columns:1fr 1fr}
  body[data-account-page="howto"] .howto-link-button-actions [data-howto-link-delete][hidden]+button{grid-column:1/-1}
  body[data-account-page="howto"] .howto-editor-surface .howto-link-button{max-width:100%}
}


/* Stage 14 — JoyJoy cell drag & drop inside visible/invisible tables */
body[data-account-page="howto"] .howto-editor-surface [data-howto-block="grid-visible"]>.howto-rich-cell,
body[data-account-page="howto"] .howto-editor-surface [data-howto-block="grid-invisible"]>.howto-rich-cell{position:relative}
body[data-account-page="howto"] .howto-cell-controls{position:absolute;top:7px;right:7px;z-index:9;display:flex;gap:4px;padding:4px;border:1px solid color-mix(in srgb,var(--howto-block-border,#d6ccff) 75%,transparent);border-radius:11px;background:color-mix(in srgb,var(--account-card,#fff) 90%,transparent);box-shadow:0 8px 24px rgba(32,42,70,.12);opacity:0;transform:translateY(-2px);transition:opacity .16s ease,transform .16s ease;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body[data-account-page="howto"] .howto-rich-cell:hover>.howto-cell-controls,
body[data-account-page="howto"] .howto-rich-cell:focus-within>.howto-cell-controls,
body[data-account-page="howto"] .howto-rich-cell.is-howto-cell-dragging>.howto-cell-controls{opacity:1;transform:none}
body[data-account-page="howto"] .howto-cell-control{width:28px;height:28px;display:grid;place-items:center;padding:0;border:1px solid var(--account-border,#d8dee9);border-radius:8px;background:var(--account-card,#fff);color:var(--account-text,#263247);font:900 15px/1 Nunito,Arial,sans-serif;cursor:pointer;box-shadow:none;transition:transform .14s ease,border-color .14s ease,background .14s ease,color .14s ease}
body[data-account-page="howto"] .howto-cell-control:hover{transform:translateY(-1px);border-color:#8b78ff;background:#f6f3ff;color:#6248e8}
body[data-account-page="howto"] .howto-cell-drag{cursor:grab;touch-action:none}
body[data-account-page="howto"] .howto-cell-drag:active{cursor:grabbing}
body[data-account-page="howto"] .howto-cell-control--delete:hover{border-color:#f3a3aa;background:#fff1f2;color:#c62838}
body[data-account-page="howto"] .howto-rich-cell.is-howto-cell-dragging{opacity:.52;transform:scale(.985)}
body[data-account-page="howto"] .howto-rich-cell.is-howto-cell-drop-before{box-shadow:inset 4px 0 0 #7357ff,0 0 0 2px color-mix(in srgb,#7357ff 24%,transparent)!important}
body[data-account-page="howto"] .howto-rich-cell.is-howto-cell-drop-after{box-shadow:inset -4px 0 0 #7357ff,0 0 0 2px color-mix(in srgb,#7357ff 24%,transparent)!important}
@media(max-width:760px){body[data-account-page="howto"] .howto-cell-controls{opacity:1;transform:none;top:5px;right:5px}body[data-account-page="howto"] .howto-cell-control{width:30px;height:30px}}
