.public-shell {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.public-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.public-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.public-brand, .public-links a {
  text-decoration: none;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: -.035em;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
}

.public-links a:hover { color: var(--teal); }
.public-login { margin-left: auto; }

.public-main {
  max-width: none;
  padding: 0;
}

.public-hero {
  min-height: 510px;
  padding-block: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 84px);
}

.public-label {
  color: var(--teal);
  font-size: .89rem;
  font-weight: 760;
  margin-bottom: 15px;
}

.public-intro h1 {
  font-size: clamp(3rem, 6.8vw, 5.5rem);
  letter-spacing: -.072em;
  line-height: .98;
}

.public-summary {
  margin: 19px 0 24px;
  max-width: 400px;
  color: var(--muted);
  font-size: 1.13rem;
  line-height: 1.65;
}

.public-intro .btn { padding: 11px 15px; }
.public-market { background: transparent; }

.public-preview {
  min-width: 0;
  padding: 22px;
  background: radial-gradient(ellipse at 85% 110%, #17575a, transparent 62%), #102b39;
  color: var(--ink-on-dark);
  border: 1px solid #254852;
  border-radius: 18px;
  box-shadow: 0 24px 53px #12354022;
}

.public-preview-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.public-preview-head p,
.public-chart-labels,
.public-watch small { color: var(--muted-on-dark); }

.public-preview-head strong {
  display: block;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  letter-spacing: -.055em;
}

.public-preview-head > span {
  padding: 4px 8px;
  background: #28525c;
  border-radius: 6px;
  color: var(--ink-on-dark);
  font-size: .77rem;
  font-weight: 650;
}

.public-chart {
  display: block;
  width: 100%;
  height: 153px;
  margin-top: 14px;
}

.public-chart-grid { stroke: #41626c; stroke-width: 1; }
.public-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
}

.public-watch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid #41626c;
  margin-top: 16px;
  padding-top: 14px;
}

.public-watch a {
  display: flex;
  gap: 7px;
  align-items: center;
  border-radius: 8px;
  color: var(--ink-on-dark);
  text-decoration: none;
}

.public-watch a:hover { background: #28525c; }
.public-watch small { display: block; white-space: nowrap; }

.public-workflow {
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 31px 0 38px;
}

.public-workflow h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 17px; }
.public-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.public-steps article { border: 1px solid var(--line); border-radius: 12px; padding: 17px; }
.public-steps h3 { font-size: 1.06rem; margin: 10px 0 4px; }
.public-steps p { color: var(--muted); }
.stocktrade-footer { margin-top: 32px; border-top: 1px solid var(--line); background: #f3f5f7; color: var(--ink); }
.stocktrade-footer-inner { width: min(100% - 32px, 1180px); margin: auto; padding: 30px 0 16px; font-size: .88rem; line-height: 1.6; }
.footer-risk { max-width: 800px; }
.footer-risk h2 { font-size: 1rem; margin: 0 0 6px; }
.footer-risk p { margin: 0 0 10px; }
.footer-risk-label { display: inline-block; padding: 8px 12px; border: 1px solid #ae9a75; border-radius: 6px; font-weight: 700; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 14px; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; }
.footer-main address { display: grid; font-style: normal; }
.footer-main a { overflow-wrap: anywhere; }
.footer-copyright { margin: 18px 0 0; color: var(--muted); }

.public-market-list { margin-top: 14px; }
.public-market-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid #41626c;
  text-decoration: none;
}
.public-market-list small { display: block; color: var(--muted-on-dark); }
.public-market-price { text-align: right; }
.quote-timestamp { display: block; margin-top: 3px; font-size: .75rem; color: var(--muted); }
.asset-table .track-column { width: 1%; }
.market-spark { display: inline-block; width: 72px; height: 24px; vertical-align: middle; }
.about-page, .news-page { padding-top: clamp(32px, 6vw, 85px); padding-bottom: 42px; }
.about-intro { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 2fr); align-items: center; gap: 26px; margin-bottom: 38px; }
.about-intro .actions { margin-top: 20px; }
.about-memo { padding: clamp(20px, 4vw, 38px); border-radius: 18px; background: #112e3b; color: var(--ink-on-dark); }
.about-memo p { color: var(--muted-on-dark); margin-top: 10px; }
.news-tabs { margin: 20px 0; }
.news-tabs a[aria-current] { color: white; background: var(--teal); border-color: var(--teal); }
.home-news { padding-block: 24px 54px; }
.home-news-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.home-news-heading h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.home-news-heading a { flex: none; }
.home-news [role="status"] { color: var(--muted); min-height: 150px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 16px; }
.news-grid-featured { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.news-card { min-width: 0; border: 1px solid #d9e3eb; border-radius: 16px; background: #fff; }
.news-card > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: inherit; color: inherit; text-decoration: none; }
.news-card > a:hover h3 { color: var(--teal); }
.news-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #143447, #417573); }
.news-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-card-copy { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 8px; padding: 15px; }
.news-category { color: var(--teal); font-size: .76rem; font-weight: 750; }
.news-card h3 { font-size: clamp(1rem, 1.75vw, 1.19rem); line-height: 1.32; letter-spacing: -.014em; }
.news-card-copy p { margin-top: auto; padding-top: 5px; color: var(--muted); font-size: .8rem; }
.news-article { max-width: 940px; margin-inline: auto; }
.news-article-header { display: grid; justify-items: start; gap: 14px; margin-bottom: 22px; }
.news-article h1 { max-width: 27ch; line-height: 1.12; text-wrap: pretty; }
.news-article-cover { margin: 0; }
.news-article-cover .news-image { border-radius: 17px; aspect-ratio: 19 / 9; }
.news-article-cover figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }
.news-article-body { display: grid; gap: 17px; padding-block: 19px 8px; }
.news-article-body p { max-width: 68ch; font-size: 1.12rem; }
.news-related-title { margin-top: 36px; }
@media (max-width: 850px) { .news-grid, .news-grid-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 470px) {
  .news-grid, .news-grid-featured { grid-template-columns: 1fr; }
  .home-news { padding-block: 18px 36px; }
  .news-article-cover .news-image { aspect-ratio: 16 / 9; }
}
.stock-discovery, .settings-grid { display: grid; gap: 14px; }
.stock-discovery { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 16px 16px; }
.stock-discovery article { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.stock-discovery-price { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.settings-notice { margin-bottom: 16px; }
.page-back { margin-bottom: 16px; }
.public-main:not(.public-shell) > .page-back { width: min(1220px, calc(100% - 36px)); margin: 16px auto 0; }
.manual-price-history { padding-left: 23px; }
.manual-price-history small { display: block; color: var(--muted); }
@media (max-width: 800px) { .about-intro { grid-template-columns: 1fr; } .stock-discovery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 590px) {
  .asset-table .asset-link small,
  .asset-table .quote-timestamp { white-space: normal; }
  .market-spark { width: 58px; }
}
.public-market-price .quote-timestamp { color: var(--muted-on-dark); }
.public-market-price .up { color: #8aebc6; }
.public-market-price .down { color: #ffa8b0; }

.public-head { position: sticky; top: 0; z-index: 3; }
.public-main { overflow: clip; }
.public-preview { animation: market-card-drift 7s ease-in-out infinite; }
@keyframes market-card-drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.public-section-intro { color: var(--muted); max-width: 66ch; margin-bottom: 22px; }
.public-steps a { display: inline-block; margin-top: 12px; color: var(--teal); font-weight: 650; }
.public-faq { padding-block: 54px; }
.public-faq h2 { font-size: 1.75rem; margin-bottom: 20px; }
.public-faq details { border-top: 1px solid var(--line); padding: 15px 0; }
.public-faq details:last-child { border-bottom: 1px solid var(--line); }
.public-faq summary { cursor: pointer; font-weight: 650; }
.public-faq p { margin: 9px 0 0; color: var(--muted); max-width: 70ch; }
#about, #faq { scroll-margin-top: 85px; }

.account-page { max-width: 560px; padding-block: 56px; }
.account-card h1 { font-size: clamp(1.65rem, 4vw, 2.25rem); }
.account-card a { color: var(--teal); }
.account-check { display: flex !important; gap: 10px; align-items: center; }
.account-check input { width: auto; }
.account-wallet-form { max-width: 660px; padding-block: 16px; }
.wallet-selects > label { flex: 1; min-width: 140px; }
.account-customer-list { display: grid; gap: 12px; margin-top: 18px; }
.wallet-address { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 10px; }
.wallet-address code { display: block; overflow-wrap: anywhere; margin: 8px 0; }
.application-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 22px; }
.application-summary dt { color: var(--muted); font-size: .85rem; }
.application-summary dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.application-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.application-evidence figure { margin: 0; }
.application-evidence img, .application-evidence video, .recording-panel video {
  display: block; width: 100%; max-width: 460px; max-height: 350px; object-fit: contain; border-radius: 8px;
}
.recording-panel { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.recording-panel p { margin: 8px 0; }
.onboarding-layout { display: grid; gap: 20px; }
.onboarding-bonus {
  --progress: 0%; --previous: 0%;
  display: grid; gap: 6px; padding: clamp(16px, 3vw, 25px);
  border: 1px solid #e9dbc2; border-radius: 15px; color: #664b25;
  background: linear-gradient(118deg, #faf4e9, #fffdf8);
}
.onboarding-bonus[data-stage="1"] { --progress:20%; }
.onboarding-bonus[data-stage="2"] { --progress:40%; }
.onboarding-bonus[data-stage="3"] { --progress:60%; }
.onboarding-bonus[data-stage="4"] { --progress:80%; }
.onboarding-bonus[data-stage="5"] { --progress:100%; }
.onboarding-bonus[data-from="1"] { --previous:20%; }
.onboarding-bonus[data-from="2"] { --previous:40%; }
.onboarding-bonus[data-from="3"] { --previous:60%; }
.onboarding-bonus[data-from="4"] { --previous:80%; }
.onboarding-bonus[data-from="5"] { --previous:100%; }
.onboarding-bonus h3 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.035em; }
.onboarding-step, .onboarding-bonus-caption { font-size: .86rem; color: #6f5a3c; }
.onboarding-step { font-weight: 700; }
.onboarding-meter { display: flex; align-items: center; gap: 11px; margin-block: 5px; }
.onboarding-meter-track { flex: 1; height: 9px; overflow: hidden; border-radius: 99px; background: #ede1cb; }
.onboarding-meter-track > span { display: block; height: 100%; width: var(--progress); border-radius: inherit; background: linear-gradient(90deg, #9a743c, #c4a878); animation: onboard-fill .48s ease-out both; }
@keyframes onboard-fill { from { width: var(--previous); } to { width: var(--progress); } }
.onboarding-gift { display: inline-block; position: relative; width: 27px; height: 24px; margin-top: 4px; border: 1.5px solid #896a3d; border-radius: 4px; background: linear-gradient(90deg, #f3e7d3 42%, #aa8450 42% 57%, #f3e7d3 57%); }
.onboarding-gift::before { content: ""; position: absolute; top: 4px; left: -2px; right: -2px; height: 2px; background: #896a3d; }
.onboarding-gift::after { content: ""; position: absolute; top: -7px; left: 8px; width: 8px; height: 8px; border: 1.5px solid #896a3d; border-radius: 50% 50% 3px 50%; transform: rotate(45deg); }
.onboarding-bonus[data-stage="5"]:not([data-from="5"]) .onboarding-gift { animation: gift-arrival .42s .34s ease-out both; }
@keyframes gift-arrival { 45% { transform: translateY(-5px) scale(1.1); } }
.signup-bonus-field { display: grid; gap: 8px; margin: 8px 0; padding: 14px; border: 1px solid #e9dbc2; border-radius: 11px; background: #fffaf1; }
.signup-bonus-field legend { padding-inline: 5px; font-weight: 750; }
.signup-bonus-field p { color: #6f5a3c; font-size: .86rem; }
.share-referral { color: #664b25; background: #f8efe0; font-weight: 700; padding: 3px 7px; border-radius: 4px; }
.help-chat { position: fixed; z-index: 20; right: 17px; bottom: 17px; }
.help-chat [hidden] { display: none; }
.help-chat-launch { width: 43px; height: 43px; border: 1px solid #b4a083; border-radius: 50%; background: #fffdf8; color: #624927; font-size: 1.2rem; font-weight: 800; box-shadow: 0 5px 18px #14213721; }
.help-chat-panel { position: absolute; bottom: 53px; right: 0; display: grid; width: min(348px, calc(100vw - 32px)); max-height: min(535px, calc(100dvh - 125px)); overflow: auto; border: 1px solid #e3d6c1; border-radius: 16px; background: #fff; box-shadow: 0 15px 44px #14213728; }
.help-chat-panel > header { display: flex; align-items: center; gap: 9px; padding: 12px; border-bottom: 1px solid #eee4d5; color: #654b25; background: #faf5eb; }
.help-chat-panel > header > div { flex: 1; }
.help-chat-panel h2 { font-size: 1rem; }
.help-chat-panel header p { font-size: .72rem; }
.help-chat-panel header .btn { min-height: 30px; padding: 3px 6px; font-size: .68rem; }
.help-chat-close { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: inherit; font-size: 1.35rem; cursor: pointer; }
.help-chat-log { min-height: 96px; max-height: 240px; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-message { align-self: flex-start; width: fit-content; max-width: 94%; padding: 8px 10px; border-radius: 10px; background: #f5f1e9; color: #453a29; font-size: .84rem; overflow-wrap: anywhere; }
.chat-message a { display: inline-block; margin-top: 5px; font-weight: 700; }
.chat-customer { align-self: flex-end; background: #e5f1ee; color: #173b35; }
.help-chat-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 12px 9px; }
.help-chat-chips .btn { min-height: 27px; padding: 3px 7px; font-size: .72rem; }
.help-chat-panel form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid #eee4d5; }
.help-chat-panel form input { flex: 1; min-width: 0; padding: 7px 8px; border: 1px solid #d9e1e8; border-radius: 8px; font: inherit; font-size: .85rem; }
@media (max-width: 820px) { .help-chat { bottom: 68px; right: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .onboarding-meter-track > span, .onboarding-bonus[data-stage="5"] .onboarding-gift { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .public-preview { animation: none; }
}
@media (max-width: 480px) {
  .public-login .btn { padding-inline: 7px; white-space: nowrap; font-size: .8rem; }
  .public-nav .public-brand { font-size: 1rem; gap: 5px; }
  .public-nav .brand-mark { width: 29px; height: 29px; }
}

@media (max-width: 850px) {
  .public-shell { width: min(640px, calc(100% - 36px)); }
  .public-hero { grid-template-columns: 1fr; padding-block: 38px; }
}

@media (max-width: 560px) {
  .public-nav { min-height: 60px; gap: 10px; }
  .public-links { display: none; }
  .public-preview { padding: 14px; }
  .public-watch .asset-mark { display: none; }
  .public-steps { grid-template-columns: 1fr; }
}
