@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,0..100&family=Lexend:wght@300..700&family=Caveat:wght@500&display=swap");

/* ---------- base ---------- */
html, body { margin: 0; }
body { background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 15px; line-height: 22px; -webkit-font-smoothing: antialiased; }
.nl-root, .nl-root * { box-sizing: border-box; }
.nl-display { font-family: var(--font-display); font-variation-settings: "SOFT" 100; }
.nl-num { font-variant-numeric: tabular-nums; }
.nl-pad { padding: var(--space-4); }
.nl-row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.nl-col { display: flex; flex-direction: column; gap: var(--space-3); }
.nl-muted { color: var(--ink-muted); }
.nl-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nl-focus:focus-visible, .nl-btn:focus-visible, .nl-iconbtn:focus-visible, .nl-chip:focus-visible, .nl-seg button:focus-visible,
.nl-choice:focus-visible, .nl-tile:focus-visible, .nl-switch:focus-visible, .nl-step button:focus-visible, .nl-nav button:focus-visible,
.nl-swatch:focus-visible, .nl-tabs button:focus-visible, .nl-listrow:focus-visible, .nl-input:focus-visible, .nl-fab:focus-visible {
  outline: 2px solid var(--tide); outline-offset: 2px;
}

/* ---------- icon ---------- */
.nl-icon { display: inline-block; flex: none; vertical-align: middle; }

/* ---------- button ---------- */
.nl-btn { font: inherit; font-size: 15px; font-weight: 500; line-height: 20px; letter-spacing: .005em; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--size-touch); padding: 0 var(--space-5); border-radius: var(--radius-pill); border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
.nl-btn:active { transform: scale(.98); }
.nl-btn-primary { background: var(--tide); color: var(--on-tide); }
.nl-btn-primary:hover { background: var(--tide-strong); }
.nl-btn-secondary { background: var(--surface-raised); color: var(--tide); border-color: var(--line-strong); }
.nl-btn-tonal { background: var(--tide-soft); color: var(--tide-strong); }
.nl-btn-ghost { background: transparent; color: var(--tide); padding: 0 var(--space-3); }
.nl-btn-urgent { background: var(--urgent); color: var(--on-urgent); }
.nl-btn-sm { min-height: 36px; padding: 0 var(--space-4); font-size: 14px; }
.nl-btn-lg { min-height: 56px; padding: 0 var(--space-6); font-size: 16px; }
.nl-btn-block { display: flex; width: 100%; }
.nl-btn[disabled] { background: var(--surface-sunken); color: var(--ink-faint); border-color: transparent; cursor: not-allowed; transform: none; }
.nl-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: nl-spin .8s linear infinite; }
@keyframes nl-spin { to { transform: rotate(360deg); } }

/* ---------- icon button ---------- */
.nl-iconbtn { width: var(--size-touch); height: var(--size-touch); border-radius: 50%; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; font: inherit; }
.nl-iconbtn:hover { background: var(--surface-sunken); }
.nl-iconbtn-tonal { background: var(--tide-soft); color: var(--tide-strong); }
.nl-iconbtn-outline { border: 1.5px solid var(--line-strong); }

/* ---------- category helpers ---------- */
.nl-cat-feed { --cat: var(--feed); --cat-soft: var(--feed-soft); }
.nl-cat-sleep { --cat: var(--sleep); --cat-soft: var(--sleep-soft); }
.nl-cat-nappy { --cat: var(--nappy); --cat-soft: var(--nappy-soft); }
.nl-cat-growth { --cat: var(--growth); --cat-soft: var(--growth-soft); }
.nl-cat-health { --cat: var(--health); --cat-soft: var(--health-soft); }
.nl-cat-care { --cat: var(--care); --cat-soft: var(--care-soft); }
.nl-cat-mum { --cat: var(--mum); --cat-soft: var(--mum-soft); }
.nl-cat-tide { --cat: var(--tide); --cat-soft: var(--tide-soft); }
.nl-cat-reassure { --cat: var(--reassure); --cat-soft: var(--reassure-soft); }

/* ---------- quick log tile ---------- */
.nl-tile { font: inherit; text-align: left; color: var(--ink); background: var(--cat-soft); border: 0; border-radius: var(--radius-lg); padding: var(--space-4); min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3); cursor: pointer; width: 100%; }
.nl-tile-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-raised); color: var(--cat); display: grid; place-items: center; }
.nl-tile-label { font-size: 15px; font-weight: 500; line-height: 20px; }
.nl-tile-meta { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
.nl-tile-head { display: flex; justify-content: space-between; align-items: flex-start; }
.nl-tile-plus { color: var(--cat); }

/* ---------- fab ---------- */
.nl-fab { font: inherit; font-weight: 500; font-size: 15px; height: var(--size-fab); min-width: var(--size-fab); border-radius: 22px; border: 0; background: var(--tide); color: var(--on-tide); box-shadow: var(--shadow-2); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); padding: 0 var(--space-5); cursor: pointer; }
.nl-fab-round { padding: 0; width: var(--size-fab); }

/* ---------- chip ---------- */
.nl-chip { font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer; position: relative; }
.nl-chip::after { content: ""; position: absolute; inset: -6px 0; }
.nl-chip[aria-pressed="true"] { background: var(--tide-soft); border-color: var(--tide); color: var(--tide-strong); }
.nl-chip-cat { background: var(--cat-soft); border-color: transparent; color: var(--cat); }

/* ---------- segmented ---------- */
.nl-seg { display: flex; background: var(--surface-sunken); border-radius: var(--radius-pill); padding: 4px; gap: 4px; }
.nl-seg button { flex: 1; font: inherit; font-size: 14px; font-weight: 500; min-height: 40px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); }
.nl-seg button[aria-checked="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- text field ---------- */
.nl-field { display: flex; flex-direction: column; gap: 6px; }
.nl-field-label { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink); }
.nl-field-wrap { min-width: 0; display: flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-4); background: var(--surface-raised); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); }
.nl-field-wrap:focus-within { border-color: var(--tide); box-shadow: 0 0 0 1px var(--tide); }
.nl-field-error .nl-field-wrap { border-color: var(--urgent); }
.nl-input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; outline: none; padding: 0; }
.nl-input::placeholder { color: var(--ink-faint); }
.nl-field-suffix { color: var(--ink-muted); font-size: 15px; }
.nl-field-hint { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
.nl-field-error .nl-field-hint { color: var(--urgent); }

/* ---------- stepper ---------- */
.nl-step { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); background: var(--surface-raised); border: 1.5px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-3); }
.nl-step button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--tide-soft); color: var(--tide-strong); display: grid; place-items: center; cursor: pointer; }
.nl-step-val { text-align: center; }
.nl-step-num { font-size: 30px; line-height: 36px; font-weight: 400; font-variant-numeric: tabular-nums; }
.nl-step-unit { font-size: 15px; color: var(--ink-muted); margin-left: 4px; }
.nl-step-sub { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }

/* ---------- switch ---------- */
.nl-switchrow { display: flex; align-items: center; gap: var(--space-3); justify-content: space-between; min-height: 56px; }
.nl-switchrow-text { flex: 1; min-width: 0; }
.nl-switch { width: 52px; height: 32px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface-sunken); position: relative; cursor: pointer; flex: none; padding: 0; }
.nl-switch::before { content: ""; position: absolute; top: 5px; left: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--line-strong); transition: all .18s; }
.nl-switch[aria-checked="true"] { background: var(--tide); border-color: var(--tide); }
.nl-switch[aria-checked="true"]::before { left: 26px; top: 3px; width: 22px; height: 22px; background: var(--on-tide); }

/* ---------- choice card ---------- */
.nl-choice { font: inherit; color: var(--ink); text-align: left; width: 100%; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1.5px solid var(--line); cursor: pointer; }
.nl-choice[aria-checked="true"] { border-color: var(--tide); background: var(--tide-soft); box-shadow: 0 0 0 1px var(--tide); }
.nl-choice-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--cat-soft, var(--tide-soft)); color: var(--cat, var(--tide)); display: grid; place-items: center; flex: none; }
.nl-choice-body { flex: 1; min-width: 0; }
.nl-choice-title { font-weight: 500; font-size: 16px; line-height: 22px; }
.nl-choice-desc { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.nl-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.nl-choice[aria-checked="true"] .nl-radio { border-color: var(--tide); }
.nl-choice[aria-checked="true"] .nl-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tide); }

/* ---------- card ---------- */
.nl-card { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: var(--space-3); }
.nl-card-flat { box-shadow: none; border: 1px solid var(--line); }
.nl-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.nl-card-title { font-size: 17px; font-weight: 500; line-height: 24px; margin: 0; }
.nl-overline { font-size: 11.5px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- since card ---------- */
.nl-since { background: var(--cat-soft); border-radius: var(--radius-xl); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.nl-since-top { display: flex; align-items: center; justify-content: space-between; }
.nl-since-val { font-size: 40px; line-height: 44px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.nl-since-val small { font-size: 18px; color: var(--ink-muted); margin: 0 6px 0 2px; font-weight: 400; }
.nl-since-detail { font-size: 14px; line-height: 20px; color: var(--ink); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.nl-since-next { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }

/* ---------- stat tile / ring ---------- */
.nl-stat { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-1); min-width: 0; }
.nl-stat-head { display: flex; align-items: center; gap: 6px; color: var(--cat); font-size: 13px; font-weight: 500; }
.nl-stat-val { font-size: 30px; line-height: 36px; font-variant-numeric: tabular-nums; color: var(--ink); }
.nl-stat-val small { font-size: 15px; color: var(--ink-muted); margin-left: 3px; }
.nl-stat-foot { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
.nl-bar { height: 6px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.nl-bar > i { display: block; height: 100%; border-radius: 3px; background: var(--cat); }
.nl-ring { position: relative; display: inline-grid; place-items: center; }
.nl-ring svg { transform: rotate(-90deg); }
.nl-ring-track { stroke: var(--surface-sunken); }
.nl-ring-fill { stroke: var(--cat); transition: stroke-dashoffset .4s; }
.nl-ring-label { position: absolute; text-align: center; }
.nl-ring-num { font-size: 26px; line-height: 28px; font-variant-numeric: tabular-nums; }
.nl-ring-of { font-size: 12px; color: var(--ink-muted); line-height: 16px; }

/* ---------- feed timer ---------- */
.nl-timer { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.nl-timer-clock { font-size: 56px; line-height: 60px; font-weight: 300; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nl-timer-sub { font-size: 13px; color: var(--ink-muted); margin-top: -8px; }
.nl-sides { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); width: 100%; }
.nl-side { font: inherit; color: var(--ink); border: 1.5px solid var(--line); background: var(--surface-raised); border-radius: var(--radius-xl); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; align-items: center; gap: var(--space-2); cursor: pointer; min-height: 132px; justify-content: center; }
.nl-side[aria-pressed="true"] { background: var(--feed-soft); border-color: var(--feed); }
.nl-side-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-sunken); color: var(--ink); }
.nl-side[aria-pressed="true"] .nl-side-btn { background: var(--feed); color: var(--surface-raised); }
.nl-side-name { font-weight: 500; font-size: 15px; }
.nl-side-time { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.nl-side-hint { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--feed); }

/* ---------- event row ---------- */
.nl-event { display: grid; grid-template-columns: 56px 36px 1fr; gap: var(--space-3); align-items: start; padding: var(--space-2) 0; position: relative; }
.nl-event-time { font-size: 13px; line-height: 36px; color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: right; }
.nl-event-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--cat-soft); color: var(--cat); display: grid; place-items: center; position: relative; z-index: 1; }
.nl-event-line::before { content: ""; position: absolute; left: calc(56px + var(--space-3) + 17px); top: 44px; bottom: -8px; width: 2px; background: var(--line); }
.nl-event-body { min-width: 0; padding-top: 2px; }
.nl-event-title { font-size: 15px; line-height: 20px; font-weight: 500; }
.nl-event-detail { font-size: 13.5px; line-height: 20px; color: var(--ink-muted); }
.nl-event-by { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--ink-muted); }

/* ---------- avatar / badge ---------- */
.nl-avatar { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 600; color: var(--ink); background: var(--cat-soft, var(--tide-soft)); flex: none; border: 2px solid var(--surface-raised); }
.nl-avatars { display: inline-flex; }
.nl-avatars .nl-avatar + .nl-avatar { margin-left: -8px; }
.nl-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; line-height: 16px; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink); white-space: nowrap; }
.nl-badge-reassure { background: var(--reassure-soft); color: var(--reassure); }
.nl-badge-attention { background: var(--attention-soft); color: var(--attention); }
.nl-badge-urgent { background: var(--urgent-soft); color: var(--urgent); }
.nl-badge-tide { background: var(--tide-soft); color: var(--tide-strong); }
.nl-badge-cat { background: var(--cat-soft); color: var(--cat); }

/* ---------- alerts ---------- */
.nl-alert { --a: var(--tide); --a-soft: var(--tide-soft); background: var(--a-soft); border-radius: var(--radius-lg); padding: var(--space-4); display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); color: var(--ink); }
.nl-alert-reassure { --a: var(--reassure); --a-soft: var(--reassure-soft); }
.nl-alert-attention { --a: var(--attention); --a-soft: var(--attention-soft); }
.nl-alert-urgent { --a: var(--urgent); --a-soft: var(--urgent-soft); }
.nl-alert-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-raised); color: var(--a); display: grid; place-items: center; }
.nl-alert-level { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--a); line-height: 16px; }
.nl-alert-title { font-size: 16px; font-weight: 500; line-height: 22px; margin: 2px 0 4px; }
.nl-alert-body { font-size: 14px; line-height: 21px; color: var(--ink); }
.nl-alert-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-3); }
.nl-alert-src { font-size: 12px; line-height: 16px; color: var(--ink-muted); margin-top: var(--space-2); }

/* ---------- snackbar ---------- */
.nl-snack { display: flex; align-items: center; gap: var(--space-3); background: var(--ink); color: var(--surface-raised); border-radius: var(--radius-md); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); box-shadow: var(--shadow-2); font-size: 14px; min-height: 52px; }
.nl-snack span { flex: 1; }
.nl-snack button { font: inherit; font-weight: 600; font-size: 14px; color: var(--surface-raised); background: transparent; border: 0; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-pill); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- stool picker ---------- */
.nl-swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.nl-swatch { font: inherit; color: var(--ink); background: var(--surface-raised); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: var(--space-2); display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-height: 88px; justify-content: center; }
.nl-swatch[aria-checked="true"] { border-color: var(--tide); box-shadow: 0 0 0 1px var(--tide); background: var(--tide-soft); }
.nl-swatch-chip { width: 34px; height: 34px; border-radius: 50% 50% 46% 54%; border: 1px solid #00000026; }
.nl-swatch-name { font-size: 13px; line-height: 16px; font-weight: 500; text-align: center; }
.nl-swatch-flag { font-size: 11px; line-height: 14px; font-weight: 600; color: var(--urgent); display: inline-flex; gap: 2px; align-items: center; }
.nl-swatch-note { font-size: 11px; line-height: 14px; color: var(--ink-muted); text-align: center; }

/* ---------- charts ---------- */
.nl-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.nl-bars-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.nl-bars-bar { width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: var(--cat-soft); position: relative; }
.nl-bars-bar.is-today { background: var(--cat); }
.nl-bars-lbl { font-size: 11.5px; color: var(--ink-muted); }
.nl-bars-target { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--line-strong); }
.nl-chart text { fill: var(--ink-muted); font-family: var(--font-sans); font-size: 10.5px; }
.nl-chart .grid { stroke: var(--line); stroke-width: 1; }
.nl-chart .band-outer { fill: var(--growth-soft); }
.nl-chart .band-inner { fill: var(--growth-soft); opacity: .9; }
.nl-chart .p-line { stroke: var(--growth); stroke-width: 1; stroke-dasharray: 3 3; fill: none; opacity: .7; }
.nl-chart .p50 { stroke-dasharray: none; opacity: .55; }
.nl-chart .baby { stroke: var(--tide); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nl-chart .pt { fill: var(--surface-raised); stroke: var(--tide); stroke-width: 2; }
.nl-chart .pt-last { fill: var(--tide); }
.nl-chart .p-lbl { fill: var(--growth); font-weight: 500; }

/* ---------- app bar / nav / tabs ---------- */
.nl-appbar { display: flex; align-items: center; gap: var(--space-1); min-height: 64px; padding: 0 var(--space-2); }
.nl-appbar-text { flex: 1; min-width: 0; padding: 0 var(--space-2); }
.nl-appbar-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 28px; font-weight: 500; margin: 0; }
.nl-appbar-sub { font-size: 12.5px; line-height: 16px; color: var(--ink-muted); }
.nl-appbar-large { flex-direction: column; align-items: stretch; padding: var(--space-2) var(--space-4) var(--space-3); }
.nl-nav { display: flex; background: var(--surface-raised); border-top: 1px solid var(--line); height: var(--size-nav); padding: 6px var(--space-2) 8px; }
.nl-nav button { flex: 1; min-width: 0; padding: 0; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-muted); border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
.nl-nav-ind { width: 56px; height: 32px; border-radius: 16px; display: grid; place-items: center; }
.nl-nav button[aria-current="page"] { color: var(--ink); }
.nl-nav button[aria-current="page"] .nl-nav-ind { background: var(--tide-soft); color: var(--tide-strong); }
.nl-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); overflow-x: auto; }
.nl-tabs button { font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-muted); background: transparent; border: 0; padding: 0 var(--space-3); min-height: 48px; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.nl-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tide); }

/* ---------- sheet ---------- */
.nl-sheet { background: var(--surface-raised); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-sheet); padding: var(--space-2) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.nl-sheet-grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 0; }
.nl-sheet-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 24px; line-height: 30px; font-weight: 500; margin: 0; }
.nl-scrim { background: var(--scrim); }

/* ---------- list ---------- */
.nl-list { background: var(--surface-raised); border-radius: var(--radius-lg); overflow: hidden; }
.nl-listrow { font: inherit; color: var(--ink); text-align: left; width: 100%; display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: var(--space-3) var(--space-4); background: transparent; border: 0; cursor: pointer; }
.nl-list .nl-listrow + .nl-listrow { border-top: 1px solid var(--line); }
.nl-listrow-lead { width: 40px; height: 40px; border-radius: 12px; background: var(--cat-soft, var(--surface-sunken)); color: var(--cat, var(--ink)); display: grid; place-items: center; flex: none; }
.nl-listrow-text { flex: 1; min-width: 0; }
.nl-listrow-title { font-size: 15px; line-height: 20px; font-weight: 500; }
.nl-listrow-sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.nl-listrow-trail { color: var(--ink-muted); font-size: 13px; display: flex; align-items: center; gap: var(--space-1); }

/* ---------- progress dots ---------- */
.nl-dots { display: flex; gap: 6px; align-items: center; }
.nl-dots i { height: 6px; width: 6px; border-radius: 3px; background: var(--line-strong); }
.nl-dots i.is-done { background: var(--tide); }
.nl-dots i.is-current { width: 24px; background: var(--tide); }

/* ---------- empty state ---------- */
.nl-empty { text-align: center; padding: var(--space-8) var(--space-4); display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.nl-empty-art { width: 88px; height: 88px; border-radius: 50%; background: var(--tide-soft); color: var(--tide); display: grid; place-items: center; }
.nl-empty-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 28px; font-weight: 500; margin: 0; }
.nl-empty-body { color: var(--ink-muted); max-width: 30ch; margin: 0; }

/* ---------- handover ---------- */
.nl-handover-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.nl-handover-item { background: var(--cat-soft); border-radius: var(--radius-md); padding: var(--space-3) var(--space-2); text-align: center; color: var(--cat); }
.nl-handover-num { font-size: 22px; line-height: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.nl-handover-lbl { font-size: 12px; line-height: 16px; color: var(--ink); }

/* ---------- appointment / vaccine ---------- */
.nl-appt { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--space-3); align-items: center; background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-1); }
.nl-appt-date { background: var(--cat-soft); color: var(--cat); border-radius: var(--radius-md); text-align: center; padding: 6px 0; }
.nl-appt-mon { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 14px; }
.nl-appt-day { font-size: 22px; line-height: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }
.nl-appt-title { font-size: 15px; font-weight: 500; line-height: 20px; }
.nl-appt-meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.nl-vax { display: flex; flex-direction: column; }
.nl-vax-item { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); padding-bottom: var(--space-4); position: relative; }
.nl-vax-item:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.nl-vax-item.is-done:not(:last-child)::before { background: var(--reassure); }
.nl-vax-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--surface-raised); color: var(--surface-raised); }
.nl-vax-item.is-done .nl-vax-mark { background: var(--reassure); border-color: var(--reassure); color: var(--surface-raised); }
.nl-vax-item.is-next .nl-vax-mark { border-color: var(--care); color: var(--care); }
.nl-vax-age { font-size: 14px; font-weight: 500; line-height: 20px; display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.nl-vax-list { font-size: 13px; line-height: 19px; color: var(--ink-muted); }

/* ---------- plan card ---------- */
.nl-plan { background: var(--surface-raised); border: 1.5px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); position: relative; }
.nl-plan.is-featured { border-color: var(--tide); box-shadow: 0 0 0 1px var(--tide), var(--shadow-1); }
.nl-plan-name { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 28px; font-weight: 500; }
.nl-plan-price { font-size: 30px; line-height: 34px; font-variant-numeric: tabular-nums; }
.nl-plan-price small { font-size: 14px; color: var(--ink-muted); }
.nl-plan-feat { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); font-size: 14px; line-height: 20px; }
.nl-plan-feat li { display: flex; gap: var(--space-2); align-items: flex-start; }
.nl-plan-feat .nl-icon { color: var(--reassure); margin-top: 1px; }
.nl-plan-tag { position: absolute; top: -12px; right: var(--space-4); }

/* ---------- article ---------- */
.nl-article { display: flex; gap: var(--space-3); align-items: center; background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-1); }
.nl-article-art { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--cat-soft); color: var(--cat); display: grid; place-items: center; flex: none; }
.nl-article-title { font-size: 15px; line-height: 20px; font-weight: 500; }
.nl-article-meta { font-size: 12.5px; line-height: 18px; color: var(--ink-muted); display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap; }

/* ---------- disclaimer ---------- */
.nl-disclaimer { display: flex; gap: var(--space-2); font-size: 12.5px; line-height: 18px; color: var(--ink-muted); padding: var(--space-3); border-radius: var(--radius-md); background: var(--surface-sunken); }

/* ---------- phone frame & screens ---------- */
.nl-stage { display: flex; justify-content: center; padding: var(--space-4) 0; background: var(--surface); }
.nl-phone { width: 360px; height: 760px; border-radius: 44px; border: 10px solid var(--device); background: var(--surface); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow-2); font-family: var(--font-sans); }
.nl-status { height: 32px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.nl-status-icons { display: flex; gap: 5px; align-items: center; }
.nl-screen { flex: 1; overflow: hidden; display: flex; flex-direction: column; position: relative; min-height: 0; }
.nl-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); scrollbar-width: none; }
.nl-scroll::-webkit-scrollbar { display: none; }
.nl-scroll > *, .nl-screen > *, .nl-col > * { flex-shrink: 0; }
.nl-phone.is-full { height: auto; min-height: 760px; }
.nl-phone.is-full .nl-screen, .nl-phone.is-full .nl-scroll { overflow: visible; }
.nl-gesture { height: 20px; flex: none; display: grid; place-items: center; background: inherit; }
.nl-gesture i { width: 108px; height: 4px; border-radius: 2px; background: var(--ink); opacity: .35; }
.nl-section-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--space-2); }
.nl-section-h h2 { font-size: 17px; font-weight: 500; line-height: 24px; margin: 0; }
.nl-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3); }
.nl-grid2 > * { min-width: 0; }
.nl-has-fab { padding-bottom: 96px !important; }
.nl-greet { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 30px; line-height: 34px; font-weight: 500; margin: 0; letter-spacing: -.01em; }
.nl-sticky-bottom { padding: var(--space-3) var(--space-4) var(--space-4); background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-2); }
.nl-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.nl-fab-pos { position: absolute; right: var(--space-4); bottom: calc(var(--size-nav) + var(--space-4)); }
.nl-screens { display: flex; gap: var(--space-6); justify-content: center; flex-wrap: wrap; padding: var(--space-4); }
.nl-cap { text-align: center; font-size: 13px; color: var(--ink-muted); margin-top: var(--space-2); }

/* ---------- month guide ---------- */
.nl-mstrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.nl-mstrip::-webkit-scrollbar { display: none; }
.nl-mstrip button { flex: none; width: 56px; min-height: 56px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface-raised); color: var(--ink-muted); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.nl-mstrip button.is-past { background: var(--surface-sunken); }
.nl-mstrip button.is-now { border-color: var(--tide); color: var(--tide-strong); }
.nl-mstrip button[aria-selected="true"] { background: var(--tide); border-color: var(--tide); color: var(--on-tide); }
.nl-mstrip-n { font-size: 18px; line-height: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nl-mstrip-l { font-size: 10px; line-height: 12px; }
.nl-mhero { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--tide-soft); padding: var(--space-5); min-height: 148px; display: flex; align-items: flex-end; }
.nl-mhero-num { position: absolute; right: -6px; top: -26px; font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 150px; line-height: 1; font-weight: 400; color: var(--tide); opacity: .22; font-variant-numeric: lining-nums; }
.nl-mhero-txt { position: relative; max-width: 80%; }
.nl-mhero-t { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 26px; line-height: 30px; font-weight: 500; margin: 4px 0; text-wrap: balance; }
.nl-mhero-s { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.nl-dev { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; background: var(--surface-raised); border-radius: var(--radius-md); padding: 12px; }
.nl-dev-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--cat-soft); color: var(--cat); display: grid; place-items: center; }
.nl-dev-dom { font-size: 11.5px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cat); }
.nl-dev-t { font-size: 14.5px; line-height: 20px; }
.nl-mgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nl-mcell { border-radius: 16px; background: var(--surface-raised); border: 1.5px solid var(--line); padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; align-items: center; font: inherit; color: var(--ink); cursor: pointer; min-height: 72px; justify-content: center; }
.nl-mcell b { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 22px; line-height: 24px; font-weight: 500; }
.nl-mcell span { font-size: 10.5px; line-height: 13px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nl-mstrip { position: relative; }
.nl-mcell.is-past { background: var(--surface-sunken); }
.nl-mcell.is-now { background: var(--tide); border-color: var(--tide); color: var(--on-tide); }
.nl-mcell.is-now span { color: var(--on-tide); }
.nl-mcell i { width: 6px; height: 6px; border-radius: 50%; background: var(--care); }
.nl-cc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

/* ---------- mood ---------- */
.nl-moodface { display: inline-grid; place-items: center; border-radius: 50%; background: var(--cat-soft); color: var(--cat); flex: none; }
.nl-moodscale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nl-mood { font: inherit; color: var(--ink); background: var(--surface-raised); border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 2px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; min-height: 88px; }
.nl-mood[aria-checked="true"] { border-color: var(--cat); box-shadow: 0 0 0 1px var(--cat); background: var(--cat-soft); }
.nl-mood[aria-checked="true"] .nl-moodface { background: var(--surface-raised); }
.nl-mood-l { font-size: 11.5px; line-height: 14px; font-weight: 500; text-align: center; }
.nl-mood:focus-visible { outline: 2px solid var(--tide); outline-offset: 2px; }
.nl-moodchart-plot { position: relative; height: 150px; padding-left: 72px; margin-top: 8px; }
.nl-moodchart-row { height: 25%; border-top: 1px dashed var(--line); position: relative; }
.nl-moodchart-row span { position: absolute; left: -72px; top: -8px; font-size: 11px; color: var(--ink-muted); }
.nl-moodchart-pts { position: absolute; left: 72px; right: 0; top: 0; bottom: 0; display: flex; }
.nl-moodchart-col { flex: 1; position: relative; }
.nl-moodchart-col i { position: absolute; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--cat); border: 2px solid var(--surface-raised); }
.nl-moodchart-x { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--ink-muted); }
.nl-moodchart { padding-bottom: 22px; padding-top: 8px; }

/* ---------- brand mark ---------- */
.nl-logo { display: block; overflow: visible; }
.nl-logo .nl-lg-baby, .nl-logo .nl-lg-moon, .nl-logo .nl-lg-tile { transform-box: fill-box; transform-origin: center; }
.nl-logo.is-anim .nl-lg-tile { animation: nl-lg-tile .36s cubic-bezier(.2,.8,.2,1) both; }
.nl-logo.is-anim .nl-lg-arc { stroke-dasharray: 100; animation: nl-lg-draw .56s cubic-bezier(.3,.7,.2,1) .14s both; }
.nl-logo.is-anim .nl-lg-baby { animation: nl-lg-drop .7s cubic-bezier(.3,.7,.3,1) .42s both; }
.nl-logo.is-anim .nl-lg-moon { animation: nl-lg-moon .5s cubic-bezier(.2,.8,.2,1.2) .86s both; }
.nl-logo.is-breathe .nl-lg-baby { animation: nl-lg-drop .7s cubic-bezier(.3,.7,.3,1) .42s both, nl-lg-breathe 2.6s ease-in-out 1.6s infinite; }
.nl-logo.is-loop .nl-lg-arc { stroke-dasharray: 100; animation: nl-lg-loop-arc 2.2s cubic-bezier(.5,0,.3,1) infinite; }
.nl-logo.is-loop .nl-lg-baby { animation: nl-lg-loop-baby 2.2s ease-in-out infinite; }
.nl-logo.is-loop .nl-lg-moon { animation: nl-twinkle 2.2s ease-in-out infinite; }
@keyframes nl-lg-tile { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nl-lg-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes nl-lg-drop { 0% { transform: translateY(-30px) scale(.7); opacity: 0; } 55% { transform: translateY(3px) scale(1.04, .94); opacity: 1; } 78% { transform: translateY(-1.5px) scale(.99, 1.02); } 100% { transform: none; opacity: 1; } }
@keyframes nl-lg-moon { from { transform: scale(0) rotate(-50deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nl-lg-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes nl-lg-loop-arc { 0% { stroke-dashoffset: 100; } 45%, 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes nl-lg-loop-baby { 0%, 20% { transform: translateY(-8px); opacity: .4; } 45%, 60% { transform: none; opacity: 1; } 100% { transform: translateY(-8px); opacity: .4; } }
@keyframes nl-twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
.nl-wordmark { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }

/* ---------- splash ---------- */
.nl-splash { position: absolute; inset: 0; background: var(--splash); color: var(--on-splash); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 3; }
.nl-splash-center { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: -40px; }
.nl-splash-word { animation: nl-rise .5s cubic-bezier(.2,.8,.2,1) 1.0s both; }
.nl-splash-tag { font-size: 14px; line-height: 20px; opacity: .78; margin-top: -10px; animation: nl-rise .5s cubic-bezier(.2,.8,.2,1) 1.18s both; }
.nl-splash-loader { position: absolute; bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12.5px; opacity: .85; animation: nl-fade .4s ease 1.7s both; --ld-a: var(--on-splash); --ld-b: var(--on-splash); }
.nl-phone:has(.nl-splash) { background: var(--splash); }
.nl-phone:has(.nl-splash) .nl-status, .nl-phone:has(.nl-splash) .nl-gesture { background: var(--splash); color: var(--on-splash); position: relative; z-index: 4; }
.nl-phone:has(.nl-splash) .nl-gesture i { background: var(--on-splash); }
.nl-splash-replay { position: absolute; top: 48px; right: 14px; font: inherit; font-size: 12px; font-weight: 500; display: inline-flex; gap: 4px; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: var(--on-splash); cursor: pointer; opacity: .8; }
@keyframes nl-rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes nl-fade { from { opacity: 0; } to { opacity: .85; } }

/* ---------- loaders (no spinners) ---------- */
.nl-loader { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; color: var(--tide); --ld-a: var(--tide); --ld-b: var(--sleep); --ld-c: var(--feed); }
.nl-loader > :first-child { transform: scale(var(--ld-scale, 1)); }
.nl-loader-label { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.nl-ld-breath { display: inline-flex; gap: 8px; align-items: center; height: 24px; }
.nl-ld-breath i { width: 12px; height: 12px; border-radius: 50%; background: var(--ld-a); animation: nl-breath 1.8s ease-in-out infinite; }
.nl-ld-breath i:nth-child(2) { background: var(--ld-b, var(--ld-a)); animation-delay: .22s; }
.nl-ld-breath i:nth-child(3) { background: var(--ld-c, var(--ld-a)); animation-delay: .44s; }
.nl-splash .nl-ld-breath i { background: var(--on-splash); }
@keyframes nl-breath { 0%, 100% { transform: scale(.55); opacity: .45; } 40% { transform: scale(1.15); opacity: 1; } 70% { transform: scale(.9); opacity: .8; } }
.nl-ld-bottle .nl-ld-bottle-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nl-ld-bottle .nl-ld-wave { fill: var(--feed-soft); stroke: var(--feed); stroke-width: 1.5; animation: nl-wave .9s linear infinite; }
.nl-ld-bottle .nl-ld-milk { animation: nl-fill 2.6s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes nl-wave { from { transform: translateX(0); } to { transform: translateX(20px); } }
@keyframes nl-fill { 0% { transform: translateY(52px); } 70%, 85% { transform: translateY(20px); } 100% { transform: translateY(52px); } }
.nl-ld-cradle path, .nl-ld-cradle circle { transform-box: fill-box; }
.nl-ld-cradle .nl-ld-rock { transform-origin: 32px 36px; animation: nl-rock 1.6s ease-in-out infinite; }
.nl-ld-cradle .nl-ld-rock path { stroke: var(--sleep); fill: none; }
.nl-ld-cradle .nl-ld-rock circle { fill: var(--feed); }
.nl-ld-cradle .nl-ld-star { fill: var(--sleep); transform-origin: center; animation: nl-twinkle 1.6s ease-in-out infinite; }
.nl-ld-cradle .s2 { animation-delay: .5s; } .nl-ld-cradle .s3 { animation-delay: 1s; }
@keyframes nl-rock { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.nl-ld-steps { display: inline-flex; gap: 6px; align-items: flex-end; height: 34px; }
.nl-ld-foot { fill: var(--growth); opacity: 0; animation: nl-step 2s ease-in-out infinite; }
.nl-ld-foot.l { transform: translateY(-8px) rotate(-8deg); } .nl-ld-foot.r { transform: rotate(8deg) scaleX(-1); }
.nl-ld-foot:nth-child(2) { animation-delay: .35s; } .nl-ld-foot:nth-child(3) { animation-delay: .7s; } .nl-ld-foot:nth-child(4) { animation-delay: 1.05s; }
@keyframes nl-step { 0% { opacity: 0; } 12%, 55% { opacity: 1; } 80%, 100% { opacity: 0; } }
.nl-loader-mark { color: var(--tide); }

/* ---------- skeleton ---------- */
.nl-skel { display: flex; flex-direction: column; gap: 10px; }
.nl-skel.is-card { background: var(--surface-raised); border-radius: var(--radius-lg); padding: 16px; }
.nl-skel i { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--surface-sunken) 30%, var(--surface) 50%, var(--surface-sunken) 70%); background-size: 300% 100%; animation: nl-shimmer 1.8s ease-in-out infinite; }
.nl-skel-line { height: 12px; }
.nl-skel-media { border-radius: var(--radius-md) !important; }
.nl-skel-avatar { width: 44px; height: 44px; border-radius: 50% !important; flex: none; }
@keyframes nl-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- button loading: three breathing dots instead of a spinner ---------- */
.nl-btn-dots { display: inline-flex; gap: 4px; }
.nl-btn-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: nl-breath 1.4s ease-in-out infinite; }
.nl-btn-dots i:nth-child(2) { animation-delay: .18s; } .nl-btn-dots i:nth-child(3) { animation-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .nl-logo *, .nl-splash *, .nl-loader *, .nl-skel i, .nl-btn-dots i { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .nl-loader > :first-child { animation: nl-calm 2s ease-in-out infinite !important; }
}
@keyframes nl-calm { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- personal note ---------- */
.nl-letter { position: relative; background: var(--surface-raised); border-radius: var(--radius-xl); padding: 28px 22px 26px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 12px; background-image: linear-gradient(var(--feed-soft), var(--feed-soft)); background-size: 100% 6px; background-repeat: no-repeat; }
.nl-letter-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 28px; line-height: 32px; font-weight: 500; margin: 0 0 4px; text-wrap: balance; }
.nl-letter p { margin: 0; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "opsz" 14; font-size: 16.5px; line-height: 27px; color: var(--ink); }
.nl-letter p:first-of-type { font-size: 19px; line-height: 28px; font-weight: 500; }
.nl-letter .nl-letter-last { font-style: italic; color: var(--tide-strong); }
.nl-letter-heart { position: absolute; right: 22px; bottom: 30px; color: var(--health); }
.nl-sign { display: flex; flex-direction: column; margin-top: 6px; }
.nl-sign-love { font-size: 14px; color: var(--ink-muted); }
.nl-sign-name { font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive; font-size: 32px; line-height: 38px; color: var(--ink); transform: rotate(-2deg); transform-origin: left; }
.nl-polaroid { margin: -4px auto 8px; background: #ffffff; padding: 10px 10px 8px; border-radius: 6px; box-shadow: var(--shadow-2); width: 168px; }
.nl-polaroid img, .nl-polaroid-art { display: block; width: 148px; height: 148px; border-radius: 3px; object-fit: cover; }
.nl-polaroid-art { background: linear-gradient(160deg, #f8e6d6, #e6e4f5); display: grid; place-items: center; color: #2c6a6e; }
.nl-polaroid figcaption { font-family: "Caveat", "Segoe Script", cursive; font-size: 19px; line-height: 24px; color: #1b2a28; text-align: center; margin-top: 6px; }
.nl-letter.is-compact { padding: 22px 18px; }
.nl-thanks { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--feed-soft); color: var(--ink); font-size: 13.5px; line-height: 20px; }
.nl-thanks .nl-icon { color: var(--health); flex: none; margin-top: 1px; }

@media (prefers-reduced-motion: reduce) { .nl-root *, .nl-btn, .nl-switch::before { transition: none !important; animation: none !important; } }

/* ---------- Plus charts ---------- */
.nl-chartwrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nl-chart-plot { position: relative; }
.nl-chart .base { stroke: var(--line-strong); stroke-width: 1; }
.nl-chart text.is-now { fill: var(--ink); font-weight: 600; }
.nl-chart .nl-dlabel { fill: var(--ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nl-chart .nl-band { fill: var(--surface-sunken); }
.nl-chart .nl-hoverband { fill: var(--surface-sunken); opacity: .7; }
.nl-chart .nl-line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nl-chart .nl-cross { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.nl-chart .nl-marker { stroke: var(--surface-raised); stroke-width: 2; }
.nl-chart .nl-nightband { fill: var(--surface-sunken); opacity: .8; }
.nl-chart .nl-track { fill: var(--line); }
.nl-chart rect[fill="transparent"] { cursor: pointer; }
.nl-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
.nl-legend-i { display: inline-flex; align-items: center; gap: 6px; }
.nl-legend-sw { width: 12px; height: 12px; border-radius: 4px; background: var(--sw); flex-shrink: 0; display: inline-block; }
.nl-legend-sw.is-tex { background: repeating-linear-gradient(45deg, var(--sw) 0 3px, color-mix(in srgb, var(--sw) 55%, var(--surface-raised)) 3px 5px); }
.nl-legend-sw.is-dot { border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-raised); }
.nl-legend-sw.is-band { background: var(--surface-sunken); border: 1px solid var(--line-strong); }
.nl-legend-sw.is-night { background: var(--surface-sunken); border: 1px dashed var(--line-strong); }
.nl-tip { position: absolute; top: -6px; width: 140px; background: var(--surface-raised); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-2); padding: 8px 10px; font-size: 12.5px; line-height: 18px; pointer-events: none; z-index: 2; border: 1px solid var(--line); }
.nl-tip-t { font-weight: 600; margin-bottom: 2px; }
.nl-tip-r { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); }
.nl-tip-r b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.nl-tip-r .nl-legend-sw { width: 10px; height: 10px; }
.nl-chart-table summary { font-size: 13px; color: var(--tide); font-weight: 500; cursor: pointer; padding: 6px 0; min-height: 32px; display: flex; align-items: center; list-style: none; }
.nl-chart-table summary::-webkit-details-marker { display: none; }
.nl-chart-table summary::after { content: "›"; margin-left: 6px; transition: transform .2s; }
.nl-chart-table[open] summary::after { transform: rotate(90deg); }
.nl-chart-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.nl-chart-table th, .nl-chart-table td { text-align: left; padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.nl-chart-table thead th { color: var(--ink-muted); font-weight: 500; border-top: 0; }
.nl-chart-table tbody th { font-weight: 500; }
.nl-spark { display: block; overflow: visible; }
.nl-plus { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: var(--radius-pill); background: var(--tide-soft); color: var(--tide-strong); font-size: 11.5px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.nl-plock { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.nl-plock-preview { filter: blur(5px) saturate(.8); opacity: .75; pointer-events: none; user-select: none; }
.nl-plock-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px; background: color-mix(in srgb, var(--surface-raised) 45%, transparent); }
.nl-plock-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--tide-soft); color: var(--tide-strong); }
.nl-plock.is-compact .nl-plock-icon { width: 32px; height: 32px; }
.nl-plock-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.nl-plock-body { font-size: 13px; color: var(--ink-muted); max-width: 240px; }
.nl-charttile { display: flex; flex-direction: column; gap: 6px; background: var(--surface-raised); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-1); border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; width: 100%; }
.nl-charttile-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--cat, var(--ink-muted)); }
.nl-charttile-v { font-size: 20px; line-height: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.nl-charttile-s { font-size: 12.5px; line-height: 17px; color: var(--ink-muted); }
.nl-takeaways { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.nl-takeaways li { display: flex; gap: 10px; font-size: 14.5px; line-height: 21px; }
.nl-takeaways li > span:first-child { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--cat-soft, var(--surface-sunken)); color: var(--cat, var(--ink)); }
.nl-chart-src { font-size: 12px; line-height: 17px; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .nl-chart-table summary::after { transition: none; } }

/* ---------- Paywall (Superwall) ---------- */
.nl-planpick { display: flex; flex-direction: column; gap: 10px; }
.nl-planpick.is-row { flex-direction: row; }
.nl-planpick.is-row > * { flex: 1; min-width: 0; }
.nl-planopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: var(--radius-lg); border: 1.5px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: inherit; text-align: left; cursor: pointer; position: relative; transition: border-color .15s ease-out, background .15s ease-out; }
.nl-planopt.is-on { border: 2px solid var(--tide); background: var(--tide-soft); padding: 11.5px 15.5px; }
.nl-planopt-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; }
.nl-planopt.is-on .nl-planopt-radio { border-color: var(--tide); }
.nl-planopt-radio i { width: 12px; height: 12px; border-radius: 50%; background: var(--tide); }
.nl-planopt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nl-planopt-title { font-weight: 600; font-size: 16px; line-height: 22px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nl-planopt-tag { font-size: 11.5px; line-height: 16px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--tide); color: var(--on-tide); }
.nl-planopt-sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.nl-planopt-price { text-align: right; font-size: 18px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.nl-planopt-price small { font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.nl-planopt.is-compact { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; }
.nl-planopt.is-compact.is-on { padding: 13.5px; }
.nl-planopt.is-compact .nl-planopt-radio { position: absolute; top: 12px; right: 12px; }
.nl-planopt.is-compact .nl-planopt-price { text-align: left; font-size: 22px; line-height: 28px; }
.nl-planopt.is-compact .nl-planopt-sub { font-size: 12px; line-height: 16px; }
.nl-benefit { display: flex; gap: 14px; align-items: flex-start; }
.nl-benefit-ic { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--cat-soft, var(--tide-soft)); color: var(--cat, var(--tide)); }
.nl-cat-tide { --cat: var(--tide); --cat-soft: var(--tide-soft); }
.nl-benefit-t { display: block; font-weight: 600; font-size: 15.5px; line-height: 22px; }
.nl-benefit-d { display: block; font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 1px; }
.nl-pwlegal { font-size: 12px; line-height: 17px; color: var(--ink-muted); text-align: center; display: flex; flex-direction: column; gap: 6px; }
.nl-pwlegal-links { display: flex; justify-content: center; align-items: center; gap: 8px; }
.nl-pwlegal-links a, .nl-pwlegal-links button { color: var(--ink-muted); font: inherit; background: none; border: 0; padding: 6px 2px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.nl-pwhero { border-radius: var(--radius-xl); padding: 20px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.nl-cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 20px; }
.nl-cmp th, .nl-cmp td { padding: 11px 8px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.nl-cmp th:first-child, .nl-cmp td:first-child { text-align: left; padding-left: 0; }
.nl-cmp thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 0; padding-bottom: 6px; }
.nl-cmp .is-plus { background: var(--tide-soft); }
.nl-cmp thead .is-plus { border-radius: 12px 12px 0 0; color: var(--tide-strong); }
.nl-cmp tbody tr:last-child .is-plus { border-radius: 0 0 12px 12px; }
.nl-cmp .yes { color: var(--reassure); }
.nl-cmp .no { color: var(--ink-faint); }
@media (prefers-reduced-motion: reduce) { .nl-planopt { transition: none; } }
.nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
