:root {
  --bg: #050403;
  --bg-soft: #100c08;
  --panel: rgba(20, 14, 9, 0.86);
  --panel-solid: #17100a;
  --line: rgba(255, 207, 111, 0.18);
  --line-strong: rgba(255, 207, 111, 0.34);
  --gold: #ffd566;
  --gold-hot: #ffb931;
  --copper: #b75e26;
  --cream: #ffe4af;
  --muted: #b9a990;
  --text: #fff5df;
  --dim: #6d5c47;
  --success: #72d69b;
  --red: #ff6f78;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 194, 82, 0.2), transparent 34rem),
    radial-gradient(circle at 8% 20%, rgba(183, 94, 38, 0.18), transparent 24rem),
    linear-gradient(180deg, #030201 0%, #090604 52%, #050403 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 213, 102, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 213, 102, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 80%);
}
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image:
    repeating-linear-gradient(118deg, transparent 0 18px, rgba(255, 214, 130, 0.08) 19px, transparent 21px),
    repeating-linear-gradient(72deg, transparent 0 30px, rgba(144, 69, 28, 0.12) 31px, transparent 33px);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 22px 42px;
}
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 2%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 213, 102, 0.65), transparent);
}
.hero--calculator {
  background:
    radial-gradient(circle at 22% 35%, rgba(114, 214, 155, 0.08), transparent 23rem),
    radial-gradient(circle at 78% 38%, rgba(255, 185, 49, 0.16), transparent 25rem);
}
.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  font-weight: 800;
}
.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(255, 185, 49, 0.23);
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar__links a {
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.topbar__links a:hover,
.topbar__links a.is-current {
  border-color: var(--line-strong);
  color: var(--gold);
  background: rgba(255, 213, 102, 0.09);
}
.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  object-fit: cover;
  filter: drop-shadow(0 24px 72px rgba(0, 0, 0, 0.8));
}
.hero__mark--coin {
  right: clamp(-160px, -7vw, -70px);
  top: 52%;
  width: min(58vw, 780px);
  max-width: 86vh;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.9;
  transform: translateY(-50%);
}
.hero__mark--sun {
  right: clamp(180px, 25vw, 430px);
  top: 54%;
  width: min(36vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.18;
  transform: translateY(-50%) rotate(10deg);
}
.hero__content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(730px, 100%);
  padding: 44px 0 130px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin-bottom: 18px;
  color: var(--cream);
  font-size: clamp(3.2rem, 10vw, 8.7rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(255, 185, 49, 0.16);
}
h2 {
  margin-bottom: 0;
  color: var(--cream);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  line-height: 1.05;
}
h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.2;
}
.hero__lead {
  width: min(590px, 100%);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}
.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  background: rgba(255, 213, 102, 0.06);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.button:hover,
.button:focus-visible {
  border-color: rgba(255, 213, 102, 0.72);
  background: rgba(255, 213, 102, 0.12);
  transform: translateY(-1px);
  outline: none;
}
.button--primary {
  border-color: rgba(255, 213, 102, 0.8);
  background: linear-gradient(135deg, #ffe4a2, #ffba38 50%, #9c4618);
  color: #160d05;
  box-shadow: 0 16px 46px rgba(255, 176, 49, 0.23);
}
.button--ghost.is-active {
  border-color: var(--success);
  color: var(--success);
}
.button--full { width: 100%; }
.button--small {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 0.78rem;
}
.button__icon {
  display: inline-flex;
  margin-right: 10px;
  font-size: 0.86rem;
}

.stats-grid,
.dashboard,
.results-panel {
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -82px;
  margin-bottom: 20px;
}
.stat,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 220, 142, 0.08), rgba(16, 11, 7, 0.78) 38%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.stat {
  min-height: 150px;
  padding: 22px;
  overflow: hidden;
}
.stat--accent {
  background:
    radial-gradient(circle at 30% 0, rgba(255, 213, 102, 0.25), transparent 58%),
    linear-gradient(145deg, rgba(111, 51, 18, 0.5), rgba(12, 8, 5, 0.9));
}
.stat__label,
.stat__hint {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.stat strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--gold);
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 0.95;
  word-break: break-word;
}
.up { color: var(--success) !important; }
.down { color: var(--red) !important; }
.yellow-c,
.accent-c { color: var(--gold) !important; }

.dashboard {
  display: grid;
  grid-template-columns: 315px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}
.panel {
  padding: 22px;
  min-width: 0;
}
.panel--controls {
  position: sticky;
  top: 18px;
}
.panel__header {
  margin-bottom: 18px;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
}
.field select,
.share-card__editor select {
  appearance: none;
  padding-right: 42px;
  color: var(--cream);
  background:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%) right 18px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--gold) 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
    rgba(0, 0, 0, 0.38);
  cursor: pointer;
}
.field select option,
.share-card__editor select option {
  color: var(--cream);
  background: #100b07;
}
.field select option:checked,
.share-card__editor select option:checked {
  color: #160d05;
  background: var(--gold);
}
.field select option:hover,
.share-card__editor select option:hover {
  color: var(--cream);
  background: #3a260d;
}
.field input:focus,
.field select:focus {
  border-color: rgba(255, 213, 102, 0.72);
}
.field input::-webkit-inner-spin-button { appearance: none; }
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  color: var(--gold);
  transform: translateY(-50%);
  pointer-events: none;
}
.dropdown {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: #100b07;
  box-shadow: var(--shadow);
}
.dropdown.open { display: block; }
.dropdown-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 0;
  color: var(--muted);
  background: transparent;
  border-bottom: 1px solid rgba(255, 207, 111, 0.1);
  text-align: left;
}
.dropdown-item:hover {
  color: var(--cream);
  background: rgba(255, 213, 102, 0.08);
}
.di-sym {
  color: var(--gold);
  font-weight: 900;
}
.di-base {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}
.status {
  display: none;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.status.visible { display: flex; }
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.market-mini {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}
.market-mini strong {
  color: var(--cream);
  font-family: "JetBrains Mono", monospace;
}
.saved-setups {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.saved-list {
  display: grid;
  gap: 8px;
}
.saved-empty {
  color: var(--dim);
  font-size: 0.84rem;
  font-weight: 700;
}
.saved-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.saved-item strong {
  display: block;
  color: var(--cream);
  font-size: 0.9rem;
}
.saved-item span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.saved-actions {
  display: flex;
  gap: 6px;
}
.saved-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(255, 213, 102, 0.06);
  font-weight: 900;
}
.direction-toggle {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.24);
}
.dir-btn {
  min-height: 34px;
  border: 0;
  padding: 8px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}
.dir-btn.active-long {
  color: #061107;
  background: var(--success);
}
.dir-btn.active-short {
  color: #1e0607;
  background: var(--red);
}
.auto-hint {
  display: block;
  min-height: 18px;
  margin-top: -10px;
  margin-bottom: 14px;
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 700;
}
.form-grid,
.fee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fee-block {
  margin: 6px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.fee-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}
.tip {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 213, 102, 0.06);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}
.rr-box {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 900;
}
.rr-box.is-ready {
  border-color: var(--line-strong);
  color: var(--gold);
}

.results-panel {
  margin-top: 20px;
  min-width: 0;
}
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}
th {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.32);
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 207, 111, 0.1);
  color: var(--text);
  text-align: center;
}
tbody tr:hover td {
  background: rgba(255, 213, 102, 0.04);
}
.lev-badge,
.status-pill {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  background: rgba(255, 213, 102, 0.06);
  font-weight: 900;
}
.pnl-pos { color: var(--success); font-weight: 900; }
.pnl-neg { color: var(--red); font-weight: 900; }
.fee-td { color: var(--gold); }
.highlight-row td { background: rgba(255, 213, 102, 0.035); }
.best-row td {
  background: rgba(114, 214, 155, 0.07);
}
.best-row .lev-badge {
  border-color: rgba(114, 214, 155, 0.6);
  color: var(--success);
}
.risk-pill {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.risk-low {
  border-color: rgba(114, 214, 155, 0.45);
  color: var(--success);
}
.risk-medium {
  border-color: rgba(255, 213, 102, 0.45);
  color: var(--gold);
}
.risk-high {
  border-color: rgba(255, 111, 120, 0.52);
  color: var(--red);
}
.risk-bar {
  display: block;
  width: 84px;
  height: 6px;
  margin: 7px auto 0;
  border: 1px solid rgba(255, 207, 111, 0.16);
  background: rgba(0, 0, 0, 0.28);
}
.risk-bar i {
  display: block;
  height: 100%;
  background: var(--success);
}
.risk-bar--low i { width: 32%; }
.risk-bar--medium i {
  width: 62%;
  background: var(--gold);
}
.risk-bar--high i {
  width: 92%;
  background: var(--red);
}
.empty-state {
  margin: 22px 0;
  color: var(--muted);
  text-align: center;
}
.summary-bar {
  display: none;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.summary-bar.visible { display: grid; }
.sb-item {
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}
.sb-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.sb-val {
  color: var(--cream);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  word-break: break-word;
}
.share-card {
  display: none;
  min-width: 0;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 213, 102, 0.18), transparent 44%),
    rgba(0, 0, 0, 0.28);
}
.share-card.visible {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.7fr) auto;
}
.share-card h3 {
  margin-bottom: 6px;
}
.share-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}
.share-card__editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.share-card__editor label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.share-card__editor span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}
.share-card__editor input,
.share-card__editor select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 10px 11px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  outline: none;
}
.share-card__editor input:focus,
.share-card__editor select:focus {
  border-color: rgba(255, 213, 102, 0.72);
}
.share-card__wide {
  grid-column: 1 / -1;
}
.share-card .button-row {
  justify-content: end;
  min-width: 0;
}
.share-card__intro {
  min-width: 0;
}
.share-card__editor input[id$="Value"] {
  font-family: "JetBrains Mono", monospace;
  color: var(--gold);
  font-weight: 900;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(8px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: min(620px, 100%);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 80% 0, rgba(255, 213, 102, 0.2), transparent 52%),
    var(--panel-solid);
  box-shadow: var(--shadow);
}
.modal--compact {
  width: min(480px, 100%);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.modal-title {
  margin: 0;
}
.modal-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: rgba(0, 0, 0, 0.24);
  font-size: 1.2rem;
}
.modal-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.modal-field {
  display: grid;
  gap: 8px;
}
.modal-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.modal-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 12px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  outline: none;
}
.modal-field input:focus {
  border-color: rgba(255, 213, 102, 0.72);
}
.modal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.save-setup-form .button-row {
  justify-content: flex-end;
}
.help-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
}
.help-step p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}
.step-num {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: #160d05;
  background: var(--gold);
  font-weight: 900;
}
.fixed-tooltip {
  position: fixed;
  z-index: 1200;
  display: none;
  width: min(240px, calc(100vw - 20px));
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: #100b07;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  line-height: 1.5;
  pointer-events: none;
}

@media (max-width: 1180px) {
  .stats-grid,
  .form-grid,
  .fee-grid,
  .summary-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .share-card,
  .share-card.visible {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .share-card .button-row {
    justify-content: start;
  }
}
@media (max-width: 860px) {
  .app-shell { padding-inline: 14px; }
  .hero { min-height: 780px; }
  .hero__mark--coin {
    top: 66%;
    right: 50%;
    width: min(86vw, 540px);
    opacity: 0.42;
    transform: translate(50%, -50%);
  }
  .hero__mark--sun { display: none; }
  .hero__content {
    align-self: start;
    padding-top: 110px;
  }
  .dashboard { grid-template-columns: 1fr; }
  .panel--controls { position: static; }
}
@media (max-width: 620px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }
  .topbar__links {
    width: 100%;
    overflow-x: auto;
  }
  .topbar__links a {
    flex: 1 0 auto;
    text-align: center;
  }
  .stats-grid,
  .form-grid,
  .fee-grid,
  .summary-bar {
    grid-template-columns: 1fr;
  }
  .section-title {
    align-items: stretch;
    flex-direction: column;
  }
  .direction-toggle,
  .hero__actions,
  .button,
  .button-row {
    width: 100%;
  }
  .dir-btn,
  .button-row .button {
    flex: 1;
  }
  .share-card,
  .share-card.visible {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .share-card__intro h3 {
    font-size: 1.05rem;
    line-height: 1.15;
  }
  .share-card__intro p {
    font-size: 0.9rem;
    line-height: 1.45;
  }
  .share-card__editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .share-card .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .share-card .button-row .button {
    width: 100%;
  }
  .share-card__editor input,
  .share-card__editor select {
    font-size: 0.86rem;
    min-height: 42px;
  }
  h1 { font-size: clamp(3rem, 20vw, 5.2rem); }
}
