/*
 * Additions required by the app around the approved prototype stylesheets.
 * app.css, directions.css and prototype.css stay byte-identical; every rule
 * here covers the full-viewport app, the device preview or beta-only screens.
 */

/* The app is a Mini App: it owns the viewport instead of sitting in a frame. */
.studio {
  display: block;
  padding: 0;
  max-width: none;
  margin: 0;
}
.phone-wrap {
  width: 100%;
}
.app {
  width: 100%;
  min-height: 100svh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding-top: env(safe-area-inset-top);
}
/* Telegram supplies the top chrome; the header sits on the safe area. */
.bottom-nav {
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
}

/* The prototype hides the three upload sources once an image is present
   (`.has-image .upload-sources{display:none}` in app.css) but directions.css
   re-declares the container as a grid, which overrides it. Restore the rule. */
.app.has-image .upload-sources,
.has-image .upload-sources {
  display: none;
}

/* In the `?view=` parity build the banner is pinned to the frame's bottom
   edge instead of the document flow, so the frame starts at y=0 exactly like
   the mock's app box (the mock has no banner). The banner stays fully visible
   and the geometry below it is comparable. */
html[data-preview] .offline-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* Above the sticky navigation (66 px) so nothing is covered. */
  bottom: 66px;
  width: var(--app-width, 390px);
  z-index: 9;
}

/* `?view=390` previews the phone width on a desktop build, for parity shots. */
html[data-preview] {
  background: #101217;
}
html[data-preview] .studio {
  display: flex;
  justify-content: center;
  /* No offset: the parity frames compare the app box from y=0, like the mock. */
  padding: 0;
}
html[data-preview] .phone-wrap {
  width: var(--app-width, 390px);
  flex: none;
}
html[data-preview] .app {
  /* No border or outline: both shift or paint over the content origin, and
     the parity rule compares the app box from (0,0). The rounded clip is kept. */
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 64px #0005;
  overflow: clip;
  min-height: var(--app-height, 844px);
}

/* Offline banner. It is the one allowed visual difference from the prototype;
   neutral surface, accent dot, 12px copy — it does not shift the upload area. */
.offline-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 24px;
  background: #24272e;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.offline-banner[hidden] {
  display: none !important;
}
.offline-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.offline-banner > span:nth-child(2) {
  min-width: 0;
}
.offline-retry {
  margin-left: auto;
  flex: none;
  background: none;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 0 4px 8px;
  min-height: 24px;
}

/* Rows and states the prototype only rendered with tutorial data. */
.account-handle {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.history-state {
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.loading-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* Telegram theme hooks: only applied when the client reports a light scheme. */
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="light"] .app,
html[data-theme="light"] body {
  background: var(--bg);
}

/* The bottom navigation is fixed to the frame: long screens scroll under it
   instead of pushing it past the visible area at 844 px and below. */
#bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 5;
}

/* The frame scrolls inside itself: with a sticky footer the last block must be
   reachable by scrolling the app, not by scrolling the document. */
#app {
  height: 100svh;
  max-height: 100svh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
#app > .main-view { flex: 1 0 auto; }

/* The offline banner sits above the frame in its own layer; the sticky nav must
   stay below it so the two never cover each other. */
#bottom-nav { z-index: 4; }
#offline-banner { z-index: 9; }
#app { padding-bottom: 0; }

#screen-view[data-screen="review"] .preview-group a[data-view="home"] {
  color: var(--accent);
  font-weight: 700;
}

html[data-device-preview] { background: #101217; }
.device-preview {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  width: min(100%, 810px);
  height: 100svh;
  margin: 0 auto;
  padding: 20px;
}
.device-preview-controls {
  display: grid;
  align-self: center;
  gap: 26px;
  min-width: 0;
}
.device-preview-review {
  justify-self: start;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.device-preview-review:disabled { opacity: .5; }
.device-preview-review:not(:disabled):hover,
.device-preview-review[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.device-preview-models { min-width: 0; margin: 0; padding: 0; border: 0; }
.device-preview-models legend { padding: 0 0 10px; color: var(--muted); font-size: 13px; }
.device-preview-choice {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid transparent;
  cursor: pointer;
}
.device-preview-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.device-preview-choice strong,
.device-preview-choice small { display: block; }
.device-preview-choice strong { font-size: 14px; font-weight: 700; }
.device-preview-choice small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.device-preview-choice:hover { background: var(--surface); }
.device-preview-choice:has(:checked) { border-left-color: var(--accent); background: var(--surface); }
.device-preview-choice:has(:checked) strong { color: var(--accent); }
.device-preview-choice:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 1; }
.device-preview-compact { display: none; }
.device-preview-stage { min-width: 0; min-height: 0; display: grid; place-items: center; }
.device-preview-screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg);
  outline: 1px solid var(--line);
  box-shadow: 0 16px 42px #0005;
}
.device-preview-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border: 0;
  transform-origin: top left;
}
@media (max-width: 700px), (max-height: 550px) {
  .device-preview { grid-template: auto minmax(0, 1fr) / minmax(0, 1fr); gap: 12px; padding: 12px; }
  .device-preview-controls { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
  .device-preview-review { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .device-preview-models { display: none; }
  .device-preview-compact { display: grid; grid-column: 1; grid-row: 1; gap: 4px; color: var(--muted); font-size: 12px; }
  .device-preview-compact select {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding-inline: 8px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
  }
}

/* The frame's own bottom padding keeps the last block clear of the sticky nav.
   This view is a flex column, so it needs a spacer rather than padding. */
#app > .main-view { padding-bottom: 0; }
#app #analysis-form { padding-bottom: 74px; }

/* The analysis action and navigation stay visible while extra fields or errors
   can scroll within the form. The approved mock keeps its original flow. */
.analysis-body { display: contents; }

[data-beta="true"] #app:has(> #home-view:not([hidden])) {
  min-height: 0;
  overflow: hidden;
}
[data-beta="true"] #app > #home-view {
  --home-inset: clamp(18px, 5.56vw, 24px);
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 0;
}
[data-beta="true"] #app #analysis-form {
  min-height: 0;
  padding-bottom: 0;
}
[data-beta="true"] .analysis-body {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  scroll-padding-block: 8px;
  padding: 10px var(--home-inset) 6px;
}
[data-beta="true"] #home-view .upload-heading { margin-bottom: 10px; }
[data-beta="true"] #home-view .upload-block { margin-bottom: 0; }
#ticker-entry .field-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  margin: 0;
}
#ticker-entry { margin-bottom: 8px; }
#ticker-market {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%; min-height: 36px; padding: 0;
  background: transparent; color: var(--muted);
  font-size: 12px; text-align: start; cursor: pointer;
}
#ticker-market:is(:hover,:focus-visible) { color: var(--text); }
#ticker-market > .icon { width: 12px; height: 12px; flex: none; }
#ticker-market-fields { padding-bottom: 5px; }
#ticker-entry .screen-field select { min-height: 44px; }
#manual-feedback:not([hidden]) { margin-bottom: 6px; }
#retry-tickers { width: auto; min-height: 44px; padding-inline: 12px; }
/* One instrument row, with room for a longer pair name. */
[data-beta="true"] #ticker-entry .field-row {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
[data-beta="true"] #home-view #ticker-entry .select-field {
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
[data-beta="true"] #ticker-entry .picker-trigger { padding: 4px 24px 4px 0; border-radius: 0; }
[data-beta="true"] #ticker-entry .select-field + .select-field .picker-trigger { padding-left: 15px; }
[data-beta="true"] #ticker-entry .select-field + .select-field::before {
  content: ''; position: absolute; inset: 12px auto 12px 0; border-left: 1px solid var(--line);
}
[data-beta="true"] #ticker-entry .picker-trigger > span { padding-inline-end: 0; margin-inline-end: -12px; }
[data-beta="true"] #ticker-entry .picker-trigger strong { font-size: 16px; line-height: 22px; font-weight: 650; }
[data-beta="true"] #ticker-entry .picker-trigger .icon { right: 8px; bottom: 12px; }
[data-beta="true"] #ticker-entry .picker-trigger:focus-visible { outline-offset: -2px; }

#app { --empty-scanner-height: clamp(100px, calc(100svh - 558px - env(safe-area-inset-bottom)), 206px); }
[data-beta="true"] #app #home-view .scanner-stage { height: var(--empty-scanner-height); }
[data-beta="true"] #app:not(.has-image) #home-view .scanner-content {
  inset: 0;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  text-align: center;
}
[data-beta="true"] #app:not(.has-image) .scanner-content .scanner-file {
  width: clamp(26px, 4.4svh, 36px); height: auto; aspect-ratio: 1;
  margin: 0 0 4px; stroke: var(--text); stroke-width: 1.5;
}
[data-beta="true"] #app:not(.has-image) .scanner-title { font-size: clamp(14px, 3.9vw, 17px); font-weight: 650; line-height: 1.3; }
[data-beta="true"] #app:not(.has-image) .scanner-help { margin: 0; font-size: 12px; line-height: 1.4; }
[data-beta="true"] #home-view .ambient-chart,
[data-beta="true"] #home-view .tp-overlay { inset: 5px 4px 6px; width: auto; height: auto; }
[data-beta="true"] #app:not(.has-image) .tp-profit { inset: 9px 14px auto auto; }
[data-beta="true"] #app:not(.has-image) .tp-profit strong, [data-beta="true"] #app:not(.has-image) .tp-profit strong span { font-size: 10px; }
[data-beta="true"] #home-view .upload-sources {
  gap: 0; padding: 0; margin: 2px 0 5px; align-items: stretch;
}
[data-beta="true"] #home-view .source-button {
  min-height: 44px; min-width: 0; justify-content: center; flex-direction: row; gap: 7px;
}
[data-beta="true"] #home-view .source-icon { width: 18px; height: 18px; border-radius: 0; color: inherit; background: transparent; }
[data-beta="true"] #home-view .source-icon .icon { width: 18px; height: 18px; }
[data-beta="true"] #home-view .source-button[aria-expanded="true"] { color: var(--text); }
[data-beta="true"] #home-view #settings { margin-top: 0; }
[data-beta="true"] #home-view .settings-body { padding-top: 10px; }
[data-beta="true"] #home-view .select-field { height: 50px; }
[data-beta="true"] #home-view .picker-trigger { gap: 0; padding-block: 5px; }
[data-beta="true"] #home-view .picker-trigger > .icon { bottom: 11px; }
[data-beta="true"] #home-view .parameter-group { margin-top: 10px; }
[data-beta="true"] #home-view .parameter-group legend { margin-bottom: 2px; }
[data-beta="true"] #home-view .style-options { padding: 0; }
[data-beta="true"] #home-view .style-options .choice-face { min-height: 44px; }
[data-beta="true"] #home-view .style-duration { margin: 7px 0 0; }
@media (max-height: 710px) {
  [data-beta="true"] .analysis-body { padding-top: 5px; }
  [data-beta="true"] #home-view .upload-heading { margin-bottom: 4px; }
  #app { --empty-scanner-height: clamp(86px, calc(100svh - 556px - env(safe-area-inset-bottom)), 148px); }
  [data-beta="true"] #home-view .settings-body { padding-top: 0; }
  [data-beta="true"] #home-view .style-duration { margin-top: 4px; }
  [data-beta="true"] #home-view .parameter-group { margin-top: 8px; }
  [data-beta="true"] #ticker-entry { margin-bottom: 4px; }
}
@media (min-height: 760px) {
  [data-beta="true"] .analysis-body { padding-top: 18px; }
  [data-beta="true"] #home-view .upload-heading { margin-bottom: 16px; }
  [data-beta="true"] #home-view .parameter-group { margin-top: 18px; }
}
[data-beta="true"] #home-view .form-action {
  flex: none;
  padding: 7px var(--home-inset) 10px;
}
[data-beta="true"] #home-view .analysis-action-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
[data-beta="true"] #home-view .analysis-action-hint.show-input-paths {
  position: static; width: auto; height: auto; clip-path: none; white-space: normal; order: -1;
  font-size: 11px; line-height: 1.35; margin: 0 0 4px;
}
#analyze-button.is-reading { color: var(--text); }
#analyze-button.is-reading .analysis-candles {
  color: var(--accent);
  animation: recognition-candles 1.1s ease-in-out infinite alternate;
}
@keyframes recognition-candles {
  from { opacity: .48; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #analyze-button.is-reading .analysis-candles { animation: none; }
}
[data-beta="true"] #app:has(> #home-view:not([hidden])) > #bottom-nav {
  flex: none;
  min-height: calc(66px + env(safe-area-inset-bottom));
  padding-bottom: calc(9px + env(safe-area-inset-bottom));
}

#tp-level { opacity: 0; }
#tp-level > svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Use the graph's coordinates for placement, with type sized in CSS pixels. */
#tp-label {
  position: absolute;
  left: 5.5556%;
  line-height: 1;
  color: #a1afa266;
  transform: translateY(calc(-100% - 4px));
}
.tp-hit #tp-label { color: #a1afa280; }

[data-beta="true"] .risk-options .choice-face small { display: none; }
[data-beta="true"] .risk-options .choice-face { min-height: 44px; }
.beta-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.beta-fields .screen-field { min-width: 0; }
.beta-fields input, .beta-fields select { width: 100%; min-width: 0; }
#screen-view[data-screen="profile"] {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding-bottom: 20px;
}
#screen-view[data-screen="profile"] .account-identity > img {
  flex: 0 0 52px;
  object-fit: cover;
}
#screen-view[data-screen="profile"] .account-identity > div { min-width: 0; }
#screen-view[data-screen="profile"] .account-stat { flex: none; }
#screen-view[data-screen="profile"] .row-value { flex-shrink: 0; }
[data-beta] #quota-link { min-height: 44px; font-size: 12px; }
.signal-updated {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-block: 10px;
}
.signal-updated time { display: block; font-variant-numeric: tabular-nums; }
.signal-updated > p, .signal-updated > [role="status"] { font-size: 12px; }
.signal-updated button { min-height: 44px; width: auto; padding-inline: 12px; }
#recognized-fields { display: grid; gap: 5px; }
.image-caption-copy { display: grid; min-width: 0; gap: 2px; }
.image-caption-copy #image-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#recognition-status { white-space: normal; color: var(--text); font-size: 12px; line-height: 1.25; }
#recognition-status:empty { display: none; }
#recognized-market > summary {
  min-height: 44px;
  padding-block: 5px;
  font-size: 12px;
  color: var(--muted);
}
#recognized-market > summary > span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
#market-summary { font-size: 12px; color: var(--text); }
#recognized-market > summary > .icon { width: 14px; height: 14px; }
#recognized-market[open] > summary > .icon { transform: rotate(180deg); }
.recognized-market-fields { display: grid; gap: 8px; padding-bottom: 6px; }
#ticker-feedback:empty, #date-feedback:empty, #confirm-feedback:empty { display: none; }
#beta-date { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
#beta-date abbr { text-decoration: none; }
.beta-checkbox { display: flex; align-items: center; gap: 10px; }
.beta-checkbox input { width: 18px; height: 18px; min-height: auto; }
#image-placeholder:not([hidden]) { display: grid; place-content: center; min-height: 100px; padding: 16px; text-align: center; color: var(--muted); }

/* Auto side margins center a definite column. Without the width, flexbox
   shrink-wraps each route to its contents, including the controls. */
[data-beta="true"] #app > #screen-view {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 18px clamp(18px, 5.56vw, 24px) 24px;
}
[data-beta="true"] #app > #screen-view[data-screen="result"] { max-width: 640px; }
[data-beta="true"] #bottom-nav { padding-inline: max(6px, calc((100% - 480px) / 2)); }
[data-beta="true"] #screen-view .screen-heading { margin-bottom: 20px; }
[data-beta="true"] #screen-view .screen-heading h2 { text-wrap: balance; }
[data-beta="true"] #screen-view .screen-heading p { margin-top: 8px; max-width: 44ch; }
[data-beta="true"] #screen-view .back-link {
  min-height: 44px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
[data-beta="true"] #screen-view .back-link:hover { color: var(--text); }
[data-beta="true"] #screen-view .screen-form { gap: 12px; }
[data-beta="true"] #screen-view .screen-field { font-size: 13px; }
[data-beta="true"] #screen-view .screen-field :is(input:not([type="checkbox"]), select) { min-height: 46px; }
[data-beta="true"] #screen-view .screen-form > .primary { min-height: 50px; }
[data-beta="true"] #screen-view .screen-form > .form-feedback { margin-top: -5px; }
[data-beta="true"] #screen-view :is(.setting-row, .screen-details summary, .preview-group a) {
  min-height: 49px;
  font-size: 14px;
}
[data-beta="true"] #screen-view .setting-row[aria-pressed="true"] { font-weight: 720; }
.setting-selection {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  color: var(--accent);
}
.setting-selection .icon { width: 18px; height: 18px; }
[data-beta="true"] #screen-view .preview-group h3 { font-size: 13px; color: var(--muted); }
[data-beta="true"] #screen-view .screen-empty {
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
[data-beta="true"] #screen-view .screen-empty .secondary { width: 100%; }
[data-beta="true"] #screen-view .screen-notice { text-wrap: pretty; }
[data-beta="true"] #screen-view .history-state { margin-top: 14px; }
[data-beta="true"] #screen-view .history-record { min-height: 66px; padding-block: 12px; }
[data-beta="true"] #screen-view .locked-feature { gap: 8px; }
[data-beta="true"] #screen-view .locked-feature p { max-width: 42ch; }
[data-beta="true"] #report-levels-toggle { min-height: 44px; }
[data-beta="true"] #screen-view .report-top > span { text-align: right; }
[data-beta="true"] #screen-view #report-chart { margin: 0; }
[data-beta="true"] #app > #screen-view[data-screen="welcome"] {
  padding-block: 24px calc(24px + env(safe-area-inset-bottom));
}
.welcome-intro { margin-top: auto; }
.welcome-intro .welcome-mark { margin: 0 0 18px; }
.welcome-intro .welcome-mark img { width: 148px; }
[data-beta="true"] #screen-view .welcome-intro .screen-heading { margin-bottom: 24px; }
[data-beta="true"] #screen-view .welcome-intro h2 {
  max-width: none;
  font-size: clamp(24px, 6.5vw, 28px);
  text-wrap: pretty;
}
.welcome-chart { margin: 0; }
.welcome-chart-panel {
  padding: 14px 14px 15px;
  clip-path: var(--frame-outline);
  background: #1b1e24;
}
.welcome-chart figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  padding: 0 3px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.welcome-chart figcaption strong { color: var(--text); font-weight: 700; }
.welcome-chart .scanner-corner { color: var(--accent); }
.welcome-chart .report-chart { margin: 4px 0 8px; }
.welcome-chart .report-last { display: none; }
.welcome-chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0 3px;
  color: var(--muted);
  font-size: 12px;
}
.welcome-chart-key span { display: inline-flex; align-items: center; gap: 6px; }
.welcome-chart-key span::before {
  content: "";
  width: 12px;
  border-top: 1px dashed currentColor;
}
.welcome-chart-key span:last-child::before { color: var(--accent); }
[data-beta="true"] #screen-view .welcome-form {
  margin: 24px 0 auto;
  padding: 0;
  gap: 10px;
}
[data-beta="true"] .welcome-form .consent {
  align-items: center;
  min-height: 48px;
  padding-block: 10px;
  color: var(--muted);
}
[data-beta="true"] .welcome-form .consent input {
  appearance: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid #777f8e;
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}
[data-beta="true"] .welcome-form .consent input:checked {
  border-color: var(--accent);
  background: var(--accent);
}
[data-beta="true"] .welcome-form .consent input:checked::before {
  content: "";
  width: 9px;
  height: 5px;
  border: solid var(--bg);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}
[data-beta="true"] #screen-view .welcome-form .primary { min-height: 52px; }

.pro-overview {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 14px 2px;
}
#screen-view .pro-period {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.pro-period .icon { width: 16px; height: 16px; }
.pro-features { margin: 8px 0 0; }
.pro-features > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}
.pro-features dt { color: var(--muted); }
.pro-features dd {
  margin: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 730;
}
[data-beta="true"] #screen-view [data-form="redeem-pro"] { margin-top: 24px; }
/* Server-calculated trade metrics and live scenario state. */
.report-plan-stats { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 16px 0 0; font-size: 11px; font-variant-numeric: tabular-nums; }
.report-plan-stats > div { display: grid; gap: 4px; }
.report-plan-stats dt, .report-detail .data-rows small { color: var(--muted); }
.report-plan-stats dd { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.prototype-screen .report-low-reward { margin-top: 10px; color: var(--muted); font-size: 11px; text-wrap: pretty; }
.report-detail .data-rows small { display: block; font-size: 11px; font-weight: 500; }
.prototype-screen .report-setup-status { margin-top: 12px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.prototype-screen .report-setup-status[data-status="invalidated"] { color: var(--candle-down); }
.report-overview:is([data-setup-status="invalidated"], [data-setup-status="expired"]) :is(.report-active-conditions, .report-trigger) { display: none; }
.report-overview[data-setup-status="invalidated"] .result-finding { color: var(--candle-down); }
.report-overview:is([data-setup-status="invalidated"], [data-setup-status="expired"]) + .report-full-analysis .report-archive-note { display: block; margin-bottom: 14px; font-size: 12px; }
.report-detail button[data-action="refresh-liquidations"] { margin-top: 10px; min-height: 44px; }

.watch-modes { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin-top: 16px; }
.watch-modes button, .watch-feedback button { padding: 0; min-height: 44px; background: none; border: 0; border-radius: 0; color: var(--muted); font: inherit; font-size: 12px; font-weight: 650; }
.watch-modes button[aria-pressed="true"] { color: var(--text); box-shadow: inset 0 -2px var(--accent); }
.prototype-screen .watch-figure { margin-top: 12px; }
.watch-frame {
  --watch-ink: #a0a7b3;
  --watch-paper: #292d34;
  position: relative;
  padding: 1px;
  isolation: isolate;
}
.watch-figure[data-feed="live"] .watch-frame { --watch-ink: #f2ca58; --watch-paper: #383324; }
.watch-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  clip-path: var(--frame-outline); background: #373b42;
}
.watch-frame-surface { clip-path: var(--frame-outline); background: #1a1d23; }
#watch-figure .scanner-corner { color: var(--watch-ink); }
.watch-figure[data-feed="live"][data-tick="up"] { --tick-ink: var(--candle-up); --tick-paper: #19382f; }
.watch-figure[data-feed="live"][data-tick="down"] { --tick-ink: var(--candle-down); --tick-paper: color-mix(in srgb, var(--candle-down) 12%, var(--surface)); }
.watch-figure[data-feed="live"][data-tick] .watch-quote strong::after {
  content: '';
  display: inline-block;
  width: .27em; height: .27em;
  margin-inline: .25em .08em;
  vertical-align: .22em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.watch-figure[data-feed="live"][data-tick="down"] .watch-quote strong::after { transform: rotate(135deg); }
.watch-price-at { --watch-ink: var(--tick-ink, #c5cad2); --watch-paper: var(--tick-paper, #30353e); }
.watch-volume-bars .positive { fill: var(--candle-up); }
.watch-volume-bars .negative { fill: var(--candle-down); }
.watch-volume-bars { opacity: .57; }
.watch-volume .report-axis { font-size: 8.5px; }
.watch-volume .report-axis:last-child { font-size: 9px; transform: translateY(-2px); }
.watch-figure header, .watch-feedback:not([hidden]), .watch-upgrade:not([hidden]) { display: flex; align-items: center; gap: 10px; }
.watch-frame header { justify-content: space-between; flex-wrap: wrap; row-gap: 2px; padding: 10px 14px 0; }
.prototype-screen .watch-quote { margin: 0; color: var(--muted); font-size: 12px; }
.watch-quote strong { font-size: clamp(21px, 5.5vw, 24px); font-weight: 720; letter-spacing: -.025em; color: var(--tick-ink, var(--text)); font-variant-numeric: tabular-nums; }
.watch-feed-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.watch-feed-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.watch-figure[data-feed="live"] .watch-feed-label::before { width: 6px; height: 6px; background: var(--candle-up); }
@media (prefers-reduced-motion: no-preference) {
  .watch-figure[data-feed="live"]:not([hidden]) .watch-feed-label::before { animation: feed-pulse 2s ease-in-out infinite; }
  @keyframes feed-pulse {
    0%, 70%, 100% { opacity: 1; transform: scale(1); }
    35% { opacity: .52; transform: scale(.78); }
  }
}
.snapshot-surface #report-chart, #watch-figure .watch-bars { margin: 0; padding: 0 6px 5px; border-radius: 0; background: transparent; }
.watch-column { fill: var(--watch-ink); }
.watch-column rect { opacity: .055; }
.watch-column path { fill: none; stroke: var(--watch-ink); stroke-width: 1.1; opacity: .7; }
.watch-figure:not([data-feed="live"]) .watch-column { visibility: hidden; }
.watch-guide { fill: none; stroke: var(--watch-ink); stroke-width: .8; stroke-dasharray: 2 4; opacity: .54; }
.watch-tag { fill: var(--watch-paper); }
.watch-price-value { fill: var(--watch-ink); font: 650 10.5px Manrope, sans-serif; font-variant-numeric: tabular-nums; }
.watch-tip { fill: var(--watch-ink); stroke: #1a1d23; stroke-width: 1; }
.watch-tick { fill: none; stroke: var(--watch-ink); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.watch-candles .report-candle :is(path, rect) { transform-box: fill-box; transform-origin: center top; }
.prototype-screen .watch-bars .report-support path { opacity: .85; stroke: var(--candle-down); }
.prototype-screen .watch-bars .report-confirmation path { opacity: .95; stroke: var(--accent); }
.watch-structure-support { --structure-ink: #81b7bd; }
.watch-structure-resistance { --structure-ink: #baa4d3; }
.watch-structure-line { fill: none; stroke: var(--structure-ink); stroke-width: .85; stroke-dasharray: 4 3; opacity: .8; }
.watch-structure { margin-block: 12px 4px; }
.prototype-screen .watch-structure > p { margin: 0 0 5px; font-size: 11px; color: var(--muted); }
.watch-structure dl { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; }
.watch-structure dt { color: var(--muted); font-size: 12px; }
.watch-structure dt::before { content: ''; display: inline-block; width: 10px; margin-inline-end: 5px; border-top: 1px dashed var(--structure-ink); vertical-align: middle; }
.watch-structure dd { margin: 2px 0 0; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.watch-levels { display: flex; flex-wrap: wrap; column-gap: 19px; row-gap: 5px; margin: 10px 0 0; }
.watch-levels div { display: flex; align-items: baseline; gap: 5px; font-size: 11px; }
.watch-levels dt { color: var(--muted); }
.watch-levels dt::before { content: ''; display: inline-block; vertical-align: middle; width: 10px; margin-right: 5px; border-top: 1px dashed var(--accent); }
.watch-levels div + div dt::before { border-color: var(--candle-down); }
.watch-levels dd { margin: 0; color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.prototype-screen .watch-clock, .watch-feedback { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.watch-clock { display: flex; flex-wrap: wrap; column-gap: 12px; }
.watch-clock span { white-space: nowrap; }
.watch-figure .chart-signal-key { display: none; margin: 0; padding: 3px 14px 11px; }
.watch-figure[data-feed="live"][data-chart-status="market_only"] [data-key="market_only"],
.watch-figure[data-feed="ended"][data-chart-status="signal"]:has(.watch-signal-mark) [data-key="signal"] { display: flex; }
.watch-feedback { justify-content: space-between; }
.watch-feedback button { flex: none; white-space: nowrap; color: var(--accent); }
.watch-upgrade { width: 100%; min-height: 44px; margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0; padding: 0; background: none; color: var(--text); text-align: start; font-size: 12px; }
.watch-upgrade .icon { width: 15px; height: 15px; color: var(--muted); }
.watch-upgrade strong { margin-inline-start: auto; color: var(--accent); font-size: 11px; }
.report-overview[data-setup-status="missed"] :is(.report-active-conditions, .report-trigger),
.report-overview[data-setup-status="signal"] :is(.report-trigger, .report-plan-condition, .report-entry-rule, .report-invalidation) { display: none; }
.report-overview { --signal-ink: var(--candle-up); }
.report-overview:has(.report-decision[data-side="short"]) { --signal-ink: var(--candle-down); --signal-paper: color-mix(in srgb, var(--candle-down) 12%, var(--surface)); }
.entry-stamp, .entry-range { display: none; }
.report-overview[data-setup-status="signal"] .entry-stamp {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 7px; color: var(--signal-ink); font-size: 12px; font-weight: 650;
}
.entry-stamp .icon { width: 15px; height: 15px; stroke-width: 2; }
.entry-stamp time { margin-inline-start: auto; color: var(--muted); font-size: 11px; font-weight: 500; font-variant-numeric: tabular-nums; }
.report-overview[data-setup-status="signal"] .entry-range {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px;
  padding-block: 9px 2px; color: var(--muted); font-size: 12px;
}
.entry-range strong { color: var(--text); font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.entry-range small { color: var(--muted); font-size: 11px; font-weight: 550; }
.watch-figure[data-outcome="signal"] .watch-frame { --watch-ink: var(--signal-ink); --watch-paper: var(--signal-paper, #23362f); }
.watch-figure[data-outcome="signal"] .watch-feed-label { gap: 7px; font-weight: 650; }
.watch-figure[data-outcome="signal"] .watch-feed-label::before {
  width: 8px; height: 4px; border: solid currentColor; border-width: 0 0 1.5px 1.5px;
  border-radius: 0; background: none; transform: translateY(-1px) rotate(-45deg);
}
.report-overview[data-signal-fresh="true"] .watch-feed-label { color: var(--signal-ink); }
.prototype-screen .report-overview[data-signal-fresh="true"] .report-observation { color: #d6e3de; }
.entry-notice-anchor {
  position: sticky; bottom: var(--notice-nav-height); z-index: 3; align-self: center; flex: 0 0 0;
  width: min(412px, calc(100% - 24px)); height: 0; pointer-events: none;
}
.entry-notice-anchor[data-edge="top"] { top: env(safe-area-inset-top, 0px); bottom: auto; }
.entry-notice-anchor[data-edge="top"] .entry-notice {
  inset: 10px 0 auto; transform-origin: center top; --notice-offset: -20px;
}
.entry-notice {
  position: absolute; inset: auto 0 10px; padding: 10px 14px 0; pointer-events: auto;
  border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--text);
  box-shadow: 0 4px 16px #080b1040; transform-origin: center bottom;
}
.entry-notice-heading { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: start; }
.entry-notice h3 {
  margin: 0; color: var(--candle-up); font-size: 16px; line-height: 1.45; font-weight: 700;
}
.entry-notice[data-side="down"] h3 { color: var(--candle-down); }
.entry-notice-close {
  display: grid; place-items: center; justify-self: end; width: 44px; height: 44px;
  margin-block: -9px -12px; margin-inline-end: -9px; padding: 0; border-radius: 4px;
  background: transparent; color: var(--muted);
}
.entry-notice-close .icon { width: 16px; height: 16px; }
.entry-notice-reason { margin: 4px 0 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.entry-notice-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 0 8px; margin-top: 3px;
}
.entry-notice-pair { color: var(--muted); font-size: 12px; }
.entry-notice-plan {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; margin-inline-start: auto;
  padding: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 650;
}
.entry-notice-plan .icon { width: 14px; height: 14px; }
[dir="rtl"] .entry-notice-plan .icon { transform: scaleX(-1); }
.entry-notice button:focus-visible { outline-offset: -2px; }
.report-plan h3 { scroll-margin-block-start: 20px; }
@media (hover: hover) {
  .entry-notice-close:hover { background: #ffffff09; color: white; }
  .entry-notice-plan:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .entry-notice { animation: entry-notice-arrival 300ms cubic-bezier(.16,.77,.23,1) both; }
}
@keyframes entry-notice-arrival {
  from { opacity: 0; transform: translateY(var(--notice-offset, 20px)) scale(.985); }
  to { opacity: 1; transform: none; }
}
.report-overview:is([data-setup-status="missed"], [data-setup-status="signal"]) + .report-full-analysis .report-archive-note { display: block; margin-bottom: 14px; font-size: 12px; }
.watch-figure[hidden], #watch-tools[hidden], #report-original-figure[hidden], .watch-upgrade[hidden], .watch-feedback[hidden] { display: none; }

/* Loading uses the same content column and chart ratio as the resolved screen. */
#app-loading {
  --opening-gutter: clamp(18px, 5.56vw, 24px);
  display: flex; flex-direction: column; flex: 1 0 auto; width: 100%;
}
.opening-body, .opening-error {
  width: min(100%, 480px); margin-inline: auto; padding: 24px var(--opening-gutter);
}
.opening-outline, .loading-outline { color: color-mix(in srgb, var(--text) 8%, var(--bg)); }
.sk-line, .sk-row i, .opening-fields i, .opening-nav i {
  display: block; border-radius: 3px; background-color: currentColor;
}
.sk-title { width: 46%; height: 20px; margin: 4px 0 16px; }
.sk-copy { width: 67%; height: 9px; margin: 11px 0; }
.sk-copy + .sk-copy { width: 48%; }
.sk-decision { margin: 32px 0 23px; }
.sk-row { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sk-row i { height: 9px; width: 34%; }
.sk-row i + i { width: 62%; height: 7px; opacity: .72; }
.sk-row:nth-child(2) i + i { width: 51%; }
.sk-chart {
  position: relative; width: 100%; aspect-ratio: 360 / 202; border-radius: 5px;
  background: color-mix(in srgb, var(--text) 2%, var(--bg));
}
.opening-chart, .opening-fields, .opening-brand { display: none; }
[data-opening="home"] .opening-fields { display: flex; gap: 12px; margin: 0 0 18px; }
.opening-fields i { flex: 1; height: 50px; border-block: 1px solid var(--line); border-radius: 0;
  background: linear-gradient(currentColor 0 0) left center / 44% 10px no-repeat; }
.opening-back, .opening-identity, .opening-report, .opening-intro-lines { display: none; }
[data-opening="profile"] .opening-identity { display: flex; align-items: center; gap: 12px; margin: 22px 0 15px; }
.opening-identity > i { display: block; width: 52px; height: 52px; border-radius: 50%; background: currentColor; }
.opening-identity > span { width: 110px; }
[data-opening="profile"] .sk-row i + i { display: none; }
[data-opening="profile"] .sk-row { min-height: 49px; align-content: center; }
[data-opening="result"] .opening-body { max-width: 640px; }
[data-opening="result"] .opening-back { display: block; width: 48px; height: 9px; margin: 7px 0 23px; }
[data-opening="result"] .opening-report { display: block; }
[data-opening="result"] .opening-rows { display: none; }
[data-opening="home"] .opening-chart { height: var(--empty-scanner-height); }
[data-opening="home"] .opening-fields { margin-bottom: 34px; }
#app:has(> #app-loading:not([hidden])) > #offline-banner { display: none; }
:is([data-opening="welcome"], [data-opening="home"], [data-opening="result"]) .opening-chart { display: block; }
[data-opening="welcome"] .opening-brand { display: block; object-fit: contain; object-position: left; margin-bottom: 18px; }
[data-opening="welcome"] .opening-body { margin-block: auto; }
[data-opening="welcome"] .opening-nav, [data-opening="welcome"] .opening-rows .sk-row:last-child { display: none; }
[data-opening="welcome"] .opening-outline > .sk-title { height: 23px; margin: 0; }
[data-opening="welcome"] .opening-intro-lines { display: grid; align-content: center; gap: 9px; height: 61px; }
.opening-intro-lines .sk-copy { margin: 0; }
[data-opening="welcome"] .opening-chart {
  margin-top: 24px; box-sizing: content-box; width: calc(100% - 28px);
  padding: 44px 14px; aspect-ratio: 360 / 184;
}
[data-opening="welcome"] .opening-rows { margin-top: 24px; min-height: 124px; }
@media (max-width: 360px) { [data-opening="welcome"] .opening-intro-lines { height: 81px; } }
@media (min-width: 480px) { [data-opening="welcome"] .opening-rows { min-height: 110px; } }
[data-opening="welcome"] .opening-rows .sk-row:nth-child(2) { display: block; padding: 0; margin-top: 10px; border: 0; }
[data-opening="welcome"] .opening-rows .sk-row:nth-child(2) i:first-child { width: 100%; height: 46px; border-radius: 7px; }
[data-opening="welcome"] .opening-rows .sk-row:nth-child(2) i + i { display: none; }
.opening-nav {
  width: 100%; display: flex; justify-content: space-around; align-items: center; margin-top: auto;
  padding: 0 max(6px, calc((100% - 480px) / 2)) env(safe-area-inset-bottom);
  height: calc(66px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
  color: color-mix(in srgb, var(--text) 8%, var(--bg));
}
.opening-nav i { width: 21px; height: 4px; }
.loading-copy { display: none; }
html:lang(ru) .loading-copy[lang=ru], html:lang(en) .loading-copy[lang=en], html:lang(uk) .loading-copy[lang=uk] { display: block; }
body[data-ready=error] :is(.opening-body, .opening-nav) { display: none; }
.opening-error button { margin-top: 12px; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .opening-outline, .loading-outline { animation: loading-breathe 2s ease-in-out infinite alternate; }
  @keyframes loading-breathe { to { opacity: .62; } }
}
.device-preview-screen iframe { background-color: var(--bg); }
.watch-frame header, .snapshot-surface .result-chart-toolbar { min-height: 50px; }
.snapshot-surface #report-chart, #watch-figure .watch-bars { position: relative; aspect-ratio: 360 / 202; }
.snapshot-surface #report-chart > svg, #watch-figure .watch-bars > svg { width: 100%; height: 100%; }
.sk-chart::before, .watch-bars:empty::before, .sk-chart::after, .watch-bars:empty::after {
  content: ''; position: absolute; inset: 20% 4%; border-block: 1px solid var(--line); opacity: .55;
}
.sk-chart::after, .watch-bars:empty::after { inset-block: 50% auto; border-bottom: 0; }
.watch-quote strong:empty::before {
  content: ''; display: inline-block; vertical-align: middle; width: 5ch; height: .56em;
  border-radius: 2px; background: var(--line);
}
.watch-clock { min-height: 1.6em; }

.upload-heading:has(> .bankroll-bar) { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.upload-heading:has(> .bankroll-bar) > :is(h2,p) { grid-column: 1/-1; }
.upload-heading:has(> .bankroll-bar) > #quota-link { justify-self: start; text-align: start; white-space: normal; line-height: 1.22; }

.market-choices { display: grid; gap: 12px; padding-block: 4px 10px; }
.market-choice { min-width: 0; margin: 0; border: 0; padding: 0; }
.market-choice legend { padding: 0; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.market-choice > div { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 7px; background: #202329; }
.market-choice label { position: relative; min-width: 0; cursor: pointer; }
.market-choice input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.market-choice span { display: grid; place-items: center; min-height: 40px; padding-inline: 4px; border-radius: 5px; color: var(--muted); font-size: 13px; }
.market-choice input:checked + span { color: var(--accent); background: #30343d; font-weight: 650; }
.market-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }

#market-dialog { margin: auto; width: min(340px, calc(100% - 32px)); padding: 14px 18px 12px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
#market-dialog::backdrop { background: #07090dac; }
#market-dialog header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
#market-dialog h3 { margin: 0; font-size: 17px; }
#market-close { display: grid; place-items: center; width: 36px; height: 36px; color: var(--muted); background: transparent; }
#market-close .icon { width: 18px; height: 18px; }
[data-beta="true"] #analysis-form[data-market="perpetual"] .risk-options .choice-face small { display: block; }

/* The four edges run counterclockwise from the fixed corner strokes. */
#watch-tools:not([hidden]) + #report-original-figure { margin-top: 12px; }
.snapshot-surface .result-chart-toolbar { padding-inline: 14px; }
/* One clipped silhouette behind the surface keeps the bevel and straight runs on the same perimeter. */
.snapshot-frame { --seal-cut: calc(var(--frame-cut) + 1.172px); }
.snapshot-outline {
  --frame-cut: var(--seal-cut); --cap: 26px;
  position: absolute; inset: -1px; z-index: -1; pointer-events: none;
  color: #f2ca58; clip-path: var(--frame-outline);
  background:
    linear-gradient(currentColor 0 0) left top, linear-gradient(currentColor 0 0) right top,
    linear-gradient(currentColor 0 0) left bottom, linear-gradient(currentColor 0 0) right bottom;
  background-size: var(--cap) var(--cap); background-repeat: no-repeat;
}
.snapshot-outline i { position: absolute; background: currentColor; }
.snapshot-outline i:nth-child(odd) { height: var(--cap); left: calc(var(--cap) - 1px); right: calc(var(--cap) - 1px); }
.snapshot-outline i:nth-child(even) { width: var(--cap); top: calc(var(--cap) - 1px); bottom: calc(var(--cap) - 1px); }
.snapshot-outline i:nth-child(1) { top: 0; transform-origin: right; }
.snapshot-outline i:nth-child(2) { left: 0; transform-origin: top; }
.snapshot-outline i:nth-child(3) { bottom: 0; transform-origin: left; }
.snapshot-outline i:nth-child(4) { right: 0; transform-origin: bottom; }
@media (prefers-reduced-motion: no-preference) {
  .snapshot-outline i:nth-child(odd) { animation: seal-horizontal 420ms cubic-bezier(.3,.05,.2,1) both; }
  .snapshot-outline i:nth-child(even) { animation: seal-vertical 420ms cubic-bezier(.3,.05,.2,1) both; }
  @keyframes seal-horizontal { from { transform: scaleX(0); } }
  @keyframes seal-vertical { from { transform: scaleY(0); } }
}

.report-trigger .chart-signal-key[data-key="waiting"] { display: none; }
.report-overview:has(#watch-figure[data-feed="live"][data-chart-status="waiting"]:not([hidden])) .report-trigger [data-key="waiting"] { display: flex; }
.report-overview:has(#watch-figure[data-feed="live"][data-chart-status="waiting"]:not([hidden])) .report-trigger .report-watch-note { display: none; }

@media (max-height: 670px) {
  [data-beta="true"] #home-view .form-action { gap: 3px; padding-block: 3px 6px; }
  [data-beta="true"] #home-view .analysis-action-hint.show-input-paths { margin: 0; }
  [data-beta="true"] #home-view .upload-heading { column-gap: 6px; }
  [data-beta="true"] #home-view .upload-heading h2 { font-size: 20px; letter-spacing: -.04em; }
  [data-beta="true"] #home-view .parameter-group { margin-top: 4px; }
  [data-beta="true"] #home-view .upload-sources { margin-block: 1px 2px; }
  [data-beta="true"] #home-view #ticker-entry { margin-bottom: 2px; }
}
