:root {
  color-scheme: light;
  --ink: #232c25;
  --muted: #545e55;
  --forest: #233b2b;
  --forest-dark: #182b20;
  --lime: #d8ed9d;
  --cream: #f5f2eb;
  --paper: #fdfcf8;
  --line: #d4d9cc;
  --danger: #9b3024;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { line-height: 1.08; font-weight: 660; letter-spacing: -.045em; }
h1 { font-size: clamp(2.25rem, 6vw, 4.7rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #568551; outline-offset: 4px; }
.frame { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; inset: 12px auto auto 12px; padding: .65rem; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { color: var(--paper); background: var(--forest-dark); }
.site-header-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; font-weight: 790; font-size: 1.33rem; letter-spacing: -.05em; white-space: nowrap; }
.mark { display: grid; place-items: center; margin-right: .5rem; min-width: 33px; height: 33px; border-radius: 45% 45% 45% 12%; background: var(--lime); color: var(--forest-dark); font-size: 1.15rem; }
.mark-light { font-weight: 420; }
.site-header nav, .account { display: flex; align-items: center; gap: clamp(.65rem, 2.7vw, 1.875rem); }
.site-header nav a, .account a, .account button { padding: .35rem 0; color: #d7e1d5; background: none; border: 0; text-decoration: none; white-space: nowrap; font-size: .94rem; }
.site-header nav a[aria-current], .site-header nav a:hover, .account a:hover, .account button:hover { color: var(--lime); }
.account button { cursor: pointer; }
.account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.preview-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .55rem; min-height: 38px; padding: .35rem 1rem; color: var(--forest-dark); background: #e4e9da; font-size: .84rem; }
.preview-dot { width: 6px; height: 6px; background: #35704b; border-radius: 50%; }
main { min-height: calc(100vh - 235px); padding-block: clamp(1.7rem, 5vw, 3.5rem) 3rem; }
.hero { background: var(--forest); color: var(--paper); border-radius: 18px; padding: clamp(1.45rem, 5vw, 3.8rem); display: grid; grid-template-columns: minmax(0, 2fr) minmax(210px, 1fr); align-items: end; gap: clamp(1.75rem, 4vw, 3rem); }
.hero h1 { max-width: 13ch; }
.hero p { max-width: 43ch; margin-top: 1.1rem; color: #e3eae1; font-size: 1.04rem; }
.hero .button { margin-top: 1.45rem; }
.kind-menu { display: grid; gap: 0; }
.kind-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 0; border-top: 1px solid #67816c; padding: .9rem .15rem; background: transparent; color: var(--paper); text-align: left; text-decoration: none; cursor: pointer; font-weight: 620; }
.kind-action::after { content: '↘'; color: var(--lime); }
.kind-action:hover { color: var(--lime); }
.catalog { padding-top: 2.7rem; }
.catalog-head, .section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.catalog-head p, .section-head p, .body-copy { color: var(--muted); }
.section-head p { margin-top: .5rem; }
.toolbar { display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(3, minmax(125px, 1fr)); align-items: end; gap: .75rem; margin-bottom: 1rem; }
.field { display: grid; gap: .35rem; font-weight: 630; font-size: .9rem; }
.field input, .field textarea, .field select { color: var(--ink); background: #fff; border: 1px solid #b1bcae; border-radius: 7px; min-width: 0; min-height: 46px; padding: .55rem .75rem; font-weight: 440; }
.field textarea { min-height: 140px; resize: vertical; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.listing-card, .studio-row, .empty, .surface { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.listing-card { min-width: 0; padding: 1.2rem; display: grid; gap: .55rem; }
.listing-card h3, .studio-row h3, .preview-description, .listing-card p, .studio-row p, .dialog-body { overflow-wrap: anywhere; }
.listing-card p, .studio-row p { color: var(--muted); }
.preview-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.pill { width: max-content; max-width: 100%; padding: .2rem .55rem; border-radius: 5px; color: #274837; background: #e0eadf; font-size: .85rem; }
.pill.draft { color: #6a5125; background: #eee5d0; }
.listing-labels { display: flex; flex-wrap: wrap; gap: .4rem; }
.crypto-panel { display: grid; gap: .6rem; min-width: 0; margin: 0; padding: .9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 8px; }
.crypto-panel legend { padding: 0 .25rem; font-weight: 650; }
.practice-entry { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-block: 1.3rem; padding: clamp(1rem, 3vw, 1.7rem); border-radius: 12px; background: var(--forest); color: var(--paper); }
.practice-entry h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.practice-entry p { margin-top: .45rem; max-width: 62ch; color: #e3eae1; }
.practice-entry .button { flex: none; }
.studio-guest .surface { margin: 0; }
.practice-page { max-width: 950px; margin-inline: auto; }
.practice-intro { margin-bottom: clamp(1.25rem, 4vw, 2rem); }
.practice-intro h1 { font-size: clamp(2.15rem, 5.5vw, 3.8rem); }
.practice-intro p { margin-top: .7rem; color: var(--muted); font-size: 1.05rem; }
.practice-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.practice-summary { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.3rem, 4vw, 2.2rem); color: var(--paper); background: var(--forest); }
.summary-label { border-bottom: 1px solid #67816c; padding-bottom: .45rem; color: var(--lime); font-weight: 640; }
.practice-summary h2 { margin: 1rem 0 .55rem; }
.summary-price, .coin-total { font-size: clamp(1.65rem, 4vw, 2.4rem); letter-spacing: -.045em; font-weight: 720; font-variant-numeric: tabular-nums; line-height: 1.16; }
.summary-note { margin-top: auto; padding-top: 2rem; max-width: 31ch; color: #e3eae1; }
.checkout-panel { display: grid; align-content: start; gap: .85rem; min-width: 0; }
.practice-layout > .checkout-panel { padding: clamp(1.3rem, 4vw, 2.2rem); }
.coin-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.coin-options legend { font-size: 1.15rem; font-weight: 650; padding: 0; margin-bottom: .65rem; }
.coin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.coin-option { display: flex; align-items: center; gap: .55rem; min-width: 0; min-height: 52px; padding: .55rem .7rem; border: 1px solid #b1bcae; border-radius: 8px; cursor: pointer; background: var(--paper); }
.coin-option:has(:checked) { background: #eaf1d9; border-color: #476a3d; }
.coin-option:focus-within { outline: 2px solid #568551; outline-offset: 1px; }
.coin-option input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: var(--forest); }
.coin-option strong, .coin-option small { display: block; }
.coin-option small { color: var(--muted); line-height: 1.25; }
.checkout-total { display: grid; gap: .2rem; margin-top: .4rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.checkout-rate { font-size: .87rem; color: var(--muted); }
.receipt { display: grid; align-content: start; gap: .65rem; min-width: 0; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: .4rem; flex-wrap: wrap; }
.receipt-details { margin: .35rem 0; color: var(--muted); font-size: .92rem; }
.receipt-details div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-block: .45rem; border-top: 1px solid var(--line); }
.receipt-details dd { min-width: 0; overflow-wrap: anywhere; text-align: right; margin: 0; color: var(--ink); }
.receipt-history { margin-top: 2.5rem; }
.receipt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; padding-top: 1rem; }
.receipt-list .receipt { padding: 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.price { font-size: 1.25rem; font-weight: 720; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: fit-content; min-height: 42px; padding: .48rem .85rem; background: var(--forest); border: 1px solid transparent; border-radius: 7px; color: white; font-weight: 640; font-size: .94rem; text-decoration: none; text-align: center; cursor: pointer; }
.button:hover { background: var(--forest-dark); }
.button:disabled { cursor: wait; opacity: .7; }
.button.accent { background: var(--lime); color: var(--forest-dark); }
.button.accent:hover { background: #ebf7c2; }
.button.secondary { color: var(--forest); background: transparent; border-color: #a6b5a6; }
.button.secondary:hover { background: #e9eee4; }
.empty { padding: clamp(1.35rem, 4vw, 2.3rem); text-align: center; }
.empty p { margin-top: .48rem; color: var(--muted); }
.empty .button { margin-top: .95rem; }
.status-line { margin-block: .5rem 1rem; color: var(--muted); }
.loading { padding: 2rem; color: var(--muted); }
.surface { padding: clamp(1.3rem, 4vw, 2.1rem); max-width: 670px; margin-inline: auto; }
.surface h1 { font-size: clamp(2rem, 5vw, 3rem); }
.surface .body-copy { margin-block: .65rem 1rem; }
.surface form { display: grid; gap: .9rem; }
.surface .button-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.surface .switch { margin-top: 1.1rem; color: var(--muted); }
.surface small { font-size: .86rem; font-weight: 440; color: var(--muted); }
.error { color: var(--danger); font-weight: 610; }
.empty .error { color: var(--danger); }
.error:empty { display: none; }
.success { border-left: 3px solid #568551; margin-block: 1rem; padding: .5rem .75rem; background: #e4ebda; }
.studio-list { display: grid; gap: .65rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.studio-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .95rem 1rem; }
.studio-row p { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; margin-top: .3rem; }
.studio-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .45rem; }
.site-footer { padding-block: 1.25rem 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--muted); font-size: .89rem; }
dialog { max-width: min(590px, calc(100% - 30px)); width: 100%; border: 1px solid var(--line); border-radius: 12px; max-height: 88vh; background: var(--paper); color: var(--ink); padding: 0; }
dialog::backdrop { background: #121e16a8; }
.dialog-body { padding: 1.45rem 1.45rem .75rem; display: grid; gap: .65rem; }
.preview-description { white-space: pre-wrap; }
.dialog-actions { padding: .65rem 1.45rem 1.45rem; }

@media (max-width: 760px) {
  .site-header-inner { gap: .6rem; }
  .site-header nav { gap: .8rem; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; }
  .kind-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .kind-action { gap: .35rem; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 555px) {
  .practice-entry { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .practice-layout { grid-template-columns: minmax(0, 1fr); }
  .summary-note { padding-top: .6rem; max-width: none; }
  .site-header nav { flex-wrap: wrap; }
  .frame { width: calc(100% - 28px); }
  .site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: auto; padding-block: .8rem; gap: .35rem .65rem; }
  .site-header nav { grid-column: 1/-1; grid-row: 2; gap: 1.15rem; }
  .account { grid-column: 2; grid-row: 1; }
  .account-name { display: none; }
  .kind-menu { gap: .5rem; }
  .kind-action { font-size: .88rem; }
  .kind-action::after { display: none; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: 1fr; }
  .catalog { padding-top: 1.7rem; }
  .studio-row { grid-template-columns: minmax(0, 1fr); }
  .studio-actions { justify-content: start; }
  .section-head { align-items: start; flex-direction: column; }
}
