:root {
  --bg: #f1f4f9;
  --bg-grad: radial-gradient(1200px 600px at -10% -10%, #e9efff 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 0%, #fdf0ff 0%, transparent 55%),
    linear-gradient(180deg, #f3f6fb 0%, #eef2f8 100%);
  --surface: #ffffff;
  --surface-muted: #f6f8fc;
  --surface-soft: #fbfcff;
  --text: #0f1a2c;
  --text-soft: #2b3a52;
  --muted: #6b7a90;
  --line: #dde4ee;
  --line-soft: #e8edf5;
  --accent: #4f5bd5;
  --accent-strong: #3b46c0;
  --accent-soft: #ecefff;
  --accent-grad: linear-gradient(135deg, #5b67e6 0%, #7a4fe6 100%);
  --violet: #8159f1;
  --amber: #b86c10;
  --amber-soft: #fff4dc;
  --danger: #c2444a;
  --danger-soft: #fdecec;
  --ok: #1f8a5d;
  --ok-soft: #e2f6ec;
  --shadow-sm: 0 1px 2px rgba(15, 26, 44, 0.06), 0 2px 8px rgba(15, 26, 44, 0.04);
  --shadow: 0 12px 32px rgba(31, 49, 73, 0.08), 0 2px 6px rgba(31, 49, 73, 0.04);
  --shadow-lg: 0 28px 60px rgba(31, 49, 73, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  font-family:
    "Inter",
    "PingFang SC",
    "Hiragino Sans",
    "Noto Sans KR",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
}

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

button {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

button:active {
  transform: translateY(1px);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 18px;
  min-height: 100vh;
  padding: 20px;
}

.sidebar,
.workspace,
.summary-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  position: sticky;
  top: 20px;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 40px);
  padding: 22px;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.brand-mark {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
}

.brand-mark__logo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 18px rgba(79, 91, 213, 0.3);
}

.brand-mark h1,
.workspace-header h2,
.summary-panel h3,
.section-heading h3,
.table-toolbar h4,
.export-panel h4 {
  margin: 0;
  color: var(--text);
}

.brand-mark h1 {
  font-size: 18px;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.step-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  padding-right: 2px;
}

.step-button {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0 10px;
}

.step-button:hover {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.step-button__index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  transition: all 0.15s ease;
}

.step-button__label {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.step-button.is-active {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(79, 91, 213, 0.05) inset;
}

.step-button.is-active .step-button__index {
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 91, 213, 0.3);
}

.step-button.is-done .step-button__index::before {
  content: "✓";
}

.step-button.is-done .step-button__index {
  background: var(--ok-soft);
  color: var(--ok);
}

.step-button.is-done .step-button__index span {
  display: none;
}

.workspace {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  overflow: hidden;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
}

.workspace-header h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.header-actions,
.toolbar-actions,
.wizard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#configForm {
  min-height: 0;
  overflow: auto;
  padding: 26px;
}

.step-panel {
  display: none;
  animation: fadeUp 0.18s ease;
}

.step-panel.is-active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.section-heading h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}

.section-heading p,
.table-toolbar p,
.choice-card__text {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.step-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-grad);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 14px rgba(79, 91, 213, 0.25);
}

.subsection-title {
  margin: 18px 0 10px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field--compact {
  gap: 6px;
}

.field > span,
.toggle-row span,
th {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.field-label,
.th-label,
.table-toolbar h4 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.th-label {
  flex-wrap: wrap;
}

.required-label::after {
  color: var(--danger);
  content: "*";
  font-size: 13px;
  font-weight: 900;
}

.required-note {
  margin: -6px 0 16px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.help-tip {
  position: relative;
  display: inline-grid;
  width: 18px;
  height: 18px;
  min-height: 18px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  padding: 0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.help-tip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.help-tip::after {
  position: absolute;
  z-index: 20;
  bottom: calc(100% + 9px);
  left: 50%;
  width: min(320px, 78vw);
  border: 1px solid #1a2238;
  border-radius: 10px;
  background: #1a2238;
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  opacity: 0;
  padding: 11px 13px;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: normal;
  box-shadow: 0 10px 22px rgba(15, 26, 44, 0.25);
}

.help-tip::before {
  position: absolute;
  z-index: 21;
  bottom: calc(100% + 4px);
  left: 50%;
  width: 10px;
  height: 10px;
  background: #1a2238;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) rotate(45deg);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.help-tip:hover::after,
.help-tip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.help-tip:hover::before,
.help-tip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  outline: none;
  padding: 9px 11px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c5cfdf;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 91, 213, 0.15);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--surface-muted);
  color: #94a0b3;
  cursor: not-allowed;
}

textarea {
  min-height: 150px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

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

.choice-card {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px 12px;
  align-items: start;
  min-height: 112px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.choice-card:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.choice-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--accent);
}

.choice-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f5f0ff 100%);
  box-shadow: 0 6px 18px rgba(79, 91, 213, 0.18);
}

.choice-card__title {
  font-weight: 850;
  font-size: 14px;
}

.choice-card__text {
  grid-column: 2;
}

.choice-card--lg {
  min-height: 92px;
}

.table-section,
.export-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.table-section.is-disabled {
  background: var(--surface-muted);
}

.table-section.is-disabled .panel-body {
  opacity: 0.55;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.panel-body {
  padding: 18px;
}

.responsive-table {
  overflow-x: auto;
}

.responsive-table--wide table {
  min-width: 1120px;
}

.inline-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.inline-field select {
  width: auto;
  min-width: 220px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

thead th {
  background: var(--surface-soft);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: var(--surface-soft);
}

td input,
td select,
td textarea {
  min-width: 110px;
}

td textarea {
  min-width: 220px;
  resize: vertical;
}

.row-actions {
  width: 1%;
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.primary-button {
  border: 1px solid transparent;
  background: var(--accent-grad);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(79, 91, 213, 0.28);
}

.primary-button:hover {
  box-shadow: 0 8px 20px rgba(79, 91, 213, 0.36);
  filter: brightness(1.04);
}

.secondary-button {
  border: 1px solid var(--accent);
  background: #ffffff;
  color: var(--accent);
}

.secondary-button:hover {
  background: var(--accent-soft);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text-soft);
}

.ghost-button:hover {
  border-color: #c5cfdf;
  background: var(--surface-muted);
}

.ghost-button--block {
  width: 100%;
}

.danger-button {
  border: 1px solid #e7b8b8;
  background: #fff6f6;
  color: var(--danger);
}

.wallet-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.wallet-bucket {
  position: relative;
  min-height: 96px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-soft) 100%);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.wallet-bucket strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
}

.bucket-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-soft);
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line-soft);
}

.tag--ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: rgba(31, 138, 93, 0.2);
}

.tag--warn {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: rgba(184, 108, 16, 0.2);
}

.provider-type {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 800;
}

.provider-hint {
  color: var(--muted);
  font-size: 12px;
}

.settings-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.settings-band--single {
  grid-template-columns: 1fr;
  margin: 14px 0 0;
}

.settings-band--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.toggle-row:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--accent);
}

.readonly-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 12px 14px;
}

.readonly-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.export-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.export-side {
  display: grid;
  gap: 14px;
}

.export-panel {
  margin-top: 0;
}

.export-panel--soft {
  background: var(--surface-soft);
}

.export-panel--soft h4 {
  padding: 16px 18px 0;
}

.export-panel--soft textarea {
  margin: 14px 18px 0;
  width: calc(100% - 36px);
}

.export-panel--soft .secondary-button {
  margin: 14px 18px 18px;
}

.export-panel--warn {
  background: linear-gradient(180deg, #fffaf0 0%, #fff4dc 100%);
  border-color: rgba(184, 108, 16, 0.25);
}

.export-panel--warn h4 {
  padding: 16px 18px 0;
  color: var(--amber);
}

.export-panel--warn p {
  margin: 6px 18px 0;
  color: var(--amber);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.unsupported-list {
  margin: 12px 18px 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.unsupported-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.unsupported-list li::before {
  position: absolute;
  left: 0;
  top: 5px;
  content: "✕";
  color: var(--amber);
  font-weight: 900;
  font-size: 11px;
}

.json-preview,
.mini-json pre {
  margin: 0;
  overflow: auto;
  background: #0d1424;
  color: #d6dffb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
}

.json-preview {
  max-height: 560px;
  padding: 18px;
}

.support-list {
  display: grid;
  gap: 8px;
  margin: 14px 18px 18px;
}

.support-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: #ffffff;
}

.support-item strong {
  font-size: 13px;
  color: var(--text);
}

.support-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wizard-actions {
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(0deg, #ffffff 0%, var(--surface-soft) 100%);
}

.status-line {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: color 0.15s ease;
}

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

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

.summary-panel {
  display: flex;
  position: sticky;
  top: 20px;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 40px);
  padding: 22px;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.summary-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 10px;
}

.summary-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.summary-list dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
  color: var(--text);
}

.mini-json {
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.mini-json pre {
  max-height: 100%;
  padding: 14px;
}

/* Promotion-rules editor — tabs and sub-tabs */
.promo-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.promo-tab {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.promo-tab:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.promo-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.promo-tab-panel {
  display: none;
  animation: fadeUp 0.18s ease;
}

.promo-tab-panel.is-active {
  display: block;
}

.promo-subtabs {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
  flex-wrap: wrap;
}

.promo-subtab {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s ease;
}

.promo-subtab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.promo-subtab.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Casino-mode preset cards (button styling — preset-card variant of choice-card) */
.preset-card {
  text-align: left;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 8px;
  font-family: inherit;
  transition: all 0.15s ease;
}

.preset-card:hover {
  border-color: var(--accent);
  background: var(--surface-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.preset-card .choice-card__title,
.preset-card .choice-card__text {
  grid-column: 1 / -1;
  text-align: left;
}

.panel-body--toolbar {
  padding: 12px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-soft);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .summary-panel {
    display: none;
  }
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

  .workspace-header,
  .table-toolbar,
  .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .toolbar-actions {
    width: 100%;
  }

  .header-actions button,
  .toolbar-actions button,
  .wizard-actions button {
    flex: 1;
  }

  .form-grid,
  .form-grid--three,
  .choice-grid,
  .choice-grid--two,
  .wallet-preview,
  .settings-band,
  .export-grid {
    grid-template-columns: 1fr;
  }

  .readonly-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-field {
    width: 100%;
  }

  .inline-field select {
    width: 100%;
  }
}

@media (max-width: 560px) {
  #configForm {
    padding: 16px;
  }

  .workspace-header,
  .wizard-actions {
    padding: 16px;
  }

  .step-nav {
    grid-template-columns: 1fr;
  }
}
