.notebook-home { margin:28px 22px 34px; }
.notebook-home-heading { align-items:flex-end; }
.notebook-home-heading p { margin:0 0 3px; }
.notebook-home-heading h2 { margin:0; font:500 1.25rem/1.45 var(--journal); }
.notebook-home-heading .hand-note { flex:none; }
.notebook-frame { position:relative; }
.notebook-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 10px; }
.notebook-actions button,
.notebook-page-tools button,
.notebook-block-actions button,
.notebook-map button,
.notebook-turner button,
.notebook-undo button { min-height:44px; border:1px solid var(--line); border-radius:3px; background:rgba(255,255,255,.28); cursor:pointer; }
.notebook-actions button { padding:8px 12px; }
.notebook-actions .notebook-new { border-color:rgba(82,106,89,.46); background:rgba(201,209,196,.34); color:#435c4b; font-weight:600; }
.notebook-create-panel { margin:0 0 13px; padding:14px; border:1px solid var(--line); background:rgba(234,225,210,.5); }
.notebook-create-panel > p { margin:0 0 10px; color:var(--muted); font-size:.8125rem; }
.notebook-template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.notebook-template-grid button { min-height:76px; padding:10px; border:1px solid var(--line); border-radius:3px; background:rgba(255,255,255,.3); text-align:left; cursor:pointer; }
.notebook-template-grid strong,.notebook-template-grid small { display:block; }
.notebook-template-grid strong { font-size:.875rem; }
.notebook-template-grid small { margin-top:4px; color:var(--muted); font-size:.75rem; line-height:1.45; }
.notebook-template-preview { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.notebook-template-preview i { padding:3px 5px; border:1px solid rgba(82,105,113,.2); border-radius:2px; color:var(--blue); font-size:.625rem; font-style:normal; }
.notebook-custom-templates { margin-top:16px; padding-top:13px; border-top:1px solid var(--line); }
.notebook-custom-templates h3 { margin:0 0 8px; font-size:.8125rem; }
.notebook-custom-templates article { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; margin-top:7px; }
.notebook-custom-templates article > button:first-child { min-height:76px; padding:10px; border:1px solid var(--line); border-radius:3px; background:rgba(255,255,255,.3); text-align:left; cursor:pointer; }
.notebook-custom-templates article > button:last-child { min-width:52px; border:0; border-bottom:1px solid var(--sage); background:transparent; color:var(--sage); cursor:pointer; }
.notebook-custom-templates strong,.notebook-custom-templates small { display:block; }
.notebook-custom-templates small { margin-top:4px; color:var(--muted); }
.notebook-template-editor { display:grid; gap:13px; }
.notebook-template-editor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.notebook-template-editor-head p,.notebook-template-editor-head h3 { margin:0; }
.notebook-template-editor-head h3 { font:500 1.15rem var(--journal); }
.notebook-template-editor-head button { width:44px; height:44px; border:0; background:transparent; font-size:1.3rem; cursor:pointer; }
.notebook-template-editor > label { display:grid; gap:5px; color:var(--muted); font-size:.75rem; }
.notebook-template-editor input,.notebook-template-editor textarea,.notebook-template-editor select { width:100%; padding:9px; border:1px solid var(--line); border-radius:3px; background:rgba(255,255,255,.34); font:inherit; color:var(--ink); }
.notebook-template-block-editor { display:grid; gap:8px; }
.notebook-template-block-editor > span { color:var(--muted); font-size:.75rem; }
.notebook-template-block-editor article { display:grid; grid-template-columns:minmax(82px,.35fr) minmax(0,.7fr) minmax(0,1fr); gap:6px; padding:9px; border:1px solid var(--line); background:rgba(255,255,255,.2); }
.notebook-template-block-editor article > div { grid-column:1 / -1; display:flex; justify-content:flex-end; gap:4px; }
.notebook-template-block-editor article button { min-width:40px; min-height:40px; border:0; background:transparent; color:var(--muted); cursor:pointer; }
.notebook-template-add { display:flex; flex-wrap:wrap; gap:6px; }
.notebook-template-add button { min-height:42px; padding:6px 8px; border:0; border-bottom:1px solid var(--sage); background:transparent; color:var(--sage); cursor:pointer; }
.notebook-template-editor-actions { display:flex; justify-content:space-between; gap:8px; }
.notebook-template-editor-actions button { min-height:46px; padding:8px 12px; border:1px solid var(--line); border-radius:3px; background:rgba(255,255,255,.28); cursor:pointer; }
.notebook-template-editor-actions button:first-child { color:var(--terra); }
.notebook-template-editor-actions button:last-child { border-color:rgba(82,106,89,.5); background:rgba(201,209,196,.34); color:#435c4b; }
.notebook-template-editor > p { margin:0; color:var(--muted); font-size:.6875rem; line-height:1.55; }
.notebook-paper { position:relative; min-height:260px; padding:20px 33px 20px 20px; border:1px solid rgba(61,62,57,.16); border-radius:3px 8px 8px 3px; background:linear-gradient(90deg,rgba(150,77,56,.08) 0 1px,transparent 1px) 18px 0 / 1px 100%,rgba(255,252,245,.58); box-shadow:3px 4px 0 rgba(207,197,181,.66),0 14px 28px rgba(66,57,47,.08); }
.notebook-paper::before { content:""; position:absolute; left:20px; right:30px; top:0; bottom:0; pointer-events:none; opacity:.25; background:repeating-linear-gradient(transparent 0 31px,rgba(82,105,113,.13) 31px 32px); }
.notebook-paper > * { position:relative; z-index:1; }
.notebook-paper-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; padding-bottom:13px; border-bottom:1px solid var(--line); }
.notebook-paper-head small { display:block; color:var(--muted); font-size:.6875rem; letter-spacing:.05em; }
.notebook-title { width:100%; min-height:44px; margin-top:2px; padding:4px 0; border:0; border-bottom:1px solid transparent; background:transparent; color:var(--ink); font:500 1.35rem/1.4 var(--journal); }
.notebook-title::placeholder { color:#79776e; }
.notebook-bookmark { width:44px; height:44px; padding:0; overflow:hidden; border:0; background:transparent; color:var(--muted); font-size:1.1rem; line-height:1; cursor:pointer; }
.notebook-bookmark[aria-pressed="true"] { color:var(--terra); }
.notebook-blocks { display:grid; gap:13px; margin-top:15px; }
.notebook-block { position:relative; padding:10px 9px 11px; border-radius:3px; background:rgba(255,255,255,.18); }
.notebook-block label { display:block; }
.notebook-block-label { display:block; margin-bottom:5px; color:#59665f; font-size:.75rem; font-weight:600; }
.notebook-block-date { float:right; margin-left:8px; color:var(--muted); font-size:.625rem; font-weight:400; }
.notebook-block textarea,
.notebook-block input[type="text"],
.notebook-block input[type="date"] { width:100%; border:0; border-bottom:1px solid rgba(61,62,57,.2); border-radius:0; background:transparent; font-size:1rem; line-height:1.65; }
.notebook-block textarea { min-height:72px; padding:6px 2px; resize:vertical; }
.notebook-task-line { display:grid !important; grid-template-columns:30px minmax(0,1fr); gap:7px; align-items:center; }
.notebook-task-line input[type="checkbox"] { width:22px; height:22px; accent-color:var(--sage); }
.notebook-event-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(130px,.45fr); gap:10px; }
.notebook-block-actions { display:flex; justify-content:flex-end; gap:4px; margin-top:7px; }
.notebook-block-actions button { min-width:40px; min-height:40px; border-color:transparent; background:transparent; color:var(--muted); }
.notebook-block-actions button:disabled { opacity:.32; cursor:default; }
.notebook-photo-block figure { margin:4px 0 10px; }
.notebook-photo-block figure img { display:block; width:100%; max-height:300px; object-fit:cover; border:6px solid #eee9df; border-bottom-width:14px; box-shadow:1px 3px 8px rgba(61,55,46,.12); }
.notebook-photo-block figcaption { display:flex; justify-content:space-between; gap:8px; margin-top:6px; color:var(--muted); font-size:.75rem; }
.notebook-photo-block figcaption strong { color:var(--ink); font-weight:500; }
.notebook-photo-block > p,.notebook-photo-picker > p { color:var(--muted); font-size:.8125rem; }
.notebook-photo-picker { margin:8px 0; padding:9px; border:1px dashed rgba(82,105,113,.3); background:rgba(203,214,216,.16); }
.notebook-photo-picker > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.notebook-photo-picker > div button { min-width:0; min-height:86px; padding:4px; border:1px solid var(--line); background:rgba(255,255,255,.3); cursor:pointer; }
.notebook-photo-picker img { display:block; width:100%; aspect-ratio:1; object-fit:cover; }
.notebook-photo-picker span { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:.625rem; text-overflow:ellipsis; white-space:nowrap; }
.notebook-photo-picker > button { min-height:44px; margin-top:8px; border:0; border-bottom:1px solid var(--sage); background:transparent; color:var(--sage); cursor:pointer; }
.notebook-add-row { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; padding-top:13px; border-top:1px dashed var(--line); }
.notebook-add-row button { min-height:44px; padding:7px 10px; border:0; border-bottom:1px solid rgba(82,106,89,.45); background:transparent; color:#465f4e; cursor:pointer; }
.notebook-page-tools { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; margin-top:18px; }
.notebook-page-tools button { padding:7px 10px; border-color:transparent; background:transparent; color:var(--muted); }
.notebook-page-tools .notebook-delete { color:var(--terra); }
.notebook-related { margin-top:18px; padding:11px; border:1px solid rgba(82,105,113,.18); background:rgba(203,214,216,.12); }
.notebook-related > div { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px; }
.notebook-related > div strong { font-size:.75rem; font-weight:600; }
.notebook-related > div button { min-height:40px; border:0; background:transparent; color:var(--blue); cursor:pointer; }
.notebook-related > button { display:grid; grid-template-columns:58px minmax(0,1fr) auto; align-items:center; gap:7px; width:100%; min-height:44px; border:0; border-top:1px solid rgba(82,105,113,.14); background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.notebook-related > button small,.notebook-related > button i { color:var(--muted); font-size:.625rem; font-style:normal; }
.notebook-future-notice { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; margin:10px 0 14px; padding:12px; border:1px solid rgba(150,77,56,.22); background:rgba(244,231,210,.42); box-shadow:1px 2px 0 rgba(150,77,56,.08); }
.notebook-future-notice > span { color:var(--terra); font-size:1.25rem; }
.notebook-future-notice small,.notebook-future-notice strong,.notebook-future-notice p { display:block; margin:0; }
.notebook-future-notice small { color:var(--terra); font-size:.625rem; text-transform:uppercase; letter-spacing:.08em; }
.notebook-future-notice strong { margin-top:2px; font:500 .9rem var(--journal); }
.notebook-future-notice p { margin-top:2px; color:var(--muted); font-size:.7rem; }
.notebook-future-notice > div:last-child { display:flex; gap:4px; }
.notebook-future-notice button { min-height:42px; border:0; border-bottom:1px solid var(--terra); background:transparent; color:var(--terra); cursor:pointer; }
.notebook-future-editor { margin-top:16px; padding:11px; border:1px dashed rgba(150,77,56,.35); background:rgba(244,231,210,.25); }
.notebook-future-editor label { display:grid; gap:6px; color:var(--muted); font-size:.75rem; }
.notebook-future-editor input { min-height:44px; padding:7px; border:1px solid var(--line); background:rgba(255,255,255,.45); color:var(--ink); font:inherit; }
.notebook-future-editor > div { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin-top:8px; }
.notebook-future-editor button,.notebook-reply-source { min-height:42px; border:0; border-bottom:1px solid var(--terra); background:transparent; color:var(--terra); cursor:pointer; }
.notebook-future-editor p { margin:8px 0 0; color:var(--muted); font-size:.6875rem; }
.notebook-reply-source { margin-bottom:10px; text-align:left; }
.notebook-edge { position:absolute; z-index:2; top:20px; right:10px; bottom:20px; width:12px; }
.notebook-edge-line { position:absolute; left:5px; top:0; bottom:0; width:1px; background:rgba(82,105,113,.3); }
.notebook-edge-marker { position:absolute; left:1px; width:9px; height:9px; border:2px solid var(--paper); border-radius:50%; background:var(--blue); box-shadow:0 0 0 1px rgba(82,105,113,.3); transform:translateY(-50%); }
.notebook-turner { display:grid; grid-template-columns:48px minmax(0,1fr) 48px; gap:8px; align-items:center; margin-top:13px; }
.notebook-turner button { width:48px; padding:0; font-size:1.1rem; }
.notebook-turner button:disabled { opacity:.34; cursor:default; }
.notebook-position { text-align:center; color:var(--muted); font-size:.75rem; }
.notebook-position strong { display:block; margin-top:2px; color:var(--ink); font-family:var(--journal); font-size:.9375rem; font-weight:500; overflow-wrap:anywhere; }
.notebook-map { margin-top:13px; border-top:1px solid var(--line); }
.notebook-map > summary { min-height:44px; padding:12px 2px; color:#465f4e; cursor:pointer; font-size:.8125rem; }
.notebook-map-groups { display:grid; gap:12px; padding:4px 0 8px; }
.notebook-map-group h3 { margin:0 0 6px; color:var(--muted); font-size:.6875rem; letter-spacing:.08em; text-transform:uppercase; }
.notebook-map-group div { display:grid; gap:5px; }
.notebook-map button { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:8px; align-items:center; padding:8px 9px; text-align:left; }
.notebook-map button[aria-current="page"] { border-color:rgba(82,106,89,.52); background:rgba(201,209,196,.32); }
.notebook-map button small { color:var(--muted); }
.notebook-map button span { overflow-wrap:anywhere; }
.notebook-map button i { color:var(--terra); font-style:normal; }
.notebook-empty { padding:24px 18px; text-align:center; }
.notebook-empty span { color:var(--sage); font:2.3rem var(--hand); }
.notebook-empty h3 { margin:8px 0; font:500 1.25rem var(--journal); }
.notebook-empty p { margin:0 auto 16px; max-width:32rem; color:var(--muted); font-size:.875rem; line-height:1.7; }
.notebook-day-page h3 { margin:7px 0 11px; font:500 1.3rem var(--journal); }
.notebook-day-page p { margin:9px 0; color:var(--muted); line-height:1.7; }
.notebook-day-page .notebook-day-marks { display:flex; flex-wrap:wrap; gap:6px; }
.notebook-day-page .notebook-day-marks span { padding:5px 8px; border:1px solid var(--line); border-radius:2px; color:#52685a; font-size:.75rem; }
.notebook-open-day { min-height:44px; margin-top:12px; padding:8px 12px; border:0; border-bottom:1px solid var(--terra); background:transparent; color:var(--terra); cursor:pointer; }
.notebook-undo { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:10px 0; padding:9px 11px; border:1px solid rgba(150,77,56,.24); background:rgba(228,194,182,.22); color:#704536; font-size:.8125rem; }
.notebook-undo button { padding:6px 11px; border-color:rgba(150,77,56,.34); background:rgba(255,255,255,.3); }
.notebook-save-note { min-height:20px; margin:8px 0 0; color:var(--muted); font-size:.6875rem; text-align:right; }

@media (min-width:600px) {
  .notebook-home { margin-left:34px; margin-right:34px; }
  .notebook-paper { padding:24px 39px 24px 25px; }
}

@media (max-width:380px) {
  .notebook-template-grid,.notebook-event-fields { grid-template-columns:1fr; }
  .notebook-template-block-editor article { grid-template-columns:1fr; }
  .notebook-template-block-editor article > div { grid-column:1; }
  .notebook-home { margin-left:16px; margin-right:16px; }
  .notebook-paper { padding-left:14px; padding-right:28px; }
  .notebook-map button { grid-template-columns:36px minmax(0,1fr); }
  .notebook-map button i { display:none; }
  .notebook-future-notice { grid-template-columns:auto minmax(0,1fr); }
  .notebook-future-notice > div:last-child { grid-column:1 / -1; justify-content:flex-end; }
}
