:root {
  --bg: #f7f9f7;
  --ink: #0f1712;
  --muted: #647067;
  --line: #dce4de;
  --panel: #ffffff;
  --panel-soft: #eef4f0;
  --green: #00c805;
  --green-dark: #008f0a;
  --red: #df4b4b;
  --body-wash-start: rgba(255, 255, 255, 0.88);
  --body-wash-end: rgba(247, 249, 247, 0.92);
  --body-glow: rgba(0, 200, 5, 0.08);
  --border-soft: rgba(15, 23, 18, 0.08);
  --panel-glass: rgba(255, 255, 255, 0.9);
  --suggest-bg: rgba(255, 255, 255, 0.98);
  --card-bg: rgba(255, 255, 255, 0.92);
  --field-bg: #ffffff;
  --button-bg: #0f1712;
  --button-text: #ffffff;
  --button-hover: #00c805;
  --hover-soft: rgba(15, 23, 18, 0.07);
  --focus-ring: rgba(0, 200, 5, 0.11);
  --ad-bg: rgba(255, 255, 255, 0.72);
  --ad-stripe: rgba(0, 200, 5, 0.08);
  --ad-accent: #25312a;
  --scenario-bg: #fbfdfb;
  --chart-bg: #ffffff;
  --chart-wash: rgba(0, 200, 5, 0.04);
  --grid-line: #e8eee9;
  --chart-label: #718076;
  --strike-line: #a9b5ad;
  --break-even-line: #111812;
  --current-price-marker: #147efb;
  --chart-area-start: rgba(0, 200, 5, 0.24);
  --chart-area-end: rgba(0, 200, 5, 0);
  --shadow: 0 18px 48px rgba(24, 38, 29, 0.12);
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d0a;
    --ink: #eef7f0;
    --muted: #91a095;
    --line: #26332b;
    --panel: #101812;
    --panel-soft: #16231a;
    --green-dark: #00e30a;
    --red: #ff6b6b;
    --body-wash-start: rgba(8, 13, 10, 0.94);
    --body-wash-end: rgba(8, 13, 10, 0.98);
    --body-glow: rgba(0, 200, 5, 0.12);
    --border-soft: rgba(238, 247, 240, 0.1);
    --panel-glass: rgba(16, 24, 18, 0.92);
    --suggest-bg: rgba(16, 24, 18, 0.98);
    --card-bg: rgba(16, 24, 18, 0.94);
    --field-bg: #0d1510;
    --button-bg: #00c805;
    --button-text: #041006;
    --button-hover: #35df3a;
    --hover-soft: rgba(238, 247, 240, 0.08);
    --focus-ring: rgba(0, 200, 5, 0.18);
    --ad-bg: rgba(16, 24, 18, 0.7);
    --ad-stripe: rgba(0, 200, 5, 0.11);
    --ad-accent: #d9e8dc;
    --scenario-bg: #0d1510;
    --chart-bg: #0d1510;
    --chart-wash: rgba(0, 200, 5, 0.08);
    --grid-line: #233129;
    --chart-label: #91a095;
    --strike-line: #657368;
    --break-even-line: #eef7f0;
    --current-price-marker: #64d2ff;
    --chart-area-start: rgba(0, 200, 5, 0.28);
    --chart-area-end: rgba(0, 200, 5, 0);
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

*::selection {
  background: transparent;
  color: inherit;
}

html {
  height: 100%;
  min-width: 320px;
  overflow: hidden;
  background: var(--bg);
}

html.theme-transition,
html.theme-transition * {
  transition-duration: 620ms;
  transition-property: background, background-color, border-color, box-shadow, color, fill, opacity, stroke;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--body-wash-start), var(--body-wash-end)),
    radial-gradient(circle at 18% 18%, var(--body-glow), transparent 32%),
    var(--bg);
}

body.access-locked .app-shell {
  opacity: 0;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: -26vmax;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 18%,
      color-mix(in srgb, var(--panel) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg) 74%, transparent) 38%,
      transparent 70%
    );
  transform: scale(0.08);
  transform-origin: 50% 18%;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.theme-morph body::after {
  opacity: 0.92;
  transform: scale(1);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, var(--body-wash-start), var(--body-wash-end)),
    radial-gradient(circle at 50% 40%, var(--body-glow), transparent 36%),
    var(--bg);
}

body:not(.access-locked) .access-gate {
  display: none;
}

.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(520px, 100%);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-glass);
  box-shadow: var(--shadow);
  text-align: center;
}

.access-password-input {
  width: 100%;
  min-height: 70px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: var(--field-bg);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  -webkit-user-select: text;
  user-select: text;
}

.access-password-input:focus {
  border-color: color-mix(in srgb, var(--green) 62%, var(--line));
  box-shadow: 0 0 0 8px var(--focus-ring);
}

.access-card button {
  min-width: 120px;
  min-height: 70px;
  border: 0;
  border-radius: 8px;
  color: var(--button-text);
  background: var(--button-bg);
  font-size: 24px;
  font-weight: 950;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.access-card button:hover,
.access-card button:focus-visible {
  color: #041006;
  background: var(--green);
}

.access-card button:active {
  transform: translateY(1px);
}

.access-card.is-wrong {
  animation: access-shake 260ms ease;
}

@keyframes access-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-7px);
  }

  75% {
    transform: translateX(7px);
  }
}

@media (max-width: 520px) {
  .access-card {
    grid-template-columns: 1fr;
  }

  .access-card button {
    width: 100%;
  }
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  height: 100vh;
  margin: 0 auto;
  padding: 24px 0;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  height: calc(100vh - 48px);
  place-items: center;
}

.ad-layout {
  position: relative;
  width: 100%;
  height: 100%;
}

.ad-layout:not([data-active-page="calculator"]) .ad-footer {
  display: none;
}

.ad-layout[data-active-page="ranking"] .ad-rail {
  display: none;
}

.hero-grid {
  display: grid;
  width: min(100%, 480px);
  transform: translateY(-26px);
}

.ad-layout .hero-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: min(480px, calc(100vw - 32px));
  height: max-content;
  margin: auto;
  transform: none;
}

.ad-layout[data-active-page="ranking"] .hero-grid {
  inset: clamp(150px, 20vh, 190px) 0 auto;
  width: min(700px, calc(100vw - 32px));
  margin: 0 auto;
}

.layout-custom.hero-grid {
  align-content: stretch;
}

.layout-custom.hero-grid > .page-panel:not([hidden]) {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.layout-custom.page-tabs .page-tab {
  height: 100%;
  min-height: 40px;
}

.layout-custom.ad-footer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-handle {
  position: absolute;
  z-index: 80;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--green) 34%, var(--line));
  border-radius: 7px;
  background: color-mix(in srgb, var(--field-bg) 92%, transparent);
  box-shadow: 0 8px 22px rgba(24, 38, 29, 0.12);
  color: var(--muted);
  opacity: 0;
  transition:
    opacity 140ms ease,
    color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.layout-surface:hover > .layout-handle,
.layout-surface:focus-within > .layout-handle,
.layout-surface.is-layout-dragging > .layout-handle,
.layout-surface.is-layout-resizing > .layout-handle {
  opacity: 1;
}

.layout-move-handle {
  top: 7px;
  left: 7px;
  cursor: grab;
}

.layout-resize-handle {
  right: 7px;
  bottom: 7px;
  cursor: nwse-resize;
}

.layout-move-handle::before,
.layout-move-handle::after,
.layout-resize-handle::before,
.layout-resize-handle::after {
  content: "";
  display: block;
}

.layout-move-handle::before {
  width: 11px;
  height: 11px;
  background:
    radial-gradient(circle, currentColor 1.4px, transparent 1.7px) 0 0 / 5px 5px;
}

.layout-resize-handle::before {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.layout-handle:hover,
.layout-handle:focus-visible,
.layout-surface.is-layout-dragging > .layout-move-handle,
.layout-surface.is-layout-resizing > .layout-resize-handle {
  background: var(--green);
  color: #041006;
  opacity: 1;
  outline: none;
}

.layout-surface.is-layout-dragging > .layout-move-handle {
  cursor: grabbing;
}

.danmaku-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.danmaku-layer.is-active {
  opacity: 1;
}

.danmaku-bullet {
  position: absolute;
  top: var(--danmaku-top, 50%);
  left: 0;
  display: inline-flex;
  width: max-content;
  max-width: min(520px, 72vw);
  align-items: center;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--green) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  box-shadow: 0 10px 28px rgba(24, 38, 29, 0.08);
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  line-height: 1;
  gap: 8px;
  pointer-events: auto;
  white-space: nowrap;
  transform: translateX(100vw);
  animation: danmaku-flight var(--danmaku-duration, 15s) linear forwards;
  backdrop-filter: blur(12px);
}

.danmaku-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.danmaku-like {
  display: inline-flex;
  height: 24px;
  min-width: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid color-mix(in srgb, var(--green) 32%, transparent);
  border-radius: 999px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.danmaku-like svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.danmaku-like-count {
  min-width: 7px;
  text-align: left;
}

.danmaku-like.is-liked {
  border-color: var(--green);
  background: var(--green);
  color: #041006;
}

.danmaku-bullet.is-own {
  border-color: color-mix(in srgb, var(--green) 62%, transparent);
  background: var(--green);
  box-shadow:
    0 10px 28px rgba(0, 200, 5, 0.18),
    0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent);
  color: #041006;
}

.danmaku-bullet.is-own .danmaku-like {
  border-color: rgba(4, 16, 6, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #041006;
}

.danmaku-bullet.is-own .danmaku-like.is-liked {
  background: #041006;
  color: var(--green);
}

@keyframes danmaku-flight {
  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(calc(-100% - 40px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .danmaku-layer {
    display: none;
  }
}

.page-tabs {
  position: fixed;
  top: clamp(72px, 11vh, 128px);
  left: 50%;
  z-index: 4;
  display: grid;
  width: min(480px, calc(100vw - 32px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--panel-glass);
  box-shadow: 0 10px 30px rgba(24, 38, 29, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.page-tab {
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.page-tab:hover,
.page-tab.is-active {
  background: var(--field-bg);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(27, 39, 31, 0.08);
}

.page-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.ad-rail {
  position: fixed;
  top: 82px;
  bottom: 18px;
  z-index: 2;
  display: grid;
  width: clamp(220px, calc((100vw - 520px) / 2 - 28px), 620px);
  height: auto;
  min-height: 0;
}

.ad-rail-left {
  left: 16px;
}

.ad-rail-right {
  right: 16px;
}

.ad-slot {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--ad-stripe), transparent 42%),
    var(--ad-bg);
  color: var(--muted);
  text-align: center;
}

.ad-slot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed color-mix(in srgb, var(--muted) 22%, transparent);
  border-radius: 6px;
  pointer-events: none;
}

.ad-slot span {
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

.ad-slot strong {
  max-width: calc(100% - 34px);
  overflow: hidden;
  color: var(--ad-accent);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.22;
  text-overflow: ellipsis;
}

.ad-slot small {
  max-width: calc(100% - 34px);
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.ad-slot-vertical {
  height: 100%;
  min-height: 0;
  padding: 28px 16px;
}

.ad-footer {
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  display: grid;
  height: clamp(68px, 9vh, 92px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ad-slot-horizontal {
  height: 100%;
  padding: 10px 18px;
}

.ad-slot-horizontal strong {
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  letter-spacing: 0;
}

.subcopy {
  width: min(100%, 520px);
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.calc-panel {
  position: relative;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.page-panel[hidden] {
  display: none;
}

.panel-title {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.panel-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.panel-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.chatter-panel .panel-title {
  position: relative;
  width: 100%;
}

.chatter-admin-toggle {
  position: absolute;
  top: 50%;
  right: 0;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--field-bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  transform: translateY(-50%);
}

.chatter-admin-toggle.is-active {
  border-color: color-mix(in srgb, var(--green) 48%, var(--line));
  color: var(--green-dark);
}

.ranking-list {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 14px;
  max-height: min(520px, calc(100vh - 310px));
  overflow-y: auto;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.ranking-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.ranking-topline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
}

.ranking-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 48px;
  padding: 4px;
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.ranking-toggle::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  z-index: 0;
  width: calc((100% - 20px) / 3);
  border-radius: 6px;
  background: var(--field-bg);
  box-shadow: 0 8px 18px rgba(27, 39, 31, 0.08);
  transform: translateX(0);
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    box-shadow 180ms ease;
}

.ranking-toggle.is-contracts::before {
  transform: translateX(calc(100% + 6px));
}

.ranking-toggle.is-comments::before {
  transform: translateX(calc((100% + 6px) * 2));
}

.ranking-toggle-button {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: clamp(12px, 1.5vw, 15px);
  font-weight: 780;
  transition:
    color 160ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ranking-toggle-button.is-active {
  color: var(--ink);
  transform: scale(1.015);
}

.ranking-section {
  display: grid;
  gap: 8px;
}

.ranking-section[hidden] {
  display: none;
}

.ranking-section-title {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ranking-section-title strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 880;
}

.ranking-section-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-rows,
.chatter-feed {
  display: grid;
  gap: 8px;
}

.chatter-panel {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100vw;
  min-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.chatter-panel .panel-title,
.chatter-feed {
  display: none;
}

.ranking-row,
.chatter-message {
  display: grid;
  min-height: 54px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
}

.ranking-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-color: var(--line);
  cursor: default;
  text-align: left;
}

.ranking-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.ranking-details {
  display: grid;
  min-width: 0;
  gap: 2px;
  justify-items: start;
}

.ranking-symbol {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 880;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row-comment .ranking-symbol {
  font-size: 14px;
  line-height: 1.2;
}

.ranking-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-tag {
  align-self: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.ranking-empty {
  min-height: 58px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.3;
  text-align: center;
}

.chatter-message {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  justify-items: start;
  max-height: 90px;
  padding: 13px 14px;
  overflow: hidden;
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    max-height 320ms ease,
    padding 320ms ease,
    border-color 320ms ease;
}

.chatter-message.is-hiding {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  opacity: 0;
  transform: translateY(-5px);
}

.chatter-feed {
  min-height: 0;
  align-content: end;
  overflow-y: auto;
  padding: 2px 2px 4px;
  overscroll-behavior: contain;
}

.chatter-text {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatter-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chatter-action {
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.chatter-action:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--green) 38%, var(--line));
  color: var(--green-dark);
}

.chatter-action:disabled,
.chatter-action.is-reported {
  cursor: default;
  opacity: 0.58;
}

.chatter-admin-action {
  display: none;
}

.chatter-panel.is-admin .chatter-admin-action {
  display: inline-flex;
}

.chatter-compose {
  position: fixed;
  top: var(--chatter-compose-y, auto);
  right: auto;
  bottom: var(--chatter-compose-bottom, 24px);
  left: var(--chatter-compose-x, 50%);
  z-index: 6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  width: min(680px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-glass);
  box-shadow: 0 18px 44px rgba(24, 38, 29, 0.14);
  cursor: grab;
  pointer-events: auto;
  transform: translateX(var(--chatter-compose-shift, -50%));
  backdrop-filter: blur(18px);
}

.chatter-compose.is-positioned {
  --chatter-compose-bottom: auto;
  --chatter-compose-shift: 0;
}

.chatter-compose.is-dragging {
  cursor: grabbing;
}

.chatter-compose input,
.chatter-compose button {
  height: 48px;
  border-radius: 8px;
  cursor: auto;
  font: inherit;
  font-weight: 760;
}

.chatter-compose input {
  min-width: 0;
  border: 1px solid var(--line);
  outline: none;
  padding: 0 12px;
  background: var(--field-bg);
  color: var(--ink);
}

.chatter-compose .chatter-ticker-input {
  width: 112px;
  flex: 0 0 auto;
  padding: 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.chatter-compose input:focus {
  border-color: rgba(0, 200, 5, 0.55);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.chatter-compose button {
  border: 0;
  padding: 0 16px;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
}

.chatter-compose button:hover {
  background: var(--button-hover);
}

.chatter-compose button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.search-label,
.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
  text-align: center;
}

.ticker-search {
  position: relative;
}

.ticker-ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 108px);
  color: var(--muted);
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
  opacity: 0.58;
  pointer-events: none;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

#ticker-ghost-caret {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(0);
}

#ticker-ghost-caret.is-hidden {
  opacity: 0;
}

.ticker-search.has-value .ticker-ghost {
  display: none;
}

.ticker-search input {
  width: 100%;
  height: 74px;
  padding: 0 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--panel-soft);
  caret-color: var(--green);
  color: var(--ink);
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 74px;
  text-align: center;
  text-transform: uppercase;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.ticker-search:not(.has-value) input {
  caret-color: transparent;
}

.ticker-search input:focus,
.field input:focus,
.field select:focus {
  border-color: rgba(0, 200, 5, 0.55);
  background: var(--field-bg);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

#clear-ticker {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition:
    opacity 140ms ease,
    background 160ms ease;
}

.ticker-search.has-value #clear-ticker {
  opacity: 1;
  pointer-events: auto;
}

#clear-ticker:hover {
  background: var(--hover-soft);
}

#clear-ticker span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

#clear-ticker span::before,
#clear-ticker span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

#clear-ticker span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

#clear-ticker span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.ticker-suggestions {
  position: absolute;
  top: 198px;
  left: 24px;
  right: 24px;
  bottom: auto;
  z-index: 50;
  display: grid;
  align-content: start;
  gap: 4px;
  max-height: min(326px, calc(100vh - 260px));
  padding: 8px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--suggest-bg);
  box-shadow: 0 18px 40px rgba(24, 38, 29, 0.14);
  backdrop-filter: blur(14px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ticker-suggestions[hidden] {
  display: none;
}

.ticker-suggestion {
  display: grid;
  grid-template-columns: minmax(58px, auto) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.ticker-suggestion:hover,
.ticker-suggestion.is-active {
  background: var(--panel-soft);
}

.ticker-symbol {
  font-size: 15px;
  font-weight: 880;
}

.ticker-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticker-rank {
  min-width: 54px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 820;
  text-align: right;
  text-transform: uppercase;
}

.control-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 48px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 8px;
  background: var(--panel-soft);
  overflow: hidden;
}

.calc-panel > .control-row:first-child {
  margin-top: 0;
  margin-bottom: 16px;
}

.control-row::before {
  content: "";
  position: absolute;
  inset: 4px auto 4px 4px;
  z-index: 0;
  width: calc((100% - 14px) / 2);
  border-radius: 6px;
  background: var(--field-bg);
  box-shadow: 0 8px 18px rgba(27, 39, 31, 0.08);
  transform: translateX(0);
  transition:
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    box-shadow 180ms ease;
}

.control-row:has(#put:checked)::before {
  transform: translateX(calc(100% + 6px));
}

.segmented-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-option {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 780;
  transition:
    color 160ms ease,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.segmented-input:checked + .segmented-option {
  color: var(--ink);
  transform: scale(1.015);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.field-grid + .field-grid {
  margin-top: 12px;
}

.field-grid-support {
  align-items: end;
}

.field input,
.field select {
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--field-bg);
  color: var(--ink);
  font-weight: 720;
  line-height: 50px;
  text-align: center;
}

.field input[type="number"] {
  appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.total-cost-field {
  position: relative;
}

.total-cost-field strong {
  display: grid;
  width: 100%;
  height: 50px;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--green) 16%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 72%, transparent), transparent),
    color-mix(in srgb, var(--field-bg) 88%, var(--green) 12%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--panel) 70%, transparent);
  color: var(--ink);
  font-size: 17px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#manual-iv::placeholder {
  color: var(--muted);
  opacity: 0.72;
  text-transform: uppercase;
}

.number-stepper {
  position: relative;
}

.number-stepper input {
  padding-right: 38px;
}

.number-stepper-buttons {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  display: grid;
  width: 28px;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.number-stepper-buttons button {
  position: relative;
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.number-stepper-buttons button:hover:not(:disabled) {
  color: var(--ink);
  background: var(--hover-soft);
}

.number-stepper-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.28;
}

.number-stepper-buttons button::before {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.number-stepper-buttons button:first-child::before {
  transform: translateY(2px) rotate(45deg);
}

.number-stepper-buttons button:last-child::before {
  transform: translateY(-2px) rotate(225deg);
}

.field select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 11px) 50%;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px;
  font-size: clamp(11px, 1.45vw, 15px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.field input:disabled,
.field select:disabled,
.calculate-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.calculate-button:disabled {
  box-shadow: none;
  transform: none;
}

.calculate-button {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 820;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.calculate-button:hover:not(:disabled) {
  background: var(--button-hover);
  box-shadow: 0 12px 24px rgba(0, 200, 5, 0.2);
  transform: translateY(-1px);
}

.results {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  grid-template-rows: minmax(0, 1fr);
  width: 100vw;
  height: 100dvh;
  padding: 18px;
  opacity: 0;
  overflow: hidden;
  background: var(--bg);
  transform: translateY(18px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.results-ad {
  position: fixed;
  top: 50%;
  z-index: 1;
  display: none;
  width: clamp(132px, 9vw, 178px);
  height: min(520px, calc(100dvh - 150px));
  min-height: 320px;
  transform: translateY(-50%);
}

.results-ad-left {
  left: 20px;
}

.results-ad-right {
  right: 20px;
}

.results.is-visible {
  display: grid;
  align-content: stretch;
  opacity: 1;
  transform: translateY(0);
}

.chart-board {
  position: relative;
  border: 0;
  border-radius: 0;
  background: var(--card-bg);
  display: flex;
  width: min(1500px, 100%);
  height: 100%;
  margin: 0 auto;
  min-height: 0;
  flex-direction: column;
  padding: 18px 20px 18px;
  overflow: hidden;
  box-shadow: none;
}

.simulated-board {
  gap: 12px;
}

.return-home-button {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--field-bg);
  box-shadow: 0 8px 22px rgba(24, 38, 29, 0.08);
}

.return-home-button:hover {
  background: var(--hover-soft);
}

.return-home-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.returns-header {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  min-height: 118px;
  padding: 4px 180px 0;
  text-align: center;
}

.returns-header > div {
  display: grid;
  justify-items: center;
}

.returns-title,
.returns-value {
  display: flex;
  align-items: center;
}

.returns-title {
  gap: 8px;
}

.returns-title h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.info-dot {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--chart-label);
  border-radius: 50%;
  color: var(--chart-label);
  background: var(--field-bg);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.info-dot:hover,
.info-dot[aria-expanded="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

.returns-info-panel {
  position: absolute;
  top: 38px;
  left: 50%;
  z-index: 12;
  width: min(620px, calc(100vw - 48px));
  max-height: min(320px, 48vh);
  margin-top: 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
  box-shadow: 0 14px 36px rgba(24, 38, 29, 0.14);
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
  text-align: left;
  transform: translateX(-50%);
}

.returns-info-panel[hidden] {
  display: none;
}

.returns-info-panel p {
  margin: 0;
}

.returns-info-panel p + p {
  margin-top: 10px;
}

.returns-value {
  gap: 8px;
  margin-top: 6px;
}

#profit-loss {
  color: var(--green-dark);
  font-size: 38px;
  font-weight: 760;
  line-height: 1;
}

#profit-loss.loss {
  color: var(--red);
}

.return-mode-toggle {
  display: grid;
  width: 25px;
  height: 25px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--field-bg);
}

.return-mode-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.contract-estimate {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.contract-estimate strong {
  color: var(--ink);
}

.underlying-quote {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.underlying-quote strong {
  color: var(--ink);
}

.underlying-quote .gain {
  color: var(--green-dark);
}

.underlying-quote .loss {
  color: var(--red);
}

.greek-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 780;
  line-height: 1;
}

.greek-strip span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field-bg);
}

.greek-strip b {
  color: var(--muted);
  font-weight: 780;
  text-transform: uppercase;
}

.greek-strip strong {
  color: var(--ink);
  font-weight: 850;
}

.current-price-card {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 150px;
  color: var(--ink);
  text-align: right;
}

.returns-header > .current-price-card {
  justify-items: end;
}

.current-price-card span,
.current-price-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.1;
  text-transform: uppercase;
}

.current-price-card strong {
  display: block;
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: clamp(24px, 2.9vw, 38px);
  font-weight: 760;
  line-height: 0.95;
  white-space: nowrap;
}

.chart-title-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  max-width: 100%;
}

.current-price-card .chart-title-row small {
  display: inline-block;
}

.summary-info-dot {
  display: grid;
  width: 15px;
  height: 15px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--muted);
  border-radius: 50%;
  color: var(--muted);
  background: var(--field-bg);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.summary-info-dot:hover,
.summary-info-dot:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}

.summary-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 8;
  width: min(248px, calc(100vw - 32px));
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field-bg);
  box-shadow: 0 14px 34px rgba(24, 38, 29, 0.16);
  color: var(--ink);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-transform: none;
  transform: translateY(-3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.chart-title-row:hover .summary-tooltip,
.summary-info-dot:focus-visible + .summary-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.chart-wrap {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--chart-bg);
  overflow: hidden;
}

.returns-chart-wrap {
  min-height: 0;
}

#price-chart {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.price-dial-panel {
  --wheel-offset: 0px;
  --current-price-offset: 50%;
  --current-price-left: 50%;
  --current-price-opacity: 0;
  position: relative;
  flex: 0 0 auto;
  padding: 24px 10px 0;
}

.price-dial-panel::after {
  content: attr(data-current-price);
  position: absolute;
  top: 0;
  left: var(--current-price-left);
  z-index: 3;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--current-price-marker);
  color: var(--bg);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  opacity: var(--current-price-opacity);
  pointer-events: none;
  transform: translate(-50%, -4px);
  white-space: nowrap;
}

.price-dial-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  transform: translate(-50%, -4px);
  white-space: nowrap;
}

.price-wheel {
  position: relative;
  width: 100%;
  height: 52px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  outline: none;
  cursor: ew-resize;
  touch-action: none;
}

.price-wheel:focus-visible {
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.price-wheel-track {
  position: absolute;
  inset: 0 -48px;
  z-index: 0;
  transform: translateX(var(--wheel-offset));
  background:
    repeating-linear-gradient(
      to right,
      transparent 0,
      transparent 38px,
      var(--line) 38px,
      var(--line) 39px,
      transparent 39px,
      transparent 80px
    );
}

.price-wheel-current {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--current-price-offset);
  z-index: 4;
  width: 5px;
  border-radius: 999px;
  background: var(--current-price-marker);
  opacity: var(--current-price-opacity);
  transform: translateX(-50%);
}

.price-wheel-center {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 5;
  width: 5px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.price-wheel.is-snapped .price-wheel-center {
  background: var(--ink);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--ink) 12%, transparent),
    0 0 22px color-mix(in srgb, var(--ink) 24%, transparent);
  transform: translateX(-50%) scaleY(1.08);
}

.price-wheel.is-dragging {
  cursor: grabbing;
}

.wheel-marker-labels {
  position: relative;
  height: 24px;
  margin-top: 3px;
  pointer-events: none;
  transition: height 140ms ease;
}

.wheel-marker-label {
  position: absolute;
  top: 0;
  max-width: 118px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  opacity: 0;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.current-price-label {
  left: var(--current-price-offset);
  color: var(--current-price-marker);
  opacity: var(--current-price-opacity);
}

.dial-scale {
  display: flex;
  justify-content: space-between;
  color: var(--chart-label);
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 980px) {
  .ad-layout {
    width: 100%;
  }

  .ad-rail {
    display: none;
  }

  .ad-footer {
    display: none;
  }
}

@media (max-width: 880px) {
  .hero-grid {
    width: min(100%, 480px);
  }

  h1 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .returns-title h2 {
    font-size: 25px;
  }

  #profit-loss {
    font-size: 33px;
  }
}

@media (max-height: 820px) {
  .results {
    padding: 10px;
  }

  .chart-board {
    padding: 12px;
  }

  .returns-title h2 {
    font-size: 24px;
  }

  #profit-loss {
    font-size: 32px;
  }

  .returns-chart-wrap {
    min-height: 0;
  }

  .price-dial-panel {
    padding-top: 20px;
  }
}

@media (min-width: 1920px) {
  .results-ad {
    display: grid;
  }
}

@media (max-height: 760px) {
  .ad-layout .hero-grid {
    gap: 10px;
  }

  .ad-rail {
    top: 72px;
    bottom: 16px;
  }

  .results-ad {
    display: none;
  }
}

@media (max-height: 700px) {
  .ad-footer {
    display: none;
  }

  .ad-rail {
    bottom: 20px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .hero-grid {
    transform: translateY(-12px);
  }

  .ad-layout .hero-grid {
    transform: none;
  }

  .calc-panel,
  .chart-board {
    padding: 16px;
  }

  .ticker-suggestions {
    top: 174px;
    left: 16px;
    right: 16px;
    bottom: auto;
    max-height: min(300px, calc(100vh - 220px));
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .ticker-search input {
    height: 64px;
    font-size: 28px;
    line-height: 64px;
  }

  .ticker-ghost {
    font-size: 28px;
  }

  .returns-header {
    display: grid;
    gap: 10px;
    min-height: 116px;
    padding: 44px 0 0;
  }

  .current-price-card {
    position: static;
    justify-items: center;
    text-align: center;
  }

  .chart-wrap {
    min-height: 0;
  }
}
