/* September terminal system. Public UI only: the admin portal is deliberately untouched. */
.access-granted .visual-legend i.second { background: #417def; }
.access-granted .mesh-key .rank-most { color: var(--green); }
.access-granted .mesh-key .rank-second { color: #417def; }
.access-granted .mesh-key .rank-least { color: var(--rose); }
.access-granted .mesh-widget .mesh-node.frequency-most .mesh-node-core { fill: color-mix(in srgb, var(--green) 40%, var(--panel)); stroke: var(--green); }
.access-granted .mesh-widget .mesh-node.frequency-second .mesh-node-core { fill: color-mix(in srgb, #417def 40%, var(--panel)); stroke: #417def; }
.access-granted .mesh-widget .mesh-node.frequency-least .mesh-node-core { fill: color-mix(in srgb, var(--rose) 30%, var(--panel)); stroke: var(--rose); }
.access-granted .mesh-widget .mesh-node.frequency-normal .mesh-node-core { fill: var(--panel-2); stroke: var(--muted); }
.access-granted .mesh-widget .mesh-node.frequency-muted .mesh-node-core { fill: var(--panel-2); stroke: var(--muted); stroke-dasharray: 3 3; opacity: .4; }
.access-granted .mesh-widget .mesh-node.current[class*="frequency-"] .mesh-node-pulse { stroke: var(--cyan); }
@keyframes bubble-result-fade { 0%, 65% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bubble-trade-routes > g { animation: none !important; } }
.view-preferences { margin: 0 0 16px; padding: 0; border: 0; }
.view-preferences legend { margin-bottom: 6px; font-weight: 600; }
.view-preferences label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; }
.view-preferences input[type="checkbox"] { appearance: auto; width: 20px; height: 20px; accent-color: var(--accent); }
.access-granted[data-pro="false"] .brand-copy,
.access-granted[data-pro="false"] .workspace-heading,
.access-granted[data-pro="false"] .widget-subtitle,
.access-granted[data-pro="false"] .widget-index,
.access-granted[data-pro="false"] .sample-state:not([data-unavailable="true"]),
.access-granted[data-pro="false"] .visual-label,
.access-granted[data-pro="false"] .visual-legend,
.access-granted[data-pro="false"] [data-bubble-muted-note],
.access-granted[data-pro="false"] .bubble-stage-head,
.access-granted[data-pro="false"] .bubble-footer,
.access-granted[data-pro="false"] .mesh-stage-head,
.access-granted[data-pro="false"] .mesh-center-kicker,
.access-granted[data-pro="false"] .manual-suggestion-head,
.access-granted[data-pro="false"] [data-suggestion-detail],
.access-granted[data-pro="false"] [data-manual-status],
.access-granted[data-pro="false"] .manual-settings > span,
.access-granted[data-pro="false"] .manual-actions > span,
.access-granted[data-pro="false"] .suggestion-auto summary small,
.access-granted[data-pro="false"] .mesh-batch-settings > small,
.access-granted[data-pro="false"] .filter-heading small,
.access-granted[data-pro="false"] .digit-switch small,
.access-granted[data-pro="false"] [data-baseline],
.access-granted[data-pro="false"] .direction-tag,
.access-granted[data-pro="false"] .signal-eyebrow,
.access-granted[data-pro="false"] [data-side-counts],
.access-granted[data-pro="false"] [data-contract-summary],
.access-granted[data-pro="false"] .control-section-head small,
.access-granted[data-pro="false"] .auth-note,
.access-granted[data-pro="false"] .api-auth-card > div > small { display: none !important; }
.access-granted[data-pro="false"] .bubble-widget .auto-execution > div { display: none; }
.access-granted[data-pro="false"] .mesh-widget:has([data-mesh-strategy] option[value="momentum"]:checked) .auto-execution > div { display: none; }
.access-granted[data-pro="false"] .manual-session > div:first-child:has([data-clean-status]:empty) { display: none; }
.access-granted[data-pro="true"] [data-clean-status] { display: none; }
.access-granted[data-bubble-percentages="false"] .bubble-percent { display: none !important; }
.access-granted[data-mesh-percentages="false"] .mesh-node:not(.trade-live):not(.trade-win):not(.trade-loss):not(.trade-pending) .mesh-node-share { display: none !important; }
.access-granted[data-pro="false"] .visual-widget .widget-toolbar { min-height: 52px; }
.access-granted[data-pro="false"] .widget-toolbar > label > span:first-child { font-size: 10px; }
.access-public {
  --void: #101318; --board: #101318; --panel: #181d24; --panel-2: #202731;
  --line: #303842; --line-soft: #252d36; --text: #edf1f5; --muted: #a1aab8;
  --accent: #536de4; --accent-strong: #435ccc; --cyan: #89b5e1; --blue: #94b2ef;
  --green: #55cfa1; --rose: #ff7d8d; --display: "Space Grotesk", sans-serif;
  --shadow: none; --radius: 8px;
}
html[data-theme="light"] .access-public {
  --void: #f1f3f6; --board: #f1f3f6; --panel: #fff; --panel-2: #f4f6f8;
  --line: #d8dee6; --line-soft: #e8ecf0; --text: #18232f; --muted: #657080;
  --accent: #435dcc; --accent-strong: #354daF; --cyan: #385e9c; --blue: #435dcc;
  --green: #087f5b; --rose: #c63b55;
}
.access-pending > .activity-dock, .access-admin > .activity-dock { display: none; }

/* The scene is the homepage, not a backdrop behind competing typography. */
.access-public .access-gate { grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); background: var(--panel); }
.access-public .access-story { min-height: 100dvh; border: 0; background: radial-gradient(ellipse at 55% 48%, #203343 0, #141c27 44%, #10151d 78%); }
.access-public .access-story::before { display: none; }
.access-public .access-binary { inset: 75px 0 50px; pointer-events: auto; }
.access-public .access-binary::after { display: none; }
.access-public .deriv-lockup { top: 30px; left: 32px; }
.access-public .deriv-lockup > span { color: #a7b5c4; font-size: 9px; }
.access-public .deriv-lockup img { width: 78px; }
.scene-caption { position: absolute; bottom: 30px; left: 32px; display: grid; gap: 6px; color: #d8e5ef; }
.scene-caption > span { font: 500 18px/1 var(--display); letter-spacing: -.04em; }
.scene-caption small { color: #8595a9; font: 400 10px/1.5 var(--mono); }
.gate-theme { position: absolute; top: 30px; right: 30px; min-height: 40px; padding: 0 13px; border: 1px solid #3b4656; border-radius: 6px; background: #1c2532; color: #e0e8ef; font-size: 12px !important; cursor: pointer; }
.access-public .access-panel { padding: clamp(28px, 4vw, 70px); background: var(--panel); color: var(--text); }
.access-public .access-panel-head { margin-bottom: 32px; }
.access-public .access-panel-head > span { color: var(--muted); font: 500 10px/1.5 var(--mono); letter-spacing: .1em; }
.access-public .access-panel-head h2 { margin: 20px 0 18px; color: var(--text); font: 500 clamp(34px, 3.3vw, 52px)/1.08 var(--display); letter-spacing: -.055em; }
.access-public .access-panel-head p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.access-public .access-gate .access-form label > span { color: var(--text); font-size: 12px; }
.access-public .access-gate .access-form input { height: 52px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel-2); font-size: 13px; box-shadow: none; }
.access-public .access-gate .portal-primary { height: 52px; border-radius: 6px; background: var(--accent); box-shadow: none; font-size: 13px; }
.access-public .access-gate .access-divider { margin-top: 30px; color: var(--muted); }
.access-public .access-gate .access-divider::before, .access-public .access-gate .access-divider::after { background: var(--line-soft); }
.access-public .access-gate .portal-action { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; color: var(--text); padding: 16px 0; margin: 0; box-shadow: none; }
.access-public .access-gate .portal-action strong { font-size: 13px; }
.access-public .access-gate .portal-action small { font-size: 11px; color: var(--muted); }
.access-public .access-gate .portal-action b { font-size: 13px; color: var(--blue); }
.gate-risk { margin: 28px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* Surface hierarchy: workspace, analysis canvas, controls. One outline, not nested cards. */
.access-granted .app-header { padding: 12px 24px; background: var(--panel) !important; border-bottom: 1px solid var(--line-soft); box-shadow: none; backdrop-filter: none; }
.access-granted .brand-mark { background: transparent !important; border: 0; border-radius: 0; box-shadow: none; padding: 5px; width: 28px; }
.access-granted .brand-mark i { background: var(--accent) !important; }
.access-granted .brand-copy strong { font: 600 18px/1 var(--display); }
.access-granted .brand-copy small { font-size: 9px; letter-spacing: .06em; }
.access-granted .button, .access-granted .icon-button { border-radius: 6px; font-size: 13px; }
.access-granted .status-pill { border: 0; background: transparent; min-width: 70px; font-size: 10px; }
.access-granted .account-summary { border: 0; border-radius: 6px; background: var(--panel-2); box-shadow: none; }
.access-granted .account-switch select { font-size: 11px; color: var(--text); }
.access-granted .balance-pill { font-size: 14px; color: var(--text); border-color: var(--line); }
.access-granted .board { padding: 24px 24px 86px; background: var(--board); }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.workspace-heading .eyebrow { color: var(--muted); font: 500 10px/1 var(--mono); letter-spacing: .1em; }
.workspace-heading h1 { margin: 8px 0 0; font: 500 30px/1 var(--display); letter-spacing: -.05em; }
.access-granted .activity-open { color: var(--text); border: 1px solid var(--line); background: var(--panel); box-shadow: none; }
.activity-open span { margin-left: 15px; }
.access-granted .widget-grid { align-items: start; gap: 20px; }
.access-granted .widget { border: 0; border-radius: 8px; box-shadow: 0 1px 3px #00000012; }
.access-granted .widget-header { min-height: 60px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.access-granted .widget-title { font: 500 18px/1.2 var(--display); }
.access-granted .widget-subtitle { display: none; }
.access-granted .widget-index { width: 28px; height: 28px; border-radius: 4px; color: var(--blue); background: var(--panel-2); font-size: 11px; }
.access-granted .widget-toolbar { min-height: 74px; padding: 12px 18px; border: 0; background: transparent !important; grid-template-columns: minmax(120px,180px) minmax(130px,170px) 1fr; gap: 12px; }
.access-granted .widget-toolbar label > span { font-size: 10px; letter-spacing: .02em; text-transform: none; }
.access-granted .widget-toolbar select, .access-granted .widget-toolbar label > .number-field { height: 40px; border-radius: 5px; background: var(--panel-2); }
.access-granted .widget-toolbar select, .access-granted .number-field input { font-size: 12px; }
.access-granted .sample-state { padding: 0; background: transparent; border: 0; font-size: 10px; }
.access-granted .frequency-widget .widget-body, .access-granted .visual-widget .widget-body { padding: 0 18px 18px; gap: 14px; }
.access-granted .digit-filter { background: transparent !important; border: 0; border-radius: 0; padding: 6px 0 14px; gap: 14px; min-height: 50px; }
.access-granted .filter-heading small { display: none; }
.access-granted .filter-heading span { font-size: 12px; }
.access-granted .reset-digits { border: 0; background: transparent; color: var(--blue); font-size: 10px; }
.access-granted .digit-switches { gap: 5px; grid-template-columns: repeat(10, 36px); }
.access-granted .digit-switch { width: 36px; height: 36px; border: 0; border-radius: 5px; background: var(--panel-2); color: var(--text); }
.access-granted .digit-switch > i { display: none; }
.access-granted .digit-switch.muted { background: transparent; color: var(--muted); opacity: .5; text-decoration: line-through; }
.access-granted .frequency-workspace { gap: 22px; grid-template-columns: minmax(0,1fr) 330px; }
.access-granted .frequency-chart-panel, .access-granted .strategy-panel { border: 0; border-radius: 0; background: transparent !important; }
.access-granted .panel-heading { min-height: 55px; padding: 10px 0; border: 0; }
.access-granted .panel-heading span { font-size: 13px; }
.access-granted .panel-heading small { font-size: 10px; }
.access-granted .direction-tag { display: none !important; }
.access-granted .frequency-chart { height: 470px; padding: 10px 0; }
.access-granted .strategy-panel, .access-granted.multi-widget .strategy-panel { padding: 0 0 0 22px; border-left: 1px solid var(--line-soft); gap: 12px; }
.access-granted .strategy-head small { font-size: 9px; }
.access-granted .strategy-head > b { font-size: 9px; border: 0; background: var(--panel-2); }
.access-granted .signal-strip { background: var(--panel-2) !important; border: 0; border-radius: 5px; padding: 12px; }
.access-granted .signal-eyebrow { font-size: 9px !important; }
.access-granted .signal-strip [data-side-counts] { font-size: 10px; }
.access-granted .session-row > div { border: 0; border-radius: 0; background: transparent !important; padding: 6px 0; min-height: 48px; }
.access-granted .session-row > div span { font-size: 10px; text-transform: none; letter-spacing: 0; }
.access-granted .session-row strong, .access-granted .session-row b { font-size: 17px; }
.access-granted .control-section-head small { display: none; }
.access-granted .control-section-head { min-height: 36px; }
.access-granted .control-section-head span { font-size: 12px; }
.access-granted .execution-grid label > span:first-child, .access-granted .risk-limit-grid label > span:first-child { font-size: 11px; color: var(--muted); }
.access-granted .execution-grid input, .access-granted .risk-limit-grid input, .access-granted .input-with-unit { height: 42px; border-radius: 5px; font-size: 13px; }
.access-granted .input-with-unit input { height: 40px; }
.access-granted .arm-strategy { height: 46px; border-radius: 5px; box-shadow: none; font-size: 14px; }
.access-granted .trade-status { font-size: 11px; }
.access-granted .trade-history-head span { font-size: 12px; }
.access-granted .trade-history-head button { font-size: 11px; border: 0; border-radius: 4px; }
.access-granted .trade-row { font-size: 10px; min-height: 40px; }
.access-granted .add-tool, .access-granted.has-widgets .add-tool { border-radius: 6px; background: var(--panel); font-size: 13px; }
.access-granted footer { padding-bottom: 85px; font-size: 10px; line-height: 1.6; }

/* Visual tools retain their own graphic identity without another frame around every control. */
.access-granted .visual-controlbar { border: 0; border-radius: 5px; background: var(--panel-2); padding: 8px 10px; }
.access-granted .visual-label { font-size: 10px; }
.access-granted .visual-segmented { border: 0; background: transparent; }
.access-granted .visual-segmented button { min-height: 38px; font-size: 11px; border-radius: 4px; }
.access-granted .visual-legend { font-size: 10px; }
.access-granted .bubble-stage, .access-granted .mesh-stage { border: 0; border-radius: 0; background: transparent !important; }
.access-granted .bubble-stage-head, .access-granted .mesh-stage-head { min-height: 46px; padding: 8px 0; border: 0; }
.access-granted .bubble-stage-head small, .access-granted .mesh-stage-head small { font-size: 10px; }
.access-granted .bubble-stage svg { height: clamp(300px,33vw,440px); min-height: 0; }
.access-granted .digit-bubble { transition: none; }
.access-granted .bubble-footer { padding: 10px 0; border-color: var(--line-soft); }
.access-granted .bubble-extremes span { border: 0; padding: 4px 8px; font-size: 10px; }
.access-granted .mesh-layout { display: grid; grid-template-columns: minmax(0,1fr) 210px; min-height: 0; }
.access-granted .mesh-graph { min-height: 0; }
.access-granted .mesh-graph svg { min-height: 0; height: 420px; }
.access-granted .mesh-node-digit { font-size: 22px; }
.access-granted .mesh-node-share { font-size: 10px; }
.access-granted .mesh-center-kicker, .access-granted .mesh-center-caption { font-size: 9px; }
.access-granted .mesh-inspector { position: static; width: auto; margin: 0; padding: 16px; max-height: 420px; border: 0; border-radius: 0; background: var(--panel-2); box-shadow: none; backdrop-filter: none; align-self: start; }
.access-granted .mesh-empty { min-height: 0; justify-items: start; text-align: left; }
.access-granted .mesh-empty span { font-size: 11px; }
.access-granted .manual-trade-dock { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.access-granted .manual-suggestion, .access-granted .manual-settings, .access-granted .manual-actions { background: transparent; padding: 16px 12px; border-color: var(--line-soft); }
.access-granted .manual-suggestion { padding-left: 0; }
.access-granted .manual-suggestion::before { display: none; }
.access-granted .manual-suggestion-head span, .access-granted .manual-settings > span, .access-granted .manual-actions > span { font-size: 10px; }
.access-granted .manual-suggestion > strong { font: 500 21px/1.2 var(--display); }
.access-granted .manual-suggestion > small { font-size: 11px; line-height: 1.6; }
.access-granted .manual-settings label small { font-size: 11px; }
.access-granted .manual-settings input { font-size: 14px; }
.access-granted .manual-money-input, .access-granted .manual-duration-input { border-radius: 5px; background: var(--panel-2); }
.access-granted .manual-trade-button { min-height: 57px; border-radius: 5px; }
.access-granted .manual-trade-button strong { font-size: 14px; }
.access-granted .manual-session { background: var(--panel-2); padding: 12px; border: 0; }
.access-granted .manual-session span { font-size: 10px; }
.access-granted .manual-session strong { font-size: 11px; }
.access-granted .manual-session b { font-size: 15px; }
.access-granted .manual-history-actions button { min-height: 40px; font-size: 12px; border-radius: 5px; }
.access-granted .suggestion-auto { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
.access-granted .suggestion-auto summary { padding: 16px 0; }
.access-granted .suggestion-auto summary b { font-size: 13px; }
.access-granted .suggestion-auto summary small { font-size: 10px; }
.access-granted .auto-settings-grid label > span:first-child { font-size: 11px; }
.access-granted .auto-input { border-radius: 5px; }
.access-granted .auto-input input { height: 42px; font-size: 14px; }
.access-granted .auto-execution button { border-radius: 5px; font-size: 13px; box-shadow: none; }

/* First-class session activity. Fixed access; no permanent table competing with a chart. */
.activity-dock { position: fixed; z-index: 35; right: 24px; bottom: 18px; display: flex; align-items: center; gap: 14px; min-width: 310px; min-height: 64px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--panel); box-shadow: 0 8px 30px #0002; text-align: left; }
.activity-dock > span:nth-child(2) { display: grid; gap: 5px; flex: 1; }
.activity-dock strong { font-size: 13px; font-weight: 600; }
.activity-dock small { color: var(--muted); font: 400 10px/1.3 var(--mono); }
.activity-dock > b { min-width: 28px; height: 28px; display: grid; place-items: center; background: var(--panel-2); border-radius: 4px; font: 500 12px/1 var(--mono); }
.activity-indicator { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; }
.activity-dock.has-live .activity-indicator, .summary-live-dot, .ledger-automation i { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb,var(--green) 12%,transparent); }
.history-open { overflow: hidden; }
.history-open .activity-dock { visibility: hidden; }
.access-granted #historyModal { padding: 28px; align-items: center; }
.access-granted .history-panel { width: min(1120px,100%); height: min(820px, calc(100dvh - 56px)); max-height: none; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); }
.access-granted .history-panel .modal-head { flex: 0 0 auto; padding: 22px 24px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 0; background: var(--panel); }
.access-granted .history-panel h2 { margin: 7px 0; font: 500 28px/1.1 var(--display); letter-spacing: -.04em; }
.access-granted .history-panel .eyebrow { font-size: 9px; color: var(--muted); }
.access-granted #historyMeta { font-size: 11px; color: var(--muted); margin: 0; }
.access-granted .history-close-button { display: flex; align-items: center; gap: 16px; flex-shrink: 0; min-height: 42px; font-size: 12px; border: 1px solid var(--line); border-radius: 5px; }
.history-close-button span { font-size: 20px; }
.ledger-toolbar { display: flex; align-items: center; gap: 12px; padding: 0 24px 18px; flex: 0 0 auto; }
.ledger-toolbar select { min-height: 38px; max-width: 260px; padding: 0 25px 0 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); color: var(--text); font-size: 12px; }
.ledger-tabs { display: flex; gap: 2px; }
.ledger-tabs button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 12px; }
.ledger-tabs button[aria-pressed="true"] { color: var(--text); background: var(--panel-2); }
.ledger-toolbar .clear-history-button { margin-left: auto; min-height: 38px; border: 0; color: var(--muted); background: transparent; font-size: 11px; }
.ledger-toolbar .clear-history-button:disabled { opacity: .4; cursor: not-allowed; }
.ledger-summary { display: grid; grid-template-columns: 1fr 1fr 1.3fr; padding: 20px 24px; border-block: 1px solid var(--line-soft); background: var(--panel-2); flex: 0 0 auto; }
.ledger-summary > div { display: grid; gap: 10px; }
.ledger-summary > div > span { color: var(--muted); font-size: 11px; }
.ledger-summary strong { display: flex; align-items: center; gap: 15px; font: 500 26px/1 var(--mono); }
.ledger-summary strong small { font: 400 10px/1 var(--mono); color: var(--muted); }
.ledger-summary .summary-profit { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 22px; }
.summary-profit b { font-weight: 500; }
.summary-live-dot { width: 7px; height: 7px; border-radius: 50%; }
.ledger-automation { padding: 10px 24px; border-bottom: 1px solid var(--line-soft); max-height: 125px; overflow: auto; flex-shrink: 0; }
.ledger-automation > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 11px; }
.ledger-automation i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin: 0 10px 1px 2px; }
.ledger-automation button { border: 1px solid var(--line); border-radius: 4px; background: var(--panel-2); color: var(--rose); min-height: 36px; padding: 0 12px; font-size: 12px; }
.ledger-columns, .ledger-trade > summary { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1.1fr .7fr; gap: 20px; align-items: center; }
.ledger-columns { padding: 14px 24px; color: var(--muted); font: 400 10px/1 var(--mono); border-bottom: 1px solid var(--line-soft); flex: 0 0 auto; }
.ledger-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.ledger-trade { border-bottom: 1px solid var(--line-soft); }
.ledger-trade.is-live { box-shadow: inset 3px 0 var(--green); background: color-mix(in srgb,var(--green) 4%,var(--panel)); }
.ledger-trade > summary { position: relative; padding: 18px 24px; cursor: pointer; list-style: none; }
.ledger-trade > summary::-webkit-details-marker { display: none; }
.ledger-trade > summary:hover { background: color-mix(in srgb,var(--panel-2) 45%,transparent); }
.ledger-trade summary small { display: block; color: var(--muted); font: 400 10px/1.5 var(--mono); }
.ledger-market strong { display: block; font-size: 14px; margin-bottom: 6px; }
.ledger-route { display: flex; align-items: center; gap: 18px; }
.ledger-route > span { display: grid; gap: 3px; }
.ledger-route b { font: 500 30px/1 var(--mono); }
.ledger-route i { color: var(--muted); font-style: normal; }
.ledger-stake > small, .ledger-profit > small { display: none !important; }
.ledger-stake > strong, .ledger-profit > strong { font: 500 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.ledger-profit > small { color: var(--muted); }
.ledger-result { display: grid; justify-items: start; gap: 5px; }
.ledger-result .result-chip { padding: 5px 8px; min-width: 0; border: 0; border-radius: 3px; font: 500 10px/1 var(--mono); }
.ledger-result .win { color: var(--green); background: color-mix(in srgb,var(--green) 12%,transparent); }
.ledger-result .loss { color: var(--rose); background: color-mix(in srgb,var(--rose) 12%,transparent); }
.ledger-result .live { color: var(--green); background: color-mix(in srgb,var(--green) 12%,transparent); }
.ledger-result i { color: var(--muted); font-size: 9px; font-style: normal; }
.ledger-detail { padding: 4px 24px 22px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ledger-detail > div { display: grid; gap: 7px; }
.ledger-detail span { color: var(--muted); font-size: 10px; }
.ledger-detail strong { font: 400 11px/1.6 var(--mono); overflow-wrap: anywhere; }
.ledger-empty { min-height: 250px; display: grid; place-content: center; justify-items: center; padding: 30px; text-align: center; }
.ledger-empty > span { color: var(--muted); font-size: 30px; }
.ledger-empty h3 { font: 500 23px/1.2 var(--display); margin: 16px 0 8px; }
.ledger-empty p { max-width: 330px; color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.access-granted .positive { color: var(--green); }
.access-granted .negative { color: var(--rose); }
.access-granted .modal-panel:not(.history-panel) { border-radius: 8px; }
.access-granted .toast { border-radius: 6px; font-size: 12px; }

@container (max-width: 1000px) {
  .access-granted .frequency-workspace, .access-granted.multi-widget .frequency-workspace { grid-template-columns: 1fr; }
  .access-granted .strategy-panel, .access-granted.multi-widget .strategy-panel { border: 0; border-top: 1px solid var(--line-soft); padding: 18px 0 0; }
  .access-granted .mesh-layout { grid-template-columns: minmax(0,1fr); }
  .access-granted .mesh-inspector { max-height: 240px; }
}
@media (max-width: 760px) {
  .access-public .access-gate { grid-template-columns: 1fr; }
  .access-public .access-story { min-height: 0; height: clamp(340px, 52dvh, 520px); }
  .access-public .access-binary { inset: 55px 0 26px; }
  .access-public .deriv-lockup { top: 20px; left: 22px; }
  .access-public .deriv-lockup img { width: 65px; }
  .gate-theme { top: 18px; right: 20px; font-size: 11px !important; }
  .scene-caption { left: 22px; bottom: 16px; }
  .scene-caption > span { display: none; }
  .scene-caption small { font-size: 9px; }
  .access-public .access-panel { padding: 28px 24px 36px; }
  .access-public .access-panel-head { margin-bottom: 24px; }
  .access-public .access-panel-head h2 { font-size: 34px; margin: 12px 0; }
  .access-public .access-form input { font-size: 16px !important; }
  .access-granted .app-header { padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .access-granted .brand { gap: 5px; }
  .access-granted .brand .brand-copy { display: grid; }
  .access-granted .brand-copy strong { font-size: 15px; }
  .access-granted .brand-mark { width: 22px; height: 28px; }
  .access-granted .header-actions { gap: 5px; flex-wrap: wrap; }
  .access-granted .header-actions .status-pill { display: none; }
  .access-granted .button-primary { font-size: 11px; padding: 0 10px; }
  .access-granted .icon-button { width: 36px; height: 40px; }
  .access-granted .account-summary.has-account { border-radius: 4px; }
  .access-granted .balance-pill { font-size: 14px; }
  .access-granted .board { padding: 20px 10px 88px; }
  .workspace-heading { margin: 0 4px 20px; }
  .workspace-heading h1 { font-size: 26px; }
  .workspace-heading .activity-open { display: none; }
  .access-granted .widget { border-radius: 6px; }
  .access-granted .widget-header { min-height: 52px; padding: 12px; }
  .access-granted .widget-title { font-size: 17px; }
  .access-granted .widget-toolbar { padding: 10px 12px; grid-template-columns: 1fr 1fr; min-height: 0; gap: 8px; }
  .access-granted .sample-state { grid-column: 1 / -1; min-height: 20px; font-size: 9px; }
  .access-granted .widget-toolbar select, .access-granted .number-field input { font-size: 16px; }
  .access-granted .frequency-widget .widget-body, .access-granted .visual-widget .widget-body { padding: 0 12px 12px; gap: 12px; }
  .access-granted .digit-filter { display: flex; flex-wrap: wrap; padding: 2px 0; gap: 6px; }
  .access-granted .filter-heading { width: 100%; }
  .access-granted .digit-switches { display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 3px; width: 100%; }
  .access-granted .digit-switch { width: 100%; height: 40px; border-radius: 4px; }
  .access-granted .digit-switch strong { font-size: 15px; }
  .access-granted .frequency-workspace, .access-granted.multi-widget .frequency-workspace { grid-template-columns: 1fr; gap: 12px; }
  .access-granted .frequency-chart, .access-granted.multi-widget .frequency-chart { height: 310px; padding: 6px 0; }
  .access-granted .panel-heading { min-height: 52px; }
  .access-granted .current-tick-readout { font-size: 9px !important; }
  .access-granted .panel-heading small { font-size: 9px; }
  .access-granted .strategy-panel, .access-granted.multi-widget .strategy-panel { padding: 16px 0 0; border: 0; border-top: 1px solid var(--line-soft); }
  .access-granted .execution-grid input, .access-granted .risk-limit-grid input, .access-granted .input-with-unit { font-size: 16px; height: 44px; }
  .access-granted .input-with-unit input { height: 42px; }
  .access-granted .visual-controlbar { gap: 8px; padding: 8px; }
  .access-granted .visual-controlbar > div:first-child { width: 100%; }
  .access-granted .visual-label { display: none; }
  .access-granted .visual-segmented { width: 100%; display: flex; }
  .access-granted .visual-segmented button { flex: 1; padding: 0 8px; font-size: 11px; }
  .access-granted .bubble-stage svg { height: auto; min-height: 0; aspect-ratio: 1 / 1.06; }
  .access-granted .bubble-extremes { display: none; }
  .access-granted .recent-digit-ribbon i { width: 25px; height: 28px; font-size: 12px; border: 0; border-radius: 3px; }
  .access-granted .mesh-layout { display: block; }
  .access-granted .mesh-graph svg { height: auto; min-height: 0; aspect-ratio: 1; }
  .access-granted .mesh-inspector { padding: 12px; margin-top: 8px; max-height: 235px; border-radius: 4px; }
  .access-granted .mesh-empty { gap: 4px; }
  .access-granted .mesh-empty span { max-width: none; }
  .access-granted .manual-suggestion { padding: 14px 0; }
  .access-granted .manual-settings, .access-granted .manual-actions { padding: 12px 0; }
  .access-granted .manual-settings input, .access-granted .auto-input input { font-size: 16px; }
  .access-granted .manual-session { gap: 12px; }
  .access-granted .manual-session > div:first-child { flex: 1 1 100%; }
  .access-granted .manual-history-actions { margin-left: auto; }
  .access-granted .auto-settings-grid { grid-template-columns: 1fr 1fr; }
  .activity-dock { bottom: max(10px,env(safe-area-inset-bottom)); left: 10px; right: 10px; min-width: 0; min-height: 60px; border-radius: 7px; padding: 10px 15px; }
  .access-granted #historyModal { padding: 0; align-items: end; }
  .access-granted .history-panel { width: 100%; height: calc(100dvh - max(18px,env(safe-area-inset-top))); border: 0; border-radius: 16px 16px 0 0; animation: ledger-rise .25s ease-out; padding-bottom: env(safe-area-inset-bottom); }
  .access-granted .history-panel::before { content: ''; width: 34px; height: 4px; background: var(--line); border-radius: 3px; margin: 9px auto 0; flex: 0 0 auto; }
  .access-granted .history-panel .modal-head { padding: 14px 18px; display: flex; gap: 12px; }
  .access-granted .history-panel h2 { font-size: 25px; }
  .access-granted .history-close-button { min-width: 74px; padding: 0 10px; gap: 10px; }
  .ledger-toolbar { padding: 0 18px 12px; gap: 10px; flex-wrap: wrap; }
  .ledger-toolbar > label { flex: 1; min-width: 0; }
  .ledger-toolbar select { max-width: none; width: 100%; font-size: 16px; }
  .ledger-tabs { order: 3; width: 100%; }
  .ledger-tabs button { flex: 1; min-height: 36px; }
  .ledger-toolbar .clear-history-button { font-size: 11px; }
  .ledger-summary { padding: 16px 18px; gap: 10px; grid-template-columns: .8fr .9fr 1.3fr; }
  .ledger-summary strong { font-size: 22px; gap: 8px; flex-wrap: wrap; }
  .ledger-summary > div > span { font-size: 10px; }
  .ledger-summary strong small { font-size: 9px; width: 100%; }
  .ledger-summary .summary-profit { font-size: 15px; padding-top: 3px; }
  .ledger-columns { display: none; }
  .ledger-automation { padding: 8px 18px; max-height: 105px; }
  .ledger-list { scrollbar-gutter: auto; }
  .ledger-trade > summary { padding: 18px; grid-template-columns: 1fr 1fr 1fr; gap: 17px 10px; }
  .ledger-market { grid-column: 1 / 3; }
  .ledger-market strong { font-size: 15px; }
  .ledger-route { grid-column: 1 / 2; grid-row: 2; gap: 12px; }
  .ledger-route b { font-size: 28px; }
  .ledger-stake { grid-column: 2; grid-row: 2; align-self: center; }
  .ledger-profit { grid-column: 3; grid-row: 2; align-self: center; }
  .ledger-stake > small, .ledger-profit > small { display: block !important; margin-bottom: 8px; }
  .ledger-stake > strong, .ledger-profit > strong { font-size: 12px; }
  .ledger-result { grid-column: 3; grid-row: 1; justify-items: end; }
  .ledger-result i { display: block; font-size: 9px; }
  .ledger-detail { grid-template-columns: 1fr 1fr; padding: 4px 18px 20px; gap: 16px 10px; }
  .access-granted .toast-region { top: auto; bottom: 85px; left: 12px; right: 12px; }
  .history-open .toast-region { z-index: 110; bottom: 18px; }
}
@media (max-width: 370px) {
  .access-granted .brand-copy strong { font-size: 13px; }
  .access-granted .brand-mark { display: none; }
  .access-granted .app-header { padding-inline: 8px; }
  .access-granted .header-actions { gap: 3px; }
  .ledger-trade > summary { gap: 14px 7px; padding: 16px 12px; }
  .ledger-route { gap: 7px; }
  .ledger-stake > strong, .ledger-profit > strong { font-size: 11px; }
}
@media (max-width: 1000px) and (max-height: 500px) {
  .ledger-summary, .history-panel .eyebrow, .history-panel #historyMeta { display: none; }
  .access-granted .history-panel .modal-head { padding: 12px 18px; }
  .ledger-toolbar { flex-wrap: nowrap; }
  .ledger-tabs { width: auto; order: 0; }
}
@keyframes ledger-rise { from { transform: translateY(35px); opacity: .5; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .history-panel { animation: none !important; } }

/* Bubble trading cockpit: inspect, confirm, execute without switching views. */
/* Mesh cockpit uses the same compact execution rhythm; the live node ring is its focus. */
.access-granted .mesh-widget [hidden] { display: none !important; }
.access-granted .mesh-widget .widget-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px 22px; align-items: start; }
.access-granted .mesh-widget .mesh-stage { grid-column: 1; grid-row: 1; min-width: 0; }
.access-granted .mesh-widget .mesh-layout { display: block; min-height: 0; }
.access-granted .mesh-widget .mesh-graph svg { height: auto; aspect-ratio: 1; min-height: 0; max-height: 420px; }
.access-granted .mesh-widget .mesh-node-digit { font-size: 29px; }
.access-granted .mesh-widget .mesh-node-share { font-size: 13px; }
.access-granted .mesh-widget .mesh-node.candidate .mesh-node-core { fill: color-mix(in srgb, var(--accent) 22%, var(--panel)); stroke: var(--blue); stroke-width: 3; }
.access-granted .mesh-widget .mesh-node.trade-live .mesh-node-core { fill: color-mix(in srgb, #cf9d3f 22%, var(--panel)); stroke: #cf9d3f; stroke-width: 3; }
.access-granted .mesh-widget .mesh-node.trade-pending .mesh-node-core { stroke: #cf9d3f; stroke-dasharray: 4 3; }
.access-granted .mesh-widget .mesh-node.trade-win .mesh-node-core { fill: color-mix(in srgb, var(--green) 22%, var(--panel)); stroke: var(--green); stroke-width: 3; }
.access-granted .mesh-widget .mesh-node.trade-loss .mesh-node-core { fill: color-mix(in srgb, var(--rose) 22%, var(--panel)); stroke: var(--rose); stroke-width: 3; }
.access-granted .mesh-widget .mesh-node:focus-visible .mesh-node-core { stroke: var(--text); stroke-width: 5; }
.mesh-key { display: flex; justify-content: center; gap: 15px; font-size: 10px; padding: 4px; }
.mesh-key span:nth-child(1) { color: var(--blue); }
.mesh-key span:nth-child(2) { color: #ae822c; }
.mesh-key span:nth-child(3) { color: var(--green); }
.mesh-key span:nth-child(4) { color: var(--rose); }
.access-granted .mesh-widget .manual-trade-dock { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr; gap: 8px; border: 0; overflow: visible; }
.access-granted .mesh-widget .manual-suggestion, .access-granted .mesh-widget .manual-settings, .access-granted .mesh-widget .manual-actions { grid-column: 1; padding: 0; border: 0; }
.access-granted .mesh-widget .manual-suggestion { padding: 8px 10px; background: var(--panel-2); border-radius: 5px; }
.access-granted .mesh-widget .manual-suggestion-head, .access-granted .mesh-widget .manual-settings > span, .access-granted .mesh-widget .manual-actions > span { display: none; }
.access-granted .mesh-widget .manual-suggestion > strong { margin: 0; font-size: 19px; }
.access-granted .mesh-widget .manual-suggestion > small { font-size: 10px; line-height: 1.4; }
.access-granted .mesh-widget .suggestion-volume { margin: 6px 0 4px; height: 4px; }
.access-granted .mesh-widget .manual-settings { gap: 8px; }
.access-granted .mesh-widget .manual-money-input, .access-granted .mesh-widget .manual-duration-input { height: 36px; }
.access-granted .mesh-widget .manual-trade-button { min-height: 44px; padding: 6px; }
.access-granted .mesh-widget .manual-trade-button small { display: none; }
.access-granted .mesh-widget .manual-session { grid-column: 1; padding: 7px 9px; gap: 6px; grid-template-columns: 1fr auto; }
.access-granted .mesh-widget .manual-session > div:first-child { grid-column: 1 / -1; }
.access-granted .mesh-widget .manual-session > div:first-child > span { display: none; }
.access-granted .mesh-widget .manual-session strong { white-space: normal; line-height: 1.4; }
.access-granted .mesh-widget .manual-history-actions button { min-height: 32px; }
.access-granted .mesh-widget .suggestion-auto { grid-column: 1; }
.access-granted .mesh-widget .suggestion-auto summary { min-height: 38px; padding: 8px 0; }
.access-granted .mesh-widget .suggestion-auto summary small { display: none; }
.access-granted .mesh-widget .suggestion-auto-body { padding: 8px 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.access-granted .mesh-widget .auto-settings-grid { grid-template-columns: 1fr 1fr; }
.access-granted .mesh-widget .auto-execution { grid-template-columns: 1fr; }
.mesh-strategy-picker { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.mesh-strategy-picker select { width: 100%; min-width: 0; height: 38px; }
.mesh-batch-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mesh-batch-settings label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.mesh-batch-settings select { min-width: 0; width: 100%; height: 38px; font-size: 11px; }
.mesh-batch-settings > small { grid-column: 1 / -1; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mesh-start { width: 100%; min-height: 44px; background: var(--accent); border: 0; border-radius: 5px; color: #fff; font-weight: 600; cursor: pointer; }
.mesh-start.is-running { background: var(--rose); color: var(--panel); }
.mesh-start:disabled { opacity: .5; cursor: not-allowed; }
.mesh-explore { grid-column: 1; grid-row: 2; padding: 8px 0; font-size: 11px; }
.mesh-explore summary { cursor: pointer; color: var(--muted); min-height: 28px; }
.mesh-explore [data-mesh-inspector] { max-height: 260px; overflow: auto; }
.mesh-explore .visual-controlbar { margin-bottom: 8px; }
@container (max-width: 1000px) {
  .access-granted .mesh-widget .widget-body { grid-template-columns: 1fr; gap: 6px; }
  .access-granted .mesh-widget .manual-trade-dock { grid-column: 1; grid-row: 2; }
  .access-granted .mesh-widget .mesh-explore { grid-row: 3; }
}
@media (max-width: 760px) {
  .access-granted .mesh-widget .widget-header { min-height: 40px; padding: 6px 10px; }
  .access-granted .mesh-widget .widget-toolbar { min-height: 60px; padding: 6px 10px; gap: 4px 8px; }
  .access-granted .mesh-widget .widget-toolbar select, .access-granted .mesh-widget .widget-toolbar .number-field { height: 36px; }
  .access-granted .mesh-widget .sample-state { min-height: 16px; font-size: 9px; }
  .access-granted .mesh-widget .widget-body { padding: 0 10px 10px; grid-template-columns: 1fr; gap: 4px; }
  .access-granted .mesh-widget .manual-trade-dock { grid-column: 1; grid-row: 2; gap: 5px; }
  .access-granted .mesh-widget .mesh-explore { grid-row: 3; }
  .access-granted .mesh-widget .mesh-stage-head { display: none; }
  .access-granted .mesh-widget .mesh-graph svg { max-height: 240px; }
  .access-granted .mesh-widget .manual-suggestion > strong { font-size: 17px; }
  .access-granted .mesh-widget .manual-settings label { gap: 2px; }
  .access-granted .mesh-widget .manual-session b { font-size: 13px; }
  .mesh-key { font-size: 9px; padding-bottom: 5px; }
}
.access-granted .board { padding-bottom: 22px; }
.access-granted footer { padding-bottom: 16px; }
.access-granted .inline-notices:empty { display: none; }
.access-granted .inline-notices .toast { position: static; max-width: none; width: 100%; margin: 0 0 12px; padding: 10px 14px; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; box-shadow: none; animation: none; }
.access-granted .bubble-widget .widget-body { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 12px 22px; }
.access-granted.has-widgets .workspace-heading .eyebrow { display: none; }
.access-granted.has-widgets .workspace-heading h1 { font-size: 24px; margin: 0; }
.access-granted.has-widgets .workspace-heading { margin-bottom: 14px; }
.access-granted .bubble-widget .widget-header { min-height: 52px; padding-block: 8px; }
.access-granted .bubble-widget .widget-toolbar { min-height: 66px; padding-block: 8px; }
.access-granted .bubble-widget .visual-controlbar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 10px; min-height: 42px; }
.access-granted .bubble-widget .visual-controlbar > div:first-child { display: flex; align-items: center; gap: 12px; }
.access-granted .bubble-widget .visual-label { display: none; }
.access-granted .bubble-widget .visual-segmented button { min-height: 34px; }
.bubble-mute-controls { display: flex; align-items: center; gap: 6px; }
.bubble-mute-controls > span { color: var(--muted); font-size: 11px; }
.bubble-mute-controls button { min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); background: var(--panel); font: 600 15px/1 var(--mono); }
.bubble-mute-controls button[aria-pressed="true"] { color: var(--muted); background: var(--void); text-decoration: line-through; border-style: dashed; }
.bubble-mute-controls button:disabled { cursor: not-allowed; opacity: .5; }
.bubble-mute-controls small { color: var(--muted); font-size: 10px; }
.access-granted .bubble-widget .visual-legend { margin-left: auto; gap: 10px; }
.access-granted .bubble-widget .bubble-stage { min-width: 0; align-self: start; }
.access-granted .bubble-widget .bubble-stage-head { min-height: 30px; padding: 3px 0; }
.access-granted .bubble-widget .bubble-stage-head > div:first-child > span,
.access-granted .bubble-widget .bubble-stage-head > div:last-child { display: none; }
.access-granted .bubble-widget .bubble-stage svg { height: clamp(250px,calc(100dvh - 350px),400px); aspect-ratio: 2 / 1; max-height: 400px; min-height: 0; }
.access-granted .bubble-widget .bubble-percent { fill: var(--text); }
.access-granted .bubble-widget .bubble-number { fill: #fff; }
.access-granted .bubble-widget .bubble-footer { padding: 6px 0; border: 0; }
.access-granted .bubble-widget .bubble-footer > div:first-child > span { display: none; }
.access-granted .bubble-widget .recent-digit-ribbon { margin: 0; }
.access-granted .bubble-widget .manual-trade-dock { display: grid; grid-template-columns: 1fr; align-content: start; gap: 8px; border: 0; overflow: visible; }
.access-granted .bubble-widget .manual-suggestion,
.access-granted .bubble-widget .manual-settings,
.access-granted .bubble-widget .manual-actions { grid-column: 1; padding: 0; border: 0; }
.access-granted .bubble-widget .manual-suggestion { padding: 10px 12px; background: var(--panel-2); border-radius: 5px; }
.access-granted .bubble-widget .manual-suggestion-head { display: none; }
.access-granted .bubble-widget .manual-suggestion > strong { margin: 0; font-size: 20px; }
.access-granted .bubble-widget .suggestion-volume { margin: 7px 0 4px; height: 5px; }
.access-granted .bubble-widget .manual-suggestion > small { font-size: 10px; }
.access-granted .bubble-widget .manual-settings { gap: 8px; }
.access-granted .bubble-widget .manual-settings > span,
.access-granted .bubble-widget .manual-actions > span { display: none; }
.access-granted .bubble-widget .manual-money-input,
.access-granted .bubble-widget .manual-duration-input { height: 38px; }
.access-granted .bubble-widget .manual-trade-button { min-height: 48px; padding: 8px; }
.access-granted .bubble-widget .manual-trade-button small { display: none; }
.access-granted .bubble-widget .manual-session { grid-column: 1; padding: 8px 10px; gap: 8px; grid-template-columns: 1fr auto; }
.access-granted .bubble-widget .manual-session > div:first-child { grid-column: 1 / -1; }
.access-granted .bubble-widget .manual-session > div:first-child > span { display: none; }
.access-granted .bubble-widget .manual-session strong { white-space: normal; line-height: 1.4; }
.access-granted .bubble-widget .manual-history-actions button { min-height: 34px; }
.access-granted .bubble-widget .suggestion-auto { grid-column: 1; }
.access-granted .bubble-widget .suggestion-auto summary { padding: 10px 0; min-height: 40px; }
.access-granted .bubble-widget .suggestion-auto summary small { display: none; }
.access-granted .bubble-widget .suggestion-auto-body { padding: 8px 0; display: grid; grid-template-columns: 1fr; }
.access-granted .bubble-widget .auto-settings-grid { grid-template-columns: 1fr 1fr; }
.access-granted .bubble-widget .auto-execution { grid-template-columns: 1fr; }
@container (max-width: 1000px) {
  .access-granted .bubble-widget .widget-body { grid-template-columns: 1fr; gap: 6px; }
  .access-granted .bubble-widget .manual-trade-dock { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .access-granted .bubble-widget .manual-suggestion { grid-column: 1 / -1; }
  .access-granted .bubble-widget .manual-settings { grid-column: 1; }
  .access-granted .bubble-widget .manual-actions { grid-column: 2; align-self: end; }
  .access-granted .bubble-widget .manual-session, .access-granted .bubble-widget .suggestion-auto { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .access-granted.has-widgets .workspace-heading { display: none; }
  .access-granted .app-header:has(.account-summary.has-account) { display: grid; grid-template-columns: minmax(100px,1fr) auto auto auto; gap: 6px; }
  .access-granted .app-header:has(.account-summary.has-account) .header-actions { display: contents; }
  .access-granted .app-header:has(.account-summary.has-account) .brand { grid-row: 1; grid-column: 1; }
  .access-granted .app-header:has(.account-summary.has-account) #connectBtn { grid-row: 1; grid-column: 2; }
  .access-granted .app-header:has(.account-summary.has-account) #themeToggle { grid-row: 1; grid-column: 3; }
  .access-granted .app-header:has(.account-summary.has-account) #settingsBtn { grid-row: 1; grid-column: 4; }
  .access-granted .app-header .account-summary.has-account { grid-row: 2; grid-column: 1 / -1; width: 100%; }
  .access-granted .app-header .account-summary.has-account .account-switch { flex: 1; }
  .access-granted .board { padding: 6px 8px 14px; }
  .access-granted .bubble-widget .widget-header { min-height: 40px; padding: 6px 10px; }
  .access-granted .bubble-widget .widget-toolbar { padding: 6px 10px; gap: 4px 8px; }
  .access-granted .bubble-widget .widget-toolbar select,
  .access-granted .bubble-widget .widget-toolbar .number-field { height: 36px; }
  .access-granted .bubble-widget .sample-state { min-height: 16px; font-size: 9px; }
  .access-granted .bubble-widget .widget-body { padding: 0 10px 10px; grid-template-columns: 1fr; gap: 5px; }
  .access-granted .bubble-widget .visual-controlbar { padding: 4px 6px; gap: 3px 6px; }
  .access-granted .bubble-widget .visual-controlbar > div:first-child { width: 100%; }
  .access-granted .bubble-widget .visual-segmented button { min-height: 32px; font-size: 11px; padding: 0 6px; }
  .access-granted .bubble-widget .barrier-control { gap: 4px; }
  .access-granted .bubble-widget .barrier-control select { height: 30px; min-width: 43px; padding: 0 4px; }
  .bubble-mute-controls { gap: 5px; }
  .bubble-mute-controls button { min-width: 30px; height: 30px; }
  .bubble-mute-controls small { font-size: 9px; }
  .access-granted .bubble-widget .visual-legend { display: none; }
  .access-granted .bubble-widget .bubble-stage-head { display: none; }
  .access-granted .bubble-widget .bubble-stage svg { aspect-ratio: 2 / 1; height: auto; max-height: none; }
  .access-granted .bubble-widget .bubble-footer { display: none; }
  .access-granted .bubble-widget .manual-trade-dock { grid-template-columns: 1fr; gap: 6px; }
  .access-granted .bubble-widget .manual-suggestion { padding: 7px 10px; }
  .access-granted .bubble-widget .manual-suggestion > strong { font-size: 17px; }
  .access-granted .bubble-widget .manual-suggestion > small { font-size: 10px; }
  .access-granted .bubble-widget .manual-settings { grid-column: 1; gap: 8px; }
  .access-granted .bubble-widget .manual-settings label { gap: 3px; }
  .access-granted .bubble-widget .manual-settings label > small { font-size: 10px; }
  .access-granted .bubble-widget .manual-actions { grid-column: 1; }
  .access-granted .bubble-widget .manual-trade-button { min-height: 44px; }
  .access-granted .bubble-widget .manual-session { padding: 6px 8px; }
  .access-granted .bubble-widget .manual-session b { font-size: 13px; }
  .access-granted .bubble-widget .manual-history-actions button { min-height: 32px; font-size: 11px; }
  .access-granted #historyModal { align-items: center; padding: 8px; }
  .access-granted .history-panel { height: calc(100dvh - 16px); border-radius: 8px; animation: none; }
  .access-granted .history-panel::before { display: none; }
  /* Keep the suggestion identifiable in clean mode, directly above the trade controls. */
  .access-granted .visual-widget .manual-suggestion { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 10px; }
  .access-granted .visual-widget .manual-suggestion-head { display: flex !important; }
  .access-granted .visual-widget .manual-suggestion-head span { font: 500 10px/1.3 var(--display); color: var(--muted); }
  .access-granted .visual-widget .manual-suggestion-head i { display: none; }
  .access-granted .visual-widget .manual-suggestion > strong { text-align: right; font-size: 15px; overflow-wrap: anywhere; }
  .access-granted .visual-widget .suggestion-volume { grid-column: 1 / -1; margin: 0; height: 4px; }
  .access-granted .visual-widget .manual-suggestion > small { grid-column: 1 / -1; }
}
