:root {
  --bg: #fbfaf9;
  --surface: #ffffff;
  --surface-soft: #f7f2f0;
  --surface-rose: #fcf3f4;
  --text: #29201e;
  --muted: #786b67;
  --line: #e5d9d5;
  --accent: #b96569;
  --accent-dark: #914c50;
  --accent-soft: #eed7d8;
  --shadow: 0 16px 44px rgba(78, 50, 45, .08);
  --radius: 16px;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}
.brand-block { min-width: 210px; }
.brand, .brand-sub { margin: 0; }
.brand {
  font-family: Georgia, serif;
  font-size: 22px;
  letter-spacing: .28em;
  line-height: 1.1;
}
.brand-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .24em;
}
.progress {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0 auto 0 0;
  color: #a89c98;
  list-style: none;
}
.progress li {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.progress li + li::before {
  width: 22px;
  height: 1px;
  margin-right: 2px;
  background: var(--line);
  content: "";
}
.progress span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: white;
  background: #cfc6c3;
  border-radius: 50%;
  font-size: 12px;
}
.progress .active { color: var(--accent-dark); font-weight: 700; }
.progress .active span { background: var(--accent); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.mode-switch {
  display: flex;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mode-button {
  padding: 7px 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}
.mode-button.active {
  color: var(--accent-dark);
  background: white;
  box-shadow: 0 2px 7px rgba(78, 50, 45, .09);
  font-weight: 700;
}
.outline-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.outline-button {
  padding: 9px 14px;
  color: var(--accent-dark);
  background: white;
  border: 1px solid var(--line);
}
.outline-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.primary-button {
  padding: 12px 18px;
  color: white;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 24px rgba(185, 101, 105, .18);
  font-weight: 700;
}
.outline-button:hover, .primary-button:hover { transform: translateY(-1px); }
.primary-button:hover { background: var(--accent-dark); }

main { max-width: 1540px; margin: 0 auto; padding: 28px clamp(18px, 4vw, 54px) 34px; }
.screen { display: none; }
.screen.active { display: block; animation: fade-in .3s ease; }
.finder-panel {
  margin-bottom: 34px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.finder-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.finder-heading h1 { margin-bottom: 5px; }
.finder-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.finder-count {
  display: grid;
  min-width: 105px;
  justify-items: end;
  color: var(--muted);
}
.finder-count strong {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
}
.audience-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 340px;
  margin-top: 18px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.audience-button {
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
}
.audience-button.active {
  color: white;
  background: var(--accent);
  box-shadow: 0 6px 15px rgba(185, 101, 105, .16);
}
.finder-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 18px;
  padding: 18px 0;
}
.perm-filter { display: none; }
.perm-filter.visible { display: block; }
.filter-group p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button {
  padding: 7px 10px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 11px;
}
.filter-button:hover { border-color: var(--accent-soft); }
.filter-button.active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.finder-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 10px 12px;
  color: var(--muted);
  background: var(--surface-rose);
  border-radius: 8px;
  font-size: 11px;
}
.finder-summary p { margin: 0; }
.finder-summary p:first-child { color: var(--accent-dark); font-weight: 700; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.catalog-card {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.catalog-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 10px 24px rgba(78, 50, 45, .1);
  transform: translateY(-3px);
}
.catalog-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.catalog-select {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: var(--surface-soft);
  border: 0;
}
.catalog-select img {
  display: block;
  width: 100%;
  height: 152px;
  object-fit: cover;
  object-position: center top;
}
.catalog-length {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  color: white;
  background: rgba(145, 76, 80, .88);
  border-radius: 100px;
  font-size: 9px;
}
.catalog-featured {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 7px;
  color: white;
  background: rgba(39, 32, 30, .82);
  border-radius: 100px;
  font-size: 9px;
}
.catalog-card-body { padding: 9px; }
.catalog-card-body p, .catalog-card-body h3, .catalog-card-body span { margin: 0; }
.catalog-card-body p {
  min-height: 17px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
}
.catalog-card-body h3 {
  min-height: 42px;
  font-size: 14px;
  line-height: 1.45;
}
.catalog-card-body span {
  display: -webkit-box;
  min-height: 52px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.catalog-detail-button {
  width: 100%;
  margin-top: 8px;
  padding: 7px 4px;
  color: var(--accent-dark);
  background: var(--surface-rose);
  border: 1px solid var(--accent-soft);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.catalog-empty {
  display: none;
  padding: 24px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 10px;
  text-align: center;
}
.catalog-empty.visible { display: block; }
.catalog-empty h3 { margin-bottom: 4px; }
.catalog-empty p { margin-bottom: 0; }
.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}
.small-label {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 0; font-family: "Yu Mincho", serif; font-size: clamp(26px, 3vw, 37px); letter-spacing: .08em; }
h2 { font-family: "Yu Mincho", serif; font-size: clamp(26px, 2.7vw, 39px); line-height: 1.35; letter-spacing: .06em; }
h3 { margin-bottom: 0; font-family: "Yu Mincho", serif; font-size: 20px; letter-spacing: .05em; }
h4 { margin-bottom: 2px; }
.intro-note { max-width: 430px; margin-bottom: 4px; color: var(--muted); }

.result-grid {
  display: grid;
  grid-template-columns: minmax(250px, 30%) minmax(380px, 1fr) minmax(280px, 320px);
  gap: 22px;
}
.recommendation, .result-grid > *, .detail-grid > *, .stylist-layout > * { min-width: 0; }
.hero-card, .consultation-card, .angle-panel, .styling-panel, .pairing-panel, .detail-strip, .state-panel, .score-panel, .order-panel, .reference-panel, .review-workspace {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { position: relative; min-height: 585px; overflow: hidden; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.corner-label {
  position: absolute;
  top: 16px;
  left: 0;
  z-index: 1;
  padding: 7px 18px;
  color: white;
  background: var(--accent);
  border-radius: 0 7px 7px 0;
  font-weight: 700;
}
.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 18px;
  color: white;
  background: linear-gradient(transparent, rgba(39, 22, 21, .72));
}
.hero-caption p { margin-bottom: 0; font-weight: 700; }
.hero-caption span { font-size: 11px; }
.recommendation { padding: 18px 4px 8px 10px; }
.recommendation h2 { margin: 8px 0 14px; word-break: keep-all; }
.style-description { max-width: 660px; color: var(--muted); font-size: 15px; line-height: 2; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.tag-row span {
  padding: 7px 12px;
  color: var(--accent-dark);
  background: var(--surface-rose);
  border: 1px solid var(--accent-soft);
  border-radius: 100px;
  font-size: 12px;
}
.alternate-header, .panel-title-row, .section-heading, .card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.alternate-header {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.alternate-header h3 { font-size: 17px; }
.alternate-header p, .panel-title-row > p, .section-heading > span { margin: 0; color: var(--muted); font-size: 11px; }
.style-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.style-option {
  position: relative;
  overflow: hidden;
  padding: 0 0 10px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  transition: transform .2s ease, border .2s ease, box-shadow .2s ease;
}
.style-option:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(78, 50, 45, .1); }
.style-option.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.style-option img { width: 100%; height: 148px; object-fit: cover; display: block; }
.style-option span, .style-option small { display: block; padding: 0 10px; }
.style-option span { margin-top: 8px; font-weight: 700; }
.style-option small { color: var(--accent); font-size: 10px; }
.consultation-card { padding: 20px; }
.fictional-label, .section-heading > span {
  padding: 4px 8px;
  color: var(--accent-dark);
  background: var(--surface-rose);
  border-radius: 100px;
  font-size: 10px;
}
.profile-list { margin: 16px 0; }
.profile-list div { padding: 11px 0; border-top: 1px solid var(--line); }
.profile-list dt { margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.profile-list dd { margin: 0; font-weight: 700; }
.point-box { padding: 14px; background: var(--surface-rose); border-radius: 10px; }
.point-box ul { margin: 8px 0 0; padding-left: 19px; }
.point-box li { margin: 4px 0; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr .72fr;
  gap: 18px;
  margin-top: 20px;
}
.angle-panel, .styling-panel, .pairing-panel, .detail-strip, .state-panel, .score-panel, .order-panel { padding: 18px; }
.angle-viewer {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 185px;
  margin-top: 14px;
  padding: 10px;
  background: var(--surface-soft);
  border-radius: 12px;
}
.angle-viewer img { width: 148px; height: 180px; object-fit: cover; object-position: top; border-radius: 8px; }
.angle-name { margin-bottom: 6px; color: var(--accent); font-family: "Yu Mincho", serif; font-size: 24px; }
.angle-copy p:last-child { margin-bottom: 0; color: var(--muted); }
.angle-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.angle-button {
  padding: 8px 4px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}
.angle-button.active { color: white; background: var(--accent); border-color: var(--accent); }
.angle-button:disabled {
  cursor: not-allowed;
  opacity: .36;
}
.panel-disclaimer { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.atlas-grid {
  display: grid;
  grid-template-columns: 1.15fr .7fr .72fr;
  gap: 18px;
  margin-top: 20px;
}
.state-viewer {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 170px;
  margin-top: 14px;
  padding: 10px;
  background: var(--surface-soft);
  border-radius: 12px;
}
.state-viewer img { width: 138px; height: 168px; object-fit: cover; object-position: top; border-radius: 8px; }
.state-viewer p { margin-bottom: 0; color: var(--muted); }
.state-name { color: var(--accent) !important; font-family: "Yu Mincho", serif; font-size: 22px; }
.state-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.state-button {
  padding: 8px 3px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 10px;
}
.state-button.active { color: white; background: var(--accent); border-color: var(--accent); }
.score-list { display: grid; gap: 8px; margin-top: 16px; }
.score-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.score-list span { font-weight: 700; }
.score-list strong { color: var(--accent); font-size: 15px; letter-spacing: .08em; white-space: nowrap; }
.style-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}
.style-meta div { padding: 10px; background: var(--surface-soft); border-radius: 8px; }
.style-meta span, .style-meta strong { display: block; }
.style-meta span { color: var(--muted); font-size: 10px; }
.style-meta strong { margin-top: 4px; color: var(--accent-dark); }
.required-items { min-height: 74px; margin: 8px 0 15px; padding-left: 19px; color: var(--muted); }
.required-items li { margin: 3px 0; }
.order-panel .primary-button { width: 100%; }
.styling-steps { display: grid; gap: 12px; margin: 16px 0 18px; padding: 0; list-style: none; }
.styling-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; }
.styling-steps span { color: var(--accent); font-family: Georgia, serif; font-size: 20px; }
.styling-steps h4, .styling-steps p { margin: 0; }
.styling-steps p { color: var(--muted); font-size: 12px; }
.styling-panel .primary-button { width: 100%; }
.pairing-panel article { display: grid; grid-template-columns: 35px 1fr; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.pairing-panel article:first-of-type { margin-top: 14px; }
.pairing-panel h4, .pairing-panel p { margin: 0; }
.pairing-panel p { color: var(--muted); font-size: 11px; line-height: 1.6; }
.round-icon { display: grid; width: 32px; height: 32px; place-items: center; color: var(--accent); border: 1px solid var(--accent-soft); border-radius: 50%; font-family: Georgia, serif; }
.detail-strip { display: grid; grid-template-columns: 220px 1fr; gap: 18px; margin-top: 20px; }
.detail-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.detail-images figure { position: relative; min-height: 150px; margin: 0; overflow: hidden; border-radius: 9px; }
.detail-images img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-images figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 8px;
  color: white;
  background: rgba(95, 50, 52, .72);
  font-size: 12px;
  text-align: center;
}

.stylist-layout { display: grid; grid-template-columns: 310px 1fr; gap: 20px; }
.reference-panel { padding: 18px; align-self: start; }
.reference-panel h2 { margin: 2px 0 14px; font-size: 27px; }
.reference-panel img { width: 100%; max-height: 480px; object-fit: cover; object-position: top; border-radius: 10px; }
.reference-note { margin-top: 12px; padding: 12px; color: var(--accent-dark); background: var(--surface-rose); border-radius: 9px; }
.reference-note p { margin: 2px 0 0; font-size: 11px; line-height: 1.7; }
.review-workspace { padding: 0 22px; }
.review-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-section h3 { font-size: 19px; }
.input-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
label { color: var(--muted); font-size: 11px; }
input, select, textarea {
  width: 100%;
  margin-top: 5px;
  padding: 9px 10px;
  color: var(--text);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}
textarea { min-height: 72px; resize: vertical; line-height: 1.7; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin-top: 14px; }
.check-grid label { display: flex; gap: 7px; align-items: center; padding: 9px 10px; background: var(--surface-soft); border-radius: 7px; }
.check-grid input { width: auto; margin: 0; accent-color: var(--accent); }
.memo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.technical-note { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.technical-group { margin-top: 16px; }
.technical-group h4 { margin-bottom: 4px; color: var(--accent-dark); font-family: "Yu Mincho", serif; font-size: 16px; }
.technical-grid { margin-top: 6px; }
.review-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; }
.review-footer p { margin: 0; color: var(--muted); font-size: 11px; }
footer { padding: 16px 20px 24px; color: var(--muted); font-size: 11px; text-align: center; }
footer p { margin: 0; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 20;
  padding: 12px 18px;
  color: white;
  background: var(--text);
  border-radius: 9px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: translateY(0); }
.modal-open { overflow: hidden; }
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
}
.order-modal-backdrop { position: absolute; inset: 0; background: rgba(41, 32, 30, .52); backdrop-filter: blur(5px); }
.order-sheet-dialog { position: relative; width: min(860px, 100%); max-height: calc(100vh - 44px); overflow: auto; }
.order-sheet-actions { display: flex; justify-content: end; gap: 8px; margin-bottom: 10px; }
.print-sheet { padding: 28px; background: white; border-radius: 12px; box-shadow: 0 24px 70px rgba(39, 22, 21, .24); }
.sheet-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.sheet-header p, .sheet-header span { margin: 0; }
.sheet-header p { font-family: Georgia, serif; font-size: 22px; letter-spacing: .2em; }
.sheet-header span { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.sheet-header strong { align-self: center; color: var(--accent-dark); font-size: 11px; }
.sheet-main { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; padding: 18px 0; }
.sheet-main img { width: 170px; height: 210px; object-fit: cover; object-position: top; border-radius: 8px; }
.sheet-main h2 { margin: 4px 0 9px; font-size: 26px; }
.sheet-main p:last-child { margin: 0; color: var(--muted); }
.sheet-details { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sheet-details div { padding: 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet-details dt { color: var(--accent); font-size: 10px; font-weight: 700; }
.sheet-details dd { margin: 2px 0 0; font-weight: 700; }
.sheet-disclaimer { margin: 14px 0 0; color: var(--muted); font-size: 10px; }

@keyframes fade-in { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1150px) {
  .progress { display: none; }
  .finder-filters { grid-template-columns: 1fr; gap: 10px; }
  .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .result-grid { grid-template-columns: 330px 1fr; }
  .consultation-card { grid-column: 1 / -1; }
  .profile-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .profile-list div { padding: 9px 0; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .atlas-grid { grid-template-columns: 1fr 1fr; }
  .order-panel { grid-column: 1 / -1; }
  .pairing-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .pairing-panel .panel-title-row { grid-column: 1 / -1; }
  .pairing-panel article { margin-top: 0 !important; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 9px; padding: 12px 16px; }
  .brand-block { min-width: 0; margin-right: auto; }
  .brand { font-size: 18px; }
  .top-actions { order: 3; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
  .mode-switch { width: auto; min-width: 0; }
  .mode-button { flex: 1; }
  .top-actions .outline-button { display: none; }
  main { padding: 20px 14px 26px; }
  .finder-panel { margin-bottom: 25px; padding: 15px; }
  .finder-heading { align-items: start; gap: 10px; }
  .finder-heading h1 { font-size: 27px; }
  .finder-heading p:last-child { font-size: 12px; }
  .finder-count { min-width: 68px; }
  .finder-count strong { font-size: 36px; }
  .finder-count span { font-size: 10px; }
  .finder-summary { display: block; }
  .finder-summary p + p { margin-top: 5px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .catalog-select img { height: 190px; }
  .catalog-card-body h3 { min-height: 0; }
  .catalog-card-body span { min-height: 0; }
  .page-intro { display: block; }
  .page-intro h1 { font-size: 25px; letter-spacing: .02em; overflow-wrap: anywhere; }
  .intro-note { margin-top: 8px; }
  .result-grid, .detail-grid, .atlas-grid, .stylist-layout { grid-template-columns: 1fr; }
  .order-panel { grid-column: auto; }
  .hero-card { min-height: 520px; }
  .recommendation { max-width: calc(100vw - 28px); padding: 6px 0; overflow: hidden; }
  .style-description, .alternate-header, .style-options { max-width: calc(100vw - 28px); }
  .style-description, .alternate-header p { word-break: break-all; overflow-wrap: anywhere; }
  .style-options { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
  .profile-list { grid-template-columns: repeat(2, 1fr); }
  .detail-strip { grid-template-columns: 1fr; }
  .detail-images { grid-template-columns: repeat(2, 1fr); }
  .pairing-panel { display: block; }
  .input-grid, .check-grid, .memo-grid { grid-template-columns: 1fr; }
  .review-workspace { padding: 0 16px; }
  .review-footer { display: block; }
  .review-footer .primary-button { width: 100%; margin-top: 12px; }
  .angle-buttons { grid-template-columns: repeat(3, 1fr); }
  .state-buttons { grid-template-columns: repeat(3, 1fr); }
  .sheet-main { grid-template-columns: 1fr; }
  .sheet-main img { width: 100%; height: 290px; }
  .sheet-details { grid-template-columns: 1fr; }
  .print-sheet { padding: 18px; }
}

@media print {
  body * { visibility: hidden; }
  .order-modal, .order-modal * { visibility: visible; }
  .order-modal { position: static; display: block; padding: 0; }
  .order-modal-backdrop, .order-sheet-actions { display: none; }
  .order-sheet-dialog { width: 100%; max-height: none; overflow: visible; }
  .print-sheet { padding: 0; border-radius: 0; box-shadow: none; }
}
