/* JunaJournal web — styles. Tokens first, then base, shell, screens, editor. */

:root {
  color-scheme: light dark;

  --ink: #16171D;
  --muted: #5A5F6E;
  --paper: #F5F6FA;
  --surface: #FFFFFF;
  --raised: #FFFFFF;
  --sidebar: #EEF0F5;
  --line: #E3E5EC;
  --line-strong: #C9CCD6;
  --skeleton: #E9EBF1;

  --indigo: #4338CA;
  --indigo-hover: #3730A3;
  --indigo-text: #4338CA;
  --indigo-soft: #EAE8FB;
  --indigo-soft-text: #3730A3;
  --on-indigo: #FFFFFF;

  --ember: #C2410C;
  --ember-hover: #9A3412;
  --ember-text: #9A3412;
  --ember-soft: #FDEBDD;
  --ember-border: #F6CDB0;
  --ember-tint: #FFF7F1;

  --error: #B91C1C;
  --error-soft: #FEE2E2;
  --success: #15803D;
  --success-soft: #DCFCE7;
  --banner-dark: #16171D;
  --scrim: rgba(22, 23, 29, 0.45);

  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 20px;
  --radius-xl: 24px;
  --shadow: 0 1px 3px rgba(22, 23, 29, 0.1);
  --shadow-pop: 0 12px 32px rgba(22, 23, 29, 0.18);

  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: Literata, Georgia, 'Times New Roman', serif;
  --tabbar-height: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2F3F7;
    --muted: #A1A5B3;
    --paper: #0F1015;
    --surface: #1A1B22;
    --raised: #22232C;
    --sidebar: #14151B;
    --line: #2C2E39;
    --line-strong: #454857;
    --skeleton: #262731;

    --indigo: #5B51E8;
    --indigo-hover: #6D64EE;
    --indigo-text: #A7A1FA;
    --indigo-soft: #26244A;
    --indigo-soft-text: #C9C5FC;

    --ember-hover: #D9541C;
    --ember-text: #F59E6B;
    --ember-soft: #3A1E12;
    --ember-border: #5A2E1A;
    --ember-tint: #21150F;

    --error: #F87171;
    --error-soft: #3B1616;
    --success: #4ADE80;
    --success-soft: #14301F;
    --banner-dark: #2C2E39;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--indigo-text); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--indigo-text);
  outline-offset: 2px;
}

mark {
  background: var(--indigo-soft);
  color: var(--indigo-soft-text);
  border-radius: 4px;
  padding: 0 2px;
  font-weight: 600;
}

kbd {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.icon { flex-shrink: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.label, .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { color: var(--indigo-text); }

.dot { display: inline-block; flex-shrink: 0; border-radius: 50%; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--line-strong); }
.btn:disabled { opacity: 0.55; }

.btn-primary { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); font-weight: 700; }
.btn-primary:hover:not(:disabled) { background: var(--indigo-hover); border-color: var(--indigo-hover); }

.btn-ember { background: var(--ember); border-color: var(--ember); color: #FFFFFF; font-weight: 700; }
.btn-ember:hover:not(:disabled) { background: var(--ember-hover); border-color: var(--ember-hover); }
.btn-ember-soft { background: var(--ember-soft); border-color: var(--ember-soft); color: var(--ember-text); }

.btn-danger { background: var(--surface); border-color: var(--error); color: var(--error); font-weight: 700; }
.btn-danger:hover:not(:disabled) { background: var(--error-soft); border-color: var(--error); }

.btn-icon { width: 44px; padding: 0; border-radius: 50%; }
.btn-icon.is-on { color: var(--ember); }
.btn-square { width: 44px; padding: 0; border-radius: 14px; }
.btn-large { min-height: 52px; border-radius: var(--radius-m); font-size: 15px; padding: 0 22px; }
.btn-block { width: 100%; }
.btn-small { min-height: 32px; padding: 0 12px; border-radius: 16px; font-size: 13px; position: relative; }
/* Small buttons keep a 44px hit area. */
.btn-small::after, .tag-remove::after, .block-remove::after, .mood-button::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}
.btn-small-icon { width: 32px; min-height: 32px; margin-left: auto; position: relative; }
.btn-on-dark { background: transparent; border-color: #5A5F6E; color: #FFFFFF; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  color: var(--indigo-text);
  font-size: 13px;
  font-weight: 700;
}
.link-button:hover:not(:disabled) { text-decoration: underline; }

/* ------------------------------------------------------------------ forms */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > legend { font-size: 13px; font-weight: 700; }

.input {
  height: 48px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 0 14px;
  font-size: 15px;
}
.input:focus { outline: none; border: 2px solid var(--indigo-text); padding: 0 13px; }
.input[aria-invalid='true'] { border-color: var(--error); }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--error);
}

/* ------------------------------------------------------------- small bits */

.badge-premium {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--indigo-soft);
  color: var(--indigo-soft-text);
  padding: 2px 6px;
  border-radius: 6px;
}

.chip-voice, .chip-pending, .chip-star, .chip-current {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
}
.chip-voice { color: var(--ember-text); background: var(--ember-soft); }
.chip-pending { color: var(--ink); background: var(--skeleton); }
.chip-star { color: var(--ember); padding: 0; }
.chip-current { color: var(--indigo-soft-text); background: var(--indigo-soft); margin-left: 8px; }

.skeleton {
  display: block;
  border-radius: 7px;
  background: var(--skeleton);
  animation: pulse 1.4s ease-in-out infinite;
}
.skeleton + .skeleton { margin-top: 8px; }
.skeleton-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.skeleton-row { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.skeleton-row:last-child { border-bottom: 0; }
.skeleton-lines { flex: 1; min-width: 0; }
@keyframes pulse { 50% { opacity: 0.5; } }

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-s);
}
.banner-text { flex: 1; min-width: 200px; }
.banner-error { background: var(--error-soft); color: var(--error); }
.banner-error .btn { color: var(--ink); }
.banner-conflict { background: var(--indigo-soft); color: var(--indigo-soft-text); }
.banner-conflict .btn { color: var(--ink); }
.banners .banner { border-radius: 0; padding: 10px 24px; }
.banner-offline { background: var(--banner-dark); color: #FFFFFF; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 16px;
}
.empty-state h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.empty-state p { color: var(--muted); line-height: 1.6; }
.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--indigo-soft);
  color: var(--indigo-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--indigo-soft);
  color: var(--indigo-text);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.avatar-large { width: 56px; height: 56px; font-size: 22px; }

.thumb { display: block; overflow: hidden; background: var(--skeleton); flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ shell */

jj-app { display: block; min-height: 100%; }

.boot, .fatal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}
.fatal h1 { font-size: 24px; }
.fatal p { max-width: 520px; color: var(--muted); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--indigo);
  color: var(--on-indigo);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.shell { display: flex; height: 100vh; height: 100dvh; }

jj-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 256px;
  flex-shrink: 0;
  padding: 20px 14px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.sidebar-nav, .sidebar-foot nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav-link:hover { background: var(--line); }
.nav-link[aria-current='page'] { background: var(--indigo-soft); color: var(--indigo-soft-text); font-weight: 700; }
.nav-label { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.nav-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.nav-sub { display: flex; flex-direction: column; gap: 1px; padding-left: 18px; }
.nav-link-small { font-size: 13px; min-height: 40px; }

.sync-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sync-line { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.sync-line-large { font-size: 15px; font-weight: 700; color: var(--ink); }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.sync-ok { background: #0F766E; }
.sync-busy { background: var(--indigo-text); }
.sync-off { background: var(--muted); }
.sync-error { background: var(--error); }

.main-column { flex: 1; min-width: 0; display: flex; flex-direction: column; }

jj-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.search-field { position: relative; flex: 1; max-width: 420px; margin-right: auto; }
.search-icon { position: absolute; left: 14px; top: 13px; color: var(--muted); pointer-events: none; display: flex; }
.search-input {
  width: 100%;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 64px 0 42px;
  font-size: 14px;
}
.search-input:focus { outline: none; border-color: var(--indigo-text); box-shadow: 0 0 0 2px var(--indigo-text); }
.search-hint { position: absolute; right: 14px; top: 13px; font-size: 12px; font-weight: 600; color: var(--muted); pointer-events: none; }

.outlet { flex: 1; min-height: 0; overflow-y: auto; outline: none; }
.outlet > * { display: block; min-height: 100%; }

jj-tabbar { display: none; }

/* ------------------------------------------------------------------ pages */

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 28px 4px;
  max-width: 1160px;
}
.page-title { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.page-title-row { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-title h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.page-kicker { font-size: 13px; font-weight: 600; color: var(--muted); }

.page-body { padding: 20px 28px 48px; max-width: 1160px; display: flex; flex-direction: column; gap: 20px; }
.page-body.narrow, .page-body.settings { max-width: 800px; }
.two-column { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
.column-main { flex: 2 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.column-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.section { display: flex; flex-direction: column; gap: 12px; }
.section > h2, .section-head h2 { font-size: 18px; font-weight: 700; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }

/* Today */

.quick-start { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.quick-question { font-family: var(--font-text); font-size: 24px; line-height: 1.35; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quick-actions .btn { flex: 1 1 160px; }

.streak { display: flex; flex-direction: column; gap: 16px; }
.streak-head { display: flex; align-items: center; gap: 10px; }
.streak-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ember-soft); color: var(--ember);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.streak-count { font-size: 18px; font-weight: 700; }
.streak-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.streak-day {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 52px; padding: 4px 0; border-radius: 10px; text-decoration: none;
}
.streak-day-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.streak-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); }
.streak-dot.is-filled { background: var(--ember); border-color: var(--ember); }
.streak-dot.is-today:not(.is-filled) { border: 2px dashed var(--ember); }

.prompt-card { display: flex; flex-direction: column; gap: 14px; }
.card-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.prompt-text { font-family: var(--font-text); font-size: 19px; line-height: 1.4; }

/* Entry cards and rows */

.entry-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
}
.entry-card:hover { border-color: var(--line-strong); }
.entry-card-thumb { width: 96px; height: 96px; border-radius: 14px; }
.entry-card.is-compact { padding: 14px; gap: 14px; }
.entry-card.is-compact .entry-card-thumb { width: 72px; height: 72px; }
.entry-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.entry-card-title { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.entry-card-preview, .entry-row-preview {
  font-family: var(--font-text);
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.entry-card-preview { font-size: 15px; line-height: 1.5; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

.entry-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.month-header {
  padding: 8px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
}
.entry-row {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.entry-row:hover { background: var(--paper); }
.entry-row-date { width: 36px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.entry-row-dow { font-size: 11px; font-weight: 700; color: var(--muted); }
.entry-row-day { font-size: 22px; font-weight: 700; line-height: 1.1; }
.entry-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.entry-row-title { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.entry-row-preview { font-size: 13px; line-height: 1.45; }
.entry-row-thumb { width: 52px; height: 52px; border-radius: 10px; }

/* Journals */

.journal-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.journal-item { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); }
.journal-item:last-child { border-bottom: 0; }
.journal-link {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 20px; text-decoration: none; color: var(--ink);
}
.journal-name { font-size: 16px; font-weight: 700; margin-right: auto; overflow-wrap: anywhere; }

.tabs { display: flex; gap: 4px; background: var(--skeleton); border-radius: 14px; padding: 4px; }
.tab-button {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font-size: 13px; font-weight: 600;
}
.tab-button[aria-selected='true'] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.journal-panel { padding: 16px 28px 48px; max-width: 1160px; }
.journal-panel > .entry-list { max-width: 800px; }

/* Calendar */

jj-calendar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.cal-month { flex: 3 1 420px; min-width: 0; max-width: 720px; }
.cal-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.cal-title { font-size: 18px; font-weight: 700; flex: 1; text-align: center; }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px;
  padding: 8px 0; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.cal-blank { aspect-ratio: 1; background: var(--paper); }
.cal-day {
  aspect-ratio: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}
.cal-day.has-entry { background: var(--indigo); color: var(--on-indigo); }
.cal-day.has-photo { color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.cal-photo { position: absolute; inset: 0; background: transparent; }
.cal-day.has-photo::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.22); }
.cal-number { position: relative; z-index: 1; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--ink); }
.cal-day.has-entry.is-today { box-shadow: inset 0 0 0 2px var(--surface), inset 0 0 0 4px var(--indigo); }
.cal-day.is-selected { box-shadow: inset 0 0 0 4px var(--ember); }
.cal-day:focus-visible { outline-offset: -3px; z-index: 2; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 14px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-legend > span { display: flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 14px; border-radius: 3px; }
.legend-photo { background: #B8CDB5; }
.legend-entry { background: var(--indigo); }
.legend-none { border: 1px solid var(--line-strong); background: var(--surface); }
.legend-today { border: 2px solid var(--ink); }
.cal-panel { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cal-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cal-panel-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* Search */

.mode-switch { display: flex; gap: 4px; background: var(--skeleton); border-radius: 14px; padding: 4px; }
.mode-option {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font-size: 13px; font-weight: 600;
}
.mode-option[aria-pressed='true'] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.mode-option:disabled { opacity: 0.8; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-chip, .filter-select {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 22px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600;
}
.filter-chip[aria-pressed='true'] { background: var(--indigo-soft); border-color: var(--indigo-soft); color: var(--indigo-soft-text); font-weight: 700; }

.result-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.result-list li + li { border-top: 1px solid var(--line); }
.result { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.result:hover { background: var(--paper); }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.result-meta .dot { width: 8px; height: 8px; }
.result-title { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.result-snippet { font-family: var(--font-text); font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.result-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* AI and prompts */

.ai-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }
.ai-hero h2 { font-size: 20px; font-weight: 700; }
.ai-hero-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo-text);
  display: flex; align-items: center; justify-content: center;
}
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.feature h3 { font-size: 16px; font-weight: 700; }

.prompt-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.prompt-list li + li { border-top: 1px solid var(--line); }
.prompt-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 18px; border: 0; background: none; text-align: left;
}
.prompt-item:hover { background: var(--paper); }
.prompt-item-text { flex: 1; font-family: var(--font-text); font-size: 16px; line-height: 1.45; }
.prompt-item .icon { color: var(--muted); }

/* Settings */

.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-radius: var(--radius-l); }
.profile-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.profile-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.profile-form { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.settings-section { padding: 0; overflow: hidden; border-radius: var(--radius-l); }
.settings-heading {
  padding: 16px 20px 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.settings-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  min-height: 52px; padding: 8px 20px; border-top: 1px solid var(--line);
}
.settings-label { flex: 1; min-width: 160px; font-size: 15px; font-weight: 600; }
.settings-action { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; font-size: 15px; font-weight: 600; text-align: left; }
.settings-action:hover { background: var(--paper); }
.settings-block { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.device-list { display: flex; flex-direction: column; }
.device { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 4px 0; }
.device-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.device-name { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.sync-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; border-radius: var(--radius-l); }
.sync-panel .settings-heading { padding: 0; }
.shortcuts dt { flex: 0 0 140px; }
.shortcuts dd { flex: 1; min-width: 160px; }
.about { text-align: center; }

/* ----------------------------------------------------------------- dialog */

.dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  background: var(--raised);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.dialog::backdrop { background: var(--scrim); }
.dialog-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; overflow-wrap: anywhere; }
.dialog-content { color: var(--muted); line-height: 1.55; }
.dialog-content .dialog-form { color: var(--ink); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dialog-actions:empty { display: none; }
.dialog-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; position: relative; }
.swatch-dot { width: 28px; height: 28px; border-radius: 50%; }
.swatch input:checked + .swatch-dot { box-shadow: 0 0 0 3px var(--raised), 0 0 0 5px var(--ink); }
.swatch input:focus-visible + .swatch-dot { outline: 3px solid var(--indigo-text); outline-offset: 6px; }

/* ---------------------------------------------------------------- sign-in */

jj-signin { display: flex; flex-direction: column; min-height: 100vh; }
.signin-header { padding: 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.signin-main { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 48px 16px 40px; }
.signin-intro { display: flex; flex-direction: column; gap: 8px; text-align: center; max-width: 560px; }
.signin-intro h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tagline { font-family: var(--font-text); font-size: 17px; color: var(--muted); }
.signin-card { width: 100%; max-width: 440px; padding: 24px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.signin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.signin-card-head h2 { font-size: 18px; font-weight: 700; }
.signin-card strong { color: var(--ink); overflow-wrap: anywhere; }
.step { font-size: 12px; font-weight: 600; color: var(--muted); }
.signin-form { display: flex; flex-direction: column; gap: 12px; }
.signin-form .btn { min-height: 48px; border-radius: 24px; font-size: 16px; }
.code-boxes { display: flex; gap: 8px; }
.code-box {
  flex: 1; min-width: 0; height: 56px;
  border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface);
  text-align: center; font-size: 24px; font-weight: 700;
}
.code-box:focus { outline: none; border: 2px solid var(--indigo-text); }
.code-box[aria-invalid='true'] { border-color: var(--error); }
.signin-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.signin-hint { max-width: 440px; text-align: center; font-size: 13px; color: var(--muted); }
.signin-foot { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }

/* ----------------------------------------------------------------- editor */

jj-entry-editor { display: flex !important; flex-direction: column; background: var(--surface); }

.editor-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 24px; border-bottom: 1px solid var(--line);
}
.editor-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink);
  max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.save-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-right: auto; }

.format-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 6px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5; background: var(--surface);
}
.format-button {
  min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 10px;
  background: none; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700;
}
.format-button:hover { background: var(--paper); }
.format-glyph { font-size: 14px; font-weight: 700; }
.format-quote { font-family: Georgia, serif; font-size: 24px; line-height: 1; }
.format-separator { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.format-record { background: var(--ember-soft); color: var(--ember-text); padding: 0 14px; }
.format-record:hover { background: var(--ember-soft); filter: brightness(0.97); }

.editor-layout { flex: 1; display: flex; align-items: stretch; min-height: 0; }
.editor-main { flex: 1; min-width: 0; padding: 24px 24px 40px; }
.editor-main.is-dropping { outline: 3px dashed var(--indigo-text); outline-offset: -8px; }
.editor-column { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.editor-notices { display: flex; flex-direction: column; gap: 8px; }
.editor-notices:empty { display: none; }

.meta-chips, .tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 18px;
  background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 600;
}
.chip:focus-within { outline: 3px solid var(--indigo-text); outline-offset: 2px; }
.chip-journal { background: var(--indigo-soft); color: var(--indigo-soft-text); font-weight: 700; }
.chip-journal .dot { width: 8px; height: 8px; }
.chip-select, .chip-input {
  border: 0; background: transparent; color: inherit; font-size: 12px; font-weight: inherit;
  min-height: 36px; padding: 0; max-width: 220px;
}
.chip-select:focus, .chip-input:focus { outline: none; }
.chip-select option { color: var(--ink); background: var(--surface); }

.mood { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 18px; background: var(--paper); }
.mood-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.mood-button {
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  font-size: 12px; font-weight: 700; padding: 0;
}
.mood-button[aria-pressed='true'] { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); }

.tags { display: contents; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 30px; padding: 0 10px; border-radius: 15px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.tag-chip.is-hit { border-color: var(--indigo-soft); background: var(--indigo-soft); }
.tag-remove {
  position: relative; width: 20px; height: 20px; border: 0; border-radius: 50%; padding: 0;
  background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
}
.tag-remove:hover { background: var(--skeleton); color: var(--ink); }
.tag-input {
  width: 120px; min-height: 36px; padding: 0 12px; border-radius: 18px;
  border: 1px dashed var(--line-strong); background: var(--surface); font-size: 12px; font-weight: 600;
}
.tag-input::placeholder { color: var(--muted); opacity: 1; }

.editor-title {
  width: 100%; border: 0; padding: 4px 0; background: none;
  font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
}
.editor-title:focus { outline: none; }
.editor-title::placeholder { color: var(--line-strong); opacity: 1; }

.blocks { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-text); font-size: 17px; line-height: 1.7; }

.block { position: relative; display: block; }
.block-text { display: flex; align-items: flex-start; gap: 10px; }
.block-editable {
  flex: 1; min-width: 0; min-height: 1.7em; outline: none;
  white-space: pre-wrap; overflow-wrap: anywhere; cursor: text;
}
.block-editable:empty::before { content: attr(data-placeholder); color: var(--line-strong); pointer-events: none; }
.blocks > .block-paragraph:only-child .block-editable:empty::before { content: 'Start writing, or type # for a heading, - for a list…'; }

.block-heading { font-family: var(--font-ui); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.block-heading.level-1 { font-size: 26px; margin-top: 8px; }
.block-heading.level-2 { font-size: 21px; margin-top: 6px; }
.block-heading.level-3 { font-size: 18px; margin-top: 4px; }
.block-marker { flex-shrink: 0; min-width: 1.4em; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; user-select: none; }
.block-check { flex-shrink: 0; width: 20px; height: 20px; margin: 0.42em 2px 0; accent-color: var(--indigo); }
.block-checklist_item.is-checked .block-editable { color: var(--muted); text-decoration: line-through; }
.block-quote { border-left: 3px solid var(--indigo-text); padding-left: 14px; font-style: italic; }
.block-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: var(--paper); border-radius: var(--radius-s); padding: 10px 14px; }

.mark-bold { font-weight: 700; }
.mark-italic { font-style: italic; }
.mark-underline { text-decoration: underline; }
.mark-strike { text-decoration: line-through; }
.mark-underline.mark-strike { text-decoration: underline line-through; }
.mark-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--paper); border-radius: 4px; }
.mark-highlight { background: #FDE68A; color: #16171D; }
.mark-link { color: var(--indigo-text); text-decoration: underline; }

.block-divider { padding: 10px 0; border-radius: var(--radius-s); }
.block-divider hr { border: 0; border-top: 1px solid var(--line-strong); margin: 0; }

.block-remove {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; padding: 0;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.block-divider .block-remove { top: -3px; right: 0; }
.block:hover .block-remove, .block:focus-within .block-remove, .block:focus .block-remove, .block-remove:focus-visible { opacity: 1; }
@media (hover: none) { .block-remove { opacity: 1; } }

.photo-figure { display: flex; flex-direction: column; gap: 6px; }
.photo-image {
  display: block; width: 100%; max-width: 520px; min-height: 120px;
  border-radius: 18px; overflow: hidden; background: var(--skeleton);
}
.photo-image img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.photo-image.is-missing { display: flex; align-items: center; justify-content: center; }
.photo-image.is-missing::after { content: 'Photo isn’t available right now'; font-family: var(--font-ui); font-size: 13px; color: var(--muted); }
.photo-caption {
  width: 100%; max-width: 520px; border: 0; background: none; padding: 4px 0;
  font-family: var(--font-ui); font-size: 13px; color: var(--muted); min-height: 32px;
}
.photo-caption:focus { outline: none; color: var(--ink); border-bottom: 1px solid var(--indigo-text); }

.upload-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px;
}
.upload-status progress { width: 140px; height: 6px; accent-color: var(--indigo); }

.block-prompt {
  display: flex; flex-direction: column; gap: 6px;
  border: 1px dashed var(--indigo-text); border-radius: 18px; padding: 14px 44px 14px 16px;
}
.prompt-label { display: flex; align-items: center; gap: 6px; font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: var(--indigo-text); }
.block-prompt .prompt-text { font-size: 17px; line-height: 1.5; }

.block-unsupported {
  font-family: var(--font-ui); font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-s); padding: 10px 14px;
}

.recording-note {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--ember-border); background: var(--ember-tint); border-radius: 18px;
  padding: 14px 16px; color: var(--ember-text); font-size: 13px; font-weight: 700;
}
.editor-tail { display: block; width: 100%; min-height: 96px; border: 0; background: none; cursor: text; border-radius: var(--radius-s); }
.editor-footer { font-size: 12px; }

/* Voice note */

.voice-note {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--ember-border); background: var(--ember-tint);
  border-radius: var(--radius-l); padding: 16px 44px 16px 16px;
  font-family: var(--font-ui);
}
.voice-row { display: flex; align-items: center; gap: 12px; }
.voice-play {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0;
  background: var(--ember); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
}
.voice-play:hover:not(:disabled) { background: var(--ember-hover); }
.voice-range { flex: 1; min-width: 0; height: 44px; accent-color: var(--ember); }
.voice-time { font-size: 13px; font-weight: 700; color: var(--ember-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.voice-note-status { font-size: 13px; font-weight: 600; color: var(--ember-text); }
.voice-transcript { display: flex; flex-direction: column; gap: 6px; }
.voice-transcript:empty { display: none; }
.voice-text { font-family: var(--font-text); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Recorder */

.recorder {
  flex: 0 0 380px; max-width: 420px; min-width: 0;
  display: flex; flex-direction: column; gap: 20px;
  background: var(--ember-tint); border-left: 1px solid var(--ember-border); padding: 24px;
}
.recorder.is-denied { background: var(--paper); border-left-color: var(--line); gap: 18px; }
.recorder.is-denied h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.recorder-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; }
.recorder-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ember-text); }
.recorder-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); }
.recorder.is-recording .recorder-dot { animation: pulse 1.2s ease-in-out infinite; }
.recorder.is-paused .recorder-dot { background: var(--muted); }
.recorder-timer { text-align: center; font-size: 56px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.recorder-meter { height: 72px; display: flex; align-items: center; justify-content: center; gap: 4px; overflow: hidden; }
.recorder-meter span { width: 4px; height: 6px; border-radius: 2px; background: var(--ember); transition: height 80ms linear; }
.recorder-transcript {
  flex: 1; min-height: 140px; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--ember-border); border-radius: var(--radius-l);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.recorder-transcript-text { font-family: var(--font-text); font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.recorder-controls { display: flex; align-items: center; justify-content: center; gap: 24px; }
.recorder-side {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.recorder-finish { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.recorder-main {
  width: 76px; height: 76px; border-radius: 50%; border: 6px solid var(--ember-soft);
  background: var(--ember); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
}
.recorder-controls button:disabled { opacity: 0.5; }
.recorder-hint { text-align: center; font-size: 12px; }
.recorder-blocked-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ember-soft); color: var(--ember);
  display: flex; align-items: center; justify-content: center;
}
.recorder-steps { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* -------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .editor-layout { flex-direction: column; }
  .recorder {
    flex: none; max-width: none; border-left: 0; border-top: 1px solid var(--ember-border);
    position: sticky; bottom: 0; z-index: 6; gap: 12px; padding: 16px;
    max-height: 75vh; overflow-y: auto;
  }
  .recorder-timer { font-size: 40px; }
  .recorder-meter { height: 40px; }
  .recorder-transcript { min-height: 72px; max-height: 140px; flex: none; }
}

@media (max-width: 699px) {
  jj-sidebar { display: none; }
  jj-tabbar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar-nav { display: flex; height: var(--tabbar-height); }
  .tab {
    flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none;
  }
  .tab[aria-current='page'] { color: var(--indigo-text); font-weight: 700; }
  .main-column { padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom)); }

  jj-toolbar { padding: 10px 16px; gap: 8px; }
  .search-hint { display: none; }
  .search-input { padding-right: 14px; }
  .toolbar-new { width: 44px; padding: 0; border-radius: 14px; }
  .toolbar-new-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .page-header { padding: 16px 16px 4px; }
  .page-body, .journal-panel { padding: 16px 16px 40px; }
  .banners .banner { padding: 10px 16px; }
  .editor-bar { padding: 8px 12px; }
  .format-bar { padding: 6px 8px; flex-wrap: nowrap; overflow-x: auto; }
  .format-button { flex-shrink: 0; }
  .editor-main { padding: 16px 16px 32px; }
  .editor-title { font-size: 26px; }
  .quick-question { font-size: 21px; }
  .cal-day { font-size: 15px; }
  .entry-card-thumb { width: 72px; height: 72px; }
  .recorder { bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  jj-sidebar, jj-tabbar, jj-toolbar, .banners, .format-bar, .editor-bar, .block-remove, .editor-tail { display: none !important; }
  .shell { height: auto; display: block; }
  .outlet { overflow: visible; }
}
