:root {
  color-scheme: light;
  --page:#f5f5ee;
  --card:#fdfdf8;
  --ink:#183b33;
  --muted:#566b60;
  --line:#d9dfd1;
  --forest:#174638;
  --lime:#c7e89d;
  --green:#316848;
  --alert:#8d3527;
  --sans:Inter,"PingFang SC","Microsoft YaHei",sans-serif;
  --digits:Barlow,"Arial Narrow",Arial,sans-serif;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--page);
  font-synthesis:none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width:280px;
}

button,input {
  font: inherit;
  color:inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity:.55;
}

button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible {
  outline: 3px solid #548735;
  outline-offset:3px;
}

button {
  border: 0;
  background:none;
}

h1,h2,p {
  margin: 0;
}

h1 {
  font-size: clamp(29px,5.8vw,44px);
  line-height:1.18;
  letter-spacing:-.055em;
  font-weight:750;
}

h2 {
  font-size: 18px;
  line-height:1.35;
  letter-spacing:-.045em;
}

small {
  font-weight: 500;
}

ul,ol {
  margin: 0;
  padding:0;
  list-style:none;
}

[hidden] {
  display: none!important;
}

.sr-only,.skip-link:not(:focus) {
  position: absolute;
  clip:rect(0,0,0,0);
  height:1px;
  width:1px;
  overflow:hidden;
  white-space:nowrap;
}

.skip-link:focus {
  position: fixed;
  top:8px;
  left:8px;
  z-index:20;
  background:white;
  padding:12px;
}

.mast {
  border-bottom: 1px solid var(--line);
  padding-top:env(safe-area-inset-top);
}

.mast-inner {
  display: flex;
  align-items:center;
  justify-content:space-between;
  max-width:1112px;
  margin:auto;
  padding:0 28px;
  min-height:65px;
}

.brand {
  display: flex;
  align-items:center;
  gap:10px;
}

.brand strong {
  font-size: 19px;
  font-weight:750;
  letter-spacing:-.055em;
}

.brand-mark {
  width: 33px;
  height:33px;
  border-radius:10px;
  background:var(--forest);
  display:grid;
  grid-template-columns:repeat(2,6px);
  grid-template-rows:repeat(2,6px);
  gap:4px;
  align-content:center;
  justify-content:center;
  transform:rotate(-2deg);
}

.brand-mark i {
  border-radius: 2px;
  background:#d2eba6;
}

.brand-mark i:first-child {
  grid-row: 1 / 3;
  border-radius:3px;
}

.brand-mark i:last-child {
  background: #7dab78;
}

.refresh,.text-link,.row-link,.hero-foot button {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  font-size:13px;
  font-weight:650;
}

.refresh {
  font-weight: 550;
  color:var(--muted);
  padding:0 5px;
}

.refresh-icon {
  font-family: Arial,sans-serif;
  font-size:25px;
  line-height:1;
}

.mobile-mast-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh[aria-busy=true] .refresh-icon {
  animation: rotate 1.1s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

main {
  max-width: 1112px;
  margin:auto;
  padding:30px 28px calc(104px + env(safe-area-inset-bottom));
  outline:none;
}

.page-title {
  display: flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 22px;
}

.connection {
  display: flex;
  align-items:center;
  gap:6px;
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}

.connection i {
  width: 7px;
  height:7px;
  border-radius:50%;
  background:#a6aea1;
}

.connection i.online {
  background: #4f8747;
}

.connection i.offline {
  background: #ae623b;
}

.dashboard,.two-col {
  display: grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.card,.draw-hero,.wallet-hero {
  border-radius: 23px;
}

.card {
  padding: 23px 24px;
  background:var(--card);
  border:1px solid var(--line);
  min-width:0;
}

.section-head,.title-with-icon {
  display: flex;
  align-items:center;
  gap:10px;
}

.section-head {
  justify-content: space-between;
  min-height:30px;
  flex-wrap:wrap;
}

.tag {
  display: inline-flex;
  align-items:center;
  min-height:25px;
  padding:3px 9px;
  background:#ebeee3;
  color:#486052;
  border:1px solid #d9e2d2;
  font-size:11px;
  font-weight:650;
  border-radius:20px;
}

.tag.active {
  color: #285837;
  background:#e3efd5;
  border-color:#c4d9b4;
}

.tag.warn {
  color: #8a4928;
  background:#f6ead4;
  border-color:#e4cba4;
}

.card-icon {
  display: inline-grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:9px;
  background:#e7eedc;
  color:#447050;
  position:relative;
}

.grid-icon:before,.nav-picks:before {
  content: "";
  width:5px;
  height:5px;
  box-shadow:8px 0 currentColor,0 8px currentColor,8px 8px currentColor;
  background:currentColor;
  border-radius:1px;
  transform:translate(-4px,-4px);
}

.ai-icon {
  font-size: 20px;
}

.wallet-icon:before,.nav-wallet:before {
  content: "";
  width:14px;
  height:10px;
  border:1.8px solid currentColor;
  border-radius:3px;
}

.wallet-icon:after,.nav-wallet:after {
  content: "";
  position:absolute;
  width:5px;
  height:4px;
  right:6px;
  background:currentColor;
  border-radius:1px;
}

.draw-hero {
  background: #163f34;
  color:#fcfcf2;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:24px 27px 14px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:246px;
}

.hero-copy {
  display: flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  position:relative;
}

.hero-copy h2 {
  font-size: 18px;
}

.hero-copy p,.hero-foot>span {
  font-size: 12px;
  color:#d0decb;
  font-variant-numeric:tabular-nums;
}

.hero-rings {
  pointer-events: none;
  z-index:-1;
  position:absolute;
  right:-80px;
  top:-142px;
  width:310px;
  height:310px;
  border-radius:50%;
  border:1px solid #67866e;
  box-shadow:0 0 0 14px #1c4739,0 0 0 15px #45664e,0 0 0 30px #1b4538,0 0 0 31px #3b5e49,0 0 0 47px #194336,0 0 0 48px #345641,0 0 0 66px #194236,0 0 0 67px #2b503f;
  transform:rotate(24deg) scaleY(.8);
  opacity:.57;
}

.hero-digits {
  display: flex;
  gap:9px;
  margin:23px 0 18px;
  color:#f9faed;
  font:650 clamp(44px,6vw,65px)/1 var(--digits);
  letter-spacing:-.05em;
  font-variant-numeric:tabular-nums;
}

.hero-digits span {
  display: grid;
  place-items:center;
  width:1.14em;
  height:1.2em;
  border:1px solid #88a18a;
  border-radius:12px;
  background:#2b5042;
}

.hero-digits span:first-child {
  color: #d2eea9;
}

.hero-foot {
  display: flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-top:1px solid #416354;
}

.hero-foot button {
  padding: 0;
  color:#e2efce;
}

.hero-foot button span {
  font-size: 17px;
}

.list-card {
  display: flex;
  flex-direction:column;
}

.list-count,.balance-number,.wallet-hero p {
  display: flex;
  align-items:baseline;
  gap:7px;
}

.list-count {
  margin: 9px 0 1px;
}

.list-count strong,.balance-number strong,.wallet-hero strong {
  font-family: var(--digits);
  font-variant-numeric:tabular-nums;
  letter-spacing:-.055em;
  line-height:1.12;
}

.list-count strong {
  font-size: 52px;
}

.list-count>span,.balance-number small,.wallet-hero small {
  font-size: 14px;
  font-weight:550;
}

.muted,.balance-caption,.hint,.record-label,.body-copy {
  line-height: 1.55;
}

.muted,.hint,.balance-caption,.record-label {
  color: var(--muted);
  font-size:13px;
}

.compact {
  font-size: 12px;
}

.body-copy {
  font-size: 14px;
  overflow-wrap:anywhere;
  white-space:pre-line;
}

.sample {
  display: flex;
  gap:5px;
  flex-wrap:wrap;
  margin:12px 0 10px;
}

.sample span {
  color: #465d4d;
  background:#ebefe3;
  padding:4px 7px;
  font:600 14px/1.2 var(--digits);
  border-radius:5px;
  font-variant-numeric:tabular-nums;
  letter-spacing:.04em;
}

.row-link {
  border-top: 1px solid var(--line);
  width:100%;
  justify-content:space-between;
  padding:4px 0 0;
  margin-top:auto;
  color:#315c41;
}

.row-link span {
  font-size: 21px;
}

.text-link {
  color: var(--green);
  padding:0;
}

.research-card .record-label {
  margin: 15px 0 4px;
}

.hint {
  font-size: 12px;
  margin:9px 0;
}

.hint:empty,.record-label:empty,.sample:empty {
  display: none;
}

.primary,.secondary {
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:44px;
  padding:9px 18px;
  border-radius:11px;
  font-weight:650;
  font-size:14px;
  line-height:1.3;
}

.primary {
  background: var(--forest);
  color:#fbfff0;
}

.primary:hover:not(:disabled) {
  background: #24583f;
}

.primary span {
  font: 20px/1 Arial,sans-serif;
}

.research-card .primary {
  margin-top: 13px;
}

.secondary {
  border: 1px solid #c6d0be;
  background:var(--card);
}

.progress {
  height: 5px;
  background:#e1e7d9;
  border-radius:3px;
  overflow:hidden;
  margin:12px 0;
}

.progress span {
  display: block;
  height:100%;
  width:0;
  background:#71a258;
}

.balance-card {
  background: #edf2df;
  border-color:#d8e2ca;
  display:flex;
  flex-direction:column;
}

.balance-caption {
  display: block;
  margin:18px 0 3px;
}

.balance-number strong {
  font-size: 42px;
}

.balance-number {
  margin-bottom: 8px;
}

.search-box,.action-input {
  display: flex;
  align-items:center;
  gap:9px;
}

.search-box {
  margin: 19px 0 12px;
  padding:1px 13px;
  min-height:47px;
  background:#f3f5eb;
  border:1px solid #cfd9c6;
  border-radius:12px;
}

.search-icon {
  width: 13px;
  height:13px;
  border:1.8px solid #658369;
  border-radius:50%;
  position:relative;
  margin-right:4px;
}

.search-icon:after {
  content: "";
  width:7px;
  height:2px;
  background:#658369;
  position:absolute;
  right:-5px;
  bottom:-2px;
  transform:rotate(45deg);
}

.search-box input {
  border: 0;
  background:transparent;
  min-width:0;
  flex:1;
  height:44px;
  font-size:16px;
}

.search-box:focus-within {
  outline: 2px solid #718e60;
}

.search-box input:focus {
  outline: 0;
}

.search-box button {
  color: var(--green);
  font-size:13px;
  min-height:44px;
}

.list-line {
  display: flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  margin:10px 0 14px;
}

.number-grid {
  display: grid;
  grid-template-columns:repeat(auto-fill,minmax(48px,1fr));
  gap:6px;
}

.number-grid li {
  display: grid;
  place-items:center;
  border:1px solid #e0e6d9;
  border-radius:7px;
  background:#f2f5eb;
  min-height:36px;
  font:650 16px/1 var(--digits);
  letter-spacing:.035em;
}

.number-grid.filtered li {
  background: #d9eebf;
  border-color:#90b276;
}

.details {
  margin-top: 16px;
  border-top:1px solid var(--line);
  padding-top:13px;
  font-size:12px;
  color:var(--muted);
}

.details summary {
  cursor: pointer;
  min-height:29px;
}

.details code {
  display: block;
  margin-top:5px;
  overflow-wrap:anywhere;
}

.empty {
  display: flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:5px;
  padding:25px 10px;
  color:var(--muted);
  font-size:14px;
}

.records {
  margin-top: 10px;
}

.records li {
  display: flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:13px 0;
  border-top:1px solid var(--line);
  font-size:14px;
  overflow-wrap:anywhere;
}

.records li:first-child {
  border-top: 0;
}

.records li>div {
  display: grid;
  gap:3px;
}

.records li>div:last-child:not(:first-child) {
  text-align: right;
}

.records small,.records .empty-row {
  color: var(--muted);
  font-size:12px;
}

.records .draw-value,.records .amount {
  font: 650 20px/1.2 var(--digits);
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}

.records .draw-value {
  letter-spacing: .13em;
}

.records .positive {
  color: #397043;
}

.draw-form {
  margin-top: 16px;
}

.draw-form label,dialog label {
  font-size: 13px;
  display:block;
  font-weight:650;
  margin-bottom:6px;
}

.action-input input,dialog input {
  min-width: 0;
  flex:1;
  min-height:44px;
  background:#f6f7ef;
  border:1px solid #c4d0bb;
  border-radius:9px;
  padding:8px 11px;
  font-size:16px;
}

.action-input .primary {
  flex: none;
}

.two-col .record-label {
  margin: 13px 0 5px;
}

.result {
  background: #eaf3dd;
  border:1px solid #cbdeb9;
  border-radius:12px;
  padding:13px 15px;
  font-size:14px;
  margin-top:14px;
  white-space:pre-line;
  line-height:1.6;
}

.action-error {
  font-size: 13px;
  color:var(--alert);
  margin:12px 0 0;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.wallet-hero {
  background: #e5edce;
  border:1px solid #cddbb2;
  padding:24px;
  margin-bottom:16px;
}

.wallet-hero>span {
  font-size: 14px;
  color:#446249;
}

.wallet-hero p {
  margin: 9px 0;
}

.wallet-hero strong {
  font-size: 52px;
}

.wallet-hero #wallet-summary {
  font-size: 13px;
  color:#4b644e;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
}

#wallet-summary span {
  white-space: nowrap;
}

.balance-number,
.wallet-hero p {
  container-type: inline-size;
}

#home-balance,
#balance {
  font-size: min(var(--balance-max, 52px), calc((100cqi - 2rem) / var(--amount-chars, 1) * 1.5));
  white-space: nowrap;
}

.transactions {
  margin-top: 7px;
  container-type: inline-size;
}

.transactions li {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.transactions li:first-child {
  border-top: 0;
}

.transaction-heading,
.transaction-plan,
.transaction-foot {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.transaction-heading > *,
.transaction-foot > *,
.transaction-plan > * {
  white-space: nowrap;
}

.transaction-heading strong {
  font-size: 0.94rem;
}

.transaction-value {
  margin-inline-start: auto;
  font: 650 1.12rem/1.25 var(--digits);
  font-size: min(1.12rem, calc(135cqi / var(--value-chars, 1)));
}

.transaction-value.positive {
  color: var(--green);
}

.transaction-plan {
  align-items: center;
  font-size: 0.81rem;
  color: var(--ink);
}

.mode-pill {
  padding: 1px 7px;
  border-radius: 4px;
  background: #eef0e7;
  color: #546153;
}

.mode-pill.multi {
  color: #30553e;
  background: #e5efda;
}

.transaction-foot,
.transactions .empty-row {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.transaction-foot span {
  margin-inline-start: auto;
  font-size: min(0.76rem, calc(135cqi / var(--value-chars, 1)));
}

.notice {
  margin: 0 0 20px;
  border-radius:12px;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
}

.warning {
  color: #75432c;
  background:#fff1d7;
  border:1px solid #e6cba0;
}

.notice button {
  font-weight: 650;
  color:inherit;
  white-space:nowrap;
  min-height:36px;
}

.draw-alerts {
  display: block;
  white-space: pre-line;
  line-height: 1.6;
}

.verification-list {
  padding-inline-start: 1.2em;
  line-height: 1.6;
}

.verification-list li + li {
  margin-top: .45em;
}

.bottom-nav {
  position: fixed;
  z-index:5;
  bottom:0;
  left:0;
  right:0;
  display:flex;
  justify-content:center;
  pointer-events:none;
  padding-bottom:env(safe-area-inset-bottom);
}

.bottom-nav>div {
  pointer-events: auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  width:min(100%,480px);
  border:1px solid #d6dfcf;
  border-bottom:0;
  background:#fdfef8;
  border-radius:19px 19px 0 0;
  box-shadow:0 -2px 16px #193f2c09;
  padding:5px 6px;
}

.bottom-nav button {
  display: grid;
  justify-items:center;
  align-content:center;
  gap:2px;
  min-height:53px;
  font-size:11px;
  font-weight:600;
  color:#66796b;
  border-radius:12px;
}

.bottom-nav button[aria-current=page] {
  color: #214b33;
  background:#e7efdc;
}

.nav-icon {
  height: 20px;
  width:20px;
  display:grid;
  place-items:center;
  position:relative;
}

.nav-home:before {
  content: "";
  width:11px;
  height:10px;
  border:1.7px solid currentColor;
  border-top:0;
  margin-top:6px;
  border-radius:1px;
}

.nav-home:after {
  content: "";
  width:11px;
  height:11px;
  border-top:1.7px solid currentColor;
  border-left:1.7px solid currentColor;
  transform:rotate(45deg);
  position:absolute;
  top:2px;
}

.nav-draws:before {
  content: "";
  width:15px;
  height:15px;
  border:1.7px solid currentColor;
  border-radius:50%;
}

.nav-draws:after {
  content: "";
  height:5px;
  width:5px;
  border-radius:50%;
  background:currentColor;
  position:absolute;
}

.nav-wallet:after {
  right: 2px;
}

dialog {
  background: var(--card);
  color:var(--ink);
  border:1px solid var(--line);
  border-radius:22px;
  padding:26px;
  width:min(360px,calc(100% - 32px));
  box-shadow:0 20px 80px #0e302a30;
}

dialog::backdrop {
  background: #15362975;
}

dialog h2 {
  margin: 12px 0;
  font-size:23px;
}

dialog p {
  font-size: 14px;
  line-height:1.65;
}

dialog input {
  width: 100%;
}

dialog form>.primary {
  width: 100%;
  margin-top:15px;
}

.dialog-actions {
  display: flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:20px;
}

.verdict {
  margin: 9px 0 5px;
  font-size: 18px;
  line-height: 1.45;
}

.price-line,
.receipt-line {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}

.price-line {
  margin-top: 12px;
  color: var(--muted);
}

.receipt-line {
  margin: 8px 0;
  color: var(--forest);
  font-weight: 650;
}

#picks-choose {
  margin-top: 12px;
}

#kill-dialog {
  width: min(420px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#kill-dialog .dialog-issue {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

#kill-title {
  margin: 3px 0 12px;
}

.advice-box {
  padding: 10px 13px;
  border-left: 3px solid #699457;
  border-radius: 4px 10px 10px 4px;
  background: #edf3e6;
}

.advice-box strong {
  font-size: 15px;
}

.advice-box p {
  margin: 4px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.rule-origin,
.rule-period,
.rule-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.rule-period {
  margin: 5px 0 10px;
  font-variant-numeric: tabular-nums;
}

.rule-hint {
  margin: 10px 0 0;
}

.rule-list {
  border-top: 1px solid var(--line);
}

.rule-row {
  border-bottom: 1px solid var(--line);
}

.rule-row > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  list-style: none;
  cursor: pointer;
}

.rule-row > summary::-webkit-details-marker {
  display: none;
}

.rule-row > summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: 0 5px 4px auto;
  flex: none;
  border: solid var(--muted);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.rule-row[open] > summary::after {
  transform: rotate(225deg);
  margin-bottom: -3px;
}

.rule-digit {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 38px;
  border-radius: 8px;
  background: #e9efdf;
  color: #244e3b;
  font: 650 23px/1 var(--digits);
}

.rule-info {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rule-info strong,
.rule-info small {
  display: block;
}

.rule-info strong {
  font-size: 14px;
}

.rule-info small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.rule-body {
  padding: 0 0 11px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.rule-body p {
  margin: 4px 0;
}

.rule-pick {
  margin-top: 6px;
}

#kill-rule-panel {
  margin: 12px 0 0;
}

#kill-rule-panel > summary {
  padding: 5px 0;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
}

#kill-field {
  margin: 15px 0 0;
  padding: 0;
  min-width: 0;
  border: 0;
}

#kill-field legend {
  padding: 0 0 7px;
  font-weight: 650;
  font-size: 14px;
}

.kill-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.kill-option {
  position: relative;
  cursor: pointer;
}

.kill-option.no-kill {
  grid-column: 1 / -1;
}

.kill-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  height: 100%;
  cursor: pointer;
}

.option-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #bfcdbb;
  border-radius: 9px;
  background: #fff;
}

.option-face strong {
  font-size: 15px;
}

.option-face small {
  font-size: 10px;
  line-height: 1.2;
}

.no-kill .option-face {
  flex-direction: row;
  gap: 8px;
}

.kill-option input:checked + .option-face {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}

.kill-option input:focus-visible + .option-face {
  outline: 3px solid #548735;
  outline-offset: 2px;
}

#kill-dialog .dialog-actions {
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 13px;
}

.followup-card {
  align-self: start;
}

.followup-card.has-offer {
  border-color: #b8cdae;
  background: #f9fbf3;
}

.followup-card .muted {
  margin-top: 5px;
}

.followup-terms,
.followup-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
}

.followup-terms > *,
.followup-actions button {
  white-space: nowrap;
}

.followup-terms strong {
  font-size: 1.12rem;
}

.followup-card .body-copy {
  margin: 7px 0;
}

.followup-card .hint {
  margin-bottom: 0;
}

.followup-actions button {
  flex: 1 0 auto;
}

.issue-input {
  width: 100%;
  min-height:44px;
  margin:0 0 12px;
  background:#f6f7ef;
  border:1px solid #c4d0bb;
  border-radius:9px;
  padding:8px 11px;
  font-size:16px;
}

@media(min-width:800px) {
  .dashboard {
    grid-template-columns: 1.2fr 1fr;
  }
  #home .draw-hero {
    min-height: 256px;
  }
  .research-card,.balance-card {
    min-height: 178px;
  }
  .balance-caption {
    margin-top: 20px;
  }
  #picks>article,#wallet>article {
    max-width: 830px;
    margin-left:auto;
    margin-right:auto;
  }
}

@media(max-width:639px) {
  .mast-inner {
    padding: 0 19px;
    min-height:56px;
  }
  main {
    padding: 21px 16px calc(87px + env(safe-area-inset-bottom));
  }
  .page-title {
    margin: 2px 2px 16px;
  }
  .dashboard,.two-col {
    grid-template-columns: 1fr;
    gap:12px;
  }
  .card,.draw-hero,.wallet-hero {
    border-radius: 18px;
  }
  .card,.wallet-hero {
    padding: 17px 18px;
  }
  .draw-hero {
    min-height: 191px;
    padding:18px 20px 7px;
  }
  .hero-digits {
    margin: 15px 0 13px;
    font-size:46px;
  }
  .hero-digits span {
    height: 1.14em;
    width:1.12em;
    border-radius:9px;
  }
  .list-card {
    position: relative;
  }
  .list-count strong {
    font-size: 43px;
  }
  .balance-number strong {
    font-size: 36px;
  }
  #home-balance {
    --balance-max: 36px;
  }
  #balance {
    --balance-max: 45px;
  }
  .bottom-nav {
    background: var(--card);
    border-top:1px solid var(--line);
  }
  .bottom-nav>div {
    border: 0;
    border-radius:0;
    box-shadow:none;
    padding:3px 6px;
  }
  .research-card .primary {
    width: 100%;
  }
  .sample {
    margin: 10px 0;
  }
  .wallet-hero strong {
    font-size: 45px;
  }
}

@media(max-width:360px) {
  main {
    padding-left: 12px;
    padding-right:12px;
  }
  .mast-inner {
    padding: 0 14px;
  }
  .card,.wallet-hero {
    padding: 15px;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .number-grid {
    grid-template-columns: repeat(auto-fill,minmax(42px,1fr));
  }
  .action-input {
    gap: 6px;
  }
  .action-input .primary {
    padding: 9px 12px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation: none!important;
    scroll-behavior:auto!important;
  }
}
