/* Generated using AppDeploy UI skill */
:root {
  color-scheme: dark;
  --background: #09110f;
  --surface: #13211b;
  --raised: #192b23;
  --line: #31463b;
  --ink: #eff7f0;
  --muted: #adbfb4;
  --accent: #c6ee75;
  --warning: #f3c989;
  --rose: #ff94a3;
  --fell: #6ee7b4;
  --numbers: "Geist Mono", "Cascadia Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 16px/1.55 Geist, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; }
body {
  min-height: 100vh; margin: 0; color: var(--ink);
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
  background:
    radial-gradient(ellipse at 86% 0%, #132820 0, transparent 37rem),
    linear-gradient(180deg, #0c1713 0, var(--background) 45rem);
}
.page { width: min(100% - 2 * clamp(1rem, 4vw, 2.6rem), 74rem); margin: auto; padding-bottom: clamp(2.5rem, 7vw, 4.5rem); }
.site-nav {
  min-height: calc(62px + env(safe-area-inset-top, 0px)); display: flex; align-items: center;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid #31463b;
}
.site-brand {
  display: inline-flex; min-height: 44px; align-items: center; gap: .7rem;
  font-size: 1.05rem; letter-spacing: .035em; font-weight: 740;
  color: var(--ink); text-decoration: none;
}
.brand-mark {
  width: 21px; height: 21px; border-radius: 5px; border: 1px solid #678575;
  background: linear-gradient(145deg, #1d362b, #0d1914); display: grid; place-items: center;
  box-shadow: 0 0 16px #c6ee7529;
}
.brand-mark::before {
  content: ""; width: 12px; height: 10px; background: var(--accent);
  clip-path: polygon(0 75%, 32% 40%, 52% 55%, 87% 5%, 100% 20%, 58% 77%, 35% 63%, 10% 95%);
}
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid #c6ee75; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.intro { margin-top: clamp(1rem, 3vw, 1.8rem); }
.market-heading {
  isolation: isolate; position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: clamp(124px, 17vw, 195px); padding: clamp(1.25rem, 4.3vw, 2.8rem);
  border: 1px solid #456752; border-radius: 14px;
  background: linear-gradient(116deg, #233e31 8%, #172b22 76%, #223c2d);
}
.market-heading::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: radial-gradient(ellipse at 84% 110%, #c6ee7528, transparent 55%);
}
.market-heading::after {
  content: ""; position: absolute; inset: auto auto 0 0; width: 34%; height: 2px;
  background: linear-gradient(90deg, transparent, #c6ee75, #e9ffd0, transparent);
  box-shadow: 0 0 13px #c6ee757a; animation: market-glint 8s ease-in-out infinite;
}
.market-art {
  position: absolute; z-index: -1; inset: 0 0 0 33%; pointer-events: none;
  background-image: linear-gradient(#95bd8540 1px, transparent 1px), linear-gradient(90deg, #95bd8540 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(90deg, transparent, #0006 30%, #000 100%);
}
.market-art::before {
  content: ""; position: absolute; inset: 16% 0 5% 7%;
  background: linear-gradient(100deg, #c6ee7517, #c6ee75da);
  clip-path: polygon(0 90%, 12% 78%, 22% 82%, 32% 55%, 43% 63%, 53% 40%, 64% 47%, 74% 23%, 85% 33%, 100% 3%,
    100% 5%, 85% 35%, 74% 25%, 64% 49%, 53% 42%, 43% 65%, 32% 57%, 22% 84%, 12% 80%, 0 92%);
}
.market-heading h1 {
  margin: 0; position: relative; color: #eff7f0; line-height: 1.13; letter-spacing: -.035em;
  font-weight: 750; font-size: clamp(2.1rem, 5.2vw, 4rem); text-wrap: balance; text-shadow: 0 2px 22px #09110f;
}
@keyframes market-glint {
  0%, 14% { transform: translateX(-105%); opacity: 0; }
  25% { opacity: 1; }
  63%, 100% { transform: translateX(305%); opacity: 0; }
}
.disclaimer {
  margin-top: .8rem; padding: .68rem .95rem; border: 1px solid #4a4132;
  border-radius: 9px; background: #1b2018; color: #d4c4af; font-size: .81rem;
}
.disclaimer strong { color: var(--warning); font-size: .8rem; }
.disclaimer p { margin-top: .16rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem .9rem; color: var(--muted); }
#account > .toolbar {
  min-height: 60px; margin-top: 1rem; padding: .55rem .9rem;
  border: 1px solid var(--line); border-radius: 11px; background: #0d1914;
}
#account > .toolbar > p { overflow-wrap: anywhere; flex: 1 1 12rem; min-width: 0; }
#username { color: var(--ink); }
#membership { color: var(--muted); font-size: .85rem; }
.account-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .46rem; }
#admin-members { display: inline-flex; min-height: 44px; align-items: center; padding-inline: .55rem; text-decoration: none; }
#admin-members:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button {
  min-height: 44px; border: 1px solid #31463b; border-radius: 7px;
  padding: .4rem .86rem; color: var(--ink); background: #192b23;
  cursor: pointer; transition: background-color .17s ease, border-color .17s ease, box-shadow .17s ease;
}
button:hover:not(:disabled) { border-color: #c6ee75; background: #233e31; }
button:disabled { opacity: .62; cursor: not-allowed; }
#account-settings, #password-login button[type=submit], #register button[type=submit], #save-password {
  color: #e2f8b0; background: #263c28; border-color: #658653; font-weight: 680;
}
#account-settings:hover, #password-login button[type=submit]:hover, #register button[type=submit]:hover, #save-password:hover {
  background: #344e34; box-shadow: 0 0 15px #c6ee7527;
}
.status { color: var(--muted); margin-top: .78rem; font-size: .87rem; }
.status:empty { display: none; }
.status[data-error=true] { color: var(--warning); }
#member-feed { margin-top: clamp(1.1rem, 3vw, 1.6rem); }
.report-tabs {
  display: flex; flex-wrap: wrap; gap: .45rem; padding: .23rem;
  width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #0d1914;
}
.report-tabs button {
  min-height: 44px; border-color: transparent; background: transparent; color: var(--muted); font-size: .9rem;
}
.report-tabs button[aria-selected=true] {
  background: #293f2d; border-color: #678575; color: #ecffd3; font-weight: 700;
}
.daily-toolbar, .history-toolbar { margin-block: .7rem; }
.date-control {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .65rem; color: var(--muted);
}
.date-control select, #history-date {
  min-height: 44px; min-width: 8.5rem; max-width: 100%; font: 600 .9rem var(--numbers);
  color: var(--ink); background: #192b23; border: 1px solid #31463b; border-radius: 7px; padding: .43rem .66rem;
}
.auth-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .9rem;
}
.panel {
  min-width: 0; margin-top: 1rem; padding: clamp(.9rem, 2.2vw, 1.25rem);
  border: 1px solid var(--line); border-radius: 11px; background: #13211b;
}
.panel h2 { font-size: 1.12rem; }
.panel label { display: block; margin: .65rem 0 .45rem; color: #adbfb4; font-size: .91rem; }
.panel input {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: .53rem .65rem;
  border: 1px solid #456752; border-radius: 7px; background: #0d1914; color: var(--ink);
  font-size: max(1rem, 16px);
}
.panel label input { margin-top: .25rem; }
.hint { color: var(--muted); margin-top: .45rem; font-size: .86rem; }
.price { font-size: 1.24rem; font-weight: 700; color: var(--accent); margin-block: .45rem .55rem; }
.account-details summary {
  color: var(--accent); cursor: pointer; min-height: 44px; padding-block: .55rem;
}
.account-details:not(.panel) { margin-top: .85rem; border-top: 1px solid var(--line); }
.account-details.panel summary { color: var(--ink); font-weight: 650; }
.password-hint { margin: -.08rem 0 .65rem; font-size: .82rem; }
.copy-row { display: flex; align-items: stretch; gap: .55rem; margin-top: .65rem; }
.copy-row button { flex: none; }
.account-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; max-width: 100%; max-height: none;
  width: min(100%, 29rem); height: 100vh; height: 100dvh; padding: 0;
  color: var(--ink); border: solid #678575; border-width: 0 0 0 1px;
  background: #0d1914; box-shadow: -16px 0 62px #050c09ba;
}
.account-drawer:not([open]) { display: none; }
.account-drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: drawer-in .23s ease-out; }
.account-drawer::backdrop { background: #050c09b3; }
body:has(.account-drawer[open], .stock-detail[open]) { overflow: hidden; }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: calc(.8rem + env(safe-area-inset-top, 0px)) 1rem .8rem;
  border-bottom: 1px solid #456752; background: linear-gradient(110deg, #192b23, #223c2d);
}
.drawer-header h2 { font-size: 1.13rem; }
.drawer-body {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: .8rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.drawer-body .panel { margin: 0 0 .7rem; }
.drawer-close { padding-inline: .72rem; }
#drawer-status:empty { display: none; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (max-width: 700px) {
  .site-nav { min-height: calc(53px + env(safe-area-inset-top, 0px)); }
  .intro { margin-top: .8rem; }
  .market-heading { min-height: 128px; border-radius: 11px; align-items: center; padding: 1.1rem; }
  .market-art { inset-inline-start: 21%; opacity: .8; }
  .auth-grid { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  #account > .toolbar { padding: .57rem .65rem; }
  #account > .toolbar > p { flex-basis: 10rem; }
  .account-toolbar-actions { gap: .35rem; }
  .account-toolbar-actions :is(a, button) { padding-inline: .52rem; font-size: .82rem; }
  .account-drawer { width: min(100%, 27rem); }
}
@media (max-width: 380px) {
  .page { width: calc(100% - 24px); }
  .copy-row { flex-direction: column; }
  .copy-row button { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .market-heading::after { animation: none; width: 80%; opacity: .5; }
  .account-drawer[open] { animation: none; }
}

/* Stock grids */
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-footer { margin-top: auto; padding-top: clamp(1.65rem, 4vw, 3rem); }
.page-footer .disclaimer { margin-top: 0; }
.stock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.55rem, 1.2vw, .85rem);
}
.stock-button {
  display: flex; flex-direction: column; justify-content: space-between; min-width: 0; width: 100%; min-height: 78px;
  padding: .78rem .85rem; text-align: left; border-color: #31463b; border-radius: 9px;
  background: linear-gradient(148deg, #192b23 3%, #0d1914 90%); color: var(--ink);
}
.stock-button:hover:not(:disabled) {
  border-color: #8daa68; background: linear-gradient(148deg, #233e31, #14271d);
  box-shadow: 0 0 19px #c6ee751d;
}
.stock-button:active { border-color: var(--accent); }
.stock-button-main {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  width: 100%; gap: .45rem;
}
.stock-name {
  min-width: 0; overflow-wrap: anywhere; color: var(--ink);
  font-size: .94rem; line-height: 1.35; font-weight: 700;
}
.stock-confidence {
  align-self: start; padding: .12rem .32rem; border-radius: 5px;
  white-space: nowrap; color: #e2f8b0; background: #2b442e;
  font: 700 .86rem/1.25 var(--numbers); font-variant-numeric: tabular-nums;
}
.stock-button-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; width: 100%;
  gap: .3rem .5rem; margin-top: .48rem;
}
.stock-button-meta .stock-code {
  margin: 0; color: #adbfb4; white-space: nowrap; font: .75rem/1.25 var(--numbers);
}
.stock-result {
  display: inline-flex; flex-wrap: wrap; align-items: baseline;
  gap: .2rem .33rem; color: var(--muted);
}
.stock-result .stock-change { white-space: nowrap; font: 700 .82rem/1.25 var(--numbers); font-variant-numeric: tabular-nums; }
.stock-result[data-outcome=up] .stock-change { color: var(--rose); }
.stock-result[data-outcome=down] .stock-change { color: var(--fell); }
.stock-result .outcome-label { display: inline-block; margin: 0; font-size: .7rem; line-height: 1.2; }
.stock-detail {
  position: fixed; inset: 0; margin: auto; width: min(calc(100% - 28px), 29rem);
  max-width: 100%; max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px);
  padding: 0; overflow-y: auto; overscroll-behavior: contain; color: var(--ink);
  border: 1px solid #678575; border-radius: 12px; background: #13211b; box-shadow: 0 18px 64px #050c09d4;
}
.stock-detail:not([open]) { display: none; }
.stock-detail::backdrop { background: #050c09b3; }
.stock-detail-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem;
  padding: 1rem; border-bottom: 1px solid #456752; background: linear-gradient(110deg, #192b23, #223c2d);
}
.stock-detail-header h2 { font-size: 1.18rem; overflow-wrap: anywhere; align-self: center; }
.stock-detail-close { flex: none; }
.stock-detail-metrics {
  display: grid; gap: .22rem; margin: 0; padding: .65rem 1rem 1rem;
}
.stock-detail-metrics > div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem .7rem;
  padding-block: .43rem; border-bottom: 1px solid #31463b;
}
.stock-detail-metrics > div:last-child { border-bottom: 0; }
.stock-detail-metrics dt { color: var(--muted); font-size: .88rem; }
.stock-detail-metrics dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stock-detail-metrics :is(dd, span)[data-outcome=up] { color: var(--rose); }
.stock-detail-metrics :is(dd, span)[data-outcome=down] { color: var(--fell); }
@media (max-width: 700px) {
  .stock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .42rem; }
  .stock-button { min-height: 69px; padding: .55rem .47rem; border-radius: 7px; }
  .stock-button-main { gap: .23rem; }
  .stock-name { font-size: .83rem; }
  .stock-confidence { font-size: .73rem; padding: .12rem .23rem; }
  .stock-button-meta { gap: .25rem .32rem; margin-top: .35rem; }
  .stock-button-meta .stock-code { font-size: .67rem; }
  .stock-result .stock-change { font-size: .74rem; }
  .stock-result .outcome-label { font-size: .64rem; }
}
@media (max-width: 380px) {
  .stock-grid { gap: .34rem; }
  .stock-button { padding-inline: .37rem; }
  .stock-name { font-size: .78rem; }
  .stock-confidence { padding-inline: .18rem; }
}


.site-nav .member-nav-link {
  margin-inline-start: auto;
  align-self: center;
}
.member-nav-link, .member-action {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
}
.member-nav-link:hover, .member-action:hover {
  text-decoration: underline;
  text-underline-offset: .24em;
}
.member-action:not([hidden]) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--raised);
}
.member-products:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1rem;
  margin-block-start: 1rem;
}
.member-product li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
  padding-block: .5rem;
}
.member-product li + li { border-top: 1px solid var(--line); }
.member-product ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.market-heading { border-radius: .7rem; }
#pay:not(:disabled), .member-action:not([hidden]) {
  background: var(--accent); color: #16230c; border-color: var(--accent); font-weight: 700;
}
#pay:hover:not(:disabled), .member-action:not([hidden]):hover {
  background: #d4f58f; color: #16230c; border-color: #d4f58f;
}
