.store-rebuild { box-sizing: border-box; width: min(820px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); background: var(--surface); box-shadow: var(--shadow); overflow-y: auto; }
.store-rebuild::backdrop { background: rgba(24,37,54,.48); }
.store-rebuild header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.store-rebuild h2 { margin: 5px 0 12px; font-size: 24px; }
.store-rebuild-kicker { color: var(--muted); font-size: 12px; letter-spacing: .06em; }
.store-rebuild-shop { font-weight: 700; color: var(--primary-dark); overflow-wrap: anywhere; }
.store-rebuild-scope { padding: 12px 14px; border-left: 3px solid var(--danger); background: #fff6f4; line-height: 1.8; }
.store-rebuild section { padding: 18px 0; border-top: 1px solid var(--line); }
.store-rebuild h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.store-rebuild h3 span { display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; }
.store-rebuild .hint { line-height: 1.8; }
.store-rebuild-tools { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.store-rebuild label { display: grid; gap: 7px; font-size: 13px; }
.store-rebuild-tools label { flex: 1 1 280px; min-width: 0; max-width: 490px; }
.store-rebuild input[type=file] { width: 100%; min-width: 0; box-sizing: border-box; }
.store-rebuild-name { max-width: 320px; }
.store-rebuild-counts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.store-rebuild-counts div { padding: 9px 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; }
.store-rebuild-counts dt { font-size: 12px; color: var(--muted); }
.store-rebuild-counts dd { margin: 5px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.store-rebuild-errors { padding: 12px 12px 12px 30px; color: var(--danger); background: #fff6f4; line-height: 1.8; }
.store-rebuild-valid { color: var(--success); }
.store-rebuild summary { cursor: pointer; margin: 14px 0; }
.store-rebuild td { overflow-wrap: anywhere; }
.store-rebuild [data-rebuild-status] { overflow-wrap: anywhere; margin-bottom: 0; }
.store-rebuild button { width: auto; }
@media (max-width: 560px) {
  .store-rebuild { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 18px 14px; }
  .store-rebuild-counts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .store-rebuild h2 { font-size: 21px; }
  .store-rebuild-tools { align-items: flex-start; }
  .store-rebuild [data-rebuild-execute] { max-width: 100%; white-space: normal; line-height: 1.6; }
}
