:root {
  --bg: #eef8ff;
  --paper: rgba(255, 255, 255, 0.88);
  --ink: #18324b;
  --muted: #637d95;
  --line: rgba(93, 148, 190, 0.22);
  --accent: #478fc7;
  --soft: #e4f3ff;
  --warm: #8f83ca;
  --radius: 18px;
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.96) 0 7%, transparent 17%),
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.9) 0 6%, transparent 16%),
    linear-gradient(155deg, #f7fcff 0%, #e7f5ff 42%, #eef0ff 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 76%, rgba(255, 255, 255, 0.6), transparent 22%),
    radial-gradient(ellipse at 82% 62%, rgba(255, 255, 255, 0.55), transparent 24%);
  z-index: -1;
}

.topbar {
  border-bottom-color: rgba(111, 167, 209, 0.24);
  background: rgba(244, 251, 255, 0.78);
  box-shadow: 0 8px 28px rgba(73, 128, 170, 0.08);
}

.brand span { color: #286d9f; }
.brand small, .account { color: #718ba2; }
.nav { color: #5f7e97; }
.nav:hover { color: #2b6f9f; background: rgba(255, 255, 255, 0.7); border-radius: 999px; }
.nav.is-active {
  background: linear-gradient(135deg, #4d9bd1, #738acb);
  color: #fff;
  box-shadow: 0 7px 18px rgba(70, 132, 182, 0.25);
}

.account button, .account a {
  border-color: rgba(92, 148, 191, 0.26);
  background: rgba(255, 255, 255, 0.76);
  color: #315f82;
}

.intro { position: relative; }
.intro::after {
  content: "✦";
  position: absolute;
  right: 3%;
  top: 8%;
  color: rgba(117, 138, 202, 0.38);
  font-size: clamp(2rem, 5vw, 4.5rem);
}
.kicker { color: #4d89b5; }
h1, h2, h3 { color: #183b57; }
.intro h1, .page-title h1 {
  background: linear-gradient(120deg, #1e587e 10%, #578ac0 62%, #807ac0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.primary {
  background: linear-gradient(135deg, #4594cb, #7789ca);
  box-shadow: 0 10px 24px rgba(67, 132, 183, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(67, 132, 183, 0.3); }
.text-button { color: #377ba9; }

.stat-grid { border-color: rgba(93, 148, 190, 0.25); }
.stat-grid article + article { border-left-color: rgba(93, 148, 190, 0.2); }
.stat-grid strong { color: #376f9a; }

.dream-card, .vision-card, .journal-card, .mandalart-guide {
  border-color: rgba(96, 151, 192, 0.2);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(74, 126, 165, 0.1);
  backdrop-filter: blur(12px);
}
.dream-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.dream-card:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(74, 126, 165, 0.15); }
.progress { background: #dfeefa; }
.progress i { background: linear-gradient(90deg, #51a3d8, #9189d1); }
.action-list, .action { border-color: rgba(93, 148, 190, 0.23); }
.tag { border-color: #c9dfee; background: #f5fbff; color: #55758e; }
.edit { color: #367fac; }

.vision-image { background: linear-gradient(135deg, #cfeeff, #dfe3ff 62%, #f0e7ff); }
.filter-row button { border-color: #c6deef; background: rgba(255, 255, 255, 0.82); color: #55758f; }
.filter-row button.is-active { background: #4e91bf; color: #fff; }
.timeline { border-left-color: #9fc9e6; }
.milestone::before { border-color: #5aa1d1; background: #f8fcff; }

dialog { border: 1px solid rgba(100, 155, 197, 0.25); background: #f9fcff; box-shadow: 0 30px 90px rgba(35, 76, 112, 0.28); }
dialog::backdrop { background: rgba(35, 61, 89, 0.42); }
input, select, textarea { border-color: #c7ddec; color: #21435d; background: rgba(255, 255, 255, 0.94); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(78, 150, 199, 0.34); border-color: #5a9ecc; }

.mandalart-block { border-color: rgba(88, 147, 190, 0.26); background: rgba(255, 255, 255, 0.82); box-shadow: 0 12px 28px rgba(73, 127, 168, 0.09); }
.mandalart-cell { border-color: rgba(103, 158, 198, 0.19); background: rgba(255, 255, 255, 0.88); }
.mandalart-cell.area-title { background: #e1f2ff; color: #3477a7; }
.mandalart-cell.life-center { background: linear-gradient(135deg, #4a99cd, #7d8acb); color: #fff; }
.mandalart-block.is-center { border-color: #79acd0; }
.reset-mandalart { color: #756ca9; }

@media (max-width: 760px) {
  .intro::after { display: none; }
  .dream-card, .vision-card, .journal-card { backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  .primary, .dream-card { transition: none; }
}
