:root {
  color-scheme: dark;
  --signal: #ffd318;
  --bg: #050505;
  --panel: #121212;
  --panel-strong: #181818;
  --text: #f6f6f2;
  --muted: #989892;
  --line: #2a2a28;
  --good-bg: #10261a;
  --good: #76d69c;
  --warn-bg: #211d0d;
  --warn: #e9d980;
  --bad-bg: #281312;
  --bad: #ff8277;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  font-size: 16px;
  font-weight: 780;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.account-level {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.account-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.top-email {
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--text);
}

.icon-button:disabled {
  cursor: wait;
  opacity: .5;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero { padding: 24px 0 16px; }

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.hero h1 + p { margin-top: 10px; }

.account-status {
  margin: 0 0 12px;
}

.account-status:empty { display: none; }

#account-view.compact { padding-top: 28px; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.panel {
  grid-column: span 12;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.panel.half { grid-column: span 6; }

.panel h2 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.panel > p {
  margin: 0 0 18px;
  color: var(--muted);
}

.pricing-panel {
  margin-bottom: 6px;
  padding: 0;
  border: 0;
  background: transparent;
}

.pricing-panel h2 {
  color: var(--muted);
  font-size: 30px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.stack { display: grid; gap: 12px; }

label {
  display: grid;
  gap: 5px;
  color: #b9b9b3;
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  background: #090909;
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 211, 24, .12);
}

#new-pick-symbol,
#wish-symbol { text-transform: uppercase; }

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--signal);
  border-radius: 9px;
  padding: 8px 13px;
  background: var(--signal);
  color: #080808;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  border-color: var(--line);
  background: var(--panel-strong);
  color: var(--text);
}

.button.danger {
  border-color: #5b2926;
  background: var(--bad-bg);
  color: var(--bad);
}

.button:disabled {
  cursor: wait;
  opacity: .55;
}

.message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.message.good { color: var(--good); }
.message.bad { color: var(--bad); }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.plan.featured {
  border-color: rgba(255, 211, 24, .48);
  background: linear-gradient(180deg, rgba(255, 211, 24, .07), var(--panel) 46%);
}

.plan.current {
  box-shadow: inset 0 0 0 1px rgba(246, 246, 242, .35);
}

.plan.featured h3 { color: var(--signal); }

.plan h3 {
  margin: 0 0 5px;
  font-size: 20px;
}

.plan p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.plan ul {
  flex: 1;
  min-height: 70px;
  margin: 0 0 18px;
  padding-left: 18px;
  color: #c2c2bc;
}

.plan li + li { margin-top: 5px; }
.plan > .button { width: 100%; }
.plan .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 { margin-bottom: 3px; }

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.picks-head { align-items: flex-start; }

.picks-head-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.pick-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.picks-save {
  min-height: 34px;
  padding: 6px 13px;
}

#symbols-form { margin-top: 18px; }

.pick-watchlist {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b0b0b;
}

.pick-row {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 0 15px 0 16px;
  background: rgba(255, 255, 255, .025);
}

.pick-row + .pick-row { border-top: 1px solid var(--line); }

.pick-row-link {
  display: flex;
  min-width: 0;
  flex: 1;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
}

.pick-row-link.pending { cursor: default; }

.pick-row-identity {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pick-row-identity strong {
  overflow: hidden;
  font-size: 15px;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pick-row-identity span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.pick-row-quote {
  display: grid;
  min-width: 92px;
  flex: 0 0 auto;
  gap: 3px;
  justify-items: end;
  font-variant-numeric: tabular-nums;
}

.pick-row-quote strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.pick-row-quote span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.pick-row-link.pending .pick-row-quote span {
  color: var(--warn);
}

.pick-remove {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0 0 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.pick-remove:hover,
.pick-remove:focus-visible {
  border-color: #5b2926;
  background: var(--bad-bg);
  color: var(--bad);
  outline: none;
}

.pick-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.hidden-picks {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.hidden-picks > div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pick-restore {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.pick-restore:hover,
.pick-restore:focus-visible {
  border-color: var(--signal);
  outline: none;
}

.pick-add { min-width: 82px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.field-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.wishlist-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.wishlist-head select {
  width: auto;
  margin-left: auto;
}

.wishlist { display: grid; gap: 8px; }

.wish {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0b0b0b;
}

.vote {
  display: grid;
  gap: 2px;
  justify-items: center;
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: var(--panel-strong);
  color: var(--muted);
  cursor: pointer;
}

.vote.active {
  border-color: #39684c;
  background: var(--good-bg);
  color: var(--good);
}

.vote strong {
  color: inherit;
  font-size: 16px;
}

.wish h3 {
  margin: 0;
  font-size: 15px;
}

.wish p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.status {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: capitalize;
}

.danger-zone { border-color: #432422; }

.account-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .035em;
  opacity: .46;
}

.account-footer a { text-underline-offset: 3px; }

.account-footer code {
  color: inherit;
  font: inherit;
}

[hidden] { display: none !important; }

dialog {
  width: min(440px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--panel);
  color: var(--text);
}

dialog::backdrop { background: rgba(0, 0, 0, .72); }
dialog h2 { margin-top: 0; }
dialog p { color: var(--muted); }

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 24px), 1040px); }
  .topbar { min-height: 58px; }
  .brand span { display: none; }
  .top-email { max-width: 116px; }
  .hero { padding-top: 20px; }
  .panel.half { grid-column: span 12; }
  .plans { grid-template-columns: 1fr; }
  .plan ul { min-height: auto; }
  .picks-head { gap: 10px; }
  .picks-head-actions { gap: 7px; }
  .pick-count { padding-inline: 7px; }
  .wish { grid-template-columns: 56px 1fr; }
  .wish .status { grid-column: 2; justify-self: start; }
}
