:root {
  --bg: #f6f4ee;
  --paper: #fffcf5;
  --panel: #fffef9;
  --ink: #334b43;
  --muted: #737e6e;
  --line: #e5e6da;
  --green: #446b58;
  --sage: #e9eddf;
  --orange: #d68b5f;
  --peach: #f6e7d6;
  --shadow: 0 16px 50px #5b6b4e08;
  --font: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.65 var(--font);
  transition:
    background 0.5s,
    color 0.5s;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #dda66c;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #8ba98b;
  outline-offset: 2px;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
.ico {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
small {
  font-size: 12px;
}
::selection {
  background: #e4c6a7;
  color: #334b43;
}
::view-transition-old(root) {
  animation: fade-out 0.15s ease-out;
}
::view-transition-new(root) {
  animation: appear 0.35s ease-out;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
}
.sidebar {
  padding: 34px 23px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 7px;
}
.brand img {
  width: 39px;
}
.wordmark {
  font:
    italic 28px/1 Georgia,
    serif;
  letter-spacing: -1.5px;
}
.brand small {
  display: block;
  color: var(--muted);
  font: 10px var(--font);
  letter-spacing: 2.5px;
  margin-top: 6px;
}
.side-section {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 42px 13px 13px;
}
.nav {
  display: grid;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 11px;
  color: #7c8778;
  transition: 0.2s;
  position: relative;
  font-size: 13px;
}
.nav button:hover {
  background: var(--sage);
  transform: translateX(3px);
}
.nav button.active {
  background: var(--green);
  color: #fff8e8;
  box-shadow: 0 4px 13px #355c4a15;
}
.nav button.active:after {
  content: "";
  width: 5px;
  height: 5px;
  background: #d8e2b4;
  border-radius: 100%;
  margin-left: auto;
}
.side-note {
  margin-top: auto;
  padding: 20px 13px 24px;
  position: relative;
}
.side-note:before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
  margin-bottom: 24px;
}
.side-note .ico {
  color: #acb691;
  transform: rotate(-16deg);
  width: 31px;
  height: 31px;
  margin-bottom: 13px;
}
.side-note p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.side-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.side-bottom > button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sage);
}
.side-bottom > span {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.side-bottom .ico {
  width: 16px;
}
.main {
  min-width: 0;
  padding: 0 40px 32px;
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topbar {
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs b {
  color: var(--ink);
  font-weight: 500;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.search-btn kbd {
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 36px;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  transition: 0.2s;
}
.icon-btn:hover {
  background: var(--sage);
  transform: rotate(-7deg);
}
.account {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.account .mini-avatar {
  background: #e5e9dc;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  overflow: hidden;
}
.mini-avatar svg {
  width: 100%;
  height: 100%;
}
.mobile-menu {
  display: none;
}
.preview-badge {
  font-size: 10px;
  color: #7e8b7a;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.page {
  animation: appear 0.45s ease both;
}
.page-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 13px 0 26px;
}
.page-top h1 {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1px;
}
.page-top p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.eyebrow {
  font: 10px/1.5 var(--font);
  letter-spacing: 2.8px;
  color: var(--muted);
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 10px 16px;
  background: var(--green);
  color: #fff9e9;
  font-size: 12px;
  white-space: nowrap;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px #315c4d20;
}
.btn .ico {
  width: 16px;
  height: 16px;
}
.btn.secondary {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--green);
  padding: 8px 0;
}
.btn.danger {
  background: #f3dfd6;
  color: #a55743;
}
.text-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  transition: color 0.2s;
}
.text-link .ico {
  width: 14px;
}
.text-link:hover {
  color: var(--green);
}
.hero {
  border-radius: 22px;
  background: #e9eddf;
  position: relative;
  overflow: hidden;
  min-height: 366px;
  display: grid;
  grid-template-columns: 39% 61%;
  isolation: isolate;
}
.hero-copy {
  z-index: 2;
  padding: 39px 0 35px 34px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-copy .eyebrow {
  color: #84917a;
  font-size: 9px;
  letter-spacing: 2.2px;
}
.hero-copy h1 {
  font-size: clamp(26px, 2.7vw, 41px);
  line-height: 1.5;
  letter-spacing: -1.5px;
  font-weight: 500;
  margin: 17px 0 13px;
}
.hero-copy h1 em {
  font-style: normal;
  color: #75906e;
  position: relative;
}
.hero-copy h1 em:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #c5cfa4;
  border-radius: 100%;
  transform: rotate(-2deg);
  z-index: -1;
}
.hero-copy p {
  font-size: 12px;
  color: #84917a;
  line-height: 2.1;
  margin-bottom: 24px;
}
.hero-copy .btn {
  margin-top: auto;
}
.hero-spark {
  position: absolute;
  left: 260px;
  top: 35px;
  color: #bdc49c;
  font-size: 25px;
  animation: twinkle 4s ease-in-out infinite;
}
.hero-scene {
  position: relative;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  margin-left: -25px;
}
.hero-scene .seaside {
  width: 116%;
  max-width: none;
  margin-left: -5%;
  align-self: center;
  filter: saturate(0.85);
  transition: filter 0.6s;
  overflow: visible;
}
.hero-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #e9eddf 0%, transparent 18%);
}
.scene-caption {
  position: absolute;
  bottom: 14px;
  right: 20px;
  font-size: 9px;
  color: #54796a;
  letter-spacing: 1px;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}
.scene-caption .ico {
  width: 12px;
  height: 12px;
}
.scene-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 30px;
  background: #ffffff70;
  backdrop-filter: blur(10px);
  color: #55766a;
  font-size: 10px;
}
.scene-tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6c9a7d;
}
.scene-tag button {
  padding: 0;
  display: flex;
  gap: 5px;
  align-items: center;
}
.scene-tag .ico {
  width: 13px;
  height: 13px;
}
.seaside [role="button"] {
  cursor: pointer;
  outline: none;
  transition: filter 0.2s;
}
.seaside [role="button"]:hover,
.seaside [role="button"]:focus-visible {
  filter: drop-shadow(0 0 5px #fff7bc);
}
.cloud-a {
  animation: drift 14s ease-in-out infinite;
}
.cloud-b {
  animation: drift 19s ease-in-out infinite reverse;
}
.sailboat {
  animation: boat 8s ease-in-out infinite;
  transform-origin: 695px 225px;
}
.water-lines {
  animation: water 6s ease-in-out infinite;
}
.palm {
  animation: sway 7s ease-in-out infinite;
  transform-origin: 565px 334px;
}
.seagulls {
  animation: birds 14s ease-in-out infinite;
}
.scene-sun {
  animation: sun-glow 6s ease-in-out infinite;
}
.scene-moon,
.stars,
.lighthouse-beam {
  opacity: 0;
  transition: opacity 1s;
}
.eyes {
  animation: blink 6s infinite;
  transform-origin: 50px 45px;
}
.seaside .eyes {
  animation: none;
}
.scene-night .sky-top {
  stop-color: #394e62;
}
.scene-night .sky-bottom {
  stop-color: #789492;
}
.scene-night .scene-sun {
  opacity: 0;
}
.scene-night .scene-moon,
.scene-night .stars,
.scene-night .lighthouse-beam {
  opacity: 1;
}
.scene-night .house-window {
  fill: #e9c789;
}
.scene-night .lighthouse-beam {
  animation: beacon 6s ease-in-out infinite;
  transform-origin: 220px 190px;
}
.scene-night.hero {
  background: #dce4dc;
}
.scene-night .hero-scene:after {
  background: linear-gradient(90deg, #dce4dc, transparent 18%);
}
.car.honk {
  animation: honk 0.35s ease-in-out 2;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 26px;
  margin-top: 27px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title h2 {
  font-size: 16px;
}
.section-title h2 span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 10px;
  font-weight: 400;
  letter-spacing: 1px;
}
.people-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.person-card {
  padding: 17px 9px 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 15px;
  text-align: center;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.person-card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: var(--shadow);
}
.person-card:nth-child(2n):hover {
  transform: translateY(-5px) rotate(1deg);
}
.person-avatar {
  width: 65px;
  height: 65px;
  margin: 0 auto 10px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.person-avatar svg {
  width: 100%;
  height: 100%;
  transform: translateY(3px) scale(1.03);
}
.person-card strong {
  font-size: 12px;
  font-weight: 600;
}
.person-card small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.person-card .dot {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccd3bc;
}
.family-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #a2a58f;
  font-size: 10px;
  margin-top: 12px;
}
.family-foot .ico {
  width: 12px;
  height: 12px;
}
.panel {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.mood-card {
  background: #f4edde;
  border: 0;
  overflow: hidden;
  position: relative;
}
.mood-card .eyebrow {
  font-size: 9px;
  color: #a29375;
}
.mood-card h3 {
  font-size: 15px;
  margin: 8px 0 14px;
}
.mood-options {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.mood-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 7px 3px;
  border-radius: 11px;
  transition: 0.2s;
  font-size: 10px;
  color: #a1967e;
}
.mood-option .weather {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  background: #fffbef;
  border-radius: 50%;
  color: #c9a666;
  transition: 0.3s;
}
.mood-option:hover .weather {
  transform: translateY(-5px) rotate(-8deg);
  background: #ffe3ab;
}
.mood-option .ico {
  width: 21px;
  height: 21px;
}
.mood-card .caption {
  font-size: 10px;
  color: #a59b85;
  border-top: 1px solid #e4dcc8;
  margin-top: 16px;
  padding-top: 13px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.mood-card .caption .ico {
  width: 12px;
  height: 12px;
}
.garden {
  margin-top: 27px;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.module-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 12px;
  padding: 17px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: 0.25s;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #bac8af;
}
.module-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  flex-shrink: 0;
}
.module-card strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
}
.module-card small {
  font-size: 9px;
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.peach {
  background: #f5e6d7;
  color: #b28660;
}
.green {
  background: #e7eddf;
  color: #7c9473;
}
.pink {
  background: #f4e5e4;
  color: #b98e8d;
}
.blue {
  background: #e3eaf0;
  color: #8094a5;
}
.yellow {
  background: #f3ecd6;
  color: #b4a36d;
}
.purple {
  background: #eae5f0;
  color: #9e8eac;
}
.tiny-info {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.tiny-info > .ico {
  color: #9da68c;
}
.tiny-info h3 {
  font-size: 12px;
}
.tiny-info p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.tiny-info > button {
  margin-left: auto;
}
.recent {
  margin-top: 27px;
}
.empty-small {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px dashed #d8ddcd;
  border-radius: 14px;
  padding: 23px;
  color: var(--muted);
  font-size: 12px;
}
.empty-illustration {
  font-family: Georgia, serif;
  font-size: 32px;
  color: #bcc7a5;
  transform: rotate(-12deg);
}
.empty-small p {
  font-size: 10px;
  margin-top: 4px;
}
.small-note {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
}
.small-note strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.small-note small {
  font-size: 10px;
  color: var(--muted);
}
.small-note > .ico {
  margin-left: auto;
  color: var(--muted);
  width: 14px;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 37px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #a1a593;
}
.footer .ico {
  width: 11px;
  height: 11px;
  display: inline;
  vertical-align: middle;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.chip {
  font-size: 11px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  transition: 0.2s;
}
.chip.active {
  background: var(--green);
  color: #fff9e9;
  border-color: var(--green);
}
.chip:hover {
  transform: translateY(-2px);
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.note-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 23px;
  min-height: 190px;
  background: var(--panel);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}
.note-card:hover {
  transform: translateY(-5px) rotate(-0.4deg);
  box-shadow: var(--shadow);
}
.note-card .note-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
}
.note-card h3 {
  margin-bottom: 9px;
}
.note-card p {
  font-size: 12px;
  color: var(--muted);
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.note-card .note-foot {
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 10px;
}
.empty-large {
  min-height: 290px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 30px;
}
.empty-large > .ico {
  width: 45px;
  height: 45px;
  color: #b4bfa0;
  stroke-width: 1.1;
}
.empty-large h3 {
  font-size: 17px;
}
.empty-large p {
  font-size: 12px;
  color: var(--muted);
  max-width: 410px;
}
.idea-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 25px;
}
.idea {
  padding: 20px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
}
.idea:hover {
  background: var(--sage);
}
.idea .ico {
  margin-bottom: 10px;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.family-grid .person-card {
  padding: 27px 16px;
}
.family-grid .person-avatar {
  width: 93px;
  height: 93px;
}
.family-grid .person-card strong {
  font-size: 17px;
}
.family-grid .person-card small {
  font-size: 12px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.profile-head .person-avatar {
  width: 80px;
  height: 80px;
  margin: 0;
  flex-shrink: 0;
}
.profile-head h2 {
  font-size: 23px;
}
.profile-head p {
  color: var(--muted);
  font-size: 12px;
}
.profile-head button {
  margin-left: auto;
}
.profile-body {
  white-space: pre-wrap;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 23px;
}
.subsection {
  margin-top: 28px;
}
.subsection h3 {
  margin-bottom: 15px;
}
.scope-info {
  font-size: 11px;
  color: var(--muted);
  border-radius: 10px;
  padding: 12px 15px;
  background: var(--sage);
  margin: 16px 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  border-radius: 20px;
  padding: 4px 9px;
  background: var(--sage);
  color: var(--green);
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.asset-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}
.asset-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.asset-header .module-icon {
  width: 44px;
  height: 44px;
}
.asset-header .status {
  margin-left: auto;
}
.asset-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.asset-details dt {
  font-size: 10px;
  color: var(--muted);
}
.asset-details dd {
  margin: 4px 0 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.asset-actions {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 13px;
}
.asset-actions button {
  font-size: 11px;
  color: var(--green);
  display: flex;
  gap: 5px;
  align-items: center;
}
.asset-actions .ico {
  width: 14px;
  height: 14px;
}
.connection-icon {
  font:
    22px Georgia,
    serif;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--sage);
}
.oauth-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
  padding: 22px;
  background: var(--sage);
  border-radius: 15px;
}
.oauth-flow span {
  font-size: 12px;
  text-align: center;
}
.oauth-flow b {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 7px;
}
.oauth-flow > .ico {
  color: var(--muted);
  width: 16px;
}
.file-thumb {
  height: 120px;
  background: var(--sage);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  overflow: hidden;
}
.file-thumb > .ico {
  width: 36px;
  height: 36px;
  color: var(--muted);
}
.file-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.file-card h3 {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.file-card small {
  font-size: 10px;
  color: var(--muted);
}
.file-card .file-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
.upload-zone {
  display: block;
  text-align: center;
  border: 1.5px dashed #b9c6ad;
  border-radius: 15px;
  padding: 30px;
  cursor: pointer;
  background: var(--sage);
  transition: 0.2s;
}
.upload-zone:hover {
  background: var(--peach);
}
.upload-zone .ico {
  width: 35px;
  height: 35px;
  margin: 0 auto 10px;
  color: #859a7a;
}
.upload-zone input {
  display: block;
  max-width: 100%;
  margin: 18px auto 0;
  font-size: 12px;
}
.selected-files {
  max-height: 180px;
  overflow: auto;
  font-size: 12px;
  margin-top: 14px;
}
.selected-files p {
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.preview-media {
  max-width: 100%;
  max-height: 60vh;
  display: block;
  margin: auto;
  border-radius: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border: 0;
}
.setting-row strong {
  font-size: 12px;
  display: block;
  font-weight: 500;
}
.setting-row small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.switch {
  width: 40px;
  height: 24px;
  position: relative;
  border-radius: 20px;
  background: #d8ddd0;
  flex-shrink: 0;
}
.switch:after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fffaf0;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: 0.25s;
}
.switch[aria-checked="true"] {
  background: var(--green);
}
.switch[aria-checked="true"]:after {
  transform: translateX(16px);
}
.activity-row {
  font-size: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
}
.activity-row small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.activity-row span {
  overflow-wrap: anywhere;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--panel);
  color: var(--ink);
  width: min(530px, calc(100vw - 28px));
  max-height: 90dvh;
  box-shadow: 0 30px 100px #243d3540;
  overflow: auto;
}
dialog[open] {
  animation: dialog-in 0.25s ease;
}
dialog::backdrop {
  background: #213b3555;
  backdrop-filter: blur(5px);
}
.dialog-inner {
  padding: 27px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 23px;
}
.dialog-head h2 {
  font-size: 20px;
}
.dialog-head .icon-btn {
  width: 29px;
  height: 29px;
}
.form-grid {
  display: grid;
  gap: 17px;
}
.form-grid label {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.form-grid input,
.form-grid textarea,
.form-grid select,
.search-input {
  display: block;
  margin-top: 7px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--bg);
  font-size: 13px;
  min-width: 0;
}
.form-grid textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.8;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.dialog-actions.spread {
  justify-content: space-between;
}
.form-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.form-grid .form-note {
  margin-top: -5px;
}
.search-results {
  max-height: 420px;
  overflow: auto;
  margin-top: 15px;
}
.search-results > button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 5px;
  border-bottom: 1px solid var(--line);
}
.search-results h3 {
  font-size: 13px;
}
.search-results p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.hint-box {
  padding: 18px;
  background: var(--sage);
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.9;
}
.hint-box p + p {
  margin-top: 10px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  border-radius: 30px;
  background: #365848;
  color: #fff4dc;
  box-shadow: 0 8px 30px #283f3522;
  padding: 12px 22px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  max-width: calc(100vw - 30px);
  text-align: center;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 200;
}
.particle {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 9px 0 9px 0;
  background: var(--green);
  animation: particle 1.4s ease-out forwards;
}
.login-layout {
  min-height: calc(100vh - 40px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  max-width: 1200px;
  margin: 20px auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
}
.login-art {
  background: #e4ebdc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px;
}
.login-art .seaside {
  width: 100%;
  border-radius: 18px;
}
.login-art h1 {
  font-size: 31px;
  font-weight: 500;
  text-align: center;
  margin: 15px 0;
}
.login-art p {
  font-size: 13px;
  color: #85937a;
  text-align: center;
}
.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
}
.login-form .brand {
  padding: 0;
  margin-bottom: 50px;
}
.login-form h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.login-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.login-form .btn {
  width: 100%;
  margin-top: 10px;
}
.login-form .form-note {
  margin-top: 22px;
}
.login-preview {
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
  color: var(--green);
}
body.dark {
  --bg: #1e2d28;
  --paper: #23322c;
  --panel: #283831;
  --ink: #e0e5d8;
  --muted: #9da99a;
  --line: #39483e;
  --green: #8aab89;
  --sage: #34473a;
  --shadow: 0 12px 40px #07150e16;
  --peach: #4a4435;
  color-scheme: dark;
}
.dark .btn {
  color: #223b2d;
}
.dark .btn.secondary {
  color: var(--ink);
}
.dark .hero {
  background: #34483b;
}
.dark .hero-copy .eyebrow,
.dark .hero-copy p {
  color: #b0bca3;
}
.dark .hero-copy h1 em {
  color: #c1d3b2;
}
.dark .hero-copy h1 em:after {
  background: #53674a;
}
.dark .hero-scene:after {
  background: linear-gradient(90deg, #34483b, transparent 18%);
}
.dark .hero-scene .seaside {
  filter: saturate(0.65) brightness(0.8);
}
.dark .mood-card {
  background: #403f30;
}
.dark .mood-card h3 {
  color: #e0d9ba;
}
.dark .mood-card .caption {
  border-color: #5a5540;
  color: #b7af94;
}
.dark .mood-option .weather {
  background: #57513b;
}
.dark .module-icon {
  filter: saturate(0.65) brightness(0.85);
}
.dark .nav button.active {
  color: #24392b;
}
.dark .scene-night.hero {
  background: #34483b;
}
.dark .scene-night .hero-scene:after {
  background: linear-gradient(90deg, #34483b, transparent 18%);
}
.dark .login-art {
  background: #34483b;
}
.dark .login-art p {
  color: #bcc6b1;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drift {
  50% {
    transform: translateX(24px);
  }
}
@keyframes boat {
  50% {
    transform: translate(-16px, 3px) rotate(-2deg);
  }
}
@keyframes water {
  50% {
    transform: translateX(8px);
    opacity: 0.35;
  }
}
@keyframes sway {
  50% {
    transform: rotate(2.5deg);
  }
}
@keyframes birds {
  50% {
    transform: translate(33px, -9px);
  }
}
@keyframes sun-glow {
  50% {
    filter: drop-shadow(0 0 16px #f7e1a3);
  }
}
@keyframes blink {
  0%,
  43%,
  47%,
  100% {
    transform: scaleY(1);
  }
  45% {
    transform: scaleY(0.1);
  }
}
@keyframes beacon {
  50% {
    transform: rotate(-18deg);
    opacity: 0.3;
  }
}
@keyframes honk {
  50% {
    transform: translateY(-3px);
  }
}
@keyframes twinkle {
  50% {
    transform: rotate(35deg) scale(0.7);
    opacity: 0.4;
  }
}
@keyframes particle {
  to {
    transform: translate(var(--tx), var(--ty)) rotate(280deg);
    opacity: 0;
  }
}
@media (min-width: 1500px) {
  .hero {
    min-height: 405px;
  }
  .hero-copy {
    padding-top: 45px;
  }
  .main {
    padding-inline: 52px;
  }
  .hero-copy h1 {
    font-size: 43px;
  }
}
@media (max-width: 1200px) {
  .app-shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding-inline: 15px;
  }
  .main {
    padding-inline: 27px;
  }
  .home-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 20px;
  }
  .hero-copy {
    padding-left: 27px;
  }
  .hero-copy h1 {
    font-size: 29px;
  }
  .hero {
    min-height: 325px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
  }
  .people-row {
    gap: 8px;
  }
  .person-avatar {
    width: 55px;
    height: 55px;
  }
  .module-card {
    gap: 9px;
    padding: 14px 10px;
  }
  .module-icon {
    width: 30px;
    height: 30px;
  }
  .module-card strong {
    font-size: 10px;
  }
  .search-btn kbd {
    margin-left: 10px;
  }
  .mood-card {
    padding: 20px;
  }
  .mood-options {
    gap: 2px;
  }
  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .app-shell {
    grid-template-columns: 170px 1fr;
  }
  .brand img {
    width: 31px;
  }
  .wordmark {
    font-size: 25px;
  }
  .brand small {
    font-size: 8px;
  }
  .sidebar {
    padding-inline: 10px;
  }
  .main {
    padding-inline: 23px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .home-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .home-aside .tiny-info {
    margin-top: 0;
    display: block;
  }
  .tiny-info h3 {
    margin-top: 12px;
  }
  .tiny-info > button {
    margin-top: 12px;
  }
  .hero-copy h1 {
    font-size: 26px;
  }
  .hero-copy p {
    font-size: 11px;
  }
  .hero-copy {
    padding: 28px 0 28px 24px;
  }
  .hero {
    min-height: 300px;
  }
  .hero-copy .eyebrow {
    letter-spacing: 1px;
  }
  .header-actions {
    gap: 10px;
  }
  .search-btn span,
  .search-btn kbd {
    display: none;
  }
  .family-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scene-caption {
    font-size: 8px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .scene-tag {
    right: 12px;
    top: 12px;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 225px;
    transform: translateX(-100%);
    transition: transform 0.3s;
    box-shadow: 20px 0 50px #263c3722;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open:after {
    content: "";
    position: fixed;
    inset: 0;
    background: #233b3255;
    z-index: 15;
  }
  .main {
    padding: 0 20px 25px;
  }
  .topbar {
    height: 75px;
    gap: 8px;
  }
  .mobile-menu {
    display: grid;
    width: 25px;
    height: 30px;
    padding: 0;
    place-items: center;
  }
  .breadcrumbs {
    margin-right: auto;
    font-size: 11px;
  }
  .breadcrumbs > span {
    display: none;
  }
  .header-actions {
    gap: 9px;
  }
  .header-actions > .icon-btn {
    display: none;
  }
  .account > span {
    display: none;
  }
  .preview-badge {
    font-size: 8px;
    padding: 2px 5px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 18px;
  }
  .hero-copy {
    padding: 27px 26px 5px;
  }
  .hero-copy h1 {
    font-size: 30px;
    line-height: 1.5;
    margin: 12px 0;
  }
  .hero-copy p {
    margin-bottom: 16px;
    font-size: 11px;
  }
  .hero-copy h1 br {
    display: none;
  }
  .hero-copy h1 em {
    display: block;
  }
  .hero-copy .btn {
    font-size: 11px;
    padding: 9px 13px;
  }
  .hero-scene {
    margin: 0;
    min-height: 220px;
    margin-top: -23px;
    pointer-events: auto;
  }
  .hero-scene .seaside {
    width: 100%;
    margin: 0;
  }
  .hero-scene:after,
  .scene-night .hero-scene:after,
  .dark .hero-scene:after,
  .dark .scene-night .hero-scene:after {
    background: linear-gradient(#e9eddf 0, transparent 20%);
    inset: 0;
  }
  .scene-night .hero-scene:after {
    background: linear-gradient(#dce4dc, transparent 20%);
  }
  .dark .hero-scene:after,
  .dark .scene-night .hero-scene:after {
    background: linear-gradient(#34483b, transparent 20%);
  }
  .scene-tag {
    top: 42px;
  }
  .scene-caption {
    bottom: 8px;
    right: 12px;
  }
  .hero-spark {
    left: auto;
    right: 30px;
    top: 30px;
  }
  .home-grid {
    margin-top: 23px;
  }
  .section-title h2 {
    font-size: 15px;
  }
  .section-title h2 span {
    font-size: 8px;
    letter-spacing: 0.3px;
    margin-left: 7px;
  }
  .person-card {
    padding: 13px 4px 11px;
  }
  .person-avatar {
    width: 53px;
    height: 53px;
  }
  .person-card strong {
    font-size: 11px;
  }
  .person-card small {
    font-size: 9px;
  }
  .person-card .dot {
    right: 9px;
    top: 10px;
  }
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .module-card {
    padding: 15px 12px;
  }
  .module-card strong {
    font-size: 11px;
  }
  .home-aside {
    grid-template-columns: 1fr;
  }
  .home-aside .tiny-info {
    display: flex;
    padding: 18px;
  }
  .tiny-info h3 {
    margin: 0;
  }
  .tiny-info > button {
    margin-top: 0;
  }
  .mood-options {
    justify-content: space-around;
  }
  .mood-option .weather {
    width: 43px;
    height: 43px;
  }
  .mood-card {
    padding: 23px;
  }
  .mood-card .caption {
    justify-content: center;
  }
  .footer {
    margin-top: 28px;
    gap: 12px;
    font-size: 9px;
  }
  .footer > span:last-child {
    max-width: 150px;
    text-align: right;
  }
  .page-top {
    align-items: flex-start;
    margin: 10px 0 25px;
  }
  .page-top h1 {
    font-size: 25px;
  }
  .page-top p {
    font-size: 11px;
    max-width: 230px;
  }
  .page-top .btn {
    font-size: 10px;
    padding: 9px 11px;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .idea-row {
    grid-template-columns: 1fr;
  }
  .idea {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .idea .ico {
    margin: 0;
  }
  .family-grid {
    gap: 12px;
  }
  .family-grid .person-avatar {
    width: 80px;
    height: 80px;
  }
  .family-grid .person-card {
    padding: 22px 12px;
  }
  .family-grid .person-card strong {
    font-size: 15px;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .asset-card {
    padding: 20px;
  }
  .profile-head {
    gap: 12px;
    flex-wrap: wrap;
  }
  .profile-head button {
    margin-left: 0;
  }
  .oauth-flow {
    gap: 5px;
    padding: 16px 8px;
  }
  .oauth-flow span {
    font-size: 10px;
  }
  .oauth-flow b {
    font-size: 8px;
  }
  .oauth-flow > .ico {
    width: 12px;
  }
  .dialog-inner {
    padding: 22px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
  .login-layout {
    display: block;
    margin: 0;
    border-radius: 0;
    min-height: 100dvh;
  }
  .login-art {
    padding: 24px;
  }
  .login-art .seaside {
    max-height: 240px;
  }
  .login-art h1 {
    font-size: 22px;
  }
  .login-form {
    padding: 35px;
  }
  .login-form .brand {
    margin-bottom: 25px;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
body.reduced *,
body.reduced *:before,
body.reduced *:after {
  animation: none !important;
  transition: none !important;
}
body.reduced .particle {
  display: none;
}
.hero-copy h1 em {
  display: block;
}
.hero-scene:after {
  left: -12%;
}
.person-card.selected-person {
  border-color: #8ca781;
  box-shadow: 0 0 0 2px #8ca78118;
}
.scope-info {
  display: flex;
  gap: 9px;
  align-items: center;
}
.scope-info > .ico {
  width: 15px;
  height: 15px;
}
.mood-option {
  color: #80745b;
}
.mood-card .caption {
  color: #877b63;
}
.hero-copy p {
  color: #6c7d65;
}
.module-card small,
.person-card small,
.note-card .note-foot,
.file-card small {
  font-size: 11px;
}
.scene-caption {
  font-size: 10px;
}
.hero-copy .eyebrow {
  font-size: 10px;
}
@media (max-width: 700px) {
  .hero-scene:after {
    left: 0;
  }
  .hero-copy h1 {
    font-size: 29px;
  }
  .hero-copy h1 br {
    display: block;
  }
  .hero-copy h1 em {
    display: inline;
  }
  .hero-copy {
    padding-bottom: 14px;
  }
  .hero-scene {
    margin-top: 0;
  }
  .scene-tag {
    top: 16px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
  }
  .scene-caption {
    font-size: 9px;
  }
}
.scene-night .seaside {
  --window-color: #ffd792;
}
.scene-night use[href="#window"] {
  filter: drop-shadow(0 0 3px #f6d18580);
}
.dark .mood-option {
  color: #c2bda2;
}
.dark .mood-card .caption {
  color: #c2bda2;
}
.scene-family [data-person]:hover {
  filter: drop-shadow(0 -3px 3px #fff4c2);
}
:root { color-scheme: light; }
.consent-card { max-width: 620px; margin: 8vh auto; padding: 32px; overflow-wrap: anywhere; }
.consent-card p { line-height: 1.9; }
.record-data { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; }
.login-error { color: #a84f42; min-height: 24px; }
