.instruction-player{box-sizing:border-box;width:min(480px,100%);max-width:100%;height:min(940px,var(--instruction-viewport-height,100dvh));max-height:var(--instruction-viewport-height,100dvh);margin:0 auto;top:var(--instruction-viewport-top,0px);bottom:auto;padding:0;border:1px solid var(--line);border-radius:28px;background:var(--bg);color:var(--text);font-family:inherit;font-size:15px;line-height:1.48;box-shadow:var(--shadow);overflow:hidden}
.instruction-player *{box-sizing:border-box}.instruction-player[open]{display:flex;flex-direction:column}.instruction-player::backdrop{background:var(--overlay)}.instruction-player button,.instruction-player a{font:inherit;cursor:pointer}.instruction-player button:focus-visible,.instruction-player a:focus-visible,.instruction-player input:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}.instruction-player button:disabled{opacity:.55;cursor:wait}
.instruction-player header{padding:0;border-bottom:0;flex-shrink:0;background:var(--bg)}.instruction-brand{display:flex;align-items:center;gap:10px}.instruction-player header h2{flex:1;margin:0;font-size:13px;line-height:1.35;font-weight:750;letter-spacing:-.3px;overflow-wrap:anywhere}.instruction-player header button{width:auto;min-height:32px;padding:5px 8px;border:1px solid var(--line);border-radius:10px;background:var(--surface-elevated);color:var(--green);font-size:12px}.instruction-meta{display:flex;justify-content:space-between;gap:10px;margin-top:13px;color:var(--muted);font-size:12px}.instruction-meta span:last-child{flex-shrink:0}.instruction-player progress{display:block;width:100%;height:5px;margin-top:9px;border:0;border-radius:99px;overflow:hidden;appearance:none;background:var(--line);accent-color:var(--green)}.instruction-player progress::-webkit-progress-bar{background:var(--line)}.instruction-player progress::-webkit-progress-value{background:var(--green);border-radius:99px}.instruction-player progress::-moz-progress-bar{background:var(--green)}
.instruction-scroll{padding:calc(10px + var(--gimme-safe-top,env(safe-area-inset-top,0px))) calc(18px + var(--gimme-safe-right,0px)) 16px calc(18px + var(--gimme-safe-left,0px));overflow:auto;min-height:0;flex:1;overscroll-behavior:contain}.instruction-reader-body{padding:16px 0 0;overflow:visible;min-height:0;flex:none;overscroll-behavior:contain;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:15px}.instruction-reader-body>*{flex-shrink:0}.instruction-player p{margin:0}.instruction-player .instruction-visual{margin:0;min-height:0;border-radius:18px;background:var(--bg);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;overflow:hidden;padding:0}.instruction-visual img{display:block;width:100%;height:clamp(110px,23dvh,164px);object-fit:contain;border-radius:14px}.instruction-visual figcaption{font-size:12px;color:var(--muted);text-align:center}.instruction-player .instruction-zoom{font-size:11px;background:transparent;color:var(--green);padding:5px;border:0;min-height:26px;width:auto}.instruction-visual.instruction-image-zoom{overflow:auto;align-items:flex-start}.instruction-image-zoom img{width:max(100%,900px);height:auto;max-width:none}.instruction-icon{width:68px;height:68px;border:1px solid var(--line);border-radius:25px;display:grid;place-items:center;background:var(--card);color:var(--green);box-shadow:var(--shadow)}.instruction-icon svg{width:38px;height:38px}.instruction-player .instruction-section{display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;padding:4px 10px;margin-bottom:6px;border:1px solid var(--line);border-radius:99px;background:var(--surface-elevated);font-size:12px;font-weight:650;color:var(--green)}.instruction-section:before{content:'▤';font-size:14px;flex:none}.instruction-player .instruction-heading h3{font-size:26px;line-height:1.14;letter-spacing:-.55px;margin:4px 0 8px;color:var(--text)}.instruction-subtitle{font-size:16px;color:var(--muted)}.instruction-prose{white-space:pre-wrap;line-height:1.6}
.instruction-checklist{display:grid;gap:8px;padding:0;border:0;background:transparent}.instruction-player .instruction-check{display:flex;align-items:flex-start;gap:11px;padding:13px 14px;margin:0;border:1px solid var(--line);border-radius:14px;background:var(--card);cursor:pointer;font-size:15px;font-weight:400;color:var(--text)}.instruction-check:has(input:checked){border-color:var(--green)}.instruction-player .instruction-check input{appearance:auto;width:19px;height:19px;min-width:19px;margin:2px 0 0;accent-color:var(--green)}.instruction-check input:checked+span{text-decoration:line-through;color:var(--muted)}.instruction-note{background:var(--surface-elevated);border:1px solid var(--line);color:var(--text);padding:13px 15px;border-radius:14px;font-size:13px;white-space:pre-wrap}.instruction-note strong{display:block;margin-bottom:5px;color:var(--green)}.instruction-note-important{border-left:4px solid var(--green)}.instruction-note-warning{background:var(--warning-soft);border:1px solid var(--warning)}.instruction-note-warning strong{color:var(--warning)}.instruction-links{display:grid;gap:8px}.instruction-player .instruction-link{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface-elevated);color:var(--green);font-weight:700;text-decoration:none;overflow-wrap:anywhere}.instruction-link:after{content:'↗';margin-left:8px}.instruction-options h4{font-size:15px;margin:0 0 10px}.instruction-option-buttons{display:grid;gap:7px;margin-bottom:13px}.instruction-player .instruction-option{border:1px solid var(--line);border-radius:14px;min-height:52px;text-align:left;padding:12px 34px 12px 45px;background:var(--card);color:var(--text);white-space:normal;position:relative}.instruction-player .instruction-option:before{content:"";position:absolute;left:14px;top:50%;width:18px;height:18px;border:1px solid var(--muted);border-radius:50%;transform:translateY(-50%)}.instruction-player .instruction-option:after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-50%) rotate(-45deg)}.instruction-player .instruction-option[aria-pressed=true]:before{border-color:var(--green);background:radial-gradient(circle,var(--green) 0 5px,transparent 5.5px)}.instruction-player .instruction-option[aria-pressed=true]:after{transform:translateY(-70%) rotate(45deg);border-color:var(--green)}.instruction-player .instruction-option[aria-pressed=true]{background:var(--surface-elevated);border-color:var(--green);color:var(--green);font-weight:700}.instruction-option-content{padding:15px;border:1px solid var(--line);border-radius:14px;white-space:pre-wrap;line-height:1.6}
.instruction-player footer{display:flex;flex-wrap:nowrap;gap:9px;flex-shrink:0;padding:5px 18px calc(5px + var(--gimme-safe-bottom,env(safe-area-inset-bottom,0px)));border-top:1px solid var(--line);background:var(--bg)}.instruction-player footer button{display:grid;place-items:center;width:auto;flex:1;min-width:0;min-height:50px;padding:10px 14px;border:0;border-radius:14px;font-weight:740;white-space:normal;background:var(--surface-elevated);color:var(--green)}.instruction-player footer .primary{background:linear-gradient(110deg,var(--button-bg),var(--button-end));color:var(--button-text)}.instruction-feedback{margin:12px 0 0;padding:10px;overflow-wrap:anywhere}.instruction-feedback:empty{display:none}.instruction-banner{margin:12px 0;padding:18px}.instruction-banner h3{margin:0}.instruction-banner p{margin:8px 0}.help-instruction-list{display:grid;gap:8px}.help-instruction-list button{text-align:left;white-space:normal}.help-instruction-list button strong,.help-instruction-list button span{display:block}.bank-support-actions:empty{display:none}
@media(max-width:600px){.instruction-player{border-radius:0;height:var(--instruction-viewport-height,100dvh)}}@media(min-width:601px){.instruction-player{height:min(940px,calc(var(--instruction-viewport-height,100dvh) - 40px));top:calc(20px + var(--instruction-viewport-top,0px))}}@media(prefers-reduced-motion:reduce){.instruction-player *{scroll-behavior:auto!important;transition:none!important}}
.instruction-player footer{padding-left:calc(18px + var(--gimme-safe-left,0px));padding-right:calc(18px + var(--gimme-safe-right,0px))}
.instruction-checklist h4{font-size:15px;margin:10px 0 2px}

.instruction-menu{position:relative;flex:none;border:0;padding:0}.instruction-menu summary{font-size:12px;cursor:pointer;color:var(--muted);min-height:32px;display:flex;align-items:center;list-style:none}.instruction-menu summary::-webkit-details-marker{display:none}.instruction-menu-actions{display:none}.instruction-menu[open] .instruction-menu-actions{position:absolute;right:0;top:34px;z-index:2;display:grid;gap:4px;width:max-content;min-width:172px;max-width:calc(100vw - 32px);padding:6px;background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.instruction-menu .instruction-menu-actions button{position:static;min-height:44px;width:100%;margin:0;text-align:left;white-space:normal;box-sizing:border-box}.instruction-branches{display:grid;gap:8px}.instruction-branches h4{font-size:15px;margin:0}.instruction-player footer button:first-child:not(:only-child){flex:0 1 35%}.instruction-player .instruction-visual:has(.instruction-icon){padding:18px 0;border:0;background:var(--green-soft)}.instruction-note{position:relative;padding-left:42px}.instruction-note-symbol{position:absolute;left:14px;top:12px;font-size:18px;color:var(--green)}.instruction-note-warning .instruction-note-symbol{color:var(--warning)}.instruction-feedback:not(:empty){border-radius:12px;background:var(--surface-elevated)}
@media(max-height:700px){.instruction-visual img{height:110px}.instruction-player .instruction-visual:has(.instruction-icon){padding:10px 0}.instruction-reader-body{gap:13px}.instruction-player .instruction-heading h3{font-size:24px}}

.instruction-player .instruction-heading h3:last-child{margin-bottom:0}
.instruction-link-telegram{justify-content:flex-start!important;gap:10px}.instruction-link-telegram:after{content:none}.instruction-telegram-icon{display:flex;flex:none;color:var(--green)}.instruction-telegram-icon svg{width:24px;height:24px}

/* Full-screen route surface; legacy dialogs in the editor keep their own layout. */
.instruction-player.instruction-screen{position:fixed;inset:auto 0 auto 0;top:var(--instruction-viewport-top,0px);display:flex;flex-direction:column;width:100%;max-width:none;height:var(--instruction-viewport-height,100dvh);max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--bg);z-index:1200;--instruction-column-width:720px;--instruction-safe-top:max(0px,calc(var(--gimme-safe-top,env(safe-area-inset-top,0px)) - var(--instruction-viewport-top,0px)));--instruction-safe-bottom:var(--gimme-safe-bottom,env(safe-area-inset-bottom,0px));--instruction-safe-left:var(--gimme-safe-left,0px);--instruction-safe-right:var(--gimme-safe-right,0px)}
.instruction-screen.instruction-preview{--instruction-safe-top:0px;--instruction-safe-bottom:0px;--instruction-safe-left:0px;--instruction-safe-right:0px}
.instruction-screen .instruction-scroll{padding-top:calc(10px + var(--instruction-safe-top));padding-left:max(calc(18px + var(--instruction-safe-left)),calc((100% - var(--instruction-column-width))/2 + 18px));padding-right:max(calc(18px + var(--instruction-safe-right)),calc((100% - var(--instruction-column-width))/2 + 18px))}
.instruction-screen footer{padding-bottom:calc(5px + var(--instruction-safe-bottom));padding-left:max(calc(18px + var(--instruction-safe-left)),calc((100% - var(--instruction-column-width))/2 + 18px));padding-right:max(calc(18px + var(--instruction-safe-right)),calc((100% - var(--instruction-column-width))/2 + 18px))}
.help-instruction-list .help-interactive-instruction{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:12px;white-space:normal}
.help-instruction-list .help-instruction-icon{display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:var(--green-soft);color:var(--green)}.help-instruction-icon svg{width:26px;height:26px}
.help-instruction-copy{min-width:0;overflow-wrap:anywhere}.help-instruction-copy strong{color:var(--text);font-size:16px;line-height:1.35}.help-instruction-copy>span{font-size:13px;font-weight:400;color:var(--muted);margin-top:4px;line-height:1.4}

/* Published application guidance; placement and availability remain server-owned. */
.instruction-banner.card{background:var(--green-soft);border:1px solid var(--green);box-shadow:none;padding:18px}
.instruction-banner-heading{display:flex;align-items:center;gap:12px;min-width:0}.instruction-banner-heading h3{min-width:0;text-align:left;overflow-wrap:anywhere}.instruction-banner-icon{display:flex;flex:0 0 40px;color:var(--green)}.instruction-banner-icon svg{width:40px;height:40px}
.instruction-banner h3{color:var(--text)}.instruction-banner p{color:var(--text);font-weight:400;line-height:normal;text-align:center;overflow-wrap:anywhere}.instruction-banner p:empty{display:none}.instruction-banner button.primary{width:100%;margin-top:8px}
.instruction-player,.instruction-player *{-webkit-tap-highlight-color:transparent}
.instruction-player :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--green);outline-offset:2px}

.instruction-step-loading{min-height:180px;display:grid;align-content:center;justify-items:center;gap:12px;text-align:center;color:var(--muted)}

/* Compact decorative art; documents/screenshots retain their full-size viewer. */
.instruction-heading-compact{position:relative;isolation:isolate;min-height:96px;padding-right:92px}
.instruction-heading-compact .instruction-heading-copy{position:relative;z-index:2}
.instruction-heading-compact .instruction-heading-copy::before{content:'';position:absolute;inset:0 -48px 0 -2px;z-index:-1;background:linear-gradient(90deg,var(--bg) 56%,transparent);opacity:.52;pointer-events:none}
.instruction-corner-visual{position:absolute;z-index:1;right:0;top:2px;width:clamp(116px,35vw,152px);height:104px;display:flex;justify-content:flex-end;align-items:flex-start;pointer-events:none;opacity:.29}
.instruction-corner-visual :is(img,canvas){display:block;width:100%;height:100%;object-fit:contain;object-position:center top;filter:saturate(.92)}
.instruction-player[data-theme=dark] .instruction-corner-visual{opacity:.59}
.instruction-player[data-theme=dark] .instruction-corner-visual :is(img,canvas){filter:brightness(1.45) saturate(.92)}
:root[data-theme=dark] .instruction-player:not([data-theme=light]) .instruction-corner-visual{opacity:.59}
:root[data-theme=dark] .instruction-player:not([data-theme=light]) .instruction-corner-visual :is(img,canvas){filter:brightness(1.45) saturate(.92)}
.instruction-illustration-caption{font-size:12px;color:var(--muted);text-align:center}
@media(max-width:370px),(max-height:700px){.instruction-heading-compact{min-height:88px;padding-right:82px}.instruction-corner-visual{height:92px;width:126px}}
