/* ============================================================================
 * JagSim /try demo — restyle (matches hub/holdings material system)
 * Loads after try.html inline styles. Does NOT restyle the stock Chart desk
 * and does not change order-ticket behavior — only visual chrome/elevation.
 * ========================================================================== */

:root {
  --rs-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --rs-shadow-md: 0 2px 4px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.08);
  --rs-radius: 12px;
  --rs-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --rs-line: #e6eaf0;
}

.pt-bar {
  box-shadow: var(--rs-shadow-sm);
  border-bottom-color: var(--rs-line);
}
.pt-back,
.pt-signup {
  border-radius: 8px;
  transition: border-color 0.14s var(--rs-ease), color 0.14s var(--rs-ease), background 0.14s var(--rs-ease), transform 0.12s var(--rs-ease);
}
.pt-back:hover,
.pt-signup:hover { transform: translateY(-1px); }

.pt-search-wrap,
.toolbar-search {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
.pt-search input,
.pt-search,
input.pt-search,
#symSearch {
  border-radius: 10px;
  border: 1px solid var(--rs-line);
  box-sizing: border-box;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  background-color: #fff;
  line-height: normal;
  transition: border-color 0.14s var(--rs-ease), box-shadow 0.14s var(--rs-ease);
}
input[type="search"].pt-search,
input[type="search"]#symSearch {
  -webkit-appearance: none !important;
  appearance: none !important;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  display: none !important;
}
.pt-search input:focus,
.pt-search:focus,
#symSearch:focus {
  border-color: #0e9c63;
  box-shadow: 0 0 0 3px rgba(14, 156, 99, 0.14) !important;
}

.desk,
.chart-card,
.ticket,
.banner,
.pill-row .pill,
.stat-chip {
  border-radius: var(--rs-radius);
  border-color: var(--rs-line);
}

.chart-card,
.ticket {
  box-shadow: var(--rs-shadow-sm);
}

.desk { gap: 16px; }

.sym-head {
  letter-spacing: -0.025em;
}
.sym-price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.tf-btn,
.ov-btn,
.dpt-btn {
  border-radius: 8px;
  transition: background 0.14s var(--rs-ease), border-color 0.14s var(--rs-ease), color 0.14s var(--rs-ease);
}

#chartHost {
  min-height: 480px;
  border-radius: 0 0 10px 10px;
}

.ticket-controls {
  gap: 14px;
}
.ticket-cta-bar {
  border-top-color: var(--rs-line);
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.05);
}
#dAction,
.cta-primary,
button.primary {
  border-radius: 10px;
  font-weight: 800;
  transition: filter 0.14s var(--rs-ease), transform 0.12s var(--rs-ease);
}
#dAction:hover,
.cta-primary:hover,
button.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.pos-row,
.hold-row {
  transition: background 0.12s var(--rs-ease);
  border-radius: 8px;
}
.pos-row:hover,
.hold-row:hover { background: #f4f8fd; }

.save-banner,
.signup-strip,
.demo-note {
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow-sm);
  border-color: var(--rs-line);
}

@media (max-width: 900px) {
  #chartHost { min-height: 320px; }
  /* demo.css shadow + .pt-bar border-bottom double-drew a hairline against the
     scrolling closed-market banner at scrollY≈0 on /try phones. */
  .pt-bar {
    box-shadow: none;
    border-top: none;
  }
  .pt-bar:has(+ #jag-mkt-banner) {
    border-bottom: none;
  }
  .pt-search,
  .toolbar-search .pt-search,
  #symSearch {
    -webkit-appearance: none !important;
    appearance: none !important;
    background-image: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    background: #fff !important;
    border: 1px solid var(--rs-line) !important;
    line-height: normal !important;
  }
}
