/* MyJournal: soft, warm, quiet. */

:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --surface-2: #f3eee6;
  --ink: #3e3a42;
  --ink-soft: #6f6974;
  --ink-faint: #9b95a0;
  --line: #e7dfd3;
  --line-strong: #d8cfc1;

  --sage: #7f9d84;
  --sage-deep: #5f7e66;
  --sage-wash: #e6eee4;
  --lavender: #a497c4;
  --lavender-wash: #ece8f4;
  --rose: #cf9c9c;
  --rose-wash: #f6e6e3;
  --sky: #8fb0c4;
  --sky-wash: #e3edf2;
  --sand: #d6b886;
  --sand-wash: #f5ecdc;
  --peach: #eeb28b;

  --mood-1: #9f97bf;
  --mood-2: #93b3c7;
  --mood-3: #d8c39a;
  --mood-4: #9cc09a;
  --mood-5: #f0b78e;

  --blob-1: #e4dcf2;
  --blob-2: #dbe9dc;
  --blob-3: #f6e0d6;

  --shadow: 0 1px 2px rgba(80, 64, 50, .04), 0 8px 28px rgba(80, 64, 50, .06);
  --radius: 20px;
  --radius-sm: 12px;

  --font-ui: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --font-write: "Lora", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1e26;
    --surface: #2a2932;
    --surface-2: #33313c;
    --ink: #ebe6ee;
    --ink-soft: #b3acb9;
    --ink-faint: #857f8c;
    --line: #3b3946;
    --line-strong: #4a4756;

    --sage: #93b398;
    --sage-deep: #a9c8ad;
    --sage-wash: #2f3a33;
    --lavender: #b4a8d6;
    --lavender-wash: #353148;
    --rose: #d9aaaa;
    --rose-wash: #43333a;
    --sky: #9dbdd0;
    --sky-wash: #2c3a44;
    --sand: #d9c095;
    --sand-wash: #403a2f;

    --blob-1: #2e2a40;
    --blob-2: #26332c;
    --blob-3: #3a2c2e;

    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

/* Soft drifting colour behind everything */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75;
  animation: drift 40s ease-in-out infinite alternate;
}
.sky span:nth-child(1) { width: 520px; height: 520px; background: var(--blob-1); top: -160px; left: -120px; }
.sky span:nth-child(2) { width: 460px; height: 460px; background: var(--blob-2); bottom: -180px; right: -100px; animation-delay: -12s; }
.sky span:nth-child(3) { width: 360px; height: 360px; background: var(--blob-3); top: 40%; left: 55%; animation-delay: -24s; opacity: .5; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 4px; }
.gentle { font-size: .95rem; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; }
.brand svg, .login-mark { width: 28px; height: 28px; }
.brand svg circle, .login-mark circle { fill: var(--sage); stroke: none; }
.brand svg path, .login-mark path { stroke: var(--surface); stroke-width: 2; }
.nav { display: flex; gap: 4px; }
.nav a {
  display: flex; align-items: center; padding: 7px 14px; border-radius: 999px;
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--sage-wash); color: var(--sage-deep); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* Buttons */
button, .button {
  font: inherit; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; transition: background .2s, transform .15s, box-shadow .2s;
}
button:active, .button:active { transform: translateY(1px); }
.primary { background: var(--sage-deep); color: #fffdf9; box-shadow: 0 4px 14px color-mix(in srgb, var(--sage-deep) 30%, transparent); }
.primary:hover { background: color-mix(in srgb, var(--sage-deep) 88%, black); }
@media (prefers-color-scheme: dark) { .primary { color: #1f1e26; } .primary:hover { background: color-mix(in srgb, var(--sage-deep) 85%, white); } }
.soft { background: var(--sage-wash); color: var(--sage-deep); }
.soft:hover { background: color-mix(in srgb, var(--sage-wash) 80%, var(--sage)); }
.ghost { background: transparent; color: var(--ink-soft); padding: 7px 14px; }
.ghost:hover { background: var(--surface-2); color: var(--ink); }
.small { font-size: .88rem; }
.wide { width: 100%; }
.link-button { background: none; border: 0; padding: 0; color: var(--ink-faint); font-weight: 600; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--ink); }
.link-button.danger:hover { color: #b46a6a; }
.topbar form { margin: 0; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--lavender) 60%, transparent); outline-offset: 2px; border-radius: 10px; }

/* Layout */
.page { max-width: 780px; margin: 0 auto; padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 32px) 96px; }
.page:has(.ticket) { max-width: 1120px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

/* Forms */
input[type=text], input[type=password], input[type=date], input[type=search], select, textarea {
  font: inherit; color: var(--ink); width: 100%;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 14px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sage) 18%, transparent); }
::placeholder { color: var(--ink-faint); opacity: 1; }
textarea { resize: none; overflow: hidden; line-height: 1.7; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span, legend, .small-good > span { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.error { color: #b46a6a; margin: -4px 0 14px; font-size: .95rem; }
.notice { background: var(--sand-wash); border-radius: var(--radius-sm); padding: 10px 14px; margin: 16px 0; font-size: .95rem; }

/* Login */
.login-body .page { min-height: 100vh; display: grid; place-items: center; }
.login { width: min(420px, 100%); padding: 40px 32px 32px; text-align: center; }
.login-mark { width: 52px; height: 52px; margin-bottom: 12px; }
.login h1 { margin-bottom: 6px; }
.login form { margin-top: 26px; text-align: left; }

/* Day page */
.day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: center; }
.day-title { flex: 1; }
.arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); text-decoration: none; flex: none;
  transition: background .2s, color .2s;
}
.arrow:hover { background: var(--sage-wash); color: var(--sage-deep); }
.day-tools { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 26px; }
.jump input[type=date] { width: auto; padding: 6px 12px; font-size: .9rem; border-radius: 999px; background: transparent; color: var(--ink-soft); }
.chip-link { font-size: .9rem; font-weight: 600; color: var(--sage-deep); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--sage-wash); }

.entry { padding: clamp(20px, 4vw, 34px); }
.moods { margin-bottom: 18px; }
.moods legend { margin-bottom: 10px; }
.mood-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mood { position: relative; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: background .2s, border-color .2s; }
.mood input, .wave input, .status-option input { position: absolute; opacity: 0; pointer-events: none; }
.mood .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--mood); opacity: .45; transition: opacity .2s, transform .2s; }
.mood-label { font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.mood:hover .dot { opacity: .8; }
.mood:has(input:checked) { border-color: var(--mood); background: color-mix(in srgb, var(--mood) 16%, var(--surface)); }
.mood:has(input:checked) .dot { opacity: 1; transform: scale(1.1); }
.mood:has(input:checked) .mood-label { color: var(--ink); }
.mood:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--lavender) 60%, transparent); }
.mood-1 { --mood: var(--mood-1); } .mood-2 { --mood: var(--mood-2); } .mood-3 { --mood: var(--mood-3); }
.mood-4 { --mood: var(--mood-4); } .mood-5 { --mood: var(--mood-5); }

.writing textarea {
  border: 0; padding: 4px 0; background: transparent; box-shadow: none;
  font-family: var(--font-write); font-size: 1.12rem; line-height: 1.85; min-height: 280px;
  background-image: linear-gradient(transparent calc(1.85em - 1px), color-mix(in srgb, var(--line) 55%, transparent) 1px);
  background-size: 100% 1.85em; background-attachment: local;
}
.writing textarea:focus { box-shadow: none; }
.small-good { display: grid; gap: 6px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong); }
.small-good input { background: var(--sand-wash); border-color: transparent; font-family: var(--font-write); font-style: italic; }
.entry-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: .88rem; }
.save-status { color: var(--ink-faint); font-size: .88rem; transition: color .3s; }
.save-status.saving { color: var(--ink-soft); }
.save-status.saved { color: var(--sage-deep); }
.save-status.failed { color: #b46a6a; }

.day-incidents { margin-top: 36px; }
.mini-tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-tickets a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; transition: border-color .2s; }
.mini-tickets a:hover { border-color: var(--lavender); }
.mini-title { flex: 1; font-weight: 600; }

/* Status + ticket bits */
.ticket-no { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .85rem; color: var(--lavender); font-weight: 600; }
.status { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-open { background: var(--rose-wash); color: color-mix(in srgb, var(--rose) 70%, var(--ink)); }
.status-investigating { background: var(--sand-wash); color: color-mix(in srgb, var(--sand) 60%, var(--ink)); }
.status-resolved { background: var(--sage-wash); color: var(--sage-deep); }
.status-let_go { background: var(--sky-wash); color: color-mix(in srgb, var(--sky) 65%, var(--ink)); }
.kind-chip { font-size: .8rem; color: var(--ink-soft); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; }

/* Calendar */
.calendar { padding: 22px clamp(14px, 3vw, 26px) 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-head .arrow { width: 36px; height: 36px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding-bottom: 4px; }
.cal-day {
  position: relative; aspect-ratio: 1 / .9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 14px; text-decoration: none; color: var(--ink-soft); font-size: .92rem; transition: background .2s;
}
.cal-day:hover { background: var(--surface-2); }
.cal-day.other { opacity: .35; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--sage); color: var(--ink); font-weight: 700; }
.cal-day.has-entry { background: color-mix(in srgb, var(--mood, var(--lavender)) 18%, var(--surface)); color: var(--ink); }
.cal-day .dot, .legend .dot, .mood-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mood, var(--lavender)); display: inline-block; }
.inc-mark { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--rose); transform: rotate(45deg); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.legend .inc-mark { position: static; display: inline-block; }

.entry-list, .ticket-list { display: grid; gap: 14px; margin-top: 26px; }
.entry-card, .ticket-card { display: block; padding: 20px 24px; text-decoration: none; transition: transform .2s, border-color .2s; }
.entry-card:hover, .ticket-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.entry-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mood-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 2px 10px 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--mood) 18%, var(--surface)); }
.excerpt { color: var(--ink-soft); font-family: var(--font-write); font-size: .98rem; line-height: 1.65; }
.excerpt mark { background: color-mix(in srgb, var(--sand) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.good-line { margin-top: 8px; color: var(--sage-deep); font-family: var(--font-write); font-style: italic; font-size: .95rem; }

/* Incident list */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); }
.tabs a b { font-weight: 700; color: var(--ink-faint); margin-left: 4px; }
.tabs a.on { background: var(--lavender-wash); border-color: transparent; color: var(--ink); }
.ticket-card { border-left: 4px solid var(--kind, var(--line-strong)); }
.kind-argument { --kind: var(--rose); } .kind-therapy { --kind: var(--lavender); } .kind-work { --kind: var(--sky); }
.kind-family { --kind: var(--sand); } .kind-other { --kind: var(--sage); }
.ticket-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ticket-card-top .date { margin-left: auto; font-size: .85rem; }
.ticket-card h3 { margin-bottom: 6px; }
.ticket-card-foot { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: .85rem; }
.empty { padding: 32px; text-align: center; }
.empty h3 { margin-bottom: 8px; }
.empty p { max-width: 460px; margin: 0 auto; }

/* Incident ticket */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; margin-bottom: 18px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--ink); }
.calm-banner { background: var(--lavender-wash); border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 18px; font-family: var(--font-write); font-style: italic; color: var(--ink-soft); }
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.ticket-main { display: grid; gap: 14px; }
.ticket-title { padding: 18px 24px; }
input.title-input { border: 0; padding: 4px 0 0; font-family: var(--font-head); font-size: 1.55rem; font-weight: 500; background: transparent; }
input.title-input:focus { box-shadow: none; }
.section { padding: 18px 24px 20px; transition: border-color .2s; }
.section:focus-within { border-color: color-mix(in srgb, var(--lavender) 55%, var(--line)); }
.section-label { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.step { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lavender-wash); color: var(--lavender); font-weight: 700; font-size: .85rem; flex: none; margin-top: 1px; }
.section h2 { font-size: 1.1rem; }
.term { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .74rem; color: var(--ink-faint); letter-spacing: .02em; }
.section textarea { border: 0; padding: 4px 0 0 42px; background: transparent; font-family: var(--font-write); font-size: 1.02rem; min-height: 3.6em; }
.section textarea:focus { box-shadow: none; }

.ticket-side { position: sticky; top: 84px; }
.side-card { padding: 20px; }
.statuses { display: grid; gap: 6px; margin-bottom: 20px; }
.statuses legend { margin-bottom: 8px; }
.status-option { position: relative; cursor: pointer; display: block; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.status-option span { display: flex; flex-direction: column; }
.status-option b { font-size: .92rem; }
.status-option small { color: var(--ink-faint); font-size: .8rem; }
.status-option:hover { background: var(--surface-2); }
.status-option.opt-open:has(input:checked) { background: var(--rose-wash); border-color: var(--rose); }
.status-option.opt-investigating:has(input:checked) { background: var(--sand-wash); border-color: var(--sand); }
.status-option.opt-resolved:has(input:checked) { background: var(--sage-wash); border-color: var(--sage); }
.status-option.opt-let_go:has(input:checked) { background: var(--sky-wash); border-color: var(--sky); }
.status-option:has(input:focus-visible), .wave:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--lavender) 60%, transparent); }

.intensity { margin-bottom: 16px; }
.intensity legend { margin-bottom: 8px; }
.waves { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.wave { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.wave .bar { width: 100%; border-radius: 8px 8px 4px 4px; background: var(--surface-2); border: 1px solid var(--line); transition: background .2s; }
.wave-1 .bar { height: 20%; } .wave-2 .bar { height: 38%; } .wave-3 .bar { height: 56%; } .wave-4 .bar { height: 78%; } .wave-5 .bar { height: 100%; }
.wave:hover .bar { background: color-mix(in srgb, var(--sky) 30%, var(--surface)); }
.waves:has(.wave-1 input:checked) .wave-1 .bar,
.waves:has(.wave-2 input:checked) :is(.wave-1, .wave-2) .bar,
.waves:has(.wave-3 input:checked) :is(.wave-1, .wave-2, .wave-3) .bar,
.waves:has(.wave-4 input:checked) :is(.wave-1, .wave-2, .wave-3, .wave-4) .bar,
.waves:has(.wave-5 input:checked) .wave .bar { background: linear-gradient(to top, var(--sky), color-mix(in srgb, var(--lavender) 70%, var(--sky))); border-color: transparent; }
.wave-caption { font-size: .85rem; color: var(--ink-soft); min-height: 1.4em; margin-top: 4px; font-family: var(--font-write); font-style: italic; }
.side-foot { padding-top: 14px; border-top: 1px solid var(--line); }

.follow-ups { margin-top: 40px; max-width: calc(100% - 324px); }
.follow-ups h2 { margin-bottom: 4px; }
.follow-ups > .muted { margin-bottom: 18px; font-size: .95rem; }
.timeline { list-style: none; margin: 0 0 16px; padding: 0 0 0 22px; border-left: 2px solid var(--lavender-wash); display: grid; gap: 16px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--lavender); border: 3px solid var(--bg); }
.timeline-meta { display: flex; gap: 12px; align-items: center; font-size: .85rem; }
.timeline-meta form { margin: 0; }
.note-body { white-space: pre-wrap; font-family: var(--font-write); margin-top: 4px; }
.note-form { padding: 14px 18px; display: flex; gap: 12px; align-items: flex-end; }
.note-form label { flex: 1; }
.note-form textarea { border: 0; padding: 6px 0; background: transparent; font-family: var(--font-write); }
.note-form textarea:focus { box-shadow: none; }
.delete-form { margin-top: 30px; }

/* Search */
.search-bar { display: flex; gap: 10px; }
.search-bar input[type=search] { border-radius: 999px; padding: 12px 20px; }
.results-count { margin-top: 22px; }
.results-head { margin-top: 28px; margin-bottom: -12px; }

/* Breathing pause */
.breathe { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.breathe[hidden] { display: none; }
.breathe-inner { display: grid; justify-items: center; gap: 26px; text-align: center; padding: 24px; }
.breathe-circle {
  width: 220px; height: 220px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--blob-2), var(--sage) 140%);
  box-shadow: 0 0 80px color-mix(in srgb, var(--sage) 35%, transparent);
  font-family: var(--font-head); font-size: 1.25rem; color: var(--ink);
  animation: breathe 14s ease-in-out infinite;
}
@keyframes breathe {
  0% { transform: scale(.62); }
  28.6% { transform: scale(1); }      /* 4s in */
  42.9% { transform: scale(1); }      /* 2s hold */
  100% { transform: scale(.62); }     /* 8s out */
}

@media (prefers-reduced-motion: reduce) {
  .sky span, .breathe-circle { animation: none; }
  .breathe-circle { transform: none; }
  * { transition: none !important; }
}

/* Small screens */
@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-side { position: static; order: -1; }
  .follow-ups { max-width: none; }
}
@media (max-width: 640px) {
  .topbar { gap: 8px; flex-wrap: wrap; padding: 10px 16px; }
  .brand span { display: none; }
  .nav a { padding: 6px 10px; font-size: .9rem; }
  .breathe-btn { display: none; }
  .topbar-end .ghost { padding: 6px 8px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .section textarea { padding-left: 0; }
  .cal-grid { gap: 3px; }
  .cal-day { border-radius: 10px; font-size: .85rem; }
  .entry-card, .ticket-card { padding: 16px 18px; }
  .note-form { flex-direction: column; align-items: stretch; }
  .ticket-card-top .date { margin-left: 0; }
}
