:root {
  --bg-canvas: #FAF6F0;
  --bg-surface: #FFFDF9;
  --bg-elevated: #FFF9F7;
  --bg-subtle: #F6EFEA;
  --bg-muted: #EDE1D9;
  --bg-glass: rgba(255, 253, 249, 0.92);
  --bg-glass-heavy: rgba(255, 253, 249, 0.96);

  --gradient-warm: linear-gradient(135deg, #FAF6F0 0%, #FFF5F6 100%);
  --gradient-card: linear-gradient(145deg, #FFFDF9 0%, #FFF7F8 100%);

  --ink-primary: #3A2E2B;
  --ink-secondary: #6E5D58;
  --ink-muted: #9C8983;

  --border-hairline: rgba(232, 111, 130, 0.18);
  --border-strong: rgba(232, 111, 130, 0.32);
  --specular-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.92);

  --accent-coral: #E86F82;
  --accent-coral-hover: #D95B6F;
  --accent-coral-soft: rgba(232, 111, 130, 0.14);

  --accent-blue: #E86F82;
  --accent-blue-hover: #D95B6F;
  --accent-blue-soft: rgba(232, 111, 130, 0.14);

  --accent-sky: #B87D72;
  --accent-sky-soft: #F6ECE6;

  --accent-teal: #C46D7B;
  --accent-teal-soft: rgba(232, 111, 130, 0.12);

  --accent-amber: #A66E63;
  --accent-amber-soft: #F6ECE6;
  --accent-gold-border: rgba(212, 165, 154, 0.48);

  --accent-purple: #D96578;
  --accent-purple-soft: rgba(232, 111, 130, 0.14);

  --diary-pink-bg: #FFF1F3;
  --diary-pink-border: #F5CED5;
  --diary-blue-bg: #FDF7F2;
  --diary-blue-border: #EBDAD0;
  --diary-couple-bg: linear-gradient(135deg, #FFF1F3 0%, #FDF7F2 100%);

  --shadow-soft: 0 4px 20px rgba(232, 111, 130, 0.11);
  --shadow-card: 0 2px 10px rgba(58, 46, 43, 0.04);
  --shadow-bento: 0 4px 20px rgba(232, 111, 130, 0.09), 0 2px 10px rgba(58, 46, 43, 0.03);
  --shadow-float: 0 12px 36px rgba(232, 111, 130, 0.16), 0 2px 10px rgba(58, 46, 43, 0.05);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 980px;

  --font-diary: 'Playfair Display', 'Noto Serif KR', 'Pretendard Variable', Georgia, serif;
  --font-sans: 'Inter', 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-serif: var(--font-diary);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --spring-fluid: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-canvas: #181315;
  --bg-surface: #231B1E;
  --bg-elevated: #2B2125;
  --bg-subtle: #281E22;
  --bg-muted: #36292E;
  --bg-glass: rgba(35, 27, 30, 0.90);
  --bg-glass-heavy: rgba(35, 27, 30, 0.96);

  --gradient-warm: linear-gradient(135deg, #181315 0%, #21181C 100%);
  --gradient-card: linear-gradient(145deg, #231B1E 0%, #2A2024 100%);

  --ink-primary: #FAF3EE;
  --ink-secondary: #D9C8C2;
  --ink-muted: #A38F88;

  --border-hairline: rgba(240, 128, 146, 0.20);
  --border-strong: rgba(240, 128, 146, 0.36);
  --specular-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);

  --accent-coral: #F08092;
  --accent-coral-hover: #F596A5;
  --accent-coral-soft: rgba(240, 128, 146, 0.18);

  --accent-blue: #F08092;
  --accent-blue-hover: #F596A5;
  --accent-blue-soft: rgba(240, 128, 146, 0.18);

  --accent-sky: #E0B6AC;
  --accent-sky-soft: rgba(224, 182, 172, 0.15);

  --accent-teal: #F08092;
  --accent-teal-soft: rgba(240, 128, 146, 0.15);

  --accent-amber: #E6C3B8;
  --accent-amber-soft: rgba(230, 195, 184, 0.14);
  --accent-gold-border: rgba(230, 195, 184, 0.30);

  --diary-pink-bg: rgba(240, 128, 146, 0.14);
  --diary-pink-border: rgba(240, 128, 146, 0.30);
  --diary-blue-bg: rgba(230, 195, 184, 0.11);
  --diary-blue-border: rgba(230, 195, 184, 0.26);
  --diary-couple-bg: linear-gradient(135deg, rgba(240, 128, 146, 0.15) 0%, rgba(230, 195, 184, 0.12) 100%);

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-bento: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-float: 0 16px 48px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

::selection {
  background: rgba(232, 111, 130, 0.22);
  color: var(--ink-primary);
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body {
  min-height: 100dvh;
  background-image: var(--gradient-warm);
}

a {
  color: var(--accent-coral);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.font-diary {
  font-family: var(--font-diary);
}

.tabular, .num, .price, .metric, time {
  font-variant-numeric: tabular-nums;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--gradient-card);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-heart-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-coral);
  fill: var(--accent-coral);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(232, 111, 130, 0.28));
}

.brand-titles {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.brand-name {
  font-family: var(--font-diary);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.brand-eyebrow {
  display: none;
}

.group-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--accent-gold-border);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--spring-fluid);
  white-space: nowrap;
}

.group-id-badge:hover {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
  border-color: var(--border-strong);
}

.status-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border: 1px solid var(--border-hairline);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-badge.terracotta,
.pill-badge.coral,
.pill-badge.purple {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
  border-color: rgba(232, 111, 130, 0.28);
}

.pill-badge.sage,
.pill-badge.teal,
.pill-badge.blue,
.pill-badge.gold,
.pill-badge.amber {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  border-color: var(--accent-gold-border);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-coral);
  box-shadow: 0 0 0 3px var(--accent-coral-soft);
  animation: heartbeat 1.5s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.35); }
  60% { transform: scale(1.05); }
}

.nav-bar-wrap {
  width: 100%;
  border-top: 1px solid rgba(232, 111, 130, 0.12);
  background: rgba(255, 253, 249, 0.72);
}

[data-theme="dark"] .nav-bar-wrap {
  background: rgba(35, 27, 30, 0.72);
}

.nav-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s var(--spring-fluid);
}

.nav-tab svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.nav-tab:hover {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
}

.nav-tab.active {
  background: var(--accent-coral);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.nav-count {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(232, 111, 130, 0.12);
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.nav-tab.active .nav-count {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--spring-fluid);
}

.theme-switch-btn:hover {
  background: var(--accent-coral-soft);
}

.mobile-bottom-dock {
  display: none;
}

.main-container {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 20px 108px;
}

.tab-panel {
  display: none;
  width: 100%;
  animation: fluidAppear 0.3s var(--spring-fluid);
}

.tab-panel.active {
  display: block;
}

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

.shared-page-header {
  text-align: center;
  margin-bottom: 30px;
}

.shared-page-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.shared-page-title {
  font-family: var(--font-diary);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.shared-page-subtitle {
  font-size: 15px;
  color: var(--ink-secondary);
  margin: 0 auto;
  max-width: 58ch;
}

.date-sticky-row {
  position: sticky;
  top: 98px;
  z-index: 15;
  padding: 4px 0;
  margin-bottom: 10px;
}

.date-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--ink-primary);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.diary-date-group {
  margin-bottom: 28px;
}

.diary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.diary-card {
  background: var(--diary-pink-bg);
  border: 1px solid var(--diary-pink-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
  width: 100%;
  transition: all 0.3s var(--spring-fluid);
}

.diary-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.diary-card.diary-pink {
  background: var(--diary-pink-bg);
  border-color: var(--diary-pink-border);
}

.diary-card.diary-blue {
  background: var(--diary-blue-bg);
  border-color: var(--diary-blue-border);
}

.diary-card.diary-couple {
  background: var(--diary-couple-bg);
  border-color: var(--diary-pink-border);
}

.diary-card.pinned {
  box-shadow: 0 6px 24px rgba(232, 111, 130, 0.15);
}

.diary-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.diary-author-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.diary-author-name {
  font-family: var(--font-diary);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: 0.01em;
}

.diary-mood-emoji {
  font-size: 16px;
  line-height: 1;
}

.diary-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.diary-title {
  font-family: var(--font-diary);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink-primary);
  line-height: 1.38;
}

.diary-body {
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink-primary);
  white-space: pre-wrap;
  margin: 0 0 12px;
}

.diary-watermark {
  margin-top: 10px;
  text-align: right;
  font-size: 11.5px;
  color: var(--ink-muted);
  opacity: 0.6;
  font-weight: 500;
}

.diary-image-preview {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  margin-bottom: 12px;
}

.bokbok-reply-box {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-coral);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 15px;
  margin-top: 10px;
}

.bokbok-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-coral);
  margin-bottom: 4px;
}

.bokbok-reply-text {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--ink-primary);
  margin: 0;
  white-space: pre-wrap;
}

.new-entry-composer-card {
  max-width: 740px;
  margin: 0 auto 32px;
  background: var(--gradient-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.new-entry-header {
  text-align: center;
  margin-bottom: 20px;
}

.new-entry-title {
  font-family: var(--font-diary);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.new-entry-desc {
  font-size: 13.5px;
  color: var(--ink-secondary);
  margin: 0;
}

.new-entry-textarea {
  width: 100%;
  min-height: 170px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.68;
  resize: vertical;
  transition: all 0.2s var(--spring-fluid);
}

.new-entry-textarea:focus {
  outline: none;
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px var(--accent-coral-soft);
}

.new-entry-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.char-counter {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.emoji-mood-select {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  padding: 7px 12px;
  font-size: 15px;
  color: var(--ink-primary);
  cursor: pointer;
}

.view-diary-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.view-diary-filter-bar .select,
.view-diary-filter-bar .input {
  width: auto;
  min-width: 145px;
  flex: 1 1 145px;
  background: var(--bg-subtle);
  padding: 8px 12px;
  font-size: 13.5px;
}

.circle-members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.member-circle-card {
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  transition: all 0.25s var(--spring-fluid);
}

.member-circle-card.pink {
  background: var(--diary-pink-bg);
  border-color: var(--diary-pink-border);
}

.member-circle-card.blue {
  background: var(--diary-blue-bg);
  border-color: var(--diary-blue-border);
}

.member-circle-card.warm {
  background: var(--gradient-card);
  border-color: var(--accent-gold-border);
}

.hero-editorial {
  background: var(--gradient-card);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-diary);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.22;
  margin: 0 0 8px;
  color: var(--ink-primary);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-secondary);
  margin: 0 0 14px;
}

.designtific-cockpit {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  align-items: center;
}

.ring-gauge-box {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-center-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
}

.ecg-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ecg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
}

.ecg-svg {
  width: 100%;
  height: 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 4px;
}

.ecg-line {
  stroke-dasharray: 420;
  stroke-dashoffset: 0;
  animation: ecgPulse 2.4s linear infinite;
}

@keyframes ecgPulse {
  0% { stroke-dashoffset: 420; }
  100% { stroke-dashoffset: 0; }
}

.hero-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.metric-index {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 2px;
}

.metric-value {
  font-family: var(--font-diary);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.metric-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-coral);
  margin-top: 3px;
}

.hero-milestone-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.milestone-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.milestone-week-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-coral);
  color: #fff;
  white-space: nowrap;
}

.milestone-fruit {
  font-family: var(--font-diary);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-top: 2px;
}

.growth-curve-svg {
  width: 100%;
  height: 88px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xs);
  padding: 6px;
}

.scrubber-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.week-slider {
  width: 100%;
  height: 6px;
  accent-color: var(--accent-coral);
  cursor: pointer;
}

.scrubber-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.scrubber-labels span {
  white-space: nowrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.grid-sidebar {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  width: 100%;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-diary);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  color: var(--ink-primary);
  line-height: 1.28;
}

.section-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 3px 0 0;
  line-height: 1.48;
}

.btn {
  appearance: none;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--ink-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--spring-fluid);
}

.btn:hover {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary, .btn-coral {
  background: var(--accent-coral);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover, .btn-coral:hover {
  background: var(--accent-coral-hover);
  color: #FFFFFF;
}

.btn-gold, .btn-sage {
  background: var(--bg-subtle);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.btn-gold:hover, .btn-sage:hover {
  background: var(--accent-coral-soft);
  color: var(--accent-coral);
}

.btn-sm {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: var(--radius-xs);
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 4px;
}

.input, .select, .textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 14px;
  color: var(--ink-primary);
  transition: all 0.2s var(--spring-fluid);
}

.input:focus, .select:focus, .textarea:focus {
  background: var(--bg-surface);
  border-color: var(--accent-coral);
  box-shadow: 0 0 0 3px var(--accent-coral-soft);
  outline: none;
}

.textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.62;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  color: var(--ink-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--spring-fluid);
}

.filter-chip.active {
  background: var(--accent-coral);
  color: #FFFFFF;
  border-color: var(--accent-coral);
  box-shadow: var(--shadow-soft);
}

.ultrasound-hud-card {
  background: #231B1E;
  color: #FAF3EE;
  border: 1px solid rgba(232, 111, 130, 0.32);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.ultrasound-video-el {
  width: 100%;
  max-height: 260px;
  border-radius: var(--radius-sm);
  background: #140F11;
  display: block;
}

.ultrasound-sim-canvas {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 50% 15%, #2E2226 0%, #140F11 80%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.bento-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
  width: 100%;
}

.bento-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  width: 100%;
}

.facility-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-card);
  width: 100%;
  transition: all 0.25s var(--spring-fluid);
}

.facility-card:hover {
  box-shadow: var(--shadow-soft);
}

.facility-card.custom-saved {
  border-color: var(--accent-coral);
  background: linear-gradient(180deg, var(--diary-pink-bg) 0%, var(--bg-surface) 78px);
}

.facility-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.price-label {
  font-size: 10.5px;
  color: var(--ink-muted);
  font-weight: 600;
}

.price-val {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.search-controls-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
  width: 100%;
}

.shop-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.shop-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.chat-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 16px;
  height: calc(100dvh - 210px);
  min-height: 520px;
  width: 100%;
}

.chat-main {
  background: var(--gradient-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.chat-messages-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 85%;
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.62;
  font-size: 14.5px;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--diary-blue-bg);
  color: var(--ink-primary);
  border: 1px solid var(--diary-blue-border);
  border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
  align-self: flex-start;
  background: var(--diary-pink-bg);
  color: var(--ink-primary);
  border: 1px solid var(--diary-pink-border);
  border-bottom-left-radius: 4px;
}

.chat-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
}

.source-pill {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--ink-secondary);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-input-bar {
  padding: 12px;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F4A2B0 0%, #E86F82 100%);
  border-radius: var(--radius-pill);
  transition: width 0.4s var(--spring-fluid);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(58, 46, 43, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 88dvh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: var(--shadow-float);
}

.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-float);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-primary);
  display: none;
  align-items: center;
  gap: 8px;
}

.copy-toast.show {
  display: inline-flex;
  animation: fluidAppear 0.25s ease;
}

@media (max-width: 960px) {
  .hero-editorial,
  .grid-sidebar,
  .chat-shell,
  .grid-2,
  .circle-members-grid {
    grid-template-columns: 1fr;
  }

  .search-controls-grid {
    grid-template-columns: 1fr 1fr;
  }

  .search-controls-grid > input {
    grid-column: 1 / -1;
  }

  .chat-shell {
    height: auto;
  }

  .chat-main {
    height: 68dvh;
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  .nav-bar-wrap {
    display: none;
  }

  .header-inner {
    padding: 10px 14px;
    gap: 8px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-actions .btn-sm,
  .theme-switch-btn {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .status-pills .hide-mobile,
  .header-actions .hide-mobile {
    display: none;
  }

  .main-container {
    padding: 18px 12px 104px;
  }

  .date-sticky-row {
    top: 56px;
  }

  .hero-editorial {
    padding: 18px 15px;
    gap: 16px;
  }

  .designtific-cockpit {
    grid-template-columns: 102px minmax(0, 1fr);
    padding: 12px;
    gap: 10px;
  }

  .ring-gauge-box {
    width: 96px;
    height: 96px;
  }

  .hero-metrics-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .card, .new-entry-composer-card {
    padding: 16px;
  }

  .diary-card {
    padding: 16px;
  }

  .bento-list-grid,
  .facility-grid {
    grid-template-columns: 1fr;
  }

  .input, .select, .textarea, .new-entry-textarea {
    font-size: 16px;
  }

  .chat-bubble {
    max-width: 92%;
  }

  .mobile-bottom-dock {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 70;
    background: var(--bg-glass-heavy);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 5px 4px;
    box-shadow: var(--shadow-float);
  }

  .dock-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-radius: 14px;
    padding: 6px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--ink-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--spring-fluid);
  }

  .dock-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
  }

  .dock-btn.active {
    color: #FFFFFF;
    background: var(--accent-coral);
  }
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .search-controls-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-row .btn {
    flex: 1 1 auto;
  }

  .shop-item-card {
    flex-direction: column;
  }
}

.opic-cover-wrap {
  max-width: 440px;
  margin: 18px auto 32px;
  padding: 0 4px;
}

.opic-tactile-card {
  background: var(--gradient-card);
  border: 2px solid var(--border-strong);
  border-bottom-width: 5px;
  border-radius: 26px;
  padding: 32px 26px;
  box-shadow: var(--shadow-float);
  text-align: center;
}

.opic-floating-emblem {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #FFF1F3 0%, #FCE0E5 100%);
  border: 3px solid #FFFDF9;
  border-bottom-width: 6px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-primary);
  animation: gentleFloat 3s ease-in-out infinite;
}

[data-theme="dark"] .opic-floating-emblem {
  background: linear-gradient(135deg, #36252A 0%, #281B1F 100%);
  border-color: var(--border-strong);
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.opic-emblem-crown {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-coral);
  color: #FFFFFF;
  border: 2px solid #FFFDF9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  box-shadow: var(--shadow-card);
}

.opic-cta-btn {
  width: 100%;
  padding: 15px 20px;
  border-radius: 16px;
  background: var(--accent-coral);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-bottom: 4px solid #C85266;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  transition: all 0.16s ease;
}

.opic-cta-btn:hover {
  background: var(--accent-coral-hover);
}

.opic-cta-btn:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
}

.opic-secondary-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 16px;
  background: var(--bg-subtle);
  color: var(--ink-primary);
  font-size: 13.5px;
  font-weight: 700;
  border: 2px solid var(--border-hairline);
  border-bottom-width: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.16s ease;
}

.opic-secondary-btn:hover {
  background: var(--accent-coral-soft);
  border-color: var(--border-strong);
  color: var(--accent-coral);
}

.auth-google-tile {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--bg-surface);
  border: 2px solid var(--border-hairline);
  border-bottom-width: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.auth-user-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--diary-pink-bg);
  border: 2px solid var(--diary-pink-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  margin-bottom: 14px;
}

.auth-avatar-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-coral);
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-diary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compact-cover-strip {
  background: var(--gradient-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compact-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.compact-metrics-inline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 680px) {
  .compact-metrics-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chatgpt-container {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 190px);
  min-height: 540px;
  overflow: hidden;
}

.chatgpt-topbar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.chatgpt-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chatgpt-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

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

.chatgpt-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--diary-pink-bg);
  border: 1px solid var(--diary-pink-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.chatgpt-msg-box {
  max-width: 86%;
  font-size: 14.8px;
  line-height: 1.68;
  color: var(--ink-primary);
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.chatgpt-row.user .chatgpt-msg-box {
  background: var(--diary-pink-bg);
  border: 1px solid var(--diary-pink-border);
  padding: 11px 16px;
  border-radius: 20px 20px 4px 20px;
  max-width: 78%;
}

.chatgpt-row.assistant .chatgpt-msg-box {
  background: transparent;
  padding: 2px 0;
  flex: 1;
  white-space: normal;
}

.chatgpt-formatted p {
  margin: 0 0 10px;
  line-height: 1.68;
}

.chatgpt-formatted p:last-child {
  margin-bottom: 0;
}

.chatgpt-formatted ul,
.chatgpt-formatted ol {
  margin: 6px 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chatgpt-formatted li {
  line-height: 1.62;
}

.chatgpt-h3 {
  font-weight: 700;
  font-size: 15.2px;
  color: var(--ink-primary);
  margin: 12px 0 6px;
}

.chatgpt-buffering {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  font-size: 13.5px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.chatgpt-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.2px solid rgba(232, 111, 130, 0.25);
  border-top-color: var(--accent-coral);
  animation: spinRing 0.8s linear infinite;
  flex-shrink: 0;
}

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

.chatgpt-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chatgpt-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-coral);
  animation: dotPulse 1.2s infinite ease-in-out;
}

.chatgpt-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.chatgpt-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.28; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1.2); }
}

.chatgpt-composer-wrap {
  padding: 12px 16px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
}

.chatgpt-pill-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow-card);
}

.chatgpt-pill-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.45;
  resize: none;
  height: 28px;
  max-height: 96px;
  padding: 2px 0;
}

.chatgpt-pill-input:focus {
  outline: none;
}

.chatgpt-send-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--accent-coral);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.chatgpt-send-circle:hover {
  background: var(--accent-coral-hover);
}

.subagent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.subagent-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.yukah-fab {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 80;
  background: var(--accent-coral);
  color: #FFFFFF;
  border: 2px solid #FFFDF9;
  border-radius: var(--radius-pill);
  padding: 11px 18px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s var(--spring-fluid);
}

.yukah-fab:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-2px);
}

.yukah-popup {
  position: fixed;
  right: 20px;
  bottom: 76px;
  z-index: 85;
  width: 390px;
  max-width: calc(100vw - 24px);
  height: 520px;
  max-height: calc(100dvh - 140px);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.yukah-popup.open {
  display: flex;
  animation: fluidAppear 0.22s ease;
}

@media (max-width: 820px) {
  .subagent-grid {
    grid-template-columns: 1fr;
  }

  .yukah-fab {
    bottom: 78px;
    right: 12px;
    padding: 9px 14px;
    font-size: 12.5px;
  }

  .yukah-popup {
    bottom: 130px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}

.main-container {
  position: relative;
  z-index: 2;
}

.ambient-relax-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.relax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.55;
  will-change: transform;
}

.relax-orb-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(244, 162, 176, 0.36) 0%, rgba(255, 241, 243, 0.12) 60%, transparent 75%);
  animation: relaxDrift1 22s ease-in-out infinite alternate;
}

.relax-orb-2 {
  width: 580px;
  height: 580px;
  top: 22%;
  right: -140px;
  background: radial-gradient(circle, rgba(232, 111, 130, 0.24) 0%, rgba(253, 247, 242, 0.18) 60%, transparent 75%);
  animation: relaxDrift2 26s ease-in-out infinite alternate;
}

.relax-orb-3 {
  width: 640px;
  height: 640px;
  bottom: -180px;
  left: 18%;
  background: radial-gradient(circle, rgba(245, 206, 213, 0.38) 0%, rgba(250, 246, 240, 0.14) 65%, transparent 80%);
  animation: relaxDrift3 24s ease-in-out infinite alternate;
}

[data-theme="dark"] .relax-orb {
  opacity: 0.22;
}

.relax-wave-svg {
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 120%;
  height: 340px;
  opacity: 0.42;
  animation: relaxWaveSway 20s ease-in-out infinite alternate;
}

[data-theme="dark"] .relax-wave-svg {
  opacity: 0.14;
}

.relax-petal {
  position: absolute;
  border-radius: 50% 50% 50% 15%;
  background: linear-gradient(135deg, rgba(244, 162, 176, 0.38), rgba(255, 253, 249, 0.65));
  box-shadow: 0 2px 10px rgba(232, 111, 130, 0.10);
  animation: petalFloat 19s ease-in-out infinite;
}

[data-theme="dark"] .relax-petal {
  opacity: 0.25;
}

@keyframes relaxDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(90px, 55px, 0) scale(1.12); }
  100% { transform: translate3d(35px, 110px, 0) scale(0.96); }
}

@keyframes relaxDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-100px, 65px, 0) scale(1.08); }
  100% { transform: translate3d(-45px, -50px, 0) scale(1.14); }
}

@keyframes relaxDrift3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(70px, -60px, 0) scale(1.10); }
  100% { transform: translate3d(-60px, -30px, 0) scale(0.95); }
}

@keyframes relaxWaveSway {
  0% { transform: translateX(-3%) translateY(0) scaleY(1); }
  100% { transform: translateX(3%) translateY(-10px) scaleY(1.06); }
}

@keyframes petalFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.35; }
  50% { transform: translate3d(28px, -42px, 0) rotate(24deg); opacity: 0.72; }
}

@media (prefers-reduced-motion: reduce) {
  .relax-orb,
  .relax-wave-svg,
  .relax-petal {
    animation: none;
  }
}



