.member-wrap {
  padding-top: 40px;
  padding-bottom: 64px;
}
.page-heading {
  margin-bottom: 32px;
  max-width: 760px;
}
.page-heading h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
  margin: 8px 0 12px;
}
.page-heading p,
.help {
  color: var(--ink-2);
}
.member-wrap h2,
.fit-shortcut h2 {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 16px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.panel p {
  margin-bottom: 16px;
}
.stack {
  display: grid;
  gap: 24px;
}
.two-panels,
.fitting-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.5fr);
  gap: 24px;
}
.admin-wrap {
  max-width: 1440px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 10px 12px;
}
.field textarea {
  resize: vertical;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  margin: 20px 0;
  line-height: 1.6;
}
.check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--accent);
}
.check a,
.help a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.help {
  font-size: 14px;
  line-height: 1.6;
}
.notice {
  padding: 16px;
  background: var(--bg-2);
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  margin: 16px 0;
}
.cluster,
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.action-row {
  margin: 20px 0;
}
.text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 4px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}
.panel .btn {
  min-height: 44px;
  white-space: normal;
  text-align: center;
}
.panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
[data-status],
#cart-status,
#delete-status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--ok);
  font-size: 14px;
}
.error {
  color: #a52c24 !important;
}
.stage-panel {
  align-self: start;
  background: var(--bg-2);
}
#stage {
  max-width: 400px;
  margin: auto;
}
#stage svg {
  width: 100%;
  height: auto;
  display: block;
}
.private-preview {
  max-height: 640px;
  width: 100%;
  object-fit: contain;
}
.result-label {
  margin-top: 20px;
  font-weight: 700;
}
.job-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  min-height: 72px;
}
.item-row img {
  width: 48px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}
.item-row span {
  min-width: 0;
}
.item-row small {
  display: block;
  color: var(--ink-2);
  margin-top: 4px;
}
.item-row.selected {
  background: var(--accent-soft);
  border-radius: 8px;
}
.cart-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 24px;
}
.cart-row img {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.history {
  margin-top: 24px;
}
.history summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.fit-shortcut {
  margin: 24px 0;
}
.narrow {
  max-width: 560px;
  margin: auto;
}
.legal-document {
  max-width: 760px;
}
.legal-document h2 {
  margin-top: 32px;
}
.legal-document ul {
  list-style: disc;
  padding-left: 24px;
}
.legal-document li {
  margin: 10px 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.member-links {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.member-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.member-links a:hover {
  text-decoration: underline;
}
.fit-shortcut .btn {
  min-height: 44px;
}
@media (max-width: 1024px) {
  .two-panels,
  .fitting-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .stage-panel {
    max-width: 640px;
    width: 100%;
    margin: auto;
  }
}
@media (max-width: 720px) {
  .member-wrap {
    padding: 24px 16px 48px;
  }
  .panel {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cart-row {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 16px;
  }
  .action-row .btn {
    flex: 1 1 140px;
  }
  .member-links {
    justify-content: center;
    gap: 14px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
.quantity-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 340px;
  margin-top: 18px;
}
.quantity-form .field {
  max-width: 120px;
}
.quantity-form [data-status] {
  flex-basis: 100%;
}
