/* Shared mobile shell. Desktop retains its existing navigation and chart layout. */
.mobile-app-dock,.mobile-app-sheet:not([open]){display:none}
@media(max-width:1000px){
 html.mobile-app-navigation{--mobile-dock-height:calc(64px + env(safe-area-inset-bottom,0px));scroll-padding-bottom:calc(var(--mobile-dock-height) + 16px)}
 html.mobile-app-navigation body{padding-bottom:var(--mobile-dock-height)}
 .mobile-app-dock{position:fixed;z-index:32;inset:auto 0 0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px;padding:4px max(8px,env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));min-height:64px;background:#131722;border-top:1px solid #343a49;color:#d1d4dc;font-family:var(--kriptom-font-sans);box-shadow:0 -8px 24px #0002;isolation:isolate}
 .mobile-app-dock>a,.mobile-app-dock>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:56px;padding:5px 2px;border:0;border-radius:8px;background:transparent;color:#aeb6c6;font:600 11px/1.2 var(--kriptom-font-sans);text-decoration:none;cursor:pointer;touch-action:manipulation}
 .mobile-app-dock svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .mobile-app-dock :is(a,button):is([aria-current=page],[aria-expanded=true],:active){background:#202d4b;color:#a9c2ff}
 .mobile-app-dock>button:disabled{opacity:.45;cursor:wait}
 .mobile-app-dock :is(button,a):focus-visible,.mobile-app-sheet :is(button,a,select,summary):focus-visible{outline:2px solid #8eafff;outline-offset:-3px}
 .mobile-app-navigation .mobile-sticky-cta{display:none!important}
 .mobile-app-navigation .site-header .desktop-nav{display:none!important}
 .mobile-app-navigation .site-header .mobile-nav-menu{display:block}
 .mobile-app-navigation :is(.site-header .mobile-nav-menu, .terminal-toolbar-menu){display:none!important}
 .mobile-app-navigation .site-header .premium-nav{min-height:56px;height:56px;padding:8px 0}
 .mobile-app-navigation input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),.mobile-app-navigation textarea,.mobile-app-navigation select{font-size:max(16px,1em)}
 .mobile-app-navigation .site-footer{padding-bottom:24px}
 .mobile-app-navigation :is(.article-page,.article-body,.ai-article){min-width:0;overflow-wrap:anywhere}
 .mobile-app-navigation :is(.article-body,.ai-article) :is(img,video,iframe){max-width:100%}
 .mobile-app-navigation :is(.article-body,.ai-article) table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
 .mobile-app-navigation :is(.article-body,.ai-article) pre{max-width:100%;overflow:auto}
 .mobile-app-navigation :is(.article-body,.ai-article) :is(p,li){font-size:17px;line-height:1.8}
 .mobile-app-navigation .article-page h1{hyphens:none;text-wrap:pretty}
 .mobile-app-navigation .article-share-actions :is(button,a){min-width:44px;min-height:44px}
 .mobile-app-sheet[open]{position:fixed;inset:auto 0 0;display:flex;flex-direction:column;width:min(620px,100%);max-width:100%;max-height:min(84dvh,760px);margin:0 auto;padding:0 0 env(safe-area-inset-bottom);overflow:hidden;border:1px solid #394151;border-bottom:0;border-radius:18px 18px 0 0;background:#131722;color:#e8edf5;box-sizing:border-box;font:15px/1.5 var(--kriptom-font-sans);box-shadow:0 -20px 60px #0005}
 .mobile-app-sheet::backdrop{background:rgba(3,7,14,.58)}
 .mobile-app-sheet-open{overflow:hidden!important}
 .mobile-app-sheet>header{display:flex;align-items:center;justify-content:space-between;flex-shrink:0;gap:16px;padding:12px 16px;border-bottom:1px solid #2a3343}
 .mobile-app-sheet h2{margin:0;font:700 18px/1.3 var(--kriptom-font-sans)}
 .mobile-app-sheet>header>button{width:44px;height:44px;min-height:44px;padding:0;border:1px solid #394151;border-radius:8px;background:#1c2330;color:#e8edf5;font-size:26px;cursor:pointer}
 .mobile-app-sheet-content{overflow:auto;overscroll-behavior:contain;padding:8px 16px 20px;min-height:0}
 .mobile-app-sheet-content>p{font-size:14px;line-height:1.6;color:#b5c0d1;margin:8px 0 16px}
 .mobile-app-sheet-content>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 16px}
 .mobile-app-sheet-content :is(a,button){display:flex;align-items:center;gap:10px;min-height:48px;width:100%;padding:10px 12px;border:1px solid #354053;border-radius:8px;background:#1a2130;color:#e0e7f2;font:600 14px/1.4 var(--kriptom-font-sans);text-decoration:none;text-align:left;white-space:normal;cursor:pointer;touch-action:manipulation}
 .mobile-app-sheet-content>button{margin:8px 0}
 .mobile-app-sheet-content :is(button,a):active{background:#283954}
 .mobile-app-language{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 0;border-top:1px solid #354053;margin-top:16px}
 .mobile-app-language select{min-height:48px;max-width:65%;padding:8px 12px;background:#1a2130;color:#e8edf5;border:1px solid #53637b;border-radius:8px;font-size:16px}
 .mobile-drawing-group{border-top:1px solid #354053;margin:0;padding:0}
 .mobile-drawing-group>summary{min-height:48px;padding:12px 4px;color:#c6d7ef;font-weight:650;cursor:pointer}
 .mobile-drawing-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 0 16px}
 .mobile-drawing-list svg{width:24px;height:24px;flex:0 0 24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 .mobile-drawing-list svg path[fill]{stroke:none}
 .mobile-drawing-list button[aria-pressed=true],.mobile-drawing-options button[aria-pressed=true]{border-color:#86abff;background:#21365b;color:#dbe8ff}
 .mobile-drawing-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:16px;border-top:1px solid #354053}
 .mobile-app-keyboard .mobile-app-dock{visibility:hidden;pointer-events:none}
 .mobile-chart-navigation .market-bug-report{bottom:calc(var(--mobile-dock-height) + 8px)!important}
 .mobile-chart-navigation .market-bug-report-toggle{display:none!important}
 .mobile-chart-navigation .mobile-terminal-tabs{display:none!important}
 .mobile-chart-navigation .chart-drawing-toolbar,.mobile-chart-navigation .chart-drawing-collapse-toggle{display:none!important}
 .mobile-chart-navigation .chart-drawing-favorites{display:none!important}
 .mobile-chart-navigation .chart-layout-slots{inset:0!important}
 .mobile-chart-navigation .chart-stage .chart-subindicator-panes{padding-left:0!important}
 .mobile-chart-navigation .chart-stage:not(.is-drawing-toolbar-collapsed) .chart-indicator-data-panel{left:8px;max-width:calc(100% - 16px)}
 .mobile-chart-navigation .chart-canvas-wrap{grid-template-rows:minmax(0,1fr)!important}
 .mobile-chart-navigation .chart-status-bar{overflow-x:auto;max-width:100%;scrollbar-width:none}
 .mobile-chart-navigation .chart-status-bar button,.mobile-chart-navigation .interval-strip button{min-height:44px;min-width:44px}
 .mobile-chart-navigation .chart-drawing-settings-popover{max-width:calc(100vw - 16px)!important;position:fixed!important;top:auto!important;bottom:calc(var(--mobile-dock-height) + 8px)!important}
 .mobile-chart-navigation .mobile-sheet-backdrop{bottom:var(--mobile-dock-height)!important;z-index:30!important}
 .mobile-chart-navigation .chart-stage:has(.chart-drawing-settings-popover:not([hidden])){z-index:31!important}
 .mobile-chart-navigation .chart-overlay-indicator-toggle{min-width:44px;min-height:44px}
 html.mobile-chart-navigation[data-mobile-active-drawing-tool]:not([data-mobile-active-drawing-tool="cursor"]) .mobile-app-dock [data-mobile-action="draw"]{background:#21365b;color:#dbe8ff}
 .mobile-chart-navigation .chart-drawing-settings-detail{position:fixed!important;top:auto!important;bottom:calc(var(--mobile-dock-height) + 66px)!important;max-height:calc(100dvh - var(--mobile-dock-height) - 100px)!important;overflow:auto}
 .mobile-chart-navigation .chart-drawing-settings-popover button{min-width:44px!important;min-height:44px!important}
 .mobile-chart-navigation .chart-stage{scroll-margin-top:8px;scroll-margin-bottom:var(--mobile-dock-height)}
 .mobile-chart-navigation .side-terminal-panel{scroll-margin-top:8px;scroll-margin-bottom:var(--mobile-dock-height)}
}
@media(max-width:430px){.mobile-app-navigation .news-editorial .article-page h1{font-size:30px;line-height:1.18}.mobile-app-navigation .news-editorial .article-body{padding-top:20px}.mobile-drawing-list button{padding:10px 8px;font-size:13px}}
@media(max-height:500px) and (orientation:landscape){.mobile-app-sheet[open]{max-height:94dvh}.mobile-app-sheet>header{padding:4px 16px}.mobile-app-dock{min-height:52px}.mobile-app-dock>a,.mobile-app-dock>button{min-height:44px;flex-direction:row;gap:8px}.mobile-app-navigation{--mobile-dock-height:calc(52px + env(safe-area-inset-bottom,0px))!important}}
@media(prefers-reduced-motion:reduce){html.mobile-app-navigation{scroll-behavior:auto}}

@media(max-width:900px) and (max-height:500px) and (orientation:landscape){.mobile-chart-navigation .chart-canvas-wrap{height:calc(100dvh - 128px)!important;min-height:220px!important}.mobile-chart-navigation .chart-stage{min-height:0!important}}

/* Searchable, touch-sized drawing library; long names remain readable. */
.mobile-chart-workspace-controls{display:none}
@media(max-width:1000px){
 .mobile-app-sheet [hidden]{display:none!important}
 .mobile-drawing-search{display:block;width:100%;min-height:48px;margin:6px 0 16px;padding:12px 14px;border:1px solid #46516a;border-radius:10px;background:#1b2230;color:#eef3fc;font:400 16px/1.4 var(--kriptom-font-sans);box-sizing:border-box}
 .mobile-drawing-search::placeholder{color:#aab6ca}
 .mobile-drawing-search:focus-visible{outline:2px solid #8eafff;outline-offset:2px}
 .mobile-drawing-list{grid-template-columns:minmax(0,1fr);gap:4px}
 .mobile-drawing-list button{font-size:14px;padding:10px 12px}
 .mobile-drawing-list .mobile-drawing-tool-row{gap:6px}
 .mobile-drawing-tool-row>button:first-child{border-color:transparent;background:transparent}
 .mobile-drawing-tool-row>button:first-child[aria-pressed=true]{border-color:#86abff;background:#21365b}
 .mobile-drawing-favorite-list{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 16px;scroll-snap-type:x proximity}
 .mobile-drawing-favorite-list>button{flex:0 0 auto;width:auto;max-width:220px;scroll-snap-align:start;font-size:13px}
 .mobile-drawing-favorite-list svg{width:24px;height:24px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7}
 .mobile-drawing-group>summary{font-size:14px;letter-spacing:.01em}
 .mobile-drawing-group>summary::marker{color:#91a2bc}
}
@media(min-width:600px) and (max-width:1000px){.mobile-drawing-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep help beside the desktop account controls; mobile has it in Menu. */
.piyasa-guide-shortcut{white-space:nowrap;text-decoration:none}
@media(max-width:1000px){.piyasa-guide-shortcut{display:none!important}}

/* 20260916-mobile-account-purchase-v1: one scroll surface below reachable dialog controls. */
.pro-checkout-card:has([data-pro-checkout-status]:is([data-state=error],[data-state=configuration],[data-state=pending],[data-state=active])) .pro-stripe-checkout:empty{min-height:0}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){
 html{--account-dialog-gap:8px}
 .pl-nav .pl-login{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation}
 html body :is(.account-modal,.pro-subscription-modal.bugi-purchase-modal){
  box-sizing:border-box;top:var(--account-viewport-top,0px)!important;bottom:auto!important;
  height:var(--account-viewport-height,100dvh)!important;
  padding:max(var(--account-dialog-gap),env(safe-area-inset-top)) max(var(--account-dialog-gap),env(safe-area-inset-right)) max(var(--account-dialog-gap),env(safe-area-inset-bottom)) max(var(--account-dialog-gap),env(safe-area-inset-left))!important;
  align-items:center!important;overflow:hidden;
 }
 html body .account-dialog{
  display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:52px minmax(0,1fr);
  width:100%!important;max-width:520px;min-width:0;min-height:0;
  max-height:100%!important;padding:0!important;overflow:hidden!important;border-radius:8px;
 }
 html body .account-dialog>.account-close{
  position:static;grid-column:2;grid-row:1;align-self:center;justify-self:center;
  width:44px;height:44px;min-width:44px;min-height:44px;z-index:2;
 }
 html body .account-dialog>.account-language-bar{
  grid-column:1;grid-row:1;margin:0;padding:4px 8px;min-width:0;align-items:center;
 }
 html body .account-dialog>.account-dialog-body{
  grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,1fr);align-content:start;
  min-width:0;min-height:0;max-height:none!important;padding:12px!important;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-block:12px;
 }
 html body .account-dialog .account-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html body .account-dialog :is(.account-form,.account-auth-panel){padding:12px;min-width:0;overflow-wrap:anywhere}
 html body :is(.account-dialog,.pl-account-dialog) :is(button,a){min-height:44px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
 html body :is(.account-dialog,.pl-account-dialog) input:not([type=checkbox]):not([type=radio]){box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:48px;font-size:16px;scroll-margin-block:12px}
 html body :is(.account-dialog,.pl-account-dialog) .account-marketing-choice{display:flex;align-items:flex-start;gap:10px;min-height:44px;line-height:1.5;cursor:pointer}
 html body :is(.account-dialog,.pl-account-dialog) .account-marketing-choice input{flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;margin:2px 0 0;padding:0}
 html body :is(.account-dialog,.pl-account-dialog) .account-marketing-choice>span{min-width:0;overflow-wrap:anywhere}
 html body :is(.account-dialog,.pl-account-dialog) :is(.account-form-actions,.account-link-actions){display:flex;flex-wrap:wrap;gap:8px;min-width:0}
 html body :is(.account-dialog,.pl-account-dialog) :is(.account-form-actions,.account-link-actions)>button{flex:1 1 130px;min-width:0;max-width:100%;padding:10px 12px}
 html body .pl-account-dialog[open]{
  position:fixed;inset:calc(var(--account-viewport-top,0px) + max(8px,env(safe-area-inset-top))) 0 auto;
  display:flex;flex-direction:column;box-sizing:border-box;margin:0 auto;
  width:calc(100% - 16px);max-width:480px;min-width:0;min-height:0;
  max-height:calc(var(--account-viewport-height,100dvh) - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));
  overflow:hidden;border-radius:8px;
 }
 .pl-account-dialog .pl-account-header{flex:0 0 auto;padding:8px 12px;gap:8px}
 .pl-account-dialog .pl-account-header h2{font-size:20px;letter-spacing:0}
 .pl-account-dialog .pl-account-header>div{flex:0 0 auto;gap:4px}
 .pl-account-dialog .pl-account-header button{flex:0 0 44px;width:44px;height:44px;padding:0;display:grid;place-items:center}
 .pl-account-dialog .pl-account-tabs{flex:0 0 auto;margin:8px 12px 0}
 .pl-account-dialog .pl-account-content{flex:0 1 auto;min-height:0;padding:16px 12px;overflow:auto;overscroll-behavior:contain;scroll-padding-block:12px}
 .pl-account-dialog .account-form>a{display:flex;align-items:center}
 html body .pro-subscription-modal .pro-subscription-dialog{width:100%;max-width:640px;min-width:0;min-height:0;max-height:100%;border-radius:8px}
 .pro-subscription-modal .pro-subscription-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px;min-width:0}
 .pro-subscription-modal .pro-header-tools{min-width:0;flex-wrap:nowrap;gap:4px}
 .pro-subscription-modal .pro-brand{display:flex;align-items:center;min-width:0;min-height:44px;overflow-wrap:anywhere;white-space:normal;letter-spacing:0;font-size:14px}
 html body :is(.pro-subscription-header,.account-language-bar) .pro-language-control select{width:86px;min-width:86px;font-size:16px;padding:8px 4px}
 .pro-subscription-modal .pro-header-tools>button{flex-shrink:0;min-width:44px;min-height:44px;white-space:normal}
 .pro-subscription-modal .pro-subscription-layout{min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;scroll-padding-block:16px}
 .pro-subscription-modal :is(.pro-checkout-heading,.pro-checkout-status,.pro-payment-note,.pro-feature-list,.pro-price){overflow-wrap:anywhere;letter-spacing:0}
 .pro-subscription-modal :is(.pro-checkout-retry,.pro-checkout-manage,.pro-free-link,.pro-support-link){min-height:44px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
 .pro-subscription-modal .pro-stripe-checkout{max-width:100%}
 :is(.account-dialog-body,.pl-account-content,.pro-subscription-layout){scrollbar-width:thin;scrollbar-color:var(--kriptom-border-strong,#626977) transparent}
 :is(.account-dialog-body,.pl-account-content,.pro-subscription-layout)::-webkit-scrollbar{width:6px}
 :is(.account-dialog-body,.pl-account-content,.pro-subscription-layout)::-webkit-scrollbar-thumb{background:var(--kriptom-border-strong,#626977);border-radius:4px}
}

/* Mobile public headers keep the existing language control within thumb reach. */
@media(max-width:1000px){
 .mobile-app-navigation .site-header .desktop-nav{display:flex!important;align-items:center;justify-content:flex-end;flex:0 0 auto;width:auto;margin-left:auto;gap:0}
 .mobile-app-navigation .site-header .desktop-nav>:not(.language-switcher){display:none!important}
 .mobile-app-navigation .site-header .premium-nav{gap:12px;min-height:60px;height:auto;box-sizing:border-box}
 .mobile-app-navigation .site-header .language-switcher{display:flex;margin:0;padding:0;border:0;background:transparent}
 .mobile-app-navigation .site-header .language-switcher>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-app-navigation .site-header .language-switcher select{box-sizing:border-box;width:104px;min-height:44px;padding:8px;color:var(--kriptom-text,#d1d4dc);background:var(--kriptom-control,#1c2030);border:1px solid var(--kriptom-border-strong,#434957);border-radius:5px;color-scheme:dark;font:400 16px/1.25 var(--kriptom-font-sans)}
 .mobile-app-navigation .site-header .language-switcher select:focus-visible{outline:2px solid var(--kriptom-primary,#3861fb);outline-offset:2px}
}
