/* ============================================================
   ROOT — LP踏襲
   ============================================================ */
:root {
  --red:         #D94F3D;
  --red-dark:    #A8372A;
  --red-light:   #FDF0EE;
  --red-mid:     #F5C4BC;
  --amber:       #E89C2F;
  --amber-light: #FDF6E8;
  --green:       #2A8C5E;
  --green-light: #EAF5EF;
  --blue:        #378ADD;
  --blue-dark:   #185FA5;
  --bg:          #FFFFFF;
  --bg-2:        #F7F6F3;
  --bg-3:        #F0EEE8;
  --border:      #E2E0DB;
  --border-mid:  #D0CEC8;
  --border-hi:   #B8B5AE;
  --ink:         #1A1A1A;
  --ink-mid:     #4A4845;
  --ink-light:   #8A887F;
  --white:       #FFFFFF;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  font-family: var(--font-body);
  color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.6;
  overflow-x: clip; padding-top: 56px;
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  padding: 0; border-bottom: 1px solid var(--border);
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 100;
}
.site-nav .container { padding-top: 0.9rem; padding-bottom: 0.9rem; }
.nav-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800;
  letter-spacing: 0.02em; color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--red); }
.nav-back {
  font-size: 0.82rem; color: var(--ink-light); text-decoration: none;
  display: flex; align-items: center; gap: 4px; transition: color 0.2s;
}
.nav-back:hover { color: var(--ink); }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.35; pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-light); border: 1px solid var(--red-mid);
  color: var(--red-dark); font-size: 0.72rem; font-weight: 500;
  padding: 0.3rem 0.85rem; border-radius: 2px; margin-bottom: 0.75rem;
  letter-spacing: 0.06em;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--red);
  animation: pulse 1.6s ease-in-out infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(1.5); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,2.8rem); font-weight: 800;
  color: var(--ink); line-height: 1.05; margin-bottom: 0.4rem;
}
.page-title .accent { color: var(--red); }
.page-sub { font-size: 0.88rem; color: var(--ink-light); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-wrap {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 0.75rem 0; position: sticky; top: 56px; z-index: 90;
}
.progress-steps { display: flex; align-items: center; max-width: 680px; }
.progress-step {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 500; font-family: var(--font-display);
  letter-spacing: 0.05em; color: var(--border-hi);
  transition: color 0.3s; white-space: nowrap;
}
.progress-step.active { color: var(--red); }
.progress-step.done   { color: var(--green); }
.step-circle {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border-mid); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: var(--border-hi);
  flex-shrink: 0; transition: all 0.3s;
}
.progress-step.active .step-circle { border-color:var(--red); background:var(--red); color:var(--white); }
.progress-step.done   .step-circle { border-color:var(--green); background:var(--green); color:var(--white); }
.step-line { flex:1; height:1px; background:var(--border); margin:0 6px; min-width:16px; }

/* ============================================================
   MAIN
   ============================================================ */
.report-main { padding: 2.5rem 0 5rem; }

/* ============================================================
   FORM SECTIONS — ロック/アンロック
   ============================================================ */
.form-section {
  display: none;
  margin-bottom: 2.5rem;
}
.form-section.active {
  display: block;
}
.section-label-sm {
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 500; margin-bottom: 0.3rem;
}
.section-heading {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--ink); line-height: 1.1; margin-bottom: 0.25rem;
}
.section-note { font-size: 0.8rem; color: var(--ink-light); margin-bottom: 1.1rem; }
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 800;
  margin-right: 0.6rem; flex-shrink: 0; transition: background 0.3s;
}
.step-badge.done-badge { background: var(--green); }
.step-header { display: flex; align-items: center; margin-bottom: 0.25rem; }
.section-divider { border:none; border-top:1px solid var(--border); margin: 2rem 0; }

/* ============================================================
   ITEM CARDS — What
   ============================================================ */
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px,1fr));
  gap: 0.6rem;
}
.item-card {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 0.9rem 0.5rem 0.7rem; text-align: center; cursor: pointer;
  background: var(--bg); transition: all 0.18s;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  user-select: none;
}
.item-card:hover { border-color:var(--red-mid); background:var(--red-light); transform:translateY(-2px); }
.item-card.selected { border-color:var(--red); background:var(--red-light); box-shadow:0 0 0 2px var(--red-mid); }
.item-icon { font-size: 1.8rem; line-height: 1; }
.item-label { font-size: 0.72rem; font-weight: 500; color: var(--ink-mid); line-height: 1.3; }
.item-card.selected .item-label { color: var(--red-dark); font-weight: 600; }

/* ============================================================
   PREFECTURE — カード類の上
   ============================================================ */
.prefecture-wrap { margin-bottom: 1.25rem; }
.field-label {
  font-size: 0.75rem; font-weight: 500; color: var(--ink-mid);
  margin-bottom: 0.4rem; display: flex; align-items: center; gap: 6px;
}
.field-required {
  font-size: 0.65rem; background: var(--red); color: var(--white);
  padding: 1px 6px; border-radius: 2px; font-weight: 600; letter-spacing: 0.04em;
}
.form-select-lnj {
  width: 100%; max-width: 340px;
  border: 1.5px solid var(--border-mid); border-radius: 4px;
  padding: 0.62rem 2.5rem 0.62rem 0.85rem;
  font-family: var(--font-body); font-size: 0.88rem; color: var(--ink);
  background: var(--bg); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A887F' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center;
  transition: border-color 0.2s; cursor: pointer;
}
.form-select-lnj:focus { outline: none; border-color: var(--red); }

/* ============================================================
   PLACE CARDS — Where
   ============================================================ */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px,1fr));
  gap: 0.6rem; margin-bottom: 0.5rem;
}
.place-card {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 1rem 0.6rem 0.8rem; text-align: center; cursor: pointer;
  background: var(--bg); transition: all 0.18s;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  user-select: none;
}
.place-card:hover { border-color:var(--red-mid); background:var(--red-light); transform:translateY(-2px); }
.place-card.selected { border-color:var(--red); background:var(--red-light); box-shadow:0 0 0 2px var(--red-mid); }
.place-icon { font-size: 2rem; line-height: 1; }
.place-label { font-size: 0.73rem; font-weight: 500; color: var(--ink-mid); line-height: 1.3; }
.place-card.selected .place-label { color: var(--red-dark); font-weight: 600; }

/* Other item detail */
.other-item-detail {
  display: none;
  margin-top: 0.85rem;
  padding: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  animation: slideDown 0.3s ease;
}
.other-item-detail.show { display: block; }

/* Place grid — Prefecture未選択時はロック */
.place-grid.pref-locked .place-card {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}
/* Shinkansen — 選択prefecture に新幹線路線が存在しない場合 */
.place-card.shinkansen-unavailable {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}
.place-card.shinkansen-unavailable::after {
  content: 'Not available';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  font-size: 0.58rem;
  color: var(--ink-light);
  text-align: center;
}
.stay-btn.shinkansen-unavailable {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  background: var(--bg-3);
  border-color: var(--border);
  color: var(--ink-light);
  text-decoration: line-through;
}
.pref-lock-hint {
  font-size: 0.75rem; color: var(--ink-light);
  display: none; align-items: center; gap: 6px;
  margin-bottom: 0.75rem;
}
.pref-lock-hint.show { display: flex; }
.pref-lock-icon { font-size: 0.85rem; }

/* ============================================================
   TRANSIT DETAIL
   ============================================================ */
.transit-detail {
  margin-top: 0.75rem; padding: 1rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 3px solid var(--red); border-radius: 4px; display: none;
}
.transit-detail.show { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown {
  from { opacity:0; transform:translateY(-8px); }
  to   { opacity:1; transform:translateY(0); }
}
.transit-note {
  font-size: 0.75rem; color: var(--ink-light);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 6px;
}
.transit-note-tag {
  background: var(--amber-light); border: 1px solid rgba(232,156,47,0.3);
  color: var(--amber); font-size: 0.65rem; font-weight: 700;
  padding: 1px 7px; border-radius: 2px; letter-spacing: 0.04em;
}
.form-input-lnj {
  width: 100%; border: 1.5px solid var(--border-mid); border-radius: 4px;
  padding: 0.62rem 0.85rem; font-family: var(--font-body); font-size: 0.88rem;
  color: var(--ink); background: var(--bg); transition: border-color 0.2s;
}
.form-input-lnj:focus { outline: none; border-color: var(--red); }
.form-input-lnj::placeholder { color: var(--border-hi); }
.form-label-lnj {
  display: block; font-size: 0.78rem; font-weight: 500;
  color: var(--ink-mid); margin-bottom: 0.3rem;
}

/* ============================================================
   WHEN CARDS — 3択
   ============================================================ */
.when-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem;
}
@media (max-width: 480px) { .when-grid { grid-template-columns: 1fr; } }
.when-card {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 1rem 0.8rem; cursor: pointer; background: var(--bg);
  transition: all 0.18s; user-select: none;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center;
}
.when-card:hover { border-color:var(--red-mid); background:var(--red-light); transform:translateY(-2px); }
.when-card.selected { border-color:var(--red); background:var(--red-light); box-shadow:0 0 0 2px var(--red-mid); }
.when-icon { font-size: 1.6rem; line-height: 1; }
.when-label { font-size: 0.82rem; font-weight: 600; font-family:var(--font-display); color:var(--ink-mid); }
.when-desc  { font-size: 0.68rem; color: var(--ink-light); }
.when-card.selected .when-label { color: var(--red-dark); }

/* ============================================================
   DATETIME DETAIL — Today / Before Yesterday
   ============================================================ */
.datetime-detail {
  margin-top: 0.75rem; padding: 1rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-left: 3px solid var(--amber); border-radius: 4px; display: none;
}
.datetime-detail.show { display: block; animation: slideDown 0.3s ease; }
.datetime-label {
  font-size: 0.78rem; color: var(--ink-mid); font-weight: 500;
  margin-bottom: 0.7rem; display: flex; align-items: center; gap: 6px;
}
.datetime-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.datetime-field { display: flex; flex-direction: column; }

/* ============================================================
   SITUATION CARDS — Step 4
   ============================================================ */
.situation-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 0.65rem;
}
@media (max-width: 480px) { .situation-grid { grid-template-columns: 1fr; } }
.situation-card {
  border: 1.5px solid var(--border); border-radius: 6px;
  padding: 1.1rem 1rem; cursor: pointer; background: var(--bg);
  transition: all 0.18s; user-select: none;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.situation-card:hover { border-color:var(--red-mid); background:var(--red-light); transform:translateY(-2px); }
.situation-card.selected { border-color:var(--red); background:var(--red-light); box-shadow:0 0 0 2px var(--red-mid); }
.sit-icon { font-size: 1.6rem; flex-shrink:0; line-height:1.1; padding-top:2px; }
.sit-label {
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 700;
  color: var(--ink); line-height: 1.2; margin-bottom: 3px;
}
.sit-desc { font-size: 0.72rem; color: var(--ink-light); line-height: 1.45; }
.situation-card.selected .sit-label { color: var(--red-dark); }

/* ============================================================
   DONE INDICATOR
   ============================================================ */
.done-indicator {
  display: none; align-items: center; gap: 6px;
  font-size: 0.75rem; color: var(--green); font-weight: 500; margin-top: 0.65rem;
}
.done-indicator.show { display: flex; }
.done-dot { width:7px; height:7px; border-radius:50%; background:var(--green); flex-shrink:0; }

/* ============================================================
   SUBMIT
   ============================================================ */
.submit-wrap { margin-top: 1.5rem; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--border-mid); color: rgba(255,255,255,0.6);
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.05em; padding: 0.95rem; border-radius: 4px;
  border: none; cursor: not-allowed; transition: all 0.3s;
}
.btn-submit.ready {
  background: var(--red); color: var(--white);
  cursor: pointer; animation: btn-wiggle 4s ease-in-out infinite;
}
.btn-submit.ready:hover {
  background: var(--red-dark); animation-play-state: paused;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(217,79,61,0.25);
}
@keyframes btn-wiggle {
  0%   { transform:translateX(0) rotate(0); }
  5%   { transform:translateX(-4px) rotate(-1.5deg); }
  10%  { transform:translateX(4px) rotate(1.5deg); }
  15%  { transform:translateX(-3px) rotate(-1deg); }
  20%  { transform:translateX(3px) rotate(1deg); }
  25%  { transform:translateX(-1px) rotate(-0.5deg); }
  30%  { transform:translateX(0) rotate(0); }
  100% { transform:translateX(0) rotate(0); }
}
.submit-note {
  font-size: 0.73rem; color: var(--ink-light);
  text-align: center; margin-top: 0.6rem; line-height: 1.55;
}
.submit-note a { color:var(--red); text-decoration:none; }

/* ============================================================
   SIDEBAR SUMMARY
   ============================================================ */
.sidebar-summary { position: sticky; top: calc(56px + 53px + 20px); }
.summary-panel { border:1px solid var(--border); border-radius:6px; overflow:hidden; }
.summary-header {
  background: var(--ink); color: var(--white); padding: 0.65rem 1rem;
  font-family: var(--font-display); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.summary-body { padding: 1rem; }
.summary-row {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-light);
  min-width: 66px; font-family: var(--font-display); padding-top: 1px;
}
.summary-val { font-size: 0.82rem; color: var(--ink-mid); line-height: 1.45; }
.summary-val.filled { color: var(--ink); font-weight: 500; }
.summary-val.empty  { color: var(--border-hi); font-style: italic; }
.summary-plan-teaser {
  margin-top: 1rem; padding: 0.85rem;
  background: var(--red-light); border: 1px solid var(--red-mid); border-radius: 4px;
}
.teaser-label {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red-dark); font-weight: 700; margin-bottom: 0.4rem; font-family: var(--font-display);
}
.teaser-items { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.3rem; }
.teaser-items li {
  font-size: 0.75rem; color: var(--red-dark);
  display: flex; align-items: flex-start; gap: 6px; line-height: 1.4;
}
.teaser-items li::before { content:'→'; font-size:0.7rem; opacity:0.5; flex-shrink:0; }

/* ============================================================
   SITUATION DETAIL PANELS — Step 4
   ============================================================ */
.sit-detail {
  display: none;
  margin-top: 0.85rem;
  padding: 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  animation: slideDown 0.3s ease;
}
.sit-detail.show { display: block; }
.sit-detail-row { margin-bottom: 0.9rem; }
.sit-detail-row:last-child { margin-bottom: 0; }

.sit-pref-readonly {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-3);
  border: 1.5px solid var(--border-mid);
  border-radius: 4px;
  padding: 0.55rem 0.85rem;
}

.stay-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stay-btn {
  border: 1.5px solid var(--border-mid);
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-mid);
  background: var(--bg);
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
  white-space: nowrap;
}
.stay-btn:hover { border-color: var(--red-mid); background: var(--red-light); }
.stay-btn.selected { border-color: var(--red); background: var(--red-light); color: var(--red-dark); font-weight: 600; box-shadow: 0 0 0 2px var(--red-mid); }

/* ============================================================
   PROFILE FIELDS — Step 5
   ============================================================ */
.profile-fields-wrap {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.profile-fields-title {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 700; margin-bottom: 0.85rem;
  font-family: var(--font-display);
}
.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 480px) { .name-row { grid-template-columns: 1fr; } }
.gender-grid {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
/* ============================================================
   ACCOUNT BOX — Step 5
   ============================================================ */
.account-box {
  border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; background: var(--bg);
}
.account-box-header {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-light); font-family: var(--font-display);
}
.account-box-body { padding: 1.25rem; }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; border: 1.5px solid var(--border-mid); border-radius: 4px;
  padding: 0.72rem; background: var(--bg); font-size: 0.88rem; font-weight: 500;
  color: var(--ink); cursor: pointer; transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-body); text-decoration: none;
}
.google-btn:hover { background: var(--bg-2); border-color: var(--border-hi); color: var(--ink); }
.divider-or {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1rem 0; font-size: 0.75rem; color: var(--border-hi); font-weight: 500;
}
.divider-or::before, .divider-or::after { content:''; flex:1; height:1px; background:var(--border); }
.form-group { margin-bottom: 0.85rem; }
.pw-mismatch {
  display: none;
  font-size: 0.73rem;
  color: var(--red);
  margin-top: 0.3rem;
}
.pw-mismatch.show { display: block; }

.login-link {
  font-size: 0.78rem; color: var(--ink-light); text-align: center; margin-top: 0.85rem;
}
.login-link a { color: var(--red); text-decoration: none; font-weight: 500; }
.login-link a:hover { text-decoration: underline; }

/* ============================================================
   FREE PLAN LIMIT BANNER
   ============================================================ */
.limit-banner {
  background: var(--amber-light);
  border-bottom: 2px solid var(--amber);
  padding: 0.85rem 0;
}
.limit-banner-inner {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.88rem; color: var(--ink); line-height: 1.5;
}
.limit-banner-icon { font-size: 1.25rem; flex-shrink: 0; }
.limit-banner-text strong { color: var(--ink); }

/* ============================================================
   SUBCATEGORY GRID
   ============================================================ */
.subcat-wrap {
  display: none; margin-top: 0.85rem;
  padding: 1rem; background: var(--bg-2);
  border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: 4px; animation: slideDown 0.3s ease;
}
.subcat-wrap.show { display: block; }
.subcat-label {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light); font-weight: 500; margin-bottom: 0.6rem;
}
.subcat-grid {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.subcat-chip {
  border: 1.5px solid var(--border-mid); border-radius: 4px;
  padding: 0.42rem 0.85rem; font-size: 0.8rem; font-weight: 500;
  color: var(--ink-mid); background: var(--bg); cursor: pointer;
  transition: all 0.16s; user-select: none; white-space: nowrap;
}
.subcat-chip:hover  { border-color: var(--red-mid); background: var(--red-light); }
.subcat-chip.selected { border-color: var(--red); background: var(--red-light); color: var(--red-dark); font-weight: 600; box-shadow: 0 0 0 2px var(--red-mid); }

/* ============================================================
   DETAIL FIELDS PANEL
   ============================================================ */
.detail-fields-wrap {
  display: none; margin-top: 0.85rem;
  padding: 1.1rem; background: var(--bg-2);
  border: 1px solid var(--border); border-left: 3px solid var(--red);
  border-radius: 4px; animation: slideDown 0.3s ease;
}
.detail-fields-wrap.show { display: block; }
.detail-field-row { margin-bottom: 0.9rem; }
.detail-field-row:last-child { margin-bottom: 0; }
.detail-color-wrap { display: flex; align-items: center; gap: 0.6rem; }
.detail-color-swatch {
  width: 36px; height: 36px; border-radius: 4px; border: 1.5px solid var(--border-mid);
  cursor: pointer; flex-shrink: 0; padding: 0; background: #fff;
}
.detail-color-text {
  flex: 1;
}

/* ============================================================
   STEP NAV BUTTONS
   ============================================================ */
.step-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.step-nav-right { margin-left: auto; }
.btn-step-next {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--red); color: var(--white);
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.04em; padding: 0.72rem 1.5rem; border-radius: 4px;
  border: none; cursor: pointer; transition: all 0.2s;
}
.btn-step-next:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-step-next:disabled {
  background: var(--border-mid); color: rgba(255,255,255,0.5);
  cursor: not-allowed; transform: none;
}
.btn-step-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink-mid);
  font-family: var(--font-display); font-size: 0.9rem; font-weight: 600;
  padding: 0.72rem 1rem; border-radius: 4px;
  border: 1.5px solid var(--border-mid); cursor: pointer; transition: all 0.2s;
}
.btn-step-back:hover { border-color: var(--border-hi); color: var(--ink); }

/* ============================================================
   AGREEMENT CARD
   ============================================================ */
.agreement-card {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}
.agreement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 0.5rem;
}
.agreement-button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem;
  background: var(--bg);
  border: 2px solid var(--border-mid);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.agreement-button:hover {
  border-color: var(--red-mid);
  box-shadow: 0 2px 12px rgba(217,79,61,0.12);
}
.agreement-button.selected {
  background: var(--red-light);
  border-color: var(--red);
}
.agreement-button-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  background: var(--bg);
  transition: all 0.15s;
  flex-shrink: 0;
}
.agreement-button.selected .agreement-button-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.agreement-button-text {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-mid);
}
.agreement-button.selected .agreement-button-text {
  color: var(--red-dark);
}
.agreement-link {
  width: 42px;
  height: 100%;
  min-height: 62px;
  border: 2px solid var(--border-mid);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.agreement-link:hover {
  border-color: var(--red-mid);
  background: var(--red-light);
  color: var(--red-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .item-grid { grid-template-columns: repeat(3,1fr); }
  .place-grid { grid-template-columns: repeat(2,1fr); }
  .sidebar-summary { display: none; }
  .form-select-lnj { max-width: 100%; }
}
