:root {
  --ink:#253e34;
  --muted:#6d776d;
  --paper:#f6f5ef;
  --white:#fff;
  --line:#e2e5db;
  --accent:#dceabd;
  --orange:#b76739;
  --danger:#ad3d35;
  --radius:16px;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  line-height:1.5;
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  touch-action:manipulation;
}
a {
  color:inherit;
  text-decoration:none;
}
button {
  cursor:pointer;
  border:1px solid var(--line);
  border-radius:8px;
  padding:10px 15px;
  background:var(--white);
  color:var(--ink);
  font-weight:600;
}
button:hover {
  border-color:var(--ink);
  background:#f1f5e8;
}
button:disabled {
  cursor:not-allowed;
  opacity:.5;
}
a:focus-visible,button:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:4px;
}
[hidden] {
  display:none!important;
}
.topbar {
  height:100px;
  padding:0 5.5%;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:35px;
  background:var(--paper);
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:26px;
  letter-spacing:-1px;
  font-weight:700;
}
.brand-icon {
  font-size:30px;
  display:grid;
  place-items:center;
  background:var(--ink);
  color:var(--accent);
  width:46px;
  height:46px;
  border-radius:12px;
}
.brand-sub {
  display:block;
  font-size:8px;
  letter-spacing:2px;
  line-height:1.4;
}
.topbar nav {
  display:flex;
  gap:30px;
  margin-left:auto;
}
.topbar nav a {
  font-size:13px;
}
.topbar nav a.active {
  font-weight:bold;
}
.topbar nav span {
  padding-left:8px;
}
.badge {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:700;
  border:1px solid var(--line);
  padding:7px 12px;
  border-radius:30px;
  white-space:nowrap;
  background:#edf1e4;
}
.badge.live {
  background:#ffdfce;
  color:#924324;
}
.badge.paid {
  background:var(--accent);
}
main {
  max-width:1380px;
  margin:auto;
  padding:0 5.5% 60px;
}
.hero {
  display:grid;
  grid-template-columns:1.45fr 1fr;
  gap:30px;
  padding:60px 0 46px;
  align-items:center;
}
.eyebrow {
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--muted);
  margin:0 0 15px;
}
h1 {
  font-size:clamp(32px,3.4vw,50px);
  line-height:1.13;
  font-weight:500;
  letter-spacing:-2px;
  margin:0 0 24px;
}
h1 em {
  font-family:Georgia,serif;
  font-weight:400;
  color:#71835d;
}
h2 {
  font-size:22px;
  letter-spacing:-.65px;
  line-height:1.25;
  margin:0 0 18px;
  font-weight:500;
}
h3 {
  font-size:18px;
  font-weight:500;
  margin:0 0 14px;
}
.intro {
  color:var(--muted);
  max-width:465px;
  font-size:15px;
  line-height:1.7;
  margin:0;
}
.hero-tags {
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:26px;
  font-size:11px;
  font-weight:600;
}
.hero-tags i {
  font-style:normal;
  color:#a1ac8c;
}
.hero-art {
  height:250px;
  position:relative;
  overflow:hidden;
  background:#e7e8d7;
  border-radius:120px 16px 16px 16px;
}
.sun {
  position:absolute;
  width:68px;
  height:68px;
  border-radius:50%;
  background:#f7f6df;
  top:27px;
  right:58px;
}
.pile {
  position:absolute;
  width:430px;
  height:270px;
  clip-path:polygon(0 100%,18% 58%,30% 32%,48% 13%,60% 19%,78% 51%,100% 100%);
}
.pile-back {
  background:#c39e6b;
  bottom:-45px;
  right:-150px;
  transform:rotate(-10deg);
}
.pile-front {
  background:#d4b783;
  bottom:-92px;
  left:-75px;
}
.art-label {
  position:absolute;
  bottom:25px;
  right:26px;
  font-size:9px;
  line-height:1.7;
  letter-spacing:2px;
  font-weight:bold;
}
.art-grid {
  position:absolute;
  inset:0;
  opacity:.12;
  background-image:linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px);
  background-size:35px 35px;
}
.notice {
  border:1px solid #d4ddbc;
  background:#edf1e4;
  border-radius:12px;
  padding:17px 20px;
  margin-bottom:25px;
  font-size:13px;
}
.notice code {
  display:block;
  padding:8px 0;
  overflow-wrap:anywhere;
}
.market-layout {
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);
  gap:32px;
  align-items:start;
}
.section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.section-title h2 {
  margin:0;
}
.section-title .eyebrow {
  margin-bottom:8px;
}
.muted {
  color:var(--muted);
  font-size:12px;
}
.products {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.product {
  padding:0;
  border-radius:var(--radius);
  overflow:hidden;
  text-align:left;
  transition:transform .15s;
  border:1px solid var(--line);
  font-weight:400;
  background:var(--white);
}
.product:hover {
  transform:translateY(-3px);
}
.product.selected {
  outline:2px solid var(--ink);
  outline-offset:2px;
}
.product-art {
  height:135px;
  position:relative;
  overflow:hidden;
  display:block;
  background:#e8dfc9;
}
.product-art.cream {
  background:#eee8da;
}
.product-art.rust {
  background:#e9d2bc;
}
.product-art:before {
  content:'';
  position:absolute;
  width:220px;
  height:170px;
  bottom:-67px;
  left:-15px;
  border-radius:55% 45% 0 0;
  background:radial-gradient(ellipse at 40% 25%,#deca9e,#b29660);
  transform:rotate(-12deg);
}
.product-art.cream:before {
  background:radial-gradient(ellipse at 40% 25%,#f0e5d1,#cebb97);
}
.product-art.rust:before {
  background:radial-gradient(ellipse at 40% 25%,#d1a87e,#a57953);
}
.product-tag {
  position:absolute;
  top:12px;
  left:12px;
  background:#ffffffb5;
  padding:4px 8px;
  border-radius:20px;
  font-size:9px;
}
.selected-mark {
  position:absolute;
  top:12px;
  right:12px;
  background:var(--ink);
  color:#fff;
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.product-info {
  display:block;
  padding:16px 13px;
}
.product-info strong {
  font-size:14px;
  display:block;
  font-weight:600;
  margin-bottom:5px;
}
.product-info small {
  font-size:10px;
  display:block;
  color:var(--muted);
  min-height:32px;
}
.product-price {
  display:block;
  margin-top:18px;
  font-size:16px;
  font-weight:600;
}
.product-price small {
  display:inline;
  font-size:10px;
  font-weight:400;
}
.seller-note {
  border-bottom:1px solid var(--line);
  display:flex;
  gap:15px;
  padding:25px 0;
  margin-bottom:25px;
}
.seller-symbol {
  width:35px;
  height:35px;
  border-radius:50%;
  background:var(--accent);
  display:grid;
  place-items:center;
  font-size:20px;
}
.seller-note strong {
  font-size:12px;
}
.seller-note p {
  font-size:11px;
  color:var(--muted);
  margin:4px 0;
}
.explainer {
  padding:15px 0;
}
.scenario {
  display:flex;
  gap:13px;
  align-items:start;
  margin-bottom:14px;
}
.scenario-num {
  font-family:Georgia,serif;
  color:#71835d;
  font-size:20px;
  line-height:1.3;
}
.scenario strong {
  font-size:12px;
}
.scenario p {
  font-size:11px;
  margin:3px 0;
  color:var(--muted);
}
.panel {
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  margin-bottom:22px;
}
.checkout {
  position:sticky;
  top:20px;
}
.checkout h2 {
  font-size:24px;
  margin-bottom:25px;
}
.checkout .eyebrow {
  color:#81956b;
}
label {
  display:block;
  font-size:11px;
  font-weight:600;
  margin-bottom:15px;
}
.unit {
  float:right;
  color:var(--muted);
  font-weight:400;
}
input,select {
  display:block;
  margin-top:7px;
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px 12px;
  background:#fafbf7;
  color:var(--ink);
  outline:none;
  font-size:13px;
}
input:focus,select:focus {
  border-color:#769454;
  box-shadow:0 0 0 3px #dceabd66;
}
.field-hint {
  font-size:11px;
  color:var(--muted);
  line-height:1.6;
  margin:6px 0 17px;
}
.primary {
  background:var(--ink);
  color:var(--white);
  border:1px solid var(--ink);
  padding:13px 18px;
}
.primary:hover {
  background:#365344;
  color:#fff;
}
.checkout .primary {
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.quote-row {
  display:flex;
  justify-content:space-between;
  margin-bottom:9px;
  font-size:12px;
}
.quote-total {
  font-size:18px;
  border-top:1px solid var(--line);
  padding-top:14px;
  margin:14px 0 19px;
}
.allocation {
  background:#f1f5e9;
  padding:16px;
  border-radius:10px;
  margin-bottom:22px;
}
.allocation .eyebrow {
  font-size:9px;
  margin-bottom:12px;
}
.allocation .quote-row {
  font-size:11px;
}
.secure {
  text-align:center;
  font-size:10px;
  color:var(--muted);
  line-height:1.7;
  margin:14px 0 0;
}
.error {
  font-size:12px;
  color:var(--danger);
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.error:empty {
  display:none;
}
.lab-heading {
  padding:50px 0 35px;
}
.lab-heading h1 {
  margin-bottom:16px;
}
.login {
  max-width:550px;
}
.login p {
  color:var(--muted);
  font-size:13px;
}
.lab-toolbar {
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:25px;
  flex-wrap:wrap;
}
.lab-toolbar .badge {
  margin-right:auto;
}
.lab-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.form-row {
  display:flex;
  gap:15px;
}
.form-row label {
  flex:1;
  min-width:0;
}
.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  margin-bottom:24px;
}
.stat {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--white);
  padding:18px;
}
.stat strong {
  font-size:26px;
  font-weight:500;
  display:block;
}
.stat small {
  color:var(--muted);
  font-size:11px;
}
.subsection {
  margin-top:25px;
}
.result-list>div {
  padding:12px 0;
  border-top:1px solid var(--line);
}
.result-list button {
  font-size:11px;
  padding:6px 10px;
  margin:7px 6px 0 0;
}
.result-list code {
  display:block;
  overflow-wrap:anywhere;
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:11px;
  background:#f4f5ef;
  padding:16px;
  border-radius:9px;
  max-height:450px;
  overflow:auto;
}
details {
  margin-top:10px;
}
summary {
  cursor:pointer;
  font-size:12px;
}
.table-wrap {
  overflow:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px;
}
td,th {
  padding:13px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
th {
  color:var(--muted);
  font-size:10px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:1px;
}
td small {
  display:block;
  color:var(--muted);
  font-size:10px;
}
td code {
  font-size:10px;
}
td button {
  padding:5px 8px;
  font-size:10px;
}
.event {
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:11px;
}
.event strong {
  font-size:12px;
}
.event p {
  margin:5px 0;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.status-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:15px;
  margin:20px 0;
}
.status-step {
  background:#f1f5e9;
  border-radius:10px;
  padding:14px;
}
.status-step small {
  display:block;
  color:var(--muted);
  font-size:11px;
}
.status-step strong {
  font-size:13px;
}
.order-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
footer {
  border-top:1px solid var(--line);
  padding:25px 5.5%;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--muted);
}
footer>span:first-child {
  font-weight:bold;
  color:var(--ink);
}
#toast {
  position:fixed;
  bottom:25px;
  right:25px;
  background:var(--ink);
  color:#fff;
  padding:15px 22px;
  border-radius:10px;
  z-index:10;
  box-shadow:0 4px 25px #0002;
  max-width:90%;
}
#banks {
  max-height:180px;
  overflow:auto;
}
.lab-grid .panel {
  min-width:0;
}
@media(min-width:1500px) {
  .hero-art {
    height:280px;
  }
  .product-art {
    height:170px;
  }
}
@media(max-width:1100px) {
  .topbar {
    gap:18px;
  }
  .market-layout {
    gap:22px;
  }
  .products {
    gap:10px;
  }
  .product-info {
    padding:13px 10px;
  }
  .product-info strong {
    font-size:12px;
  }
  .section-title {
    align-items:start;
  }
  .section-title>.muted {
    display:none;
  }
  .hero-art {
    height:230px;
  }
  .hero {
    grid-template-columns:1.4fr 1fr;
  }
  .form-row {
    flex-wrap:wrap;
  }
  .form-row label {
    flex-basis:40%;
  }
}
@media(max-width:760px) {
  .topbar {
    height:auto;
    min-height:88px;
    flex-wrap:wrap;
    padding:18px 5%;
    gap:14px;
  }
  .brand {
    font-size:22px;
  }
  .brand-icon {
    height:40px;
    width:40px;
  }
  .topbar nav {
    gap:16px;
    order:3;
    width:100%;
    margin-left:0;
  }
  .topbar .badge {
    margin-left:auto;
    font-size:9px;
  }
  .hero {
    grid-template-columns:1fr;
    padding:35px 0;
    gap:25px;
  }
  .hero-art {
    height:170px;
    border-radius:75px 12px 12px 12px;
  }
  .hero h1 {
    font-size:37px;
    letter-spacing:-1.3px;
  }
  .hero .intro {
    font-size:13px;
  }
  .market-layout {
    grid-template-columns:1fr;
  }
  .checkout {
    position:static;
    grid-row:2;
  }
  .products {
    gap:9px;
  }
  .product-art {
    height:105px;
  }
  .product-info strong {
    font-size:12px;
  }
  .product-price {
    font-size:13px;
    margin-top:10px;
  }
  .product-info small {
    font-size:9px;
  }
  .panel {
    padding:20px;
  }
  .lab-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .stats {
    grid-template-columns:1fr 1fr;
  }
  .lab-heading h1 {
    font-size:34px;
  }
  .section-title {
    flex-wrap:wrap;
  }
  .status-grid {
    grid-template-columns:1fr;
  }
  .status-step {
    padding:12px;
  }
  footer {
    gap:15px;
  }
  .hero-tags {
    gap:12px;
  }
  .hero-art .art-label {
    font-size:8px;
  }
  .form-row {
    gap:10px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }
}
