/* Phase 1 shell: reuse the existing Gold Obsidian tokens. */
[hidden] { display: none !important; }
.page h1:focus { outline: none; }
.jtf-wrap { grid-template-columns: minmax(0, 1fr) 380px; }
.jtf-left, .jtf-right, .jtf-price-box { min-width: 0; }
@media (max-width: 1200px) {
    .jtf-wrap { grid-template-columns: minmax(0, 1fr); }
}
.primary-navigation { padding: 8px 10px; }
.primary-navigation .nav-item { min-height: 46px; }
.nav-tools { margin: 8px 10px 16px; border-top: 1px solid var(--border); padding-top: 12px; }
.nav-tools summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; cursor: pointer; color: var(--text2); font-size: .78rem; list-style: none; }
.nav-tools summary::-webkit-details-marker { display: none; }
.nav-tools summary::after { content: '+'; font-family: var(--font-mono); }
.nav-tools[open] summary::after { content: '-'; }
.nav-tools.has-active-tool summary { color: var(--gold); }
.nav-tools .nav-item { min-height: 44px; font-size: .8rem; }
.sidebar .sidebar-bottom { padding: 14px; }
.sidebar .session-clock { margin-bottom: 8px; }
.sidebar .brand-tagline { letter-spacing: .7px; line-height: 1.8; }
.bottom-navigation { display: none; }
.shell-mobile-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 9px; text-decoration: none; color: var(--text2); font-size: .72rem; }
.shell-mobile-link.active { color: var(--gold); }
.workflow-intro { border: 1px solid var(--border-gold); border-radius: 18px; padding: clamp(18px, 3vw, 30px); margin-bottom: 22px; background: radial-gradient(ellipse at 95% 0, rgba(212,175,55,.08), transparent 60%), var(--bg2); }
.workflow-intro .eyebrow { font: .66rem var(--font-mono); letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.workflow-intro h2 { margin: 10px 0 8px; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.2; letter-spacing: -.7px; }
.workflow-intro p { color: var(--text2); font-size: .86rem; line-height: 1.6; max-width: 660px; }
.workflow-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.workflow-link { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px; border: 1px solid var(--border2); border-radius: 11px; background: rgba(255,255,255,.02); color: var(--text); text-decoration: none; }
.workflow-link:hover { border-color: var(--border-gold); background: var(--gold-dim); }
.workflow-step { font: .7rem var(--font-mono); color: var(--gold); }
.workflow-link strong { display: block; font-size: .85rem; }
.workflow-link small { display: block; margin-top: 4px; color: var(--text2); font-size: .72rem; }
.shell-empty, .sample-notice { padding: 16px 18px; margin-bottom: 18px; border: 1px solid var(--border2); border-radius: 12px; color: var(--text2); font-size: .82rem; line-height: 1.65; }
.shell-empty strong { display: block; color: var(--text); margin-bottom: 5px; }
.shell-empty a { color: var(--gold); display: inline-flex; align-items: center; min-height: 44px; }
.sample-notice { border-color: rgba(240,165,0,.4); color: #e8bd65; background: rgba(240,165,0,.06); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-grid .panel { margin: 0; min-width: 0; }
.settings-grid h2 { font-size: 1rem; margin-bottom: 10px; }
.settings-grid p { color: var(--text2); font-size: .82rem; line-height: 1.65; margin-bottom: 12px; }
.settings-grid .balance-card { margin: 0; }
.settings-grid .btn-outline { min-height: 44px; white-space: normal; }
.settings-links { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-links a { text-decoration: none; display: inline-flex; align-items: center; }
.settings-access { font-size: .82rem; line-height: 1.75; color: var(--text2); margin-bottom: 14px; overflow-wrap: anywhere; }
.settings-access strong { color: var(--text); }
.shell-analytics-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: var(--gold); text-decoration: none; font-size: .82rem; border: 1px solid var(--border-gold); border-radius: 9px; }
#psychologySection, #forexCalendarSection, #sigTelegramBanner { scroll-margin-top: 80px; }
.local-preview-notice { display: block; padding: 8px 14px; border: 1px solid var(--border-gold); border-radius: 8px; margin: 0 0 18px; color: var(--gold); background: var(--gold-dim); font-size: .72rem; line-height: 1.5; }
.nav-item:focus-visible, .workflow-link:focus-visible, .nav-tools summary:focus-visible, .shell-mobile-link:focus-visible, .bottom-navigation a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; background: rgba(0,0,0,.58); backdrop-filter: blur(3px); transition: opacity .2s ease, visibility .2s ease; }
@media (max-width: 860px) {
    .page-head { align-items: flex-start; }
    .content { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .bottom-navigation { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); z-index: 450; background: rgba(8,10,15,.98); border-top: 1px solid var(--border2); backdrop-filter: blur(20px); }
    .bottom-navigation a { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--text2); border-radius: 9px; font-size: .67rem; }
    .bottom-navigation .ni { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
    .bottom-navigation a.active { background: var(--gold-dim); color: var(--gold); }
    .nav-drawer-open { overflow: hidden; }
    .sidebar { z-index: 800; width: min(300px, 86vw); height: 100dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .sidebar-overlay { display: block; z-index: 750; touch-action: manipulation; }
    .sidebar-overlay.visible { opacity: 1; visibility: visible; pointer-events: auto; }
    .topbar-brand { min-width: 0; }
    .topbar { gap: 3px; padding: 0 8px; }
    .topbar-logo { width: 23px; height: 23px; }
    .topbar-title { font-size: .85rem; white-space: nowrap; }
    .topbar-premium-badge, .topbar-free-badge { display: none !important; }
    .settings-grid { grid-template-columns: 1fr; }
    .premium-toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 24px); }
}
@media (max-width: 500px) {
    .workflow-links { gap: 6px; }
    .workflow-link { flex-direction: column; align-items: flex-start; gap: 7px; padding: 11px 9px; }
    .workflow-link small { font-size: .65rem; }
    .workflow-link strong { font-size: .8rem; }
    .workflow-intro { padding: 18px 14px; }
    .settings-grid .balance-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .page, .sidebar, .workflow-link { animation: none; transition: none; }
}
