/* ============================================================
   mogu mogu Dog — AI Recommend Page Stylesheet v2.0
   完全リニューアル版：モダン・アニメーション強化
   ============================================================ */

:root {
  --teal:        #40BFC0;
  --teal-dark:   #2a9d9e;
  --teal-deeper: #1a7a7b;
  --teal-light:  #e6f9f9;
  --teal-mid:    #b3eaea;
  --teal-glow:   rgba(64,191,192,0.35);
  --orange:      #FF7B54;
  --orange-light:#fff1ec;
  --green:       #22c55e;
  --green-light: #dcfce7;
  --purple:      #a78bfa;
  --yellow:      #f59e0b;
  --red:         #ef4444;
  --bg:          #f0fafa;
  --bg2:         #e8f5f5;
  --card:        #ffffff;
  --border:      #d4eaea;
  --border-mid:  #c0dfdf;
  --text:        #0d2525;
  --text-mid:    #3a6060;
  --text-light:  #7aaaaa;
  --radius:      20px;
  --radius-sm:   12px;
  --radius-xs:   8px;
  --shadow:      0 2px 20px rgba(64,191,192,0.10);
  --shadow-md:   0 8px 32px rgba(64,191,192,0.18);
  --shadow-lg:   0 16px 56px rgba(64,191,192,0.22);
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */
.rec-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 12px rgba(64,191,192,0.08);
}

.rec-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rec-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Zen Maru Gothic', sans-serif;
  transition: opacity var(--transition);
}
.rec-logo:hover { opacity: 0.8; }
.rec-logo img { height: 34px; border-radius: 8px; }

.rec-header-right { display: flex; align-items: center; gap: 10px; }

.rec-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 24px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  white-space: nowrap;
}
.rec-header-link:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
  border-color: var(--teal-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.rec-header-link.accent {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-color: transparent;
}
.rec-header-link.accent:hover {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-deeper));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--teal-glow);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.rec-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d3b3c 0%, #145658 40%, #1a7a7b 70%, #40BFC0 100%);
}

.rec-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(64,191,192,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(255,123,84,0.15) 0%, transparent 60%);
}

.rec-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 80px 60px 80px 80px;
  animation: heroSlideIn 0.8s ease-out;
}

@keyframes heroSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.rec-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(64,191,192,0.2);
  border: 1.5px solid rgba(64,191,192,0.5);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #a0efef;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
  animation: fadeInUp 0.6s 0.1s both;
}

.rec-hero-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.2s both;
}

.rec-hero-title em {
  font-style: normal;
  background: linear-gradient(90deg, #80e8e8, #ffdf80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rec-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s 0.3s both;
}

.rec-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  gap: 8px;
  animation: fadeInUp 0.6s 0.4s both;
}

.rec-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  min-width: 90px;
}

.rec-stat span {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  font-family: 'Zen Maru Gothic', sans-serif;
  line-height: 1;
  margin-bottom: 2px;
}

.rec-stat small {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

/* Hero decorative elements */
.rec-hero-deco {
  position: absolute;
  right: 0;
  top: 0;
  width: 40%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  animation: float linear infinite;
}

.hero-bubble.b1 { top: 15%; right: 22%; font-size: 44px; width: 88px; height: 88px; animation-duration: 6s; animation-delay: 0s; }
.hero-bubble.b2 { top: 55%; right: 40%; font-size: 30px; width: 60px; height: 60px; animation-duration: 8s; animation-delay: 1s; }
.hero-bubble.b3 { top: 30%; right: 8%; font-size: 34px; width: 68px; height: 68px; animation-duration: 7s; animation-delay: 2s; }
.hero-bubble.b4 { top: 65%; right: 18%; font-size: 28px; width: 56px; height: 56px; animation-duration: 9s; animation-delay: 0.5s; }
.hero-bubble.b5 { top: 75%; right: 50%; font-size: 32px; width: 64px; height: 64px; animation-duration: 7.5s; animation-delay: 1.5s; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-14px) rotate(4deg); }
  75%      { transform: translateY(10px) rotate(-3deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FORM SECTION
   ============================================================ */
.rec-form-section {
  padding: 56px 16px 80px;
}

.rec-container {
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-wrap {
  margin-bottom: 44px;
  position: relative;
}

.progress-track {
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  z-index: 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px var(--teal-glow);
}

.progress-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.progress-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dot-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-light);
  transition: all 0.35s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.progress-dot.active .dot-circle {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 4px 16px var(--teal-glow);
  transform: scale(1.1);
}

.progress-dot.done .dot-circle {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.progress-dot.done .dot-circle::after { content: '✓'; font-size: 18px; }
.progress-dot.done .dot-circle i { display: none; }

.dot-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  white-space: nowrap;
  transition: color 0.3s;
}

.progress-dot.active .dot-label,
.progress-dot.done  .dot-label { color: var(--teal-dark); }

/* ============================================================
   STEP CARDS
   ============================================================ */
.rec-step {
  display: none;
  animation: stepFadeIn 0.4s ease-out;
}
.rec-step.active { display: block; }

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-header {
  text-align: center;
  margin-bottom: 36px;
}

.step-num {
  display: inline-block;
  padding: 4px 16px;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.step-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-mid);
}

.step-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-row {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row:focus-within {
  border-color: var(--teal-mid);
  box-shadow: 0 0 0 3px rgba(64,191,192,0.1);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  display: inline-block;
  padding: 1px 8px;
  background: #fff0f0;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid #fca5a5;
}

.rec-input, .rec-select, .rec-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: #fff;
  transition: all var(--transition);
  outline: none;
}
.rec-input:focus, .rec-select:focus, .rec-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(64,191,192,0.15);
}
.rec-input::placeholder, .rec-textarea::placeholder { color: var(--text-light); }
.rec-textarea { resize: vertical; line-height: 1.6; }

.form-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   CARD RADIO (年齢グループ)
   ============================================================ */
.card-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card-radio input { position: absolute; opacity: 0; width: 0; height: 0; }

.card-radio-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.card-radio-inner:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-radio input:checked + .card-radio-inner {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(64,191,192,0.15), var(--shadow-md);
}

.cr-icon { font-size: 32px; line-height: 1; }
.cr-label { font-size: 14px; font-weight: 700; color: var(--text); }
.cr-sub { font-size: 11px; color: var(--text-mid); }

/* ============================================================
   WEIGHT SLIDER
   ============================================================ */
.weight-input-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--teal) var(--pct,33%), var(--border) var(--pct,33%));
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px var(--teal-glow);
  cursor: pointer;
  transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.weight-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-width: 90px;
}
.weight-display input {
  width: 54px;
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-dark);
  font-family: 'Zen Maru Gothic', sans-serif;
  outline: none;
  text-align: right;
  padding: 0;
}
.weight-display span { font-size: 14px; font-weight: 600; color: var(--teal-dark); }

.weight-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.wc-item {
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-light);
  transition: all 0.2s;
  white-space: nowrap;
}
.wc-item.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 2px 8px var(--teal-glow);
}

/* ============================================================
   TOGGLE RADIO
   ============================================================ */
.toggle-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.toggle-radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-radio span {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 24px;
  border: 2px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.toggle-radio span:hover { border-color: var(--teal-mid); background: var(--teal-light); }
.toggle-radio input:checked + span {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 3px 12px var(--teal-glow);
}

/* ============================================================
   ACTIVITY CARDS
   ============================================================ */
.activity-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.activity-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.ac-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.ac-inner:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.activity-card input:checked + .ac-inner {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(64,191,192,0.15), var(--shadow-md);
}

.ac-icon { font-size: 28px; }
.ac-label { font-size: 14px; font-weight: 700; color: var(--text); }
.ac-desc { font-size: 11px; color: var(--text-mid); }
.ac-factor {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 2px;
}
.activity-card input:checked + .ac-inner .ac-factor {
  background: rgba(64,191,192,0.25);
}

/* ============================================================
   GOAL CARDS
   ============================================================ */
.goal-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.goal-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.gc-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.gc-inner:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.goal-card input:checked + .gc-inner {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(64,191,192,0.15), var(--shadow-md);
}
.gc-icon { font-size: 28px; }
.gc-label { font-size: 14px; font-weight: 700; color: var(--text); }
.gc-desc { font-size: 11px; color: var(--text-mid); }

/* ============================================================
   HEALTH CHECK GRID
   ============================================================ */
.health-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.health-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.hc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--transition);
}
.hc-inner:hover {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  transform: translateX(2px);
  box-shadow: var(--shadow);
}
.health-check input:checked + .hc-inner {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(64,191,192,0.12);
}

.hc-icon { font-size: 24px; flex-shrink: 0; }
.hc-text { flex: 1; }
.hc-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.hc-desc { font-size: 11px; color: var(--text-mid); line-height: 1.4; }

/* ============================================================
   ALLERGY CHECKS
   ============================================================ */
.allergy-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.allergy-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.allergy-check span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--transition);
}
.allergy-check span:hover {
  border-color: var(--red);
  background: #fff5f5;
  color: var(--red);
}
.allergy-check input:checked + span {
  background: #fff0f0;
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 2px rgba(239,68,68,0.12);
}

/* ============================================================
   STEP NAVIGATION BUTTONS
   ============================================================ */
.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  gap: 12px;
}

.btn-next, .btn-prev, .btn-analyze {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-next {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 4px 16px var(--teal-glow);
  margin-left: auto;
}
.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

.btn-prev {
  background: #fff;
  color: var(--text-mid);
  border: 2px solid var(--border);
}
.btn-prev:hover {
  background: var(--bg);
  border-color: var(--teal-mid);
  color: var(--teal-dark);
}

.btn-analyze {
  background: linear-gradient(135deg, #FF7B54, #e0603b);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255,123,84,0.4);
  margin-left: auto;
  font-size: 16px;
  padding: 16px 36px;
}
.btn-analyze:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(255,123,84,0.5);
}

/* ============================================================
   LOADING
   ============================================================ */
#step-loading {
  text-align: center;
  padding: 60px 20px;
}

.loading-area {
  max-width: 420px;
  margin: 0 auto;
}

.loading-dog {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 16px;
  animation: dogBounce 1s ease-in-out infinite;
}

@keyframes dogBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.05); }
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--teal-mid);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1.5px solid var(--border);
}

.ls-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  padding: 6px 0;
  transition: all 0.3s;
}
.ls-item.active { color: var(--teal-dark); }
.ls-item.active i { color: var(--teal); }
.ls-item.done { color: var(--green); }

/* ============================================================
   RESULT PAGE
   ============================================================ */
.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.result-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-light);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid #bbf7d0;
}

.result-header-text h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(18px, 4vw, 26px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.result-share-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-restart, .btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn-restart {
  background: #fff;
  color: var(--text-mid);
  border: 2px solid var(--border);
}
.btn-restart:hover {
  background: var(--bg);
  border-color: var(--teal-mid);
  color: var(--teal-dark);
}

.btn-apply {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  box-shadow: 0 4px 14px var(--teal-glow);
}
.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

/* ============================================================
   RESULT LAYOUT
   ============================================================ */
.result-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.result-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  transition: box-shadow var(--transition);
  animation: cardSlideIn 0.4s ease-out;
}
.result-card:hover { box-shadow: var(--shadow-md); }

@keyframes cardSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 10px;
}

/* ============================================================
   HEALTH SCORE
   ============================================================ */
.score-card { text-align: center; }

.health-score-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.score-svg {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 4px 14px rgba(64,191,192,0.2));
}

#health-score-circle {
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4,0,0.2,1);
}

.score-center {
  position: absolute;
  text-align: center;
}

.score-num {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 2px;
}

.score-label {
  font-size: 13px;
  font-weight: 700;
  transition: color 0.5s;
}

/* ============================================================
   NUTRITION GRID
   ============================================================ */
.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.nutr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1.5px solid var(--border);
  gap: 4px;
  transition: all var(--transition);
}
.nutr-item:hover { border-color: var(--teal-mid); background: var(--teal-light); }

.nutr-item.highlight {
  background: var(--teal-light);
  border-color: var(--teal-mid);
}

.nutr-icon { font-size: 22px; line-height: 1; }
.nutr-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--teal-dark);
  font-family: 'Zen Maru Gothic', sans-serif;
  white-space: nowrap;
}
.nutr-label { font-size: 11px; color: var(--text-mid); text-align: center; }

/* ============================================================
   AI COMMENT
   ============================================================ */
.ai-comment-card { border-left: 4px solid var(--teal); }

.ai-badge {
  display: inline-block;
  padding: 2px 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  margin-right: 4px;
  vertical-align: middle;
}

.ai-comment-body {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}
.ai-comment-body p { margin-bottom: 10px; }
.ai-comment-body p:last-child { margin-bottom: 0; }
.ai-comment-body strong { color: var(--teal-dark); font-weight: 700; }

/* ============================================================
   PROTEIN RANKING
   ============================================================ */
.protein-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  margin-bottom: 10px;
  position: relative;
  transition: all var(--transition);
}
.protein-card:hover {
  border-color: var(--teal-mid);
  box-shadow: var(--shadow);
  transform: translateX(3px);
}
.protein-card.best {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 4px 16px rgba(64,191,192,0.15);
}

.pc-rank { font-size: 24px; line-height: 1; flex-shrink: 0; }
.pc-emoji { font-size: 32px; line-height: 1; flex-shrink: 0; }

.pc-info { flex: 1; }
.pc-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.pc-origin { font-size: 11px; color: var(--text-light); font-weight: 400; margin-left: 6px; }

.pc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.pc-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--teal-light);
  color: var(--teal-deeper);
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--teal-mid);
}
.protein-card.best .pc-tag { background: rgba(64,191,192,0.2); }

.pc-desc { font-size: 12px; color: var(--text-mid); line-height: 1.5; margin-bottom: 8px; }

.pc-score-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 7px;
}
.pc-score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--teal-dark));
  border-radius: 3px;
  transition: width 1s ease-out;
  box-shadow: 0 0 6px var(--teal-glow);
}

.pc-nutrition {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-nutrition span {
  font-size: 11px;
  color: var(--text-mid);
  background: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.pc-best-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--orange), #e0603b);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255,123,84,0.4);
}

/* ============================================================
   VEGETABLE CHIPS
   ============================================================ */
.veg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.veg-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  text-align: center;
  transition: all var(--transition);
}
.veg-chip:hover { border-color: var(--green); background: var(--green-light); transform: translateY(-2px); }

.veg-emoji { font-size: 28px; }
.veg-name { font-size: 13px; font-weight: 700; color: var(--text); }
.veg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.veg-tags span {
  font-size: 10px;
  padding: 1px 7px;
  background: var(--green-light);
  color: #166534;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

/* ============================================================
   SUPPLEMENT CARDS
   ============================================================ */
.supp-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  margin-bottom: 8px;
  transition: all var(--transition);
}
.supp-card:hover { border-color: var(--purple); background: #f5f3ff; transform: translateX(3px); }

.supp-emoji { font-size: 24px; flex-shrink: 0; }
.supp-info { flex: 1; }
.supp-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.supp-desc { font-size: 11px; color: var(--text-mid); }
.supp-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #f5f3ff;
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  border-radius: 8px;
  border: 1px solid #ddd6fe;
  flex-shrink: 0;
}

/* ============================================================
   PLAN RECOMMENDATION CARD
   ============================================================ */
.plan-rec-card {
  border-radius: var(--radius);
  border: 2px solid;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.plan-rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.plan-rec-header {
  padding: 20px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-rec-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,255,255,0.25);
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  width: fit-content;
}

.plan-rec-name {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.plan-rec-price {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.9;
}

.plan-rec-body { padding: 20px 22px; background: var(--card); }
.plan-rec-reason { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; }

.plan-rec-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.plan-rec-features li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-order-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all var(--transition);
  font-family: 'Noto Sans JP', sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-order-now:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.2); }

/* ============================================================
   WARNINGS
   ============================================================ */
.warnings-wrap { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }

.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid;
  font-size: 13px;
  line-height: 1.5;
}

/* ============================================================
   TIPS
   ============================================================ */
.tips-card {}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}
.tip-item:last-child { border-bottom: none; }

.tip-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.tip-text { flex: 1; }

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.result-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 6px 22px var(--teal-glow);
  transition: all var(--transition);
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-cta-main:hover { transform: translateY(-3px); box-shadow: 0 12px 32px var(--teal-glow); filter: brightness(1.05); }

.btn-cta-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  border: 2px solid var(--teal-mid);
  transition: all var(--transition);
  font-family: 'Noto Sans JP', sans-serif;
}
.btn-cta-sub:hover { background: var(--teal-light); transform: translateY(-1px); box-shadow: var(--shadow); }

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-it-works {
  background: linear-gradient(135deg, #0d3b3c, #1a5e5f);
  padding: 72px 20px;
}

.hiw-header {
  text-align: center;
  margin-bottom: 44px;
}
.hiw-header h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.hiw-header p { font-size: 14px; color: rgba(255,255,255,0.7); }

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.hiw-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.hiw-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
  border-color: rgba(64,191,192,0.5);
  box-shadow: 0 8px 28px rgba(64,191,192,0.15);
}

.hiw-icon { font-size: 36px; margin-bottom: 12px; }
.hiw-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.hiw-card p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* ============================================================
   TESTIMONIALS (NEW)
   ============================================================ */
.rec-testimonials {
  background: #fff;
  padding: 64px 20px;
  border-top: 1.5px solid var(--border);
}

.rec-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.rec-section-header h2 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.rec-section-header p { font-size: 14px; color: var(--text-mid); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 22px;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.tc-stars { color: var(--yellow); font-size: 14px; margin-bottom: 10px; }
.tc-text { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.tc-user {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--teal-mid);
}
.tc-info { flex: 1; }
.tc-name { font-size: 13px; font-weight: 800; color: var(--text); }
.tc-dog { font-size: 11px; color: var(--text-light); }
.tc-plan {
  display: inline-block;
  padding: 2px 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--teal-mid);
  margin-top: 3px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.rec-footer {
  background: #0d2525;
  padding: 36px 20px;
  text-align: center;
}

.rec-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.rec-footer-logo img { height: 28px; border-radius: 6px; opacity: 0.9; }

.rec-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.rec-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.rec-footer-links a:hover { color: var(--teal); }

.rec-footer-note { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.6; max-width: 600px; margin: 0 auto; }

/* ============================================================
   TOAST
   ============================================================ */
#rec-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-toast {
  padding: 12px 20px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  animation: toastIn 0.3s ease-out;
  min-width: 240px;
  max-width: 360px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.rec-toast.success { background: var(--green-light); color: #166534; border: 1px solid #bbf7d0; }
.rec-toast.error   { background: #fff0f0; color: var(--red); border: 1px solid #fca5a5; }
.rec-toast.warning { background: #fffbeb; color: #854d0e; border: 1px solid #fde68a; }
.rec-toast.info    { background: var(--teal-light); color: var(--teal-deeper); border: 1px solid var(--teal-mid); }

/* ============================================================
   BREED SELECT ENHANCEMENT
   ============================================================ */
.breed-search-wrap {
  position: relative;
  margin-bottom: 10px;
}
.breed-search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  outline: none;
  transition: all var(--transition);
}
.breed-search-input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(64,191,192,0.15); }
.breed-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 14px;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .rec-hero-inner { padding: 56px 24px 200px; }
  .rec-hero { min-height: 560px; }
  .rec-hero-deco { width: 100%; height: 190px; top: auto; bottom: 0; }
  .hero-bubble.b1 { top: 15%; right: 15%; }
  .hero-bubble.b2 { top: 50%; right: 55%; }
  .hero-bubble.b3 { top: 5%; right: 55%; }
  .hero-bubble.b4 { top: 60%; right: 30%; }
  .hero-bubble.b5 { top: 40%; right: 5%; }

  .result-layout { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .card-radio-group { grid-template-columns: repeat(3, 1fr); }
  .activity-cards, .goal-cards { grid-template-columns: repeat(3, 1fr); }
  .health-check-grid { grid-template-columns: 1fr; }
  .result-header { flex-direction: column; }
  .result-share-btns { width: 100%; }
  .btn-restart, .btn-apply { flex: 1; justify-content: center; }
  .rec-header-inner { padding: 0 16px; }
  .rec-hero-inner { padding: 48px 20px 180px; }

  .progress-track { left: 20px; right: 20px; }
  .dot-label { display: none; }
  .dot-circle { width: 36px; height: 36px; font-size: 14px; }
}

@media (max-width: 480px) {
  .card-radio-group { grid-template-columns: 1fr; }
  .activity-cards, .goal-cards { grid-template-columns: 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
  .nutrition-grid { grid-template-columns: repeat(2, 1fr); }
  .veg-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-analyze { padding: 14px 24px; font-size: 15px; }
  .rec-hero-stats { display: none; }
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SAVE RESULT SECTION (new)
   ============================================================ */
.save-result-section {
  background: linear-gradient(135deg, var(--teal-light), #fff);
  border: 1.5px solid var(--teal-mid);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  text-align: center;
}

.save-result-section h3 {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.save-result-section p {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 16px;
}

.save-result-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all var(--transition);
  box-shadow: 0 4px 14px var(--teal-glow);
}
.save-result-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--teal-glow); }

/* ============================================================
   RESULT SUMMARY (share/print)
   ============================================================ */
.result-summary-bar {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.rsb-info { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rsb-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid var(--teal-mid);
}

.rsb-actions { display: flex; gap: 8px; }
.rsb-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-mid);
  font-family: 'Noto Sans JP', sans-serif;
  transition: all var(--transition);
}
.rsb-btn:hover { border-color: var(--teal-mid); background: var(--teal-light); color: var(--teal-dark); }

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
