:root {
  --bg-main: #F7F8F5;
  --primary: #4F9163;
  --primary-dark: #2F7348;
  --soft-mint: #AED9BB;
  --pale-teal: #DCEFED;
  --soft-teal: #5FA9A4;
  --light-navy: #5F7291;
  --deep-navy: #2D3A4F;
  --light-lemon: #EAEFA9;
  --soft-coral: #FCC1BF;
  --white: #FFFFFF;
  --light-gray: #E6EBEF;
  --text-main: #2D3A4F;
  --text-sub: #5F7291;
  --border: #E6EBEF;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

body {
  margin: 0;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #E2E8F0; /* Outer background to contrast the mobile frame */
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#root {
  width: 100%;
}

.app-frame {
  max-width: 430px; /* Standard mobile width */
  width: 100%;
  margin: 0 auto;
  background-color: var(--bg-main);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 10px 50px rgba(0,0,0,0.1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  transition: opacity 0.2s;
}

button:active {
  opacity: 0.7;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

h1, h2, h3 {
  font-weight: 700;
}

.text-center { text-align: center; }

/* ==============================================================
   CARBON PASSPORT DESIGN SYSTEM - CORE COMPONENTS
============================================================== */

/* --- TYPOGRAPHY --- */
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-title-1 { font-size: 1.5rem; font-weight: 800; color: var(--text-main); line-height: 1.3; }
.text-title-2 { font-size: 1.25rem; font-weight: 800; color: var(--text-main); line-height: 1.4; }
.text-title-3 { font-size: 1.125rem; font-weight: 800; color: var(--text-main); line-height: 1.4; }
.text-body-main { font-size: 1rem; font-weight: 600; color: var(--text-main); line-height: 1.5; }
.text-body-sub { font-size: 0.875rem; font-weight: 600; color: var(--text-sub); line-height: 1.5; }
.text-caption { font-size: 0.75rem; font-weight: 600; color: var(--text-sub); line-height: 1.4; }

/* --- LAYOUT UTILITIES --- */
.screen-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  padding-bottom: 2rem;
}

/* --- CARDS --- */
.card-base {
  background-color: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-primary {
  background-color: var(--primary);
  color: var(--white);
  border: none;
}

.card-dark {
  background-color: var(--deep-navy);
  color: var(--white);
  border: none;
}

/* --- BADGES --- */
.badge-base {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-primary { background-color: var(--primary); color: var(--white); }
.badge-mint { background-color: var(--soft-mint); color: var(--primary-dark); }
.badge-lemon { background-color: var(--light-lemon); color: var(--primary-dark); }
.badge-teal { background-color: var(--pale-teal); color: var(--soft-teal); }
.badge-coral { background-color: var(--soft-coral); color: var(--deep-navy); }

/* --- BUTTONS --- */
.btn-primary {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 1rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--text-sub);
  padding: 1rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  width: 100%;
  cursor: pointer;
}


.start-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

  color: white;
}

.brand-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.02em;
}

.hero-card {
  background-color: var(--primary);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  color: white;
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 0.9375rem;
  line-height: 1.5;
  opacity: 0.9;
  white-space: pre-line;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-primary {
  background-color: var(--light-lemon);
  color: var(--primary-dark);
  padding: 1.125rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--text-main);
  padding: 1.125rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
}

.recent-trips-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 0.875rem;
  color: var(--text-sub);
  font-weight: 600;
}

.trip-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  position: relative;
}

.trip-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.trip-info {
  flex: 1;
}

.trip-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.trip-meta {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.status-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-ongoing {
  background-color: var(--soft-mint);
  color: var(--primary-dark);
}

.status-completed {
  background-color: #F3F4F6;
  color: #9CA3AF;
  border: 1px solid #E5E7EB;
}

.bottom-tab-bar {
  position: sticky;
  bottom: 0;
  width: 100%;
}

.primary-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.secondary-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.current-trip-info {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  animation: slideUp 0.5s ease-out;
}

.current-trip-info p {
  margin: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--primary-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.create-trip-wrapper {
  background-color: #F7F8F5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.create-trip-topbar {
  background-color: #FFFFFF;
  border-bottom: 0.5px solid #E6EBEF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.ct-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #E6EBEF;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border: none;
}

.ct-step-badge {
  background-color: #DCEFED;
  color: #5FA9A4;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.ct-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding-bottom: 80px; /* Space for fixed bottom CTA */
}

.ct-header-card {
  background-color: #4F9163;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ct-header-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.ct-header-title {
  font-size: 18px;
  color: #FFFFFF;
  font-weight: 700;
}

.ct-progress-row {
  display: flex;
  gap: 6px;
}

.ct-progress-bar {
  flex: 1;
  height: 4px;
  background-color: #E6EBEF;
  border-radius: 2px;
}

.ct-progress-bar.active {
  background-color: #4F9163;
}

.ct-form-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ct-input-box {
  background-color: #FFFFFF;
  border: 0.5px solid #E6EBEF;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-input-label {
  font-size: 9px;
  color: #8a9aaa;
  font-weight: 600;
}

.ct-input-field {
  font-size: 13px;
  font-weight: 700;
  color: #2D3A4F;
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
}

.ct-input-field::placeholder {
  color: #CBD5E1;
  font-weight: 500;
}

.ct-input-field.accent {
  color: #4F9163;
}

.ct-form-row {
  display: flex;
  gap: 8px;
}

.ct-preview-box {
  background-color: #AED9BB;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-preview-title {
  font-size: 10px;
  color: #2F7348;
  font-weight: 700;
}

.ct-day-pill-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ct-day-pill {
  background-color: #FFFFFF;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #2F7348;
  font-weight: 700;
}

.ct-day-pill-more {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: #2F7348;
  font-weight: 700;
}

.ct-preview-empty {
  font-size: 10px;
  color: #2F7348;
  font-weight: 600;
}

.ct-bottom-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-top: 0.5px solid #E6EBEF;
  padding: 12px 16px;
  box-sizing: border-box;
}

.ct-btn-next {
  width: 100%;
  background-color: #2F7348;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px;
  border: none;
  cursor: pointer;
}
.dashboard-screen {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  padding-bottom: 2rem;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step-badge {
  background-color: var(--pale-teal);
  color: var(--soft-teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.complete-badge {
  background-color: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
}

.screen-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-align: center;
}

.subheader-card {
  background-color: var(--primary-dark);
  color: white;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-soft);
}

.subheader-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.subheader-desc {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hero-score-card {
  background-color: var(--deep-navy);
  color: white;
  border-radius: 24px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.hero-title {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 700;
}

.hero-score {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-sub {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pale-teal);
}

.lemon-badge {
  background-color: var(--light-lemon);
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 800;
  margin-top: 0.5rem;
}

.hero-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  line-height: 1.4;
}

.sub-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sub-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-soft);
}

.sub-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-sub);
}

.sub-card-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.sub-card-desc {
  font-size: 0.75rem;
  color: var(--text-main);
  font-weight: 600;
}

.daily-chips-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.daily-chips-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.daily-chip {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.chip-day {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-sub);
}

.chip-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.chip-status {
  font-size: 0.625rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}

.chip-status.success {
  background-color: var(--soft-mint);
  color: var(--primary-dark);
}

.chip-status.fail {
  background-color: var(--soft-coral);
  color: var(--deep-navy);
}

.jebi-card {
  background-color: var(--primary);
  color: white;
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.jebi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.75rem;
}

.jebi-row-label {
  font-weight: 600;
}

.jebi-row-val {
  font-weight: 800;
}

.jebi-final-box {
  background-color: rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.jebi-final-title {
  font-size: 0.8125rem;
  opacity: 0.8;
}

.jebi-final-val {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--light-lemon);
}

.jebi-note {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
  line-height: 1.4;
}

.retro-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.retro-q {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  gap: 0.5rem;
}

.retro-num {
  color: var(--primary);
  font-weight: 800;
}

.retro-btn {
  background-color: var(--pale-teal);
  color: var(--primary-dark);
  padding: 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 800;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--border);
  color: var(--text-sub);
  padding: 1rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

/* ─── Dashboard Screen Layout ─── */
.dashboard-screen {
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding-bottom: 2rem;
}

/* ─── Section Label with Line ─── */
.db-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.db-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a9aaa;
}

.db-section-label::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background-color: #E6EBEF;
}

/* ─── Day Chips ─── */
.db-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.db-day-chip {
  flex: 1;
  min-width: 52px;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.db-chip-goal {
  background-color: #AED9BB;
  color: #2F7348;
}

.db-chip-over {
  background-color: #FCC1BF;
  color: #8B3A38;
}

.db-chip-unrecorded {
  background-color: #E6EBEF;
  color: #8a9aaa;
}

.db-chip-day {
  font-size: 9px;
  font-weight: 700;
}

.db-chip-score {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.db-chip-badge {
  font-size: 8px;
  font-weight: 600;
  min-height: 10px;
}

/* ─── Jebi Pay Card ─── */
.db-jebi-card {
  background-color: #4F9163;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.db-jebi-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.db-jebi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
}

.db-jebi-row-last {
  border-bottom: none;
}

.db-jebi-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

.db-jebi-val {
  font-size: 11px;
  font-weight: 700;
  color: #EAEFA9;
}

.db-jebi-final {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.db-jebi-final-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
}

.db-jebi-final-main {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.5;
}

.db-jebi-final-sub {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

/* sub-card-label alias for dashboard */
.sub-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-sub);
  line-height: 1.4;
}

.travel-input-screen {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  padding-bottom: 2rem;
}

.step-badge {
  background-color: var(--pale-teal);
  color: var(--soft-teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0 auto;
}

.screen-title-group {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.screen-subtitle {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
  white-space: pre-line;
}

.disclaimer {
  font-size: 0.75rem;
  color: var(--light-navy);
  background-color: #F1F5F9;
  padding: 0.75rem;
  border-radius: 12px;
  line-height: 1.4;
}

/* Segment Card Styles */
.segment-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.segment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.segment-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.delete-btn {
  color: var(--soft-coral);
  font-size: 1.25rem;
}

.route-inputs {
  display: flex;
  gap: 1rem;
}

.route-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.route-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sub);
}

.route-field input {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.transport-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transport-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.transport-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.transport-chip.active {
  background-color: var(--primary);
  color: white;
}

.duration-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.duration-select {
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--bg-main);
  font-size: 0.9375rem;
  font-weight: 600;
  outline: none;
}

.round-trip-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.round-trip-badge {
  background-color: var(--light-lemon);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 800;
}

.add-segment-btn {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 1rem;
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
}

/* Results Styles */
.results-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.total-score-card {
  background-color: var(--deep-navy);
  color: white;
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
}

.total-score-value {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0.5rem 0;
}

.segment-result-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-label {
  font-size: 0.8125rem;
  color: var(--text-sub);
}

.result-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.score-diff {
  font-size: 0.75rem;
  font-weight: 700;
}

.score-plus { color: var(--soft-coral); }
.score-minus { color: var(--primary); }

/* Mission Styles */
.mission-card {
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid transparent;
}

.mission-achieved {
  background-color: rgba(79, 145, 99, 0.1);
  border-color: var(--soft-mint);
}

.mission-failed {
  background-color: rgba(252, 193, 191, 0.1);
  border-color: var(--soft-coral);
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mission-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-achieved {
  background-color: var(--primary);
  color: white;
}

.badge-failed {
  background-color: var(--soft-coral);
  color: white;
}

.mission-desc {
  font-size: 0.875rem;
  line-height: 1.5;
}

.mission-footer {
  font-size: 0.75rem;
  opacity: 0.7;
}

.error-msg {
  color: var(--soft-coral);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}
.daily-list-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 1.5rem;
  background-color: var(--bg-color);
  padding-bottom: 6rem;
}

.day-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.day-list-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFFFFF;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.day-list-card:active {
  transform: scale(0.98);
}

.day-list-card.completed {
  border: 1px solid var(--primary);
  background-color: rgba(79, 145, 99, 0.03);
}

.day-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.day-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

.day-date {
  font-size: 0.875rem;
  color: var(--text-sub);
}

.day-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.status-icon.pending {
  border: 2px solid var(--light-gray);
  background-color: transparent;
}

.status-icon.completed {
  background-color: var(--primary);
  border: none;
}

.status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-sub);
}

.status-text.completed {
  color: var(--primary);
}

.bottom-action-container {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 2rem;
}

.action-notice {
  font-size: 0.875rem;
  color: var(--soft-coral);
  text-align: center;
  font-weight: 600;
}

.submit-btn-full.disabled {
  background-color: var(--light-gray);
  color: var(--text-sub);
  cursor: not-allowed;
}
.daily-record-screen {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  padding-bottom: 2rem;
}

.step-badge {
  background-color: var(--pale-teal);
  color: var(--soft-teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0 auto;
}

.screen-title-group {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.day-badge {
  background-color: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
}

.screen-subtitle {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
  white-space: pre-line;
}

.section-card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-main);
}

.section-guide {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.transport-card {
  background-color: var(--bg-main);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.transport-card.eco {
  background-color: var(--pale-teal);
  border-color: rgba(95, 169, 164, 0.3);
}

.transport-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.transport-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.delete-btn {
  color: var(--soft-coral);
  font-size: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.input-row {
  display: flex;
  gap: 0.5rem;
}

.dropdown-select {
  flex: 1;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background-color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  color: var(--text-main);
}

.add-transport-btn {
  border: 2px dashed var(--soft-teal);
  border-radius: 16px;
  padding: 0.875rem;
  color: var(--soft-teal);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  background: none;
  cursor: pointer;
}

.meal-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.meal-label {
  width: 40px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-sub);
}

.eco-icon {
  width: 24px;
  font-size: 1.25rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.checkbox-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.checkbox-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tag-mission {
  background-color: var(--primary);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
}

.tag-score {
  background-color: var(--soft-coral);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 700;
}

.summary-card {
  background-color: var(--deep-navy);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: white;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.summary-item-label {
  color: rgba(255,255,255,0.7);
}

.summary-item-val {
  font-weight: 700;
}

.total-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-score-label {
  font-size: 1.125rem;
  font-weight: 800;
}

.total-score-val {
  font-size: 2.5rem;
  font-weight: 800;
}

.status-badge {
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 800;
  text-align: center;
}

.status-achieved {
  background-color: var(--primary);
  color: white;
}

.status-failed {
  background-color: var(--soft-coral);
  color: var(--deep-navy);
}
.mission-check-screen {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  padding-bottom: 2rem;
}

.step-badge {
  background-color: var(--pale-teal);
  color: var(--soft-teal);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0 auto;
}

.screen-title-group {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.screen-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.screen-subtitle {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.5;
  white-space: pre-line;
}

.progress-card {
  background-color: var(--white);
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.progress-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-sub);
}

.progress-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.progress-number span {
  font-size: 1.5rem;
  color: var(--text-sub);
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background-color: var(--bg-main);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 6px;
  transition: width 0.5s ease-out;
}

.progress-desc {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.mission-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mission-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.mission-section-guide {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.mission-list {
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.mission-item:last-child {
  border-bottom: none;
}

.mission-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-icon.achieved {
  background-color: var(--primary);
  color: white;
}

.mission-icon.failed {
  background-color: transparent;
  border: 2px solid var(--soft-coral);
}

.mission-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.mission-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mission-type-tag {
  font-size: 0.625rem;
  background-color: var(--bg-main);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-sub);
}

.mission-desc {
  font-size: 0.75rem;
  color: var(--text-sub);
}

.reward-card {
  background-color: var(--pale-teal);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reward-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reward-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.reward-badge {
  background-color: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.reward-desc {
  font-size: 0.8125rem;
  color: var(--primary-dark);
  line-height: 1.5;
  opacity: 0.9;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-align: center;
  cursor: pointer;
  padding: 0.5rem;
  margin-top: -0.5rem;
}
