/* The selected Chronograph direction: one graphite surface, a large market plot,
   tabular timing and amber focus. Product screens remain the SDK's. */
html, body { margin: 0; height: 100%; background: var(--gm-page, #151614); color: var(--gm-text, #f4f0e6); font-family: var(--gm-font, system-ui, sans-serif); -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
* { box-sizing: border-box; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; touch-action: manipulation; -webkit-user-select: none; user-select: none; }
button:focus-visible { outline: 2px solid var(--gm-accent); outline-offset: 4px; }
#app, .gm-screen { height: 100%; }
.gm-screen[hidden] { display: none; }
.gm-board { position: relative; height: 100%; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: calc(var(--pg-inset-top, env(safe-area-inset-top, 0px)) + 22px) calc(var(--pg-inset-right, 0px) + 14px) calc(var(--pg-inset-bottom, env(safe-area-inset-bottom, 0px)) + 24px) calc(var(--pg-inset-left, 0px) + 14px); }
.gm-app { width: min(100%, 480px); margin: 0 auto; }
.gm-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; min-height: 44px; }
.gm-instrument { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 0; background: none; text-align: left; border-radius: 4px; }
.gm-instrument:disabled { cursor: default; }
.gm-instrument-text { display: flex; flex-direction: column; min-width: 0; }
.gm-name { font-size: 17px; font-weight: 750; letter-spacing: .1px; line-height: 1.3; white-space: nowrap; }
.gm-brand { color: var(--gm-dim); font-size: 9px; letter-spacing: 1.6px; margin-top: 4px; font-weight: 600; white-space: nowrap; }
.gm-chevron { width: 16px; height: 16px; color: var(--gm-text); flex: none; }
.gm-logo { position: relative; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--gm-accent); font-size: 24px; font-weight: 700; }
.gm-logo-fallback { line-height: 1; }
.gm-logo-image { position: absolute; inset: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gm-bg); }
.gm-logo-image[hidden] { display: none; }
.gm-mode { flex: none; min-height: 36px; font-size: 11px; font-weight: 750; letter-spacing: .5px; border: 1px solid; border-radius: 4px; padding: 8px 10px; text-transform: uppercase; }
.gm-mode--demo { color: var(--gm-demo-fg); background: var(--gm-demo-bg); border-color: var(--gm-demo-line); }
.gm-mode--live { color: var(--gm-live-fg); background: var(--gm-live-bg); border-color: var(--gm-live-line); }
.gm-mode--fixture { color: var(--gm-dim); background: transparent; border-color: var(--gm-card-line); font-size: 10px; }
.gm-mode:active { filter: brightness(1.2); }
/* While selecting, the horizon lives on the plot. Execution shows an explicitly labelled countdown. */
.gm-count { position: relative; text-align: left; margin-bottom: 14px; }
.gm-overline { display: flex; align-items: center; gap: 9px; color: var(--gm-text); letter-spacing: 1.5px; font-size: 12px; font-weight: 650; line-height: 1.5; min-height: 1.5em; }
.gm-overline::before { content: ""; width: 4px; height: 13px; flex: none; background: var(--gm-accent); transform: skew(-18deg); }
.gm-countdown { font-family: var(--gm-mono); font-size: 42px; line-height: 1.12; letter-spacing: -2px; font-weight: 600; margin-top: 10px; color: var(--gm-text); font-variant-numeric: tabular-nums; }
.gm-count[data-kind="horizon"] .gm-countdown { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gm-count[data-kind="idle"] .gm-countdown { color: var(--gm-dim); }
.gm-desc { color: var(--gm-dim); font-size: 14px; line-height: 1.4; margin-top: 8px; min-height: 1.4em; }
.gm-count[data-kind="horizon"] .gm-desc { color: var(--gm-text); font-size: clamp(20px, 5.7vw, 27px); font-weight: 650; letter-spacing: -.5px; line-height: 1.25; margin-top: 9px; }
.gm-chart-panel { margin-top: 0; }
.gm-plot { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--gm-mono); }
.gm-grid { fill: none; stroke: var(--gm-grid); stroke-width: .8; stroke-dasharray: 1 4; }
.gm-axis-line { fill: none; stroke: var(--gm-cp-empty-line); stroke-width: .75; }
.gm-axis-label { fill: var(--gm-dim); font-size: 10px; font-variant-numeric: tabular-nums; }
.gm-level { fill: none; stroke: var(--gm-level); stroke-width: .8; stroke-dasharray: 3 5; opacity: .6; }
.gm-line { fill: none; stroke: var(--gm-line-price); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gm-now[data-visible="false"] { display: none; }
.gm-now-dot { fill: var(--gm-now-core); }
.gm-plot-caption { font-size: 11px; fill: var(--gm-dim); letter-spacing: .4px; }
.gm-cp { --cp-line: var(--gm-cp-empty-line); --cp-bg: var(--gm-cp-empty-bg); --cp-fg: var(--gm-cp-empty-fg); }
.gm-cp--up { --cp-line: var(--gm-cp-up-line); --cp-bg: var(--gm-cp-up-bg); --cp-fg: var(--gm-cp-up-fg); }
.gm-cp--down { --cp-line: var(--gm-cp-down-line); --cp-bg: var(--gm-cp-down-bg); --cp-fg: var(--gm-cp-down-fg); }
.gm-cp[data-status="win"] { --cp-line: var(--gm-up); --cp-bg: var(--gm-cp-up-bg); --cp-fg: var(--gm-cp-up-fg); }
.gm-cp[data-status="loss"] { --cp-line: var(--gm-down); --cp-bg: var(--gm-cp-down-bg); --cp-fg: var(--gm-cp-down-fg); }
.gm-cp[data-status="draw"] { --cp-line: var(--gm-dim); --cp-bg: var(--gm-surface); --cp-fg: var(--gm-text); }
.gm-cp[data-status="error"] { --cp-line: var(--gm-accent); --cp-bg: var(--gm-surface); --cp-fg: var(--gm-accent); }
.gm-cp[data-active="true"] { --cp-line: var(--gm-accent); --cp-fg: var(--gm-accent); }
.gm-cp-line { fill: none; stroke: var(--cp-line); stroke-width: 1; stroke-dasharray: 2 5; opacity: .8; }
.gm-cp-badge { fill: var(--cp-bg); }
.gm-cp-label { fill: var(--cp-fg); font-size: 14px; font-weight: 650; }
.gm-cp-underline { stroke: var(--cp-line); stroke-width: 1; }
.gm-cp[data-active="true"] .gm-cp-underline { stroke-width: 2; }
.gm-cp-close { fill: var(--cp-line); stroke: var(--gm-bg); stroke-width: 1.5; }
.gm-cp-result-bg { fill: var(--cp-bg); stroke: var(--cp-line); stroke-width: .6; }
.gm-cp-result { fill: var(--cp-fg); font-size: 9px; font-weight: 700; }
.gm-cp[data-status="win"] .gm-cp-line, .gm-cp[data-status="loss"] .gm-cp-line, .gm-cp[data-status="draw"] .gm-cp-line, .gm-cp[data-status="error"] .gm-cp-line { stroke-dasharray: none; }
.gm-chart-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 6px; color: var(--gm-dim-2); font: 11px/1.4 var(--gm-mono); }
.gm-price { font-variant-numeric: tabular-nums; min-height: 1.4em; }
.gm-progress { color: var(--gm-dim); }
.gm-controls { margin-top: 20px; }
.gm-board[data-controls="predict"] .gm-chart-bottom { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gm-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.gm-choice { min-height: 76px; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 21px; font-weight: 700; color: var(--gm-text); transition: transform .12s, filter .12s; }
.gm-choice:active:not(:disabled) { transform: scale(.98); filter: brightness(1.1); }
.gm-choice:disabled { opacity: .45; cursor: default; }
.gm-choice--up { background: var(--gm-up-btn); }
.gm-choice--down { background: var(--gm-down-btn); }
.gm-choice-arrow { width: 30px; height: 30px; flex: none; }
.gm-tertiary { display: block; background: transparent; color: var(--gm-dim); font-size: 13px; font-weight: 500; margin: 14px auto 0; min-height: 44px; padding: 10px 14px; }
.gm-tertiary:disabled { opacity: .45; cursor: default; }
.gm-stakeline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; font-size: 13px; color: var(--gm-dim); margin-bottom: 14px; }
.gm-stakeline strong { color: var(--gm-text); }
.gm-payouts { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 16px; }
.gm-payout { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: 11px/1.4 var(--gm-mono); color: var(--gm-dim); padding: 8px 0; border-top: 1px solid var(--gm-line); white-space: nowrap; }
.gm-payout-arrow { width: 12px; height: 12px; flex: none; }
.gm-payout--up .gm-payout-arrow { color: var(--gm-up); }
.gm-payout--down .gm-payout-arrow { color: var(--gm-down); }
.gm-board .gm-place, .gm-sheet .gm-place, .gm-landing .gm-start { width: 100%; min-height: 54px; padding: 16px 12px; background: var(--gm-accent); color: var(--gm-on-accent); border: 0; border-radius: 5px; font-size: 14px; font-weight: 750; letter-spacing: .4px; }
.gm-board .gm-place:active:not(:disabled), .gm-sheet .gm-place:active:not(:disabled), .gm-landing .gm-start:active { background: var(--gm-accent); transform: scale(.985); }
.gm-reset { display: block; width: 100%; min-height: 44px; background: transparent; margin-top: 7px; color: var(--gm-dim); font-size: 13px; padding: 10px; }
.gm-reset:disabled { opacity: .43; cursor: default; }
.gm-legs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.gm-leg { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 12px 4px; border-top: 1px solid var(--gm-line); }
.gm-leg + .gm-leg { border-left: 1px solid var(--gm-line); }
.gm-leg-head { display: inline-flex; align-items: center; gap: 4px; font: 600 14px/1.3 var(--gm-mono); }
.gm-leg-arrow { width: 14px; height: 14px; }
.gm-leg[data-side="up"] .gm-leg-arrow { color: var(--gm-up); }
.gm-leg[data-side="down"] .gm-leg-arrow { color: var(--gm-down); }
.gm-leg-word { font-size: 10px; font-weight: 700; letter-spacing: .8px; color: var(--gm-dim); }
.gm-leg-pnl { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.gm-leg[data-status="win"] .gm-leg-word, .gm-leg[data-status="win"] .gm-leg-pnl { color: var(--gm-up); }
.gm-leg[data-status="loss"] .gm-leg-word, .gm-leg[data-status="loss"] .gm-leg-pnl { color: var(--gm-down); }
.gm-leg[data-status="error"] .gm-leg-word { color: var(--gm-accent); }
.gm-leg[data-status="open"] .gm-leg-word { color: var(--gm-accent); }
.gm-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; padding: 16px 0; border-top: 1px solid var(--gm-line); }
.gm-summary-label { color: var(--gm-dim); font-size: 13px; }
.gm-summary-pnl { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; }
.gm-summary[data-tone="gain"] .gm-summary-pnl { color: var(--gm-up); }
.gm-summary[data-tone="loss"] .gm-summary-pnl { color: var(--gm-down); }
.gm-board[data-controls="summary"] .gm-header { margin-bottom: 16px; }
.gm-board[data-controls="summary"] .gm-countdown { font-size: 34px; }
.gm-board[data-controls="summary"] .gm-controls { margin-top: 14px; }
.gm-board[data-controls="summary"] .gm-summary { margin: 8px 0 12px; padding: 12px 0; }
.gm-controls--error .gm-place { margin-top: 14px; }
.gm-controls--unavailable { text-align: left; }
.gm-unavailable-title { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.gm-unavailable-text { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--gm-dim); }
.gm-starting { margin: 0; color: var(--gm-dim); font-size: 14px; }
.gm-notice { margin: 10px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--gm-dim); }
.gm-notice:empty { display: none; }
.gm-notice[data-notice="offline"], .gm-notice[data-notice="stale"], .gm-notice[data-notice="partial"], .gm-notice[data-notice="all_failed"] { color: var(--gm-accent); }
.gm-money { white-space: nowrap; }
.gm-money-code { font-size: .72em; opacity: .8; }
.gm-backdrop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: var(--pg-overlay); padding: 12px 10px calc(var(--pg-inset-bottom, env(safe-area-inset-bottom, 0px)) + 12px); }
.gm-sheet { width: min(100%, 460px); max-height: 100%; overflow-y: auto; background: var(--gm-surface); border: 1px solid var(--gm-card-line); border-radius: 8px; padding: 22px 16px 12px; display: flex; flex-direction: column; gap: 14px; }
.gm-sheet-title { margin: 0; font-size: 18px; font-weight: 700; text-align: left; }
.gm-orders { display: grid; gap: 10px; }
.gm-order { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; align-items: center; gap: 5px; font-size: 13px; font-variant-numeric: tabular-nums; }
.gm-order > * { min-width: 0; }
.gm-order .gm-money { display: flex; flex-wrap: wrap; column-gap: .25em; white-space: normal; }
.gm-order .gm-money-code { overflow-wrap: anywhere; }
.gm-order--head { color: var(--gm-dim); font-size: 10px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.gm-order--total { padding-top: 10px; border-top: 1px solid var(--gm-line); font-weight: 700; }
.gm-order-card { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.gm-side { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; }
.gm-side svg { width: 14px; height: 14px; }
.gm-side--up { background: var(--gm-cp-up-bg); color: var(--gm-cp-up-fg); }
.gm-side--down { background: var(--gm-cp-down-bg); color: var(--gm-cp-down-fg); }
.gm-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--gm-dim); }
.gm-cancel { min-height: 44px; }
.gm-assets { display: grid; }
.gm-asset { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 0; background: transparent; border-bottom: 1px solid var(--gm-line); text-align: left; }
.gm-asset[data-selected="true"] { color: var(--gm-accent); }
.gm-asset:disabled { opacity: .6; cursor: default; }
.gm-asset-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gm-asset-ticker { font-size: 15px; font-weight: 650; }
.gm-asset-name { font-size: 12px; color: var(--gm-dim); margin-top: 3px; }
.gm-asset-check { width: 18px; height: 18px; color: var(--gm-accent); }
.gm-icon { width: 20px; height: 20px; }
.gm-spinner { width: 22px; height: 22px; margin: 8px auto; border-radius: 50%; border: 2px solid var(--gm-line); border-top-color: var(--gm-accent); animation: gm-spin .8s linear infinite; }
@keyframes gm-spin { to { transform: rotate(360deg); } }
.gm-landing { height: 100%; width: min(100%, 460px); margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: calc(var(--pg-inset-top, env(safe-area-inset-top, 0px)) + 24px) 22px calc(var(--pg-inset-bottom, env(safe-area-inset-bottom, 0px)) + 24px); }
.gm-title { margin: 0; font-size: 36px; font-weight: 750; letter-spacing: -1.2px; }
.gm-tagline { margin: 0 0 16px; color: var(--gm-dim); font-size: 16px; line-height: 1.5; max-width: 320px; }
@media (max-height: 720px) {
  .gm-board { padding-top: calc(var(--pg-inset-top, env(safe-area-inset-top, 0px)) + 14px); }
  .gm-header { margin-bottom: 24px; }
  .gm-count { margin-bottom: 20px; }
  .gm-countdown { font-size: 34px; }
  .gm-controls { margin-top: 20px; }
}
@media (max-width: 340px) {
  .gm-board { padding-left: calc(var(--pg-inset-left, 0px) + 10px); padding-right: calc(var(--pg-inset-right, 0px) + 10px); }
  .gm-header { gap: 8px; }
  .gm-instrument { gap: 7px; }
  .gm-name { font-size: 15px; }
  .gm-brand { font-size: 8px; letter-spacing: 1.3px; }
  .gm-mode { padding-left: 7px; padding-right: 7px; }
  .gm-choices { gap: 8px; }
  .gm-choice { gap: 8px; font-size: 19px; }
  .gm-order { font-size: 12px; }
  .gm-payout { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gm-board *, .gm-board *::before, .gm-board *::after, .gm-backdrop, .gm-backdrop * { animation: none !important; transition: none !important; }
}
