/* ============================================
   SOULIGN WEAVE — Screen Layouts
   ============================================ */

/* ── Common Screen Wrapper ── */
.screen-page {
  padding: var(--space-6) var(--space-4);
  padding-bottom: calc(var(--space-8) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .screen-page {
    padding: var(--space-8) var(--space-6);
  }
}

/* ── Dashboard Hero (Kinfolk Notes Flat Editorial) ── */
.dashboard-hero {
  background: #252822;
  border-radius: var(--radius-xs);
  padding: var(--space-8) var(--space-6);
  color: var(--bg-page);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-divider);
}

.dashboard-hero__greeting {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--natural-sand);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.dashboard-hero__name {
  font-family: var(--font-korean-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: var(--leading-tight);
  color: #FFFFFF;
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}

.dashboard-hero__stats {
  display: flex;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.dashboard-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-hero__stat-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: #FFFFFF;
  letter-spacing: 0.05em;
}

.dashboard-hero__stat-label {
  font-family: var(--font-serif);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.dashboard-hero__divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

/* ── Calling Score Section ── */
.calling-score-section {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--offwhite-2);
  box-shadow: var(--shadow-xs);
}

.calling-score-section__ring {
  flex-shrink: 0;
}

.calling-score-section__kpis {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ── Chart Container ── */
.chart-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--offwhite-2);
  box-shadow: var(--shadow-xs);
}

.chart-container__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

#callingChart {
  width: 100%;
  height: 200px;
}

#emotionChart {
  width: 100%;
  height: 180px;
}

/* ── Journal Screen ── */
.journal-month-header {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) 0;
}

.journal-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ── Journal New Screen ── */
.journal-new-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.journal-new-header {
  text-align: center;
  padding: var(--space-6) 0 var(--space-4);
  position: relative;
}

.journal-new-header__date {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand-gold);
  font-weight: 500;
}

.journal-new-header__title {
  font-family: var(--font-korean-serif), var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--primary-900);
  margin-top: var(--space-2);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.journal-section-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-700);
  margin-bottom: var(--space-3);
}

.photo-upload-area {
  border: 2px dashed var(--offwhite-3);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--white);
}

.photo-upload-area:hover {
  border-color: var(--accent-olive);
  background: var(--bg-subtle);
}

.photo-upload-area__icon {
  color: var(--accent-olive);
}

.photo-upload-area__text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: var(--weight-medium);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.activity-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-1);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--offwhite-3);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.activity-btn:hover {
  border-color: var(--accent-olive);
  background: var(--bg-subtle);
}

.activity-btn.selected {
  border-color: var(--accent-olive);
  background: rgba(90, 98, 77, 0.08);
  box-shadow: 0 0 0 1px var(--accent-olive);
}

.activity-btn__icon { font-size: 1.25rem; }
.activity-btn__label {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: var(--weight-medium);
}

.submit-area {
  padding: var(--space-4) 0;
}

.ai-processing-notice {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bg-subtle);
  border: 1px solid var(--border-divider);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-headline);
  font-weight: var(--weight-medium);
  margin-top: var(--space-3);
}

.ai-processing-notice__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-olive);
  animation: pulse-dot 1.2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

/* ── Connections Screen ── */
.connections-tabs {
  display: flex;
  background: var(--offwhite-1);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.connections-tab {
  flex: 1;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gray-500);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
}

.connections-tab.active {
  background: var(--white);
  color: var(--text-headline);
  font-weight: var(--weight-semibold);
  box-shadow: var(--shadow-xs);
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.match-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.circle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.circle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--offwhite-2);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.circle-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.circle-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-2);
}

.circle-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

.circle-card__members {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: 2px;
}

/* ── Profile Screen ── */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--offwhite-2);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--text-headline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--bg-page);
  border: 1px solid var(--border-divider);
}

.profile-name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
}

.profile-tagline {
  font-size: var(--text-sm);
  color: var(--gray-500);
  text-align: center;
  line-height: var(--leading-loose);
}

.profile-values {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.settings-list {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--offwhite-2);
  overflow: hidden;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--offwhite-2);
  cursor: pointer;
  transition: background var(--transition-fast);
}

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

.settings-item:hover {
  background: var(--offwhite-1);
}

.settings-item__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-olive);
  flex-shrink: 0;
}

.settings-item__label {
  flex: 1;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--gray-900);
}

.settings-item__arrow {
  color: var(--gray-300);
}

.goal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--offwhite-2);
  border-left: 3px solid var(--accent-olive);
}

.goal-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.goal-card__action {
  font-size: var(--text-sm);
  color: var(--text-headline);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.goal-card__action-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: var(--weight-medium);
  margin-bottom: 2px;
}

/* ── Journal Detail Screen ── */
.journal-detail-header {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--offwhite-2);
}

.journal-detail-date {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}

.journal-detail-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
  line-height: var(--leading-tight);
}

.journal-detail-body {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: var(--leading-loose);
}

.ai-analysis-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--offwhite-2);
}

.ai-analysis-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.ai-analysis-card__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-olive);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-analysis-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

.ai-analysis-card__subtitle {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 1px;
}

.analysis-section {
  margin-bottom: var(--space-4);
}

.analysis-section__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--gray-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.analysis-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── IA Document Screen ── */
.ia-doc-page {
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.ia-hero {
  background: #252822;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: white;
}

.ia-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.ia-hero__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-2);
}

.ia-hero__subtitle {
  font-size: var(--text-sm);
  opacity: 0.75;
  line-height: var(--leading-loose);
}

.ia-layer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ia-layer-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--offwhite-2);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ia-layer-item:hover {
  border-color: var(--accent-olive);
  box-shadow: var(--shadow-sm);
}

.ia-layer-item__num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--accent-olive);
  color: white;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.ia-layer-item__content {
  flex: 1;
}

.ia-layer-item__name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

.ia-layer-item__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: 2px;
  line-height: var(--leading-normal);
}

.ia-layer-item__tag {
  font-size: var(--text-xs);
  color: var(--accent-olive);
  font-weight: var(--weight-medium);
  margin-top: var(--space-2);
}

.invariant-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.invariant-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--offwhite-2);
  align-items: flex-start;
}

.invariant-item__code {
  font-family: 'Courier New', monospace;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--text-headline);
  background: var(--bg-subtle);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-divider);
}

.invariant-item__text {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: var(--leading-normal);
}

/* ── Chat UI (AI Coach) ── */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--gray-200);
  background: var(--offwhite-0);
  z-index: 10;
}
.chat-header__title {
  font-weight: 600;
  display: flex;
  align-items: center;
  color: var(--gray-900);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--offwhite-1);
}
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.chat-message--user {
  align-self: flex-end;
}
.chat-message--ai {
  align-self: flex-start;
}
.chat-message__bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  box-shadow: var(--shadow-sm);
  word-break: keep-all;
  letter-spacing: -0.01em;
}
.chat-message--user .chat-message__bubble {
  background: var(--accent-olive);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-message--ai .chat-message__bubble {
  background: white;
  color: var(--gray-900);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border-divider);
}
.chat-input-area {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  background: white;
  border-top: 1px solid var(--gray-200);
  gap: var(--space-2);
}
.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-300);
  background: var(--gray-100);
  font-size: var(--text-sm);
  outline: none;
  transition: all 0.2s ease;
}
.chat-input:focus {
  background: white;
  border-color: var(--accent-olive);
  box-shadow: 0 0 0 2px rgba(90, 98, 77, 0.15);
}
.chat-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-olive);
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}
.chat-submit-btn:active {
  opacity: 0.8;
}

/* ── Soul Match: Reciprocal Synergy & Soul Radar UI ── */
.synergy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 125, 90, 0.12);
  color: #2E7D5A;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(46, 125, 90, 0.25);
}

.interlocking-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-divider);
  border-left: 3.5px solid var(--accent-olive);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-body);
}

.interlocking-box__title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--accent-olive);
  margin-bottom: 4px;
  font-size: 11px;
}

.synergy-meters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-2);
  background: var(--offwhite-1);
  padding: var(--space-3);
  border-radius: var(--radius-md);
}

.synergy-meter-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.synergy-meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--gray-600);
  font-weight: var(--weight-medium);
}

.synergy-meter-bar {
  width: 100%;
  height: 5px;
  background: var(--offwhite-3);
  border-radius: 3px;
  overflow: hidden;
}

.synergy-meter-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #5A624D 0%, #9AA387 100%);
}

.exchange-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}

.exchange-chip-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
}

.exchange-chip-label {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.exchange-chip-label--give {
  background: rgba(90, 98, 77, 0.12);
  color: var(--accent-olive);
  border: 1px solid rgba(90, 98, 77, 0.25);
}

.exchange-chip-label--receive {
  background: rgba(221, 107, 32, 0.12);
  color: #C05621;
  border: 1px solid rgba(221, 107, 32, 0.2);
}

/* Soul Radar Profile Matrix */
.soul-matrix-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  border: 1px solid var(--offwhite-2);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.soul-matrix-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.soul-radar-chart {
  width: 100%;
  height: 240px;
}

.giving-receiving-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.giving-card, .receiving-card {
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-divider);
}

.giving-card {
  background: var(--bg-subtle);
}

.receiving-card {
  background: rgba(221, 107, 32, 0.04);
  border-color: rgba(221, 107, 32, 0.2);
}

.giving-card__title, .receiving-card__title {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-2);
}

.giving-card__title { color: var(--accent-olive); }
.receiving-card__title { color: #C05621; }

.giving-chips, .receiving-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.soul-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--white);
  border: 1px solid var(--offwhite-3);
  color: var(--gray-700);
  font-weight: var(--weight-medium);
}

/* ── Progressive Soul Unlock Gamification UI (14일/100일 언락 시스템) ── */
.soul-unlock-banner {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  color: var(--text-body);
  border: 1px solid var(--border-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(48, 43, 34, 0.04);
}

.soul-unlock-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -20px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 98, 77, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.soul-unlock-tier-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(90, 98, 77, 0.08);
  color: var(--accent-olive);
  border: 1px solid rgba(90, 98, 77, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.soul-unlock-tier-badge--unlocked {
  background: rgba(90, 98, 77, 0.14);
  color: var(--accent-olive);
  border-color: rgba(90, 98, 77, 0.35);
  font-weight: 700;
}

.soul-unlock-days {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-headline);
  letter-spacing: 0.02em;
}

.soul-unlock-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.soul-unlock-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border-divider);
  border-radius: 3px;
  overflow: hidden;
}

.soul-unlock-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-olive);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.soul-unlock-msg {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-body);
}

.soul-unlock-msg strong {
  color: var(--text-headline);
  font-weight: 700;
}

/* Locked Card Slot */
.locked-slot-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
}

.locked-slot-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--offwhite-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  border: 1px solid var(--offwhite-3);
}

.locked-slot-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--gray-800);
}

.locked-slot-desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  max-width: 280px;
}

/* Locked Circle Styling */
.circle-card--locked {
  position: relative;
  opacity: 0.72;
}

.circle-lock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #E2E8F0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Streak Sim Toggle */
.streak-sim-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(48, 43, 34, 0.03);
  border: 1px solid var(--border-divider);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.streak-sim-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-input);
  color: var(--text-headline);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.streak-sim-btn:hover {
  background: var(--accent-olive);
  border-color: var(--accent-olive);
  color: #FFFFFF;
}

/* ── Soul Guide Weaver (Unified MoE Service) Modal ── */
.moe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(33, 33, 33, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.25s ease-out;
}

.weaver-modal {
  background: #FFFFFF;
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  height: 86vh;
  max-height: 740px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-divider);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.weaver-modal-header {
  background: #252822;
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-divider);
}

.weaver-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weaver-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.weaver-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #48BB78;
  border: 2px solid #252822;
}

.weaver-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #FFFFFF;
}

.weaver-status-text {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.moe-modal-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s;
}

.moe-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Mind Weaving Progress Bar */
.weaver-stage-bar {
  background: var(--bg-subtle);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.weaver-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-divider);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-olive);
  animation: pulseWeave 1.5s infinite alternate;
}

@keyframes pulseWeave {
  0% { transform: scale(0.98); opacity: 0.85; }
  100% { transform: scale(1.02); opacity: 1; }
}

/* Chat Messages Area (Guaranteed bounded flex child with auto-scrolling) */
.weaver-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg-page);
}

.weaver-chat-messages::-webkit-scrollbar {
  width: 5px;
}
.weaver-chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-divider);
  border-radius: 4px;
}

.weaver-message-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.weaver-message-row.weaver-row {
  justify-content: flex-start;
  align-items: flex-start;
}

.weaver-message-row.user-row {
  justify-content: flex-end;
}

.weaver-mini-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.weaver-speech-bubble {
  background: #FFFFFF;
  border: 1px solid var(--border-divider);
  border-radius: 4px 18px 18px 18px;
  padding: 14px 16px;
  max-width: 86%;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-body);
  word-break: break-word;
  white-space: pre-wrap;
}

.user-speech-bubble {
  background: var(--accent-olive);
  color: #FFFFFF;
  border-radius: 18px 18px 4px 18px;
  padding: 12px 16px;
  max-width: 82%;
  font-size: 13.5px;
  line-height: 1.6;
  word-break: break-word;
}

/* Poetic Reflection Card within Chat */
.weaver-poetic-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-divider);
  border-left: 4px solid var(--accent-olive);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 4px 0 4px 40px;
  box-shadow: 0 3px 12px rgba(46, 125, 90, 0.08);
}

.weaver-poetic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.weaver-poetic-badge {
  font-size: 11px;
  font-weight: 700;
  color: #22543D;
  display: flex;
  align-items: center;
  gap: 4px;
}

.weaver-poetic-kpi {
  font-size: 10px;
  font-weight: 700;
  background: rgba(46, 125, 90, 0.15);
  color: #22543D;
  padding: 2px 8px;
  border-radius: 10px;
}

.weaver-poetic-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 6px;
  font-family: var(--font-korean-serif);
}

.weaver-poetic-body {
  font-size: 12.5px;
  line-height: 1.7;
  color: #2D3748;
  font-style: italic;
}

.moe-stream-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: #2E7D5A;
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Modal Footer Fixed */
.weaver-modal-footer {
  padding: 12px 18px 16px 18px;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weaver-prompt-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.weaver-chip-label {
  font-size: 11px;
  color: #64748B;
  flex-shrink: 0;
}

.weaver-chip-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.weaver-chip-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.weaver-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.weaver-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg-subtle);
  color: var(--text-body);
}

.weaver-input:focus {
  border-color: var(--accent-olive);
  background: #FFFFFF;
}

.weaver-send-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: var(--accent-olive);
  border: none;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

.weaver-send-btn:hover {
  background: var(--accent-olive-hover);
}

/* ── Phase 1: Sanctuary Lounge & Feed ── */
.sanctuary-hero {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5);
  color: var(--text-body);
  margin-bottom: var(--space-4);
  box-shadow: 0 2px 8px rgba(48, 43, 34, 0.04);
  border: 1px solid var(--border-divider);
  position: relative;
  overflow: hidden;
}

.sanctuary-hero__top {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.sanctuary-hero__icon {
  font-size: 38px;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(90, 98, 77, 0.08);
  border: 1px solid rgba(90, 98, 77, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sanctuary-hero__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-headline);
  margin-bottom: 2px;
}

.sanctuary-hero__meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sanctuary-hero__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: var(--space-3);
}

.sanctuary-hero__actions {
  display: flex;
  gap: 8px;
}

.sanctuary-post-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: var(--space-4);
}

.sanctuary-post-box textarea {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 13.5px;
  min-height: 80px;
  resize: vertical;
  background: var(--offwhite-1);
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.sanctuary-post-box textarea:focus {
  border-color: var(--accent-olive);
  background: white;
}

.sanctuary-post-box__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-3);
}

.sanctuary-feed-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  margin-bottom: var(--space-3);
  transition: transform 0.15s, box-shadow 0.15s;
}

.sanctuary-feed-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sanctuary-feed-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.sanctuary-feed-item__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sanctuary-feed-item__date {
  font-size: 11px;
  color: var(--gray-400);
}

.sanctuary-feed-item__body {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--gray-700);
  white-space: pre-wrap;
  margin-bottom: var(--space-3);
}

.sanctuary-feed-item__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.warmth-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #15803D;
  cursor: pointer;
  transition: all 0.2s;
}

.warmth-btn:hover {
  background: #DCFCE7;
  transform: scale(1.03);
}

/* ── Phase 1: 1:1 Direct Chat & Modals ── */
.direct-chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(33, 33, 33, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.direct-chat-card {
  width: 100%;
  max-width: 440px;
  height: 560px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(37, 40, 34, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-divider);
}

.direct-chat-header {
  padding: 14px 18px;
  background: #252822;
  color: #F9F7F3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.direct-chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: break-word;
}

.chat-bubble--me {
  align-self: flex-end;
  background: var(--accent-olive);
  color: white;
  border-bottom-right-radius: 2px;
}

.chat-bubble--partner {
  align-self: flex-start;
  background: white;
  color: #1E293B;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 4px;
}

.direct-chat-footer {
  padding: 12px 14px;
  background: white;
  border-top: 1px solid #E2E8F0;
  display: flex;
  gap: 8px;
}

/* ── Phase 1: Journal Actions ── */
.journal-action-bar {
  display: flex;
  gap: 8px;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--gray-200);
}

.btn--outline-danger {
  background: transparent;
  border: 1px solid #EF4444;
  color: #EF4444;
}

.btn--outline-danger:hover {
  background: #FEE2E2;
}

/* ── Phase 2: Photo Attachment & Viewer ── */
.photo-attach-wrapper {
  margin: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.photo-preview-container {
  position: relative;
  width: 100%;
  max-height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.photo-remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.photo-remove-btn:hover {
  background: #EF4444;
}

.journal-detail-photo {
  width: 100%;
  max-height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.journal-detail-photo img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* ── Phase 2: Goal Interactive Controls ── */
.goal-item-interactive {
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.goal-item-interactive.is-completed {
  border-color: #38A169;
  background: #F0FDF4;
}

.goal-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.goal-title-area {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.goal-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #38A169;
  cursor: pointer;
}

.goal-title-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-900);
}

.goal-title-text.completed {
  text-decoration: line-through;
  color: var(--gray-500);
}

.goal-slider-wrapper {
  margin: 10px 0;
}

.goal-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 4px;
}

.goal-progress-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-divider);
  outline: none;
  cursor: pointer;
  accent-color: var(--accent-olive);
}

.goal-coach-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(90, 98, 77, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-olive);
  font-size: 12.5px;
  color: var(--text-headline);
  line-height: 1.5;
}

.goal-actions-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11.5px;
  border-radius: var(--radius-full);
}

/* ── Phase 2: Reflection Actions & Archive Modal ── */
.reflection-btn-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.reflection-archive-card {
  padding: 14px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.reflection-archive-date {
  font-size: 11.5px;
  color: var(--accent-olive);
  font-weight: 600;
  margin-bottom: 4px;
}

.reflection-archive-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.reflection-archive-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ── Phase 2: 4-7-8 Breathing Pacer ── */
.breathing-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 40, 34, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.breathing-modal-card {
  width: 100%;
  max-width: 420px;
  background: #252822;
  border-radius: var(--radius-lg);
  color: #F9F7F3;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(227, 226, 222, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breathing-pacer-visual {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breathing-pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(154, 163, 135, 0.45);
  transform: scale(0.8);
  transition: transform 1s ease-in-out, border-color 1s ease-in-out;
}

.breathing-pulse-core {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, #5A624D 0%, #3B4232 70%, #252822 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(90, 98, 77, 0.4);
  transform: scale(0.85);
  transition: transform 1s ease-in-out;
}

.breath-phase-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFFFFF;
}

.breath-timer-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--natural-leaf);
  margin-top: 2px;
}

.breathing-cycles-tag {
  font-size: 12px;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* ── Phase 3: Notifications System ── */
.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: #EF4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-3);
}

.notification-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.notification-card:hover {
  border-color: var(--accent-olive);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(90, 98, 77, 0.12);
}

.notification-card.unread {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent-olive);
}

.notification-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(90, 98, 77, 0.12);
  color: var(--accent-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notification-card__content {
  flex: 1;
}

.notification-card__title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 3px;
}

.notification-card__msg {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 4px;
}

.notification-card__time {
  font-size: 11px;
  color: var(--gray-400);
}

.notification-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #EF4444;
  position: absolute;
  top: 14px;
  right: 14px;
}

/* ── Phase 3: Journal Filter & Search ── */
.journal-search-wrap {
  position: relative;
  margin-bottom: var(--space-3);
}

.journal-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: white;
  font-size: 13px;
  outline: none;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.journal-search-input:focus {
  border-color: var(--accent-olive);
  box-shadow: 0 0 0 3px rgba(90, 98, 77, 0.12);
}

.journal-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
}

.journal-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: var(--space-3);
  scrollbar-width: none;
}

.journal-filter-bar::-webkit-scrollbar {
  display: none;
}

.emotion-filter-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: white;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.emotion-filter-chip:hover {
  background: var(--offwhite-2);
}

.emotion-filter-chip.active {
  background: var(--primary-800);
  color: white;
  border-color: var(--primary-800);
}

/* ── Phase 3: Soulmate Bookmark ── */
.bookmark-btn {
  background: transparent;
  border: 1px solid var(--offwhite-3);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.bookmark-btn:hover {
  background: var(--offwhite-2);
}

.bookmark-btn.active {
  background: rgba(163, 140, 109, 0.15);
  border-color: var(--sand-gold);
  color: var(--sand-gold);
  font-weight: 600;
}

/* ── Editorial Landscape (Clean & Centered Journey) ── */
.editorial-canvas-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding: var(--space-6) var(--space-4) var(--space-12);
}

@media (min-width: 1024px) {
  .editorial-canvas-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    padding: var(--space-8) var(--space-4) var(--space-16);
  }
}

/* Left Brand Floating Column */
.editorial-left-col {
  display: none;
}

@media (min-width: 1024px) {
  .editorial-left-col {
    display: block;
    position: sticky;
    top: var(--space-8);
    padding-top: var(--space-8);
  }
}

.editorial-brand-stamp {
  border-left: 1.5px solid var(--border-input); /* #C5C2BA */
  padding-left: var(--space-4);
}

.editorial-brand-stamp__caption {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-secondary); /* #67645D */
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.editorial-brand-stamp__heading {
  font-family: var(--font-korean-serif);
  font-size: var(--text-korean-head); /* clamp(20px, 2.08vw, 30px) */
  font-weight: 400;
  color: var(--text-headline); /* #302B22 */
  line-height: 1.45;
  margin-bottom: var(--space-4);
}

.editorial-brand-stamp__sep {
  width: 24px;
  height: 1px;
  background: var(--border-divider); /* #D9D5CA */
  margin-bottom: var(--space-4);
}

.editorial-brand-stamp__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-secondary); /* #67645D */
  line-height: 1.55;
  letter-spacing: 0.02em;
}

/* Center Editorial Card */
.editorial-center-col {
  width: 100%;
  max-width: var(--content-max-width); /* 680px */
  margin: 0 auto;
}

/* Right Kinfolk Still Life Decor (보조 자연색: #D3C4B0 · #E2D6C9 · #9AA387) */
.editorial-right-col {
  display: none;
}

@media (min-width: 1024px) {
  .editorial-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: sticky;
    top: var(--space-8);
    padding-top: var(--space-8);
    pointer-events: none;
    user-select: none;
  }
}

.editorial-botanical-decor {
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.95;
}

.botanical-branch-svg {
  width: 160px;
  height: 220px;
  margin-bottom: -15px;
  transform: rotate(5deg);
}

.ceramic-vase-svg {
  width: 90px;
  height: 130px;
}

.kinfolk-books-stack {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 170px;
}

.kinfolk-book {
  background: var(--bg-header-footer); /* #F4F1E9 */
  border: 1px solid var(--border-divider); /* #D9D5CA */
  padding: 5px 10px;
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-secondary); /* #67645D */
  text-transform: uppercase;
  text-align: center;
  border-radius: 2px;
  width: 100%;
}

.kinfolk-book--top {
  width: 145px;
}

/* Responsive Desktop Wrapper */
@media (min-width: 768px) {
  .app-shell {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 100vh;
    box-shadow: none;
  }
}

/* ==========================================================================
   SMARTPHONE RESPONSIVE OPTIMIZATIONS (모바일 화면 최적화)
   ========================================================================== */

@media (max-width: 768px) {
  /* ── Screen Page Layout ── */
  .screen-page {
    padding: var(--space-4) 0;
    gap: var(--space-4);
    max-width: 100%;
    overflow-x: hidden;
  }

  /* ── Dashboard Screen ── */
  .dashboard-hero {
    padding: 16px 14px;
    border-radius: var(--radius-sm);
  }

  .dashboard-hero__greeting {
    font-size: 10.5px;
    letter-spacing: 0.18em;
  }

  .dashboard-hero__name {
    font-size: 1.35rem;
    margin-bottom: var(--space-4);
  }

  .dashboard-hero__stats {
    gap: 8px;
    justify-content: space-around;
  }

  .dashboard-hero__stat-value {
    font-size: 1.3rem;
  }

  .dashboard-hero__stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  /* Calling Score Section (Stack vertically on mobile) */
  .calling-score-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 16px;
    padding: 18px 14px;
    border-radius: var(--radius-md);
  }

  .calling-score-section__ring {
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .calling-score-section__kpis {
    width: 100%;
    gap: 10px;
  }

  .score-bar__header {
    font-size: 12.5px;
  }

  .chart-container {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .chart-container__title {
    font-size: 14px;
    margin-bottom: var(--space-3);
  }

  #callingChart {
    height: 180px;
    width: 100% !important;
  }

  #emotionChart {
    height: 160px;
    width: 100% !important;
  }

  .reflection-card {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .reflection-card__title {
    font-size: 1.15rem;
  }

  .reflection-card__body {
    font-size: 13.5px;
    line-height: 1.6;
  }

  .moe-banner-card {
    padding: 14px 12px !important;
    border-radius: var(--radius-md) !important;
  }

  /* ── Journal Screen ── */
  .journey-banner-card {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px 14px !important;
    border-radius: var(--radius-md) !important;
  }

  .journey-banner-card button {
    width: 100% !important;
    text-align: center !important;
  }

  .journal-search-wrap {
    width: 100%;
  }

  .journal-search-input {
    font-size: 13px;
    height: 42px;
    padding: 0 12px 0 38px;
  }

  .journal-filter-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0 6px;
    margin-bottom: var(--space-2);
  }

  .emotion-filter-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }

  .journal-item {
    padding: 14px 12px;
    gap: 12px;
    border-radius: var(--radius-md);
  }

  .journal-item__date-col {
    min-width: 40px;
  }

  .journal-item__day {
    font-size: 1.3rem;
  }

  .journal-item__month {
    font-size: 10.5px;
  }

  .journal-item__title {
    font-size: 14.5px;
    margin-bottom: 4px;
  }

  .journal-item__preview {
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 6px;
  }

  .journal-item__meta {
    flex-wrap: wrap;
    gap: 4px;
  }

  /* ── Soulign Journey Screen ── */
  .editorial-canvas-layout {
    padding: 8px 0 20px;
    gap: var(--space-4);
  }

  .editorial-left-col,
  .editorial-right-col {
    display: none !important;
  }

  .editorial-center-col {
    width: 100%;
    max-width: 100%;
  }

  .journey-editorial-wrap {
    padding: 4px 0 20px;
  }

  .journey-headline {
    font-size: clamp(22px, 6.5vw, 28px);
    letter-spacing: 0.08em;
    text-align: center;
  }

  .journey-subheadline {
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
  }

  .journey-question {
    margin-bottom: 24px;
  }

  .journey-question__title {
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .journey-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .journey-option-item {
    padding: 12px 14px;
    min-height: 48px;
    font-size: 13.5px;
    border-radius: var(--radius-xs);
  }

  .journey-textarea {
    font-size: 13.5px;
    min-height: 90px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
  }

  .btn--editorial-next {
    width: 100% !important;
    max-width: 100% !important;
    height: 50px !important;
    font-size: 14px !important;
    letter-spacing: 0.16em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* ── Journal New ── */

  .emotion-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }

  .emotion-btn {
    padding: 8px 2px;
    min-width: 0;
    gap: 3px;
  }

  .emotion-btn__icon {
    font-size: 18px;
  }

  .emotion-btn__label {
    font-size: 10.5px;
  }

  .activity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  .activity-btn {
    padding: 8px 4px;
    min-width: 0;
    gap: 3px;
  }

  .activity-btn__icon {
    font-size: 16px;
  }

  .activity-btn__label {
    font-size: 10.5px;
  }

  .submit-area {
    width: 100%;
  }

  .submit-area .btn {
    width: 100%;
    height: 48px;
    font-size: 14px;
  }

  /* ── Connections Screen ── */
  .soul-unlock-banner {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .soul-unlock-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .soul-unlock-tier-badge {
    font-size: 11px;
    padding: 3px 8px;
  }

  .soul-unlock-days {
    font-size: 11.5px;
  }

  .streak-sim-bar {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .streak-sim-btn {
    padding: 3px 8px;
    font-size: 10.5px;
  }

  .connections-tabs {
    display: flex;
    width: 100%;
    border-bottom: 1px solid var(--border-divider);
  }

  .connections-tab {
    flex: 1;
    text-align: center;
    padding: 10px 4px;
    font-size: 12.5px;
  }

  .match-card {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .user-card {
    gap: 10px;
  }

  .user-card__avatar {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .user-card__name {
    font-size: 15px;
  }

  .synergy-badge {
    font-size: 10.5px;
    padding: 2px 6px;
  }

  .synergy-meters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .synergy-meter-header {
    font-size: 11px;
  }

  .interlocking-box {
    padding: 12px 10px;
    font-size: 12px;
    line-height: 1.55;
    border-radius: var(--radius-sm);
  }

  .exchange-chips-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .exchange-chip-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .exchange-chip-label {
    font-size: 10.5px;
  }

  .soul-tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .match-actions {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .match-actions button {
    width: 100% !important;
    height: 42px !important;
    justify-content: center !important;
  }

  /* ── Chat / AI Coach Screen ── */
  .chat-container-page {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .chat-input-bar {
    padding: 8px 4px;
    gap: 6px;
  }

  .chat-input {
    font-size: 13.5px;
    min-height: 42px;
  }

  /* ── Modals on Mobile ── */
  .modal-overlay {
    padding: 0;
  }

  .modal-content,
  .breathing-pacer-modal,
  .moe-coach-modal-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    padding: 16px 14px !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 360px) {
  .activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================================
   Phase 2: Soul Tracker & Soul Index Matrix Styling (Quiet Linen Aesthetic)
   ========================================================================= */

/* ── Soul Hub Card (Dashboard) ── */
.soul-tracker-hub-card {
  background: var(--bg-card, #FAFAF7);
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-6, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 16px);
  box-shadow: 0 1px 3px rgba(48, 43, 34, 0.04);
}

.soul-tracker-hub-tag {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #5A624D);
  font-weight: 600;
  margin-bottom: 4px;
}

.soul-tracker-hub-title {
  font-family: var(--font-korean-serif, 'Noto Serif KR', serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #302B22);
  margin: 0;
  line-height: 1.4;
}

.soul-tracker-hub-desc {
  font-size: 0.9rem;
  color: var(--text-secondary, #6B655B);
  line-height: 1.6;
  margin: 0;
}

.soul-tracker-hub-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 4px;
}

@media (min-width: 640px) {
  .soul-tracker-hub-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

.soul-hub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ── Daily Soul Check Screen ── */
.soul-check-card {
  background: var(--bg-card, #FAFAF7);
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-6, 24px);
  margin-bottom: var(--space-5, 20px);
}

.soul-check-part-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-divider, #ECE8DF);
}

.soul-check-part-item:last-child {
  border-bottom: none;
}

.soul-check-part-title {
  font-family: var(--font-korean-serif, 'Noto Serif KR', serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary, #302B22);
  margin-bottom: 4px;
}

.soul-check-part-q {
  font-size: 0.85rem;
  color: var(--text-muted, #8C8476);
  margin-bottom: 12px;
}

.likert-btn-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.likert-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 4px;
  padding: 10px 4px;
  font-size: 0.8rem;
  color: var(--text-primary, #302B22);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.likert-btn:hover {
  background: #F4F1E9;
  border-color: var(--accent, #5A624D);
}

.likert-btn.selected {
  background: #5A624D;
  color: #FFFFFF;
  border-color: #5A624D;
  font-weight: 600;
}

.likert-btn__score {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1rem;
  font-weight: 600;
}

.likert-btn__label {
  font-size: 0.72rem;
  opacity: 0.85;
}

/* ── Soul Tracker 90 Questions ── */
.tracker-progress-bar-wrap {
  background: var(--bg-card, #FAFAF7);
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: var(--radius-sm, 6px);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tracker-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary, #6B655B);
}

.tracker-progress-track {
  height: 6px;
  background: #E8E5DD;
  border-radius: 3px;
  overflow: hidden;
}

.tracker-progress-fill {
  height: 100%;
  background: var(--accent, #5A624D);
  transition: width 0.3s ease;
}

.tracker-question-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-8, 32px) var(--space-6, 24px);
  display: flex;
  flex-direction: column;
  gap: var(--space-6, 24px);
  box-shadow: 0 2px 8px rgba(48, 43, 34, 0.03);
}

.tracker-part-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(90, 98, 77, 0.08);
  color: var(--accent, #5A624D);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  width: fit-content;
}

.tracker-question-text {
  font-family: var(--font-korean-serif, 'Noto Serif KR', serif);
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--text-primary, #302B22);
  font-weight: 500;
  margin: 0;
}

/* ── Soul Index Matrix ── */
.matrix-notice-banner {
  background: rgba(90, 98, 77, 0.06);
  border-left: 3px solid var(--accent, #5A624D);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  font-size: 0.85rem;
  color: var(--text-primary, #302B22);
  line-height: 1.5;
}

.matrix-axis-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.matrix-axis-name {
  font-family: var(--font-korean-serif, 'Noto Serif KR', serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary, #302B22);
}

.matrix-axis-score {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent, #5A624D);
}

.matrix-axis-bar {
  height: 8px;
  background: #E8E5DD;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.matrix-axis-fill {
  height: 100%;
  background: var(--accent, #5A624D);
  border-radius: 4px;
}

.matrix-parts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .matrix-parts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.matrix-part-item {
  background: var(--bg-card, #FAFAF7);
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.matrix-part-tag {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted, #8C8476);
  text-transform: uppercase;
}

.matrix-part-val {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary, #302B22);
}

.matrix-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.matrix-badge--active { background: rgba(90, 98, 77, 0.12); color: #5A624D; }
.matrix-badge--calibrating { background: rgba(140, 115, 85, 0.12); color: #8C7355; }
.matrix-badge--transition { background: rgba(184, 115, 51, 0.12); color: #B87333; }
.matrix-badge--dormant { background: rgba(140, 132, 118, 0.12); color: #8C8476; }

/* =========================================================================
   Phase 3: 4-Person Soul Circle & Offline Meetings Styling
   ========================================================================= */

.circle-hero-card {
  background: #252822;
  border-radius: var(--radius-sm, 6px);
  padding: var(--space-6, 24px);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: var(--space-3, 12px);
}

.circle-members-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .circle-members-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.circle-member-box {
  background: var(--bg-card, #FAFAF7);
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.circle-member-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #5A624D;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-korean-serif);
  font-weight: 600;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.circle-meeting-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(48, 43, 34, 0.04);
}

.circle-meeting-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.meeting-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}

.meeting-status-badge--confirmed {
  background: rgba(90, 98, 77, 0.15);
  color: #5A624D;
}

.guide-stage-card {
  background: var(--bg-card, #FAFAF7);
  border-left: 3px solid var(--accent, #5A624D);
  padding: 14px 16px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 12px;
}

.guide-stage-time {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent, #5A624D);
  font-weight: 600;
}

.guide-stage-title {
  font-family: var(--font-korean-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary, #302B22);
  margin: 4px 0;
}

.guide-stage-desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #6B655B);
  line-height: 1.5;
}

.aha-note-item {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aha-note-text {
  font-family: var(--font-korean-serif);
  font-size: 0.95rem;
  color: var(--text-primary, #302B22);
  line-height: 1.5;
}

/* =========================================================================
   Phase 4: AI MoE Calling Coach & MY SOUL MAP Styles
   ========================================================================= */

.coach-hero-card {
  background: #302B22;
  color: #F2EFE8;
  border-radius: 6px;
  padding: 22px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coach-progress-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coach-agent-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(48, 43, 34, 0.04);
}

.coach-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  width: fit-content;
}

.coach-badge--mirror {
  background: rgba(90, 98, 77, 0.12);
  color: #5A624D;
}

.coach-badge--weaver {
  background: rgba(184, 151, 107, 0.18);
  color: #7D633F;
}

.coach-badge--experiment {
  background: rgba(100, 110, 120, 0.12);
  color: #4A5568;
}

.coach-badge--synthesizer {
  background: rgba(48, 43, 34, 0.08);
  color: #302B22;
}

.coach-question-item {
  background: var(--bg-card, #FAFAF7);
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coach-dialogue-container {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 16px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coach-chat-stream {
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px;
}

.coach-msg-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.coach-msg-bubble--weaver {
  align-self: flex-start;
  background: #FAFAF7;
  border: 1px solid var(--border-color, #E8E5DD);
  color: var(--text-primary, #302B22);
  font-family: var(--font-korean-serif);
}

.coach-msg-bubble--user {
  align-self: flex-end;
  background: #5A624D;
  color: #F2EFE8;
}

/* MY SOUL MAP */
.soulmap-hero-card {
  background: #302B22;
  color: #F2EFE8;
  border-radius: 6px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.soulmap-chart-box {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
}

.soulmap-axis-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E8E5DD);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.soulmap-quote-card {
  background: #FFFFFF;
  border-left: 3px solid var(--accent, #5A624D);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  margin-bottom: 10px;
}

/* ── Reflection Calendar Component (성찰 캘린더) ── */
.reflection-calendar-card {
  background: #FFFFFF;
  border: 1px solid var(--border-divider);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: 0 2px 10px rgba(48, 43, 34, 0.04);
  margin-top: 20px;
  margin-bottom: 24px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.calendar-month-title {
  font-family: var(--font-korean-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-headline);
}

.calendar-nav-btn {
  background: transparent;
  border: 1px solid var(--border-divider);
  border-radius: var(--radius-xs);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s;
}

.calendar-nav-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--accent-olive);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.calendar-day-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 0;
}

.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  transition: all 0.2s;
  cursor: default;
  margin: 0 auto;
  width: 38px;
  height: 38px;
  color: var(--text-primary);
}

.calendar-day-cell.completed {
  background: var(--accent-olive, #556B2F) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(85, 107, 47, 0.28);
}

.calendar-day-cell.completed:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 10px rgba(85, 107, 47, 0.45);
}

.calendar-day-cell.today {
  border: 2px solid var(--accent-olive, #556B2F);
}

.calendar-day-cell.missed {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
}

.calendar-day-cell.future {
  color: var(--text-muted);
  opacity: 0.45;
}

.calendar-day-cell.empty {
  visibility: hidden;
}

.calendar-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.calendar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}





