/* Journal (Orbit #journal) + the public blog page (blog.html).
   Orbit parts are scoped to body.orbit-page and use its tokens (--o-*,
   colour slots); the article styles (.jart) are shared with body.blog-page,
   which defines the same tokens in Orbit's light palette. */

/* ── Shell: no right rail on the journal; the editor is full screen on phones ── */
body.orbit-page .o-app[data-view="journal"] { grid-template-columns: 252px minmax(0, 1fr); }
body.orbit-page .o-app[data-view="journal"] .o-rail { display: none; }
@media (max-width: 1023px) { body.orbit-page .o-app[data-view="journal"] { grid-template-columns: 88px minmax(0, 1fr); } }
@media (min-width: 900px) { .has-jr body.orbit-page .o-app[data-view="journal"] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  body.orbit-page .o-app[data-view="journal"][data-jmode="edit"] .o-topbar,
  body.orbit-page .o-app[data-view="journal"][data-jmode="edit"] .o-tabbar { display: none; }
}
body.orbit-page a.o-tile { color: var(--o-ink); text-decoration: none; }
body.orbit-page a.o-tile:hover { background: var(--o-hover); }

body.orbit-page .jn-vh, .jn-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── List page ─────────────────────────────────────────────────────────── */
body.orbit-page .jn-page { max-width: 1080px; }
body.orbit-page .jn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
body.orbit-page .jn-head h1 { font-size: 32px; }
body.orbit-page .jn-head p { margin-top: 4px; max-width: 520px; }
body.orbit-page .jn-new-btn { flex: 0 0 auto; }
body.orbit-page .jn-h2 { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 900; margin-bottom: 10px; }
body.orbit-page .jn-h2 .material-symbols-rounded { font-size: 20px; }

body.orbit-page .jn-tabs { display: inline-flex; gap: 4px; padding: 5px; border: 2px solid var(--o-line); border-radius: 18px; background: var(--o-bg-2); margin-bottom: 14px; }
body.orbit-page .jn-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 13px; color: var(--o-ink-2); font: 900 15px var(--o-font); text-decoration: none; }
body.orbit-page .jn-tabs a:hover { color: var(--o-ink); }
body.orbit-page .jn-tabs a.is-on { background: var(--o-card); color: var(--purple-ink); box-shadow: 0 2px 0 var(--o-line); }
body.orbit-page .jn-tabs .material-symbols-rounded { font-size: 20px; }

body.orbit-page .jn-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; font-size: 14px; }
body.orbit-page .jn-note .material-symbols-rounded { font-size: 20px; }

body.orbit-page .jn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
body.orbit-page .jn-layout > * { min-width: 0; }
body.orbit-page .jn-otd.is-inline { display: none; }
body.orbit-page .jn-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
@media (max-width: 1099px) {
  body.orbit-page .jn-layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body.orbit-page .jn-side { order: -1; position: static; gap: 12px; margin-bottom: 18px; }
  body.orbit-page .jn-nbs { display: none; }
  body.orbit-page .jn-side .jn-otd { display: none; }
  body.orbit-page .jn-otd.is-inline { display: block; margin-top: 18px; }
}

/* templates */
body.orbit-page .jn-templates { margin-bottom: 6px; }
body.orbit-page .jn-tpl-row { display: flex; flex-wrap: wrap; gap: 8px; }
body.orbit-page .jn-tpl {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 10px;
  border: 2px solid var(--o-line); border-radius: 14px; background: var(--o-card);
  box-shadow: 0 3px 0 var(--o-line); color: var(--o-ink); text-decoration: none; font: 800 14px var(--o-font); white-space: nowrap;
  transition: transform 0.06s ease, border-color 0.15s ease;
}
body.orbit-page a.jn-tpl { color: var(--o-ink); }
body.orbit-page .jn-tpl:hover { border-color: var(--c); background: var(--c-soft); color: var(--c-ink); }
body.orbit-page .jn-tpl:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--o-line); }
body.orbit-page .jn-tpl-ico { font-size: 20px; line-height: 1; }

/* tools */
body.orbit-page .jn-tools { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 6px; }
body.orbit-page .jn-tools-top { display: flex; gap: 10px; align-items: center; }
body.orbit-page .jn-search { min-width: 0; }
body.orbit-page .jn-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
body.orbit-page .jn-chips::-webkit-scrollbar { display: none; }
body.orbit-page .jn-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px;
  border: 2px solid var(--o-line); border-radius: 99px; background: var(--o-card); color: var(--o-ink-2);
  font: 800 14px var(--o-font); cursor: pointer;
}
body.orbit-page .jn-chip small { font-size: 12px; color: var(--o-ink-3); font-weight: 800; }
body.orbit-page .jn-chip:hover { background: var(--o-hover); }
body.orbit-page .jn-chip.is-on { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-ink); }
body.orbit-page .jn-chip.is-on small { color: var(--purple-ink); }
body.orbit-page .jn-chip.is-reels .material-symbols-rounded { font-size: 18px; color: var(--red); }
body.orbit-page .jn-chip.is-reels.is-on { border-color: var(--red); background: var(--red-soft); color: var(--red-ink); }
body.orbit-page .jn-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
body.orbit-page .jn-select { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; border: 2px solid var(--o-line); border-radius: 12px; background: var(--o-bg-2); color: var(--o-ink-2); }
body.orbit-page .jn-select .material-symbols-rounded { font-size: 18px; }
body.orbit-page .jn-select select { border: 0; background: transparent; font: 800 14px var(--o-font); color: var(--o-ink); min-height: 36px; padding: 0 4px; cursor: pointer; max-width: 170px; }
body.orbit-page .jn-select select:focus-visible { outline: none; }
body.orbit-page .jn-select:focus-within { border-color: var(--blue); }

/* entries */
body.orbit-page .jn-group { margin-top: 20px; }
body.orbit-page .jn-day { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: var(--o-ink-2); margin-bottom: 8px; }
body.orbit-page .jn-day small { color: var(--o-ink-3); }
body.orbit-page .jn-day .material-symbols-rounded { font-size: 16px; color: var(--orange); }
body.orbit-page .jn-day-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
body.orbit-page .jn-day-row .jn-day { margin: 0; }
body.orbit-page .jn-day-empty { padding: 6px 2px; }
body.orbit-page .jn-items { display: flex; flex-direction: column; gap: 8px; }
body.orbit-page .jn-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border: 2px solid var(--o-line); border-radius: 16px; background: var(--o-card); box-shadow: 0 3px 0 var(--o-line);
  color: var(--o-ink); text-decoration: none; min-width: 0;
}
body.orbit-page a.jn-item { color: var(--o-ink); }
body.orbit-page .jn-item:hover { background: var(--o-hover); }
body.orbit-page .jn-item-ico { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--o-bg-2); font-size: 23px; line-height: 1; }
body.orbit-page .jn-item-ico.is-plain .material-symbols-rounded { color: var(--o-ink-3); font-size: 22px; }
body.orbit-page .jn-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.orbit-page .jn-item-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
body.orbit-page .jn-item-title { font-size: 16px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.orbit-page .jn-pin { font-size: 16px; color: var(--orange); flex: 0 0 auto; }
body.orbit-page .jn-item-snip { font-size: 14px; color: var(--o-ink-2); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
body.orbit-page .jn-item-snip mark { background: var(--yellow-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
body.orbit-page .jn-item-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; font-weight: 800; color: var(--o-ink-3); margin-top: 2px; }
body.orbit-page .jn-item-meta > span { display: inline-flex; align-items: center; gap: 3px; }
body.orbit-page .jn-item-meta .material-symbols-rounded { font-size: 15px; }
body.orbit-page .jn-item-mood { flex: 0 0 auto; font-size: 22px; line-height: 42px; }
body.orbit-page .jn-item-cover { flex: 0 0 auto; width: 56px; height: 42px; border-radius: 10px; }
body.orbit-page .jn-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 6px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); font: 900 11px var(--o-font); text-transform: uppercase; letter-spacing: 0.04em; }
body.orbit-page .jn-badge .material-symbols-rounded { font-size: 14px; }
body.orbit-page .jn-badge.is-removed { background: var(--red-soft); color: var(--red-ink); }
body.orbit-page .jn-more-note { margin-top: 16px; text-align: center; }

body.orbit-page .jn-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 20px; text-align: center; margin-top: 18px; }
body.orbit-page .jn-empty h2 { font-size: 22px; }
body.orbit-page .jn-empty p { max-width: 440px; font-weight: 600; color: var(--o-ink-2); }
body.orbit-page .jn-empty.is-small { padding: 22px 16px; }
body.orbit-page .jn-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }

/* reel thoughts reuse orbit.css .o-entry */
body.orbit-page .jn-reel { margin-bottom: 10px; }
body.orbit-page .jn-reel .o-entry-reel > .material-symbols-rounded { flex: 0 0 auto; }
body.orbit-page .jn-asked { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 99px; background: var(--purple-soft); color: var(--purple-ink); font-size: 12px; font-weight: 900; vertical-align: 2px; }
body.orbit-page .jn-asked .material-symbols-rounded { font-size: 14px; }

/* calendar */
body.orbit-page .jn-cal { margin-top: 16px; padding: 14px; }
body.orbit-page .jn-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
body.orbit-page .jn-cal-head h3 { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 8px; font-size: 18px; text-align: center; }
body.orbit-page .jn-cal-head h3 small { font-size: 13px; color: var(--o-ink-3); font-weight: 800; }
body.orbit-page .jn-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
body.orbit-page .jn-cal-wd { text-align: center; font-size: 12px; font-weight: 900; color: var(--o-ink-3); padding-bottom: 2px; }
body.orbit-page .jn-cal-day {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px;
  min-height: 58px; padding: 6px 2px; border: 2px solid transparent; border-radius: 14px; background: var(--o-bg-2);
  color: var(--o-ink); font: 800 14px var(--o-font); cursor: pointer;
}
body.orbit-page .jn-cal-day:hover { border-color: var(--o-line-2); }
body.orbit-page .jn-cal-day.has { background: var(--purple-soft); }
body.orbit-page .jn-cal-day.is-today { border-color: var(--blue); }
body.orbit-page .jn-cal-day.is-sel { background: var(--purple-btn); color: var(--o-on-btn); border-color: var(--purple-btn); box-shadow: 0 3px 0 var(--purple-shadow); }
body.orbit-page .jn-cal-day.is-future { opacity: 0.55; }
body.orbit-page .jn-cal-marks { display: flex; align-items: center; gap: 3px; min-height: 18px; }
body.orbit-page .jn-cal-marks i { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
body.orbit-page .jn-cal-marks i.is-reel { background: var(--red); }
body.orbit-page .jn-cal-day.is-sel .jn-cal-marks i { background: var(--o-on-btn); }
body.orbit-page .jn-cal-mood { font-size: 16px; line-height: 1; }

/* side */
body.orbit-page .jn-stats { display: flex; flex-direction: column; gap: 10px; }
body.orbit-page .jn-stat {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px;
  padding: 12px 14px; border: 2px solid var(--o-line); border-radius: 16px; background: var(--o-card); box-shadow: 0 3px 0 var(--o-line);
}
body.orbit-page .jn-stat .material-symbols-rounded { color: var(--c); font-size: 26px; }
body.orbit-page .jn-stat b { font: 900 22px/1 var(--o-font); color: var(--c-ink); }
body.orbit-page .jn-stat span { font-size: 13px; font-weight: 800; color: var(--o-ink-2); }
@media (max-width: 1099px) {
  body.orbit-page .jn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body.orbit-page .jn-stat { grid-template-columns: auto 1fr; grid-template-rows: auto auto; padding: 10px 12px; gap: 0 6px; }
  body.orbit-page .jn-stat .material-symbols-rounded { grid-row: span 2; font-size: 24px; }
  body.orbit-page .jn-stat span { font-size: 12px; line-height: 1.2; }
  body.orbit-page .jn-stat .jn-long { display: none; }
}

body.orbit-page .jn-otd { padding: 14px; }
body.orbit-page .jn-otd-item { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 10px; margin: 0 -4px; border-radius: 12px; color: var(--o-ink); text-decoration: none; }
body.orbit-page a.jn-otd-item { color: var(--o-ink); }
body.orbit-page .jn-otd-item:hover { background: var(--o-hover); }
body.orbit-page .jn-otd-item small { grid-column: 1 / -1; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-ink); }
body.orbit-page .jn-otd-item b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.orbit-page .jn-nbs { padding: 14px; }
body.orbit-page .jn-nb-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--o-ink); font: 800 15px var(--o-font); text-align: left; cursor: pointer; text-decoration: none; }
body.orbit-page a.jn-nb-row { color: var(--o-ink); }
body.orbit-page .jn-nb-row > span:not(.material-symbols-rounded) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.orbit-page .jn-nb-row small { color: var(--o-ink-3); font-weight: 800; }
body.orbit-page .jn-nb-row:hover { background: var(--o-hover); }
body.orbit-page .jn-nb-row.is-on { background: var(--purple-soft); color: var(--purple-ink); }
body.orbit-page .jn-nb-row.is-blog { margin-top: 6px; border-top: 2px solid var(--o-line); border-radius: 0 0 12px 12px; padding-top: 12px; }
body.orbit-page .jn-nb-row .material-symbols-rounded { font-size: 20px; }

/* ── Editor ───────────────────────────────────────────────────────────── */
body.orbit-page .jn-ed { margin: -30px -28px 0; min-height: 100%; }
body.orbit-page .jn-ed-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  min-height: 58px; padding: 8px 18px; background: var(--o-bg); border-bottom: 2px solid var(--o-line);
}
body.orbit-page .jn-crumbs { display: flex; align-items: center; gap: 2px; min-width: 0; font-weight: 800; font-size: 14px; color: var(--o-ink-2); }
body.orbit-page .jn-crumbs a { color: var(--o-ink-2); text-decoration: none; padding: 4px 6px; border-radius: 8px; }
body.orbit-page .jn-crumbs a:hover { background: var(--o-hover); color: var(--o-ink); }
body.orbit-page .jn-crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 2px; }
body.orbit-page .jn-crumbs .material-symbols-rounded { font-size: 18px; color: var(--o-ink-3); }
body.orbit-page .jn-save { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 13px; font-weight: 800; color: var(--o-ink-3); white-space: nowrap; }
body.orbit-page .jn-save .material-symbols-rounded { font-size: 17px; }
body.orbit-page .jn-save.is-ok .material-symbols-rounded { color: var(--green); }
body.orbit-page .jn-save.is-local { color: var(--orange-ink); }
body.orbit-page .jn-ed-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
body.orbit-page .jn-ai-btn .material-symbols-rounded { color: var(--purple); }
body.orbit-page .jn-pub-btn .material-symbols-rounded { font-size: 18px; }

body.orbit-page .jn-cover { position: relative; height: 210px; }
body.orbit-page .jn-cover-actions { position: absolute; right: 18px; bottom: 12px; display: flex; gap: 6px; opacity: 0; transition: opacity 0.15s; }
body.orbit-page .jn-cover:hover .jn-cover-actions, body.orbit-page .jn-cover:focus-within .jn-cover-actions { opacity: 1; }
@media (hover: none) { body.orbit-page .jn-cover-actions { opacity: 1; } }
body.orbit-page .jn-cover-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.92); color: #3C3C3C; font: 800 13px var(--o-font); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
body.orbit-page .jn-cover-btn .material-symbols-rounded { font-size: 17px; }

body.orbit-page .jn-ed-page { max-width: 780px; margin: 0 auto; padding: 34px 56px 60px; }
body.orbit-page .jn-ed-page.has-cover { padding-top: 0; }
body.orbit-page .jn-ed-head { position: relative; margin-bottom: 14px; }
body.orbit-page .jn-page-icon { display: block; margin: 0 0 6px -6px; padding: 4px 6px; border: 0; border-radius: 14px; background: transparent; font-size: 60px; line-height: 1.1; cursor: pointer; }
body.orbit-page .jn-page-icon:hover { background: var(--o-hover); }
body.orbit-page .jn-ed-page.has-cover .jn-page-icon { margin-top: -40px; }
body.orbit-page .jn-ed-page.has-cover .jn-head-adds { padding-top: 12px; }
body.orbit-page .jn-head-adds:not(:has(button)) { display: none; }
body.orbit-page .jn-head-adds { display: flex; gap: 6px; min-height: 30px; margin: 0 0 4px -8px; opacity: 0; transition: opacity 0.15s; }
body.orbit-page .jn-ed-head:hover .jn-head-adds, body.orbit-page .jn-head-adds:focus-within { opacity: 1; }
@media (hover: none) { body.orbit-page .jn-head-adds { opacity: 1; } }
body.orbit-page .jn-add-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--o-ink-3); font: 800 13px var(--o-font); cursor: pointer; }
body.orbit-page .jn-add-btn:hover { background: var(--o-hover); color: var(--o-ink-2); }
body.orbit-page .jn-add-btn .material-symbols-rounded { font-size: 18px; }
body.orbit-page .jn-title {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; outline: none; resize: none; overflow: hidden;
  background: transparent; color: var(--o-ink); font: 900 40px/1.18 var(--o-font); letter-spacing: -0.02em;
}
body.orbit-page .jn-title::placeholder { color: var(--o-ink-3); opacity: 0.7; }
body.orbit-page .jn-props { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
body.orbit-page .jn-prop {
  display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 10px;
  border: 2px solid var(--o-line); border-radius: 10px; background: var(--o-card); color: var(--o-ink-3);
  font: 800 13px var(--o-font); cursor: pointer; white-space: nowrap;
}
body.orbit-page .jn-prop:hover { background: var(--o-hover); color: var(--o-ink-2); }
body.orbit-page .jn-prop.is-set { color: var(--o-ink); }
body.orbit-page .jn-prop .material-symbols-rounded { font-size: 17px; }
body.orbit-page .jn-prop-emoji { font-size: 17px; }
body.orbit-page .jn-prop[aria-pressed="true"] .material-symbols-rounded { color: var(--orange); }
body.orbit-page .jn-date { color: var(--o-ink); cursor: default; }
body.orbit-page .jn-date input { border: 0; background: transparent; color: inherit; font: 800 13px var(--o-font); padding: 0; min-height: 30px; cursor: pointer; }
body.orbit-page .jn-date input:focus { outline: none; }
body.orbit-page .jn-date:focus-within { border-color: var(--blue); }
:root[data-theme="dark"] body.orbit-page .jn-date input { color-scheme: dark; }
body.orbit-page .jn-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; padding: 2px 8px; border: 2px dashed var(--o-line); border-radius: 10px; }
body.orbit-page .jn-tags:focus-within { border-style: solid; border-color: var(--blue); }
body.orbit-page .jn-tag { display: inline-flex; align-items: center; gap: 1px; padding: 2px 2px 2px 8px; border-radius: 99px; background: var(--purple-soft); color: var(--purple-ink); font: 800 13px var(--o-font); }
body.orbit-page .jn-tag button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
body.orbit-page .jn-tag button:hover { background: rgba(0, 0, 0, 0.08); }
body.orbit-page .jn-tag .material-symbols-rounded { font-size: 14px; }
body.orbit-page .jn-tag-in { width: 84px; border: 0; background: transparent; color: var(--o-ink); font: 800 13px var(--o-font); outline: none; min-height: 26px; }
body.orbit-page .jn-tag-in::placeholder { color: var(--o-ink-3); }
body.orbit-page .jn-count { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--o-ink-3); white-space: nowrap; }
body.orbit-page .jn-doc { min-height: 120px; }
body.orbit-page .jn-doc-tail { min-height: 110px; cursor: text; }

/* replies */
body.orbit-page .jn-replies { margin-top: 18px; padding-top: 22px; border-top: 2px dashed var(--o-line); }
body.orbit-page .jn-thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
body.orbit-page .jn-thread:empty { display: none; }
body.orbit-page .jn-reply.is-me { align-self: flex-end; max-width: 85%; padding: 8px 12px; border-radius: 16px 16px 4px 16px; background: var(--blue-soft); color: var(--o-ink); font-weight: 600; }
body.orbit-page .jn-ask { display: flex; align-items: center; gap: 8px; }
body.orbit-page .jn-ask input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border: 2px solid var(--o-line); border-radius: 14px; background: var(--o-bg-2); font: 700 15px var(--o-font); color: var(--o-ink); outline: none; }
body.orbit-page .jn-ask input:focus { border-color: var(--purple); background: var(--o-card); }
body.orbit-page .jn-ask .o-btn { min-height: 44px; padding: 0 12px; }
body.orbit-page .jn-ask-ava { flex: 0 0 auto; display: grid; }

/* phone toolbar + AI bar */
body.orbit-page .jn-kbar { display: none; }
body.orbit-page .jn-ai-bar {
  position: fixed; left: 50%; bottom: 92px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 24px); padding: 6px 6px 6px 14px;
  border-radius: 99px; background: var(--o-ink); color: var(--o-bg); font: 800 14px var(--o-font);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
body.orbit-page .jn-ai-bar[hidden] { display: none; }
body.orbit-page .jn-ai-bar > .material-symbols-rounded { color: var(--purple); font-size: 20px; }
body.orbit-page .jn-ai-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.orbit-page .jn-ai-bar button { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: rgba(127, 127, 127, 0.22); color: inherit; font: inherit; cursor: pointer; }
body.orbit-page .jn-ai-bar button .material-symbols-rounded { font-size: 18px; }

@media (max-width: 767px) {
  body.orbit-page .jn-head { flex-direction: column; align-items: stretch; gap: 12px; }
  body.orbit-page .jn-head h1 { font-size: 28px; }
  body.orbit-page .jn-new-btn { width: 100%; }
  body.orbit-page .jn-tabs { display: flex; }
  body.orbit-page .jn-tabs a { flex: 1; justify-content: center; }
  body.orbit-page .jn-tpl-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  body.orbit-page .jn-tpl-row::-webkit-scrollbar { display: none; }
  body.orbit-page .jn-tpl { flex: 0 0 auto; }
  body.orbit-page .jn-hide-xs { display: none; }
  body.orbit-page .jn-item { padding: 10px 12px; gap: 10px; }
  body.orbit-page .jn-item-ico { width: 38px; height: 38px; font-size: 21px; }
  body.orbit-page .jn-item-cover { display: none; }
  body.orbit-page .jn-cal { padding: 10px; }
  body.orbit-page .jn-cal-grid { gap: 4px; }
  body.orbit-page .jn-cal-day { min-height: 46px; border-radius: 11px; padding: 4px 0; font-size: 13px; }
  body.orbit-page .jn-cal-mood { font-size: 14px; }

  body.orbit-page .jn-ed { margin: -16px -16px 0; }
  body.orbit-page .jn-ed-top { min-height: 54px; padding: 6px 8px; padding-top: calc(6px + env(safe-area-inset-top)); gap: 4px; }
  body.orbit-page .jn-crumbs { display: none; }
  body.orbit-page .jn-save { margin-left: 2px; }
  body.orbit-page .jn-save span { display: none; }
  body.orbit-page .jn-save.is-local span, body.orbit-page .jn-save.is-saving span { display: inline; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
  body.orbit-page .jn-ed-actions { gap: 6px; }
  body.orbit-page .jn-ed-actions .o-btn.is-sm { padding: 0 10px; }
  body.orbit-page .jn-cover { height: 140px; }
  body.orbit-page .jn-ed-page { padding: 20px 18px 40px; }
  body.orbit-page .jn-page-icon { font-size: 48px; }
  body.orbit-page .jn-ed-page.has-cover .jn-page-icon { margin-top: -32px; }
  body.orbit-page .jn-title { font-size: 30px; }
  body.orbit-page .jn-count { margin-left: 0; width: 100%; }
  body.orbit-page .o-app[data-jmode="edit"] #view-journal { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  body.orbit-page .jn-kbar {
    position: fixed; left: 0; right: 0; bottom: var(--jn-kb, 0px); z-index: 45;
    display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--o-bg); border-top: 2px solid var(--o-line);
  }
  body.orbit-page .jn-kbar::-webkit-scrollbar { display: none; }
  body.orbit-page .jn-kbar button { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--o-ink-2); font: 900 17px var(--o-font); cursor: pointer; }
  body.orbit-page .jn-kbar button:active { background: var(--o-hover); }
  body.orbit-page .jn-kbar button.is-ai { color: var(--purple); }
  body.orbit-page .jn-ai-bar { bottom: calc(var(--jn-kb, 0px) + 66px + env(safe-area-inset-bottom)); }
}

/* ── Blocks (js/journal-editor.js) ────────────────────────────────────── */
body.orbit-page .jb-doc { position: relative; }
body.orbit-page .jb-doc ::selection, body.orbit-page .jn-title::selection { background: rgba(28, 176, 246, 0.3); color: var(--o-ink); }
body.orbit-page .jb { position: relative; display: flex; align-items: flex-start; margin: 1px 0; padding-left: calc(var(--ind, 0) * 28px); border-radius: 8px; }
body.orbit-page .jb-gutter { position: absolute; top: 3px; left: calc(var(--ind, 0) * 28px - 56px); display: flex; opacity: 0; transition: opacity 0.12s; }
body.orbit-page .jb:hover > .jb-gutter, body.orbit-page .jb.is-focused > .jb-gutter { opacity: 1; }
body.orbit-page .jb-g { display: grid; place-items: center; width: 26px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--o-ink-3); cursor: pointer; }
body.orbit-page .jb-g:hover { background: var(--o-hover); color: var(--o-ink-2); }
body.orbit-page .jb-g .material-symbols-rounded { font-size: 20px; }
body.orbit-page .jb-handle { cursor: grab; }
body.orbit-page .jb-handle:active { cursor: grabbing; }
body.orbit-page .jb-t-h1 .jb-gutter { top: 12px; }
body.orbit-page .jb-t-h2 .jb-gutter { top: 10px; }
body.orbit-page .jb-t-h3 .jb-gutter { top: 7px; }
body.orbit-page .jb-body { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 4px; }
body.orbit-page .jb-text {
  position: relative; flex: 1; min-width: 0; padding: 3px 2px; outline: none;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  font-size: 17px; line-height: 1.62; color: var(--o-ink); caret-color: var(--blue); font-weight: 500;
}
body.orbit-page .jb-text.is-empty::before { content: attr(data-ph); position: absolute; left: 2px; top: 3px; right: 0; color: var(--o-ink-3); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.orbit-page .jb-t-p .jb-text.is-empty:not(:focus)::before { content: none; }
body.orbit-page .jb-t-p.has-ph .jb-text.is-empty::before, body.orbit-page .jb-doc > .jb-t-p:only-child .jb-text.is-empty::before { content: attr(data-ph); }
body.orbit-page .jb-text b, body.orbit-page .jart b, body.blog-page .jart b { font-weight: 800; }
body.orbit-page .jb-text code, .jart code { padding: 1px 5px; border-radius: 6px; background: var(--o-bg-2); border: 1px solid var(--o-line); color: var(--red-ink); font: 600 0.86em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
body.orbit-page .jb-text mark, .jart mark { background: #FFEA8A; color: inherit; border-radius: 3px; padding: 0 1px; }
:root[data-theme="dark"] body.orbit-page .jb-text mark, :root[data-theme="dark"] body.orbit-page .jart mark { background: rgba(255, 200, 0, 0.32); }
body.orbit-page .jb-text a, .jart a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
body.orbit-page .jb-text s, .jart s { color: var(--o-ink-2); }

body.orbit-page .jb-t-h1 { margin-top: 22px; }
body.orbit-page .jb-t-h2 { margin-top: 18px; }
body.orbit-page .jb-t-h3 { margin-top: 12px; }
body.orbit-page .jb-doc > .jb:first-child { margin-top: 0; }
body.orbit-page .jb-h1 { font-size: 30px; font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; }
body.orbit-page .jb-h2 { font-size: 24px; font-weight: 900; line-height: 1.3; }
body.orbit-page .jb-h3 { font-size: 19px; font-weight: 900; line-height: 1.35; }
body.orbit-page .jb-quote { padding-left: 16px; border-left: 4px solid var(--o-ink); font-size: 18px; }
body.orbit-page .jb-mark { flex: 0 0 auto; min-width: 22px; text-align: center; font-size: 17px; line-height: 1.62; padding-top: 3px; color: var(--o-ink); user-select: none; }
body.orbit-page .jb-t-bullet .jb-mark { font-size: 20px; line-height: 27px; }
body.orbit-page .jb-num { min-width: 24px; text-align: right; padding-right: 3px; font-variant-numeric: tabular-nums; font-weight: 700; }
body.orbit-page .jb-check-wrap { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 33px; }
body.orbit-page .jb-check { width: 19px; height: 19px; margin: 0; accent-color: var(--green-btn); cursor: pointer; }
body.orbit-page .jb.is-done .jb-text { color: var(--o-ink-3); text-decoration: line-through; text-decoration-color: var(--o-ink-3); }
body.orbit-page .jb-task-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; margin-top: 5px; padding: 1px 8px 1px 5px; border-radius: 99px; background: var(--green-soft); color: var(--green-ink); font: 900 11px/20px var(--o-font); }
body.orbit-page .jb-task-pill .material-symbols-rounded { font-size: 14px; }
body.orbit-page .jb-t-callout .jb-body { padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--yellow-soft); margin: 4px 0; }
body.orbit-page .jb-emoji { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 21px; cursor: pointer; }
body.orbit-page .jb-emoji:hover { background: rgba(0, 0, 0, 0.06); }
body.orbit-page .jb-t-code .jb-body { flex-direction: column; gap: 0; margin: 6px 0; border: 2px solid var(--o-line); border-radius: 14px; background: var(--o-bg-2); overflow: hidden; }
body.orbit-page .jb-codebar { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 4px 6px 0 8px; }
body.orbit-page .jb-lang { border: 0; background: transparent; color: var(--o-ink-2); font: 800 12px var(--o-font); padding: 4px; border-radius: 6px; cursor: pointer; }
body.orbit-page .jb-lang:hover { background: var(--o-hover); }
body.orbit-page .jb-code-text { width: 100%; padding: 6px 14px 12px; font: 500 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
body.orbit-page .jb-code-text.is-empty::before { left: 14px; top: 6px; }
body.orbit-page .jb-mini { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--o-ink-2); font: 800 12px var(--o-font); cursor: pointer; white-space: nowrap; }
body.orbit-page .jb-mini:hover { background: var(--o-hover); color: var(--o-ink); }
body.orbit-page .jb-mini .material-symbols-rounded { font-size: 16px; }
body.orbit-page .jb-mini.is-solid { background: var(--blue-btn); color: var(--o-on-btn); }
body.orbit-page .jb-mini input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--blue-btn); }
body.orbit-page .jb-hr { flex: 1; padding: 12px 0; border-radius: 6px; cursor: pointer; outline: none; }
body.orbit-page .jb-hr hr { margin: 0; border: 0; border-top: 2px solid var(--o-line-2); }
body.orbit-page .jb-hr:focus-visible, body.orbit-page .jb-img:focus-visible { box-shadow: 0 0 0 3px var(--o-focus); }
body.orbit-page .jb-fig { flex: 1; min-width: 0; margin: 8px 0; }
body.orbit-page .jb-img { border-radius: 14px; outline: none; }
body.orbit-page .jb-img img { display: block; max-width: 100%; max-height: 560px; margin: 0 auto; border-radius: 14px; object-fit: contain; }
body.orbit-page .jb-cap { text-align: center; font-size: 14px; color: var(--o-ink-2); padding-top: 6px; }
body.orbit-page .jb-cap.is-empty::before { left: 0; right: 0; text-align: center; }
body.orbit-page .jb-cap.is-empty:not(:focus)::before { content: none; }
body.orbit-page .jb-img-empty { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; padding: 12px; border: 2px dashed var(--o-line-2); border-radius: 14px; background: var(--o-bg-2); color: var(--o-ink-2); }
body.orbit-page .jb-img-empty > .material-symbols-rounded { font-size: 26px; color: var(--o-ink-3); }
body.orbit-page .jb-img-form { flex: 1; display: flex; gap: 6px; min-width: 200px; }
body.orbit-page .jb-img-url { flex: 1; min-width: 0; min-height: 36px; padding: 0 10px; border: 2px solid var(--o-line); border-radius: 10px; background: var(--o-card); font: 700 14px var(--o-font); color: var(--o-ink); outline: none; }
body.orbit-page .jb-img-url:focus { border-color: var(--blue); }
body.orbit-page .jb-tog { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 33px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--o-ink-2); cursor: pointer; }
body.orbit-page .jb-tog:hover { background: var(--o-hover); }
body.orbit-page .jb-tog .material-symbols-rounded { transition: transform 0.15s; transform: rotate(90deg); }
body.orbit-page .jb.is-closed .jb-tog .material-symbols-rounded { transform: none; }
body.orbit-page .jb-tog-main { flex: 1; min-width: 0; }
body.orbit-page .jb-tog-sum { font-weight: 800; }
body.orbit-page .jb-tog-body { margin-left: 2px; padding-left: 12px; border-left: 2px solid var(--o-line); }
body.orbit-page .jb.is-closed .jb-tog-body { display: none; }
body.orbit-page .jb-t-table .jb-body { flex-direction: column; gap: 4px; margin: 8px 0; }
body.orbit-page .jb-table-wrap { width: 100%; overflow-x: auto; }
body.orbit-page .jb-table { border-collapse: collapse; min-width: 100%; }
body.orbit-page .jb-table td { min-width: 110px; padding: 0; border: 2px solid var(--o-line); vertical-align: top; }
body.orbit-page .jb-cell { padding: 6px 10px; font-size: 15px; line-height: 1.5; }
body.orbit-page .jb-cell.is-empty::before { left: 10px; top: 6px; }
body.orbit-page .jb-table.has-head tr:first-child td { background: var(--o-bg-2); }
body.orbit-page .jb-table.has-head tr:first-child .jb-cell { font-weight: 800; }
body.orbit-page .jb-table-tools { display: flex; flex-wrap: wrap; gap: 2px; opacity: 0; transition: opacity 0.15s; }
body.orbit-page .jb:hover .jb-table-tools, body.orbit-page .jb.is-focused .jb-table-tools { opacity: 1; }
@media (hover: none) { body.orbit-page .jb-table-tools { opacity: 1; } }

body.orbit-page .jb.is-drop-before::before, body.orbit-page .jb.is-drop-after::after { content: ""; position: absolute; left: calc(var(--ind, 0) * 28px); right: 0; height: 3px; border-radius: 3px; background: var(--blue); pointer-events: none; }
body.orbit-page .jb.is-drop-before::before { top: -2px; }
body.orbit-page .jb.is-drop-after::after { bottom: -2px; }
body.orbit-page .jb.is-dragging { opacity: 0.4; }
body.orbit-page .jb.is-ai-busy { background: linear-gradient(90deg, var(--purple-soft), transparent 60%, var(--purple-soft)); background-size: 200% 100%; animation: jn-shimmer 1.2s linear infinite; }
body.orbit-page .jb-live { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; padding: 10px 14px; border: 2px solid var(--purple); border-radius: 14px; background: var(--purple-soft); }
body.orbit-page .jb-live-ico { color: var(--purple-ink); animation: jn-pulse 1.2s ease-in-out infinite; }
body.orbit-page .jb-live-body { min-width: 0; flex: 1; }
body.orbit-page .jb-live-body b { display: block; font-size: 13px; font-weight: 900; color: var(--purple-ink); }
body.orbit-page .jb-live-text { font-size: 15px; color: var(--o-ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: hidden; }
body.orbit-page .jb-dots { display: inline-flex; gap: 4px; padding: 6px 0; }
body.orbit-page .jb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); animation: jn-dot 1s ease-in-out infinite; }
body.orbit-page .jb-dots i:nth-child(2) { animation-delay: 0.15s; }
body.orbit-page .jb-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes jn-shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes jn-pulse { 50% { opacity: 0.45; transform: scale(0.9); } }
@keyframes jn-dot { 50% { transform: translateY(-4px); opacity: 0.6; } }
@media (max-width: 767px) {
  body.orbit-page .jb-gutter { display: none; }
  body.orbit-page .jb { padding-left: calc(var(--ind, 0) * 22px); }
  body.orbit-page .jb-text { font-size: 17px; }
  body.orbit-page .jb-h1 { font-size: 27px; }
  body.orbit-page .jb-h2 { font-size: 22px; }
}

/* ── Popovers: slash menu, block menu, toolbar, pickers ───────────────── */
body.orbit-page .jn-pop {
  position: fixed; z-index: 140; min-width: 220px; max-width: min(340px, calc(100vw - 16px)); max-height: min(420px, 62vh); overflow-y: auto;
  padding: 6px; border: 2px solid var(--o-line); border-radius: 16px; background: var(--o-card); color: var(--o-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); font-family: var(--o-font); overscroll-behavior: contain;
}
:root[data-theme="dark"] body.orbit-page .jn-pop { background: #1A2930; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); }
body.orbit-page .jn-pop-h { margin: 6px 8px 4px; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--o-ink-3); }
body.orbit-page .jn-pop-scope { display: flex; align-items: center; gap: 6px; margin: 4px 8px 6px; font-size: 14px; font-weight: 900; color: var(--purple-ink); }
body.orbit-page .jn-pop-scope small { color: var(--o-ink-3); font-weight: 800; }
body.orbit-page .jn-pop-scope .material-symbols-rounded { font-size: 18px; }
body.orbit-page .jn-pop-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 6px 8px;
  border: 0; border-radius: 10px; background: transparent; color: var(--o-ink); text-align: left; text-decoration: none;
  font: 800 14px var(--o-font); cursor: pointer;
}
body.orbit-page a.jn-pop-item { color: var(--o-ink); }
body.orbit-page .jn-pop-item:hover, body.orbit-page .jn-pop-item:focus-visible, body.orbit-page .jn-pop-item.is-active { background: var(--o-hover); outline: none; }
body.orbit-page .jn-pop-item.is-active { box-shadow: inset 0 0 0 2px var(--blue); background: var(--blue-soft); }
body.orbit-page .jn-pop-item.is-on { color: var(--blue-ink); }
body.orbit-page .jn-pop-item > .material-symbols-rounded { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--o-bg-2); color: var(--o-ink-2); font-size: 19px; flex: 0 0 auto; }
body.orbit-page .jn-pop-item.is-ai > .material-symbols-rounded, body.orbit-page .is-ai-menu .jn-pop-item > .material-symbols-rounded { background: var(--purple-soft); color: var(--purple-ink); }
body.orbit-page .jn-pop-item.is-danger, body.orbit-page .jn-pop-item.is-danger > .material-symbols-rounded { color: var(--red-ink); }
body.orbit-page .jn-pop-item > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.orbit-page .jn-pop-item small { font-size: 12px; font-weight: 700; color: var(--o-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.orbit-page .jn-pop kbd { font: 800 11px var(--o-font); color: var(--o-ink-3); white-space: nowrap; }
body.orbit-page .jn-pop-empty { padding: 10px; color: var(--o-ink-2); font-weight: 700; font-size: 14px; }
body.orbit-page .jn-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
body.orbit-page .jn-pop-grid .jn-pop-item { min-height: 34px; font-size: 13px; gap: 6px; }
body.orbit-page .jn-pop-grid .jn-pop-item > .material-symbols-rounded { width: 26px; height: 26px; font-size: 17px; }
body.orbit-page .jn-pop.is-slash { width: 320px; }
body.orbit-page .jn-pop.is-menu { min-width: 250px; }
body.orbit-page .jn-pop.is-ai-menu { max-height: min(640px, calc(100vh - 80px)); }
body.orbit-page .jn-pop.is-ai-menu .jn-pop-item { min-height: 34px; padding: 3px 8px; }
body.orbit-page .jn-pop.is-ai-menu .jn-pop-item > .material-symbols-rounded { width: 28px; height: 28px; font-size: 18px; }

body.orbit-page .jn-pop.is-ftb { display: flex; align-items: center; gap: 2px; min-width: 0; max-width: calc(100vw - 16px); padding: 4px; border-radius: 12px; overflow-x: auto; overflow-y: hidden; }
body.orbit-page .jn-pop.is-ftb[hidden] { display: none; }
body.orbit-page .is-ftb button { flex: 0 0 auto; display: inline-grid; grid-auto-flow: column; place-items: center; gap: 2px; min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: transparent; color: var(--o-ink); font: 800 15px var(--o-font); cursor: pointer; }
body.orbit-page .is-ftb button:hover { background: var(--o-hover); }
body.orbit-page .is-ftb button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-ink); }
body.orbit-page .is-ftb button.is-wide { padding: 0 8px; font-size: 13px; }
body.orbit-page .is-ftb button.is-ai { color: var(--purple-ink); }
body.orbit-page .is-ftb .material-symbols-rounded { font-size: 18px; }
body.orbit-page .jn-ftb-sep { width: 2px; height: 20px; margin: 0 3px; background: var(--o-line); flex: 0 0 auto; }
body.orbit-page .is-linkbub { gap: 4px; padding: 4px 4px 4px 10px; }
body.orbit-page .is-linkbub a { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 14px; color: var(--blue-ink); }
body.orbit-page .is-linkbub > .material-symbols-rounded { color: var(--o-ink-3); }
body.orbit-page .jn-linkpop, body.orbit-page .jn-cover-url { display: flex; gap: 6px; padding: 4px; }
body.orbit-page .jn-linkpop input, body.orbit-page .jn-cover-url input { flex: 1; min-width: 0; min-height: 38px; padding: 0 10px; border: 2px solid var(--o-line); border-radius: 10px; background: var(--o-bg-2); color: var(--o-ink); font: 700 14px var(--o-font); outline: none; }
body.orbit-page .jn-linkpop input:focus, body.orbit-page .jn-cover-url input:focus { border-color: var(--blue); }
body.orbit-page .jn-pop.is-link { width: 360px; }
body.orbit-page .jn-pop-btn { flex: 0 0 auto; min-height: 38px; padding: 0 12px; border: 2px solid var(--o-line); border-radius: 10px; background: var(--o-card); color: var(--o-ink); font: 800 13px var(--o-font); cursor: pointer; }
body.orbit-page .jn-pop-btn.is-solid { background: var(--blue-btn); border-color: var(--blue-btn); color: var(--o-on-btn); }
body.orbit-page .jn-emoji-grid { display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 2px; }
body.orbit-page .jn-emoji-grid button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; font-size: 21px; cursor: pointer; }
body.orbit-page .jn-emoji-grid button:hover, body.orbit-page .jn-emoji-grid button:focus-visible { background: var(--o-hover); outline: none; }
body.orbit-page .jn-pop.is-emoji, body.orbit-page .jn-pop.is-cover { max-width: min(330px, calc(100vw - 16px)); }
body.orbit-page .jn-cover-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 2px 4px 8px; }
body.orbit-page .jn-cover-grid button { height: 40px; border: 2px solid transparent; border-radius: 10px; cursor: pointer; }
body.orbit-page .jn-cover-grid button:hover, body.orbit-page .jn-cover-grid button:focus-visible { border-color: var(--o-ink); outline: none; }
body.orbit-page .jn-mood-row { display: flex; gap: 4px; padding: 2px 4px 6px; }
body.orbit-page .jn-mood { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 54px; padding: 8px 0 6px; border: 2px solid var(--o-line); border-radius: 14px; background: var(--o-card); cursor: pointer; }
body.orbit-page .jn-mood span { font-size: 26px; line-height: 1.1; }
body.orbit-page .jn-mood small { font: 800 11px var(--o-font); color: var(--o-ink-2); }
body.orbit-page .jn-mood:hover, body.orbit-page .jn-mood:focus-visible { background: var(--o-hover); outline: none; }
body.orbit-page .jn-mood.is-on { border-color: var(--orange); background: var(--orange-soft); }
body.orbit-page .jn-lang-grid { display: flex; flex-wrap: wrap; gap: 8px; }
body.orbit-page .jn-keys { width: 100%; border-collapse: collapse; }
body.orbit-page .jn-keys th, body.orbit-page .jn-keys td { padding: 7px 4px; border-bottom: 2px solid var(--o-line); text-align: left; font-size: 14px; }
body.orbit-page .jn-keys th { width: 46%; font-weight: 700; }
body.orbit-page .jn-keys kbd { display: inline-block; padding: 2px 7px; border: 2px solid var(--o-line); border-radius: 8px; background: var(--o-bg-2); font: 800 12px var(--o-font); white-space: normal; }

/* publish sheet */
body.orbit-page .jn-pub-card { display: flex; gap: 12px; align-items: center; padding: 10px; border: 2px solid var(--o-line); border-radius: 16px; margin-bottom: 14px; }
body.orbit-page .jn-pub-cover { flex: 0 0 auto; position: relative; width: 84px; height: 62px; border-radius: 10px; }
body.orbit-page .jn-pub-cover span { position: absolute; left: 6px; bottom: -6px; font-size: 26px; }
body.orbit-page .jn-pub-card b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.orbit-page .jn-pub-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--o-ink-2); font-size: 13px; font-weight: 600; }
body.orbit-page .jn-pub-card > div { min-width: 0; }
body.orbit-page .jn-vis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
body.orbit-page .jn-vis-opt { position: relative; cursor: pointer; }
body.orbit-page .jn-vis-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
body.orbit-page .jn-vis-opt > span { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; height: 100%; padding: 10px 12px; border: 2px solid var(--o-line); border-radius: 14px; box-shadow: 0 3px 0 var(--o-line); }
body.orbit-page .jn-vis-opt .material-symbols-rounded { grid-row: span 2; color: var(--o-ink-2); }
body.orbit-page .jn-vis-opt b { font-size: 15px; }
body.orbit-page .jn-vis-opt small { font-size: 12px; font-weight: 700; color: var(--o-ink-2); }
body.orbit-page .jn-vis-opt input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 3px 0 var(--blue); }
body.orbit-page .jn-vis-opt input:checked + span .material-symbols-rounded { color: var(--blue-ink); }
body.orbit-page .jn-vis-opt input:focus-visible + span { outline: 3px solid var(--o-focus); outline-offset: 2px; }
body.orbit-page .jn-pub-live { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; }
body.orbit-page .jn-pub-link { display: flex; gap: 8px; margin-bottom: 14px; }
body.orbit-page .jn-pub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
body.orbit-page .jn-unpub { margin-left: auto; color: var(--red-ink); }
body.orbit-page .jn-pub-link input { flex: 1; min-width: 0; min-height: 40px; padding: 0 12px; border: 2px solid var(--o-line); border-radius: 12px; background: var(--o-bg-2); color: var(--o-ink); font: 700 14px var(--o-font); }

/* ── Blogs tab + reader ───────────────────────────────────────────────── */
body.orbit-page .jn-blog-hero { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--red-soft); border-color: var(--red); box-shadow: 0 3px 0 var(--red); }
body.orbit-page .jn-blog-hero h2 { font-size: 20px; margin-bottom: 2px; }
body.orbit-page .jn-blog-hero p { font-weight: 600; font-size: 14px; color: var(--o-ink-2); }
body.orbit-page .jn-blog-hero > div:not(.jn-blog-hero-art) { flex: 1; min-width: 0; }
body.orbit-page .jn-blog-hero-art { font-size: 44px; line-height: 1; }
body.orbit-page .jn-blog-sec { margin-top: 26px; }
body.orbit-page .jn-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
body.orbit-page .jn-post { display: flex; flex-direction: column; border: 2px solid var(--o-line); border-radius: 18px; background: var(--o-card); box-shadow: 0 3px 0 var(--o-line); overflow: hidden; min-width: 0; }
body.orbit-page .jn-post-link { flex: 1; display: flex; flex-direction: column; color: var(--o-ink); text-decoration: none; }
body.orbit-page a.jn-post-link { color: var(--o-ink); }
body.orbit-page .jn-post-link:hover .jn-post-title { text-decoration: underline; text-underline-offset: 3px; }
body.orbit-page .jn-post-cover { position: relative; height: 112px; }
body.orbit-page .jn-post-icon { position: absolute; left: 14px; bottom: -14px; font-size: 32px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12)); }
body.orbit-page .jn-post-body { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px 14px; }
body.orbit-page .jn-post-title { font-size: 17px; font-weight: 900; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.orbit-page .jn-post-ex { font-size: 14px; font-weight: 600; color: var(--o-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.orbit-page .jn-post-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--o-ink-3); min-width: 0; }
body.orbit-page .jn-post-by { color: var(--o-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
body.orbit-page .jn-post-meta > span:last-child { white-space: nowrap; }
.jn-post-ava, .jart-ava { flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--purple-soft); color: var(--purple-ink); font: 900 11px var(--o-font); }
body.orbit-page .jn-post-own { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 2px solid var(--o-line); font-size: 13px; }
body.orbit-page .jn-post-own .o-link-btn { margin-left: auto; }
body.orbit-page .jn-post.is-skel { height: 250px; background: linear-gradient(90deg, var(--o-bg-2), var(--o-hover), var(--o-bg-2)); background-size: 200% 100%; animation: jn-shimmer 1.3s linear infinite; }
body.orbit-page .jn-more { display: flex; justify-content: center; margin-top: 16px; }

body.orbit-page .jn-read { max-width: 780px; }
body.orbit-page .jn-read-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
body.orbit-page .jn-read-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.orbit-page .jn-read-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 16px; border-top: 2px solid var(--o-line); color: var(--o-ink-2); font-weight: 700; }

@media (max-width: 767px) {
  body.orbit-page .jn-blog-hero { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  body.orbit-page .jn-blog-hero-art { display: none; }
  body.orbit-page .jn-blog-hero .o-btn { width: 100%; }
  body.orbit-page .jn-vis { grid-template-columns: 1fr; }
  body.orbit-page .jn-pop.is-slash { width: calc(100vw - 16px); }
}

/* ── The article (in-app reader and /b/:id) ───────────────────────────── */
.jart { color: var(--o-ink); font-family: var(--o-font); }
.jart-cover { height: 240px; border-radius: 22px; margin-bottom: 0; }
.jart-head { margin-bottom: 26px; }
.jart-head.has-cover { margin-top: -34px; padding: 0 8px; }
.jart-icon { font-size: 60px; line-height: 1.1; margin-bottom: 6px; }
.jart-head:not(.has-cover) .jart-icon { margin-top: 8px; }
.jart-title { font: 900 42px/1.15 var(--o-font); letter-spacing: -0.02em; margin: 0 0 16px; color: var(--o-ink); overflow-wrap: anywhere; }
.jart-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.jart a.jart-author, .jart a.jart-author:hover { color: var(--o-ink); text-decoration: none; }
.jart-author { display: inline-flex; align-items: center; gap: 10px; color: var(--o-ink); text-decoration: none; padding: 4px 10px 4px 4px; margin-left: -4px; border-radius: 99px; }
a.jart-author:hover { background: var(--o-hover); }
.jart-author .jart-ava { width: 38px; height: 38px; font-size: 16px; }
.jart-author b { display: block; font-size: 15px; font-weight: 900; line-height: 1.2; }
.jart-author small { display: block; font-size: 13px; font-weight: 700; color: var(--o-ink-2); }
.jart-meta { font-size: 14px; font-weight: 700; color: var(--o-ink-2); }
.jart-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.jart-tags span { padding: 3px 10px; border-radius: 99px; background: var(--purple-soft); color: var(--purple-ink); font-size: 13px; font-weight: 800; }
.jart-body { font-size: 18.5px; line-height: 1.72; font-weight: 500; overflow-wrap: anywhere; }
.jart-body > * { margin: 0 0 0.85em; }
.jart-body p.is-empty { margin: 0 0 0.4em; }
.jart-body .jart-h1 { font: 900 30px/1.25 var(--o-font); margin: 1.5em 0 0.5em; }
.jart-body .jart-h2 { font: 900 24px/1.3 var(--o-font); margin: 1.35em 0 0.45em; }
.jart-body .jart-h3 { font: 900 20px/1.35 var(--o-font); margin: 1.2em 0 0.4em; }
.jart-body > :first-child { margin-top: 0; }
.jart-list { list-style: none; padding: 0; }
.jart-list li { display: flex; gap: 6px; padding-left: calc(var(--ind, 0) * 28px); margin: 0.2em 0; }
.jart-bul, .jart-num { flex: 0 0 auto; min-width: 22px; text-align: center; font-weight: 700; }
.jart-num { text-align: right; padding-right: 4px; font-variant-numeric: tabular-nums; }
.jart-box { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0.2em 4px 0 1px; border: 2px solid var(--o-line-2); border-radius: 6px; font-size: 13px; font-weight: 900; color: #fff; }
.jart-todo.is-done .jart-box { background: var(--green-btn); border-color: var(--green-btn); }
.jart-todo.is-done > span:last-child { color: var(--o-ink-3); text-decoration: line-through; }
.jart-quote { margin-left: 0; padding: 2px 0 2px 18px; border-left: 4px solid var(--o-ink); font-size: 20px; }
.jart-callout { display: flex; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--yellow-soft); }
.jart-callout-ico { font-size: 22px; line-height: 1.5; }
.jart-code { padding: 14px 18px; border: 2px solid var(--o-line); border-radius: 14px; background: var(--o-bg-2); overflow-x: auto; white-space: pre; font: 500 14.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.jart-code code { padding: 0; border: 0; background: none; color: var(--o-ink); font: inherit; }
.jart-hr { border: 0; border-top: 2px solid var(--o-line-2); margin: 1.6em 0; }
.jart-fig { margin: 1.2em 0; }
.jart-fig img { display: block; max-width: 100%; margin: 0 auto; border-radius: 16px; }
.jart-fig figcaption { margin-top: 8px; text-align: center; font-size: 14px; color: var(--o-ink-2); }
.jart-toggle { padding: 4px 0; }
.jart-toggle summary { cursor: pointer; font-weight: 800; }
.jart-toggle > div { padding: 6px 0 0 20px; white-space: pre-wrap; }
.jart-table-wrap { overflow-x: auto; }
.jart-table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.5; }
.jart-table th, .jart-table td { padding: 8px 12px; border: 2px solid var(--o-line); text-align: left; vertical-align: top; }
.jart-table th { background: var(--o-bg-2); font-weight: 900; }
@media (max-width: 767px) {
  .jart-cover { height: 160px; border-radius: 16px; }
  .jart-title { font-size: 31px; }
  .jart-icon { font-size: 46px; }
  .jart-body { font-size: 17.5px; }
  .jart-head.has-cover { margin-top: -26px; padding: 0 4px; }
}

/* ── The public post page (blog.html) ─────────────────────────────────── */
body.blog-page {
  --o-font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Color Emoji", sans-serif;
  --o-bg: #FFFFFF; --o-bg-2: #F7F7F7; --o-card: #FFFFFF; --o-line: #E5E5E5; --o-line-2: #D2D2D2;
  --o-ink: #3C3C3C; --o-ink-2: #6B6B6B; --o-ink-3: #AFAFAF; --o-hover: #F4F4F4; --o-focus: #1CB0F6; --o-on-btn: #FFFFFF;
  --blue: #1CB0F6; --blue-ink: #0A6FAA; --blue-btn: #0A6FAA; --blue-shadow: #07507A; --blue-soft: #DDF4FF;
  --green: #58CC02; --green-ink: #2B7F00; --green-btn: #2B7F00; --green-shadow: #1E5C00; --green-soft: #E9F9DA;
  --red: #FF4B4B; --red-ink: #C92A2A; --red-btn: #C92A2A; --red-shadow: #8F1C1C; --red-soft: #FFE4E4;
  --purple: #CE82FF; --purple-ink: #8A3FC7; --purple-btn: #8A3FC7; --purple-shadow: #612C8D; --purple-soft: #F4E6FF;
  --yellow: #FFC800; --yellow-ink: #8A6400; --yellow-soft: #FFF6CC;
  margin: 0; background: var(--o-bg); color: var(--o-ink); font-family: var(--o-font);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
body.blog-page *, body.blog-page *::before, body.blog-page *::after { box-sizing: border-box; }
body.blog-page :focus-visible { outline: 3px solid var(--o-focus); outline-offset: 2px; border-radius: 8px; }
body.blog-page .material-symbols-rounded { font-family: "Material Symbols Rounded"; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: "liga"; font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24; vertical-align: middle; }
body.blog-page .jart b { font-weight: 800; }
.bp-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 2px solid var(--o-line); }
.bp-brand { display: inline-flex; align-items: center; gap: 8px; color: #2B7F00; text-decoration: none; font: 900 22px/1 var(--o-font); letter-spacing: -0.02em; }
.bp-brand svg { width: 32px; height: 32px; }
.bp-top-actions { display: flex; align-items: center; gap: 8px; }
.bp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--green-btn); color: #fff; font: 800 14px var(--o-font); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--green-shadow); white-space: nowrap; }
.bp-btn:active { transform: translateY(3px); box-shadow: none; }
.bp-btn.is-ghost { background: #fff; color: var(--o-ink-2); border: 2px solid var(--o-line); box-shadow: 0 3px 0 var(--o-line); }
.bp-main { flex: 1; width: 100%; max-width: 780px; margin: 0 auto; padding: 28px 20px 40px; }
.bp-more { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--o-line); }
.bp-more h2 { font: 900 18px var(--o-font); margin: 0 0 12px; }
.bp-more-list { display: grid; gap: 10px; }
.bp-more-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid var(--o-line); border-radius: 16px; box-shadow: 0 3px 0 var(--o-line); color: var(--o-ink); text-decoration: none; }
.bp-more-item:hover { background: var(--o-hover); }
.bp-more-cover { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; font-size: 24px; }
.bp-more-item b { display: block; font-size: 15px; font-weight: 900; }
.bp-more-item small { display: block; font-size: 13px; font-weight: 600; color: var(--o-ink-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bp-cta { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding: 18px 20px; border: 2px solid var(--green); border-radius: 20px; background: var(--green-soft); box-shadow: 0 4px 0 var(--green); }
.bp-cta > div { flex: 1; min-width: 0; }
.bp-cta b { display: block; font-size: 17px; font-weight: 900; }
.bp-cta p { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--o-ink-2); }
.bp-foot { padding: 22px 20px 28px; text-align: center; font-size: 14px; font-weight: 700; color: var(--o-ink-2); border-top: 2px solid var(--o-line); }
.bp-foot a { color: var(--green-ink); font-weight: 900; text-decoration: none; }
.bp-foot a:hover { text-decoration: underline; }
.bp-state { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 10px; text-align: center; }
.bp-state h1 { font: 900 26px var(--o-font); margin: 0; }
.bp-state p { margin: 0; color: var(--o-ink-2); font-weight: 600; }
.bp-spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--o-line); border-top-color: var(--green); animation: bp-spin 0.8s linear infinite; }
@keyframes bp-spin { to { transform: rotate(360deg); } }
.bp-share { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .bp-top { padding: 8px 14px; }
  #bp-share span:not(.material-symbols-rounded) { display: none; }
  #bp-share { padding: 0 11px; }
  .bp-main { padding: 18px 16px 30px; }
  .bp-cta { flex-direction: column; align-items: stretch; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  body.orbit-page .jb.is-ai-busy, body.orbit-page .jb-live-ico, body.orbit-page .jb-dots i, body.orbit-page .jn-post.is-skel, .bp-spinner { animation: none; }
}
