@font-face {
  font-family: Noisetier;
  src: local("Georgia");
}
:root {
  color-scheme: light;
  --paper: #f7f0e5;
  --cream: #fffaf3;
  --ink: #3f2b22;
  --muted: #796151;
  --brown: #754c37;
  --clay: #b9795a;
  --sand: #ecdfcc;
  --line: #e1d2bf;
  --sage: #53684f;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
}
.children-strip { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.feature-intro { display:flex; gap:15px; align-items:center; margin-bottom:18px; }
.feature-intro img { width:64px; height:64px; object-fit:contain; }
.feature-card p { margin-top:12px; }
.packing-progress { width:100%; height:12px; margin:18px 0; accent-color:var(--brown); }
.packing-group { margin:24px 0; }
.check-row { display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.check-row > div { flex:1; min-width:0; overflow-wrap:anywhere; }
.check-button { flex-shrink:0; width:44px; min-height:44px; padding:4px; font-size:24px; }
.is-done strong { text-decoration:line-through; color:var(--muted); }
.tip-list { line-height:1.7; padding-left:22px; }
.tip-list li { margin-bottom:10px; }
.guest-page { max-width:760px; margin:40px auto; padding:16px; }
.guest-page h1, .guest-page h2 { margin:24px 0 14px; }
.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.echo-journal-card { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; background:linear-gradient(135deg,var(--cream),var(--sand)); }
.echo-journal-card h2 { margin:8px 0; }
.echo-journal-card p { max-width:540px; }
.echo-stage-preview,.echo-tabs,.echo-crop-tabs { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; }
.echo-albums { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin:20px 0; }
.echo-album { padding:0; border:1px solid var(--line); background:var(--cream); border-radius:20px; overflow:hidden; color:var(--ink); text-align:left; }
.echo-cover { display:block; aspect-ratio:4/3; background:var(--sand); }
.echo-cover img { width:100%; height:100%; object-fit:cover; }
.echo-album-caption { display:grid; gap:7px; padding:16px; }
.echo-album-caption span { color:var(--muted); font-size:.8rem; }
.echo-empty { margin:22px 0; padding:30px 20px; border:1px dashed var(--line); border-radius:24px; text-align:center; }
.echo-empty-mark { font-family:Georgia,serif; font-size:42px; color:var(--clay); }
.echo-empty h3 { margin:12px 0; }
.echo-capture-options { display:grid; gap:12px; margin:22px 0; }
.echo-capture-options label { text-align:center; cursor:pointer; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.echo-canvas { display:block; width:100%; height:auto; margin:18px auto; border-radius:12px; touch-action:none; user-select:none; -webkit-user-select:none; cursor:move; }
.echo-canvas:focus-visible { outline:3px solid var(--clay); outline-offset:4px; }
.echo-gesture-help { padding:12px 14px; background:var(--sand); border-radius:14px; font-size:.85rem; text-align:center; }
.echo-crop-actions { gap:8px; }
.echo-crop-options { margin:14px 0 20px; font-size:.85rem; color:var(--muted); }
.echo-crop-options summary { cursor:pointer; padding:8px 0; }
.echo-check { display:flex; align-items:center; gap:10px; margin:12px 0; }
.echo-check input { width:20px; height:20px; }
.echo-images figure { margin:20px 0; padding:10px; border:1px solid var(--line); border-radius:18px; }
.echo-images img { display:block; max-width:100%; max-height:540px; height:auto; margin:0 auto; border-radius:10px; }
.echo-images figcaption { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0 0; font-size:.8rem; }
.echo-loading { min-height:130px; background:var(--sand); }
.echo-unavailable { min-height:100px; color:var(--muted); font-size:.8rem; }
@media(max-width:600px) { .echo-journal-card{display:block}.echo-journal-card>.btn{width:100%;margin-top:16px}.echo-images figcaption{flex-wrap:wrap} }
.relay-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:20px 0; }
.relay-tile { padding:18px; border-radius:18px; background:var(--sand); }
.relay-tile p { margin:10px 0; }
:root.night { color-scheme:dark; --paper:#211c19; --cream:#2d2520; --ink:#f5e5d2; --muted:#c9b39e; --brown:#d5a17b; --clay:#b9795a; --sand:#3b3028; --line:#66503e; }
.night .btn.primary { background:#ba8763; color:#211c19; }
.night dialog, .night input, .night textarea, .night select { background:var(--cream); color:var(--ink); }
@media(max-width:600px) { .check-row { flex-wrap:wrap; } .check-row > .btn:last-child:not(.check-button) { margin-left:56px; } .children-strip .btn { padding:9px 13px; } }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}
a {
  color: var(--brown);
  text-underline-offset: 4px;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family: Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.13;
}
h2 {
  font-size: 1.65rem;
}
h3 {
  font-size: 1.25rem;
}
p {
  line-height: 1.65;
}
small,
.small {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--brown);
}
.shell {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  padding: 38px 22px;
  background: #f3e9da;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.brand span {
  display: block;
}
.sidebar .tagline {
  padding: 13px 9px 30px;
  font-size: 0.875rem;
  color: var(--muted);
}
.nav {
  display: grid;
  gap: 9px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  min-height: 54px;
  text-align: left;
}
.nav img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}
.nav button.active {
  background: var(--cream);
  box-shadow: 0 3px 10px #59301a08;
  color: var(--ink);
  font-weight: 650;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 30px;
  display: grid;
  gap: 14px;
}
.account-btn {
  border: 1px solid #d9c5ae;
  background: transparent;
  padding: 12px;
  border-radius: 15px;
  text-align: left;
  font-size: 0.9rem;
}
.content {
  padding: 25px 44px 60px;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 38px;
  gap: 12px;
  min-height: 36px;
}
.topbar .date {
  font-size: 0.875rem;
  color: var(--muted);
}
.topbar-actions { margin-left:auto; display:flex; align-items:center; flex-wrap:nowrap; justify-content:flex-end; gap:4px; }
.sync {
  font-size: 0.875rem;
  border: 0;
  background: transparent;
  color: var(--brown);
  padding: 8px;
  border-radius: 9px;
}
.sync[data-action="sync"] { width:calc(12ch + 16px); flex-shrink:0; white-space:nowrap; }
.page-heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}
.page-heading p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 500px;
}
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 23px;
  padding: 24px;
}
.card.sand {
    background: var(--sand);
}
.stack {
  display: grid;
  gap: 18px;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 1fr);
  gap: 22px;
  align-items: start;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--brown);
  padding: 12px 18px;
  min-height: 46px;
  border-radius: 13px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn:hover {
  background: #eee0cc;
}
.btn.primary {
  background: var(--brown);
  border-color: var(--brown);
  color: white;
}
.btn.primary:hover {
  background: #5d3928;
}
.btn.subtle {
  background: transparent;
}
.btn.danger {
  color: #963d32;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.full {
  width: 100%;
}
.spacer {
  height: 18px;
}
.hero {
  padding: 0;
  overflow: hidden;
}
.hero-image {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 44%;
}
.hero-copy {
  padding: 24px;
}
.hero-copy h2 {
  margin-bottom: 8px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.tiny-button {
  border: 0;
  background: transparent;
  color: var(--brown);
  padding: 8px;
  font-size: 0.875rem;
}
.week-title {
  font-size: 1rem;
  color: var(--brown);
  font-weight: 600;
}
.pregnancy-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 17px 0;
}
.art-panel {
  background: #f8e8d0;
  border-radius: 17px;
  overflow: hidden;
}
.sprite {
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 1;
  display: block;
}
.baby-sprite {
  background-image: url("/assets/grossesse_stades.png");
  background-size: 300% 100%;
}
.fruit-sprite {
  background-image: url("/assets/grossesse_fruits.png");
  background-size: 400% 400%;
}
.child-sprite {
  background-image: url("/assets/enfant_portraits.png");
  background-size: 300% 200%;
  max-width: 310px;
  margin: auto;
}
.art-label {
  text-align: center;
  padding: 10px 8px 13px;
  font-size: 0.9rem;
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
}
.stepper button {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: var(--cream);
  font-size: 1.35rem;
}
.progress {
  height: 5px;
  background: #ddc7ac;
  overflow: hidden;
  border-radius: 5px;
  margin-top: 14px;
}
.progress-fill {
  height: 100%;
  background: var(--clay);
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}
.quick-grid .btn {
  padding: 14px 6px;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}
.entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.entry:last-child {
  border: 0;
}
.entry h3 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
}
.entry p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry time {
  font-size: 0.8rem;
  color: var(--muted);
}
.empty {
  padding: 24px 0;
  color: var(--muted);
}
.pill {
  display: inline-block;
  border-radius: 9px;
  background: var(--sand);
  font-size: 0.8rem;
  padding: 5px 9px;
  color: var(--brown);
  margin-bottom: 8px;
}
.guide-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.guide-row:first-of-type {
  border: 0;
}
.guide-row p {
  font-size: 0.9rem;
  color: var(--muted);
}
.guide-row .btn {
  margin-left: auto;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.weekday {
  text-align: center;
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.day {
  position: relative;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.9rem;
  padding: 10px 0 15px;
}
.day.selected {
  background: var(--brown);
  color: white;
}
.day.today {
  box-shadow: inset 0 0 0 1px var(--clay);
}
.day.has-events:after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clay);
}
.day.selected:after {
  background: white;
}
.auth-page {
  max-width: 1060px;
  margin: auto;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 65px;
  padding: 45px;
}
.auth-page .brand {
  margin-bottom: 30px;
}
.auth-photo {
  border-radius: 160px 160px 25px 25px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--sand);
}
.auth-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.auth-page h1 {
  margin: 18px 0;
}
.auth-page form {
  margin-top: 25px;
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
  font-size: 0.9rem;
}
.field label {
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  border: 1px solid #d2bfa8;
  border-radius: 11px;
  background: var(--cream);
  color: var(--ink);
}
.field textarea {
  min-height: 90px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.notice {
  padding: 13px 16px;
  border-radius: 12px;
  background: #e9eadc;
  color: #46513b;
  font-size: 0.875rem;
  line-height: 1.6;
}
.notice.warning {
  background: #f3e1d1;
  color: #754c37;
}
.error {
  color: #963d32;
  line-height: 1.6;
  font-size: 0.9rem;
}
.auth-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 16px;
}
.privacy-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 20px;
}
.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  padding: 0;
  color: var(--ink);
  max-width: 540px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  box-shadow: 0 20px 100px #3f2b2226;
}
dialog::backdrop {
  background: #30201570;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 16px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-head button {
  border: 0;
  background: none;
  font-size: 1.6rem;
  padding: 0 6px;
}
.dialog-body {
  padding: 24px;
}
.dialog-body h3 {
  margin: 15px 0 8px;
}
.dialog-body p {
  margin-bottom: 12px;
}
.dialog-body .actions {
  margin-top: 20px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  border-radius: 12px;
  padding: 12px 20px;
  max-width: 90%;
  z-index: 5;
  display: none;
}
#toast.visible {
  display: block;
}
.camera {
  width: 100%;
  border-radius: 12px;
  background: #21150e;
  max-height: 45dvh;
}
.search-results {
  margin-top: 18px;
}
.safety {
  border-left: 3px solid var(--clay);
  padding: 10px 16px;
  background: var(--cream);
  margin: 12px 0;
}
.mobile-brand {
  display: none;
}
.guide-intro {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}
.tag {
  font-size: 0.8rem;
  color: var(--sage);
}
@media (min-width: 1250px) {
  .content {
    padding: 30px 60px 60px;
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 15px;
  }
  .content {
    padding: 22px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .brand {
    font-size: 1.3rem;
  }
  .sidebar .tagline {
    font-size: 0.8rem;
  }
  .page-heading {
    align-items: flex-start;
  }
  .hero-image {
    height: 190px;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 3;
    padding: 6px 9px calc(6px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: var(--cream);
  }
  .sidebar > .brand,
  .sidebar > .tagline,
  .sidebar-foot {
    display: none;
  }
  .nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }
  .nav button {
    flex-direction: column;
    gap: 3px;
    padding: 5px 1px;
    min-height: 57px;
    font-size: 0.75rem;
    justify-content: center;
  }
  .nav img {
    width: 28px;
    height: 28px;
  }
  .nav button.active {
    background: var(--sand);
    box-shadow: none;
  }
  .content {
    padding: 17px 18px calc(105px + env(safe-area-inset-bottom));
  }
  .mobile-brand {
    display: flex;
    font-size: 1.5rem;
    min-width:0;
    flex:1;
  }
  .mobile-brand span { max-width:8ch; }
  .mobile-brand img {
    width: 36px;
    height: 36px;
    flex-shrink:0;
  }
  .topbar {
    margin-bottom: 28px;
    flex-wrap: nowrap;
    gap:8px;
  }
  .topbar-actions { flex-shrink:0; gap:0; }
  .topbar-actions .sync { font-size:.8rem; padding:8px 6px; }
  .topbar-actions .sync[data-action="sync"] { width:auto; }
  .topbar .date {
    display: none;
  }
  .page-heading {
    display: block;
    margin-bottom: 22px;
  }
  .page-heading > .btn {
    margin-top: 15px;
  }
  .card {
    padding: 19px;
    border-radius: 20px;
  }
  .two {
    gap: 11px;
  }
  .grid {
    gap: 17px;
  }
  .auth-page {
    grid-template-columns: 1fr;
    padding: 30px 24px;
    min-height: auto;
    gap: 25px;
    max-width: 480px;
  }
  .auth-photo {
    display: none;
  }
  .auth-page h1 {
    font-size: 2.4rem;
  }
  .auth-page .brand {
    margin-bottom: 28px;
  }
  h1 {
    font-size: 2.35rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .calendar {
    gap: 3px;
  }
  .day {
    min-height: 44px;
  }
  .guide-row {
    flex-wrap: wrap;
  }
  .guide-row .btn {
    margin-left: 0;
  }
  .dialog-body {
    padding: 20px;
  }
  #toast {
    bottom: 105px;
  }
  .form-row {
    gap: 10px;
  }
  .hero-copy {
    padding: 20px;
  }
}
@media (max-width:360px) {
  .mobile-brand { font-size:1.35rem; gap:6px; }
  .mobile-brand img { width:28px; height:28px; }
  .topbar-actions .sync { font-size:.7rem; padding:8px 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav button {
    transition: background 0.15s ease;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
.echo-journal-card { flex-wrap:wrap; }
.echo-journal-strip { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; width:100%; min-width:0; padding:4px 2px 12px; }
.echo-thumbnail { flex:0 0 230px; scroll-snap-align:start; border:1px solid var(--line); border-radius:20px; padding:8px; background:var(--cream); color:var(--ink); text-align:left; overflow:hidden; }
.echo-thumbnail img { display:block; width:100%; height:170px; object-fit:contain; background:#24211f; border-radius:13px; }
.echo-thumbnail span { display:block; padding:12px 6px 6px; font-size:.85rem; }
.echo-strip-help { width:100%; margin:0; }
.echo-slideshow { display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; border-radius:18px; }
.echo-slide { flex:0 0 100%; min-width:0; margin:0; scroll-snap-align:start; scroll-snap-stop:always; }
.echo-slide img { display:block; width:100%; height: min(58vh,580px); object-fit:contain; background:#24211f; border-radius:16px; }
.echo-slide figcaption { display:grid; gap:10px; padding:16px 3px; }
.echo-slide figcaption span { font-size:.8rem; color:var(--muted); }
@media(max-width:600px){.echo-journal-strip{margin-top:20px}.echo-thumbnail{flex-basis:78%}.echo-slide img{height:52vh}}
.baby-preview { display:flex; gap:12px; overflow-x:auto; padding:8px 0 18px; }
.baby-preview img { width:160px; height:180px; flex-shrink:0; object-fit:contain; background:var(--sand); border-radius:18px; }
