:root {
  color-scheme: light;
  --bg: #edf2f7;
  --panel: #ffffff;
  --panel-soft: #f3f6fa;
  --text: #252a32;
  --muted: #717986;
  --line: #dfe5ee;
  --line-strong: #cbd5e3;
  --input: #ffffff;
  --blue: #2f86ff;
  --blue-strong: #1d65d8;
  --violet: #6254d9;
  --amber: #eba12d;
  --green: #50b937;
  --red: #ff6363;
  --shadow: 0 18px 48px rgba(28, 40, 58, 0.14);
  --soft-shadow: 0 10px 24px rgba(31, 46, 72, 0.08);
  --font-ui: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-display: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  font-family: var(--font-ui);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151c;
  --panel: #171d26;
  --panel-soft: #202834;
  --text: #eef3fa;
  --muted: #a6b0be;
  --line: #2d3948;
  --line-strong: #425166;
  --input: #121922;
  --blue: #65a8ff;
  --blue-strong: #3a84ea;
  --violet: #8d83ff;
  --amber: #f0b24a;
  --green: #70cf59;
  --red: #ff7777;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.sidebar-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue-strong);
  text-decoration: none;
}

code {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(47, 134, 255, 0.12);
  color: var(--blue-strong);
  font-family: var(--font-mono);
  font-size: 13px;
  word-break: break-word;
}

.hidden {
  display: none !important;
}

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

.app-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.app-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 52px;
  color: var(--text);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--blue) 38%, var(--line));
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 85%, var(--blue)), var(--panel));
  color: var(--blue-strong);
  font-family: var(--font-display);
  font-weight: 820;
  box-shadow: var(--soft-shadow);
}

.app-brand-text {
  display: grid;
  min-width: 0;
}

.app-brand-text strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 780;
}

.app-brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.module-nav {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.module-link {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 58px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  box-shadow: none;
}

.module-link:hover {
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.module-link.active {
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--soft-shadow);
}

.module-link:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.module-link strong,
.module-link small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-link strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 760;
}

.module-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 70%, var(--panel));
  color: var(--muted);
  font-weight: 780;
}

.module-link.active .module-icon {
  background: color-mix(in srgb, var(--blue) 13%, var(--panel));
  color: var(--blue-strong);
}

.sidebar-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  border: 0;
  border-radius: 0;
  background: rgba(10, 16, 24, 0.42);
  box-shadow: none;
}

.workspace {
  min-width: 0;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, var(--panel));
  backdrop-filter: blur(16px);
}

.module-heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.module-heading > div {
  display: grid;
  min-width: 0;
}

.module-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}

.module-heading strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 780;
}

.menu-button {
  display: none;
}

.section-icon,
.empty-glyph {
  width: 22px;
  height: 22px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.section-icon::after,
.empty-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 8px;
  border: 2px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  transform: translateX(-50%);
}

.top-actions,
.button-row,
.action-area,
.checkout-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions {
  flex: 0 0 auto;
}

.ghost-button,
.icon-button,
.secondary-button,
.primary-button,
.action-button,
.wide-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 16px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  font-weight: 650;
}

.primary-button,
.secondary-button,
.action-button,
.wide-button,
.copy-button,
.ghost-button,
.icon-button {
  letter-spacing: 0;
}

.ghost-button,
.icon-button {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.icon-button {
  width: 40px;
  padding: 0;
}

button:hover {
  transform: translateY(-1px);
}

.sidebar-scrim:hover {
  transform: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.action-button:disabled {
  filter: grayscale(0.22) saturate(0.62);
  box-shadow: none;
}

.shell {
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(560px, 1.25fr);
  align-items: start;
  gap: 24px;
  width: min(1420px, calc(100% - 48px));
  margin: 24px auto 56px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(31, 46, 72, 0.07);
}

.token-panel,
.account-panel {
  padding: 26px;
}

.help-box {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  background: color-mix(in srgb, var(--panel-soft) 84%, var(--blue));
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
}

html[data-theme="dark"] .help-box {
  border-color: color-mix(in srgb, var(--blue) 28%, var(--line));
  background: color-mix(in srgb, var(--panel-soft) 86%, var(--blue));
  color: var(--muted);
}

.help-title,
.help-line,
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-title {
  margin-bottom: 14px;
  color: var(--blue-strong);
  font-family: var(--font-display);
  font-weight: 750;
}

.help-line {
  flex-wrap: wrap;
  min-height: 30px;
  margin-top: 6px;
  font-size: 14px;
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 13px;
}

.sample {
  margin-top: 12px;
  border: 1px solid rgba(47, 134, 255, 0.2);
  border-radius: 8px;
  background: var(--panel);
}

.sample summary {
  min-height: 42px;
  padding: 12px 14px;
  color: var(--blue-strong);
  cursor: pointer;
}

.sample pre {
  margin: 0;
  padding: 0 14px 14px;
  overflow: auto;
  color: var(--muted);
}

.field-label {
  display: block;
  margin: 20px 0 10px;
  color: var(--muted);
  font-weight: 650;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  outline: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.48) inset;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 134, 255, 0.16);
}

textarea {
  min-height: 236px;
  resize: vertical;
  padding: 14px;
  line-height: 1.55;
}

input,
select {
  min-height: 44px;
  padding: 0 13px;
  font-weight: 650;
}

select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 18px,
    calc(100% - 14px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.centered {
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  min-width: 150px;
}

.primary-button {
  background: linear-gradient(135deg, #5f7bea, #7a48b8);
  color: #fff;
  box-shadow: 0 10px 20px rgba(95, 123, 234, 0.28);
}

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

.button-icon {
  margin-right: 6px;
}

.full {
  width: 100%;
}

.status-line {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.status-line.ok {
  color: var(--green);
}

.status-line.error {
  color: var(--red);
}

.section-heading {
  min-height: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 750;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 26px;
}

.detail-card {
  min-height: 104px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.detail-card.important {
  border-color: #8aa5ff;
  box-shadow: inset 0 0 0 1px rgba(69, 106, 255, 0.36);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.detail-value {
  margin-top: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 19px;
  font-family: var(--font-display);
  font-weight: 750;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  background: rgba(235, 161, 45, 0.88);
  color: #fff;
  font-weight: 750;
}

.tag.green {
  background: rgba(80, 185, 55, 0.14);
  color: var(--green);
}

.tag.red {
  background: rgba(255, 99, 99, 0.12);
  color: var(--red);
}

.tag.amber {
  background: rgba(235, 161, 45, 0.12);
  color: var(--amber);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 360px;
  gap: 20px;
  color: var(--muted);
  text-align: center;
}

.empty-glyph {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.alert {
  margin-top: 20px;
  padding: 16px 18px;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: rgba(255, 99, 99, 0.1);
  color: var(--red);
}

.alert .minor {
  display: block;
  margin-top: 8px;
  color: var(--amber);
  font-size: 14px;
}

.divider {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.action-area {
  justify-content: center;
  flex-wrap: wrap;
}

.action-button,
.wide-button {
  min-width: 210px;
  min-height: 44px;
  color: white;
  font-family: var(--font-display);
  font-weight: 750;
  border: 0;
}

.action-button span:first-child,
.wide-button > span:first-child {
  margin-right: 8px;
}

.amber {
  background: linear-gradient(135deg, #f4c777, #f0a12b);
}

.violet {
  background: linear-gradient(135deg, #6673e6, #7747ac);
}

.green {
  background: linear-gradient(135deg, #67c84e, #2ea22f);
}

.red {
  background: linear-gradient(135deg, #ffb0b0, #ff7070);
}

.blue {
  background: linear-gradient(135deg, #8fc6ff, #3f95ef);
}

.neutral {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.result-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.result-card strong {
  display: block;
  margin-bottom: 5px;
}

.result-card code {
  max-width: 100%;
}

.copy-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 650;
  box-shadow: 0 4px 12px rgba(31, 46, 72, 0.06);
}

.copy-button.primary-copy {
  border-color: color-mix(in srgb, var(--violet) 36%, var(--line));
  background: color-mix(in srgb, var(--violet) 12%, var(--panel));
  color: var(--violet);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: rgba(0, 0, 0, 0.42);
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 42px);
  overflow: auto;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.modal h2 {
  margin: 0 34px 22px 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 760;
}

.mini-modal {
  width: min(390px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 24px;
}

.modal-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 74%, transparent);
  color: var(--muted);
}

.activity-panel {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.activity-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: 14px;
  font-weight: 740;
}

.activity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.activity-choice {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 82px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-soft) 54%, var(--panel));
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.activity-choice:hover {
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  background: var(--panel);
}

.activity-choice.selected {
  border-color: color-mix(in srgb, var(--blue) 52%, var(--line));
  background: color-mix(in srgb, var(--blue) 8%, var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 18%, transparent);
}

.activity-choice-title {
  padding-right: 46px;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
}

.activity-choice-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.activity-choice-state {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, var(--blue));
  color: var(--blue-strong);
  font-size: 11px;
  font-weight: 760;
}

.activity-choice:not(.selected) .activity-choice-state {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.checkout-form-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-grid.compact {
  gap: 12px;
}

.control-block {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.control-block > span {
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}

.dialog-form {
  display: grid;
  gap: 14px;
}

.control-block.wide {
  grid-column: 1 / -1;
}

.inline-warning {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(235, 161, 45, 0.12);
  color: var(--amber);
}

.checkout-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.wide-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  box-shadow: 0 12px 24px rgba(31, 46, 72, 0.14);
  white-space: nowrap;
}

.wide-button.neutral {
  grid-column: 1 / -1;
  box-shadow: none;
}

.checkout-output {
  display: grid;
  gap: 12px;
}

.checkout-empty {
  padding: 14px 16px;
  border: 1px solid rgba(255, 99, 99, 0.18);
  border-radius: 8px;
  background: rgba(255, 99, 99, 0.08);
  color: var(--red);
  font-weight: 650;
}

.checkout-output-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(80, 185, 55, 0.12);
  color: var(--green);
  font-weight: 750;
}

.checkout-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, var(--blue));
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel-soft) 72%, var(--panel)), var(--panel));
  box-shadow: 0 10px 24px rgba(31, 46, 72, 0.08);
}

.checkout-link-main {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.checkout-link-main strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 760;
  color: var(--muted);
}

.checkout-url {
  display: block;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 10%, var(--panel));
  color: color-mix(in srgb, var(--green) 82%, var(--text));
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.checkout-link-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1120px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-layout {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(84vw, 304px);
    max-width: 304px;
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    background: var(--panel);
    box-shadow: 18px 0 42px rgba(20, 29, 44, 0.18);
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-scrim {
    left: min(84vw, 304px);
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .topbar {
    min-height: 60px;
  }

  .shell {
    width: min(100% - 28px, 720px);
  }
}

@media (max-width: 720px) {
  .topbar {
    gap: 12px;
    padding: 10px 14px;
  }

  .module-heading {
    gap: 10px;
  }

  .module-heading span {
    font-size: 11px;
  }

  .module-heading strong {
    max-width: 42vw;
    font-size: 16px;
  }

  .top-actions {
    gap: 8px;
  }

  .ghost-button {
    padding: 0 10px;
  }

  .shell {
    width: calc(100vw - 20px);
    margin-top: 10px;
  }

  .token-panel,
  .account-panel,
  .modal {
    padding: 18px;
  }

  .help-line {
    align-items: flex-start;
  }

  textarea {
    min-height: 190px;
  }

  .account-grid,
  .form-grid,
  .activity-list {
    grid-template-columns: 1fr;
  }

  .action-button,
  .wide-button {
    width: 100%;
    min-width: 0;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .checkout-buttons,
  .checkout-link-card {
    grid-template-columns: 1fr;
  }

  .checkout-link-actions {
    justify-content: flex-end;
  }

  .button-row {
    flex-direction: column;
  }

  .button-row > button {
    width: 100%;
  }

}
