:root { color-scheme: light; --ink:#262c23; --green:#30472f; --paper:#f7f3eb; --line:#d8d1c3; --soft:#e9eddf; font: 17px/1.55 system-ui,sans-serif; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; color:var(--ink); background:var(--paper); }
.shell { width:min(100% - 36px, 850px); margin:auto; }
header { padding:20px 0; display:flex; justify-content:space-between; align-items:center; gap:10px 18px; flex-wrap:wrap; border-bottom:1px solid var(--line); }
header a { font-weight:760; text-decoration:none; }
header span, footer { font-size:.88rem; }
.eyebrow { font-weight:750; letter-spacing:.10em; font-size:.75rem; }
h1,h2,h3 { line-height:1.13; margin:0 0 .55em; }
h1,h2 { font-family:Georgia,serif; font-weight:500; }
h1 { font-size:clamp(2.55rem,7vw,4rem); margin:.12em 0; letter-spacing:-.04em; }
h2 { font-size:clamp(1.7rem,5vw,2.3rem); }
h3 { font-size:1.05rem; }
.panel { background:#fffdf8; border:1px solid var(--line); border-radius:16px; padding:clamp(17px,4vw,32px); margin:0 0 16px; }
label,legend { font-weight:680; }
textarea { width:100%; display:block; resize:vertical; padding:12px; margin:8px 0 15px; border:1px solid #898477; background:white; border-radius:8px; }
button,textarea { font:inherit; }
.actions { display:flex; flex-wrap:wrap; gap:9px; }
button { border:1px solid var(--green); border-radius:8px; background:var(--green); color:white; padding:6px 12px; cursor:pointer; min-height:40px; }
.secondary { color:var(--green); background:transparent; }
a { color:var(--green); text-underline-offset:.18em; overflow-wrap:anywhere; }
:focus-visible { outline:3px solid #9a4b18; outline-offset:4px; }
fieldset { border:0; padding:0; margin:0 0 20px; min-width:0; }
legend { margin-bottom:4px; }
.choice { display:flex; gap:9px; min-height:44px; align-items:center; font-weight:400; }
.choice input { accent-color:var(--green); width:18px; height:18px; margin:0; flex-shrink:0; }
.items { list-style:none; padding:0; margin:0 0 20px; }
.items li { padding:11px 0; border-top:1px solid var(--line); }
.items strong { display:block; }
.items a { display:inline-flex; align-items:center; min-height:44px; }
.note { background:var(--soft); padding:12px 15px; border-radius:8px; }
details { margin:15px 0; }
summary { cursor:pointer; }
footer { padding:18px 0 30px; }
#product { margin-top:28px; }
@media(max-width:590px) {
  .actions button { width:100%; }
}

#catalog-search, #catalog-category {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 6px 0 12px;
  padding: 8px 11px;
  border: 1px solid #898477;
  border-radius: 8px;
  background: white;
  color: inherit;
  font: inherit;
}
.catalog-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 12px;
}
.catalog-results article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.catalog-type { color: var(--green); font-size: .82rem; font-weight: 700; }
.catalog-results p { margin: 0 0 8px; }
.catalog-results details { margin: 8px 0 0; }
.catalog-results details p:first-of-type { margin-top: 8px; }
#catalog-more { margin-top: 14px; }

.material-row { gap: 12px; padding: 8px 0; }
.material-row small { display: block; font-size: .85rem; }
.material-owned strong { text-decoration: line-through; }

.guided-field { display: block; margin-bottom: 14px; }
.guided-field input, .guided-field select {
  display: block;
  width: 100%;
  max-width: 32rem;
  min-height: 44px;
  margin-top: 5px;
  padding: 7px 10px;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid #898477;
  border-radius: 8px;
}
#project-match form + div { margin-top: 20px; }
.purchase-row { border-block-start: 1px solid var(--line); padding: 12px 0; }
.purchase-row .guided-field { max-width: 12rem; margin-bottom: 0; }
.purchase-row p { margin: 4px 0; }
#cart-items section + section { margin-top: 24px; }

.project-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  column-gap: 18px;
}
.materials-grid { margin-top: 1rem; }
.materials-grid .purchase-row { min-width: 0; overflow-wrap: anywhere; }
#cart {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(100%, 34rem);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  border: 0;
  padding: clamp(16px, 4vw, 32px);
  background: #fffef9;
  color: inherit;
  box-shadow: 0 16px 48px #0003;
  overflow-y: auto;
}
#cart::backdrop { background: #1a221e66; }
.cart-header, .cart-line { display:flex; align-items:center; gap:12px; }
.cart-header { justify-content:space-between; }
.cart-line > div { flex: 1; min-width: 0; overflow-wrap:anywhere; }
.cart-line .guided-field { width: 7rem; margin: 0; }
.cart-line p { font-size:.9em; margin:.25rem 0 0; }
@media(max-width:450px) {
  .cart-line { flex-wrap:wrap; }
  .cart-line > div { flex-basis:100%; }
}

.curtain-comparison { gap: 12px; margin-block: 1rem 1.5rem; }
.curtain-option { border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.curtain-option h4 { margin: 0 0 8px; }
.curtain-option p { margin: 6px 0; }
.curtain-option button { display: block; margin-top: 12px; }
.curtain-option button[aria-pressed="true"] { background: var(--ink); color: white; }

:root { --surface:#fffdf8; --panel-ink:#262c23; --on-accent:white; --panel-radius:16px; }
.brand { display:inline-flex; align-items:center; gap:12px; color:inherit; }
.brand-wordmark { display:inline-flex; align-items:flex-start; gap:4px; }
#brand-name { font-size:clamp(1rem,2.1vw,1.24rem); font-weight:780; letter-spacing:-.05em; }
#brand-copyright { color:var(--ink); opacity:.78; font-size:.64rem; line-height:1.1; margin-top:2px; }
#brand-mark {
  display:grid;
  place-items:center;
  flex:none;
  width:38px;
  height:38px;
  border:1px solid currentColor;
  border-radius:10px;
  color:var(--green);
  font:italic bold 1.37rem/1 Georgia,serif;
  outline:1px dashed currentColor;
  outline-offset:-5px;
  padding-inline-end:2px;
}
.brand img { display:block; width:auto; height:auto; max-width:min(180px,40vw); max-height:58px; object-fit:contain; }
.panel, #cart { background:var(--surface); color:var(--panel-ink); }
.panel { border-radius:var(--panel-radius); }
button { color:var(--on-accent); }
button.secondary { color:inherit; }
.note { color:#262c23; }
.guided-field input, .guided-field select { color:#262c23; }
:root[data-design="modern"] { --panel-radius:6px; }
:root[data-design="modern"] h1, :root[data-design="modern"] h2 { font-family:system-ui,sans-serif; font-weight:720; }
.cart-line .line-total { min-width:70px; text-align:right; font-variant-numeric:tabular-nums; }
.cart-totals { border-top:1px solid var(--line); padding:14px 0; }
.cart-totals strong { font-size:1.15rem; }
.cart-totals p:empty { display:none; }
#demo-design .project-fields { margin-top:18px; }
#demo-design input[type="color"] { padding:4px; }
@media(max-width:510px) {
  .cart-line { flex-wrap:wrap; }
  .cart-line > div { flex-basis:100%; }
  .cart-line .line-total { margin-left:auto; }
}

#demo-shops { margin: 20px 0; }
#demo-shops a { color: inherit; }
#demo-shops a[aria-current="page"] { font-weight: 700; }
.project-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px; }
.project-form-actions a { color:inherit; }
.purchase-row > a, .cart-line a { display:block; color:inherit; }
#shop-next-step { margin: 0 8px 8px 0; }

.shell { width:min(100% - 36px,1160px); }
:root[data-design="modern"] { --panel-radius:20px; }
.hero {
  position:relative;
  display:grid;
  place-items:center;
  min-block-size:calc(100svh - 72px);
  margin:12px 0 32px;
  padding:clamp(28px,6vw,76px) 16px 84px;
  isolation:isolate;
  border-radius:var(--panel-radius);
  overflow:hidden;
  box-shadow:inset 0 0 0 1px #efd2ae40, 0 14px 40px #110b082e;
  background:#2b2018;
  color:#fff2df;
}
.hero::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(ellipse at 50% 43%, #22271a85, #25241624 66%, #25231824),
    linear-gradient(0deg,#201e157d,transparent 34%),
    url("sewing-worktable.jpg") center 54% / cover no-repeat;
}
.hero-content { width:min(100%,40rem); text-align:center; }
.hero h1 { font-size:clamp(2.65rem,7vw,5rem); letter-spacing:-.06em; text-shadow:0 3px 22px #120b07bd; }
#niche-intro { margin:12px auto 24px; max-width:43ch; color:#f7e8d5; text-shadow:0 2px 8px #130b07; }
#project-form {
  text-align:left;
  padding:clamp(16px,3vw,24px);
  border:1px solid #bda07c96;
  border-radius:18px;
  color:#fff2df;
  background:linear-gradient(145deg,#504035ee,#33271fee 82%);
  box-shadow:0 22px 48px #10090685, 0 4px 12px #10090666, inset 0 1px #f3d2a733;
}
#project-form textarea {
  margin:8px 0 12px;
  min-height:110px;
  background:linear-gradient(180deg,#271e18,#30251d);
  border-color:#a4876a;
  color:#fff2df;
}
#project-form textarea::placeholder { color:#d2bda6; }
#project-form > button { display:block; margin-inline-start:auto; }
#catalog-title { scroll-margin-top:20px; }
.example-label { font-size:.92rem; font-weight:650; margin:14px 0 8px; }
.project-examples { gap:7px; margin-bottom:22px; }
:root[data-surface="dark"] {
  --line:#927b65;
  --input-bg:#32271f;
  --input-text:#f7eee5;
}
:root[data-surface="dark"] .note { background:#403228; color:inherit; }
:root[data-surface="dark"] :is(.guided-field input, .guided-field select, #catalog-search, #catalog-category) {
  color-scheme:dark;
  background:var(--input-bg);
  color:var(--input-text);
  border-color:var(--line);
}
:root[data-surface="dark"] :focus-visible, .hero :focus-visible { outline-color:#f0cc94; }
#catalog-search, #catalog-category { color:#262c23; }
.project-examples button { width:auto; border-color:var(--line); border-radius:999px; padding:5px 13px; font-size:.88rem; }
button {
  font-weight:650;
  border-radius:10px;
  --button-gloss:linear-gradient(172deg,#ffffff36, #ffffff0b 42%, #29160c1c 90%);
  background-image:var(--button-gloss),
    repeating-linear-gradient(98deg,#ffffff0b 0 1px,#21150809 1px 3px);
  box-shadow:inset 0 1px #ffffff59, inset 0 -1px #21140830, 0 3px 8px #160e0938;
}
button.secondary {
  background-image:none;
  box-shadow:none;
}
button.secondary:hover:not(:disabled) { background-color:color-mix(in srgb,currentColor 7%,transparent); box-shadow:none; }
button:hover:not(:disabled) { box-shadow:inset 0 1px #ffffff80, inset 0 -1px #21140830, 0 4px 10px #160e094a; }
button:active:not(:disabled) { box-shadow:inset 0 2px 5px #180f103b; }
#project-form textarea,
.guided-field :is(input:not([type="color"],[type="file"]), select),
#catalog-search, #catalog-category {
  box-shadow:inset 0 2px 5px #1a110f26, 0 1px #edd1ae23;
}
.guided-field :is(input:not([type="color"],[type="file"]), select),
#catalog-search, #catalog-category {
  background-image:linear-gradient(180deg,#3d281308,transparent 55%);
}
:root[data-surface="dark"] :is(.guided-field input:not([type="color"],[type="file"]), .guided-field select, #catalog-search, #catalog-category) {
  background-image:linear-gradient(180deg,#160e0a33,#e1b9880b);
}
.panel, #cart {
  background-image:linear-gradient(150deg,#f0c9950c,transparent 54%);
  box-shadow:inset 0 1px #f0c99526, 0 8px 24px #160e091a;
}
:root[data-surface="dark"] :is(.catalog-results article, .curtain-option, .curtain-preview, .note) {
  background-image:linear-gradient(155deg,#f0c99513,transparent 70%);
  box-shadow:inset 0 1px #f0c9951a;
}
:root[data-surface="dark"] :is(header, .purchase-row, .items li, .cart-totals) {
  border-image:linear-gradient(90deg,#927b6566,#c3a17a99,#927b6566) 1;
}
.curtain-form .project-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.curtain-preview {
  padding:18px;
  background:color-mix(in srgb,var(--surface) 93%,var(--green));
  border-radius:12px;
  border:1px solid var(--line);
}
.curtain-preview div { display:grid; grid-template-columns:1fr auto; gap:3px 10px; border-top:1px solid var(--line); padding:9px 0; font-size:.92rem; }
.curtain-preview strong { grid-column:1/-1; }
.curtain-preview p { margin-bottom:0; }
.curtain-option.is-selected { border-color:var(--green); box-shadow:inset 0 0 0 1px var(--green); }
.curtain-option button[aria-pressed="true"] { background-color:var(--green); color:var(--on-accent); }
#cart { width:min(100%,39rem); }
.cart-footer {
  position:sticky;
  bottom:0;
  padding:10px 0 max(10px,env(safe-area-inset-bottom));
  background:var(--surface);
  box-shadow:0 -10px 18px -16px #3826178a;
}
#cart-summary { margin:0; font-size:.88rem; }
@media(max-width:640px) {
  .shell { width:calc(100% - 24px); }
  .hero { min-block-size:calc(100svh - 64px); margin-top:8px; }
  .hero::before { background-position:center, center, 62% 54%; }
  #project-form > button { width:100%; }
}
@media(max-width:460px) {
  .curtain-form .project-fields { grid-template-columns:1fr; }
}

.recommendation {
  width:fit-content;
  margin:0 0 9px;
  padding:5px 10px;
  border-radius:8px;
  background:var(--green);
  color:var(--on-accent);
  font-size:.88rem;
  font-weight:700;
}
#project-match details > .project-fields, #project-match details > .actions { margin-top:12px; }
.measurement-feedback:empty { display:none; }
.measurement-feedback { font-weight:650; }
.purchase-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-top:12px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.purchase-total { font-size:1.2rem; }

.curtain-material {
  display:block;
  font-size:1.15rem;
  margin-block:8px;
}

#cart {
  --cart-items-surface:#f5eee4;
  --cart-items-edge:#bba890;
  --cart-offer-surface:#e7eee7;
  --cart-offer-edge:#809984;
  --cart-offer-card:#f5f8f3;
}
:root[data-surface="dark"] #cart {
  --cart-items-surface:#493a2e;
  --cart-items-edge:#977b61;
  --cart-offer-surface:#303f35;
  --cart-offer-edge:#859984;
  --cart-offer-card:#3a4b40;
}
#cart-items > section, #cart-offers {
  padding:clamp(12px,3vw,18px);
  border:1px solid var(--cart-items-edge);
  border-radius:14px;
  background:linear-gradient(150deg,#ffffff0c,transparent 65%),var(--cart-items-surface);
  box-shadow:inset 0 1px #ffffff24, 0 4px 10px #20150d24;
}
#cart-items .items { margin-bottom:0; }
#cart-offers {
  margin-block:24px;
  border-color:var(--cart-offer-edge);
  background:linear-gradient(150deg,#ffffff0c,transparent 65%),var(--cart-offer-surface);
}
#cart-offers h3 { margin-top:0; }
.cart-offer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  margin-top:8px;
  border:1px solid var(--cart-offer-edge);
  border-radius:10px;
  background:var(--cart-offer-card);
}
.cart-offer p { margin:3px 0; font-size:.9em; }
.cart-offer button { flex:none; }

@media(max-width:420px) { .cart-offer { flex-wrap:wrap; } }

@media(min-width:821px) {
  .curtain-form:has(.curtain-preview:not([hidden])) {
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(0,1fr);
    column-gap:22px;
    align-items:start;
  }
  .curtain-form:not(:has(.curtain-preview[hidden])) > :not(.curtain-preview) { grid-column:1; }
  .curtain-form .curtain-preview { grid-column:2; grid-row:1 / span 5; }
}
@media(max-width:820px) {
  .curtain-form .curtain-preview { margin-block:12px; }
}

.materials-grid { grid-template-columns:minmax(0,1fr); }
.purchase-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(6rem,8rem) minmax(5rem,auto);
  align-items:start;
  gap:8px 16px;
}
.purchase-row > details { grid-column:1/-1; }
.purchase-line-price {
  grid-column:3;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
@media(max-width:510px) {
  .purchase-row { grid-template-columns:minmax(0,1fr) auto; }
  .purchase-row > div { grid-column:1/-1; }
  .purchase-line-price { grid-column:2; grid-row:2; align-self:end; }
  .cart-line { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
  .cart-line .cart-item-info { grid-column:1; grid-row:1; }
  .cart-line .line-total { grid-column:2; grid-row:1; align-self:start; }
  .cart-line .guided-field { grid-column:1; grid-row:2; }
  .cart-line > button { grid-column:2; grid-row:2; align-self:end; }
}

.project-input { position:relative; }
.project-input textarea:placeholder-shown:not(:focus) { padding-inline-start:24px; }
.project-input-caret {
  display:none;
  position:absolute;
  inset:14px auto auto 13px;
  width:2px;
  height:1.35em;
  background:#e8c18c;
  pointer-events:none;
}
.project-input textarea:placeholder-shown:not(:focus) + .project-input-caret {
  display:block;
  animation:project-caret-pulse 1.2s steps(1,end) 3;
}
@keyframes project-caret-pulse { 50% { opacity:0; } }
@media(prefers-reduced-motion:reduce) {
  .project-input textarea:placeholder-shown:not(:focus) + .project-input-caret { animation:none; }
}
input:not([type="checkbox"],[type="radio"]):enabled:hover, select:enabled:hover, textarea:enabled:hover {
  border-color:var(--green);
}
button:disabled { opacity:.65; cursor:not-allowed; }
#sales-scenarios { gap:12px; }
.sales-scenario {
  --scenario-accent:#c49960;
  --scenario-tint:#b3834736;
  display:flex;
  flex-direction:column;
  align-items:start;
  padding:14px;
  border:1px solid color-mix(in srgb,var(--scenario-accent) 70%,var(--line));
  border-radius:12px;
  background:linear-gradient(145deg,var(--scenario-tint),transparent 88%);
  box-shadow:inset 0 1px color-mix(in srgb,var(--scenario-accent) 30%,transparent);
}
.sales-scenario:nth-child(2) {
  --scenario-accent:#d89881;
  --scenario-tint:#b1695153;
}
.sales-scenario:nth-child(3) {
  --scenario-accent:#a8bd9b;
  --scenario-tint:#728f715b;
}
.sales-scenario p { margin:0 0 12px; }
.sales-scenario button {
  margin-top:auto;
  border-color:var(--scenario-accent);
}
#scenario-actions { margin-top:12px; }

.integration-options { margin-block:24px; }
.integration-option {
  padding:12px 14px;
  margin-block:8px;
  border:1px solid var(--line);
  border-radius:10px;
}
.integration-option summary { font-weight:700; }
.integration-option a { color:inherit; }
.integration-preview {
  padding:12px 14px;
  border-inline-start:3px solid var(--green);
  border-radius:6px;
  background:color-mix(in srgb,var(--surface) 88%,var(--green));
}
.integration-preview p, .integration-preview ul { margin:4px 0; }
.integration-preview-label { font-size:.88rem; }

:root[data-surface="light"] main :where(a) { color:var(--panel-ink); }
:root[data-surface="light"] .catalog-type {
  color:color-mix(in srgb,var(--green) 35%,var(--panel-ink));
}
:root[data-surface="light"] :is(.curtain-preview,.curtain-option.is-selected) {
  background-color:#f3ebdb;
}
.purchase-row { padding-block:12px; font-size:.9rem; }
.purchase-row p, .purchase-row summary, .purchase-item-heading a { font-size:.84rem; }
.purchase-item-heading, .purchase-choices {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:0 12px;
}
.purchase-choices { align-items:center; }
.purchase-choices .choice { margin:0; padding-block:5px; }
.purchase-actions {
  margin-block:0 8px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--surface) 93%,var(--green));
}
.purchase-actions button { font-size:.9rem; }
.purchase-status:empty { display:none; }
@media(max-width:510px) {
  .purchase-actions button { width:100%; }
}
.cart-footer { z-index:1; }
.campaign-example {
  margin-top:20px;
  background:color-mix(in srgb,var(--surface) 88%,#a8bd9b);
}
.campaign-steps {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));
  gap:8px;
  padding:0;
  margin-block:12px;
  list-style:none;
  counter-reset:campaign-step;
}
.campaign-steps li {
  counter-increment:campaign-step;
  border:1px solid var(--line);
  border-radius:8px;
  padding:7px 10px;
  background:var(--surface);
}
.campaign-steps li::before {
  content:counter(campaign-step) ". ";
  font-weight:700;
}

#project-form {
  position:relative;
  isolation:isolate;
  padding:clamp(24px,4vw,34px);
  border:0;
  background:none;
  box-shadow:none;
}
.project-cloth {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:-1;
  pointer-events:none;
  filter:drop-shadow(0 13px 15px #12080ab3);
}
.project-bow {
  position:absolute;
  top:-18px;
  right:-1px;
  width:clamp(62px,15vw,100px);
  pointer-events:none;
  filter:drop-shadow(0 2px 2px #1f1018);
}
#project-form > label { display:block; padding-inline-end:52px; }
#project-form textarea {
  background:linear-gradient(180deg,#291e24,#35262c);
  border-color:#bd8f96;
}
#project-form textarea::placeholder { color:#d9bfc4; }
#project-form :focus-visible { outline-color:#f3bdca; }
#project-form .project-input-caret { background:#efb3c0; }

:root[data-textile="true"][data-surface="light"] {
  --line:var(--atelier-edge,#cdb3b7);
  --soft:#e9eadc;
}
:root[data-editorial-font="serif"] :is(h1,h2,h3,#project-form textarea) {
  font-family:"Source Serif 4",Georgia,serif;
}
:root[data-editorial-font="serif"] :is(h1,h2,h3) {
  font-weight:600;
  letter-spacing:-.025em;
}
#project-form textarea {
  color:var(--atelier-field-ink,#382633);
  background:linear-gradient(160deg,var(--atelier-field-start,#fff9ed),var(--atelier-field-end,#eee0cf));
  border-color:var(--atelier-edge,#aa9185);
  box-shadow:inset 0 2px 7px #432c3520,0 1px #fff7e32e;
}
#project-form textarea::placeholder {
  color:color-mix(in srgb,var(--atelier-field-ink,#382633) 78%,var(--atelier-field-end,#eee0cf));
}
#project-form .project-input-caret { background:var(--atelier-field-ink,#382633); }
:root[data-textile="false"] :is(.project-cloth,.project-bow) { display:none; }
:root[data-textile="false"] #project-form {
  border:1px solid #cdb8a1;
  background:#392e28;
  box-shadow:0 12px 30px #160e0950;
}
:root[data-textile="false"] #project-form > label { padding-inline-end:0; }
:root[data-textile="true"] button:not(.secondary) {
  position:relative;
  border-radius:12px 15px 11px 14px / 10px 12px 15px 13px;
}
:root[data-textile="true"] button:not(.secondary)::after {
  content:"";
  position:absolute;
  inset:4px;
  border:1px dashed currentColor;
  border-radius:inherit;
  opacity:.38;
  pointer-events:none;
}
:root[data-textile="true"][data-surface="light"] .curtain-option.is-selected {
  border-color:var(--green);
  background-color:#e9eadc;
  box-shadow:inset 0 0 0 1px var(--green);
}
:root[data-textile="true"][data-surface="light"] #cart {
  --cart-items-surface:#f4ede0;
  --cart-items-edge:#bcb19a;
}

#project-form textarea:focus-visible { outline-color:var(--atelier-thread,#733747); outline-offset:2px; }
.project-cloth > path, .project-bow > path:first-child {
  filter:drop-shadow(0 -1px .4px #ecd1ad9c);
}
:root[data-textile="true"] button:not(.secondary) { font-size:.94rem; }
:root[data-textile="true"] button:not(.secondary)::after { inset:3px; opacity:.32; }
@media(pointer:coarse) { button { min-height:44px; } }

#catalog-title { font-size:1.15rem; font-weight:700; }

:is(#project-catalog,#scenarios,#demo-design):not([open]) {
  padding:0;
  border:0;
  background:none;
  box-shadow:none;
}
:is(#project-catalog,#scenarios,#demo-design) > summary {
  position:relative;
  min-height:44px;
  padding:9px 16px;
  border:1px solid var(--green);
  border-radius:12px 15px 11px 14px / 10px 12px 15px 13px;
  background:linear-gradient(172deg,#ffffff36,#ffffff0b 42%,#29160c1c 90%),
    repeating-linear-gradient(98deg,#ffffff0b 0 1px,#21150809 1px 3px),var(--green);
  color:var(--on-accent);
  font-size:.94rem;
  font-weight:650;
  box-shadow:inset 0 1px #ffffff59,inset 0 -1px #21140830,0 3px 8px #160e0938;
}
:root[data-textile="true"] :is(#project-catalog,#scenarios,#demo-design) > summary::after {
  content:"";
  position:absolute;
  inset:3px;
  border:1px dashed currentColor;
  border-radius:inherit;
  opacity:.32;
  pointer-events:none;
}
:is(#project-catalog,#scenarios,#demo-design) > summary:hover {
  box-shadow:inset 0 1px #ffffff80,inset 0 -1px #21140830,0 4px 10px #160e094a;
}
#project-catalog[open] > summary { margin-bottom:14px; }

.hero .beginner-shortcut {
  margin-top:16px;
  border-color:#e4d6b499;
  color:#fff2df;
  background-color:#231b17b8;
}
#description-tip { margin:0 0 10px; font-size:.85rem; }
.beginner-project {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);
  align-items:center;
  gap:18px;
  margin-block:16px 22px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:color-mix(in srgb,var(--surface) 94%,var(--green));
}
.beginner-project img {
  display:block;
  width:100%;
  height:auto;
  border-radius:9px;
}
.beginner-project p { margin:.55em 0 0; }
@media(max-width:600px) {
  .beginner-project { grid-template-columns:1fr; }
  .beginner-project img { aspect-ratio:2/1; object-fit:cover; }
}

#cart-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:44px;
  padding:6px 10px;
}
#cart-link svg { width:22px; height:22px; }
#cart-count { font-size:.8rem; font-variant-numeric:tabular-nums; }
.purchase-actions { padding:6px 10px; gap:6px 10px; }
.purchase-total { font-size:1rem; }
.purchase-actions button { min-height:44px; padding:6px 12px; }
#cart { width:min(100%,34rem); padding:clamp(12px,3vw,22px); font-size:.9rem; }
#cart-title { margin-block:0; font-size:1.55rem; }
.cart-intro { margin:4px 0 12px; font-size:.82rem; }
#cart h3 { margin:0 0 6px; font-size:1rem; }
#cart-items > section, #cart-offers { padding:10px; }
#cart-items section + section, #cart-offers { margin-block-start:12px; }
#cart-offers { margin-block-end:12px; }
.cart-line { gap:6px 10px; }
.cart-line .guided-field { width:min(100%,5.5rem); }
.cart-item-info :is(a,summary) { font-size:.8rem; }
.cart-offer { padding:8px; margin-top:4px; }
#cart button { min-height:44px; padding:6px 10px; }
.cart-totals { padding:6px 0; }
.cart-totals strong { font-size:1rem; }

:root[data-store="tygverket"] {
  font-family:"PT Mono","Courier New",monospace;
}
:root[data-store="tygverket"] :is(h1,h2,h3,.brand-wordmark) {
  font-family:"D-Din","Helvetica Neue",Arial,sans-serif;
}
:root[data-store="tygverket"] .hero {
  min-block-size:auto;
  padding:clamp(28px,7vw,80px) 16px;
  border-block-start:6px solid #ffd040;
  border-radius:0;
  background:#f4f4ef;
  color:#232824;
  box-shadow:none;
}
:root[data-store="tygverket"] .hero::before { content:none; }
:root[data-store="tygverket"] :is(.hero h1,#niche-intro) {
  color:#232824;
  text-shadow:none;
}
:root[data-store="tygverket"] #project-form {
  border:1px solid #b5b9b3;
  border-radius:8px;
  background:#fff;
  color:#232824;
  box-shadow:none;
}
:root[data-store="tygverket"] #project-form textarea {
  background:#fafaf8;
  color:#232824;
  border-color:#858b84;
}
:root[data-store="tygverket"] #project-form textarea::placeholder { color:#535a54; }
:root[data-store="tygverket"] .hero .beginner-shortcut { color:#232824; }
:root[data-store="tygverket"] .hero :focus-visible { outline-color:#232824; }

:root[data-store="tygverket"] header.shell {
  position:relative;
  margin-top:12px;
  padding-top:34px;
}
:root[data-store="tygverket"] .hero { border-block-start:0; }

:root[data-store="tygverket"] {
  --line:#d4d8d3;
  --soft:#f1f3ef;
  font-size:15px;
}
:root[data-store="tygverket"] .hero {
  padding:clamp(24px,5vw,56px) 16px;
}
:root[data-store="tygverket"] .hero h1 {
  font-size:clamp(2rem,5.5vw,42px);
  letter-spacing:-.035em;
}
:root[data-store="tygverket"] h2 { font-size:clamp(1.5rem,4vw,1.9rem); }
:root[data-store="tygverket"] #niche-intro { margin:10px auto 18px; }
:root[data-store="tygverket"] #project-form textarea {
  font-size:16px;
  min-height:94px;
  box-shadow:none;
}
:root[data-store="tygverket"] button {
  min-height:44px;
  border:1px solid #232824;
  border-radius:4px;
  background:#ffd040;
  color:#232824;
  box-shadow:none;
}
:root[data-store="tygverket"] button.secondary { background:#fff; }
:root[data-store="tygverket"] button:hover:not(:disabled) {
  background:#ffdf78;
  box-shadow:none;
}
:root[data-store="tygverket"] button.secondary:hover:not(:disabled) { background:#eef2ed; }
:root[data-store="tygverket"] :focus-visible { outline-color:#17633c; }
:root[data-store="tygverket"] :is(.panel,.purchase-actions) { border-radius:6px; }
:root[data-store="tygverket"] #cart {
  --cart-items-edge:#d4d8d3;
  --cart-items-surface:#fff;
  --cart-offer-edge:#759685;
  --cart-offer-surface:#ebf3ee;
  --cart-offer-card:#fff;
  background:#fff;
  border-block-start:4px solid #ffd040;
  color:#232824;
}
:root[data-store="tygverket"] :is(#cart-items > section,#cart-offers,.cart-offer) {
  background-image:none;
  border-radius:6px;
  box-shadow:none;
}
:root[data-store="tygverket"] #cart .cart-footer { background:#fff; }

:root[data-store="tygverket"] header.shell {
  padding-top:42px;
}
.store-ruler {
  position:absolute;
  inset:0 0 auto;
  display:flex;
  overflow:hidden;
  height:36px;
  background:linear-gradient(90deg,#ffd040 0 13%,#fff 13% 44%,#009739 44% 76%,#50c3df 76% 96%,#ef4149 96%);
  color:#232824;
}
.store-ruler span {
  flex:1 0 31px;
  height:31px;
  border-left:1px solid currentColor;
  padding:10px 3px 0;
  background:repeating-linear-gradient(90deg,transparent 0 calc(10% - 1px),currentColor calc(10% - 1px) 10%) top / 100% 7px no-repeat;
  writing-mode:vertical-rl;
  font-size:10px;
  font-weight:700;
}
:root[data-store="tygverket"] #brand-name {
  font-size:clamp(1.35rem,4vw,2.4rem);
  font-weight:400;
  letter-spacing:.16em;
  line-height:1.1;
}
#brand-demo-label { display:block; font:400 .72rem/1.4 "PT Mono","Courier New",monospace; }
:root[data-store="tygverket"] #cart-link {
  position:relative;
  align-self:start;
  margin-top:-24px;
  margin-right:10px;
  border:2px solid #fff;
  border-radius:50%;
  width:48px;
  min-height:48px;
  padding:0;
}
:root[data-store="tygverket"] #cart-count {
  position:absolute;
  top:0;
  right:-5px;
  padding:0 4px;
  border-radius:8px;
  background:#ffd040;
  color:#232824;
}
:root[data-store="tygverket"] #project-form button[type="submit"] {
  background:#232824;
  color:#fff;
}
:root[data-store="tygverket"] #project-form button[type="submit"]::after {
  content:" →";
}
:root[data-store="tygverket"] #project-form button[type="submit"]:hover { background:#414a43; }
:root[data-store="tygverket"] #cart { border-block-start-color:#50c3df; }
:root[data-store="tygverket"] #cart-items > section { border-color:#e0e3df; }
:root[data-store="tygverket"] .hero {
  background:linear-gradient(90deg,#f6f4ed36,#f6f4edea 32%,#f6f4edea 68%,#f6f4ed36),
    url("tygverket-worktable.jpg") center / cover no-repeat, #f6f4ed;
}
:root[data-store="tygverket"] .brand-wordmark { flex-direction:column; gap:3px; }
@media(max-width:510px) {
  .store-ruler { justify-content:flex-end; }
}

:is(#project-match,#results) :is(h2,h3)[tabindex="-1"] {
  scroll-margin-block-start:16px;
}

:root[data-store="tygverket"] #cart .cart-line {
  padding-block:6px;
  gap:3px 8px;
  font-size:13px;
  line-height:1.35;
}
:root[data-store="tygverket"] .cart-item-info :is(p,a,details,summary) {
  margin:2px 0 0;
  font-size:12px;
  line-height:1.35;
}
:root[data-store="tygverket"] .cart-item-info a {
  display:inline-block;
  min-height:0;
  padding-block:3px;
}
:root[data-store="tygverket"] .cart-item-info summary { padding-block:3px; }
:root[data-store="tygverket"] #cart .cart-line .guided-field {
  font-size:11px;
  width:min(100%,6.5rem);
}
:root[data-store="tygverket"] #cart .cart-line input {
  margin-top:2px;
  min-height:34px;
  padding:4px 7px;
  font-size:13px;
  box-shadow:none;
}
:root[data-store="tygverket"] #cart .cart-line > button {
  min-height:34px;
  padding:4px 7px;
  font-size:12px;
}
@media(max-width:510px) {
  :root[data-store="tygverket"] #cart .cart-line :is(input,button) { min-height:44px; }
  :root[data-store="tygverket"] #cart .cart-line input { font-size:16px; }
}

:root[data-store="ohlssons"] {
  font:400 14px/1.5 "IBM Plex Sans",Arial,sans-serif;
  --panel-radius:5px;
}
:root[data-store="ohlssons"] :is(h1,h2,h3,h4) {
  font-family:inherit;
  font-weight:600;
}
:root[data-store="ohlssons"] header.shell {
  min-height:74px;
  padding-block:10px;
}
:root[data-store="ohlssons"] .brand-wordmark { flex-direction:column; gap:0; }
:root[data-store="ohlssons"] #brand-name {
  font-size:1.55rem;
  font-weight:700;
  line-height:1.1;
}
:root[data-store="ohlssons"] #brand-demo-label { font-size:.86rem; font-weight:400; }
:root[data-store="ohlssons"] #catalog-title { font-size:16px; font-weight:500; }
:root[data-store="ohlssons"] .hero {
  min-block-size:auto;
  padding:clamp(32px,7vw,76px) 16px;
  color:#171717;
  background:#f3f1eb;
  box-shadow:inset 0 0 0 1px #e3dfd6;
}
:root[data-store="ohlssons"] .hero::before {
  background:
    radial-gradient(ellipse at 50% 40%,#f8f6efb8 0%,#f8f6ef66 58%,#f8f6ef33 100%),
    url("ohlssons-curtain-worktable.jpg") center 48% / cover no-repeat;
}
:root[data-store="ohlssons"] .hero h1 {
  font-size:clamp(2rem,5.5vw,3.4rem);
  letter-spacing:-.035em;
  text-shadow:none;
}
:root[data-store="ohlssons"] #niche-intro {
  color:#343430;
  text-shadow:none;
}
:root[data-store="ohlssons"] #project-form {
  background:#fff;
  color:#171717;
  border:1px solid #deded9;
  border-radius:5px;
  box-shadow:none;
}
:root[data-store="ohlssons"] #project-form textarea {
  background:#fff;
  color:#171717;
  border:1px solid #a6a6a1;
  border-radius:4px;
  font-size:16px;
  box-shadow:none;
}
:root[data-store="ohlssons"] #project-form textarea::placeholder { color:#656560; }
:root[data-store="ohlssons"] button {
  font-size:14px;
  font-weight:500;
  min-height:44px;
  border-radius:4px;
  background-image:none;
  box-shadow:none;
}
:root[data-store="ohlssons"] button:hover:not(:disabled) { box-shadow:none; }
:root[data-store="ohlssons"] button:not(.secondary):hover:not(:disabled) { background:#333; }
:root[data-store="ohlssons"] #shop-next-step {
  background:#1d7134;
  border-color:#1d7134;
  color:#fff;
}
:root[data-store="ohlssons"] #shop-next-step:hover:not(:disabled) { background:#145828; }
:root[data-store="ohlssons"] .hero :focus-visible { outline-color:#171717; }
:root[data-store="ohlssons"] #cart { border-block-start:3px solid var(--green); }
:root[data-store="ohlssons"] .cart-item-info { font-size:14px; line-height:1.4; }
:root[data-store="ohlssons"] #catalog-title {
  border-radius:4px;
  background-image:none;
  box-shadow:none;
}
:root[data-store="ohlssons"] #catalog-title::before,
:root[data-store="ohlssons"] #catalog-title::after { content:none; }

.cart-link-label { display:none; }
:root[data-store="ohlssons"] #brand-logo {
  width:116px;
  max-width:36vw;
  max-height:none;
}
:root[data-store="ohlssons"] .brand:has(#brand-logo:not([hidden])) #brand-name {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
:root[data-store="ohlssons"] #cart-link {
  position:relative;
  min-width:44px;
  padding-inline:48px 8px;
  border-color:transparent;
}
:root[data-store="ohlssons"] #cart-link svg { display:none; }
:root[data-store="ohlssons"] #cart-link::before,
:root[data-store="ohlssons"] #cart-link::after {
  content:"";
  position:absolute;
  border:2px solid currentColor;
}
:root[data-store="ohlssons"] #cart-link::before {
  width:23px;
  height:22px;
  left:8px;
  top:12px;
  border-radius:2px 2px 4px 4px;
  transform:perspective(34px) rotateX(12deg);
}
:root[data-store="ohlssons"] #cart-link::after {
  width:10px;
  height:10px;
  left:14px;
  top:6px;
  border-radius:7px 7px 0 0;
  border-bottom:0;
}
:root[data-store="ohlssons"] #cart-count {
  position:absolute;
  z-index:1;
  left:22px;
  bottom:4px;
  display:grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding-inline:3px;
  border:1px solid #fff;
  border-radius:999px;
  background:#000;
  color:#fff;
  font-size:11px;
  line-height:1;
}
:root[data-store="ohlssons"] .cart-link-label { display:inline; font-size:16px; }
:root[data-store="ohlssons"] :is(.purchase-actions button,#shop-next-step) {
  background:#1d7835;
  border-color:#1d7835;
  color:#fff;
}
:root[data-store="ohlssons"] :is(.purchase-actions button,#shop-next-step):hover:not(:disabled) {
  background:#145828;
}
:root[data-store="ohlssons"] .cart-offer button {
  background:#ffbf16;
  border-color:#ffbf16;
  color:#171717;
}
:root[data-store="ohlssons"] .cart-offer button:hover:not(:disabled) { background:#edaa00; }

@media (max-width:420px) {
  :root[data-store="ohlssons"] .brand { gap:5px; }
  :root[data-store="ohlssons"] .brand-wordmark { max-width:135px; }
  :root[data-store="ohlssons"] #cart-link { padding-inline:44px 0; }
  :root[data-store="ohlssons"] .cart-link-label { display:none; }
}

@media (max-width:360px) {
  :root[data-store="ohlssons"] #brand-logo { width:90px; }
}
