/* 0DTE sub-nav = the site's approved in-page zone bar (finance option A, /design-standard.html#z-subnav):
   one night-glass bar · each group keeps its topic colour · tabs reuse catalogue glass/edge craft (sprite + name) ·
   the open tab fills with its group colour · sticky under the shell; while stuck = one swipe row.
   Audi 2026-10-25: "แก้คือแก้ให้เหมือนหน้าอื่นเลยนะพวกsub navigator" (the old rail = bordered gradient pills + labels above).
   Selectors carry #tabList + :not(#a…) ids so they beat the older rail layers in dte-workspace.css. */
html body nav.tabs:not(#akx){position:sticky!important;top:var(--ak-shell-height,72px)!important;z-index:40!important;margin:8px 0 6px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html body nav.tabs:not(#akx) .dte-tab-shell{max-width:var(--aku-page-max,1600px)!important;width:calc(100% - 48px)!important;margin:0 auto!important;padding:0!important;box-sizing:border-box!important;background:none!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
html body nav.tabs:not(#akx) #tabList:not(#a){display:flex!important;flex-wrap:nowrap!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:8px 10px!important;grid-template-columns:none!important;max-width:none!important;width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important;padding:8px 0!important;border-radius:18px!important;background:none!important;border:0!important;box-shadow:none!important;-webkit-backdrop-filter:none;backdrop-filter:none;overflow-x:auto!important;scrollbar-width:none}
html body nav.tabs:not(#akx) #tabList::-webkit-scrollbar{display:none}
html body nav.tabs:not(#akx) #tabList .tab-sep,html body nav.tabs:not(#akx) #tabList .dte-tab-indicator{display:none!important}
html body nav.tabs:not(#akx) #tabList .tab-group:not(#a){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;user-select:none!important;-webkit-user-select:none!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important}
/* group capsule */
html body nav.tabs:not(#akx) #tabList .tab-pod:not(#a):not(#b){--g:var(--aku-accent);display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;max-width:none!important;height:auto!important;min-height:0!important;gap:6px!important;padding:4px!important;margin:0!important;border:0!important;border-radius:999px!important;background:color-mix(in srgb,var(--g) 12%,transparent)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--g) 24%,transparent)!important;box-sizing:border-box!important}
html body nav.tabs:not(#akx) #tabList .tab-pod[data-pod=guide]:not(#a):not(#b):not(#c){--g:var(--aku-sun)}
html body nav.tabs:not(#akx) #tabList .tab-pod[data-pod=market]:not(#a):not(#b):not(#c){--g:color-mix(in srgb,var(--aku-w-knowledge) 65%,var(--aku-on-night))}
html body nav.tabs:not(#akx) #tabList .tab-pod[data-pod=desk]:not(#a):not(#b):not(#c){--g:var(--aku-accent)}
html body nav.tabs:not(#akx) #tabList .tab-pod[data-pod=journal]:not(#a):not(#b):not(#c){--g:var(--aku-box-red-num)}
html body nav.tabs:not(#akx) #tabList .tab-pod[data-pod=learn]:not(#a):not(#b):not(#c){--g:color-mix(in srgb,var(--aku-w-interests) 65%,var(--aku-on-night))}
html body nav.tabs:not(#akx) #tabList .tab-pod[data-pod=owner]:not(#a):not(#b):not(#c){--g:var(--aku-bad)}
/* Audi 11-18 "มันจะมี0dte ปุ่มแบบเดิมที่โอเครอยุ่ แต่คุณเอาไปไหนแล้วไม่รุ้": the 11-09 grouped-colour tabs are back (liked/2026-11-09-0dte-grouped-capsule-nav.png).
   Since 11-17 the 8 main tabs share one pod, so each tab carries its old group colour itself: desk green · market blue · journal red · learn violet · review red. */
html body nav.tabs:not(#akx) #tabList .tab[data-tab=levels]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=data]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=setups]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=tools]:not(#a):not(#b):not(#c){--g:var(--aku-accent)}
html body nav.tabs:not(#akx) #tabList .tab[data-tab=market]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=gex]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=chart]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=news]:not(#a):not(#b):not(#c){--g:color-mix(in srgb,var(--aku-w-knowledge) 65%,var(--aku-on-night))}
html body nav.tabs:not(#akx) #tabList .tab[data-tab=mytrades]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=trades]:not(#a):not(#b):not(#c){--g:var(--aku-box-red-num)}
html body nav.tabs:not(#akx) #tabList .tab[data-tab=guide]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=library]:not(#a):not(#b):not(#c),html body nav.tabs:not(#akx) #tabList .tab[data-tab=lessons]:not(#a):not(#b):not(#c){--g:color-mix(in srgb,var(--aku-w-interests) 65%,var(--aku-on-night))}
html body nav.tabs:not(#akx) #tabList .tab[data-tab=review]:not(#a):not(#b):not(#c){--g:var(--aku-bad)}
/* Audi 11-18 "V1ลองจัดกลุ่มแบบนี้…ไม่ต้องทำเป็นแคปซูลในแคปซูล" → "หมายถึงกรอบก็คลุมอยู่แค่ในกลุ่มของมัน": each colour group is its own capsule
   (desk: โต๊ะเทรด·Data | market: ตลาดสด·GEX·กราฟ·ข่าว | journal: จดเทรด | learn: เรียนรู้), no one big capsule around all of them. */
html body nav.tabs:not(#akx) #tabList .tab-pod-btns:not(#a){display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 auto!important;gap:6px!important;width:max-content!important;min-width:max-content!important;margin:0!important;padding:0!important;grid-template-columns:none!important;background:none!important;border:0!important}
/* tab = plain pill */
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b){display:inline-flex!important;position:relative;align-items:center!important;gap:6px!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;height:36px!important;min-height:36px!important;padding:0 12px!important;margin:0!important;border:1px solid color-mix(in srgb,var(--g) 62%,var(--aku-line))!important;border-radius:999px!important;background:linear-gradient(180deg,color-mix(in srgb,var(--g) 12%,var(--aku-sky-2)),var(--aku-sky-3))!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--aku-text) 12%,transparent),0 2px 4px color-mix(in srgb,var(--aku-sky-3) 40%,transparent)!important;outline-offset:-3px;color:var(--aku-text)!important;font:600 .94rem/1.5 var(--aku-font-body)!important;white-space:nowrap!important;opacity:1!important;filter:none!important;transform:none!important;text-shadow:none!important;cursor:pointer;transition:background .2s,color .2s,border-color .2s,box-shadow .2s,translate .2s!important}
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b)::before,html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b)::after{content:none!important;display:none!important}
html body nav.tabs:not(#akx) #tabList .tab .tab-px{margin:0!important;transition:translate .25s}
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b):is(:hover,:focus-visible){background:linear-gradient(180deg,color-mix(in srgb,var(--g) 24%,var(--aku-sky-2)),var(--aku-sky-3))!important;border-color:var(--g)!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--aku-text) 18%,transparent),0 0 12px -4px var(--g)!important;translate:0 -1px}
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b):hover .tab-px{translate:0 -2px}
/* tab text carries a light tint of its group so each capsule reads as its own colour family */
html:not([data-theme=light]) body nav.tabs:not(#akx) #tabList .tab:not([aria-selected="true"]):not(#a):not(#b){color:var(--aku-text)!important}
html body nav.tabs:not(#akx) #tabList .tab[aria-selected="true"]:not(#a):not(#b){background:linear-gradient(180deg,color-mix(in srgb,var(--g) 65%,var(--aku-paper)),var(--g))!important;color:var(--aku-night)!important;border-color:color-mix(in srgb,var(--g) 70%,var(--aku-paper))!important;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--aku-paper) 80%,transparent),0 0 12px -4px var(--g)!important;font-weight:700!important}
html body nav.tabs:not(#akx) #tabList .tab[aria-selected="true"]:not(#a):not(#b) .tab-px{animation:dteTabBob 1.6s ease-in-out infinite}
@keyframes dteTabBob{50%{translate:0 -2px}}
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b):focus-visible{outline:2px solid var(--aku-text)!important}
html body nav.tabs:not(#akx) #tabList .tab[aria-selected="true"]:not(#a):not(#b):focus-visible{outline-color:var(--aku-night)!important}
html body nav.tabs:not(#akx) .dte-tab-shell{position:relative}
html body nav.tabs:not(#akx) .dte-tab-shell.has-overflow #tabList:not(#a){padding-inline:44px!important;-webkit-mask-image:none!important;mask-image:none!important} /* 11-18 reviewer: the edge-fade mask made Chromium drop pill borders/labels mid-strip on phones just before the strip sticks; the < > arrows already show it scrolls */
html body nav.tabs:not(#akx) .dte-nav-scroll{position:absolute;z-index:2;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid transparent;border-radius:50%;color:var(--aku-text);background:linear-gradient(180deg,var(--aku-sky-2),var(--aku-sky-3));font:600 24px/1 var(--aku-font-body);cursor:pointer;transition:background .2s,border-color .2s,translate .2s}
html body nav.tabs:not(#akx) .dte-nav-scroll:first-child{left:0}
html body nav.tabs:not(#akx) .dte-nav-scroll:last-child{right:0}
html body nav.tabs:not(#akx) .dte-nav-scroll:hover{border-color:var(--aku-accent);translate:0 -1px}
html body nav.tabs:not(#akx) .dte-nav-scroll:focus-visible{outline:2px solid var(--aku-text);outline-offset:2px}
html body nav.tabs:not(#akx) .dte-nav-scroll[aria-disabled=true]{opacity:.35;cursor:default;translate:none}
html body nav.tabs:not(#akx) .dte-nav-scroll[hidden]{display:none!important}
html body nav.tabs[data-offscreen] .tab-px{animation-play-state:paused!important}
/* daylight: white bar, navy ink, same group colours */
html[data-theme=light] body nav.tabs:not(#akx) #tabList:not(#a){background:none!important;box-shadow:none!important}
html[data-theme=light] body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b){color:var(--aku-text)!important;border-color:color-mix(in srgb,var(--g) 50%,var(--aku-text))!important}
html[data-theme=light] body nav.tabs:not(#akx) #tabList .tab-pod:not(#a):not(#b){background:color-mix(in srgb,var(--g) 10%,var(--aku-sky-2))!important}
html[data-theme=light] body nav.tabs:not(#akx) #tabList .tab[aria-selected="true"]:not(#a):not(#b){color:var(--aku-text)!important;background:linear-gradient(180deg,color-mix(in srgb,var(--g) 20%,var(--aku-paper)),color-mix(in srgb,var(--g) 40%,var(--aku-paper)))!important;box-shadow:inset 0 1px 0 var(--aku-paper),0 2px 6px color-mix(in srgb,var(--g) 20%,transparent)!important;border-color:color-mix(in srgb,var(--g) 50%,var(--aku-text))!important}
/* stuck under the shell: one swipe row, open tab kept in view by dte-subnav-sticky.js */
html body nav.tabs.is-stuck:not(#akx){margin-top:0!important}
html body nav.tabs.is-stuck:not(#akx) #tabList:not(#a){flex-wrap:nowrap!important;justify-content:flex-start!important;overflow-x:auto!important;padding:6px 8px!important;border-radius:0 0 16px 16px!important}
/* no black band at rest (Audi 2026-10-25: "แถบพื้นหลังของไอพวกนี้มันเห็นเป็นดำๆไม่สวย"); only while stuck over content does the row get
   a soft night-sky / dawn glass so the capsules stay readable on top of the page */
html body nav.tabs.is-stuck:not(#akx):not(#aky){padding:6px 0!important;background:rgba(9,11,19,.94)!important;-webkit-backdrop-filter:blur(14px) saturate(1.2)!important;backdrop-filter:blur(14px) saturate(1.2)!important;box-shadow:0 8px 20px -14px rgba(0,0,0,.6)!important}
html[data-theme=light] body nav.tabs.is-stuck:not(#akx):not(#aky){background:rgba(245,248,249,.97)!important;box-shadow:0 8px 20px -14px rgba(20,47,73,.35)!important}
html body nav.tabs.is-stuck:not(#akx) #tabList:not(#a){background:none!important;box-shadow:none!important;padding:0 8px!important}
html body nav.tabs.is-stuck:not(#akx) #tabList .tab:not(#a):not(#b){height:36px!important;min-height:36px!important}
@media (max-width:1600px){
html body nav.tabs:not(#akx) #tabList:not(#a){gap:8px!important;padding:8px!important}
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b){padding:0 8px!important;gap:5px!important}
}
@media (max-width:1080px){
html body nav.tabs:not(#akx) .dte-tab-shell{padding:0!important}
html body nav.tabs:not(#akx) #tabList:not(#a){justify-content:flex-start!important}
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b){padding:0 10px!important;font-size:.94rem!important}
}
/* phones: one swipe row from the start (the wrapped rail took a whole screen before any content) */
@media(max-width:768px){html body nav.tabs:not(#akx) .dte-tab-shell{width:calc(100% - 24px)!important}}
@media (max-width:760px){
html body nav.tabs:not(#akx) #tabList:not(#a){flex-wrap:nowrap!important;overflow-x:auto!important;border-radius:14px!important}
html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b){height:40px!important;min-height:40px!important}
}
html[data-motion=paused] nav.tabs #tabList .tab-px{animation:none!important}
@media (prefers-reduced-motion:reduce){nav.tabs #tabList .tab,nav.tabs #tabList .tab-px{animation:none!important;transition:none!important}}

/* sub-zone heading inside a zone: smaller, carries its parent as a crumb, hangs on a rail in the parent's colour
   instead of opening with a new divider. Audi 2026-10-25: the overlap section under 🧱 โครงสร้าง GEX looked like a peer zone. */
html body #main:not(#akx) .hist-confluence-deck:not(#a){border-top:0!important;margin-top:22px!important;padding-left:18px!important;border-left:3px solid rgba(245,158,11,.55)!important}
html body #main:not(#akx) .dte-subzone-title:not(#a){display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0!important;font:700 1.08rem/1.3 var(--font-head)!important;color:var(--text)!important}
html body #main:not(#akx) .dte-crumb:not(#a){display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font:700 .74rem/1 var(--font-body);color:#fcd34d;background:rgba(245,158,11,.16)}
html[data-theme=light] body #main:not(#akx) .dte-crumb:not(#a){color:#6b3f00;background:#fdecc0}
html body #main:not(#akx) .dte-subzone-sub:not(#a){margin:4px 0 0!important;font:500 .86rem/1.5 var(--font-body);color:var(--dte-dim,#a9b8cc)}
/* owner-only group stays hidden for visitors (the capsule rule above would otherwise show it) */
html body:not(.is-owner-view) nav.tabs:not(#akx) #tabList .owner-tab:not(#a):not(#b):not(#c){display:none!important}
/* SPY session path labels were painted with dark-theme fills (#cbd5e1/#f8fafc) and vanished on the dawn sky */
html[data-theme=light] body #main:not(#akx) svg text.wp-px{fill:#142f49!important}
html[data-theme=light] body #main:not(#akx) svg text.wp-role{fill:#3d546c!important}
/* One preparation workspace, with both established routes and checklist storage preserved. */
html body #setupWorkspaceNav{display:flex;align-items:center;justify-content:space-between;gap:16px;box-sizing:border-box;max-width:var(--aku-page-max,1600px);width:calc(100% - 48px);margin:16px auto 0;padding:14px 18px;border:1px solid transparent;border-radius:18px;background:var(--dg-glow), var(--aku-box-neutral-bg);box-shadow:inset 0 1px 0 color-mix(in srgb,var(--aku-text) 10%,transparent);color:var(--aku-text)}
html body #setupWorkspaceNav[hidden]{display:none!important}
html body #setupWorkspaceNav strong{display:block;font:700 1rem/1.5 var(--aku-font-body)}
html body #setupWorkspaceNav>div>span{display:block;margin-top:3px;font:400 .875rem/1.5 var(--aku-font-body);color:var(--aku-copy)}
html body .dte-setup-switch{display:flex;flex-wrap:wrap;gap:8px}
html body .dte-setup-mode{min-height:38px;padding:6px 14px;border:1px solid transparent;border-radius:999px;background:linear-gradient(180deg,var(--aku-sky-2),var(--aku-sky-3));color:var(--aku-text);font:600 .94rem/1.5 var(--aku-font-body);cursor:pointer;box-shadow:inset 0 1px 0 color-mix(in srgb,var(--aku-text) 12%,transparent);transition:translate .2s,border-color .2s,box-shadow .2s}
html body .dte-setup-mode[aria-pressed=true]{background:linear-gradient(180deg,color-mix(in srgb,var(--aku-accent) 70%,var(--aku-paper)),var(--aku-accent));color:var(--aku-night);border-color:transparent}
html[data-theme=light] body .dte-setup-mode[aria-pressed=true]{background:linear-gradient(180deg,color-mix(in srgb,var(--aku-accent) 15%,var(--aku-paper)),color-mix(in srgb,var(--aku-accent) 30%,var(--aku-paper)));color:var(--aku-text)}
html body .dte-setup-mode:hover{translate:0 -1px;border-color:var(--aku-accent);box-shadow:0 0 10px -4px var(--aku-accent)}
html body .dte-setup-mode:focus-visible{outline:2px solid var(--aku-text);outline-offset:2px}
html[data-theme=light] body #panel-playbook #pbFlow .pb-ring text{fill:var(--aku-text)!important}
html[data-theme=light] body #panel-playbook #pbFlow .pb-ring text:last-child{fill:var(--aku-copy)!important}
@media(min-width:1280px){html body nav.tabs:not(#akx) #tabList .tab:not(#a):not(#b){padding-inline:5px!important}}
@media(max-width:768px){html body #setupWorkspaceNav{width:calc(100% - 24px);align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){html body .dte-setup-mode{transition:none}}

/* Audi 11-16 "ทำขอบพื้นหลังมันให้มนด้วยสิ": the stuck tab strip background is a rounded bar, not a square band */
html body nav.tabs.is-stuck:not(#akx):not(#aky):not(#akz) { border-radius: 18px; }

/* Audi 11-17 "B รวมเหลือ 8 แท็บ": sub-menu row for a merged tab (วันนี้ · จดเทรด · เรียนรู้). Same neutral pill language as
   the tab strip, one step quieter: outline pills, the open one filled. */
#dteGroupNav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 2px; margin: 0; }
#dteGroupNav[hidden] { display: none; }
#dteGroupNav .dte-group-btn { min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--dg-edge, rgba(150,170,255,.14)); background: transparent; color: var(--aku-text); font: 600 13px/1.2 var(--aku-font-body); cursor: pointer; transition: background .16s ease, border-color .16s ease; }
#dteGroupNav .dte-group-btn:hover { background: rgba(150,170,255,.10); border-color: rgba(150,170,255,.32); }
#dteGroupNav .dte-group-btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
#dteGroupNav .dte-group-btn[aria-pressed="true"] { background: var(--dg-surf, rgb(13,15,24)); border-color: rgba(165,180,252,.55); color: #e0e7ff; }
html[data-theme="light"] #dteGroupNav .dte-group-btn { border-color: rgba(27,45,68,.18); }
html[data-theme="light"] #dteGroupNav .dte-group-btn:hover { background: rgba(79,70,229,.06); }
html[data-theme="light"] #dteGroupNav .dte-group-btn[aria-pressed="true"] { background: #eef2ff; border-color: #6366f1; color: #312e81; }
@media (max-width: 640px) { #dteGroupNav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } #dteGroupNav .dte-group-btn { flex: 0 0 auto; } }
@media (prefers-reduced-motion: reduce) { #dteGroupNav .dte-group-btn { transition: none; } }
