.store-layout {
  --store-max:1480px;
  --store-gutter:clamp(18px,3.75vw,56px);
  --store-surface:#fff;
  --store-canvas:#f2f4f7;
  --store-line:#dbe1e8;
  --store-ink:#172131;
  min-height:100dvh;
  background:var(--store-canvas);
  color:var(--store-ink);
}
.store-header {
  position:sticky;
  top:0;
  z-index:10;
  background:var(--store-surface);
  border-bottom:1px solid #e7eaf0;
}
.store-header-inner {
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  min-height:66px;
  max-width:var(--store-max);
  padding:0 var(--store-gutter);
  margin:auto;
}
.store-brand {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  gap:10px;
  color:var(--store-ink);
  font-size:22px;
  font-weight:780;
  white-space:nowrap;
}
.store-brand:hover { text-decoration:none; }
.store-brand img { border-radius:9px; }
.store-nav { display:flex; align-self:stretch; gap:clamp(8px,2vw,33px); }
.store-nav button {
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  min-width:60px;
  padding:0 8px;
  background:none;
  border:0;
  color:var(--store-ink);
  font-weight:680;
  white-space:nowrap;
}
.store-nav .icon { display:none; }
.store-nav button:hover,.store-nav button[aria-current] { color:var(--accent); }
.store-nav button[aria-current]::after {
  content:'';
  position:absolute;
  inset:auto 4px 0;
  height:3px;
  background:var(--accent);
  border-radius:3px 3px 0 0;
}
.store-header-actions { display:flex; justify-content:flex-end; }
.store-header-actions .btn { min-width:82px; background:#fff; border-color:#a9bcdf; }
.store-header-actions .btn:hover { background:var(--accent-soft); }
.store-content { padding:clamp(22px,2.7vw,38px) var(--store-gutter) 44px; max-width:var(--store-max); margin:auto; }
.store-content .joint-credit-panel { margin-bottom:14px; }
.joint-credit-panel .role-task-list .btn { flex-shrink:0; }
.store-hero {
  isolation:isolate;
  position:relative;
  display:flex;
  align-items:center;
  min-height:clamp(280px,27vw,386px);
  overflow:hidden;
  border:1px solid #e4e8ee;
  border-radius:15px;
  background:#e9edf3;
}
.store-hero-art {
  position:absolute;
  z-index:-1;
  top:-18px;
  right:1%;
  width:67%;
  height:calc(100% + 36px);
  object-fit:contain;
  object-position:right center;
  mask-image:linear-gradient(90deg,transparent 10%,#000 30%,#000 95%,transparent 100%);
}
.store-hero-text { padding:30px 0 30px clamp(32px,5.6vw,82px); }
.store-hero h1 { color:#142031; font-size:clamp(39px,4.25vw,66px); letter-spacing:.01em; line-height:1.12; font-weight:820; }
.store-hero p { margin-top:14px; color:#414c5b; font-size:clamp(15px,1.75vw,23px); }
.store-hero-button { margin-top:25px; min-height:48px; min-width:138px; padding:0 18px; border-radius:9px; font-size:16px; }
.store-services {
  display:flex;
  overflow:hidden;
  background:var(--store-surface);
  border:1px solid var(--store-line);
  border-radius:12px;
  margin-top:20px;
}
.store-services:empty { display:none; }
.store-services button {
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  gap:12px;
  min-height:78px;
  padding:0 8px;
  border:0;
  background:none;
  color:var(--store-ink);
  font-size:clamp(14px,1.6vw,22px);
  font-weight:700;
  white-space:nowrap;
}
.store-services button + button::before { content:''; position:absolute; left:0; height:48%; border-left:1px solid var(--store-line); }
.store-services button:hover { color:var(--accent); background:#f7f9fd; }
.store-services button:focus-visible { outline-offset:-3px; }
.store-services .icon { width:clamp(20px,2.7vw,34px); height:clamp(20px,2.7vw,34px); color:var(--accent); }
.store-section { margin-top:22px; }
.store-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.store-section-head :is(h1,h2) { font-size:clamp(23px,2.65vw,35px); font-weight:790; line-height:1.3; }
.store-catalog-head { margin-bottom:20px; }
.store-search { background:#fff; }
.store-products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.store-card { min-width:0; }
.store-card-control {
  display:block;
  width:100%;
  height:100%;
  overflow:hidden;
  padding:0;
  color:var(--store-ink);
  text-align:left;
  background:var(--store-surface);
  border:1px solid var(--store-line);
  border-radius:11px;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.store-card-control:hover { border-color:#9ab1dc; box-shadow:0 5px 15px #1e3c7712; }
.store-cover {
  display:grid;
  position:relative;
  place-items:center;
  aspect-ratio:1.52;
  overflow:hidden;
  background:#f3f5f8;
}
.store-cover-placeholder { display:grid; place-items:center; color:#7b889d; }
.store-cover-placeholder .icon { width:38px; height:38px; }
.store-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#f3f5f8; }
.store-cover-example img {
  inset:0 auto 0 50%;
  width:auto;
  max-width:100%;
  transform:translateX(-50%);
  mask-image:linear-gradient(90deg,transparent,#000 15%,#000 85%,transparent);
}
.store-card-copy { display:flex; flex-direction:column; gap:3px; min-height:77px; padding:10px 13px 11px; }
.store-card-name { font-size:clamp(14px,1.2vw,17px); line-height:1.4; font-weight:700; }
.store-card-spec,.store-unavailable { color:#5d697a; font-size:12px; overflow-wrap:anywhere; }
.store-card-bottom { display:flex; gap:6px; align-items:baseline; justify-content:space-between; margin-top:auto; }
.store-card-bottom strong,.store-detail-price { color:var(--accent); font-weight:800; font-variant-numeric:tabular-nums; }
.store-card-bottom strong { font-size:clamp(16px,1.65vw,23px); }
.store-empty { padding:24px; border:1px solid var(--store-line); border-radius:10px; background:#fff; text-align:center; color:#5b6675; }
.store-empty .btn { margin-top:9px; }
.store-product-detail { display:grid; grid-template-columns:1fr 1.45fr; align-items:center; gap:12px; }
.store-product-detail .store-cover { aspect-ratio:1; border-radius:8px; }
.store-product-detail .detail-grid { margin-top:10px; }
.store-detail-price { font-size:24px; }
.store-detail-price span { margin-left:2px; color:var(--secondary); font-size:13px; }
dialog[open]:has(> .dialog-body .store-product-detail) {
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  max-height:calc(100dvh - 32px);
  overflow:hidden;
}
dialog:has(> .dialog-body .store-product-detail) > .dialog-body {
  overflow:auto;
  overscroll-behavior:contain;
  scroll-padding:16px;
}
dialog:has(> .dialog-body .store-product-detail) > .dialog-head h2 { overflow-wrap:anywhere; }
.store-product-detail .store-cover img[hidden],.store-product-figure img[hidden] { display:none; }
.store-product-figure { margin:0; overflow:hidden; border-radius:7px; background:#f3f5f8; }
.store-product-figure figcaption { padding:18px 12px; text-align:center; color:var(--secondary); }
.store-auth { max-width:420px; padding:22px; margin:26px auto; background:#fff; }
.store-auth h1 { margin-bottom:12px; font-size:24px; }
.store-auth .btn.primary { width:100%; margin-top:6px; }
.store-auth .login-links { margin-top:10px; }
.store-layout .popup { top:69px; }

@media(max-width:760px) {
  .store-header-inner { grid-template-columns:1fr auto; min-height:55px; }
  .store-brand { font-size:20px; }
  .store-brand img { width:32px; height:32px; }
  .store-header-actions .btn { min-height:33px; min-width:61px; font-size:13px; }
  .store-content { padding-top:15px; padding-bottom:calc(74px + env(safe-area-inset-bottom)); }
  .store-nav {
    position:fixed;
    inset:auto 0 0;
    z-index:11;
    display:flex;
    gap:0;
    padding:3px 5px env(safe-area-inset-bottom);
    background:#fff;
    border-top:1px solid #dfe4eb;
  }
  .store-nav button { flex:1; flex-direction:column; gap:4px; min-width:0; min-height:51px; font-size:12px; }
  .store-nav .icon { display:block; width:21px; height:21px; }
  .store-nav button[aria-current]::after { display:none; }
  .store-hero { min-height:218px; border-radius:12px; }
  .store-hero-art { inset:3px -6% auto auto; width:69%; height:calc(100% - 6px); object-fit:cover; object-position:56% center; mask-image:linear-gradient(90deg,transparent,#000 22%); }
  .store-hero-text { padding:18px 0 18px 16px; width:52%; }
  .store-hero h1 { font-size:clamp(25px,7.1vw,44px); }
  .store-hero p { margin-top:10px; font-size:13px; }
  .store-hero-button { margin-top:16px; min-height:36px; min-width:0; padding:0 10px; font-size:13px; }
  .store-services { margin-top:12px; }
  .store-services button { min-height:55px; gap:5px; font-size:clamp(12px,3.4vw,16px); }
  .store-section { margin-top:18px; }
  .store-products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .store-card-copy { min-height:64px; padding:7px 9px; }
  .store-catalog-head { flex-wrap:wrap; }
  .store-search,.store-search input { width:100%; }
  .store-auth { margin-top:12px; }
  .store-layout .popup { top:58px; }
  dialog[open]:has(> .dialog-body .store-product-detail) {
    width:min(640px,calc(100vw - 16px));
    max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  dialog:has(> .dialog-body .store-product-detail) > .dialog-head,
  dialog:has(> .dialog-body .store-product-detail) > .dialog-body { padding:12px 14px; }
  dialog:has(> .dialog-body .store-product-detail) > .dialog-foot {
    gap:6px;
    padding:9px 10px;
  }
  dialog:has(> .dialog-body .store-product-detail) > .dialog-foot .btn {
    min-height:42px;
    padding-inline:9px;
    white-space:nowrap;
  }
  .store-product-detail { grid-template-columns:minmax(0,1fr); gap:10px; }
  .store-product-detail .store-cover { height:clamp(140px,49vw,220px); aspect-ratio:auto; }
  .store-product-detail .detail-grid { margin-top:5px; }
  .store-product-content { margin-top:20px; padding-top:15px; }
}
.mall-order-list { display:grid; gap:16px; }
.mall-order-list h2 { overflow-wrap:anywhere; }
.mall-order-list .detail-grid { margin:16px 0; }
.mall-order-list .head-actions { flex-wrap:wrap; }
