:root {
  --bg: #0b0c0e;
  --surface: #131417;
  --elevated: #1a1c20;
  --fg: #e8e4dc;
  --muted: #9a958c;
  --subtle: #6f6b64;
  --border: rgba(232, 228, 220, 0.12);
  --border-strong: rgba(232, 228, 220, 0.22);
  --accent: #c8c4bc;
  --accent-fg: #0b0c0e;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); }
body {
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.15; font-weight: 400; text-wrap: balance; }
.page-title { font-size: 20px; margin: 0 0 1rem; text-align: center; width: 100%; }
.lab-page > .page-title { margin-top: 2lh; }
a { color: inherit; text-decoration: none; }
button, [role="button"] { cursor: pointer; font-family: inherit; }
button:disabled { opacity: 0.4; cursor: default; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.header {
  border-bottom: 1px solid rgba(11, 12, 14, 0.12);
  position: sticky; top: 0; z-index: 40;
  background: #f07818;
}
.header .brand { color: #fff; }
.header .nav a { color: #5c5852; }
.header .nav a:hover, .header .nav a.on { color: #0b0c0e; }
.header .nav a:not([data-nav="home"]) { color: #fff; }
.header .nav a:not([data-nav="home"]):hover,
.header .nav a:not([data-nav="home"]).on { color: #fff; }
.header .nav a.nav-fill,
.header .nav a.nav-fill.on,
.header .nav a.nav-fill:hover { background: transparent; color: #0b0c0e; border-color: transparent; }
.header .nav a.cart-btn,
.header .nav a.cart-btn.on,
.header .nav a.cart-btn:hover { background: transparent; color: #fff; border-color: transparent; }
.header .nav a.cart-btn.nav-fill,
.header .nav a.cart-btn.nav-fill.on,
.header .nav a.cart-btn.nav-fill:hover { color: #0b0c0e; }
.nav { position: relative; display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
.nav-pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 12px; background: #fff; pointer-events: none; }
.nav a { position: relative; z-index: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 76px; max-height: 76px; padding: 0; flex-wrap: nowrap; overflow: hidden; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.brand { font-family: var(--display); font-size: 3rem; line-height: 1; }
.brand .reg { font-size: 0.333em; line-height: 0; vertical-align: super; }
.brand-link { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
.nav a, .ghost, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1rem; border-radius: 12px; font-size: 0.875rem; font-weight: 500;
  border: 1px solid transparent; background: transparent; color: var(--fg);
}
.nav a { color: var(--muted); }
.nav a:hover, .nav a.on { color: var(--fg); }
.btn { background: var(--accent); color: var(--accent-fg); }
.btn:hover { filter: brightness(1.06); }
.btn-success { background: #10b981; color: #fff; }
.ghost { border-color: var(--border); }
.ghost:hover { background: var(--elevated); }
.cart-btn { padding: 0 1rem; border: 1px solid transparent; position: relative; background: transparent; }
.dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 99px; background: var(--accent); }

.hero.hero-split { padding-top: 1.4rem; padding-bottom: 2rem; }
.hero-split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 780px) {
  .hero-split { grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.92fr); }
}
.show-stage { position: relative; height: 26rem; margin-top: 0.15rem; }
.cart-show { margin-top: 1.5rem; }
.cart-show .show-stage { height: 26rem; margin-top: 0; }
.cart-show .slide-bg { filter: blur(61px) brightness(0.62); }
.cart-show .slide-device { bottom: 7.2rem; }
.cart-show .show-copy { bottom: 0.7rem; }
.cart-show .show-slide::after { display: none; }
.paste-slide { background: #12110e; }
.paste-screen {
  position: absolute; z-index: 2; overflow: hidden;
  background: #0e1116; border: 1px solid rgba(255,255,255,0.08);
}
.paste-slide .paste-screen {
  left: 37%; right: 37%; top: 58%; bottom: 22%;
  border-radius: 4px; padding: 0.28rem 0.35rem; background: #101820;
}
.paste-slide.laptop .paste-screen { left: 14%; right: 20%; top: 54%; bottom: 30%; }
.paste-slide.tablet .paste-screen { left: 30%; right: 18%; top: 34%; bottom: 28%; }
.paste-slide.desk .paste-screen { left: 40%; right: 16%; top: 28%; bottom: 32%; }
.paste-slide.tv .paste-screen { left: 34%; right: 38%; top: 42%; bottom: 34%; }
.paste-code { margin: 0; font-family: var(--mono); font-size: 0.62rem; line-height: 1.28; color: #e7eef6; white-space: pre-wrap; }
.paste-cursor { position: absolute; z-index: 3; width: 16px; height: 20px; right: 12%; top: 42%; }
.paste-cursor { position: absolute; z-index: 3; width: 18px; height: 22px; right: 18%; top: 46%; }
.show-slide {
  position: absolute; inset: 0; border-radius: 28px; padding: 1.6rem;
  color: #f4f1ea; overflow: hidden; opacity: 0;
  background: #0b0c0e;
  box-shadow: 0 24px 50px rgba(0,0,0,0.28);
  animation: show-cycle 20s infinite;
  animation-delay: calc(var(--slide) * -4s);
}
.slide-bg, .slide-device { position: absolute; background-repeat: no-repeat; }
.slide-bg {
  inset: -8%;
  background-size: cover;
  background-position: center;
  filter: blur(30.4px) brightness(0.68);
}
.slide-device {
  z-index: 1;
  left: 0; right: 0; top: 0; bottom: 8.2rem;
  background-size: contain;
  background-position: center center;
}
.show-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(11,12,14,0.92) 0%, rgba(11,12,14,0.35) 18%, transparent 32%);
}
.show-copy { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1rem; z-index: 3; }
.speaker-note { margin: 0.45rem 0 0; font-size: 0.82rem; line-height: 1.35; color: #c8c4bc; }
.speaker-note b { display: block; margin-bottom: 0.15rem; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #9a958c; }
.card-actions { display: flex; align-items: center; gap: 0.75rem; width: 100%; margin-top: auto; }
.card-actions .feat-help { margin-left: 0; }
.card-actions .feat-tip { right: 0; bottom: 1.5rem; top: auto; }
.feat { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; border-bottom: 1px solid var(--border); padding: 0.45rem 0; font-size: 0.88rem; }
.feat-help { position: relative; display: inline-flex; flex: none; }
.qmark {
  width: 1.15rem; height: 1.15rem; padding: 0; border-radius: 50%;
  border: 1px solid var(--border-strong); background: transparent;
  color: var(--muted); font-size: 0.72rem; line-height: 1;
}
.feat-tip {
  display: none; position: absolute; right: 0; bottom: 1.45rem; z-index: 20;
  width: 14rem; padding: 0.5rem 0.65rem; text-align: left;
  background: var(--elevated); border: 1px solid var(--border); border-radius: 8px;
  color: var(--fg); font-size: 0.78rem; line-height: 1.4;
}
.field span.feat-help { display: inline-flex; margin: 0; font-size: 0.72rem; color: var(--muted); }
.field span.feat-tip { display: none; margin: 0; font-size: 0.78rem; color: var(--fg); font-family: var(--sans); }
.feat-help:hover > .feat-tip, .feat-help:focus-within > .feat-tip { display: block; }
h2 .feat-tip { bottom: auto; top: 1.45rem; }
.field .feat-tip { top: auto; bottom: 1.45rem; }
.show-copy h2 { margin: 0.2rem 0; font-size: 1.65rem; color: #f4f1ea; }
.show-copy h2 .qmark { color: #f4f1ea; border-color: rgba(244,241,234,0.45); vertical-align: middle; }
h2:has(.qmark), .field > span:has(.qmark), .show-copy h2, h1.page-title:has(.qmark) {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1rem;
}
h2 .feat-help, .field .feat-help { margin-left: auto; }
.bezel { position: absolute; z-index: 1; left: 50%; top: 0.8rem; transform: translateX(-50%); border-radius: 16px; padding: 7px; background: #1c1c1c; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.bezel-phone { width: 15.5rem; }
.bezel-lap { width: 20rem; }
.bezel-tab { width: 18rem; }
.bezel-desk { width: 19rem; }
.bezel-tv { width: 20rem; border-radius: 8px; }
.scr { background: #0e1218; color: #d7dbe2; border-radius: 10px; overflow: hidden; font-family: var(--sans); font-size: 9px; line-height: 1.2; }
.scr b, .scr span, .scr em, .scr li, .scr i { font-style: normal; font-weight: 500; }
.iq-top, .tvw-top, .ct-tabs, .tos-menu, .iq-exp, .mt-tabs, .tvw-range { display: flex; gap: 0.35rem; align-items: center; padding: 0.28rem 0.4rem; background: #161b22; }
.iq-top { justify-content: space-between; }
.iq-top em, .tvw-top em { color: #8b93a0; font-size: 8px; }
.iq-main, .tvw-body, .mt-body, .ct-body, .tos-body { display: flex; min-height: 6.2rem; }
.iq-chart, .tvw-chart, .mt-chart, .ct-chart, .tos-chart { flex: 1; position: relative; background:
  linear-gradient(#1a3d2a, #1a3d2a) 12% 70% / 4px 28px no-repeat,
  linear-gradient(#6e2430, #6e2430) 22% 40% / 4px 36px no-repeat,
  linear-gradient(#1a3d2a, #1a3d2a) 32% 55% / 4px 24px no-repeat,
  linear-gradient(#6e2430, #6e2430) 42% 48% / 4px 30px no-repeat,
  linear-gradient(#1a3d2a, #1a3d2a) 54% 32% / 4px 40px no-repeat,
  linear-gradient(#1a3d2a, #1a3d2a) 66% 46% / 4px 26px no-repeat,
  #0e1218; }
.iq-side { width: 4.6rem; padding: 0.25rem; display: flex; flex-direction: column; gap: 0.12rem; }
.iq-side span { color: #8b93a0; font-size: 8px; }
.iq-side b { font-size: 10px; }
.iq-hi, .iq-lo, .mt-sell, .mt-buy { display: grid; place-items: center; height: 1.15rem; border-radius: 4px; font-size: 9px; }
.iq-hi, .mt-buy { background: #14804a; color: #fff; }
.iq-lo, .mt-sell { background: #b42318; color: #fff; }
.iq-exp span, .tvw-range span, .mt-tabs span, .ct-tabs span, .tos-menu span { color: #8b93a0; }
.iq-exp .on, .tvw-range .on, .mt-tabs .on, .ct-tabs .on, .tos-menu .on { color: #f4f1ea; }
.tvw-tools { width: 1rem; background: #161b22; }
.tvw-chart { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 0.2rem; padding: 0.3rem; }
.tvw-chart span { font-family: var(--mono); font-size: 8px; color: #e7c15a; }
.tvw-list, .mt-watch, .ct-dom, .tos-chain { list-style: none; margin: 0; padding: 0.25rem; width: 5.4rem; background: #12171e; font-family: var(--mono); font-size: 7.5px; }
.mt-chart, .ct-chart { display: flex; align-items: flex-start; gap: 0.25rem; padding: 0.3rem; }
.iq-pair { display: flex; gap: 2px; }
.iq-pair i { flex: 1; height: 1.35rem; }
.iq-dep { background: #14804a; color: #fff; border-radius: 2px; padding: 0 3px; }
.mt-watch s { color: #e24b4b; text-decoration: none; }
.mt-watch u { color: #3d7dff; text-decoration: none; }
.mt-tf { display: flex; gap: 0.35rem; padding: 0.2rem 0.35rem; background: #2f6fed; color: #fff; font-size: 7px; }
.mt-tf .on { font-weight: 700; }
.ct-book { width: 5.6rem; padding: 0.2rem; background: #12171e; }
.ct-dom { width: auto; }
.tos-chain { width: 3.2rem; }
.tos-chain .up { color: #3d7dff; }
.tos-chain .dn { color: #e24b4b; }
.tos-study { height: 1.1rem; background: linear-gradient(#3d7dff, #3d7dff) 10% 40% / 30% 2px no-repeat, linear-gradient(#e24b4b, #e24b4b) 45% 60% / 40% 2px no-repeat, #0e1218; }
.show-copy p { margin: 0; color: rgba(244,241,234,0.86); max-width: 18rem; }
.show-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #f4f1ea; }
.float-chip {
  position: absolute; z-index: 1; border-radius: 999px; padding: 0.35rem 0.7rem;
  background: rgba(255,255,255,0.88); color: #0b0c0e; font-size: 0.78rem; font-weight: 600;
  animation: drift 4.8s ease-in-out infinite;
}
.chip-a { top: 14%; left: 8%; }
.chip-b { top: 14%; right: 8%; animation-delay: -1.6s; }
.chip-c { display: none; }
@keyframes show-cycle {
  0% { opacity: 0; transform: translateY(12px); }
  4% { opacity: 1; transform: none; }
  16% { opacity: 1; transform: none; }
  20% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 0; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
  .show-slide, .float-chip { animation: none; }
  .show-slide { opacity: 0; }
  .show-slide:first-child { opacity: 1; }
}
.hero h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); max-width: 40rem; margin: 1rem 0; }
.hero p { max-width: 36rem; color: var(--muted); font-size: 1.05rem; }
.mgmt-wish { margin-top: 5lh; font-family: "Times New Roman", Times, serif; font-style: italic; font-weight: 700; }
.hero p.mgmt-wish,
.hero p.mgmt-wish em,
.foot-copy .mgmt-wish { color: #ffffff; font-weight: 700; font-style: italic; font-family: "Times New Roman", Times, serif; text-shadow: 0 0 6px #fff, 0 0 16px rgba(255,255,255,0.95), 0 0 32px rgba(255,255,255,0.7); }
.foot-copy .mgmt-wish { margin: 0 0 0.35rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; align-items: center; }

.section { border-top: 1px solid var(--border); padding: 3rem 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  min-height: 100%;
}
.card > .feat-help {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  margin: 0;
}
.card > .feat-help .feat-tip { right: 0; bottom: 1.55rem; top: auto; }
.card h3 { font-size: 1.5rem; margin: 0.4rem 0; }
.card-rail,
.saved-row,
#combo-slot {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
  gap: 1rem;
}
.card-rail > .card,
.saved-row > .card,
#combo-slot > .card {
  display: flex;
  flex-direction: column;
  flex: 1 1 100%;
  min-width: 0;
}
@media (min-width: 720px) {
  .card-rail > .card,
  .saved-row > .card,
  #combo-slot > .card { flex-basis: calc((100% - 1rem) / 2); max-width: calc((100% - 1rem) / 2); }
}
@media (min-width: 960px) {
  .card-rail > .card,
  .saved-row > .card,
  #combo-slot > .card { flex-basis: calc((100% - 2rem) / 3); max-width: calc((100% - 2rem) / 3); }
}
.recommend-panel {
  margin-top: 1.75rem;
  background: #2f9e57;
  color: #0b0c0e;
  border-radius: 24px;
  padding: 1.35rem 1.25rem 1.5rem;
}
.recommend-panel h2,
.recommend-panel h2 .qmark { color: #0b0c0e; }
.recommend-panel h2 .qmark { border-color: rgba(11, 12, 14, 0.45); }
.recommend-panel .card,
.recommend-panel .card .muted,
.recommend-panel .card .subtle,
.recommend-panel .card .kicker,
.recommend-panel .card .ghost,
.recommend-panel .card .price { color: #fff; }
.card-rail .card { cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease; }
.card-rail .card.picked { background: var(--elevated); border-color: var(--border-strong); }
.price { font-family: var(--mono); font-size: 1.125rem; font-variant-numeric: tabular-nums; margin: 0; }
.card .price { margin-top: auto; margin-bottom: 0.35rem; }
.card .subtle { min-height: 2.4em; margin: 0; }
.card .card-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0;
  padding-top: 0.85rem;
  padding-right: 2rem;
  flex-wrap: nowrap;
}
.card .card-actions .card-add { margin-left: auto; flex: 0 0 auto; }
.card-detail h4 { margin: 0.9rem 0 0.3rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.card-detail p { margin: 0; line-height: 1.45; }
.recommend-panel .card-detail,
.recommend-panel .card-detail h4,
.recommend-panel .card-detail p { color: #fff; }
.sub-panel {
  margin-top: 1.75rem;
  background: #c62828;
  color: #fff;
  border-radius: 24px;
  padding: 1.35rem 1.25rem 1.5rem;
}
.sub-panel h2,
.sub-panel h2 .qmark { color: #fff; }
.sub-panel h2 .qmark { border-color: rgba(255, 255, 255, 0.7); }
.sub-panel .card { width: 100%; max-width: none; color: #fff; }
.sub-layout { display: grid; grid-template-columns: minmax(16rem, 26rem) 1fr; gap: 1.25rem; align-items: center; }
.sub-teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sub-tease { margin: 0; padding: 0.7rem; border-radius: 14px; background: #101114; border: 1px solid rgba(255,255,255,0.08); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.sub-tease:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.35); box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.sub-tease:hover figcaption { color: #fff; }
.sub-tease:hover .tease-slots span { background: #26282e; }
.sub-tease:hover .tease-a,
.sub-tease:hover .tease-b,
.sub-tease:hover .tease-price { animation-duration: 1.1s; }
.sub-tease-chart:hover svg rect { fill: #1a1d26; }
.sub-tease figcaption { margin-bottom: 0.4rem; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #c8c2b8; transition: color 0.2s ease; }
.tease-slots { display: grid; gap: 0.28rem; margin-bottom: 0.45rem; }
.tease-slots span { display: block; padding: 0.28rem 0.5rem; border-radius: 8px; background: #1b1d22; color: #f4f1ea; font-size: 0.75rem; }
.sub-tease svg { width: 100%; height: 44px; display: block; }
.sub-tease-chart svg { height: 92px; }
.tease-a, .tease-b, .tease-price { fill: none; stroke-linecap: round; }
.tease-a { stroke: #42a5f5; stroke-width: 1.6; stroke-dasharray: 8 6; animation: tease-run 2.4s linear infinite; }
.tease-b { stroke: #ffd54f; stroke-width: 1.4; stroke-dasharray: 5 7; animation: tease-run 3s linear infinite; }
.tease-price { stroke-dasharray: 10 8; animation: tease-run 2.8s linear infinite; }
@keyframes tease-run { to { stroke-dashoffset: -80; } }
@media (max-width: 800px) {
  .sub-layout, .sub-teasers { grid-template-columns: 1fr; }
}
.sub-benefits { margin: 0.85rem 0 1rem; padding-left: 1.15rem; color: #fff; }
.sub-benefits li { margin: 0.45rem 0; line-height: 1.45; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); font-size: 0.75rem; font-family: var(--mono); }

.signup-page { max-width: 52rem; }
.signup-page .btn { margin-bottom: 1.25rem; }
.signup-page .sub-offer { margin-bottom: 5rem; }
.sub-offer { margin: 1.25rem 0 1.5rem; }
.sub-offer .price { margin: 0.35rem 0; }
.receipt-serial { font-family: var(--mono); letter-spacing: 0.08em; }
.sub-start { display: grid; gap: 0.65rem; margin-top: 0.35rem; max-width: 22rem; }
.sub-start .btn { margin-bottom: 0; }
.sub-pay .btn, .sub-pay-link { display: inline-flex; align-items: center; gap: 0.55rem; }
.sub-pay .paypal-mark, .sub-pay-link .paypal-mark { width: 22px; height: 22px; display: block; flex: 0 0 auto; }
.footer {
  border-top: 1px solid var(--border); padding: 2rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.5rem;
}
.foot-copy { display: grid; gap: 0.4rem; width: 100%; font-family: var(--sans); font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.foot-copy span, .foot-copy p { margin: 0; font: inherit; color: inherit; letter-spacing: 0; }
.foot-copy p { display: flex; flex-wrap: wrap; align-items: baseline; }
.foot-copy a { color: inherit; font: inherit; }
.foot-copy a:not(:last-child)::after { content: "·"; margin: 0 0.45rem; color: inherit; }
.foot-copy .mgmt-wish { margin: 0 0 0.35rem; color: #ffffff; font-family: "Times New Roman", Times, serif; font-style: italic; font-weight: 700; letter-spacing: 0; text-shadow: 0 0 6px #fff, 0 0 16px rgba(255,255,255,0.95), 0 0 32px rgba(255,255,255,0.7); }
.platform-strip { flex: 1 1 100%; min-width: 0; margin-bottom: 0.5rem; overflow-x: auto; }
.platform-logos {
  list-style: none; display: grid; grid-template-columns: repeat(7, 4cm);
  justify-content: center; gap: 0.15rem 0.35rem; padding: 0; margin: 0.75rem auto 0; width: max-content;
}
.platform-paypal { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; }
.platform-logos li { border: 0; background: transparent; }
.platform-logos li a { position: relative; display: flex; align-items: center; justify-content: center; padding: 0; opacity: 1; }
.platform-logos li a:hover, .platform-logos li a:focus-visible { opacity: 1; }
.platform-mark { width: 4cm; height: 4cm; display: block; background: none; color: inherit; animation: mark-neon 3.5s linear infinite; }
@keyframes mark-neon {
  0%, 57.1% { filter: grayscale(1) brightness(0.55); }
  57.2%, 100% { filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .platform-mark { animation: none; filter: none; }
}
.platform-logos img.platform-mark { object-fit: contain; }
.platform-overlay {
  display: none; position: absolute; left: calc(100% + 0.35rem); top: 50%; transform: translateY(-50%);
  width: max-content; padding: 0.15rem 0.45rem; border-radius: 6px;
  font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0; text-transform: none;
  color: #0b0c0e; background: #f4f1ea; line-height: 1.2; z-index: 5; pointer-events: none;
}
.platform-logos li a:hover .platform-overlay,
.platform-logos li a:focus-visible .platform-overlay { display: block; }

.field { display: block; margin: 0.75rem 0; }
.field span { display: block; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.35rem; }
input, textarea, select, .inst-bar {
  width: 100%; min-height: 44px; padding: 0.5rem 0.75rem;
  background: var(--elevated); color: var(--fg);
  border: 1px solid var(--border); border-radius: 12px; font: inherit;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, textarea:focus, select:focus, .inst-bar:focus {
  outline: 1px solid var(--border-strong);
  border-color: var(--border-strong);
}
input[type="range"] {
  width: 100%; height: 1.75rem; min-height: 1.75rem; padding: 0; margin: 0.2rem 0;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
  accent-color: var(--accent); cursor: pointer; touch-action: none;
}
input[type="color"] { width: 44px; height: 36px; padding: 2px; cursor: pointer; }
input[type="checkbox"] { width: auto; min-height: auto; accent-color: var(--accent); }

.studio {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 80vh;
}
@media (min-width: 960px) {
  .studio { grid-template-columns: 220px 1fr 260px; }
}
.pane { padding: 1rem; border-bottom: 1px solid var(--border); }
@media (min-width: 960px) {
  .pane { border-bottom: 0; }
  .pane.left { border-right: 1px solid var(--border); }
  .pane.right { border-left: 1px solid var(--border); }
}
.block-btn {
  width: 100%; text-align: left; background: transparent; color: var(--muted);
  border: 0; min-height: 44px; border-radius: 12px; padding: 0 0.5rem;
}
.block-btn.on { background: var(--elevated); color: var(--fg); }
.artboard {
  background-image: radial-gradient(rgba(232,228,220,0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 1.5rem;
}
.frame {
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 24px;
  overflow: hidden; max-width: 920px; margin: 0 auto;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  pointer-events: none; transform: scale(0.92); transform-origin: top center;
}

.list { list-style: none; padding: 0; margin: 1.5rem 0; border-top: 1px solid var(--border); }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-line { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
.cart-x { min-height: 2rem; min-width: 2rem; padding: 0; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--fg); font: inherit; }
.paypal-logo { display: block; height: 28px; width: auto; margin: 0.15rem 0 0.75rem; }
.terms { margin-top: 1rem; color: var(--muted); font-size: 0.85rem; }
.terms h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--fg); }
.terms p { margin: 0.45rem 0; }
.terms a { text-decoration: underline; }
.pay-methods legend { padding: 0 .4rem; color: var(--muted); font-size: .85rem; }
.pay-option { display: flex; gap: .6rem; align-items: center; margin: .45rem 0; cursor: pointer; }

.hidden { display: none !important; }

/* Tools strip on storefront */
.tools-hero { display: grid; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 720px) {
  .tools-hero { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .tools-hero { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.35rem; transition: border-color .15s;
}
.tool-card:hover { border-color: var(--border-strong); }
.tool-card .icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 0.85rem;
  font-size: 1.15rem; background: var(--elevated); border: 1px solid var(--border);
}

/* Generators */
.gen-layout {
  display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-top: 1.5rem;
}
@media (min-width: 960px) {
  .gen-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.gen-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.35rem;
}
.gen-panel h3 { font-size: 1.35rem; margin: 0 0 1rem; }
.slot-row {
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem;
  align-items: center; margin-bottom: 0.5rem;
}
.slot-num {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.75rem;
  background: var(--elevated); border: 1px solid var(--border); color: var(--fg);
}
.ind-schemes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.75rem; }
.ind-schemes > span { font-size: 0.75rem; color: var(--muted); margin-right: 0.25rem; }
.scheme { text-transform: capitalize; }
.scheme.on { border-color: var(--fg); color: var(--fg); }
.ind-stage { --up: #26a69a; --dn: #ef5350; --band: #4fc3f7; --mid: #f6c945; --signal: #ffb74d; --cloud: rgba(38, 166, 154, 0.28); min-height: 16rem; display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; }
.ind-stage[data-scheme="ocean"] { --up: #4dd0e1; --dn: #7e57c2; --band: #80deea; --mid: #b2ebf2; --signal: #4fc3f7; --cloud: rgba(77, 208, 225, 0.28); }
.ind-stage[data-scheme="warm"] { --up: #ffb74d; --dn: #e57373; --band: #ffcc80; --mid: #ffe082; --signal: #ff8a65; --cloud: rgba(255, 183, 77, 0.28); }
.ind-lane { display: grid; grid-template-columns: 11rem 1fr; gap: 0.75rem; align-items: center; }
.ind-lane label { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; }
.ind-lane span { font-size: 0.82rem; color: var(--muted); }
.ind-lane input[type="color"] { width: 1.35rem; height: 1.35rem; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ind-lane svg { width: 100%; height: 2.2rem; overflow: hidden; }
.ind-line, .ind-dim, .bb-edge, .bb-mid { fill: none; vector-effect: non-scaling-stroke; }
.ind-line { stroke: #9ad0ff; stroke-width: 1.6px; }
.ind-dim { stroke: #8d887f; stroke-width: 1.15px; }
.ind-level { stroke: rgba(154, 208, 255, 0.4); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.bb-edge { stroke: var(--band); stroke-width: 1.4px; }
.bb-mid { stroke: var(--mid); stroke-width: 1.35px; }
.ind-stage .hist-up, .ind-stage .sig-up, .ind-stage .sar-up { fill: var(--up); }
.ind-stage .hist-dn, .ind-stage .sig-dn, .ind-stage .sar-dn { fill: var(--dn); }
.c-macd { stroke: #42a5f5; }
.c-signal { stroke: var(--signal); }
.c-rsi { stroke: #ce93d8; }
.c-stoch { stroke: #26c6da; }
.c-cci { stroke: #b388ff; }
.c-will { stroke: #f48fb1; }
.c-tii { stroke: #80deea; }
.c-atr { stroke: #ffab91; }
.c-adx { stroke: #ffe082; }
.c-aroon { stroke: #b39ddb; }
.ichi-a { stroke: #26a69a; }
.ichi-b { stroke: #ef9a9a; }
.ind-hist { fill: #6f6b64; }
.ind-cloud { fill: var(--cloud); stroke: none; }
.ind-dot { fill: #c4bfb6; }
.sar-up { fill: #26a69a; }
.sar-dn { fill: #ef5350; }
.lab-price.up b { color: #3ddc84; }
.lab-price.dn b { color: #ff6b6b; }
.chart-grid, .chart-grid.time { stroke: #d9d4cc; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart-grid.time { stroke: #cfc9c0; }
.chart-label { fill: #5c584f; font-size: 8px; font-family: var(--mono); }
.candle-up { fill: var(--up, #1f8f4e); stroke: none; }
.candle-dn { fill: var(--dn, #b42318); stroke: none; }
.candle-wick { fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.candle-wick.up { stroke: var(--up, #3ddc84); }
.candle-wick.dn { stroke: var(--dn, #ff6b6b); }
.candle-up rect { fill: var(--up, #1f8f4e); stroke: none; }
.candle-dn rect { fill: var(--dn, #b42318); stroke: none; }
.candle-up line { stroke: var(--up, #3ddc84); fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.candle-dn line { stroke: var(--dn, #ff6b6b); fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.tan-slope { fill: none; stroke: #e2b657; stroke-width: 0.4; }
.tan-deg { fill: #e2b657; font-size: 11px; font-family: var(--mono); }
.obos-line { fill: none; stroke: #7eb6ff; stroke-width: 0.35; }
.obos-level { stroke: #35527a; stroke-width: 0.28; }
.sig-up { fill: #3ddc84; }
.sig-dn { fill: #ff6b6b; }
.entry line { fill: none; stroke-width: 0.3; }
.entry.call line { stroke: #3ddc84; }
.entry.call circle, .entry.call text { fill: #3ddc84; }
.entry.put line { stroke: #ff6b6b; }
.entry.put text { fill: #ff8d8d; }
.entry.put circle { fill: none; stroke: #ff6b6b; stroke-width: 0.35; }
.entry text { stroke: none; }
.entry.expired { opacity: 0.35; }
.sig-mark, .sig-deg { animation: sig-pop 1.8s ease-in-out infinite; }
.sig-mark.call { fill: #b7b2a8; }
.sig-mark.put { fill: #6f6b64; }
.sig-deg { fill: #c4bfb6; font-size: 8px; font-family: var(--mono); }
@keyframes sig-pop { 0%, 100% { opacity: 0.2; } 45% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sig-mark, .sig-deg { animation: none; opacity: 0.85; } }
.bb-edge, .bb-mid { fill: none; stroke: #8a867e; stroke-width: 1.3px; vector-effect: non-scaling-stroke; }
.bb-mid { stroke: #c4bfb6; stroke-width: 1.5px; }
.preview-box {
  background: #08090c; border: 1px solid var(--border);
  border-radius: 12px; padding: 0.85rem;
  font-family: var(--mono); font-size: 0.72rem;
  line-height: 1.45; color: #a8a49c;
  max-height: 420px; overflow: auto; white-space: pre-wrap; word-break: break-word;
}
.preview-box.prose {
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg);
  background: var(--surface);
}
.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.8rem; background: var(--elevated);
  border: 1px solid var(--border); color: var(--muted);
}
.chip.on { border-color: var(--border-strong); color: var(--fg); }
.range-row { display: flex; align-items: center; gap: 0.75rem; }
.range-val {
  font-family: var(--mono); min-width: 2.5rem; text-align: right; color: var(--fg);
}

/* Search portal */
.search-bar { display: flex; gap: 0.5rem; margin: 1rem 0 1.25rem; }
.search-wrap { position: relative; margin: 1rem 0 1.25rem; }
.search-wrap input { width: 100%; min-height: 48px; font-size: 1rem; border-radius: 14px; padding-left: 1rem; background: #d5d3cd; color: #0b0c0e; }
.search-wrap input::placeholder { color: #5c5852; }
.suggest {
  position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 0.3rem);
  list-style: none; margin: 0; padding: 0 0.3rem;
  background: var(--surface); border: 1px solid transparent; border-radius: 14px;
  max-height: 0; overflow: hidden; opacity: 0; transform: translateY(-10px);
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.28s ease, padding 0.28s ease;
}
.suggest.open {
  max-height: 18rem; opacity: 1; transform: none; padding: 0.3rem;
  border-color: var(--border); pointer-events: auto; overflow: auto;
}
.suggest button { display: block; width: 100%; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 0.45rem 0.7rem; border-radius: 8px; cursor: pointer; }
.suggest button:hover { background: rgba(255,255,255,0.06); }
.suggest mark { background: transparent; color: inherit; font-weight: 650; text-decoration: underline; }
.inst-drop { position: relative; }
.inst-bar { width: 100%; text-align: left; cursor: pointer; }
.inst-grid {
  display: none; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 0.35rem);
  grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0.35rem; padding: 0.55rem;
  background: var(--elevated); border: 1px solid var(--border); border-radius: 12px;
  max-height: 16rem; overflow: auto;
}
.inst-drop.open .inst-grid { display: grid; }
.inst-grid button {
  min-height: 2rem; padding: 0.25rem 0.35rem; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--fg); font: inherit; font-size: 0.82rem;
}
.inst-grid button.on, .inst-grid button:hover { border-color: var(--border-strong); background: var(--surface); }
.lab-picks { display: grid; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 800px) { .lab-picks { grid-template-columns: 16rem 1fr; } }
.lab-picks h2 { margin: 0 0 0.6rem; font-size: 1.35rem; }
.type-list, .drop-panel { display: flex; flex-direction: column; gap: 0.25rem; max-height: 18rem; overflow: auto; }
.type-list button, .drop-panel button {
  text-align: left; background: transparent; color: inherit;
  border: 1px solid transparent; border-radius: 8px; padding: 0.4rem 0.55rem;
}
.type-list button.on, .drop-panel button.on { border-color: var(--border-strong); background: var(--elevated); }
#lab-filter { width: 100%; margin-bottom: 0.55rem; }
.lab-desk .row { align-items: stretch; }
.lab-desk .field { flex: 1 1 100%; }
.lab-desk .card { width: 100%; min-width: 0; }
.lab-price { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--mono); }
.lab-price b { font-size: 1.6rem; font-weight: 500; }
.chart-frame { position: relative; }
.chart-zoom {
  display: flex; align-items: center; gap: 0.5rem; margin: 0.35rem 0 0.75rem;
}
.chart-zoom b { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--fg); }
.zoom-type { position: relative; display: flex; align-items: center; gap: 0.4rem; margin: 0; font-size: 0.82rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.zoom-type input { width: 6.2rem; min-height: 0; height: 2rem; }
.time-pick { position: relative; display: block; }
.time-menu { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 7.5rem; max-height: 16rem; overflow: auto; background: #1a1c20; border: 1px solid var(--border-strong); border-radius: 12px; padding: 0.3rem; }
.time-menu[hidden] { display: none; }
.time-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--fg); font: inherit; padding: 0.4rem 0.6rem; border-radius: 8px; cursor: pointer; }
.time-menu button:hover { background: rgba(255,255,255,0.06); }
.month-compare { margin: 0.4rem 0 1rem; }
.month-compare h2 { font-size: 1.15rem; margin: 0 0 0.6rem; }
.month-row { display: grid; grid-template-columns: 2.4rem 1fr 4.6rem; gap: 0.55rem; align-items: center; margin: 0.28rem 0; font-family: var(--mono); font-size: 0.78rem; }
.month-track { height: 0.45rem; background: #1a1e26; border-radius: 99px; overflow: hidden; }
.month-track i { display: block; height: 100%; }
.month-track i.up { background: #1f8f4e; }
.month-track i.dn { background: #b42318; }
.month-row b { font-weight: 500; text-align: right; }
.month-row b.up { color: #3ddc84; }
.month-row b.dn { color: #ff6b6b; }
.tan-stop { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; max-width: 22rem; margin: 0.4rem 0; }
.tan-stop input[type="number"] { width: 4.5rem; }
.tan-stop input[type="color"] { width: 2.6rem; height: 2rem; padding: 0.15rem; }
.lab-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0.85rem 0 0.45rem; }
.lab-tab { display: flex; align-items: center; gap: 0.1rem; border: 1px solid var(--border); border-radius: 8px; padding: 0.1rem 0.2rem; background: var(--surface); }
.lab-tab.on { border-color: var(--border-strong); background: var(--elevated); }
.lab-tab input { width: 7.5rem; min-height: 0; height: 1.8rem; padding: 0 0.35rem; border: 0; background: transparent; }
.lab-tab button { height: 1.6rem; min-width: 1.4rem; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.lab-edit { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; align-items: end; margin-bottom: 0.55rem; }
.lab-edit label { display: grid; gap: 0.2rem; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.lab-edit select, .lab-edit input[type="number"] { min-height: 0; height: 2rem; width: auto; }
.lab-edit input[type="color"] { width: 2.4rem; height: 2rem; padding: 0.12rem; }
.lab-edit .check { grid-auto-flow: column; align-items: center; text-transform: none; letter-spacing: 0; font-size: 0.85rem; color: var(--fg); }
.lab-board { display: block; cursor: grab; touch-action: none; }
.lab-board.dragging { cursor: grabbing; }
.chart-scroll { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; margin: 0.55rem 0 0.15rem; }
.chart-scroll > span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chart-scroll-track { position: relative; height: 1.65rem; border-radius: 999px; background: #171a20; border: 1px solid var(--border); touch-action: none; }
.chart-scroll-thumb { position: absolute; top: 2px; bottom: 2px; left: 0; width: 30%; border: 0; border-radius: 999px; background: #8a867e; min-width: 2rem; padding: 0; cursor: grab; }
.chart-scroll-track.dragging .chart-scroll-thumb { cursor: grabbing; }
#lab-now { height: 2rem; padding: 0 0.8rem; }
.lab-pane { display: none; margin: 0; min-width: 0; }
.lab-pane.on { display: flex; }
.iq-screen { flex-direction: column; background: #070809; border-radius: 12px; overflow: hidden; color: #d7d7d7; }
.iq-topbar { display: grid; grid-template-columns: auto auto 1fr; gap: 0.75rem; align-items: center; padding: 0.55rem 0.75rem 0.2rem; font-family: var(--sans); }
.iq-pair b { font-size: 0.95rem; color: #f4f4f4; font-weight: 600; }
.iq-pair span, .iq-open { color: #9a9a9a; font-size: 0.72rem; }
.iq-open { justify-self: end; }
.iq-open b { color: #f4f4f4; font-family: var(--mono); font-weight: 500; margin-left: 0.35rem; }
.iq-tools { display: flex; gap: 0.3rem; }
.iq-ico { width: 1.35rem; height: 1.35rem; min-height: 0; padding: 0; border-radius: 999px; border: 1px solid #3a3a3a; background: #161616; color: #cfcfcf; font-size: 0.72rem; }
.iq-ico.on { color: #f07818; border-color: #f07818; }
.iq-stage { position: relative; flex: 1; min-height: 0; background-color: #070809; background-image: radial-gradient(ellipse 16% 20% at 46% 58%, rgba(255,255,255,0.05), transparent 72%), radial-gradient(ellipse 20% 14% at 74% 40%, rgba(255,255,255,0.045), transparent 70%), radial-gradient(ellipse 12% 10% at 28% 36%, rgba(255,255,255,0.04), transparent 70%), radial-gradient(rgba(255,255,255,0.18) 0.55px, transparent 0.75px); background-size: auto, auto, auto, 5px 5px; }
.iq-screen .lab-chart { width: 100%; height: 100%; margin: 0; border-radius: 0; background: transparent; touch-action: none; }
.iq-screen .chart-grid, .iq-screen .chart-grid.time { stroke: rgba(255,255,255,0.08); }
.iq-screen .chart-label { fill: #8d8d8d; font-size: 7px; }
.iq-line { fill: none; stroke: #f3f3f3; stroke-width: 1.15px; vector-effect: non-scaling-stroke; }
.iq-rail { stroke: #c56a1a; stroke-width: 1.2px; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.iq-tag { fill: #e07a1a; }
.iq-tag-text { fill: #1a1008; font-size: 7px; font-family: var(--mono); }
.iq-vol.up { fill: #1f8f4e; }
.iq-vol.dn { fill: #8d3a32; }
.iq-vol.flat { fill: #6d6d6d; }
.iq-hide { position: absolute; right: 0.6rem; bottom: 0.45rem; min-height: 0; height: 1.7rem; padding: 0 0.7rem; border-radius: 999px; border: 1px solid #3a3a3a; background: #2a2a2a; color: #eee; font-size: 0.75rem; }
.iq-quote { display: flex; gap: 0.8rem; padding: 0.25rem 0.75rem 0.45rem; font-family: var(--mono); font-size: 0.68rem; color: #bdbdbd; }
.iq-ask { color: #e07a1a; }
.lab-pane figcaption { display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.lab-pane figcaption b { color: var(--fg); font-weight: 500; }
.lab-pane figcaption em { font-style: normal; }
.lab-pane figcaption em.up { color: #3ddc84; }
.lab-pane figcaption em.dn { color: #ff6b6b; }
.expiry-clock {
  display: grid; align-content: center; justify-items: center; min-width: 6.5rem;
  padding: 0.35rem 0.8rem; border: 1px solid var(--border); border-radius: 12px; background: #10141b;
}
.expiry-clock b { font-family: var(--mono); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.04em; color: #f4f1ea; }
.expiry-clock span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: #9a958c; }
.expiry-clock.running b { color: #e2b657; }
.script-grid { display: none; position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 0.35rem); padding: 0.45rem; background: var(--elevated); border: 1px solid var(--border); border-radius: 12px; max-height: 16rem; overflow: auto; }
.inst-drop.open .script-grid { display: block; }
.script-grid p { margin: 0.45rem 0.2rem 0.2rem; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.script-grid button { display: block; width: 100%; text-align: left; min-height: 2rem; margin: 0.15rem 0; padding: 0.3rem 0.5rem; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--fg); font: inherit; font-size: 0.85rem; }
.script-grid button.on, .script-grid button:hover { border-color: var(--border-strong); background: var(--surface); }
.lab-chart { width: 100%; height: 68vh; background: #070809; border-radius: 12px; margin: 0.75rem 0; }
.combo-card { margin: 0 0 1.25rem; }
.saved-row { margin-bottom: 1.25rem; }
.saved-row:empty { display: none; }
.search-bar input {
  flex: 1; min-height: 48px; font-size: 1rem; border-radius: 14px; padding-left: 1rem;
}
.search-results { display: grid; gap: 0.65rem; }
.search-item {
  padding: 1rem 1.15rem; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 1rem;
  align-items: flex-start; flex-wrap: wrap;
}
.search-item:hover { border-color: var(--border-strong); }
.badge {
  font-family: var(--mono); font-size: 0.65rem;
  padding: 0.2rem 0.45rem; border-radius: 6px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-cat { background: var(--elevated); color: var(--muted); border: 1px solid var(--border); }
.badge-script { background: rgba(16,185,129,0.15); color: #6ee7b7; }
.badge-gen { background: rgba(200,196,188,0.12); color: var(--accent); }
.status-ok { color: #10b981; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

.mix-grid { display: grid; gap: 0.75rem; margin: 0 0 1.5rem; }
@media (min-width: 800px) { .mix-grid { grid-template-columns: 1fr 1fr; } }
.mix-card {
  display: grid; grid-template-columns: 148px 1fr; gap: 0.85rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 0.75rem 0.85rem;
}
.mix-viz { background: #08090c; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.mix-svg { display: block; width: 100%; height: auto; }
@media (max-width: 520px) { .mix-card { grid-template-columns: 1fr; } }

/* —— Script Test Lab —— */
.lab-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
}
@media (min-width: 960px) {
  .lab-grid { grid-template-columns: 260px 1fr 280px; align-items: start; }
}
.lab-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.15rem;
}
.lab-panel h3 { font-size: 1.15rem; margin: 0 0 0.85rem; }
.lab-chart-wrap {
  background: #08090c; border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; position: relative;
}
.lab-chart-wrap canvas { display: block; width: 100%; height: 380px; }
.lab-status {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  margin-bottom: 0.75rem;
}
.pill {
  font-family: var(--mono); font-size: 0.7rem;
  padding: 0.25rem 0.55rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.pill.on { color: #6ee7b7; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.08); }
.pill.warn { color: #fcd34d; border-color: rgba(252,211,77,0.3); }
.pill.off { color: var(--subtle); }
.lab-trade-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.75rem; }
.lab-trade-row .btn { width: 100%; }
.btn-call { background: #10b981; color: #fff; }
.btn-put { background: #ef4444; color: #fff; }
.lab-log {
  font-family: var(--mono); font-size: 0.72rem; color: #a8a49c;
  max-height: 180px; overflow: auto; background: #08090c;
  border: 1px solid var(--border); border-radius: 12px; padding: 0.65rem;
  white-space: pre-wrap;
}
.lab-stat {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.4rem 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.lab-stat span:last-child { font-family: var(--mono); }
.server-list { display: grid; gap: 0.35rem; margin: 0.5rem 0 0.75rem; }
.server-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.45rem 0.6rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--elevated);
  font-size: 0.8rem; cursor: pointer;
}
.server-item:hover, .server-item.sel { border-color: var(--border-strong); }
.server-item .lat { font-family: var(--mono); color: var(--subtle); font-size: 0.7rem; }

@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  .wrap { padding: 0 0.85rem; }
  .header-inner {
    height: auto; max-height: none; flex-wrap: wrap; overflow: visible;
    padding: 0.55rem 0 0.45rem; gap: 0.2rem 0.5rem;
  }
  .brand { font-size: 1.65rem; }
  .nav { flex-wrap: wrap; width: 100%; gap: 0.1rem; }
  .nav a, .cart-btn { min-height: 40px; padding: 0 0.55rem; font-size: 0.8rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.98rem; }
  .mgmt-wish { margin-top: 1.5rem; }
  .show-stage, .cart-show .show-stage { height: 20rem; }
  .show-copy { left: 0.85rem; right: 0.85rem; }
  .show-copy h2 { font-size: 1.25rem; }
  .section { padding: 2rem 0; }
  .platform-strip { overflow: visible; }
  .platform-logos {
    grid-template-columns: repeat(4, 1.7cm);
    width: 100%;
    max-width: 100%;
  }
  .platform-mark { width: 1.7cm; height: 1.7cm; }
  .platform-paypal { grid-row: auto; }
  .sub-panel, .recommend-panel { padding: 1rem 0.8rem 1.1rem; }
  .card { padding: 1.1rem; }
  .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-chart-wrap canvas { height: 260px; }
  .cookie-bar { left: 0.6rem; right: 0.6rem; }
}
