/* Sorbus commerce context only. Catalog card/header/image rules come from Stud17. */
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font,sans-serif)}.shop-header,.shop-main{max-width:1440px;margin:auto;padding:20px}.shop-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.shop-header nav{display:flex;gap:20px;flex-wrap:wrap}.shop-brand{font-size:1.4rem;font-weight:750}.shop-header a,.shop-main a{color:inherit}.shop-header .theme-toggle{flex-shrink:0}.shop-main>h1{margin-bottom:8px}.shop-intro,.shop-price-unit{color:var(--muted)}.shop-toolbar form{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.shop-toolbar label{display:flex;flex-direction:column;gap:6px;font-size:.9rem}.shop-toolbar input,.shop-toolbar select,.shop-main button{font:inherit;color:var(--text);background:var(--surface-strong);border:1px solid var(--line);border-radius:8px;padding:10px;min-height:44px;max-width:100%;box-sizing:border-box}.shop-toolbar input[type=checkbox]{min-height:20px;width:20px;flex-shrink:0}.shop-toolbar .shop-checkbox{flex-direction:row;align-items:center}.shop-search{grid-column:span 2}.shop-filter-actions{display:flex;gap:12px;align-items:center}.shop-active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.shop-main .shop-filter-chip{border-radius:999px;padding:6px 12px;min-height:36px;font-size:.9rem}.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.shop-offer-card{height:100%;box-sizing:border-box}.shop-price{font-size:1.3rem;font-weight:750;margin:12px 0 6px}.shop-price-unit{font-size:.85rem;font-weight:400}.shop-stock{margin:8px 0}.shop-stock[data-kind=unavailable]{color:var(--muted)}.shop-trade-panel{border-top:1px solid var(--line);margin-top:12px}.shop-pages{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:24px 0}.shop-main button{cursor:pointer}.shop-main button:disabled{cursor:default;opacity:.5}.shop-back{display:inline-block;margin:12px 0 24px}.shop-offer-detail .entity-head{margin-bottom:16px}.shop-trade-summary{border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--surface)}.shop-trade-summary .shop-trade-panel{border:0;margin:0}.shop-catalog-link{display:inline-block;margin:12px 0}.shop-variants{margin-top:24px}.shop-variants ul{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.shop-variants a{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:12px;padding:14px;text-decoration:none}.shop-variants a:hover{border-color:var(--accent)}.shop-variants a span{font-size:.9rem;color:var(--muted)}.shop-error,.shop-empty{border:1px solid var(--line);border-radius:16px;padding:24px}.shop-error h2,.shop-empty h2{font-size:1.2rem}.shop-main img[hidden]{display:none}.shop-main [data-shop-photo-error]{font-size:.85rem;color:var(--muted);padding:12px}.shop-main a:focus-visible,.shop-main button:focus-visible,.shop-main input:focus-visible,.shop-main select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.shop-catalog-photo-note{font-size:.9rem}@media(max-width:600px){.shop-header,.shop-main{padding:14px}.shop-toolbar form{grid-template-columns:1fr 1fr;padding:12px;gap:12px}.shop-search,.shop-checkbox,.shop-filter-actions{grid-column:1/-1}.shop-grid{grid-template-columns:1fr}.shop-pages{flex-wrap:wrap}.shop-variants ul{grid-template-columns:1fr}}@media(max-width:360px){.shop-toolbar form{grid-template-columns:1fr}}

/* Grid controls must shrink within the mobile two-column layout. */
.shop-toolbar label{min-width:0}.shop-toolbar input:not([type=checkbox]),.shop-toolbar select{width:100%;min-width:0}.shop-header>*{min-width:0}.shop-main .entity-head-content{min-width:0}

/* Shared image state presentation is opt-in; legacy catalog markup is unchanged. */
.stud17-image-states .stud17-image-state {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
}
.stud17-image-state__status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  background: var(--surface, #fff);
  color: var(--text, #17212d);
  text-align: center;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.stud17-image-state[data-image-state="error"] .stud17-image-state__status {
  padding-bottom: 68px;
}
.stud17-image-state .stud17-image-state__retry {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: calc(100% - 16px);
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.stud17-image-state__retry:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.stud17-image-state__retry:disabled,
.stud17-image-state__retry[aria-disabled="true"] { cursor: default; }
.stud17-image-state [hidden] { display: none; }
.stud17-image-state-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Context controls; canonical cards/images/theme stay in shared presentation. */
.customer-panel{padding:20px;margin:18px 0;border:1px solid var(--line);border-radius:14px;background:var(--surface);min-width:0}
.customer-lines{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:16px}.customer-line-wrap{min-width:0}.customer-line-wrap .entity-card{height:auto}.customer-line-wrap>label{margin-top:8px}.customer-line-wrap>button{margin-top:8px}
.customer-offer-wrap{display:flex;flex-direction:column;min-width:0}.customer-offer-wrap>.shop-offer-card{height:auto;flex:1}.customer-offer-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.customer-offer-controls label{flex:1;min-width:100px}.customer-offer-controls input{width:100%}
.customer-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.customer-form fieldset,.customer-form>button,.customer-form>.customer-check{grid-column:1/-1}.customer-panel label,.customer-offer-controls label{display:flex;flex-direction:column;gap:6px}.customer-panel input,.customer-panel select,.customer-panel textarea{font:inherit;color:var(--text);background:var(--surface-strong);border:1px solid var(--line);border-radius:8px;padding:10px;min-height:44px;width:100%;box-sizing:border-box}.customer-panel textarea{min-height:100px;resize:vertical}.customer-panel form{margin:16px 0}.customer-panel .customer-check{flex-direction:row;align-items:center;gap:10px}.customer-check input{width:20px;min-height:20px;flex:0 0 20px}.customer-panel fieldset{border:1px solid var(--line);border-radius:8px;display:flex;flex-wrap:wrap;gap:14px}.customer-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.customer-statuses{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.customer-statuses span{padding:8px;border:1px solid var(--line);border-radius:8px}.customer-totals{display:grid;gap:8px;max-width:600px}.customer-totals>div{display:flex;justify-content:space-between;gap:20px}.customer-totals dd{margin:0;font-weight:700}.customer-test{padding:12px;border:2px solid var(--accent);border-radius:8px;font-weight:700}.customer-secret-note{font-size:.9rem;color:var(--muted);overflow-wrap:anywhere}.customer-queue-row{display:block;width:100%;text-align:left;margin:8px 0}.customer-panel a{overflow-wrap:anywhere}.customer-panel input:focus-visible,.customer-panel select:focus-visible,.customer-panel textarea:focus-visible,.customer-panel button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:600px){.customer-panel{padding:14px}.customer-lines,.customer-form{grid-template-columns:1fr}.customer-offer-controls{padding:10px}.customer-actions>*{max-width:100%}}
