

:root {
  --ground: var(--bg);
  --surface: var(--panel);
  --raised: var(--panel);
  --paper: var(--ink);
  --mint: var(--accent);
  --path: #c1dab8;
  --danger: #e7a59a;
}

body { padding-top: 0; }

* { box-sizing: border-box; }
body { min-height: 100vh; background: var(--bg); color: var(--ink); }
.carnet { width: min(100% - 40px, 900px); margin: 32px auto 88px; padding-bottom: 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--mint); font-size: 14px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.intro { max-width: 53ch; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.storage-note { max-width: 270px; margin: 0; padding: 10px 12px; color: var(--path); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; line-height: 1.45; }
.status { min-height: 24px; margin: 14px 0 2px; color: var(--mint); font-size: 14px; }
.notebook { margin-top: 10px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.count { margin: 0; color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); }
.filter { min-height: 44px; padding: 0 15px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.filter.is-selected { background: var(--raised); color: var(--paper); }
.goal-list { display: grid; }
.goal { padding: 24px 4px 22px; border-bottom: 1px solid var(--line); }
.goal-topline, .note-footer, .goal-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kind { color: var(--mint); font-size: 14px; }
.done-control { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--muted); font-size: 14px; cursor: pointer; }
.done-control input { width: 20px; height: 20px; accent-color: var(--mint); }
.goal h2 { margin: 6px 0 3px; font-size: 27px; line-height: 1.2; overflow-wrap: anywhere; }
.goal.is-done h2 { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--mint); }
.goal-detail { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.goal-link { display: inline-flex; align-items: center; min-height: 44px; margin: 6px 0 14px; color: var(--path); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.note-label { display: grid; gap: 8px; color: var(--paper); font-size: 15px; }
textarea { width: 100%; min-height: 86px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--paper); font: inherit; font-size: 16px; line-height: 1.5; }
textarea::placeholder { color: #99a995; }
.note-footer { margin-top: 8px; }
.note-footer span { color: var(--mint); font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border: 1px solid var(--mint); border-radius: 8px; background: var(--mint); color: var(--ground); font: inherit; font-size: 15px; text-decoration: none; cursor: pointer; }
.button.secondary { border-color: var(--line); background: var(--raised); color: var(--paper); }
.goal-footer { justify-content: flex-end; margin-top: 12px; }
.remove-goal { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--danger); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.empty-state { padding: 42px 0; }
.empty-state h2 { margin: 0; font-size: 28px; }
.empty-state p, .filter-empty { max-width: 57ch; margin: 10px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.empty-links { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-empty { margin-top: 26px; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
[hidden] { display: none !important; }
body.preview-motion-paused *,
body.preview-motion-paused *::before,
body.preview-motion-paused *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 620px) {
  .carnet { width: min(100% - 28px, 900px); margin: 28px auto 58px; }
  .page-heading { align-items: start; flex-direction: column; gap: 16px; padding-bottom: 22px; }
  .storage-note { max-width: none; }
  .toolbar { align-items: start; flex-direction: column-reverse; }
  .filters { width: 100%; }
  .filter { flex: 1; padding-inline: 8px; }
  .goal { padding-block: 20px; }
  .goal h2 { font-size: 24px; }
  .empty-links { flex-direction: column; align-items: stretch; }
}
