/* BlurNoter — every screen, scoped under .nt-app (docs/SITE.md, docs/BRAND.md).
   The family's look (K9): BlurFolder's palette, bar, buttons, type and corners —
   the values BlurAccounter and BlurWriter copy too. Light only, as theirs are. */

/* The panels hang from <body>, outside .nt-app: both carry the same tokens. */
.nt-app, .nt-overlay {
  --nt-teal: #00c6cf;          /* BlurPaper's teal, every sibling's */
  --nt-teal-dark: #00a3ab;
  --nt-teal-soft: #e0f7f8;
  --nt-teal-ink: #00636a;      /* teal text on a light ground: readable */
  --nt-ink: #2f3440;
  --nt-muted: #6b7280;
  --nt-line: #e3e6ec;
  --nt-bg: #f6f8fa;
  --nt-card: #ffffff;
  --nt-bad: #c0392b;
  --nt-today: #f0fbfc;
}
.nt-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--nt-bg);
  color: var(--nt-ink);
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.nt-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 1rem; background: #fff; border-bottom: 1px solid var(--nt-line); position: relative; z-index: 20; }
.nt-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--nt-teal); font-size: 1.35rem; text-decoration: none; white-space: nowrap; }
.nt-brand b { font-weight: 700; }
.nt-logo { display: block; width: 28px; height: 28px; border-radius: 4px; }
.nt-nav { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.nt-who { color: var(--nt-muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30vw; }
.nt-main { flex: 1 1 auto; width: 100%; max-width: 60rem; margin: 0 auto; padding: 1.5rem 1rem; box-sizing: border-box; }
.nt-wide-main { max-width: 90rem; }
.nt-foot { padding: 1rem; text-align: center; color: var(--nt-muted); font-size: 0.85rem; }
.nt-muted { color: var(--nt-muted); }
.nt-error, .nt-bad { color: var(--nt-bad); }

/* Buttons: background, colour, border and radius together — BlurPager's
   baseline `button` rule paints white text and its own corners (its D143). */
.nt-app .nt-button, .nt-app button.nt-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.2rem;
  border: 1px solid var(--nt-teal); border-radius: 6px; background: var(--nt-teal); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.nt-app .nt-button:hover { background: var(--nt-teal-dark); border-color: var(--nt-teal-dark); }
.nt-app .nt-small { padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.nt-app .nt-wide { display: flex; width: 100%; }
.nt-app button.nt-quiet, .nt-app button.nt-link, .nt-app button.nt-ghost {
  padding: 0.3rem 0.6rem; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--nt-muted); font: inherit; cursor: pointer;
}
.nt-app button.nt-ghost { border-color: var(--nt-line); background: #fff; color: var(--nt-ink); }
.nt-app button.nt-ghost:hover { border-color: var(--nt-teal); }
.nt-app button.nt-link { color: var(--nt-teal-dark); text-decoration: underline; padding: 0; }
.nt-app button.nt-quiet:hover { background: rgba(0, 0, 0, 0.05); color: var(--nt-ink); }
.nt-app button:disabled { opacity: 0.6; cursor: default; }
.nt-paper-mark { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; border-radius: 2px; }
h1 .nt-paper-mark { margin-right: 0.45rem; }

.nt-card { background: var(--nt-card); border: 1px solid var(--nt-line); border-radius: 10px; padding: 1.25rem; margin-bottom: 1rem; }
.nt-narrow { max-width: 26rem; margin: 2rem auto; }
.nt-card h1 { margin: 0 0 1rem; font-size: 1.4rem; display: flex; align-items: center; }
.nt-card h2 { margin: 0 0 1rem; font-size: 1.15rem; }
.nt-or { text-align: center; margin: 1rem 0 0; color: var(--nt-muted); }

.nt-hero { padding: 2rem 0; }
.nt-hero h1 { font-size: 2rem; margin: 0 0 1rem; line-height: 1.2; }
.nt-lead { font-size: 1.1rem; line-height: 1.6; max-width: 40rem; }
.nt-points { line-height: 1.8; padding-left: 1.2rem; }

/* ---- The notes (functions/noter-app.js) ---- */

/* waiting: always a visible spinner, never just small text */
.nt-spin { display: inline-block; flex: none; width: 1em; height: 1em; box-sizing: border-box; border: 2px solid rgba(0, 0, 0, 0.12); border-top-color: var(--nt-teal); border-radius: 50%;
  animation: nt-spin 0.8s linear infinite; vertical-align: -0.15em; }
.nt-spin-big { width: 2.6rem; height: 2.6rem; border-width: 4px; }
@keyframes nt-spin { to { transform: rotate(360deg); } }
.nt-loading { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 3rem 1rem; text-align: center; }
.nt-busy { opacity: 0.6; pointer-events: none; }

.nt-notes { display: flex; flex-direction: column; gap: 0.9rem; }
.nt-top { display: flex; align-items: center; gap: 0.5rem; }
.nt-search { flex: 1 1 auto; display: flex; align-items: center; gap: 0.25rem; min-width: 0; padding: 0 0.4rem 0 0.75rem; border: 1px solid var(--nt-line); border-radius: 10px; background: #fff; }
.nt-search:focus-within { border-color: var(--nt-teal); box-shadow: 0 0 0 2px var(--nt-teal-soft); }
.nt-search-icon { color: var(--nt-muted); font-size: 1.2rem; }
.nt-search-box { flex: 1 1 auto; min-width: 0; padding: 0.6rem 0.25rem; border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; color: var(--nt-ink); }
.nt-search-box::-webkit-search-cancel-button { display: none; }
.nt-app button.nt-bell { font-size: 1.1rem; padding: 0.45rem 0.65rem; }
.nt-app button.nt-x { padding: 0 0.5rem; font-size: 1.5rem; line-height: 1; }

.nt-filters { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.2rem; scrollbar-width: none; }
.nt-filters::-webkit-scrollbar { display: none; }
.nt-app button.nt-filter { flex: none; padding: 0.35rem 0.85rem; border: 1px solid var(--nt-line); border-radius: 999px; background: #fff; color: var(--nt-ink); font: inherit; font-size: 0.92rem; cursor: pointer; white-space: nowrap; }
.nt-app button.nt-filter-on { background: var(--nt-teal-soft); border-color: var(--nt-teal); color: var(--nt-teal-ink); font-weight: 600; }
.nt-app button.nt-filter-edit { color: var(--nt-muted); border-style: dashed; }

.nt-composer { display: flex; gap: 0.5rem; max-width: 36rem; width: 100%; margin: 0 auto; }
.nt-app button.nt-composer-take { flex: 1 1 auto; padding: 0.8rem 1rem; border: 1px solid var(--nt-line); border-radius: 10px; background: #fff; color: var(--nt-muted);
  font: inherit; font-size: 1rem; text-align: left; cursor: text; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.nt-app button.nt-composer-take:hover { border-color: var(--nt-teal); }
.nt-app button.nt-composer-list { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0 0.9rem; border-radius: 10px; font-size: 1rem; }

.nt-section { margin: 0.5rem 0 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nt-muted); }
.nt-empty { margin: 2.5rem 0; text-align: center; color: var(--nt-muted); font-size: 1.05rem; }
.nt-trash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.nt-trash-head p { margin: 0; }
.nt-app button.nt-danger { color: var(--nt-bad); }

/* the cards, in columns like Keep's */
.nt-grid { columns: 15rem; column-gap: 0.75rem; }
.nt-note { position: relative; break-inside: avoid; margin: 0 0 0.75rem; padding: 0.75rem 2.2rem 0.75rem 0.85rem; border: 1px solid var(--nt-line); border-radius: 10px;
  background: var(--nt-note, #fff); cursor: pointer; overflow-wrap: anywhere; box-sizing: border-box; }
.nt-note[data-colour]:not([data-colour="0"]) { border-color: transparent; }
.nt-note:hover, .nt-note:focus-visible { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); outline: none; }
.nt-card-title { margin: 0 0 0.35rem; font-size: 1.02rem; font-weight: 600; }
.nt-card-body { margin: 0; white-space: pre-wrap; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.nt-card-items li { display: flex; align-items: flex-start; gap: 0.45rem; line-height: 1.35; }
.nt-card-items input, .nt-item input[type=checkbox] { width: 1.05rem; height: 1.05rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--nt-teal-dark); cursor: pointer; }
.nt-ticked span, .nt-item.nt-ticked .nt-item-text { text-decoration: line-through; color: var(--nt-muted); }
.nt-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.55rem; }
.nt-chip { display: inline-flex; align-items: center; padding: 0.1rem 0.55rem; border-radius: 999px; background: rgba(0, 0, 0, 0.07); color: var(--nt-ink); font-size: 0.8rem; }
.nt-chip-passed { text-decoration: line-through; color: var(--nt-muted); }
.nt-app button.nt-pin { position: absolute; top: 0.4rem; right: 0.35rem; padding: 0.15rem 0.3rem; border: 0; border-radius: 6px; background: none;
  font-size: 1rem; line-height: 1; cursor: pointer; opacity: 0.3; filter: grayscale(1); }
.nt-app button.nt-pin-on { opacity: 1; filter: none; }
.nt-note:hover button.nt-pin { opacity: 0.8; }

/* the toast: what just happened */
.nt-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 150; display: flex; align-items: center; gap: 0.75rem; max-width: calc(100vw - 2rem);
  box-sizing: border-box; padding: 0.7rem 1rem; border-radius: 8px; background: #2f3440; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); }
.nt-toast[hidden] { display: none; }
.nt-toast-bad { background: var(--nt-bad); }
.nt-app .nt-toast button.nt-link { color: #7fe7ec; font-weight: 600; text-decoration: none; }
.nt-toast .nt-spin { border-color: rgba(255, 255, 255, 0.25); border-top-color: #fff; }

/* panels: appended to <body>, outside .nt-app; the tokens are set on .nt-overlay too (top) */
.nt-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(20, 22, 28, 0.35); }
.nt-panel { width: min(32rem, 100%); max-height: 90vh; overflow: auto; box-sizing: border-box; padding: 1rem 1.25rem 1.25rem; border-radius: 10px; background: #fff; color: var(--nt-ink); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
/* the alarm (functions/_alarm.js): above any panel, hard to miss */
.nt-overlay.nt-alarm { z-index: 200; background: rgba(20, 22, 28, 0.55); }
.nt-alarm-box { border-top: 6px solid var(--nt-teal); text-align: center; }
.nt-alarm-box h2 { margin: 0.2rem 0 0.5rem; font-size: 1.4rem; overflow-wrap: anywhere; }
.nt-alarm-head { margin: 0; color: var(--nt-teal-ink); font-weight: 600; letter-spacing: 0.02em; }
.nt-alarm-box .nt-panel-actions { justify-content: center; }
.nt-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.nt-panel-head h2 { margin: 0.2rem 0 0.6rem; font-size: 1.25rem; overflow-wrap: anywhere; }
.nt-panel button.nt-x { padding: 0 0.5rem; border: 0; background: none; color: var(--nt-muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.nt-when { margin: 0 0 0.5rem; font-weight: 600; }
.nt-when::first-letter { text-transform: uppercase; }
.nt-label { color: var(--nt-muted); }
.nt-body { margin: 0.5rem 0; padding: 0.6rem 0.75rem; background: var(--nt-bg); border-radius: 6px; overflow-wrap: anywhere; }
.nt-body p { margin: 0 0 0.3rem; }
.nt-panel-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.nt-panel button.nt-button { display: inline-flex; align-items: center; padding: 0.5rem 1.1rem; border: 1px solid var(--nt-teal); border-radius: 6px; background: var(--nt-teal); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.nt-panel button.nt-button:hover, .nt-panel a.nt-join:hover { background: var(--nt-teal-dark); border-color: var(--nt-teal-dark); }
.nt-panel button.nt-ghost { padding: 0.5rem 1rem; border: 1px solid var(--nt-line); border-radius: 6px; background: #fff; color: var(--nt-ink); font: inherit; cursor: pointer; }
.nt-panel button.nt-danger { color: var(--nt-bad); }
.nt-panel button.nt-link { padding: 0; border: 0; background: none; color: var(--nt-teal-dark); text-decoration: underline; font: inherit; cursor: pointer; }
.nt-panel .nt-muted { color: var(--nt-muted); }
.nt-panel .nt-error { color: var(--nt-bad); }
.nt-form { display: flex; flex-direction: column; gap: 0.7rem; }
.nt-field { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; color: var(--nt-muted); }
.nt-field input, .nt-field textarea, .nt-field select { box-sizing: border-box; width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--nt-line); border-radius: 6px; font: inherit; font-size: 1rem; color: var(--nt-ink); background: #fff; }
.nt-field input:focus, .nt-field textarea:focus, .nt-field select:focus { outline: 2px solid var(--nt-teal); outline-offset: 0; border-color: var(--nt-teal); }
.nt-pair { display: flex; gap: 0.5rem; }
.nt-pair input[type=date] { flex: 1 1 60%; min-width: 0; }
.nt-pair input[type=time] { flex: 1 1 40%; min-width: 0; }
.nt-check { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--nt-ink); }
.nt-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--nt-teal); }
.nt-field-error { font-size: 0.85rem; }

/* the editor: a panel in the note's colour */
.nt-panel.nt-editor { background: var(--nt-note, #fff); padding-top: 0.75rem; }
.nt-edit-head { display: flex; align-items: center; gap: 0.25rem; }
.nt-edit-title, .nt-edit-body, .nt-item-text, .nt-item-add { box-sizing: border-box; width: 100%; border: 0; outline: 0; background: transparent; color: var(--nt-ink); font: inherit; }
.nt-edit-title { flex: 1 1 auto; min-width: 0; padding: 0.4rem 0; font-size: 1.2rem; font-weight: 600; }
.nt-edit-body { display: block; min-height: 6rem; padding: 0.4rem 0; font-size: 1rem; line-height: 1.5; resize: none; }
.nt-edit-content { margin-bottom: 0.5rem; }
.nt-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.nt-item { display: flex; align-items: center; gap: 0.45rem; }
.nt-item-text { padding: 0.35rem 0; font-size: 1rem; }
.nt-item-add { margin-top: 0.25rem; padding: 0.45rem 0 0.45rem 1.5rem; font-size: 1rem; }
.nt-item-add::placeholder, .nt-edit-body::placeholder, .nt-edit-title::placeholder { color: var(--nt-muted); }
.nt-edit-remind, .nt-edit-labels { padding: 0.6rem 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.nt-edit-remind h3, .nt-edit-labels h3 { margin: 0 0 0.45rem; font-size: 0.92rem; font-weight: 600; }
.nt-quick, .nt-remind-now { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.nt-panel button.nt-small { padding: 0.3rem 0.7rem; font-size: 0.88rem; }
.nt-panel button.nt-chip-button { border: 1px solid rgba(0, 0, 0, 0.15); background: rgba(255, 255, 255, 0.6); font: inherit; font-size: 0.9rem; padding: 0.25rem 0.7rem; cursor: pointer; }
.nt-remind-form { display: flex; flex-direction: column; gap: 0.5rem; }
.nt-remind-form input, .nt-remind-form select, .nt-label-add input, .nt-label-row input { box-sizing: border-box; padding: 0.45rem 0.55rem; border: 1px solid var(--nt-line); border-radius: 6px;
  font: inherit; font-size: 1rem; color: var(--nt-ink); background: #fff; }
.nt-remind-form .nt-panel-actions { margin-top: 0.25rem; }
.nt-label-picks { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-bottom: 0.5rem; }
.nt-label-add { display: flex; gap: 0.4rem; }
.nt-label-add input { flex: 1 1 auto; min-width: 0; }
.nt-label-list { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.nt-label-row { display: flex; align-items: center; gap: 0.5rem; }
.nt-label-row input { flex: 1 1 auto; min-width: 0; }
.nt-colours { display: flex; flex-wrap: wrap; gap: 0.35rem; border: 0; margin: 0; padding: 0.6rem 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.nt-colours legend { float: left; width: 100%; margin-bottom: 0.35rem; font-size: 0.85rem; }
.nt-colours label { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer; }
.nt-colours input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nt-swatch { display: inline-block; width: 1.7rem; height: 1.7rem; box-sizing: border-box; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); flex: none; }
.nt-colours input:checked + .nt-swatch { outline: 3px solid var(--nt-ink); outline-offset: 2px; }
.nt-colours input:focus-visible + .nt-swatch { outline: 3px solid var(--nt-teal); outline-offset: 2px; }
.nt-edit-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.nt-panel .nt-edit-actions button.nt-ghost { padding: 0.4rem 0.75rem; font-size: 0.9rem; background: rgba(255, 255, 255, 0.7); }
.nt-edit-foot { position: sticky; bottom: -1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0 -1.25rem -1.25rem;
  padding: 0.6rem 1.25rem; background: var(--nt-note, #fff); border-top: 1px solid rgba(0, 0, 0, 0.08); }
.nt-save-state { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--nt-muted); font-size: 0.88rem; min-height: 1.2rem; }
.nt-panel .nt-x { flex: none; }

/* this device (docs/PUSH.md) */
.nt-steps { margin: 0.25rem 0 0; padding-left: 1.3rem; line-height: 1.6; }
.nt-push, .nt-install { margin-top: 0.75rem; }
.nt-push h3, .nt-install h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.nt-push-state { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.6rem; }
.nt-waiting { margin: 0.5rem 0 0; padding: 0.5rem 0.7rem; border-radius: 6px; background: #fff7e6; color: #6b4a00; border: 1px solid #f1d9a6; font-size: 0.9rem; }
.nt-small-print { font-size: 0.82rem; margin: 0.4rem 0 0; }
.nt-panel p.nt-note { margin: 0.5rem 0 0; padding: 0.45rem 0.6rem; border-radius: 6px; background: #eaf6ec; color: #1d5e2b; }
.nt-panel p.nt-note.nt-error { background: #fdecea; color: var(--nt-bad); }

@media (max-width: 700px) {
  .nt-overlay { align-items: flex-end; padding: 0; }
  .nt-panel { width: 100%; max-height: 92vh; border-radius: 16px 16px 0 0; }
  .nt-grid { columns: 2; column-gap: 0.5rem; }
  .nt-note { margin-bottom: 0.5rem; padding: 0.65rem 2rem 0.65rem 0.7rem; }
  .nt-composer-list-word { display: none; }
}

@media (max-width: 600px) {
  .nt-bar { padding: 0.5rem 0.75rem; }
  .nt-who { display: none; }
  .nt-hero h1 { font-size: 1.6rem; }
  .nt-main { padding: 1rem 0.75rem; }
}

@media (max-width: 360px) {
  .nt-grid { columns: 1; }
}
