/* ============================================================
   Notes — calm, minimal, mobile-first styles.
   Design goals: blank-page feel, soft typography, large touch
   targets (>=44px), works one-handed on a phone, fine on desktop.
   ============================================================ */

:root {
  --bg: #f7f7f5;          /* warm off-white page */
  --paper: #ffffff;       /* the note "page" */
  --ink: #1f2933;         /* primary text */
  --muted: #8a93a0;       /* secondary text */
  --line: #ecebe7;        /* hairlines */
  --accent: #1f2933;      /* buttons */
  --accent-soft: #eef1f4;
  --danger: #c0392b;
  --radius: 16px;
  --toolbar-h: 64px;
  --rail-w: 56px;         /* right-edge project rail strip */
  --safe-bottom: env(safe-area-inset-bottom, 0px);

  /* Reading/writing typography — user-adjustable (Account → Text).
     Only the note CONTENT scales; the app chrome keeps the base size.
     --content-size is set inline on <html> by JS; the font stacks live
     here and are chosen via html[data-font=...] below. */
  --content-size: 17px;
  --font-rounded: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", system-ui, sans-serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    Cambria, "Times New Roman", Times, serif;
  --content-font: var(--font-rounded);
}

/* Font choice — default is rounded; JS sets data-font on <html>. */
html[data-font="rounded"] { --content-font: var(--font-rounded); }
html[data-font="sans"]    { --content-font: var(--font-sans); }
html[data-font="serif"]   { --content-font: var(--font-serif); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.screen { height: 100%; }
/* Both the .hidden class and the `hidden` attribute must win over element
   `display` rules (e.g. .stack-view/.empty-lens set display:flex, which would
   otherwise override the UA `[hidden]{display:none}` and keep them visible). */
.hidden, [hidden] { display: none !important; }

/* ===================== LOGIN ===================== */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.brand {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.login-sub { color: var(--muted); margin: 0 0 28px; }
#loginForm { display: flex; flex-direction: column; gap: 12px; }
#emailInput {
  font-size: 17px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
#emailInput:focus { border-color: var(--ink); }
#loginBtn, #loginForm button {
  font-size: 17px;
  font-weight: 600;
  padding: 15px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
#loginBtn:disabled { opacity: .6; cursor: default; }
.login-msg { margin-top: 18px; color: var(--muted); min-height: 1.4em; font-size: 15px; }
.login-msg.ok { color: #2e7d32; }
.login-msg.err { color: var(--danger); }
.login-msg a { color: var(--ink); }

/* Code entry */
.code-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.code-label { color: var(--muted); font-size: 14px; text-align: left; }
#codeInput {
  font-size: 26px;
  letter-spacing: 8px;
  text-align: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}
#codeInput:focus { border-color: var(--ink); }
#codeBtn {
  font-size: 17px; font-weight: 600; padding: 15px 16px;
  border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer;
}
#codeBtn:disabled { opacity: .6; cursor: default; }

/* Install affordance on the login screen */
.install-row {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.install-btn {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.install-btn:active { background: var(--accent-soft); }
.install-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; text-align: left; }

/* ===================== APP LAYOUT ===================== */
.app {
  display: flex;
  flex-direction: column;
  /* --app-h tracks the visible viewport (set in app.js) so the keyboard never
     hides the active field; falls back to full height before JS runs. */
  height: var(--app-h, 100%);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 8px;
  flex: 0 0 auto;
}
.page-indicator {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.save-status {
  margin-left: auto;
  margin-right: 8px;
  color: var(--muted);
  font-size: 13px;
  transition: opacity .3s;
}
.save-status.saving { opacity: .7; }

/* ===== Editor / blank page ===== */
.editor-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  /* leave room for the floating toolbar + the right-edge project rail */
  padding-bottom: calc(var(--toolbar-h) + var(--safe-bottom));
  padding-right: var(--rail-w);
}
.note-page {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
  margin: 0 12px;
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  overflow: hidden;
  /* slide animation when switching notes */
  transition: transform .22s ease, opacity .22s ease;
  will-change: transform, opacity;
}
.note-page.slide-left  { transform: translateX(-16%); opacity: 0; }
.note-page.slide-right { transform: translateX(16%);  opacity: 0; }
/* vertical = switching project lens (social-feed feel) */
.note-page.slide-up   { transform: translateY(-14%); opacity: 0; }
.note-page.slide-down { transform: translateY(14%);  opacity: 0; }
@keyframes lensBounce { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-9px); } }
.note-page.bounce { animation: lensBounce .22s ease; }

/* Changing project from the feed (swipe / arrow left-right): a brief directional
   slide-in of the whole feed so it's obvious you moved to another project. */
@keyframes feedSwapLeft  { from { transform: translateX(26px);  opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes feedSwapRight { from { transform: translateX(-26px); opacity: .35; } to { transform: none; opacity: 1; } }
.note-page.feed-swap-left  { animation: feedSwapLeft  .24s ease; }
.note-page.feed-swap-right { animation: feedSwapRight .24s ease; }
/* ...and a quick pulse on the top-bar project chip to reinforce the switch. */
@keyframes lensBump { 0%,100% { transform: scale(1); } 45% { transform: scale(1.12); } }
.lens-chip.lens-bump { animation: lensBump .3s ease; }

/* Active project lens paints a colored frame around the page. */
.editor-wrap.lensed .note-page {
  box-shadow: 0 1px 2px rgba(0,0,0,.04), inset 0 0 0 2.5px var(--lens);
}

.editor {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--content-font);
  font-size: var(--content-size);
  line-height: 1.7;
  padding: 22px 20px 16px;
  /* vertical scroll happens here; horizontal swipe handled on wrapper */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.editor::placeholder { color: #c3c8cf; }

/* Rendered markdown read-view. Same box as .editor; reuses the content font/size
   prefs. Headers carry the heavier weight, body stays regular (header/body
   distinction), so the reading view matches the typography controls. */
.preview {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  color: var(--ink);
  font-family: var(--content-font);
  font-size: var(--content-size);
  line-height: 1.7;
  padding: 22px 20px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.preview > :first-child { margin-top: 0; }
.preview h1, .preview h2, .preview h3,
.preview h4, .preview h5, .preview h6 {
  font-weight: 700;
  line-height: 1.3;
  margin: 1.1em 0 .5em;
}
.preview h1 { font-size: 1.5em; }
.preview h2 { font-size: 1.3em; }
.preview h3 { font-size: 1.15em; }
.preview h4, .preview h5, .preview h6 { font-size: 1em; }
.preview p { margin: 0 0 .85em; }
.preview ul, .preview ol { margin: 0 0 .85em; padding-left: 1.5em; }
.preview li { margin: .15em 0; }
.preview a { color: var(--ink); text-underline-offset: 2px; }
.preview code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 1px 5px;
}
.preview pre {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 0 0 .85em;
}
.preview pre code { background: none; padding: 0; font-size: .88em; }
.preview blockquote {
  margin: 0 0 .85em;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}
.preview hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.2em 0;
}

.tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 14px;
}
.tag-strip .chip {
  font-size: 12px;
  color: var(--muted);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Desktop / accessibility fallback arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 64px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 30px;
  cursor: pointer;
  opacity: .35;
  transition: opacity .15s;
}
.nav-arrow:hover { opacity: .9; }
.nav-arrow.left { left: 0; }
.nav-arrow.right { right: 0; }
.nav-arrow:disabled { opacity: 0; pointer-events: none; }
/* Hide arrows on touch screens where swipe is primary */
@media (hover: none) and (pointer: coarse) {
  .nav-arrow { display: none; }
}

/* ===== Floating toolbar ===== */
.toolbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* --kb is the keyboard height (set in app.js); lifts the bar above it. */
  bottom: calc(12px + var(--safe-bottom) + var(--kb, 0px));
  z-index: 20;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
}
.icon-btn {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:active { background: var(--accent-soft); }
.icon-btn .ic {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.topbar .icon-btn { width: 40px; height: 40px; }

.icon-btn.recording { background: #ffe9e6; color: var(--danger); }
.icon-btn.recording .ic { stroke: var(--danger); }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.45 } }
.icon-btn.recording { animation: pulse 1.1s infinite; }

/* Active toggle (e.g. preview eye on): filled pill; .ic is currentColor so it recolors too */
.icon-btn.active { background: var(--ink); color: #fff; }
.icon-btn.active:active { background: var(--ink); }

/* Bold / italic toolbar buttons use a text glyph rather than an SVG icon. */
.icon-btn.fmt .fmt-glyph { font-size: 19px; line-height: 1; color: var(--ink); }
.icon-btn.fmt .fmt-glyph.b { font-weight: 800; }
.icon-btn.fmt .fmt-glyph.i { font-style: italic; font-family: Georgia, 'Times New Roman', serif; }

.badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* ===== Overlays / sheets ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20,24,30,.28);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.sheet {
  width: 100%;
  max-width: 540px;
  max-height: 85vh;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  animation: slideup .2s ease;
  display: flex;
  flex-direction: column;
}
@keyframes slideup { from { transform: translateY(24px) } to { transform: translateY(0) } }
.sheet-bottom { }
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sheet-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
.text-btn {
  border: 0; background: transparent; color: var(--ink);
  font-size: 16px; font-weight: 600; cursor: pointer; padding: 6px 4px;
}

.search {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  outline: none;
  margin-bottom: 12px;
}

.note-list { list-style: none; margin: 0; padding: 0; }
.note-list li {
  background: var(--paper);
  border-radius: 12px;
  padding: 14px 14px;
  margin-bottom: 8px;
  cursor: pointer;
}
.note-list li.active { outline: 2px solid var(--ink); }
.note-list .nl-title { font-family: var(--content-font); font-weight: 700; }
.note-list .nl-empty { color: var(--muted); font-weight: 400; }
.note-list .nl-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.note-list .nl-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.note-list .nl-tags .chip {
  font-size: 11px; color: var(--muted);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 9px;
}
.list-empty { color: var(--muted); text-align: center; padding: 32px 0; }

/* Tag panel */
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; min-height: 8px; }
.tag-chips .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-size: 14px;
}
.tag-chips .chip button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 17px; line-height: 1; cursor: pointer; padding: 0;
}
.tag-chips .empty { color: var(--muted); font-size: 14px; }
.tag-suggest { margin: 0 0 14px; }
.tag-suggest-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.tag-suggest-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-suggest-chips .chip {
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 8px 12px; font-size: 14px; cursor: pointer;
}
.tag-form { display: flex; gap: 8px; }
.tag-form input {
  flex: 1; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); outline: none;
}
.tag-form button {
  border: 0; border-radius: 12px; background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600; padding: 0 18px; cursor: pointer;
}

.account-email { color: var(--muted); margin: 0 0 18px; }

/* Text & display settings (Account panel) */
.type-settings {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.ts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.ts-label { font-size: 15px; font-weight: 500; }
.ts-size { display: flex; align-items: center; gap: 4px; }
.ts-btn {
  width: 40px; height: 36px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  font-size: 16px; font-weight: 600;
  cursor: pointer;
}
.ts-btn:active { background: var(--accent-soft); }
.ts-val {
  min-width: 30px; text-align: center;
  color: var(--muted); font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ts-fonts { display: flex; gap: 6px; }
.ts-font {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  cursor: pointer;
}
.ts-font[data-font="rounded"] { font-family: var(--font-rounded); }
.ts-font[data-font="sans"]    { font-family: var(--font-sans); }
.ts-font[data-font="serif"]   { font-family: var(--font-serif); }
.ts-font.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.ts-sample {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--content-font);
  font-size: var(--content-size);
  line-height: 1.5;
}
.logout-btn, .danger-btn {
  width: 100%; font-size: 16px; font-weight: 600;
  padding: 14px; border-radius: 12px; cursor: pointer; margin-top: 10px;
}
.logout-btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.danger-btn { border: 1px solid #f0d4d0; background: #fff5f4; color: var(--danger); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--toolbar-h) + 28px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  max-width: 86%;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  animation: fade .15s ease;
}

/* ===== Onboarding overlay (first-run swipe tutorial) ===== */
.onboard {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 24, 30, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade .2s ease;
}
.onboard-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 22px 22px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  animation: slideup .22s ease;
}
.onboard-card h2 { font-size: 19px; font-weight: 600; margin: 4px 0 8px; }
.onboard-card p { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.onboard-btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.swipe-demo {
  position: relative;
  height: 112px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  overflow: hidden;
}
.swipe-demo .demo-card {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 50%;
  width: 56%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  animation: demoCard 2s ease-in-out infinite;
}
.swipe-demo .hand {
  position: absolute;
  top: 52%;
  left: 64%;
  font-size: 40px;
  animation: demoHand 2s ease-in-out infinite;
}
@keyframes demoCard {
  0%, 20%  { transform: translateX(-50%); opacity: 1; }
  50%      { transform: translateX(-150%); opacity: 0; }
  51%      { transform: translateX(50%);  opacity: 0; }
  75%, 100%{ transform: translateX(-50%); opacity: 1; }
}
@keyframes demoHand {
  0%   { left: 64%; opacity: 0; }
  15%  { opacity: 1; }
  50%  { left: 22%; opacity: 1; }
  64%  { left: 22%; opacity: 0; }
  100% { left: 22%; opacity: 0; }
}
/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .swipe-demo .demo-card, .swipe-demo .hand { animation: none; }
  .swipe-demo .hand { left: 40%; opacity: 1; }
}

/* ===== Project lens chip (top bar) ===== */
.lens-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 8px 4px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  max-width: 46vw;
}
.lens-chip .lens-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--muted);
  flex: 0 0 auto;
}
.lens-chip #lensName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lens-caret {
  width: 14px; height: 14px; flex: 0 0 auto;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== Side actions — todo today / done (social-feed style, bottom-right) ===== */
.side-actions {
  position: absolute;
  right: calc(var(--rail-w) + 6px);   /* sit just left of the project rail */
  bottom: calc(var(--toolbar-h) + 24px + var(--safe-bottom));
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 52px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 2px;
}
.side-action .ic {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .12s ease;
}
.side-action:active .ic { transform: scale(.86); }
.side-action .side-label { font-size: 10px; font-weight: 600; }
.side-action.active { color: var(--accent); }
.side-action.done.checked { color: #30a46c; }

/* ===== Empty project lens ===== */
.empty-lens {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.empty-lens p { margin: 0; }
.empty-new-btn {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
}

/* ===== Projects panel ===== */
.panel-hint { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.project-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.project-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border-radius: 12px;
  padding: 8px 12px;
}
.project-row.active { outline: 2px solid var(--ink); }
.proj-dot { width: 14px; height: 14px; border-radius: 999px; flex: 0 0 auto; }
.proj-name {
  flex: 1; text-align: left; border: 0; background: transparent;
  font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 4px 0;
}
.proj-color {
  width: 36px; height: 30px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px;
  background: none; padding: 0; cursor: pointer;
}
/* Inline rename field — mirrors .proj-name so the row doesn't jump. */
.proj-name-edit {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg, #fff); font-size: 16px; font-weight: 600;
  color: var(--ink); padding: 3px 6px;
}
.proj-del {
  flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 16px; line-height: 1;
  cursor: pointer;
}
.proj-del:hover { color: #c0392b; background: rgba(192, 57, 43, 0.1); }

/* ===== Right-edge project rail (colored squares) ===== */
.project-rail {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 8;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;                 /* Firefox: hide scrollbar */
  -webkit-overflow-scrolling: touch;
}
.project-rail::-webkit-scrollbar { display: none; }  /* WebKit: hide scrollbar */

.rail-sq {
  flex: 0 0 auto;
  width: 46px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: var(--muted);
  cursor: pointer;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
  transition: transform .12s ease, box-shadow .12s ease;
}
.rail-sq:active { transform: scale(.9); }
/* Tiny project name inside the tile (color set inline = darkened tag color). */
.rail-label {
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-sq.all .rail-label { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
/* "All" square — neutral, multi-tone so it reads as "everything". */
.rail-sq.all {
  background:
    linear-gradient(135deg, #1f9cf0 0 33%, #30a46c 33% 66%, #f5a524 66% 100%);
}
/* Active project gets a ring that stands off the rail background. */
.rail-sq.active {
  outline: 2.5px solid var(--ink);
  outline-offset: 2px;
  transform: scale(1.06);
}

/* ===== Project note stack (overview) ===== */
.stack-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 20px;
}
/* In stack mode the single-note page frame (incl. the lens color border) is
   dropped — each card carries its own project accent, so the outer frame just
   adds clutter. This sits after .editor-wrap.lensed .note-page so it wins. */
.editor-wrap.stacking .note-page {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  /* NB: don't touch margin here — the base (mobile) and desktop (centered,
     max-width 720px) margins must survive, or the stack jams left on desktop. */
}

.stack-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lens, var(--line));  /* project accent */
  border-radius: 12px;
  padding: 12px 14px;
}
/* WYSIWYG note body (contenteditable). Grows naturally with content. */
.stack-card .sc-body {
  margin-top: 4px;
  min-height: 1.6em;
  outline: none;
  color: var(--ink);
  font-family: var(--content-font);
  font-size: var(--content-size);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.stack-card .sc-body:empty::before {
  content: attr(data-placeholder);
  color: #c3c8cf;
  pointer-events: none;
}
.stack-card .sc-body strong { font-weight: 700; }
.stack-card .sc-body em { font-style: italic; }
/* Maximize-to-full-editor button, tucked in the top-right corner. */
.stack-card .sc-expand {
  position: absolute;
  top: 6px; right: 6px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--muted);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.stack-card .sc-expand:active { background: var(--accent-soft); }
/* 🗑 delete button, sitting just left of the ⤢ expand button. */
.stack-card .sc-del {
  position: absolute;
  top: 6px; right: 42px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: transparent; opacity: 0.55;
  font-size: 15px; line-height: 1; cursor: pointer;
}
.stack-card .sc-del:active { background: #fde8e8; opacity: 1; }
/* Title box — editable, styled as the note's heading. */
.stack-card .sc-title-input {
  width: 100%;
  padding: 0 74px 2px 0;    /* clear the ⤢ + 🗑 buttons */
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--content-font);
  font-weight: 700;
  font-size: calc(var(--content-size) + 2px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.stack-card .sc-title-input::placeholder { color: #c3c8cf; font-weight: 400; }
.stack-card .sc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.stack-card .sc-pill {
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 1px 8px;
  background: var(--accent-soft);
  color: var(--ink);
}
.stack-card .sc-pill.done { background: #e4f5ec; color: #30a46c; }
.stack-card .sc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; }
.stack-card .sc-tags .chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 9px;
}
.stack-card .sc-tags .chip button {
  border: 0; background: transparent; color: inherit;
  font-size: 14px; line-height: 1; cursor: pointer; padding: 0; opacity: .7;
}
/* "＋ tag" inline-add control + the picker it toggles. */
.sc-tag-add {
  font-size: 11px; color: var(--muted);
  background: transparent; border: 1px dashed var(--line);
  border-radius: 999px; padding: 2px 9px; cursor: pointer;
}
.sc-tag-add.active { border-style: solid; color: var(--ink); }
.sc-tag-picker {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
}
.sc-tag-picker .chip { font-size: 10px; cursor: pointer; border: 0; padding: 2px 8px; border-radius: 999px; }
.sc-tag-input {
  font-size: 12px; padding: 2px 8px; min-width: 84px; flex: 1 1 84px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); outline: none; color: var(--ink);
}

/* Inline todo-today controls on a card (in the meta row). */
.sc-todo-wrap { display: inline-flex; gap: 6px; margin-left: auto; }
.sc-today, .sc-done {
  font-size: 11px; font-weight: 600; line-height: 1;
  border-radius: 999px; padding: 3px 9px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
}
.sc-today.active { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.sc-done.checked { background: #e4f5ec; border-color: transparent; color: #30a46c; }
.stack-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

/* Desktop niceties */
@media (min-width: 720px) {
  .note-page { margin: 0 auto; max-width: 720px; width: 100%; }
  .editor { padding: 32px 36px; font-size: 18px; }
  .overlay { align-items: center; }
  .sheet { border-radius: 20px; }
}

/* ============================================================
   Focus / Work-timer plugin (optional; all inert unless enabled).
   Layering vs the base app: toolbar 20, overlay 40, toast 60.
   Portrait  -> slim .focus-bar pinned to the top (z 30).
   Landscape -> fullscreen .focus-stage (z 50) hides the chrome.
   Block-end prompts / menu / summary -> .focus-controls (z 55).
   ============================================================ */

/* ---- Portrait: slim bar pinned to the top ---- */
.focus-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
}
.fb-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.fb-phase { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.7; text-transform: uppercase; }
.fb-task {
  font-size: 15px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fb-clock { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fb-menu-btn {
  border: 0; background: transparent; color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
  padding: 4px 8px; border-radius: 10px;
}
.fb-menu-btn:active { background: rgba(255, 255, 255, 0.15); }

/* Push the app content down so the bar never covers the field (portrait only). */
body.focus-portrait .app {
  padding-top: calc(52px + env(safe-area-inset-top, 0px));
}

/* ---- Landscape: fullscreen stage — task left, big clock right ---- */
.focus-stage {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: max(24px, env(safe-area-inset-top, 0px)) 32px;
  background: var(--accent);
  color: #fff;
}
.fs-task-wrap {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
/* Block-end attention flash — fallback alert on devices without vibration. */
.fx-flash { animation: fxFlash 0.32s ease-in-out 2; }
@keyframes fxFlash {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.9) saturate(1.4); }
}
.fs-phase { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; opacity: 0.7; text-transform: uppercase; }
.fs-task { margin: 0; font-size: clamp(24px, 5vw, 44px); font-weight: 700; line-height: 1.15; }
.fs-entries { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; overflow-y: auto; max-height: 40vh; }
.fs-entry { font-size: 14px; opacity: 0.85; line-height: 1.35; }
.fs-clock-wrap { flex: 1 1 55%; display: flex; align-items: center; justify-content: flex-end; }
.fs-time { font-size: 18vw; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }

/* In landscape the base chrome hides behind the stage. */
body.focus-landscape .topbar,
body.focus-landscape .toolbar,
body.focus-landscape .project-rail,
body.focus-landscape .side-actions { display: none !important; }

/* ---- Block-end prompts / menu / summary ---- */
.focus-controls {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + var(--safe-bottom));
}
.fc-panel {
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fc-title { margin: 0; font-size: 16px; font-weight: 700; }
.fc-sub { margin: 0; font-size: 13px; color: var(--muted); }
.fc-quality { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-qbtn {
  flex: 1 0 auto; min-width: 56px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 10px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
.fc-qbtn:active { background: var(--accent-soft); }
.fc-actions { display: flex; flex-direction: column; gap: 8px; }
.fc-act {
  width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.fc-act:active { background: var(--accent-soft); }
.fc-done { background: var(--accent); color: #fff; border-color: transparent; }
.fc-addtag {
  border: 0; background: transparent; color: var(--muted);
  font-size: 14px; padding: 6px; cursor: pointer; align-self: center;
}
.fc-summary { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fc-summary li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.fc-sum-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-sum-meta { color: var(--muted); white-space: nowrap; }

/* Task picker — scrollable list of today's todos inside the .fc-panel. */
.fc-pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow-y: auto; }
.fc-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-pick-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-pick-tag {
  font-size: 11px; font-weight: 600; line-height: 1;
  border-radius: 999px; padding: 3px 8px;
  background: var(--accent-soft); color: var(--muted);
}

/* Tappable task title in the focus bar / stage → opens the note. */
.fx-openable { cursor: pointer; }
.fb-task.fx-openable::after,
.fs-task.fx-openable::after { content: " ↗"; opacity: 0.6; font-weight: 400; }

/* ===================================================================
   NEW VIEWS — Cards (grid) · Oldest (not revisited) · Checklist (global)
   plus task-list checkboxes. Frontend-only; all render into #stackView,
   whose mode class (.grid/.stale/.checklist) is set by setView().
   =================================================================== */

/* Rail: divider + view-mode tiles below the project squares. */
.rail-div {
  flex: 0 0 auto;
  width: 30px;
  height: 1px;
  background: var(--line);
  margin: 2px 0;
}
.rail-view {
  flex: 0 0 auto;
  width: 46px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  padding: 2px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  transition: transform .12s ease;
}
.rail-view:active { transform: scale(.9); }
.rail-view-glyph { font-size: 14px; line-height: 1; }
.rail-view .rail-label { color: inherit; }
.rail-view.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---- Cards (grid) view ---- */
.stack-view.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-items: start;      /* each card sizes to its own content (no stretch) */
  align-content: start;
  gap: 12px;
}
/* Read-only preview card — used by both Cards (grid) and Oldest (single col).
   NB: deliberately avoids `-webkit-line-clamp`/`display:-webkit-box` and
   `mask-image` — on iOS Safari those collapse a grid item's height to a sliver
   (the "clipped title" bug). We clamp with a plain max-height + overflow, which
   behaves predictably everywhere. */
.preview-card {
  display: flex;
  flex-direction: column;
  min-height: 88px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lens, var(--line));
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow .12s ease, transform .12s ease;
}
.preview-card:active { transform: scale(.99); }
.preview-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pc-title {
  margin: 0 0 6px;
  font-family: var(--content-font);
  font-weight: 700;
  font-size: calc(var(--content-size) + 1px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-height: 2.6em;       /* ~2 lines, hard-clipped (no fragile -webkit-box) */
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.pc-untitled { color: var(--muted); font-weight: 400; }
.pc-body {
  flex: 1 1 auto;
  font-family: var(--content-font);
  font-size: calc(var(--content-size) - 2px);
  line-height: 1.5;
  color: var(--ink);
  max-height: 6em;             /* clamp long notes in a card */
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.pc-body > :first-child { margin-top: 0; }
.pc-body p, .pc-body ul, .pc-body ol, .pc-body pre, .pc-body blockquote { margin: 0 0 .5em; }
.pc-body ul, .pc-body ol { padding-left: 1.3em; }
.pc-body h1, .pc-body h2, .pc-body h3 { font-size: 1em; font-weight: 700; margin: .3em 0; }
.pc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.pc-date { flex: 0 0 auto; }
.pc-tags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.pc-meta .chip {
  font-size: 11px; color: var(--muted);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 8px;
}

/* ---- Oldest / "not revisited" view: single column of preview cards ---- */
.stack-view.stale .preview-card { cursor: pointer; }
.overview-hint {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.overview-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--accent-soft); border-radius: 5px; padding: 1px 5px;
}

/* ---- Checklist (global checkbox items) view ---- */
.checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 4px;
}
.cl-count { color: var(--muted); font-size: 13px; font-weight: 600; }
.cl-filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cl-filter.active { background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.checklist { display: flex; flex-direction: column; gap: 2px; }
.cl-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
}
.cl-main { flex: 1 1 auto; min-width: 0; }
.cl-text {
  font-family: var(--content-font);
  font-size: var(--content-size);
  line-height: 1.4;
  color: var(--ink);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.cl-row.done .cl-text { text-decoration: line-through; color: var(--muted); }
.cl-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.cl-src {
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink); font-size: 12px; font-weight: 600;
  padding: 0; text-decoration: underline; text-underline-offset: 2px;
  max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cl-meta .chip {
  font-size: 11px; color: var(--muted);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 8px;
}
.cl-date { flex: 0 0 auto; }

/* ---- Task-list checkboxes (preview, cards, checklist) ---- */
.task-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
/* In rendered markdown, task items drop the bullet and align the box + text. */
.preview li.task, .pc-body li.task {
  list-style: none;
  margin-left: -1.1em;
}
li.task > label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}
li.task > label input.task-check { margin-top: 3px; }

/* ===== Focus: 🎲 dice button + "started" full-screen notice ===== */
.toolbar .dice-btn {
  font-size: 20px;
  line-height: 1;
}

/* Full-screen "focus started" confirmation. Sits above every focus layer
   (stage 50 / controls 55 / toast 60) so it's unmissable. Fades + scales in. */
.focus-start-notice {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 24, 30, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.focus-start-notice.show { opacity: 1; }
.focus-start-notice .fsn-inner {
  width: min(90vw, 420px);
  background: var(--bg, #fff);
  border-radius: 20px;
  padding: 32px 24px 26px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transform: scale(0.92);
  transition: transform 0.25s ease;
}
.focus-start-notice.show .fsn-inner { transform: scale(1); }
.fsn-dice { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.fsn-head {
  margin: 0 0 6px;
  font-size: 24px; font-weight: 800;
  color: var(--text, #1a1f26);
}
.fsn-task {
  margin: 0 0 20px;
  font-size: 18px; font-weight: 600;
  color: var(--accent, #3b7);
  overflow-wrap: anywhere;
}
.fsn-hint {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--muted, #8a929b);
}
.fsn-go {
  border: 0;
  border-radius: 12px;
  padding: 13px 30px;
  font-size: 16px; font-weight: 700;
  background: var(--accent, #34b37a); color: #fff;
  cursor: pointer;
}
.fsn-go:active { filter: brightness(0.94); }

/* Daily-reminder toggle hint (empty by default; shows install guidance on iOS). */
.push-hint:empty { display: none; }
.push-hint {
  color: var(--accent, #34b37a);
  font-weight: 600;
}
