/* The editor belongs to the selected app design. Explicit personal paper and
   inline writing styles remain document choices, not global theme overrides. */
.note-page { color:var(--text); }
html .note-page>.topbar { background:var(--cream); color:var(--text); border-color:var(--line); }
.note-page>.topbar .icon-btn { color:inherit; }
.note-page>.topbar #saveState { color:inherit; }
.note-page .title-input::placeholder,.note-page .note-body:empty::before { color:var(--muted); opacity:1; }
.note-page .note-wrap>.chips { min-width:0; max-width:100%; }
.note-page .chip { min-height:44px; }
.note-page .chip.on { background:var(--app-button); color:var(--app-on-button); border-color:transparent; }
.note-page .journal-bible-search { border-radius:var(--app-radius); }
.note-page .journal-bible-launch { border-radius:inherit; }
.note-page[data-custom-paper="false"] .note-body { color:var(--text); min-height:330px; padding-block:10px; }
.note-page[data-custom-paper="false"] .title-input { color:var(--text); font-size:clamp(32px,7vw,42px); }
.note-page[data-custom-paper="false"] .note-wrap { min-width:0; }
.note-page .title-input:focus-visible,.note-page .note-body:focus-visible { outline:2px solid var(--line-2); outline-offset:4px; border-radius:3px; }
/* Editorial pages keep their open margins and fine writing rules. */
html:is([data-app-theme="quiet"],[data-app-theme="stone"],[data-app-theme="terracotta"],[data-app-theme="mint"],[data-app-theme="peach"]) .note-page[data-custom-paper="false"] .note-body {
  line-height:1.9; background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(1.9em - 1px),var(--line) calc(1.9em - 1px),var(--line) 1.9em); background-origin:content-box;
}
html[data-app-theme="quiet"] .note-page[data-custom-paper="false"] .title-input { font-weight:400; border-bottom:1px solid var(--line-2); padding-block:14px; }
html:is([data-app-theme="quiet"],[data-app-theme="stone"]) .note-page :is(.journal-bible-search,.btn-primary,.chip) { border-radius:3px; }
html[data-app-theme="stone"] .note-page .date-input { font-family:var(--design-mono,monospace); }
html[data-app-theme="stone"] .note-page[data-custom-paper="false"] .title-input { border-block:1px solid var(--line-2); padding-block:18px; }
/* A framed emerald page and a blue writing sheet echo the Journal designs. */
html[data-app-theme="emerald"] .note-page[data-custom-paper="false"] .note-wrap.frame-none { margin:14px; border:1px solid #BDA366; box-shadow:inset 0 0 0 5px var(--cream),inset 0 0 0 6px #BDA366; padding:24px 18px; }
html[data-app-theme="sapphire"] .note-page[data-custom-paper="false"] .note-wrap {
  --cream:#C4D8F2; --white:#E1EEFC; --text:#102844; --green:#102844; --muted:#375577; --line:#A4BEDC; --line-2:#7A99BC;
  background:var(--cream); color:var(--text); margin:14px; border-radius:6px; padding:20px 16px;
}
html[data-app-theme="sapphire"] .note-page[data-custom-paper="false"] .note-body { background:var(--white); padding:18px; border-radius:6px; }
/* Burgundy's wine header and blush paper, terracotta's clay margin. */
html[data-app-theme="burgundy"] .note-page>.topbar { background:var(--app-deep); color:var(--app-on-deep); }
html[data-app-theme="burgundy"] .note-page>.topbar .btn { background:var(--app-on-deep); color:var(--app-deep); }
html[data-app-theme="burgundy"] .note-page[data-custom-paper="false"] .title-input { font-family:var(--design-display,var(--serif)); font-weight:400; padding-block:12px; }
html[data-app-theme="burgundy"] .note-page[data-custom-paper="false"] .note-body { padding:18px; border:1px solid var(--line-2); border-radius:18px; background:color-mix(in srgb,var(--white) 45%,transparent); }
html[data-app-theme="burgundy"] .note-page .journal-bible-search { background:var(--sand); }
html[data-app-theme="terracotta"] .note-page { --note-paper:#F8DFCB; }
html[data-app-theme="terracotta"] .note-page[data-custom-paper="false"] .note-wrap.frame-none { border-left:14px solid var(--app-deep); padding-left:18px; }
html[data-app-theme="terracotta"] .note-page[data-custom-paper="false"] .title-input { font-family:var(--design-display,var(--serif)); font-weight:500; }
html[data-app-theme="terracotta"] .note-page .journal-bible-search { background:var(--sand); }
/* Soft, bright editions retain their own sheet shapes and accent details. */
html[data-app-theme="lavender"] .note-page { --note-paper:#F0EAFC; }
html[data-app-theme="lavender"] .note-page[data-custom-paper="false"] .note-body { padding:20px; border-radius:24px; background:var(--white); }
html[data-app-theme="lavender"] .note-page .journal-bible-search { background:var(--sand); border-color:transparent; }
html[data-app-theme="sky"] .note-page { --note-paper:#E1F3FD; }
html[data-app-theme="sky"] .note-page[data-custom-paper="false"] .note-wrap.frame-none { margin:14px; background:var(--cream); border-radius:20px; padding:18px; }
html[data-app-theme="sky"] .note-page .journal-bible-search { background:var(--sand); border-color:transparent; }
html[data-app-theme="mint"] .note-page[data-custom-paper="false"] .title-input { padding:18px 14px; border-radius:14px; background:var(--sand); font-weight:400; }
html[data-app-theme="mint"] .note-page[data-custom-paper="false"] .note-body { padding-inline:14px; border:1px solid var(--line); border-radius:14px; }
html[data-app-theme="butter"] .note-page>.topbar { border-bottom:5px solid #F7E731; }
html[data-app-theme="butter"] .note-page[data-custom-paper="false"] .note-body { padding:20px; background:var(--sand); border-radius:18px; }
html[data-app-theme="peach"] .note-page .journal-bible-search { background:var(--sand); border-color:transparent; }
html[data-app-theme="peach"] .note-page[data-custom-paper="false"] .note-body { padding:16px; border:12px solid #F5F5F3; border-radius:18px; }
@media(max-width:360px) { .note-page .note-wrap { padding-inline:14px; } .note-page>.topbar { gap:4px; padding-inline:10px; } .note-page>.topbar .btn { padding-inline:14px; } .note-page[data-custom-paper="false"] .note-body { min-height:280px; } }
