/* ============================================================
   Journal (v205): an assistant layout. The week, one sentence about the day with a ring and
   three round buttons, then memo cards, and "Tap to chat. Hold to speak." at the bottom.
   ============================================================ */
.jn { --jn-task: #6f8dff; --jn-habit: #ff8a3d; --jn-goal: #b48cff; --jn-good: #3ecf8e; --jn-mid: #ffc857; --jn-low: #ff7a6b; display: grid; gap: 16px; padding-bottom: 8px; }

/* header: title, a small Notes / Map switch, search */
.jn-topbar { align-items: center; gap: 12px; margin-bottom: 10px; }
.jn-head-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.jn-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--m-surface); }
.jn-switch button { position: relative; min-height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--tx-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.jn-switch button::after { content: ''; position: absolute; inset: -5px -1px; }
.jn-switch button[aria-pressed="true"] { background: var(--m-surface-2); color: var(--tx); box-shadow: inset 0 0 0 1px var(--line-2); }
.jn-filter button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--tx-2); font: inherit; cursor: pointer; }
.jn-filter button[aria-pressed="true"] { background: var(--m-surface-2); border-color: var(--line-2); color: var(--tx); }
.jn-switch button:focus-visible, .jn-filter button:focus-visible, .jn-head-btn:focus-visible, .jn-hash:focus-visible, .jn-ck:focus-visible, .jn-x:focus-visible { outline: 2px solid var(--blue-2, var(--accent)); outline-offset: 2px; }
.jn-filter { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; }
.jn-filter button { flex-shrink: 0; font-size: 13px; }
.jn-personal-tags { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 0 6px; }
#app #jnTags { flex: 1; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--m-surface); color: var(--tx); font: inherit; font-size: 16px; }
#app #jnTags:focus { outline: none; border-color: color-mix(in srgb, var(--blue-2, var(--accent)) 60%, transparent); }
.jn-personal-tags .m-btn { flex: none; min-height: 44px; padding-inline: 18px; }
.jn-map { overflow: hidden; background: transparent; }
.jn-map svg { display: block; width: 100%; min-height: 300px; }
.jn-map-lines line { stroke: var(--tx-3); stroke-opacity: .24; stroke-width: 1; }
.jn-map-lines .jn-note-link { stroke: var(--accent); stroke-opacity: .65; stroke-width: 1.4; }
.jn-connections { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.jn-connections h3 { margin: 0 0 10px; font-size: 14px; font-weight: 500; }
.jn-connections h3 small { margin-left: 6px; color: var(--tx-2); font-weight: 400; }
.jn-connected { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.jn-connected > button:first-child, .jn-note-choice { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 16px; min-width: 0; min-height: 48px; padding: 10px 0; border: 0; background: none; font: inherit; font-size: 14px; text-align: left; color: var(--tx); cursor: pointer; }
.jn-connected span, .jn-note-choice span { min-width: 0; overflow-wrap: anywhere; }
.jn-connected small, .jn-note-choice small { flex: none; color: var(--tx-2); font-size: 11px; }
.jn-link-picker { margin-top: 8px; }
.jn-link-picker summary { min-height: 44px; display: flex; align-items: center; font-size: 13px; color: var(--tx-2); cursor: pointer; }
.jn-link-picker summary::before { content: '+'; margin-right: 10px; }
.jn-link-picker input { width: 100%; min-height: 44px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--tx); font: inherit; font-size: 16px; }
.jn-note-choice { width: 100%; border-bottom: 1px solid var(--line); }
.jn-connections button:focus-visible, .jn-link-picker summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jn-map-node { cursor: pointer; fill: var(--tx-2); animation: jnMapIn .6s ease-out both; }
.jn-map-node.tag { fill: color-mix(in srgb, var(--accent) 45%, var(--tx)); }
.jn-map-node.tag text { fill: var(--tx-2); }
.jn-map-node text { font-size: 13px; font-family: inherit; pointer-events: none; }
.jn-map-node.note text { visibility: hidden; paint-order: stroke; stroke: var(--m-surface); stroke-width: 4px; stroke-linejoin: round; }
.jn-map-node.note:hover text, .jn-map-node.note:focus text { visibility: visible; }
.jn:not(.jn-is-graph) .jn-feed { padding-bottom: 100px; }
.jn-topbar .jn-graph-write { margin-left: auto; }
[data-motion="reduced"] .jn-map-node { animation: none; }
.jn-map-node .jn-map-hit { fill: transparent; }
.jn-map-node:hover, .jn-map-node:focus { fill: var(--accent); outline: none; }
.jn-map-node:focus .jn-map-hit { stroke: var(--accent); stroke-width: 2; }
@keyframes jnMapIn { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jn-map-node { animation: none; } }
@media (max-width: 390px) { .jn-map-node text { font-size: 13px; } .jn-switch button { padding-inline: 11px; } }
.jn-head-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: var(--m-surface); color: var(--tx-2); cursor: pointer;
}
.jn-head-btn svg { width: 18px; height: 18px; }
.jn-head-btn.on { border-color: var(--blue-2, var(--accent)); color: var(--tx); }
.jn-search { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--m-surface); animation: jnIn .25s ease-out both; }
.jn-search span { display: grid; color: var(--tx-3); }
.jn-search svg { width: 17px; height: 17px; }
#jnSearch { flex: 1; min-width: 0; min-height: 44px; padding: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--tx); box-shadow: none; -webkit-appearance: none; appearance: none; }
#jnSearch:focus { outline: none; }

/* the week */
.jn-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; }
.jn-day {
  position: relative; display: grid; justify-items: center; gap: 4px; min-height: 66px; padding: 9px 0 12px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--m-surface); color: var(--tx-2); font: inherit; cursor: pointer;
  transition: background .2s, border-color .2s, min-height .25s;
}
.jn-day small { font-size: 12px; font-weight: 600; color: var(--tx-3); }
.jn-day b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tx-2); }
.jn-day i { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.jn-day.has i { background: var(--tx-3); }
.jn-day:disabled { opacity: .4; cursor: default; }
.jn-day.on { min-height: 80px; border-color: var(--line-2); background: var(--m-surface-2); }
.jn-day.on b { font-size: 26px; font-weight: 700; color: var(--tx); }
.jn-day.today::after { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4e; }
.jn-day:focus-visible, .jn-memo:focus-visible, .jn-tool:focus-visible { outline: 2px solid var(--blue-2, var(--accent)); outline-offset: 2px; }

/* the assistant's sentence, the ring and the round buttons */
.jn-hero { position: relative; padding: 14px 4px 4px; }
.jn-hero::before {
  content: ''; position: absolute; z-index: -1; inset: -20px -24px auto; height: 300px; pointer-events: none;
  background: radial-gradient(60% 60% at 40% 45%, color-mix(in srgb, var(--blue-2, #6f8dff) 10%, transparent), transparent 70%);
}
.jn-label { display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.jn-label span { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--tx-3); }
.jn-label svg { width: 15px; height: 15px; color: var(--blue-2, var(--accent)); }
.jn-say { margin: 6px 0 0; font-size: 30px; font-weight: 500; line-height: 1.22; letter-spacing: -.015em; color: var(--tx-3); text-wrap: pretty; }
.jn-say b { font-weight: 650; color: var(--tx); }
.jn-say em { font-style: italic; font-weight: 650; color: var(--tx); }
.jn-tools { display: flex; align-items: center; gap: 12px; margin-top: 22px; }

/* Existing captured records stay editable; logging lives on Watch, not this screen. */
.jn-quick-editor :is(input, select, textarea, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.jn-quick-editor { display: grid; gap: 16px; margin: 20px 0; }
.jn-quick-editor label { display: grid; gap: 8px; min-width: 0; color: var(--tx-2); font-size: 13px; }
.jn-quick-editor :is(input, select, textarea) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; margin: 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--m-surface); color: var(--tx); font: inherit; font-size: 16px; letter-spacing: 0; }
.jn-quick-editor textarea { resize: vertical; line-height: 1.5; }
.jn-quick-amounts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px; }
.jn-quick-editor .m-btn { justify-self: start; min-height: 44px; }
.jn-quick-editor .jn-fine { margin: 0; }
.jn-ring { position: relative; display: grid; place-items: center; width: 60px; height: 60px; flex: none; }
.jn-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jn-ring-track { fill: none; stroke: var(--line-2); stroke-width: 4.5; }
.jn-ring-fill { fill: none; stroke: var(--jn-good); stroke-width: 4.5; stroke-linecap: round; }
.jn-ring b { font-size: 19px; font-weight: 700; color: var(--tx); font-variant-numeric: tabular-nums; }
.jn-tool {
  position: relative; display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--m-surface-2); color: var(--tx-2); cursor: pointer;
}
.jn-tool svg { width: 22px; height: 22px; }
.jn-tool.has { color: var(--tx); }
.jn-tool em {
  position: absolute; top: -2px; right: -2px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; font-style: normal;
}
.jn-reply-acts { margin-top: 18px; }
.jn-acts { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.jn-act { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 4px 2px 4px 6px; border-radius: 16px; background: var(--m-surface); border: 1px solid var(--line); }
.jn-type {
  flex: none; min-width: 52px; min-height: 30px; padding: 0 9px; border-radius: 999px; border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  background: color-mix(in srgb, var(--jn-task) 22%, transparent); color: var(--jn-task);
}
.jn-act.t-habit .jn-type { background: color-mix(in srgb, var(--jn-habit) 20%, transparent); color: var(--jn-habit); }
.jn-act.t-goal .jn-type { background: color-mix(in srgb, var(--jn-goal) 22%, transparent); color: var(--jn-goal); }
.jn-act-title { flex: 1; min-width: 0; min-height: 36px; padding: 0 4px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 15px; color: var(--tx); text-overflow: ellipsis; }
.jn-act-title:focus { outline: none; background: color-mix(in srgb, var(--tx) 6%, transparent); }
.jn-act-btns { display: flex; gap: 8px; margin-top: 12px; }
.jn-act-btns .m-btn { flex: 1 1 auto; }
.jn-x { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--tx-3); cursor: pointer; }
.jn-x svg { width: 16px; height: 16px; }
.jn-x:disabled { opacity: .3; cursor: default; }
.jn-link { display: inline-block; margin-top: 10px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 500; color: var(--blue-2, var(--accent)); cursor: pointer; }
.jn-link:disabled { opacity: .6; }
.jn-fine { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--tx-3); }
.jn-link + .jn-fine { display: inline; margin: 0 0 0 8px; }

/* memos */
.jn-month { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; padding: 0 2px; margin-top: -2px; }
.jn-month b { flex: 1; text-align: center; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--tx-2); }
.jn-month b:first-child { padding-left: 6px; text-align: left; }
.jn-month .jn-x { width: 44px; height: 44px; }
.jn-feed { display: grid; gap: 12px; }
.jn-memo {
  display: grid; gap: 6px; width: 100%; padding: 16px 18px 15px; border-radius: 22px; border: 1px solid var(--line);
  background: var(--m-surface); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tx) 5%, transparent);
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.jn-memo:active { transform: scale(.985); }
.jn-memo-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jn-memo-top b { font-size: 17px; font-weight: 650; line-height: 1.28; letter-spacing: -.005em; color: var(--tx); overflow-wrap: anywhere; }
.jn-memo-when { font-size: 12.5px; color: var(--tx-3); }
.jn-memo-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14.5px; line-height: 1.5; color: var(--tx-2); overflow-wrap: anywhere; }
.jn-score { display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.jn-score svg { width: 15px; height: 15px; }
.jn-score.is-good { background: color-mix(in srgb, var(--jn-good) 18%, transparent); color: var(--jn-good); }
.jn-score.is-mid { background: color-mix(in srgb, var(--jn-mid) 18%, transparent); color: var(--jn-mid); }
.jn-score.is-low { background: color-mix(in srgb, var(--jn-low) 18%, transparent); color: var(--jn-low); }
.jn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.jn-vitals { display: inline-flex; align-items: center; gap: 12px; margin-right: 4px; font-size: 12.5px; font-weight: 600; color: var(--tx-2); font-variant-numeric: tabular-nums; }
.jn-vitals span { display: inline-flex; align-items: center; gap: 4px; }
.jn-vitals svg { width: 14px; height: 14px; color: var(--tx-3); }
.jn-tag { display: inline-flex; align-items: center; gap: 4px; min-height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; color: var(--tx-2); }
.jn-tag svg { width: 12px; height: 12px; }
.jn-tag.is-todo { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }
.jn-empty { margin: 4px 6px; font-size: 14px; color: var(--tx-3); }

/* the full page for one entry */
.jns { display: grid; gap: 14px; padding-bottom: 6px; }
.jns-when { font-size: 13px; color: var(--tx-3); }
.jns-title { margin: 0; font-size: 26px; font-weight: 650; line-height: 1.2; color: var(--tx); }
.jns .jn-tags { margin: 0; }
.jns-text { display: grid; gap: 12px; }
.jns-text p { margin: 0; font-family: var(--font-display, inherit); font-size: 19px; line-height: 1.62; color: var(--tx); overflow-wrap: anywhere; }
.jns-block { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--m-surface); }
.jns-cap { margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--tx-3); }
.jns-follow { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.jns-follow li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--tx); }
.jns-follow li.done span:last-child { color: var(--tx-3); text-decoration: line-through; }
.jns-ico { display: grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--tx-2); }
.jns-ico svg { width: 14px; height: 14px; }
.jns-follow .t-habit .jns-ico { color: var(--jn-habit); border-color: color-mix(in srgb, var(--jn-habit) 45%, transparent); }
.jns-follow .done .jns-ico { background: var(--accent); border-color: var(--accent); color: #fff; }
.jns-follow .t-goal .jns-ico { color: var(--jn-goal); }
.jn-card-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-card-acts .m-btn { min-height: 38px; font-size: 13.5px; }
.jn-del.is-armed { color: #ff8a7a; border-color: rgba(255, 138, 122, .5); }

/* Tap to chat. Hold to speak. One glass pill: words, "#", mic. */
.jn-compose {
  position: sticky; z-index: 6; bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  display: grid; margin-top: 4px; padding: 6px 6px 6px 18px; border-radius: 28px;
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg, #060a16) 96%, var(--m-surface-2));
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28), inset 0 1px 0 color-mix(in srgb, var(--tx) 6%, transparent);
  transition: border-color .25s, box-shadow .25s;
}
.jn-compose::before {
  content: ''; position: absolute; left: 14%; right: 14%; top: -1px; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--blue-2, #6f8dff), var(--jn-good), transparent); transition: opacity .35s;
}
.jn-compose:focus-within { border-color: color-mix(in srgb, var(--blue-2, #6f8dff) 50%, transparent); }
.jn-compose:focus-within::before { opacity: .7; }
.jn-compose-row { display: flex; align-items: flex-end; gap: 2px; min-width: 0; }
.jn-hash {
  position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--tx-3); cursor: pointer; transition: background .2s, color .2s;
}
.jn-hash svg { width: 19px; height: 19px; }
.jn-hash[aria-expanded="true"] { background: var(--m-surface); color: var(--tx); }
.jn-hash:active { background: var(--m-surface); }
.jn-compose.has-tags .jn-hash { color: var(--tx-2); }
.jn-compose.has-tags .jn-hash::after { content: ''; position: absolute; top: 10px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.jns-tags .jn-hash { width: 30px; height: 30px; margin: 0; border: 1px dashed var(--line-2); }
.jns-tags .jn-hash::before { content: ''; position: absolute; inset: -7px; }
.jns-tags .jn-hash svg { width: 14px; height: 14px; }
.jn-entry-tags { margin-top: -14px; transition: grid-template-rows .32s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)), opacity .2s ease, margin-top .32s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)); }
.jn-entry-tags.open { margin-top: 0; }
/* a field that slides open under a "#" */
.jn-fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .32s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)), opacity .2s ease; }
.jn-fold.open { grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .32s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)), opacity .3s ease .05s; }
.jn-fold > div { min-height: 0; overflow: hidden; }
.jn-tagrow > div { padding-right: 6px; }
#app #jnComposerTags {
  display: block; width: 100%; box-sizing: border-box; min-height: 44px; margin: 2px 0 6px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--m-surface); color: var(--tx); font: inherit; font-size: 16px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
#app #jnComposerTags:focus { outline: none; border-color: var(--line-2); }
.jn-tagrow input::placeholder, .jn-personal-tags input::placeholder { color: var(--tx-3); }
#jnText {
  flex: 1; min-width: 0; min-height: 46px; max-height: 150px; padding: 12px 4px; border: 0; border-radius: 0; background: transparent; resize: none;
  font: inherit; font-size: 16px; line-height: 1.4; color: var(--tx); box-shadow: none; -webkit-appearance: none; appearance: none;
}
#jnText::placeholder { color: var(--tx-3); }
#jnText:focus, #jnText:focus-visible { outline: none; box-shadow: none; }
.jn-wave { display: none; align-self: center; align-items: center; gap: 3px; height: 26px; padding: 0 4px; }
.jn-wave i { display: block; width: 3px; height: 8px; border-radius: 2px; background: var(--jn-good); animation: jnWave 1s ease-in-out infinite; }
.jn-wave i:nth-child(2) { animation-delay: -.2s; }
.jn-wave i:nth-child(3) { animation-delay: -.45s; }
.jn-wave i:nth-child(4) { animation-delay: -.7s; }
.jn-wave i:nth-child(5) { animation-delay: -.3s; }
.jn-compose.listening .jn-wave { display: flex; }
.jn-mic, .jn-send {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none;
}
.jn-mic svg, .jn-send svg { width: 20px; height: 20px; }
.jn-mic { background: var(--jn-good); color: #06281a; box-shadow: 0 6px 18px rgba(62, 207, 142, .35); }
.jn-send { background: var(--blue-grad, var(--accent)); color: #fff; }
/* with the mic: it leads while the field is empty, send takes over once there are words */
/* two quiet check-in buttons: an icon and a tiny label */
.jn-checkins { display: flex; align-items: center; gap: 8px; margin: 2px 4px 0; }
.jn-ck { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 15px 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--tx-2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.jn-ck:active { background: var(--m-surface); }
.jn-ck svg { width: 17px; height: 17px; flex: none; }
.jn-ck.is-done { color: var(--tx); }
.jn-ck-tick { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: -1px; border-radius: 50%; background: var(--accent); color: #fff; }
.jn-ck-tick svg { width: 10px; height: 10px; stroke-width: 3; }
span.jn-ck { cursor: default; min-height: 36px; }
.jns .jn-checkins { margin: 0; }
.jn-daily-section h3 { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--tx-3); }
.jn-daily-section p, textarea.jn-daily-note { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea.jn-daily-note { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; }
.jn-compose.can-talk .jn-send { display: none; }
.jn-compose.can-talk.has-text .jn-send { display: grid; }
.jn-compose.can-talk.has-text .jn-mic { background: var(--m-surface-2); color: var(--tx-2); box-shadow: none; }
.jn-compose.listening { border-color: color-mix(in srgb, var(--jn-good) 60%, transparent); }
.jn-compose.listening::before { opacity: 1; animation: jnGlow 1.2s ease-in-out infinite; }
.jn-compose.listening .jn-mic { background: var(--jn-good); color: #06281a; animation: jnPulse 1.2s ease-in-out infinite; }
@keyframes jnIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes jnRise { from { opacity: 0; translate: 0 14px; } }
@keyframes jnFresh { from { background-color: color-mix(in srgb, var(--blue-2, #6f8dff) 20%, var(--m-surface)); border-color: color-mix(in srgb, var(--blue-2, #6f8dff) 55%, var(--line)); } }
@keyframes jnGlow { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes jnPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, .55); } 50% { box-shadow: 0 0 0 11px rgba(62, 207, 142, 0); } }
@keyframes jnWave { 0%, 100% { height: 6px; } 50% { height: 22px; } }
/* arriving: the sentence fades up, the buttons follow, cards come in 40 ms apart */
.jn-rise .jn-say { animation: jnRise .7s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)) both; }
.jn-rise .jn-label, .jn-rise .jn-reply-acts { animation: jnRise .6s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)) .05s both; }
.jn-rise .jn-tools { animation: jnRise .65s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)) .1s both; }
.jn-enter .jn-checkins { animation: jnRise .6s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)) .16s both; }
.jn-enter .jn-memo { animation: jnRise .5s var(--motion-ease-out, cubic-bezier(.22, 1, .36, 1)) both; }
.jn-enter .jn-memo:nth-child(2) { animation-delay: 40ms; }
.jn-enter .jn-memo:nth-child(3) { animation-delay: 80ms; }
.jn-enter .jn-memo:nth-child(4) { animation-delay: 120ms; }
.jn-enter .jn-memo:nth-child(5) { animation-delay: 160ms; }
.jn-enter .jn-memo:nth-child(6) { animation-delay: 200ms; }
.jn-enter .jn-memo:nth-child(7) { animation-delay: 240ms; }
.jn-enter .jn-memo:nth-child(8) { animation-delay: 280ms; }
.jn-enter .jn-memo:nth-child(n+9) { animation-delay: 320ms; }
.jn-memo.jn-fresh { animation: jnFresh 1.9s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  :is(.jn, .jns) *, :is(.jn, .jns) *::before { animation: none !important; transition: none !important; }
}
[data-motion="reduced"] :is(.jn, .jns) *, [data-motion="reduced"] :is(.jn, .jns) *::before { animation: none !important; transition: none !important; }
[data-theme="light"] .jn-send { background: var(--accent); }
@media (max-width: 360px) {
  .jn-topbar { gap: 8px; }
  .jn-topbar h1 { font-size: 22px; }
  .jn-head-tools { gap: 6px; }
  .jn-head-btn { width: 36px; height: 36px; }
  .jn-switch button { padding: 0 10px; }
  .jn-week { gap: 4px; }
  .jn-day b { font-size: 14px; }
  .jn-day.on b { font-size: 21px; }
  .jn-say { font-size: 25px; }
  .jn-tool { width: 50px; height: 50px; }
  .jn-ring { width: 54px; height: 54px; }
}

/* follow-ups that open their task, goal or habit */
.jns-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tx) 25%, transparent); text-underline-offset: 3px; }
.jns-follow li.done .jns-link { color: var(--tx-3); text-decoration: line-through; }
