/* Native V3, scoped to the authenticated ARUS owner analysis view. */
.v3-mobile-shell {display:none;}
html[data-arus-layout="v3"] .analysis-v3 {display:grid;grid-template-columns:54px minmax(0,1fr);min-height:100dvh;}
html[data-arus-layout="v3"] .analysis-v3 .sidebar {display:flex;position:sticky;top:0;height:100dvh;width:54px;padding:8px 5px;overflow:hidden;}
html[data-arus-layout="v3"] .analysis-v3 .sidebar .brand {display:flex;padding:4px;justify-content:center;}
html[data-arus-layout="v3"] .analysis-v3 .sidebar .brand-mark {display:block;width:30px;height:32px;object-fit:contain;}
html[data-arus-layout="v3"] .analysis-v3 .sidebar .brand-lockup,
html[data-arus-layout="v3"] .analysis-v3 .sidebar .nav-label,
html[data-arus-layout="v3"] .analysis-v3 .sidebar>small,
html[data-arus-layout="v3"] .analysis-v3 .sidebar-bottom,
html[data-arus-layout="v3"] .analysis-v3 .topbar {display:none;}
html[data-arus-layout="v3"] .analysis-v3 .sidebar .nav {display:flex;flex-direction:column;flex-wrap:nowrap;gap:10px;margin-top:28px;}
html[data-arus-layout="v3"] .analysis-v3 .sidebar .nav button {justify-content:center;min-width:0;padding:8px 7px;}
html[data-arus-layout="v3"] .analysis-v3 .workspace {min-width:0;margin:0;}
html[data-arus-layout="v3"] .analysis-v3 #content {padding:0;max-width:none;min-width:0;}
html[data-arus-layout="v3"] .arus-preview-banner {height:18px;padding:1px 8px;font:500 12px/16px Inter,system-ui,sans-serif;}
html[data-arus-layout="v3"] .analysis-v3 .gd-desk {gap:0;padding:0;min-width:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-header {display:flex;align-items:center;flex-wrap:nowrap;gap:10px;height:64px;min-height:64px;margin:0;padding:5px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--panel);box-shadow:none;overflow:visible;}
html[data-arus-layout="v3"] .analysis-v3 .v3-menu {display:none;}
html[data-arus-layout="v3"] .v3-header .gd-symbol-search {position:relative;flex:0 0 150px;max-width:150px;min-width:0;}
html[data-arus-layout="v3"] .v3-header .gd-symbol-card {display:flex;flex-direction:row;gap:7px;align-items:center;padding:0;min-width:0;}
html[data-arus-layout="v3"] .v3-header .gd-logo-base {width:30px;height:30px;flex:none;}
html[data-arus-layout="v3"] .v3-header .gd-symbol-copy {min-width:0;display:flex;flex-direction:column;}
html[data-arus-layout="v3"] .v3-header #gd-symbol-input {width:100%;height:24px;padding:0;border:0;font-size:17px;font-weight:750;background:transparent;box-shadow:none;color:var(--ink);}
html[data-arus-layout="v3"] .v3-header .gd-company {max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:16px;}
html[data-arus-layout="v3"] .v3-quote {display:flex;flex-direction:column;flex:none;min-width:80px;line-height:1.4;}
html[data-arus-layout="v3"] .v3-quote strong {font-size:21px;color:var(--ink);}
html[data-arus-layout="v3"] .v3-quote>span {font-size:12px;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-header .wl-star {width:31px;height:31px;min-width:31px;padding:5px;border-radius:5px;}
html[data-arus-layout="v3"] .v3-header .wl-star>span {display:none;}
html[data-arus-layout="v3"] .v3-header .gd-header-ranges {flex-wrap:nowrap;display:flex;gap:2px;margin:0;flex:none;}
html[data-arus-layout="v3"] .v3-header .gd-header-ranges .chip,
html[data-arus-layout="v3"] .v3-header .gd-header-ranges summary {font-size:12px;padding:5px 6px;border-radius:4px;min-height:29px;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-header .gd-day {display:flex;align-items:center;flex:none;gap:3px;margin:0;padding:0;border:0;}
html[data-arus-layout="v3"] .v3-header .gd-day>button {border:0;padding:4px;font-size:18px;}
html[data-arus-layout="v3"] .v3-header .gd-day summary {font-size:12px;font-weight:650;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-data {margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap;}
html[data-arus-layout="v3"] .v3-account {display:flex;align-items:center;gap:7px;flex:none;margin-left:auto;}
html[data-arus-layout="v3"] .v3-account .arus-theme-switch {padding:2px;gap:1px;}
html[data-arus-layout="v3"] .v3-account .arus-theme-switch button {font-size:12px;padding:4px 5px;min-height:24px;}
html[data-arus-layout="v3"] .v3-account .ghost {border:0;font-size:12px;padding:4px;}
html[data-arus-layout="v3"] .v3-profile summary {font-size:19px;padding:3px 5px;}
html[data-arus-layout="v3"] .v3-popover {position:relative;}
html[data-arus-layout="v3"] .v3-popover>summary {cursor:pointer;list-style:none;color:var(--ink);}
html[data-arus-layout="v3"] .v3-popover>summary::-webkit-details-marker {display:none;}
html[data-arus-layout="v3"] .v3-popover[open]>div,
html[data-arus-layout="v3"] .v3-popover[open]>form,
html[data-arus-layout="v3"] .v3-popover[open]>label {position:absolute;top:calc(100% + 8px);left:0;z-index:65;display:flex;flex-direction:column;gap:9px;white-space:normal;min-width:260px;max-width:min(420px,calc(100vw - 75px));max-height:calc(100dvh - 145px);overflow:auto;padding:16px;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 26px #0003;line-height:1.5;font-size:14px;}
html[data-arus-layout="v3"] .v3-data[open]>div,
html[data-arus-layout="v3"] .v3-profile[open]>div,
html[data-arus-layout="v3"] .v3-method-controls[open]>div {left:auto;right:0;}
html[data-arus-layout="v3"] .v3-profile[open]>div {min-width:220px;}
html[data-arus-layout="v3"] .v3-popover label.check {display:flex;flex-direction:row;align-items:center;gap:8px;}
html[data-arus-layout="v3"] .v3-popover label.check small {margin-left:auto;font-size:12px;}
html[data-arus-layout="v3"] .v3-popover input[type="checkbox"] {width:15px;height:15px;flex:none;}
html[data-arus-layout="v3"] .v3-header #gd-symbol-suggestions {position:absolute;top:52px;left:-4px;width:420px;max-width:calc(100vw - 80px);max-height:min(450px,calc(100dvh - 112px));overflow:auto;z-index:70;background:var(--panel);border:1px solid var(--line);box-shadow:0 12px 32px #0003;border-radius:9px;padding:5px;}
html[data-arus-layout="v3"] .v3-header .gd-symbol-option {display:flex;gap:12px;align-items:center;min-height:47px;width:100%;background:transparent;color:var(--ink);border:1px solid transparent;text-align:left;padding:6px 10px;}
html[data-arus-layout="v3"] .v3-header .gd-symbol-option[aria-selected="true"] {background:var(--active);border-color:var(--line);}
html[data-arus-layout="v3"] .v3-header .gd-symbol-option>b {width:48px;flex:none;}
html[data-arus-layout="v3"] .v3-header .gd-symbol-option>span:last-child {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
html[data-arus-layout="v3"] .v3-search-meta {display:block;padding:5px 9px;font-size:12px;color:var(--muted);}
html[data-arus-layout="v3"] .analysis-v3 .ar-analysis-tabs {display:flex;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;gap:14px;height:40px;min-height:40px;margin:0;padding:0 14px;border-bottom:1px solid var(--line);background:var(--panel);scrollbar-width:none;}
html[data-arus-layout="v3"] .analysis-v3 .ar-analysis-tabs button {flex:none;padding:7px 10px;margin:0;border:0;border-radius:0;background:transparent;color:var(--muted);font-size:13px;}
html[data-arus-layout="v3"] .analysis-v3 .ar-analysis-tabs button.active {border-bottom:2px solid var(--primary);color:var(--primary);}
/* V3 top tabs: watchlist toggle remains fixed, outside horizontal tab scroller. */
html[data-arus-layout="v3"] .analysis-v3 .v3-nav-watch{display:flex;align-items:center;position:relative;height:40px;min-height:40px;overflow:visible;border-bottom:1px solid var(--line);background:var(--panel)}
html[data-arus-layout="v3"] .analysis-v3 .v3-nav-watch .ar-analysis-tabs{flex:1 1 auto;min-width:0;position:static;top:auto;z-index:auto;height:39px;min-height:39px;margin:0;padding:0 8px;border:0;overflow-x:auto}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-action{flex:0 0 auto;min-width:46px;display:flex;align-items:center;justify-content:center;align-self:stretch;position:relative;z-index:20;padding:0 9px;background:var(--panel)}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-action .wl-star{display:inline-flex;align-items:center;justify-content:center;width:31px;min-width:31px;height:30px;padding:5px!important;border:1px solid var(--line);border-radius:5px}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-action .wl-star>span{display:none}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-action .wl-popover{top:36px;right:0;left:auto}
@media(max-width:760px){html[data-arus-layout="v3"] .analysis-v3 .v3-watch-action{min-width:41px;padding:0 5px}}

/* V3 Watchlist ticker actions; immutable global CSS stays untouched. */
html[data-arus-layout="v3"] .analysis-v3 .wl-row .wl-stock{flex:1 1 auto;width:auto;min-width:0}
html[data-arus-layout="v3"] .analysis-v3 .wl-row-more{appearance:none;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:24px;width:24px;height:30px;margin:0;padding:0!important;border:0!important;border-radius:5px;background:transparent!important;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;box-shadow:none!important}
html[data-arus-layout="v3"] .analysis-v3 .wl-row-more:hover,html[data-arus-layout="v3"] .analysis-v3 .wl-row-more:focus-visible{background:var(--raised)!important;color:var(--ink)}
html[data-arus-layout="v3"] .analysis-v3 .wl-titlebar+.wl-row-menu{width:min(188px,calc(100% - 10px));max-height:110px;z-index:85}
html[data-arus-layout="v3"] .analysis-v3 .gd-workspace {display:grid;grid-template-columns:198px minmax(0,1fr);gap:0;margin:0;align-items:start;}
html[data-arus-layout="v3"] .analysis-v3 .gd-workspace.gd-watch-closed {grid-template-columns:30px minmax(0,1fr);}
html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail {position:sticky;top:0;min-width:0;align-self:start;}
html[data-arus-layout="v3"] .analysis-v3 .wl-rail {width:100%;height:calc(100dvh - 122px);position:relative;top:auto;max-height:none;border:0;border-right:1px solid var(--line);border-radius:0;background:var(--panel);padding:9px 10px;gap:8px;margin:0;display:flex;flex-direction:column;}
html[data-arus-layout="v3"] .analysis-v3 .wl-titlebar {min-height:25px;}
html[data-arus-layout="v3"] .analysis-v3 .wl-titlebar h3 {font-size:12px;letter-spacing:.6px;}
html[data-arus-layout="v3"] .analysis-v3 .wl-title-actions {gap:2px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-toggle {padding:1px 4px;border:0;background:transparent;color:var(--muted);font-size:17px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-open {display:block;background:var(--panel);color:var(--muted);border:1px solid var(--line);padding:6px 3px;font-size:16px;border-radius:0 0 5px 0;width:28px;}
html[data-arus-layout="v3"] .analysis-v3 .wl-rail input,
html[data-arus-layout="v3"] .analysis-v3 .wl-rail select {font-size:13px;padding:6px;min-height:31px;}
html[data-arus-layout="v3"] .analysis-v3 .wl-rows {min-height:0;flex:1;overflow-y:auto;}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock {gap:6px;padding:10px 5px;grid-template-columns:27px minmax(0,1fr) auto;min-height:58px;}
html[data-arus-layout="v3"] .analysis-v3 .wl-rows .gd-logo-base {width:26px;height:26px;}
html[data-arus-layout="v3"] .analysis-v3 .gd-watch-copy {min-width:0;}
html[data-arus-layout="v3"] .analysis-v3 .gd-watch-copy strong {font-size:14px;}
html[data-arus-layout="v3"] .analysis-v3 .gd-watch-name {font-size:12px;max-width:67px;}
html[data-arus-layout="v3"] .analysis-v3 .gd-watch-quote {max-width:63px;}
html[data-arus-layout="v3"] .analysis-v3 .gd-watch-quote b {font-size:13px;}
html[data-arus-layout="v3"] .analysis-v3 .gd-watch-quote>span {font-size:11px;white-space:normal;}
html[data-arus-layout="v3"] .analysis-v3 .gd-watch-note {font-size:12px;}
html[data-arus-layout="v3"] .analysis-v3 .gd-main {min-width:0;gap:0;padding:8px 10px 0;margin:0;}
html[data-arus-layout="v3"] .analysis-v3 #gd-region-focus:empty,
html[data-arus-layout="v3"] .analysis-v3 #gd-region-quality:empty,
html[data-arus-layout="v3"] .analysis-v3 #gd-message:empty,
html[data-arus-layout="v3"] .analysis-v3 #gd-region-notes:empty {display:none;}
html[data-arus-layout="v3"] .analysis-v3 #gd-region-tail {font-size:12px;padding:2px 0;color:var(--muted);}
html[data-arus-layout="v3"] .analysis-v3 .gd-content-region {display:block;min-width:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary {display:flex;gap:8px;align-items:stretch;height:54px;min-height:54px;margin:0 0 8px;padding:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary-list {display:flex;flex:1;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:7px;background:var(--panel);}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary .v3-summary-card {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;flex:1 1 148px;min-width:148px;min-height:0;padding:4px 8px;border:0;border-right:1px solid var(--line);border-radius:0;overflow:hidden;background:transparent;color:var(--ink);text-align:left;box-shadow:none;}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary .ci-title {margin:0;font-size:10px;line-height:12px;letter-spacing:.2px;color:var(--muted);white-space:nowrap;}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary-card > :is(.ci-title,.ci-main,.v3-valuation-potential) {flex-shrink:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary .ci-main {font-size:13px;line-height:15px;max-width:100%;white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;margin:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary [data-v3-card="money-flow"] .ci-main,
html[data-arus-layout="v3"] .analysis-v3 .v3-summary [data-v3-card="broker"] .ci-main {font-size:12px;line-height:14px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary .ci-pos .ci-main {color:var(--green);}
html[data-arus-layout="v3"] .analysis-v3 .v3-summary .ci-neg .ci-main {color:var(--red);}
html[data-arus-layout="v3"] .analysis-v3 .v3-all {display:flex;flex-direction:column;justify-content:center;gap:2px;flex:0 0 108px;width:108px;padding:4px;font-size:12px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:7px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-all small {font-size:11px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-no-cards {align-self:center;padding:10px;font-size:13px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-chart {padding:0;margin:0;border:1px solid var(--line);border-radius:7px;background:var(--panel);overflow:visible;min-width:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar {display:flex;align-items:center;flex-wrap:nowrap;height:38px;min-height:38px;gap:7px;margin:0;padding:4px 10px;border-bottom:1px solid var(--line);white-space:nowrap;overflow:visible;}
html[data-arus-layout="v3"] .v3-toolbar .v3-timeframe {font-size:12px;padding:2px 6px;flex:none;}
html[data-arus-layout="v3"] .v3-toolbar .v3-popover>summary {font-size:13px;padding:3px 8px;border:1px solid var(--line);border-radius:5px;}
html[data-arus-layout="v3"] .v3-toolbar>button {margin-left:auto;flex:none;padding:3px 8px;font-size:13px;min-height:28px;}
html[data-arus-layout="v3"] .v3-badges {display:flex;flex:1 1 0;align-items:center;gap:6px;min-width:0;height:28px;overflow:hidden;}
html[data-arus-layout="v3"] .v3-badge,
html[data-arus-layout="v3"] .v3-badge-more {font-size:12px;line-height:16px;padding:3px 7px;min-height:25px;flex:none;border:1px solid var(--line);background:var(--active);color:var(--primary);border-radius:5px;}
html[data-arus-layout="v3"] .v3-badge.v3-issuer-label {font-size:10px;line-height:14px;min-height:22px;padding:2px 6px;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-issuer-warning {color:var(--red);border-color:var(--red);}
html[data-arus-layout="v3"] .v3-issuer-positive {color:var(--green);}
html[data-arus-layout="v3"] .v3-issuer-attention {color:var(--ink);border-style:dashed;}
html[data-arus-layout="v3"] .v3-signal-status {color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;}
html[data-arus-layout="v3"] .analysis-v3 .v3-chart .ar-ohlcv {height:27px;min-height:27px;max-height:27px;display:flex;align-items:center;flex-wrap:nowrap;gap:10px;padding:3px 10px;margin:0;border:0;overflow:hidden;font-size:12px;white-space:nowrap;}
html[data-arus-layout="v3"] .analysis-v3 .v3-chart .ar-ohlcv>small {display:none;}
html[data-arus-layout="v3"] .analysis-v3 .v3-chart #tech-plot,
html[data-arus-layout="v3"] .analysis-v3 .v3-chart .ar-market-flow {padding:0;margin:0;min-width:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-chart .tech-canvas {display:block;width:100%;max-width:100%;min-width:0;min-height:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-chart .arus-chart-wrap {min-height:0;margin:0;padding:0;}
html[data-arus-layout="v3"] .v3-chart-footer {display:flex;align-items:center;justify-content:space-between;gap:10px;height:23px;min-height:23px;padding:2px 9px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;}
html[data-arus-layout="v3"] .v3-chart-footer-controls {display:flex;align-items:center;gap:12px;flex-shrink:0;}
html[data-arus-layout="v3"] .v3-chart-footer button {font-size:12px;min-height:16px;padding:0;border:0;}
html[data-arus-layout="v3"] .v3-chart-footer>span {overflow:hidden;text-overflow:ellipsis;}
html[data-arus-layout="v3"] .analysis-v3 .v3-flow .arus-smart-head,
html[data-arus-layout="v3"] .analysis-v3 .v3-flow .arus-smart-card>.arus-table-meta,
html[data-arus-layout="v3"] .analysis-v3 .v3-flow .arus-smart-summary {display:none;}
html[data-arus-layout="v3"] .analysis-v3 .v3-flow .arus-smart-card {padding:0;margin:0;border:0;border-radius:0;}
html[data-arus-layout="v3"] .v3-flow-quality {margin:0;padding:4px 10px;font-size:12px;color:var(--muted);border-top:1px solid var(--line);}
html[data-arus-layout="v3"] .v3-flow-quality[open] {padding:10px;line-height:1.6;}
html[data-arus-layout="v3"] .analysis-v3 .v3-money-flow-card {padding:8px 10px;}
html[data-arus-layout="v3"] .v3-flow-controls {display:block;min-width:0;height:30px;margin:0 0 4px;}
html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar {display:flex;flex-wrap:nowrap;align-items:center;gap:2px;height:30px;min-width:0;padding:0;margin:0;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin;}
html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar>* {flex:none;margin:0;}
html[data-arus-layout="v3"] .v3-flow-controls h2 {font-size:15px;line-height:24px;}
html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar button,
html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar select {height:26px;min-height:26px;font-size:11px;padding:3px 2px;}
html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar .check {display:inline-flex;align-items:center;gap:3px;font-size:11px;}
html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar input[type="checkbox"] {width:14px;height:14px;min-height:0;margin:0;}
html[data-arus-layout="v3"] .v3-flow-controls .tag {padding:3px 3px;font-size:11px;}
html[data-arus-layout="v3"] .v3-flow-controls .ar-ohlcv {display:flex;flex:none;flex-wrap:nowrap;align-items:center;gap:4px;height:28px;padding:0 0 0 2px;margin:0;border:0;font-size:11px;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-flow-controls .ar-ohlcv>small {display:none;}
html[data-arus-layout="v3"] .v3-flow-plot-head {display:flex;flex-wrap:nowrap;align-items:center;gap:10px;min-width:0;height:32px;margin:0;padding:0 2px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin;}
html[data-arus-layout="v3"] .v3-flow-plot-head>* {flex:none;}
html[data-arus-layout="v3"] .v3-flow-plot-head h2 {font-size:15px;line-height:24px;margin:0;color:var(--ink);}
html[data-arus-layout="v3"] .v3-flow-checks {display:flex;align-items:center;gap:12px;}
html[data-arus-layout="v3"] .v3-flow-check {display:inline-flex;flex-direction:row;align-items:center;gap:4px;font-size:12px;font-weight:500;color:var(--ink);cursor:pointer;}
html[data-arus-layout="v3"] .v3-flow-check input {width:13px;height:13px;min-height:0;margin:0;accent-color:var(--primary);}
html[data-arus-layout="v3"] .v3-flow-check .v3-flow-swatch {width:14px;height:4px;min-height:0;display:block;}
html[data-arus-layout="v3"] .v3-flow-check input:focus-visible {outline:2px solid var(--primary);outline-offset:2px;}
html[data-arus-layout="v3"] .v3-flow-period {margin-left:auto;font-size:12px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-bandarmology-plot {padding:0;margin:4px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;}
html[data-arus-layout="v3"] .v3-flow-plot-head .arus-smart-tabs {flex-wrap:nowrap;width:auto;display:flex;margin:0;padding:2px;gap:2px;}
html[data-arus-layout="v3"] .v3-flow-plot-head .arus-smart-tabs button {font-size:12px;min-height:22px;padding:3px 6px;}
html[data-arus-layout="v3"] .v3-money-flow-plot svg[data-chart]>rect:first-of-type {fill:var(--panel);}
html[data-arus-layout="v3"] .v3-money-flow-plot svg[data-chart] text {fill:var(--muted);}
html[data-arus-layout="v3"] .v3-money-flow-plot svg[data-chart] [stroke="#264556"] {stroke:var(--line);}
html[data-arus-layout="v3"] .v3-band-empty {min-height:128px;display:grid;place-items:center;margin:0;}
html[data-arus-layout="v3"] .v3-method-controls {flex:none;}
html[data-arus-layout="v3"] .v3-method-controls .bb-legend {flex-wrap:wrap;gap:5px;margin:0;}
html[data-arus-layout="v3"] .v3-method-controls .chips {flex-wrap:wrap;gap:4px;}
html[data-arus-layout="v3"] .v3-method-controls .chips button {font-size:13px;padding:5px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-focused {position:fixed;inset:18px 8px 4px 8px;z-index:55;border-radius:7px;overflow:auto;}
html[data-arus-layout="v3"] .v3-dialog {width:min(660px,calc(100vw - 32px));max-height:calc(100dvh - 44px);padding:20px;color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 48px #0005;overflow:auto;}
html[data-arus-layout="v3"] .v3-dialog::backdrop {background:#08192488;}
html[data-arus-layout="v3"] .v3-dialog p {margin:8px 0;font-size:14px;line-height:1.6;}
html[data-arus-layout="v3"] .v3-dialog-head {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px;}
html[data-arus-layout="v3"] .v3-dialog-head>button {padding:3px 10px;font-size:19px;background:transparent;color:var(--muted);}
html[data-arus-layout="v3"] .v3-custom-rows {display:flex;flex-direction:column;gap:6px;margin:14px 0;}
html[data-arus-layout="v3"] .v3-custom-row {display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:6px;padding:8px;}
html[data-arus-layout="v3"] .v3-custom-row>label {flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px;}
html[data-arus-layout="v3"] .v3-custom-row label span {display:flex;flex-direction:column;min-width:0;}
html[data-arus-layout="v3"] .v3-custom-row label small {max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;}
html[data-arus-layout="v3"] .v3-custom-row>button {font-size:12px;padding:4px 7px;border-color:var(--line);background:var(--bg);color:var(--ink);}
html[data-arus-layout="v3"] .v3-dialog-actions {display:flex;align-items:center;gap:7px;margin-top:14px;}
html[data-arus-layout="v3"] .v3-dialog-actions>span {flex:1;}
html[data-arus-layout="v3"] .v3-dialog-actions>button {font-size:14px;padding:7px 10px;}
html[data-arus-layout="v3"] .analysis-v3 [hidden] {display:none!important;}
html[data-arus-layout="v3"] .v3-dialog [hidden] {display:none!important;}
@media(max-width:1430px){html[data-arus-layout="v3"] .v3-header {gap:7px!important;padding-left:10px!important;padding-right:10px!important;}html[data-arus-layout="v3"] .v3-header .gd-symbol-search{flex-basis:130px;max-width:130px;}html[data-arus-layout="v3"] .v3-data>summary{max-width:86px;overflow:hidden;text-overflow:ellipsis;}html[data-arus-layout="v3"] .v3-header .gd-header-ranges .chip,html[data-arus-layout="v3"] .v3-header .gd-header-ranges summary{padding:5px 4px;}}
@media(max-width:1280px){html[data-arus-layout="v3"] .v3-header .v3-data{display:none;}html[data-arus-layout="v3"] .analysis-v3 .gd-workspace{grid-template-columns:178px minmax(0,1fr);}html[data-arus-layout="v3"] .analysis-v3 .v3-account{gap:3px;}html[data-arus-layout="v3"] .v3-quote strong{font-size:19px;}}
@media(max-width:1100px){html[data-arus-layout="v3"] .analysis-v3 .v3-header{overflow-x:auto;overflow-y:visible;}html[data-arus-layout="v3"] .v3-header #gd-symbol-suggestions{position:fixed;top:77px;left:65px;}html[data-arus-layout="v3"] .v3-header .v3-popover[open]>div,html[data-arus-layout="v3"] .v3-header .v3-popover[open]>form,html[data-arus-layout="v3"] .v3-header .v3-popover[open]>label{position:fixed;top:80px;left:70px;right:auto;}html[data-arus-layout="v3"] .analysis-v3 .gd-main{padding:6px;}html[data-arus-layout="v3"] .v3-signal-status{font-size:12px;}}
@media(max-width:700px){html[data-arus-layout="v3"] .analysis-v3{grid-template-columns:42px minmax(0,1fr);}html[data-arus-layout="v3"] .analysis-v3 .sidebar{width:42px;padding:5px 2px;}html[data-arus-layout="v3"] .analysis-v3 .sidebar .brand-mark{width:26px;}html[data-arus-layout="v3"] .analysis-v3 .gd-workspace{grid-template-columns:30px minmax(0,1fr);}html[data-arus-layout="v3"] .analysis-v3 .gd-workspace:not(.gd-watch-closed){grid-template-columns:30px minmax(0,1fr);}html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail{z-index:25;width:30px;}html[data-arus-layout="v3"] .analysis-v3 .wl-rail{position:absolute;left:0;top:0;width:165px;box-shadow:6px 4px 18px #0003;}html[data-arus-layout="v3"] .analysis-v3 .v3-all{flex-basis:91px;width:91px;font-size:12px;}html[data-arus-layout="v3"] .v3-toolbar{gap:4px!important;padding:4px 6px!important;}html[data-arus-layout="v3"] .v3-method-controls>summary{font-size:12px!important;max-width:80px;overflow:hidden;text-overflow:ellipsis;}html[data-arus-layout="v3"] .v3-signal-status{display:none;}html[data-arus-layout="v3"] .v3-dialog{padding:13px;}html[data-arus-layout="v3"] .v3-custom-row>button{font-size:12px;padding:4px;}html[data-arus-layout="v3"] .v3-dialog-actions>button{font-size:12px;padding:5px;}html[data-arus-layout="v3"] .v3-header #gd-symbol-suggestions{left:48px;max-width:calc(100vw - 58px);}html[data-arus-layout="v3"] .v3-popover[open]>div{position:fixed;left:48px;right:auto;top:190px;}}

/* Broker Map and Foreign share one viewport-sized summary/chart workspace. */
html[data-arus-layout="v3"] .analysis-v3 .v3-broker-workspace {display:grid;grid-template-columns:minmax(360px,.95fr) minmax(0,1.25fr);gap:10px;min-width:0;align-items:stretch;}
html[data-arus-layout="v3"] .analysis-v3 .v3-broker-workspace>.card {display:flex;flex-direction:column;align-self:stretch;min-width:0;min-height:0;margin:0;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--panel);}
html[data-arus-layout="v3"] .v3-broker-workspace .card-head {flex:none;align-items:center;gap:8px;min-height:36px;margin:0 0 3px;}
html[data-arus-layout="v3"] .v3-broker-workspace .card-head h2 {font-size:16px;line-height:19px;margin:0;}
html[data-arus-layout="v3"] .v3-broker-workspace .card-head small {font-size:12px;line-height:15px;}
html[data-arus-layout="v3"] .v3-broker-workspace button,
html[data-arus-layout="v3"] .v3-broker-workspace select {min-height:25px;font-size:12px;padding:3px 6px;}
html[data-arus-layout="v3"] .v3-broker-workspace .chips {flex-wrap:nowrap;gap:4px;margin:0;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-toolbar {flex:none;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-height:28px;margin:2px 0;font-size:12px;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-toolbar>label {display:flex;flex-direction:row;align-items:center;gap:5px;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-toolbar>label input {width:13px;height:13px;min-height:0;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-inventory-toolbar {overflow-x:auto;overflow-y:visible;white-space:nowrap;scrollbar-width:thin;justify-content:space-between;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-inventory-toolbar>* {flex:none;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-inv-custom[open] form {z-index:100;box-shadow:0 8px 24px #0003;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-focus-row {justify-content:space-between;overflow-x:auto;overflow-y:hidden;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-focus-row>* {flex:none;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-flow-meta {display:flex;flex:none;flex-direction:row;align-items:center;gap:6px;min-height:28px;margin:2px 0;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-flow-ohlc {flex:1;display:flex;gap:5px;font-size:12px;white-space:nowrap;overflow:hidden;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-flow-controls {flex:none;width:auto;gap:4px!important;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-flow-controls small {display:none;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-inventory-gap {flex:none;font-size:12px;margin:2px 0;}
html[data-arus-layout="v3"] .v3-broker-workspace #gd-flow-plot {flex:1 1 0;min-height:0;min-width:0;}
html[data-arus-layout="v3"] .v3-broker-workspace #gd-flow-plot>.arus-chart-wrap {height:100%;min-height:0;margin:0;padding:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-broker-workspace svg.gd-flow {display:block;width:100%;height:100%;min-height:0;max-height:none;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-hover {flex:none;min-height:22px;padding:3px 0;margin:3px 0 0;font-size:12px;line-height:14px;overflow:hidden;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-hover span {overflow:hidden;text-overflow:ellipsis;line-height:14px;}
html[data-arus-layout="v3"] .v3-panel-details {flex:none;position:relative;margin:2px 0 0;color:var(--muted);font-size:12px;}
html[data-arus-layout="v3"] .v3-panel-details>summary {cursor:pointer;line-height:18px;}
html[data-arus-layout="v3"] .v3-panel-details[open] {max-height:100px;overflow:auto;}
html[data-arus-layout="v3"] .v3-panel-details p,
html[data-arus-layout="v3"] .v3-panel-details small {margin:4px 0;font-size:12px;line-height:1.5;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-dual {display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));flex:1;min-height:0;max-height:none;overflow:auto;gap:6px;margin-top:4px;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side {min-width:0;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side-scroll {overflow:visible!important;max-height:none;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side h3 {position:sticky;top:0;z-index:4;margin:0;padding:5px 2px;line-height:16px;font-size:12px;background:var(--raised);}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side table {width:100%!important;min-width:0!important;table-layout:fixed!important;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side col.gd-broker-code-col {width:22%!important;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side col:nth-child(2) {width:27%!important;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side th,
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side td {font-size:12px!important;padding:5px 2px!important;line-height:16px;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side thead th {text-transform:none;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side thead {position:sticky;top:26px;z-index:3;background:var(--panel);}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side tfoot {position:sticky;bottom:0;z-index:3;background:var(--raised);}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-broker-side .gd-code {font-size:12px;min-height:20px;padding:1px 2px;}
html[data-arus-layout="v3"] .v3-broker-analysis {margin:12px 0 16px;min-width:0;}
html[data-arus-layout="v3"] .v3-analysis-tabs {display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--line);margin-bottom:10px;}
html[data-arus-layout="v3"] .v3-analysis-tabs button {flex:none;padding:9px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);font-size:14px;}
html[data-arus-layout="v3"] .v3-analysis-tabs button.active {color:var(--primary);border-bottom-color:var(--primary);}
html[data-arus-layout="v3"] .v3-broker-analysis .card {padding:14px;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:7px;}
html[data-arus-layout="v3"] .v3-broker-analysis h2 {font-size:17px;}
html[data-arus-layout="v3"] .v3-analysis-controls {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:10px 0 14px;font-size:13px;}
html[data-arus-layout="v3"] .v3-analysis-controls label {display:flex;flex-direction:row;align-items:center;gap:7px;}
html[data-arus-layout="v3"] .v3-analysis-controls input,
html[data-arus-layout="v3"] .v3-analysis-controls select {font-size:13px;padding:5px;}
html[data-arus-layout="v3"] .v3-analysis-note,
html[data-arus-layout="v3"] .v3-read-status {font-size:13px;line-height:1.7;color:var(--muted);margin:10px 0 0;}
html[data-arus-layout="v3"] .v3-monthly-table table {min-width:650px;white-space:normal;font-size:14px;}
html[data-arus-layout="v3"] .v3-monthly-table th,
html[data-arus-layout="v3"] .v3-monthly-table td {padding:12px 9px;vertical-align:top;}
html[data-arus-layout="v3"] .v3-monthly-table th small {display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px;}
html[data-arus-layout="v3"] .v3-month-brokers {display:grid;gap:6px;padding-top:8px;}
html[data-arus-layout="v3"] .v3-month-brokers>span {display:flex;gap:10px;align-items:center;}
html[data-arus-layout="v3"] .v3-participation {display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.3fr);gap:25px;align-items:center;}
html[data-arus-layout="v3"] .v3-participation-row {display:grid;grid-template-columns:40px minmax(70px,1fr) 80px;align-items:center;gap:10px;margin:15px 0;font-size:13px;}
html[data-arus-layout="v3"] .v3-participation-row svg {display:block;width:100%;height:12px;}
html[data-arus-layout="v3"] .v3-foreign-fill {fill:#3b82f6;}
html[data-arus-layout="v3"] .v3-domestic-fill {fill:#10b981;}
html[data-arus-layout="v3"] .v3-foreign-key {color:#3b82f6;}
html[data-arus-layout="v3"] .v3-domestic-key {color:var(--green);}
html[data-arus-layout="v3"] .v3-investor-legend {display:flex;gap:14px;font-size:13px;}
html[data-arus-layout="v3"] .v3-calendar-totals {display:flex;flex-wrap:wrap;align-items:center;gap:20px;font-size:14px;margin-bottom:15px;}
html[data-arus-layout="v3"] .v3-calendar-totals b {display:block;font-size:17px;margin-top:5px;}
html[data-arus-layout="v3"] .v3-calendar-grid {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;}
html[data-arus-layout="v3"] .v3-calendar-grid>strong {text-align:center;font-size:13px;padding:6px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-calendar-day {display:flex;flex-direction:column;gap:5px;min-width:0;min-height:87px;padding:8px;border:1px solid var(--line);border-radius:6px;font-size:14px;background:var(--panel);}
html[data-arus-layout="v3"] .v3-calendar-day>b {font-size:13px;}
html[data-arus-layout="v3"] .v3-calendar-day small {color:var(--muted);font-size:12px;white-space:normal;line-height:1.5;}
html[data-arus-layout="v3"] .v3-calendar-day.non_session,
html[data-arus-layout="v3"] .v3-calendar-day.future {background:var(--bg);color:var(--muted);}
html[data-arus-layout="v3"] .v3-calendar-day.missing {border-style:dashed;}
@media(max-width:1200px) and (min-width:1000px){html[data-arus-layout="v3"] .analysis-v3 .v3-broker-workspace {grid-template-columns:minmax(310px,.9fr) minmax(0,1.2fr);}html[data-arus-layout="v3"] .v3-broker-workspace .card-head {flex-wrap:wrap;}html[data-arus-layout="v3"] .v3-broker-workspace .gd-flow-ohlc b {display:none;}}
@media(max-width:999px){html[data-arus-layout="v3"] .analysis-v3 .v3-broker-workspace {grid-template-columns:minmax(0,1fr);height:auto;}html[data-arus-layout="v3"] .v3-broker-workspace .gd-inventory {order:-1;height:490px;}html[data-arus-layout="v3"] .v3-broker-workspace .gd-brokers {height:440px;}html[data-arus-layout="v3"] .v3-participation {grid-template-columns:minmax(0,1fr);}html[data-arus-layout="v3"] .v3-calendar-grid {gap:3px;}html[data-arus-layout="v3"] .v3-calendar-day {padding:5px;min-height:74px;font-size:12px;}}

/* Compact two-row inventory controls, shared by Broker Map and Foreign. */
html[data-arus-layout="v3"] .v3-broker-workspace .v3-inventory-row {display:flex;flex:none;align-items:center;gap:6px;min-height:31px;margin:0 0 3px;white-space:nowrap;overflow-x:auto;scrollbar-width:thin;}
html[data-arus-layout="v3"] .v3-inventory-row>* {flex:none;}
html[data-arus-layout="v3"] .v3-inventory-row h2 {font-size:14px;margin:0 4px 0 0;}
html[data-arus-layout="v3"] .v3-inventory-row .chip {padding:3px 4px;font-size:12px;min-height:23px;}
html[data-arus-layout="v3"] .v3-inventory-row .gd-flow-ohlc {flex:1;min-width:120px;font-size:12px;display:flex;flex-direction:column;gap:1px;line-height:15px;}
html[data-arus-layout="v3"] .v3-inventory-row .gd-flow-ohlc b {display:block;}
html[data-arus-layout="v3"] .v3-inventory-row label.check {display:flex;align-items:center;gap:3px;font-size:12px;}
html[data-arus-layout="v3"] .v3-inventory-row .gd-flow-controls {display:flex;gap:3px;}
html[data-arus-layout="v3"] .v3-broker-workspace .gd-inv-custom>summary {font-size:12px;min-height:23px;padding:3px 5px;}
html[data-arus-layout="v3"] .v3-broker-legend {display:flex;flex-wrap:wrap;gap:5px 10px;font-size:12px;margin:3px 0;}
html[data-arus-layout="v3"] .v3-broker-analysis .positive {color:var(--green)!important;}
html[data-arus-layout="v3"] .v3-broker-analysis .negative {color:var(--red)!important;}
html[data-arus-layout="v3"] .v3-broker-analysis {overflow-anchor:none;}
html[data-arus-layout="v3"] .v3-month-picker {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px;margin:12px 0 18px;}
html[data-arus-layout="v3"] .v3-month-picker button {display:flex;flex-direction:column;gap:7px;align-items:center;padding:10px 3px;background:var(--bg);border:1px solid var(--line);color:var(--ink);min-width:0;border-radius:6px;font-size:14px;}
html[data-arus-layout="v3"] .v3-month-picker button.active {border-color:var(--primary);background:color-mix(in srgb,var(--primary) 12%,var(--panel));}
html[data-arus-layout="v3"] .v3-month-picker button:disabled {opacity:.38;cursor:default;}
html[data-arus-layout="v3"] .v3-month-picker small {max-width:100%;font-size:12px;line-height:14px;overflow-wrap:anywhere;}
html[data-arus-layout="v3"] .v3-month-heading {display:flex;align-items:center;gap:15px;margin-bottom:12px;}
html[data-arus-layout="v3"] .v3-month-heading h3 {margin:0;font-size:16px;}
html[data-arus-layout="v3"] .v3-month-heading small {color:var(--muted);font-size:12px;}
html[data-arus-layout="v3"] .v3-flow-stats {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0;}
html[data-arus-layout="v3"] .v3-flow-stats article {display:flex;flex-direction:column;gap:6px;border:1px solid var(--line);border-radius:6px;padding:12px;font-size:13px;}
html[data-arus-layout="v3"] .v3-flow-stats article>b {font-size:18px;}
html[data-arus-layout="v3"] .v3-flow-stats small {font-size:12px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-month-total {display:flex;gap:10px 25px;flex-wrap:wrap;font-size:13px;padding:8px 0 15px;border-bottom:1px solid var(--line);}
html[data-arus-layout="v3"] .v3-month-pareto,
html[data-arus-layout="v3"] .v3-behaviour-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:16px;}
html[data-arus-layout="v3"] .v3-month-pareto h3,
html[data-arus-layout="v3"] .v3-behaviour-grid h3 {font-size:14px;margin:0 0 6px;}
html[data-arus-layout="v3"] .v3-month-pareto article>small {font-size:12px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-month-pareto table {min-width:380px;}
html[data-arus-layout="v3"] .v3-broker-analysis td,
html[data-arus-layout="v3"] .v3-broker-analysis th {font-size:13px;padding:9px 6px;}
html[data-arus-layout="v3"] .v3-month-pareto .gd-code {font-size:13px;padding:2px 3px;}
html[data-arus-layout="v3"] .v3-calendar-day.available.positive {background:color-mix(in srgb,var(--green) 13%,var(--panel));border-color:color-mix(in srgb,var(--green) 45%,var(--line));}
html[data-arus-layout="v3"] .v3-calendar-day.available.negative {background:color-mix(in srgb,var(--red) 13%,var(--panel));border-color:color-mix(in srgb,var(--red) 45%,var(--line));}
html[data-arus-layout="v3"] .v3-calendar-day {min-height:115px;gap:7px;}
html[data-arus-layout="v3"] .v3-calendar-day>strong {font-size:16px;}
html[data-arus-layout="v3"] .v3-calendar-day>span {font-size:13px;}
html[data-arus-layout="v3"] .v3-calendar-day em {font-style:normal;}
html[data-arus-layout="v3"] .v3-calendar-totals {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0 8px;padding:14px 0;border-block:1px solid var(--line);}
html[data-arus-layout="v3"] .v3-calendar-totals span {font-size:12px;}
html[data-arus-layout="v3"] .v3-calendar-totals b {font-size:17px;}
html[data-arus-layout="v3"] .v3-behaviour-presence {display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:10px 0;}
html[data-arus-layout="v3"] .v3-behaviour-presence span {font-size:13px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-behaviour-presence b {display:block;font-size:20px;margin-top:5px;color:var(--ink);}
html[data-arus-layout="v3"] .v3-behaviour-grid .table-scroll {max-height:280px;overflow:auto;}
html[data-arus-layout="v3"] .v3-behaviour-daily {margin-top:20px;font-size:14px;}
html[data-arus-layout="v3"] .v3-behaviour-daily summary {cursor:pointer;padding:8px 0;}
@media(max-width:1200px){html[data-arus-layout="v3"] .v3-month-picker {grid-template-columns:repeat(6,minmax(0,1fr));}}
@media(max-width:700px){html[data-arus-layout="v3"] .v3-month-pareto,html[data-arus-layout="v3"] .v3-behaviour-grid {grid-template-columns:minmax(0,1fr);}html[data-arus-layout="v3"] .v3-flow-stats {gap:5px;}html[data-arus-layout="v3"] .v3-flow-stats article {padding:7px;font-size:12px;}html[data-arus-layout="v3"] .v3-flow-stats article>b {font-size:15px;}html[data-arus-layout="v3"] .v3-calendar-day {padding:5px;min-height:106px;gap:6px;}html[data-arus-layout="v3"] .v3-calendar-day>strong {font-size:13px;}html[data-arus-layout="v3"] .v3-calendar-day>span {font-size:12px;}html[data-arus-layout="v3"] .v3-calendar-totals {grid-template-columns:repeat(3,1fr);}}

/* Readable chart labels stay inside the Preview presentation scope. */
html[data-arus-layout="v3"] .analysis-v3 svg[data-chart] text[font-size="8"],
html[data-arus-layout="v3"] .analysis-v3 svg[data-chart] text[font-size="9"],
html[data-arus-layout="v3"] .analysis-v3 svg[data-chart] text[font-size="10"],
html[data-arus-layout="v3"] .analysis-v3 svg[data-chart] text[font-size="11"],
html[data-arus-layout="v3"] .analysis-v3 svg.gd-flow text[font-size="10"],
html[data-arus-layout="v3"] .analysis-v3 svg.gd-flow text[font-size="11"],
html[data-arus-layout="v3"] .analysis-v3 [data-smart-money-chart] svg text[font-size="9"],
html[data-arus-layout="v3"] .analysis-v3 [data-smart-money-chart] svg text[font-size="10"],
html[data-arus-layout="v3"] .analysis-v3 [data-smart-money-chart] svg text[font-size="11"] {font-size:12px;}

/* Compact CHART overlays; preserve dashboard typography outside the price chart. */
html[data-arus-layout="v3"] .analysis-v3 #tech-plot svg[data-chart] text[font-size="8"] {font-size:8px;}
html[data-arus-layout="v3"] .analysis-v3 #tech-plot svg[data-chart] text[font-size="9"] {font-size:9px;}
html[data-arus-layout="v3"] .analysis-v3 #tech-plot svg[data-chart] text[font-size="10"],
html[data-arus-layout="v3"] .analysis-v3 #tech-plot svg[data-chart] text[font-size="11"] {font-size:10px;}

/* A compact indicator list keeps the trigger and navigation reachable. */
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators[open]>div {box-sizing:border-box;min-width:0;padding:10px 12px;gap:3px;font-size:12px;line-height:1.4;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators[open]>div>strong {font-size:13px;line-height:18px;margin:0 0 3px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators label.check {margin:0;padding:3px 0;min-height:24px;gap:7px;font-size:12px;line-height:1.4;white-space:normal;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators input[type="checkbox"] {width:14px;height:14px;min-height:0;margin:0;padding:0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators label:not(.check) {margin:3px 0 0;gap:3px;font-size:12px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators select {min-height:27px;height:27px;padding:3px 6px;font-size:12px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators small {font-size:11px;line-height:1.4;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators p {margin:3px 0 0;font-size:11px;line-height:1.45;}

/* Indicator V2: constrain only CHART annotations and keep secondary analytics legible. */
html[data-arus-layout="v3"] .analysis-v3 #tech-plot svg[data-chart] [data-chart-annotation] {font-size:9px;paint-order:stroke;stroke:transparent;stroke-width:0;cursor:help;}
html[data-arus-layout="v3"] .analysis-v3 #tech-plot svg[data-chart] [data-chart-annotation="zone"] {font-size:8px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators[open]>div {width:min(288px,calc(100vw - 24px));max-height:calc(100dvh - 24px);}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-heading {display:block;margin:0 0 2px;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-advanced {display:block;margin:5px 0 0;border-top:1px solid var(--line);padding-top:5px;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-advanced>summary {list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:700;min-height:28px;padding:3px 2px;color:var(--ink);}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-advanced>summary::-webkit-details-marker {display:none;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-advanced>summary::after {content:"+";font-size:15px;font-weight:500;color:var(--muted);}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-advanced[open]>summary::after {content:"−";}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-advanced>div {display:flex;flex-direction:column;gap:2px;padding:2px 0;}
html[data-arus-layout="v3"] .analysis-v3 .v3-indicators .v3-indicator-advanced label.check {font-size:11px;line-height:1.35;}
@media(max-width:700px){html[data-arus-layout="v3"] .analysis-v3 .v3-indicators[open]>div {padding:8px 10px;}html[data-arus-layout="v3"] .analysis-v3 .v3-indicators label.check {min-height:26px;}}

/* Month metrics and calendar share the same selected-broker annual aggregates. */
html[data-arus-layout="v3"] .v3-month-picker button:has(.v3-month-metrics) {gap:4px;padding:6px;}
html[data-arus-layout="v3"] .v3-month-metrics {display:grid;gap:2px;width:100%;}
html[data-arus-layout="v3"] .v3-month-metrics small {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:3px;line-height:15px;font-size:12px;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-month-metrics small>span {font-size:11px;color:var(--muted);}
@media(max-width:700px){html[data-arus-layout="v3"] .analysis-v3 .gd-main {grid-column:2;}html[data-arus-layout="v3"] .v3-month-picker {grid-template-columns:repeat(3,minmax(0,1fr));}html[data-arus-layout="v3"] .v3-month-metrics small:first-child>span {display:none;}}
html[data-arus-layout="v3"] .v3-broker-analysis .v3-calendar-card {display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:6px;padding:10px;}
html[data-arus-layout="v3"] .v3-calendar-card>.card-head,
html[data-arus-layout="v3"] .v3-calendar-card>.v3-analysis-controls {margin:0;}
html[data-arus-layout="v3"] .v3-calendar-card>.card-head h2 {margin:0;font-size:16px;line-height:21px;}
html[data-arus-layout="v3"] .v3-calendar-card>.card-head small {font-size:12px;line-height:16px;}
html[data-arus-layout="v3"] .v3-calendar-card>.v3-analysis-controls {gap:8px;}
html[data-arus-layout="v3"] .v3-calendar-card>.v3-analysis-controls small {display:none;}
html[data-arus-layout="v3"] .v3-calendar-card>:not(.card-head):not(.v3-analysis-controls) {grid-column:1/-1;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-month-picker {margin:0;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-month-picker button {gap:2px;padding:4px;line-height:18px;font-size:13px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-month-metrics {gap:1px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-month-metrics small {line-height:14px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-grid {gap:4px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-grid>strong {font-size:12px;padding:2px;line-height:16px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-day {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:16px 14px 14px;align-content:start;gap:1px 5px;min-height:0;padding:3px 6px;font-size:12px;line-height:14px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-day>b {font-size:12px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-day>strong {font-size:14px;text-align:right;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-day>span {font-size:12px;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-calendar-avg {text-align:right;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-day small {font-size:11px;line-height:14px;}
html[data-arus-layout="v3"] .v3-calendar-trades {grid-column:1/-1;display:flex;justify-content:space-between;gap:3px;}
html[data-arus-layout="v3"] .v3-calendar-reason {grid-column:1/-1;grid-row:2/4;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-totals {margin:0;padding:5px 0;gap:6px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-totals span {display:flex;align-items:baseline;justify-content:space-between;gap:4px;white-space:nowrap;line-height:18px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-totals b {font-size:14px;line-height:18px;margin:0;}
html[data-arus-layout="v3"] .v3-calendar-method {font-size:12px;line-height:17px;margin:0;}
html[data-arus-layout="v3"] .v3-calendar-method summary {cursor:pointer;padding:0;}
html[data-arus-layout="v3"] .v3-calendar-layout {display:grid;grid-template-columns:minmax(0,3fr) minmax(230px,1fr);gap:12px;align-items:stretch;}
html[data-arus-layout="v3"] .v3-calendar-layout .v3-calendar-grid {align-content:start;}
html[data-arus-layout="v3"] .v3-calendar-summary {display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid var(--line);border-radius:6px;min-width:0;}
html[data-arus-layout="v3"] .v3-calendar-summary h3 {font-size:14px;line-height:19px;margin:0;}
html[data-arus-layout="v3"] .v3-calendar-summary>small {font-size:12px;line-height:16px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-calendar-layout .v3-calendar-totals {grid-template-columns:minmax(0,1fr);gap:5px;padding:7px 0;margin:0;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-summary .v3-calendar-totals span {flex-direction:row;line-height:19px;}
html[data-arus-layout="v3"] .v3-calendar-layout .v3-calendar-totals b {font-size:15px;}
html[data-arus-layout="v3"] .v3-calendar-days {display:flex;justify-content:space-between;gap:7px;font-size:12px;line-height:18px;}
html[data-arus-layout="v3"] .v3-calendar-days b {margin-left:5px;}
html[data-arus-layout="v3"] .v3-calendar-largest {font-size:12px;line-height:16px;padding-top:6px;border-top:1px solid var(--line);}
html[data-arus-layout="v3"] .v3-calendar-largest>span {color:var(--muted);}
html[data-arus-layout="v3"] .v3-calendar-largest>div {display:flex;justify-content:space-between;gap:5px;margin-top:3px;}
html[data-arus-layout="v3"] .v3-calendar-largest small {font-size:12px;}
html[data-arus-layout="v3"] .v3-calendar-card .v3-analysis-note {font-size:12px;line-height:17px;margin-top:5px;}
html[data-arus-layout="v3"] .v3-behaviour-time,
html[data-arus-layout="v3"] .v3-behaviour-counterparties {margin-top:16px;padding-top:12px;border-top:1px solid var(--line);min-width:0;}
html[data-arus-layout="v3"] .v3-behaviour-time h3,
html[data-arus-layout="v3"] .v3-behaviour-counterparties h3 {font-size:15px;margin:0;}
html[data-arus-layout="v3"] .v3-time-heading {display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:13px;}
html[data-arus-layout="v3"] .v3-time-heading label {display:flex;align-items:center;gap:6px;margin-left:auto;}
html[data-arus-layout="v3"] .v3-time-heading select {font-size:13px;padding:5px;}
html[data-arus-layout="v3"] .v3-time-pattern {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 2px;}
html[data-arus-layout="v3"] .v3-time-pattern article {display:grid;gap:4px;padding:9px;border:1px solid var(--line);border-radius:5px;font-size:13px;}
html[data-arus-layout="v3"] .v3-time-pattern b {font-size:16px;}
html[data-arus-layout="v3"] .v3-time-pattern small {font-size:12px;color:var(--muted);}
html[data-arus-layout="v3"] .v3-time-chart {overflow-x:auto;}
html[data-arus-layout="v3"] .v3-time-chart svg {display:block;width:100%;min-width:760px;margin-top:8px;}
html[data-arus-layout="v3"] .v3-time-chart text {fill:var(--muted);font-size:14px;}
html[data-arus-layout="v3"] .v3-time-axes line {stroke:var(--line);stroke-width:1;}
html[data-arus-layout="v3"] .v3-time-buy {fill:var(--green);}
html[data-arus-layout="v3"] .v3-time-sell {fill:var(--red);}
html[data-arus-layout="v3"] .v3-time-table {max-height:265px;overflow:auto;}
html[data-arus-layout="v3"] .v3-time-table table {min-width:800px;white-space:nowrap;}
html[data-arus-layout="v3"] .v3-time-table thead {position:sticky;top:0;background:var(--panel);z-index:1;}
@media(min-width:1000px) and (max-width:1450px){html[data-arus-layout="v3"] .v3-calendar-card .v3-month-picker {grid-template-columns:repeat(12,minmax(0,1fr));}html[data-arus-layout="v3"] .v3-month-metrics small {justify-content:center;}html[data-arus-layout="v3"] .v3-month-metrics small:first-child>span {display:none;}}
@media(max-width:700px){html[data-arus-layout="v3"] .v3-broker-analysis .v3-calendar-card {display:block;overflow-x:auto;}html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-grid {min-width:560px;margin-top:6px;}html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-totals {min-width:560px;grid-template-columns:repeat(5,minmax(0,1fr));}html[data-arus-layout="v3"] .v3-time-pattern {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(min-width:1000px) and (max-width:1200px){html[data-arus-layout="v3"] .v3-calendar-card .v3-month-picker {grid-template-columns:repeat(12,minmax(78px,1fr));min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:thin;}}
@media(max-width:1279px){html[data-arus-layout="v3"] .v3-calendar-layout {grid-template-columns:minmax(0,1fr);}html[data-arus-layout="v3"] .v3-calendar-summary {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:6px;}html[data-arus-layout="v3"] .v3-calendar-summary>h3,html[data-arus-layout="v3"] .v3-calendar-summary>small {display:none;}html[data-arus-layout="v3"] .v3-calendar-summary .v3-calendar-totals {grid-column:1/-1;grid-row:auto;grid-template-columns:repeat(5,minmax(0,1fr));padding:0 0 4px;gap:5px;}html[data-arus-layout="v3"] .v3-calendar-card .v3-calendar-summary .v3-calendar-totals span {flex-direction:column;align-items:flex-start;gap:0;line-height:17px;}html[data-arus-layout="v3"] .v3-calendar-summary .v3-calendar-days {grid-column:1/3;display:grid;align-self:start;gap:0;line-height:16px;}html[data-arus-layout="v3"] .v3-calendar-summary .v3-calendar-largest {padding:0;border:0;}html[data-arus-layout="v3"] .v3-calendar-summary .v3-calendar-largest:nth-last-child(2) {grid-column:3/5;}html[data-arus-layout="v3"] .v3-calendar-summary .v3-calendar-largest:last-child {grid-column:5/7;}}
@media(max-width:700px){html[data-arus-layout="v3"] .v3-calendar-summary {min-width:560px;margin-top:6px;}html[data-arus-layout="v3"] .v3-calendar-summary .v3-calendar-totals {min-width:0;}}

/* Compact native Donchian facts; no extra technical calculation or provider read. */
html[data-arus-layout="v3"] .v3-chart .v3-donchian-status {margin:3px 10px 0;padding:3px 6px;border:1px solid var(--line);border-radius:4px;font-size:11px;line-height:16px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* ARUS V3 mobile usability: stack the header, keep Watchlist in document flow,
   and wrap Smart Money controls instead of painting over charts. Desktop unchanged. */
@media (max-width: 700px) {
  html[data-arus-layout="v3"] .analysis-v3 .v3-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px !important;
    height: auto;
    min-height: 0;
    padding: 8px !important;
    overflow: visible;
  }
  html[data-arus-layout="v3"] .v3-header > .gd-symbol-search {
    grid-column: 1;
    grid-row: 1;
    flex: initial;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  html[data-arus-layout="v3"] .v3-header #ar-watch-header {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    justify-self: end;
  }
  html[data-arus-layout="v3"] .v3-header .v3-quote {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    line-height: 1.25;
  }
  html[data-arus-layout="v3"] .v3-header .v3-quote strong {
    font-size: 18px;
  }
  html[data-arus-layout="v3"] .v3-header .v3-quote > span {
    font-size: 11px;
  }
  html[data-arus-layout="v3"] .v3-header .gd-day {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    justify-self: end;
  }
  html[data-arus-layout="v3"] .v3-header .gd-day summary {
    font-size: 11px;
  }
  html[data-arus-layout="v3"] .v3-header .v3-account {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  html[data-arus-layout="v3"] .v3-header .gd-header-ranges {
    grid-column: 1 / -1;
    grid-row: 4;
    display: flex;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    padding-bottom: 2px;
  }
  html[data-arus-layout="v3"] .analysis-v3 .gd-workspace,
  html[data-arus-layout="v3"] .analysis-v3 .gd-workspace.gd-watch-closed,
  html[data-arus-layout="v3"] .analysis-v3 .gd-workspace:not(.gd-watch-closed) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail {
    position: relative;
    top: auto;
    grid-column: 1;
    width: 100%;
    min-width: 0;
    z-index: auto;
  }
  html[data-arus-layout="v3"] .analysis-v3 .wl-rail {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: min(240px, 42dvh);
    max-height: min(240px, 42dvh) !important;
    padding: 8px;
    overflow: visible;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail .v3-watch-open {
    display: block;
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail .v3-watch-open::after {
    content: " Watchlist";
    font-size: 12px;
  }
  html[data-arus-layout="v3"] .analysis-v3 .gd-main {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    padding: 7px;
  }
  html[data-arus-layout="v3"] .v3-flow-controls {
    height: auto;
    min-height: 0;
  }
  html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    white-space: normal;
    gap: 4px 7px;
    padding-bottom: 5px;
  }
  html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar h2 {
    flex: 1 0 100%;
    width: 100%;
    height: auto;
    margin: 0;
    line-height: 22px;
  }
  html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar select {
    max-width: min(145px, 45vw);
  }
  html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar .ar-ohlcv {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 26px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }
  html[data-arus-layout="v3"] .v3-flow-plot-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 0;
    gap: 6px;
    padding: 7px 2px;
    overflow: visible;
    white-space: normal;
  }
  html[data-arus-layout="v3"] .v3-flow-plot-head > h2 {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
    margin: 0;
    line-height: 22px;
  }
  html[data-arus-layout="v3"] .v3-flow-plot-head .v3-flow-checks {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: thin;
    gap: 10px;
    padding-bottom: 3px;
  }
  html[data-arus-layout="v3"] .v3-flow-plot-head .v3-flow-check {
    flex: 0 0 auto;
  }
  html[data-arus-layout="v3"] .v3-flow-plot-head .v3-flow-period {
    margin-left: 0;
  }
  html[data-arus-layout="v3"] .v3-flow-plot-head .arus-smart-tabs {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
  }
  html[data-arus-layout="v3"] .analysis-v3 .v3-chart svg[data-chart] {
    max-width: 100%;
  }
}

/* Keep narrow contribution legends inside their card without shrinking text. */
@media (max-width: 700px) {
  html[data-arus-layout="v3"] .analysis-v3 .v3-money-flow-card,
  html[data-arus-layout="v3"] .analysis-v3 .v3-money-flow-card .arus-pie-legend {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  html[data-arus-layout="v3"] .analysis-v3 .v3-money-flow-card .arus-pie-legend {
    width: 100%;
    padding-inline: 0;
  }
  html[data-arus-layout="v3"] .analysis-v3 .v3-money-flow-card .arus-pie-legend > li {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* Mobile shell and analysis layout, including phone landscape and small tablets.
   Panels occupy their own rows. Only the analysis tabs and period chips scroll. */
@media (max-width: 900px) {
  html[data-arus-layout="v3"] .shell,
  html[data-arus-layout="v3"] .shell.analysis-v3 {display:block;min-width:0;}
  html[data-arus-layout="v3"] .shell > .sidebar,
  html[data-arus-layout="v3"] .shell .topbar {display:none !important;}
  html[data-arus-layout="v3"] .shell > .workspace {width:100%;min-width:0;margin:0;}
  html[data-arus-layout="v3"] .v3-mobile-shell {display:grid;grid-template-columns:minmax(0,1fr) 40px auto;align-items:center;gap:6px;padding:6px 12px;background:var(--panel);border-bottom:1px solid var(--line);}
  html[data-arus-layout="v3"] .v3-mobile-shell > button {display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:40px;margin:0;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--ink);box-shadow:none;font-size:13px;}
  html[data-arus-layout="v3"] .v3-mobile-shell > .v3-mobile-brand {justify-content:flex-start;justify-self:start;padding:0;border:0;background:transparent;letter-spacing:1.5px;font-size:19px;font-weight:800;}
  html[data-arus-layout="v3"] .v3-mobile-brand img {display:block;width:36px;height:26px;object-fit:contain;background:transparent;border:0;border-radius:0;}
  html[data-arus-layout="v3"] .v3-mobile-shell > [data-v3-mobile-theme] {font-size:21px;padding:4px;}
  html[data-arus-layout="v3"] .v3-mobile-menu {grid-column:1/-1;min-width:0;padding:6px 0 2px;}
  html[data-arus-layout="v3"] .v3-mobile-menu[hidden] {display:none !important;}
  html[data-arus-layout="v3"] .v3-mobile-menu nav {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
  html[data-arus-layout="v3"] .v3-mobile-menu nav button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:60px;margin:0;padding:8px 3px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:12px;}
  html[data-arus-layout="v3"] .v3-mobile-menu nav button.active {background:var(--active);color:var(--primary);border-color:var(--primary);}
  html[data-arus-layout="v3"] .v3-mobile-menu nav svg {width:20px;height:20px;}
  html[data-arus-layout="v3"] .v3-mobile-menu .v3-mobile-logout {display:flex;align-items:center;gap:6px;min-height:40px;margin:6px 0 0 auto;padding:5px 12px;color:var(--muted);}

  html[data-arus-layout="v3"] .analysis-v3 .v3-header {position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto);height:auto;min-height:0;gap:6px 10px !important;padding:8px 12px !important;}
  html[data-arus-layout="v3"] .v3-header > .gd-symbol-search {grid-column:1;grid-row:1;flex:initial;width:100%;max-width:none;min-width:0;}
  html[data-arus-layout="v3"] .v3-header .gd-symbol-copy {flex:1;min-width:0;}
  html[data-arus-layout="v3"] .v3-header .gd-company {max-width:100%;font-size:11px;}
  html[data-arus-layout="v3"] .v3-header #gd-symbol-input {min-width:0;font-size:17px;height:25px;}
  html[data-arus-layout="v3"] .v3-header > .v3-quote {grid-column:2;grid-row:1;min-width:0;align-items:flex-end;line-height:1.35;}
  html[data-arus-layout="v3"] .v3-header > .v3-quote strong {font-size:19px;}
  html[data-arus-layout="v3"] .v3-header > .v3-quote > span {font-size:11px;}
  html[data-arus-layout="v3"] .v3-header > .gd-day {grid-column:1 !important;grid-row:2 !important;justify-self:start;min-width:0;max-width:100%;}
  html[data-arus-layout="v3"] .v3-header .gd-day > button {min-width:30px;min-height:36px;}
  html[data-arus-layout="v3"] .v3-header .gd-day summary {font-size:11px;}
  html[data-arus-layout="v3"] .v3-header > .v3-data {display:block;grid-column:2;grid-row:2;justify-self:end;margin:0;min-width:0;max-width:100%;font-size:10px;}
  html[data-arus-layout="v3"] .v3-header > .v3-account {display:none;}
  html[data-arus-layout="v3"] .v3-header > .gd-header-ranges {grid-column:1/-1 !important;grid-row:3 !important;display:flex;width:100%;min-width:0;max-width:100%;gap:4px;flex-wrap:nowrap !important;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scrollbar-width:thin;padding:0 0 2px;}
  html[data-arus-layout="v3"] .v3-header .gd-header-ranges .chip,
  html[data-arus-layout="v3"] .v3-header .gd-header-ranges summary {min-height:34px;padding:6px 9px;font-size:11px;}
  html[data-arus-layout="v3"] .v3-header #gd-symbol-suggestions {left:0;top:calc(100% + 6px);width:min(340px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(280px,40dvh);box-sizing:border-box;}
  html[data-arus-layout="v3"] .analysis-v3 .v3-nav-watch {position:relative;height:44px;min-height:44px;}
  html[data-arus-layout="v3"] .analysis-v3 .v3-nav-watch .ar-analysis-tabs {height:43px;min-height:43px;gap:4px;padding:0 6px;scrollbar-width:thin;}
  html[data-arus-layout="v3"] .analysis-v3 .ar-analysis-tabs button {font-size:11px;padding:9px 8px;}
  html[data-arus-layout="v3"] .analysis-v3 .v3-watch-action {min-width:42px;padding:0 6px;}

  html[data-arus-layout="v3"] .analysis-v3 .gd-workspace,
  html[data-arus-layout="v3"] .analysis-v3 .gd-workspace.gd-watch-closed,
  html[data-arus-layout="v3"] .analysis-v3 .gd-workspace:not(.gd-watch-closed) {display:grid;grid-template-columns:minmax(0,1fr);}
  html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail {position:relative;top:auto;left:auto;grid-column:1;grid-row:1;width:100%;min-width:0;z-index:auto;}
  html[data-arus-layout="v3"] .analysis-v3 .wl-rail {position:relative;top:auto;left:auto;width:100%;height:auto;max-height:none !important;box-sizing:border-box;margin:0;padding:10px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;}
  html[data-arus-layout="v3"] .analysis-v3 .wl-rail:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;}
  html[data-arus-layout="v3"] .analysis-v3 .wl-titlebar,
  html[data-arus-layout="v3"] .analysis-v3 .wl-caption,
  html[data-arus-layout="v3"] .analysis-v3 .wl-rows,
  html[data-arus-layout="v3"] .analysis-v3 .gd-watch-note,
  html[data-arus-layout="v3"] .analysis-v3 .wl-error {grid-column:1/-1;}
  html[data-arus-layout="v3"] .analysis-v3 .wl-selector,
  html[data-arus-layout="v3"] .analysis-v3 .wl-add {min-width:0;width:100%;margin:0;}
  html[data-arus-layout="v3"] .analysis-v3 .wl-rail select,
  html[data-arus-layout="v3"] .analysis-v3 .wl-rail input {min-width:0;width:100%;max-width:100%;min-height:38px;box-sizing:border-box;}
  html[data-arus-layout="v3"] .analysis-v3 .wl-titlebar h3 {font-size:12px;}
  html[data-arus-layout="v3"] .analysis-v3 .v3-watch-toggle {min-width:36px;min-height:36px;font-size:24px;}
  html[data-arus-layout="v3"] .analysis-v3 .wl-rows {min-height:58px;max-height:min(240px,32dvh);overflow:auto;overscroll-behavior:contain;}
  html[data-arus-layout="v3"] .analysis-v3 .gd-watch-name {max-width:none;}
  html[data-arus-layout="v3"] .analysis-v3 .gd-watch-quote {max-width:100px;}
  html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail .v3-watch-open {width:100%;min-height:40px;padding:8px 12px;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;}
  html[data-arus-layout="v3"] .analysis-v3 #gd-region-rail .v3-watch-open::after {content:" Watchlist";font-size:12px;}
  html[data-arus-layout="v3"] .analysis-v3 .gd-main {grid-column:1;grid-row:2;width:100%;min-width:0;padding:6px 3px;box-sizing:border-box;}
  html[data-arus-layout="v3"] .analysis-v3 .v3-chart .ar-ohlcv {height:auto;min-height:36px;max-height:none;flex-wrap:wrap;gap:3px 8px;padding:5px 8px;white-space:normal;}
  html[data-arus-layout="v3"] .v3-flow-controls {height:auto;min-height:0;}
  html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar {display:flex;flex-wrap:wrap;height:auto;min-height:36px;max-height:none;overflow:visible;gap:4px 6px;}
  html[data-arus-layout="v3"] .v3-flow-controls .ar-chart-toolbar .ar-ohlcv {flex:0 0 100%;width:100%;height:auto;min-height:20px;max-height:none;overflow-x:auto;}
}

@media (max-width:900px) {
  html[data-arus-layout="v3"] .analysis-v3 .v3-broker-workspace>.card,
  html[data-arus-layout="v3"] .analysis-v3 .v3-money-flow-card {padding:8px 6px;}
}

/* Existing pattern inspector stays below the full-width price chart. */
.v3-patterns{min-width:0;margin-top:10px;padding:12px 14px}
.v3-patterns>summary{cursor:pointer;font-size:13px;font-weight:650;display:flex;align-items:center;justify-content:space-between;gap:10px}
.v3-patterns>summary small{font-weight:400;color:var(--muted)}
.v3-patterns>.ap-panel{border:0;box-shadow:none;margin:0;padding:12px 0 0}
.v3-pattern-focus{padding:2px 10px 5px}.v3-pattern-focus button{font-size:11px;max-width:100%}
.v3-patterns .ap-dialog{overscroll-behavior:contain}
@media(max-width:900px){.v3-patterns{padding:12px 8px}.v3-patterns .ap-tabs button{font-size:12px}.v3-patterns .ap-row{min-width:0}.v3-patterns .ap-tools select{max-width:min(135px,100%)}.v3-pattern-focus{padding-left:6px;padding-right:6px}}
.v3-patterns .ap-dialog{background:var(--panel);color:var(--ink);border-color:var(--line)}
.v3-patterns .ap-row,.v3-patterns .ap-tabs,.v3-patterns .ap-actions button{border-color:var(--line)}

/* Shared readable text tokens; market candle/overlay colours are unchanged. */
html[data-arus-layout="v3"]{--v3-positive:#6ee7b7;--v3-accent:#5eead4;--v3-selected:#153e3a;--v3-focus-text:#c4e7ff;--v3-focus-bg:#183d56;--v3-focus-line:#638eab}
html[data-arus-layout="v3"][data-theme="light"]{--v3-positive:#006b46;--v3-accent:#006b59;--v3-selected:#e1f2eb;--v3-focus-text:#164e80;--v3-focus-bg:#edf5ff;--v3-focus-line:#668fb5}
html[data-arus-layout="v3"] :is(.analysis-v3,.sc-page,.sc-dialog){--green:var(--v3-positive);--primary:var(--v3-accent);--gold:var(--v3-accent)}
html[data-arus-layout="v3"] .v3-patterns>summary{color:var(--v3-accent)}
html[data-arus-layout="v3"] .v3-patterns .ap-tabs button{background:var(--raised);color:var(--ink);border:1px solid transparent;min-height:36px}
html[data-arus-layout="v3"] .v3-patterns .ap-tabs button[aria-selected="true"],
html[data-arus-layout="v3"] .v3-patterns .ap-tabs button[aria-selected="true"]:hover:not(:disabled){background:var(--v3-selected);color:var(--v3-accent);border-color:var(--v3-accent)}
html[data-arus-layout="v3"] .v3-patterns .ap-tabs button:hover:not(:disabled){background:var(--raised);color:var(--ink);border-color:var(--muted)}
html[data-arus-layout="v3"] .v3-patterns .ap-row small{opacity:1;color:var(--muted)}
html[data-arus-layout="v3"] .v3-patterns .ap-actions button:hover:not(:disabled){background:var(--raised);color:var(--ink)}
html[data-arus-layout="v3"] .v3-pattern-focus .ap-close,
html[data-arus-layout="v3"] .v3-pattern-focus .ap-close:hover:not(:disabled){background:var(--v3-focus-bg);color:var(--v3-focus-text);border:1px solid var(--v3-focus-line);font-size:12px;line-height:1.5;font-weight:650;padding:4px 9px;min-height:28px;max-width:100%;white-space:normal;text-align:left;overflow-wrap:anywhere}
html[data-arus-layout="v3"] .sc-page :is(.sc-tabs button,.sc-presets button,.sc-symbol,.sc-table th>button,.sc-star):hover:not(:disabled){background:var(--raised);color:var(--ink)}
html[data-arus-layout="v3"] .sc-page .sc-presets button.active,
html[data-arus-layout="v3"] .sc-page .sc-presets button.active:hover:not(:disabled){background:var(--v3-selected);color:var(--v3-accent);border-color:var(--v3-accent)}
html[data-arus-layout="v3"] .sc-dialog .sc-dialog-head>button:hover:not(:disabled){background:var(--raised);color:var(--ink)}

/* More visible rows, plus an explicit native Watchlist add flow. */
html[data-arus-layout="v3"] .analysis-v3 .wl-rail .wl-add{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:4px}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-add{padding:0;min-height:32px;font-size:22px;line-height:1;background:var(--v3-selected);color:var(--v3-accent);border:1px solid var(--line)}
html[data-arus-layout="v3"] .analysis-v3 .v3-watch-add:hover:not(:disabled){background:var(--raised);color:var(--ink)}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock{min-height:46px;grid-template-columns:26px minmax(42px,1fr) minmax(0,82px)!important;gap:3px 5px!important;padding:6px 3px!important}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock .gd-watch-copy strong,
html[data-arus-layout="v3"] .analysis-v3 .wl-stock .gd-watch-quote b{font-size:13px;line-height:17px}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock .gd-watch-name{font-size:11px;line-height:14px}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock .gd-watch-copy{min-width:0;overflow:hidden}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock .gd-watch-name{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock .gd-watch-quote{max-width:none}
html[data-arus-layout="v3"] .analysis-v3 .wl-stock .gd-watch-quote>span{font-size:10px;line-height:14px;white-space:nowrap}
html[data-arus-layout="v3"] .analysis-v3 .wl-rows{scrollbar-gutter:stable}
html[data-arus-layout="v3"] .v3-watch-search{display:flex;flex-direction:column;gap:6px;font-size:13px}
html[data-arus-layout="v3"] .v3-watch-search input{width:100%}
html[data-arus-layout="v3"] .v3-watch-count,html[data-arus-layout="v3"] .v3-watch-result{font-size:12px;color:var(--muted)}
html[data-arus-layout="v3"] .v3-watch-result:empty{display:none}
html[data-arus-layout="v3"] .v3-watch-options{max-height:min(380px,45dvh);overflow:auto;overscroll-behavior:contain;border-block:1px solid var(--line)}
html[data-arus-layout="v3"] .v3-watch-options label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;text-align:left;gap:12px;min-height:48px;padding:7px 5px;border-bottom:1px solid var(--line);cursor:pointer;font-size:13px}
html[data-arus-layout="v3"] .v3-watch-options input{flex:none;width:17px;height:17px;accent-color:var(--v3-accent)}
html[data-arus-layout="v3"] .v3-watch-options label>span{flex:1;min-width:0}
html[data-arus-layout="v3"] .v3-watch-options small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
html[data-arus-layout="v3"] .v3-watch-footer{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:-20px;padding:12px 0 0;background:var(--panel)}
html[data-arus-layout="v3"] .v3-watch-footer button{min-height:40px}
@media(min-width:901px){html[data-arus-layout="v3"] .analysis-v3 .gd-workspace:not(.gd-watch-closed){grid-template-columns:220px minmax(0,1fr)}}

.v3-flow-empty{display:grid;gap:12px;justify-items:center;min-width:0}
.v3-flow-empty>h3,.v3-flow-empty>p{margin:0!important}
.v3-flow-empty>.v3-flow-quality{width:100%;box-sizing:border-box;max-width:680px;border:0!important}
.v3-flow-empty>.v3-flow-quality>p{margin-top:10px}
.v3-flow-empty-actions{display:flex;justify-content:center;flex-wrap:wrap;max-width:100%}
.v3-flow-empty-actions button{max-width:100%;white-space:normal}
.v3-flow-empty>small{display:block;font-size:11px;line-height:1.6;max-width:65ch}

/* Compact chart toolbar: keep selected chart pattern beside Indicators; no extra rows. */
html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-badges{min-width:0;overflow:hidden;}
html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-pattern-chip{display:flex;align-items:center;flex:0 1 auto;min-width:0;max-width:min(52%,420px);height:28px;overflow:hidden;}
html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-pattern-chip .ap-close,
html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-pattern-chip .ap-close:hover:not(:disabled){display:block;min-width:0;max-width:100%;height:26px;min-height:26px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:16px;padding:4px 7px;font-size:12px;font-weight:650;text-align:left;background:var(--v3-focus-bg);color:var(--v3-focus-text);border:1px solid var(--v3-focus-line);}
html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-badges>.v3-badge{overflow:hidden;text-overflow:ellipsis;max-width:190px;white-space:nowrap;}
html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-badges>.v3-badge-more{flex:none;}
@media(max-width:700px){html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar{gap:4px;padding-inline:6px;}html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-pattern-chip{max-width:100%;}html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-badges:has([data-v3-badge]) .v3-pattern-chip{max-width:calc(100% - 44px);}html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-badges{gap:4px;}html[data-arus-layout="v3"] .analysis-v3 .v3-toolbar .v3-badges>.v3-badge{max-width:140px;}}

html[data-arus-layout="v3"] .analysis-v3 .v3-valuation-potential {font-size:10px;line-height:13px;font-weight:600;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;}

/* Issuer facts belong to the shared header, independently of chart signals. */
html[data-arus-layout="v3"] .v3-header .v3-issuer-badges {display:flex;align-items:center;gap:6px;flex:1 1 80px;min-width:38px;height:28px;overflow:hidden;}
html[data-arus-layout="v3"] .v3-header .v3-issuer-badges:empty {display:none;}
html[data-arus-layout="v3"] .v3-header .v3-issuer-badges > button {flex:none;}
html[data-arus-layout="v3"] .v3-header .v3-issuer-badges .v3-badge-more {font-size:10px;line-height:14px;min-height:22px;padding:2px 6px;}
@media(max-width:900px){
  html[data-arus-layout="v3"] .analysis-v3 .v3-header:has(.v3-issuer-badges:not(:empty)) {grid-template-columns:minmax(0,1fr) minmax(38px,80px) minmax(88px,auto);gap:6px !important;}
  html[data-arus-layout="v3"] .v3-header:has(.v3-issuer-badges:not(:empty)) > .v3-issuer-badges {grid-column:2;grid-row:1;width:100%;min-width:0;}
  html[data-arus-layout="v3"] .v3-header:has(.v3-issuer-badges:not(:empty)) > .v3-quote {grid-column:3;}
  html[data-arus-layout="v3"] .v3-header:has(.v3-issuer-badges:not(:empty)) > .gd-day {grid-column:1/3 !important;}
  html[data-arus-layout="v3"] .v3-header:has(.v3-issuer-badges:not(:empty)) > .v3-data {grid-column:3;}
}
