/* Original roadside stationery, CSS + inline original SVG; no font/image downloads. */
html:not([data-yeyou-daylight]) .daylight-notebook{display:none!important}
html[data-yeyou-daylight][data-skin=watch] body[data-leaf-fusion] #mapWorkspace #fusionShell .watch-face{display:none!important}
.daylight-notebook{position:absolute;left:max(16px,env(safe-area-inset-left,0px));top:calc(var(--yau-ui-top) + 74px);width:min(300px,calc(100% - 88px));pointer-events:none;color:#253b31}
.notebook-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 3px 12px;font-size:11px;letter-spacing:.08em}.notebook-brand strong{font-size:18px;font-weight:650;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notebook-paper{padding:18px;border:1px solid #b7c5b5;border-radius:4px 24px 24px 24px;background:#fffef8;box-shadow:0 5px 18px #253b3112;pointer-events:auto}
.notebook-heading{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px;font-weight:600}.notebook-heading small{font-size:11px;font-weight:400;color:#53665a;margin-left:auto}.notebook-leaf{display:flex;color:#24543e}
html[data-yeyou-daylight] #fusionShell .notebook-intro h1{font-family:-apple-system,BlinkMacSystemFont,"PingFang TC",sans-serif;font-size:26px!important;line-height:1.5!important;font-weight:500!important;letter-spacing:.045em;margin:17px 0 8px!important}
.notebook-intro p{font-size:13px;line-height:1.7;color:#53665a;margin:0 0 14px}
.notebook-latest{color:#53665a;font-size:12px;line-height:1.75;margin:0 0 15px;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.notebook-latest.has-note{padding-left:10px;border-left:2px solid #b7c5b5;color:#253b31;font-size:14px}
.notebook-actions{display:flex;gap:8px;border-top:1px solid #d7dfd0;padding-top:12px}
html[data-yeyou-daylight] body[data-leaf-fusion] #mapWorkspace #fusionShell .notebook-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:44px;min-height:44px;padding:9px 11px;border:1px solid #b7c5b5;border-radius:12px;background:#fffef8;color:#253b31;font-size:13px;font-weight:500;box-shadow:none;white-space:nowrap}
html[data-yeyou-daylight] body[data-leaf-fusion] #mapWorkspace #fusionShell #notebookWrite{background:#24543e;color:#fffef8;border-color:#24543e}
.daylight-notebook svg,.notebook-dialog svg{flex-shrink:0;pointer-events:none}
html[data-yeyou-daylight] #fusionShell:has(.watch-face.is-compact) .notebook-intro,
html[data-yeyou-daylight] #fusionShell:has(.watch-face.is-compact) .notebook-latest,
html[data-yeyou-daylight] #fusionShell:has(.watch-face.is-compact) .notebook-brand{display:none}
html[data-yeyou-daylight] #fusionShell:has(.watch-face.is-compact) .notebook-paper{padding:12px;border-radius:18px}
html[data-yeyou-daylight] #fusionShell:has(.watch-face.is-compact) .notebook-heading small{display:none}
html[data-yeyou-daylight] #fusionShell:has(.watch-face.is-compact) .notebook-actions{padding-top:8px;margin-top:8px}
html[data-yeyou-daylight] #fusionShell:has(.fusion-sheet:not([hidden])) .daylight-notebook,
html[data-yeyou-daylight]:has(#map .leaflet-popup,.map-stage.has-selection-sheet) .daylight-notebook{visibility:hidden;pointer-events:none}
html[data-yeyou-daylight] #fusionShell:has(.fusion-sheet:not([hidden])) .daylight-notebook *,
html[data-yeyou-daylight]:has(#map .leaflet-popup,.map-stage.has-selection-sheet) .daylight-notebook *{pointer-events:none!important}
.notebook-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
html[data-yeyou-daylight] .notebook-dialog .notebook-modal-heading h2{padding-right:0!important;flex:1}
html[data-yeyou-daylight] .notebook-dialog .notebook-modal-heading>button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border-radius:50%!important;flex:0 0 44px}
html[data-yeyou-daylight] .notebook-dialog textarea{display:block;box-sizing:border-box;width:100%;min-height:140px;max-height:35dvh;margin-top:8px;padding:14px;border:1px solid #9aaa97;border-radius:14px;background:#fffef8;color:#253b31;font:16px/1.8 -apple-system,BlinkMacSystemFont,"PingFang TC",sans-serif;resize:vertical}
.notebook-dialog textarea::placeholder{color:#647468;opacity:1}
.notebook-input-foot{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;margin-top:8px;font-size:12px;color:#53665a}.notebook-input-foot output{white-space:nowrap}
html[data-yeyou-daylight] .notebook-dialog button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px!important;font-size:14px!important}
.notebook-status{min-height:1.6em}.notebook-entry{padding:12px 0;border-top:1px solid #d7dfd0}.notebook-entry-meta{display:flex;justify-content:space-between;align-items:center;gap:12px}.notebook-entry time{color:#53665a;font-size:12px}.notebook-entry p{white-space:pre-wrap;overflow-wrap:anywhere}
html[data-yeyou-daylight] .notebook-entry p{font-size:16px!important;line-height:1.8!important;color:#253b31!important}
html[data-yeyou-daylight] .notebook-entry-meta button{color:#9b302b!important;min-width:44px;min-height:44px;padding:7px!important}
.notebook-library-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid #d7dfd0}.notebook-dialog .actions{flex-wrap:wrap}.notebook-dialog .actions button{white-space:nowrap}
.notebook-library #notebookEntries{max-height:44dvh;overflow:auto;overscroll-behavior:contain;padding-right:4px}
@media(max-width:360px){.daylight-notebook{left:12px;width:calc(100% - 78px)}.notebook-paper{padding:14px}.notebook-heading small{display:none}.notebook-actions{gap:5px}html[data-yeyou-daylight] body[data-leaf-fusion] #mapWorkspace #fusionShell .notebook-actions button{padding:8px;font-size:12px;gap:4px}}
@media(orientation:landscape) and (max-height:560px){.daylight-notebook{width:230px}.notebook-intro,.notebook-latest,.notebook-brand{display:none}.notebook-paper{padding:12px}.notebook-actions{padding-top:8px;margin-top:8px}}
@media(prefers-reduced-motion:reduce){.daylight-notebook *,.notebook-dialog *{transition:none!important;animation:none!important}}

/* Native dialog dismissal preserves drafts and never stacks the two note views. */
html[data-yeyou-daylight] .notebook-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(460px,calc(100% - 28px));max-width:calc(100% - 28px);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 48px);overflow:auto;overscroll-behavior:contain;padding:22px;border:1px solid #a6b79f;border-radius:24px;background:#fffef8;color:#253b31;box-shadow:0 12px 40px #253b3126;font:15px/1.65 -apple-system,BlinkMacSystemFont,"PingFang TC",sans-serif;backdrop-filter:none}
.notebook-dialog:not([open]){display:none!important}.notebook-dialog[open]{display:block;animation:notebook-enter .16s ease-out}
.notebook-dialog::backdrop{background:#162c2459;backdrop-filter:none;-webkit-backdrop-filter:none}
.notebook-dialog h2{font-size:21px;font-weight:600;line-height:1.5;margin:0 0 14px}.notebook-dialog p{color:#53665a;font-size:14px;line-height:1.7}.notebook-dialog label{font-size:15px;color:#253b31}
.notebook-dialog button{font:inherit;color:#253b31;min-width:44px;padding:10px 12px;border:1px solid #a6b79f;border-radius:12px;background:#f0f3e9;cursor:pointer;touch-action:manipulation}
.notebook-dialog .actions{display:flex;gap:8px;margin-top:16px}.notebook-dialog .actions button{flex:1}.notebook-dialog button.primary{background:#24543e;color:#fffef8;border-color:#24543e}.notebook-dialog button:active{transform:translateY(1px);box-shadow:inset 0 0 0 2px #24543e}.notebook-dialog button:disabled{opacity:.5;cursor:default}
html:has(.notebook-dialog[open]) #feedbackQuick{display:none!important}
@keyframes notebook-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){html[data-yeyou-daylight] .notebook-dialog{inset:auto 0 calc(env(safe-area-inset-bottom,0px) + 16px);margin:0 12px;width:calc(100% - 24px);max-width:calc(100% - 24px);padding:20px}}
@media(prefers-reduced-motion:reduce){.notebook-dialog[open]{animation:none}}

/* Notebook is a secondary map action; its full content lives in its own sheet. */
html[data-yeyou-daylight] #fusionShell .daylight-notebook{top:calc(var(--yau-ui-top) + 8px)!important;width:auto!important;max-width:calc(100% - 100px);left:max(16px,env(safe-area-inset-left,0px))!important}
html[data-yeyou-daylight] #fusionShell .daylight-notebook :is(.notebook-brand,.notebook-heading,.notebook-intro,.notebook-latest,#notebookWrite){display:none!important}
html[data-yeyou-daylight] #fusionShell .daylight-notebook .notebook-paper{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-yeyou-daylight] #fusionShell .daylight-notebook .notebook-actions{padding:0!important;margin:0!important;border:0!important}
html[data-yeyou-daylight][data-skin=watch] body[data-leaf-fusion] #mapWorkspace #fusionShell #notebookBrowse{background:#fffef8!important;color:#253b31!important;border:1px solid #9aaa97!important;border-radius:14px!important;min-height:44px!important;padding:9px 12px!important;box-shadow:0 2px 7px #253b3114!important}
