/* Shared readable controls and night palette, preserving the existing layout. */
/* Life OS owns both palettes. Keep the document opted out even in the app's dark
   theme: Chrome otherwise darkens light paper inside a dark color-scheme root.
   The saved data-theme still controls all of the app's explicit CSS colors. */
:root{color-scheme:only light!important;forced-color-adjust:none}
button,input,select,textarea{font-size:max(14px,1em)}
input,select,textarea{background-color:var(--white);color:var(--ink)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--royal);outline-offset:3px}
button{touch-action:manipulation}
:root[data-theme=dark] .login{color-scheme:light}
:root[data-theme=dark] .home-connection-group{background:var(--soft-bg)!important;color:var(--ink)}
:root[data-theme=dark] .home-connection-group *{color:inherit}
:root[data-theme=dark] .home-summary-card{background:var(--white)!important;color:var(--ink)}
:root[data-theme=dark] .home-summary-card.attention{border-color:#b18b42}
:root[data-theme=dark] .home-summary-card.highlight{border-color:#527abd}
:root[data-theme=dark] .health-review-row63,:root[data-theme=dark] .health-review-item62{color:var(--ink)}
:root[data-theme=dark] .con-chart-card svg text{fill:var(--muted)}
:root[data-theme=dark] .con-value{fill:var(--ink)}
:root[data-theme=dark] .con-gridline{stroke:var(--line)}
:root[data-theme=dark] .notes-notebook-edit92,:root[data-theme=dark] .notes-note-edit92{background:var(--soft-bg);color:var(--ink)}
.notes-save-status92{font-size:13px;color:var(--muted);font-weight:500}
.notes-save-status92[data-state=error]{color:var(--life-error-ink,#b42336);font-weight:700;max-width:340px}
.notes-save-status92[data-state=saved]{color:var(--muted)}
.notes-workspace-bar94{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:var(--white);border:1px solid var(--line);border-radius:12px}
.notes-bar-spacer94{flex:1}
.notes-workspace-bar94 button{min-height:40px;padding:8px 12px;font-weight:600}
.notes-toolbar92{width:170px;padding:12px;gap:14px;background:var(--white);border-radius:14px;box-shadow:0 8px 30px #0000000a}
.notes-tool92,.notes-size92{min-height:36px;min-width:32px;font-size:14px}
.notes-mode-btn92{min-height:40px;font-size:14px}
.notes-mode-group92{background:var(--soft-bg)}
.notes-swatch92{width:28px;height:28px;border:2px solid transparent;box-shadow:inset 0 0 0 1px #0002}
.notes-swatch92.active{outline:2px solid var(--royal);outline-offset:2px;border-color:var(--white)}
.notes-title-input92{font-size:21px;border-color:transparent;background:transparent}
.notes-page-wrap92{--white:#fff;--ink:#172033;--navy:#0b1f3a;--royal:#2457d6;--line:#cbd5e1;color-scheme:light;background-color:#fff!important;border-radius:6px;border:1px solid #aeb8c7;box-shadow:0 16px 40px #0002}
.notes-text-page92{color:#172033!important;font-family:Calibri,Carlito,sans-serif;font-size:14px;line-height:1.65;padding:32px 38px}
.notes-text-page92 h1{font-size:20px;text-decoration:underline;font-family:Calibri,Carlito,sans-serif;margin:.4em 0 .6em}
.notes-text-page92 h2{font-size:18px;margin:.8em 0 .3em}
.notes-text-page92 .note-checklist92>li::before{background:#fff}
.notes-text-page92 .note-checklist92>li.note-check-done92::before{background:#2457d6}
.notes-text-page92 .notes-cornell94 th,.notes-text-page92 .notes-cornell94 td{background:transparent;color:#172033;border:1px solid #b9c7d9;font-size:16px;white-space:normal;vertical-align:top}
.notes-text-page92 img{max-height:80%;object-fit:contain}
.notes-text-page92 a[href]{color:var(--royal,#2457d6)!important;text-decoration:underline;cursor:pointer;overflow-wrap:anywhere}
.notes-link-dialog150{width:min(480px,94vw)}
.notes-link-btn150{width:36px;min-width:36px!important;padding:6px!important;text-align:center}
.notes-link-dialog150 .field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.notes-link-dialog150 .field input{width:100%;box-sizing:border-box}
.notes-link-error150{color:var(--red,#b91c1c)!important;margin:0 0 12px}
.notes-send-toast152{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:14000;max-width:min(380px,calc(100vw - 32px));padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);box-shadow:0 12px 32px #0713274d;font-size:14px;font-weight:700;line-height:1.35;overflow-wrap:anywhere;pointer-events:none}
.notes-send-toast152[data-kind=success]{border-color:#2d865e;color:#176b46;background:#e9f7ef}
.notes-send-toast152[data-kind=error]{border-color:#b42336;color:#9f1c2f;background:#fff1f2}
:root[data-theme=dark] .notes-send-toast152[data-kind=success]{background:#123424;color:#a5ebc2}
:root[data-theme=dark] .notes-send-toast152[data-kind=error]{background:#3b1721;color:#ffb5c2}
.notes-ink-preview94{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.notes-stickies94{position:absolute;inset:0;pointer-events:none;z-index:4}
.notes-sticky94{position:absolute;pointer-events:auto;min-width:110px;border-radius:4px;box-shadow:2px 6px 16px #0002;color:#172033;padding:5px;min-height:105px}
.notes-sticky-head94{display:flex;align-items:center;gap:1px;opacity:.75}
.notes-sticky-head94 button{min-width:20px;min-height:25px;padding:1px;border:0;background:transparent;color:#172033;font-size:14px;cursor:pointer}
.notes-sticky-head94 .notes-sticky-grip94{flex:1;text-align:left;touch-action:none;cursor:grab;font-size:22px}
.notes-sticky94 textarea{display:block;background:transparent!important;border:0;outline-offset:0;width:100%;min-height:90px;height:100%;padding:7px;color:#172033!important;font:16px/1.45 Arial,sans-serif;resize:vertical;box-shadow:none}
.notes-sticky94 textarea::placeholder{color:#5c5a42}
[data-paper=lined]{background-image:repeating-linear-gradient(transparent 0 31px,#d9e1ed 31px 32px)}
[data-paper=grid]{background-image:linear-gradient(#e0e7ef 1px,transparent 1px),linear-gradient(90deg,#e0e7ef 1px,transparent 1px);background-size:24px 24px}
[data-paper=dots]{background-image:radial-gradient(#cbd5e1 1px,transparent 1px);background-size:24px 24px}
.notes-dialog94{width:min(720px,94vw);max-height:86vh;padding:0;border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--ink);box-shadow:0 24px 90px #0006}
.notes-dialog94::backdrop{background:#071327aa;backdrop-filter:blur(3px)}
.notes-dialog-head94{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line)}
.notes-dialog-head94 h2{font-size:21px;margin:0}
.notes-dialog-body94{padding:18px 22px}
.notes-dialog-body94>p{margin:0 0 18px;color:var(--muted);line-height:1.5}
.notes-templates94{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.notes-template94{padding:0;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--soft-bg);color:var(--ink);cursor:pointer;text-align:left}
.notes-template94:hover{border-color:var(--royal);box-shadow:0 0 0 2px var(--royal)}
.notes-template94>span{display:grid;place-items:center;height:90px;font-size:30px;background-color:#fff;color:#172033}
.notes-template94>b{display:block;font-size:14px;padding:10px}
.notes-grid92{grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:16px}
.notes-page-card92{min-height:112px;gap:9px}
.notes-page-card92 small,.notes-notebook-card92 small{font-size:13px}
.view.notes-editing94{position:fixed;inset:0;z-index:10000;margin:0;max-width:none;padding:12px 16px;background:var(--bg);overflow:auto}
.notes-editing94 .head{flex-wrap:nowrap;min-height:42px}
.notes-editing94 .notes-title-row92{min-width:0;flex:1}
.notes-editing94 .notes-title-input92{flex:1;width:100px;min-width:60px}
.notes-editing94 .notes-mode-group92,.notes-editing94 .notes-header-actions92{flex-shrink:0;flex-wrap:nowrap;width:auto}
.notes-editing94 .notes-back-btn92{width:auto;white-space:nowrap;margin:0}
.notes-editing94 .notes-editor92{margin-top:10px;gap:10px}
.notes-editing94 .notes-toolbar92{max-height:calc(100dvh - 145px);overflow:auto}
.notes-editing94 .notes-page-wrap92{max-width:1200px;max-height:none;min-width:0}
.notes-save-area94{width:230px;flex:0 0 230px;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:40px}
.notes-save-area94 .notes-save-status92{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notes-save-area94 .notes-save-status92[data-state=error]{cursor:help}
.notes-save-area94 button{white-space:nowrap;padding:6px 9px}
.notes-save-area94 [hidden]{display:none}
@media(max-width:1024px){.notes-editing94 .notes-toolbar92{max-height:170px}.notes-editing94 .notes-header-actions92{gap:4px}.notes-editing94 .notes-header-actions92 button{font-size:13px;padding:7px}.notes-save-area94{width:210px;flex-basis:210px}}
@media(max-width:700px){.view.notes-editing94{padding:8px}.notes-editing94 .head{flex-wrap:wrap;gap:6px}.notes-editing94 .notes-title-row92{width:100%;flex-basis:100%}.notes-editing94 .notes-header-actions92{width:auto;margin-left:auto}.notes-editing94 .notes-toolbar92{max-height:140px}.notes-save-area94{width:100%;flex-basis:100%;min-height:26px;justify-content:flex-start}.notes-editing94 .notes-workspace-bar94{padding:6px 8px}}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]) .home-connection-group{background:var(--soft-bg)!important;color:var(--ink)}:root:not([data-theme=light]) .home-connection-group *{color:inherit}:root:not([data-theme=light]) .home-summary-card{background:var(--white)!important}:root:not([data-theme=light]) .notes-notebook-edit92,:root:not([data-theme=light]) .notes-note-edit92{background:var(--soft-bg);color:var(--ink)}}
@media(max-width:1024px){.notes-editor-row92{flex-direction:column;align-items:stretch}.notes-toolbar92{width:100%;flex-direction:row;flex-wrap:wrap;gap:10px}.notes-page-rail-wrap92{flex-direction:column;align-items:stretch}.notes-right-rail92{width:100%;flex-direction:row;justify-content:center}.notes-back-btn92{width:auto}.notes-toolbar92 .notes-tool-group92{gap:4px}.notes-text-page92{padding:24px}}
@media(max-width:600px){.notes-templates94{grid-template-columns:repeat(2,1fr)}.notes-bar-spacer94{display:none}.notes-workspace-bar94{gap:5px}.notes-workspace-bar94 button{padding:6px 8px}.notes-title-input92{font-size:18px}.notes-text-page92{padding:14px;font-size:16px}.notes-sticky-head94 button{min-width:18px}.notes-grid92{grid-template-columns:repeat(2,minmax(0,1fr))}}

:root[data-theme=dark]{--life-error-ink:#ff9aa6}
@media(max-width:700px){.notes-editing94 .notes-title-row92{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:6px}.notes-editing94 .notes-title-input92{width:100%}.notes-editing94 .notes-mode-group92{grid-column:2/4;justify-self:end}}

.notes-editing94 .notes-right-rail92:empty{display:none}


.notes-tip-canvas96{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.notes-pen-style96{display:grid;gap:6px;font-size:13px;font-weight:650;width:100%;max-width:220px}
.notes-pen-style96 select{width:100%;min-height:38px;border:1px solid var(--line);border-radius:8px;padding:7px;color:var(--ink);background:var(--white)}
.notes-pen-style96 small{color:var(--muted);font-size:11px;line-height:1.4;font-weight:400}
.notes-finger-toggle92{font-size:12px;line-height:1.35}
@media(max-width:1024px){.notes-pen-style96{width:150px}.notes-pen-style96 small{display:none}}

/* Each related tool group stays intact, including on smaller tablets. */
.notes-toolbar92{width:218px;padding:10px}
.notes-toolbar92 .notes-tool-group92{flex-wrap:nowrap;gap:5px;max-width:100%;flex-shrink:0}
.notes-toolbar92 .notes-tool92,.notes-toolbar92 .notes-size92{flex-shrink:0;white-space:nowrap}
.notes-toolbar92 .notes-color-group97{overflow-x:auto;padding:4px 3px 8px;scrollbar-width:thin;align-self:stretch}
.notes-color-group97 .notes-swatch92{flex:0 0 28px}
.notes-size-row97 .notes-size92{flex:1}
.notes-erasers97 .notes-tool92{flex:1;display:flex;align-items:center;justify-content:center;gap:5px;padding:7px 6px;font-size:13px}
.notes-erasers97 svg{flex-shrink:0}
.notes-sticky-tools97,.notes-history-tools97{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;flex-shrink:0}
.notes-sticky-tools97 .notes-finger-toggle92{width:auto;margin:0 0 0 4px;order:0;max-width:170px;white-space:normal;line-height:1.3}
.notes-sticky-tools97 input{flex-shrink:0;width:16px;height:16px}
@media(max-width:1024px){.notes-toolbar92{width:100%}.notes-toolbar92 .notes-tool-group92{width:auto}.notes-toolbar92 .notes-color-group97{flex-basis:auto;max-width:100%}.notes-size-row97{min-width:150px}.notes-erasers97{min-width:188px}.notes-sticky-tools97{gap:6px}}
@media(max-width:600px){.notes-editing94 .notes-workspace-bar94{display:flex;gap:6px;flex-wrap:wrap}.notes-workspace-bar94>.notes-tool92{min-height:36px}.notes-sticky-tools97{max-width:100%}.notes-sticky-tools97 .notes-finger-toggle92{max-width:145px}.notes-history-tools97{gap:5px}.notes-editing94 .notes-save-area94{width:auto;flex:1;min-width:130px;justify-content:flex-end;min-height:36px}.notes-templates94{grid-template-columns:repeat(2,minmax(0,1fr))}}

.notes-text-highlights98 .notes-tool92,.notes-draw-highlights99 .notes-tool92{flex:1;min-width:38px;min-height:38px;display:flex;align-items:center;justify-content:center;padding:7px;background:var(--note-highlight98);color:#172033;border-color:#17203333}
.notes-text-highlights98 .notes-tool92:hover,.notes-draw-highlights99 .notes-tool92:hover,.notes-draw-highlights99 .notes-tool92.active{outline:2px solid var(--royal);outline-offset:1px}
@media(max-width:1024px){.notes-toolbar92 .notes-text-highlights98,.notes-toolbar92 .notes-draw-highlights99{min-width:172px}}

/* The paper is a fixed-color drawing surface, independent of browser contrast palettes. */
.notes-page-wrap92,.notes-page-wrap92 *{color-scheme:only light!important;forced-color-adjust:none!important}
.notes-page-wrap92{background-color:#fff!important}
.notes-page-wrap92 canvas,.notes-text-page92{background-color:transparent!important}
.notes-pan102{cursor:grab}
.notes-pan102:active{cursor:grabbing}
.notes-scroll-toggle102[aria-pressed=true]{background:var(--royal);color:var(--white);border-color:var(--royal)}
.notes-scroll-toggle102[hidden]{display:none!important}
.notes-bar-tools102{display:flex;align-items:center;gap:8px;flex:1;min-width:0;flex-wrap:wrap}
.notes-actions-toggle102{display:none}
.notes-actions-panel102{display:flex;align-items:center;gap:8px}
@media(max-width:1100px),(pointer:coarse){
 .notes-editing94 .head{flex-wrap:nowrap;gap:6px}
 .notes-editing94 .notes-title-row92{display:flex;align-items:center;flex:1;width:auto;gap:6px}
 .notes-editing94 .notes-title-input92{font-size:18px;min-width:30px;width:60px}
 .notes-editing94 .notes-header-actions92{position:relative;margin-left:0}
 .notes-editing94 .notes-actions-toggle102{display:block;min-width:40px;min-height:40px;font-size:24px;line-height:1;padding:4px}
 .notes-actions-panel102{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:205px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 8px 24px #0003;align-items:stretch;flex-direction:column}
 .notes-actions-open102 .notes-actions-panel102{display:flex}
 .notes-editing94 .notes-workspace-bar94{flex-wrap:nowrap;gap:6px;padding:6px 8px;min-width:0}
 .notes-editing94 .notes-workspace-bar94 button{min-height:38px;padding:7px 9px}
 .notes-bar-tools102{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;gap:6px}
 .notes-bar-tools102>button,.notes-bar-tools102>.notes-sticky-tools97{flex-shrink:0;white-space:nowrap}
 .notes-editing94 .notes-save-area94{flex:0 0 145px;width:145px;min-width:0;min-height:38px}
 .notes-editor-row92{flex-direction:column;align-items:stretch}
 .notes-page-rail-wrap92{flex-direction:column;align-items:stretch}
 .notes-editing94 .notes-toolbar92{width:100%;min-height:56px;max-height:none;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:10px;padding:8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
 .notes-toolbar92 .notes-tool-group92{width:auto;flex:0 0 auto;max-width:none;margin:0;gap:5px}
 .notes-toolbar92 .notes-color-group97{flex:0 0 auto;align-self:auto;max-width:none;padding:3px;overflow:visible}
 .notes-toolbar92 .notes-pen-style96{flex:0 0 140px;display:block;width:140px;font-size:0}
 .notes-toolbar92 .notes-pen-style96 select{font-size:14px}
 .notes-toolbar92 .notes-pen-style96 small{display:none}
 .notes-toolbar92 .notes-text-highlights98,.notes-toolbar92 .notes-draw-highlights99{min-width:172px}
 .notes-toolbar92 .notes-type-tools92>.notes-tool-group92{flex-shrink:0}
 .notes-page-nav92{padding-bottom:8px}
}
@media(max-width:520px){
 .notes-editing94 .notes-title-row92{flex-wrap:wrap}
 .notes-editing94 .notes-mode-group92{margin-left:auto}
 .notes-editing94 .notes-save-area94{flex-basis:88px;width:88px}
 .notes-editing94 .notes-save-area94 .notes-save-status92{font-size:11px}
 .notes-history-tools97{gap:3px}
}

/* A stable page viewport: controls stay reachable while the paper zooms and pans. */
.view.notes-editing94{display:flex;flex-direction:column;height:100dvh;overflow:hidden}
.notes-editing94>.head{flex:0 0 auto;margin-bottom:0}
.notes-editing94 .notes-editor92{flex:1;min-height:0;overflow:hidden}
.notes-editing94 .notes-workspace-bar94{flex-shrink:0}
.notes-editing94 .notes-editor-row92{flex:1;min-height:0;overflow:hidden}
.notes-editing94 .notes-page-rail-wrap92{min-width:0;min-height:0;align-self:stretch}
.notes-editing94 .notes-page-area92{display:flex;flex-direction:column;align-items:stretch;flex:1;width:100%;min-width:0;min-height:0;overflow:hidden}
.notes-page-stage103{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;touch-action:none;overscroll-behavior:contain}
.notes-editing94 .notes-page-stage103 .notes-page-wrap92{position:absolute;left:0;top:0;margin:0;max-width:none;transform-origin:0 0;will-change:transform}
.notes-editing94 .notes-page-nav92{flex:0 0 auto;min-height:44px;margin:0;padding:5px 0;gap:8px;flex-wrap:nowrap;justify-content:center}
.notes-zoom-controls103{display:flex;align-items:center;gap:4px;margin-left:14px}
.notes-zoom-value103{min-width:42px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
.notes-selection-tools103{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;grid-column:1/-1;width:100%}
.notes-selection-tools103[hidden]{display:none}
.notes-selection-overlay103{position:absolute;inset:0;width:100%;height:100%;z-index:9;pointer-events:none;overflow:visible}
.notes-lasso103{cursor:crosshair}
[aria-label="Freehand selection"][aria-pressed=true]{background:var(--royal);color:#fff;border-color:var(--royal)}
@media(max-width:1100px),(pointer:coarse){
 .notes-editing94 .notes-toolbar92{flex:0 0 auto;min-height:56px}
 .notes-editing94 .notes-page-rail-wrap92{flex:1;width:100%}
 .notes-editing94 .notes-editor-row92{gap:8px}
}
@media(max-width:520px){.notes-zoom-controls103{gap:3px;margin-left:3px}.notes-editing94 .notes-page-nav92{gap:4px}.notes-page-nav92 .notes-tool92{min-width:30px;padding:6px}.notes-page-label92{font-size:11px}}

[aria-label="Freehand selection"][hidden]{display:none!important}
.notes-editing94 .notes-page-stage103 .notes-page-wrap92{border:0;box-shadow:inset 0 0 0 1px #94a3b844}
.notes-editing94 .notes-page-rail-wrap92{align-items:stretch}

/* Text is a scrolling document, with no canvas gestures or clipped inner text box. */
.notes-mode-group92[hidden],.notes-zoom-controls103[hidden],.notes-finger-toggle92[hidden]{display:none!important}
.notes-page-type104{flex-shrink:0;font-size:12px;white-space:nowrap;color:var(--muted);padding:5px 7px;border-radius:6px;background:var(--soft-bg)}
.notes-text-flow104 .notes-page-stage103{overflow:auto;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.notes-editing94.notes-text-flow104 .notes-page-stage103 .notes-page-wrap92{position:relative;left:auto;top:auto;width:100%!important;height:auto!important;min-height:100%;max-height:none;aspect-ratio:auto;margin:0;will-change:auto;overflow:visible}
.notes-text-flow104 .notes-text-page92{position:relative;inset:auto;display:block;width:100%;height:auto;min-height:100%;padding:22px 28px;overflow:visible;touch-action:pan-y pinch-zoom}
.notes-text-flow104 .notes-canvas92,.notes-text-flow104 .notes-ink-preview94,.notes-text-flow104 .notes-tip-canvas96,.notes-text-flow104 .notes-canvas-bg92,.notes-text-flow104 .notes-selection-overlay103{display:none!important}
.notes-text-flow104 .notes-text-page92>:first-child{margin-top:0}
.notes-editing94 .notes-header-actions92{display:flex;position:relative;align-items:center;gap:6px}
.notes-editing94 .notes-actions-toggle102{display:block;min-width:38px;min-height:38px;font-size:24px;line-height:1;padding:4px}
.notes-editing94 .notes-actions-panel102{display:none;position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:330px;max-width:90vw;max-height:70dvh;overflow:auto;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 8px 24px #0003;align-items:stretch;flex-direction:column}
.notes-editing94 .notes-actions-open102 .notes-actions-panel102{display:flex}
.notes-editing94 .notes-actions-panel102>.notes-sticky-tools97{flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:8px}
.notes-editing94 .notes-header-actions92>.notes-save-area94{flex:0 0 106px;width:106px;min-width:0;min-height:38px}
.notes-editing94 .notes-header-actions92>.notes-save-area94 small{font-size:11px}
.notes-editing94 .notes-header-actions92 .notes-history-tools97{gap:3px}
.notes-editing94 .notes-header-actions92 .notes-history-tools97 button{padding:6px 8px;min-width:32px;min-height:36px}
.notes-editing94 .notes-editor92{margin-top:8px}
.notes-drawing-nav104{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
.notes-drawing-nav104>button{width:100%;min-width:0;white-space:nowrap}
@media(max-width:1100px),(pointer:coarse){
 .view.notes-editing94{padding:8px}
 .notes-editing94 .notes-title-input92{font-size:16px}
 .notes-editing94 .notes-page-type104{font-size:11px}
 .notes-editing94 .notes-header-actions92>.notes-save-area94{flex-basis:88px;width:88px}
 .notes-drawing-nav104{flex:0 0 auto}
 .notes-text-flow104 .notes-text-page92{padding:18px 20px}
 .notes-editing94 .notes-toolbar92{min-height:48px;padding:5px 6px}
}
@media(max-width:520px){
 .notes-editing94 .head{flex-wrap:wrap}
 .notes-editing94 .notes-title-row92{flex-basis:100%}
 .notes-editing94 .notes-header-actions92{margin-left:auto}
 .notes-editing94 .notes-header-actions92>.notes-save-area94{flex-basis:106px;width:106px}
 .notes-text-flow104 .notes-text-page92{padding:16px}
}

.notes-text-flow104 .notes-text-page92{min-height:var(--notes-text-min-height104,100%)}

/* One bounded, width-fitted sheet shared by Type and Draw. Text layout uses stable
   paper coordinates so switching tools or rotating a device cannot move the ink. */
.notes-page-type104[hidden]{display:none!important}
.notes-editing94.notes-text-flow104 .notes-page-stage103 .notes-page-wrap92{height:var(--note-paper-height105)!important;min-height:0;aspect-ratio:var(--note-ratio);overflow:hidden}
.notes-editing94 .notes-page-stage103 .notes-page-wrap92{max-height:none;min-width:0;border-radius:4px}
.notes-editing94 .notes-text-page92,.notes-measure105{position:absolute!important;inset:0 auto auto 0!important;box-sizing:border-box;width:800px!important;height:var(--note-text-height105)!important;min-height:0!important;padding:18px 20px!important;overflow:hidden!important;font-family:Calibri,Carlito,sans-serif;font-size:14px;line-height:1.65;color:#111827;transform-origin:0 0;}
.notes-editing94 .notes-text-page92>:first-child,.notes-measure105>:first-child{margin-top:0}
.notes-editing94 .notes-text-page92 img,.notes-measure105 img{max-width:100%;max-height:calc(var(--note-text-height105) - 48px);object-fit:contain}
.notes-text-flow104 .notes-canvas92,.notes-text-flow104 .notes-canvas-bg92{display:block!important}
.notes-text-flow104 .notes-canvas92{pointer-events:none!important}
.notes-measure105{height:auto!important;min-height:0!important;overflow:visible!important}

.notes-index-bar106{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:18px;color:var(--muted)}
.notes-handwriting-status106{display:block;max-width:260px;white-space:normal;padding:6px;line-height:1.4}

/* Fill the usable screen after iPad keyboard and browser zoom transitions. */
.view.notes-editing94{height:100dvh;bottom:auto;box-sizing:border-box;padding-bottom:max(4px,env(safe-area-inset-bottom))}
.notes-editing94 .notes-page-area92{gap:0}
.notes-editing94 .notes-page-nav92{padding:2px 0;min-height:40px}
.notes-outline-panel92{width:340px;max-width:90vw;color:var(--ink);padding-bottom:env(safe-area-inset-bottom)}
.notes-find-input109{margin:12px 12px 6px;width:calc(100% - 24px);min-height:42px;border:1px solid var(--line);border-radius:8px;padding:9px 11px;font-size:16px;flex-shrink:0}
.notes-find-summary109{padding:4px 14px 8px;color:var(--muted);font-size:12px}
.notes-outline-list92{min-height:0}
.notes-find-result109{display:flex;flex-direction:column;gap:6px;width:100%;padding:12px 10px;margin-bottom:6px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer;font-size:14px;line-height:1.45}
.notes-find-result109 small{color:var(--muted);font-size:11px}
.notes-find-result109:hover{background:var(--soft-bg)}
.notes-find-result109 mark{background:#ffe97b;color:#172033;border-radius:2px}

.notes-outline-panel92{height:100dvh;bottom:auto;box-sizing:border-box}

.notes-probable110{color:var(--muted);font-size:12px;margin-top:4px}

/* Keep paper and text colors stable even when browser darkening detection is
   unavailable or applied after page load. Saved note HTML remains untouched. */
:root .notes-page-wrap92{background-image:var(--note-pattern111,none),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1400'%3E%3Cpath fill='white' d='M0 0h1000v1400H0z'/%3E%3C/svg%3E")!important;background-size:auto,auto}
:root .notes-page-wrap92[data-paper=lined]{--note-pattern111:repeating-linear-gradient(transparent 0 31px,#d9e1ed 31px 32px)}
:root .notes-page-wrap92[data-paper=grid]{--note-pattern111:linear-gradient(#e0e7ef 1px,transparent 1px),linear-gradient(90deg,#e0e7ef 1px,transparent 1px);background-size:24px 24px,24px 24px,auto}
:root .notes-page-wrap92[data-paper=dots]{--note-pattern111:radial-gradient(#cbd5e1 1px,transparent 1px);background-size:24px 24px,auto}
:root .notes-text-page92,:root .notes-text-page92 *{-webkit-text-fill-color:currentColor!important;text-shadow:none!important}

/* Text uses layout zoom so native scrolling ends at the visible page boundary.
   Draw keeps its existing transform viewport and stylus event path. */
.notes-editing94.notes-text-flow104 .notes-page-stage103 .notes-page-wrap92{width:var(--note-base-width113)!important;zoom:var(--note-display-zoom113,1);margin:var(--note-page-top113,0px) auto var(--note-page-bottom113,0px)}
.notes-editing94.notes-desktop-page113 .notes-page-stage103{background:var(--bg);border-radius:10px}
.notes-editing94.notes-desktop-page113 .notes-page-stage103 .notes-page-wrap92{border-radius:2px;box-shadow:0 0 0 1px #94a3b880,0 5px 20px #0003}

/* Leave room for status bars, camera cutouts and the home indicator in full screen. */
:root{--note-safe-top114:env(safe-area-inset-top,0px);--note-safe-right114:env(safe-area-inset-right,0px);--note-safe-bottom114:env(safe-area-inset-bottom,0px);--note-safe-left114:env(safe-area-inset-left,0px);--note-editor-pad114:16px}
@media(max-width:1100px),(pointer:coarse){:root{--note-editor-pad114:8px}}
.view.notes-editing94{padding-top:calc(var(--note-editor-pad114) + var(--note-safe-top114));padding-left:calc(var(--note-editor-pad114) + var(--note-safe-left114));padding-right:calc(var(--note-editor-pad114) + var(--note-safe-right114));padding-bottom:calc(4px + var(--note-safe-bottom114))}
.notes-outline-panel92{padding-top:var(--note-safe-top114);padding-left:var(--note-safe-left114);padding-bottom:var(--note-safe-bottom114)}
.notes-editing94.notes-text-flow104 .notes-page-stage103 .notes-page-wrap92{margin-left:var(--note-page-side114,auto);margin-right:var(--note-page-side114,auto)}
/* An overlay edge stays visible above the paper, text and ink without changing page coordinates. */
.notes-editing94 .notes-page-stage103 .notes-page-wrap92::after{content:'';position:absolute;inset:0;z-index:12;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 0 1px #94a3b8}
.notes-zoom-label114{display:flex;align-items:center;gap:1px;border:1px solid var(--line);border-radius:7px;background:var(--white);padding-right:6px;color:var(--ink);font-size:12px}
.notes-zoom-label114:focus-within{outline:2px solid var(--royal);outline-offset:1px}
.notes-zoom-label114 .notes-zoom-value103{box-sizing:border-box;width:47px;min-width:0;height:34px;padding:4px 0 4px 5px;border:0;outline:0;background:transparent;color:var(--ink);border-radius:7px;font-size:16px}

/* Keep the theme control alongside Type / Draw as one non-wrapping group. */
.notes-mode-controls117{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto}
.notes-editing94 .notes-theme-toggle117{width:38px;height:38px;min-width:38px;min-height:38px;padding:4px;font-size:18px;line-height:1;flex-shrink:0}
@media(max-width:700px){.notes-mode-controls117{grid-column:2/4;justify-self:end}}

/* Mixed selection is distinct from an enabled formatting toggle. */
.notes-toolbar92 .notes-format-mixed118{border-style:dashed;border-color:var(--royal);box-shadow:inset 0 -3px 0 var(--royal)}
.notes-text-highlights98 .notes-tool92[aria-pressed=true]{outline:2px solid var(--royal);outline-offset:1px}
.notes-color-group97[data-mixed=true],.notes-text-highlights98[data-mixed=true]{outline:1px dashed var(--royal);outline-offset:2px}

/* Compact, named colors: the full curated palette opens only when requested. */
.notes-color-picker120{position:relative;flex:0 0 auto}
.notes-color-toggle120{list-style:none;display:flex;align-items:center;gap:7px;min-width:116px;min-height:38px;padding:6px 9px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font-weight:700;cursor:pointer;user-select:none}
.notes-color-toggle120::-webkit-details-marker{display:none}
.notes-color-dot120{width:20px;height:20px;flex:0 0 20px;border:1px solid #64748b;border-radius:50%;box-shadow:inset 0 0 0 1px #fff8}
.notes-color-name120{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notes-color-chevron120{margin-left:auto;color:var(--muted);transition:transform .15s}
.notes-color-picker120[open] .notes-color-chevron120{transform:rotate(180deg)}
.notes-color-panel120{position:fixed;z-index:14000;display:grid;grid-template-columns:repeat(6,32px);justify-content:center;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--white);box-shadow:0 14px 42px #0005}
.notes-color-picker120:not([open])>.notes-color-panel120{display:none}
.notes-color-panel120 .notes-swatch92{width:30px;height:30px;margin:0}
.notes-color-picker120[data-mixed=true] .notes-color-toggle120{outline:1px dashed var(--royal);outline-offset:2px}

.notes-folder-crumbs120{display:flex;align-items:center;gap:7px;overflow-x:auto;margin:4px 0 12px;color:var(--muted);white-space:nowrap}
.notes-folder-crumbs120 button{border:0;background:transparent;color:var(--royal);padding:3px 2px;font-weight:700;cursor:pointer}
.notes-folder-crumbs120 button:disabled{color:var(--ink);cursor:default;opacity:1}
.notes-folder-section-title120{margin:18px 0 10px;font-size:16px;color:var(--ink)}
.notes-folder-section-title120:first-child{margin-top:0}
.notes-subfolder-grid120{margin-bottom:18px}
.notes-folder-preview120{display:grid;gap:10px;margin-top:10px;border-left:2px solid var(--line)}
.notes-folder-preview120:first-child{margin-top:0;padding-left:0;border-left:0}
.notes-folder-preview-head120{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;min-height:46px;padding:5px 7px;border:1px solid var(--line);border-radius:10px;background:var(--soft-bg)}
.notes-folder-preview-toggle120{display:flex;align-items:center;gap:8px;min-width:0;min-height:36px;padding:4px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.notes-folder-preview-toggle120:hover>b,.notes-folder-preview-toggle120:focus-visible>b{color:var(--royal)}
.notes-folder-preview-toggle120:focus-visible{outline:2px solid var(--royal);outline-offset:2px;border-radius:7px}
.notes-folder-preview-toggle120>b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notes-folder-preview-toggle120>small{color:var(--muted);margin-left:auto;white-space:nowrap}
.notes-folder-caret120{width:14px;flex:0 0 14px;color:var(--royal);font-size:15px;font-weight:900;text-align:center}
.notes-folder-emoji120{font-size:18px}
.notes-folder-more120{min-width:36px;min-height:36px;padding:5px 8px}
.notes-folder-preview-body120{display:grid;gap:10px;padding:2px 0 2px 10px}
.notes-folder-preview-actions120{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-start}
.notes-folder-preview-actions120>.btn{min-height:34px;padding:6px 9px;white-space:nowrap}
@media(max-width:600px){.notes-folder-preview120{padding-left:8px!important}.notes-folder-preview-toggle120{flex-wrap:wrap}.notes-folder-preview-toggle120>small{width:100%;margin-left:40px}.notes-folder-preview-actions120{width:100%}.notes-folder-preview-actions120>.btn{font-size:12px}}

/* Type and Draw share one permanent layer stack. Keeping the canvases mounted and
   leaving ink above text prevents Chrome from rebuilding and re-rasterizing the text
   layer whenever the active tool changes. Pointer events alone select the active tool. */
.notes-editing94.notes-text-flow104 .notes-page-stage103 .notes-page-wrap92{position:absolute;left:0;top:0;width:var(--note-base-width113)!important;height:var(--note-paper-height105)!important;min-height:0;margin:0!important;zoom:1!important;overflow:hidden;will-change:auto}
.notes-editing94 .notes-text-page92{z-index:1!important;backface-visibility:hidden;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}
.notes-editing94 .notes-canvas92{display:block!important;z-index:2!important;backface-visibility:hidden}
.notes-editing94 .notes-canvas-bg92{display:block!important;z-index:0!important;backface-visibility:hidden}
.notes-editing94 .notes-ink-preview94,.notes-editing94 .notes-tip-canvas96{display:block!important;pointer-events:none!important}
.notes-editing94 .notes-selection-overlay103{display:block!important}
/* A scrollable ancestor is composited differently from an overflow-hidden one in
   Chrome. Keep the page stage scroll layer identical in Type and Draw; drawing
   gestures are still controlled by the existing pointer handlers. */
.notes-editing94 .notes-page-stage103{overflow:auto!important}
@media(max-width:520px){.notes-color-toggle120{min-width:102px}.notes-color-panel120{grid-template-columns:repeat(6,30px);gap:5px;padding:9px}.notes-color-panel120 .notes-swatch92{width:28px;height:28px}}

/* Home is a concise daily review rather than a collection of section dashboards. */
.home-today-head120{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:14px 0 16px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--white);box-shadow:0 5px 18px #0b1f3a0a}
.home-today-head120 h2{margin:0;color:var(--ink);font-size:24px}
.home-today-head120 p{margin:5px 0 0;color:var(--muted)}
.home-today-count120{display:flex;align-items:baseline;gap:7px;flex:0 0 auto;padding:9px 13px;border-radius:999px;background:var(--soft-bg);color:var(--ink)}
.home-today-count120 b{font-size:22px;color:var(--royal)}
.home-today-count120 span{font-size:12px;font-weight:700}
.home-badge-actions120{display:grid;justify-items:end;gap:6px;flex:0 0 auto}
.home-enable-badge120{border:0;background:transparent;color:var(--royal);padding:2px;font-size:11px;font-weight:800;cursor:pointer}
.home-enable-badge120:disabled{color:var(--muted);cursor:default}
.home-review-grid120{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-review-card120{padding:0;overflow:hidden;min-width:0}
.home-review-head120{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;width:100%;padding:14px 15px;border:0;border-bottom:1px solid var(--line);background:var(--white);color:var(--ink);text-align:left;cursor:pointer}
.home-review-head120:hover{background:var(--soft-bg)}
.home-review-head120 b,.home-review-head120 small{display:block}
.home-review-head120 b{font-size:16px}.home-review-head120 small{margin-top:2px;color:var(--muted);font-size:11px}
.home-review-icon120{font-size:22px}.home-review-arrow120{color:var(--royal);font-size:12px;font-weight:800}
.home-review-list120{display:grid;padding:7px 12px 11px;background:var(--white)}
.home-review-line121{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;border-bottom:1px solid var(--line)}
.home-review-item120{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;padding:9px 3px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.home-review-item120:hover{color:var(--royal)}
.home-review-item120>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}
.home-review-item120 small{flex:0 0 auto;color:var(--muted);font-size:10px}
.home-review-done121{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);border-radius:50%;background:var(--white);color:var(--royal);font-size:16px;font-weight:900;cursor:pointer}
.home-review-done121:hover{border-color:var(--royal);background:var(--soft-bg)}
.home-review-done121.saving{opacity:.55;cursor:wait}
.home-review-empty120{margin:0;padding:17px 3px;color:var(--muted);font-size:12px}
.home-review-more120{justify-self:start;margin-top:8px;padding:4px 3px;border:0;background:transparent;color:var(--royal);font-weight:800;cursor:pointer}
.home-review-all-clear122{display:grid;gap:5px;padding:22px;color:var(--ink)}
.home-review-all-clear122 span{color:var(--muted);font-size:13px}
@media(max-width:980px){.home-review-grid120{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.home-today-head120{align-items:flex-start;padding:14px}.home-today-count120{padding:7px 10px}.home-today-count120 span{max-width:42px;line-height:1.1}.home-review-grid120{grid-template-columns:1fr}.home-review-head120{padding:12px 13px}.home-review-list120{padding-bottom:9px}.home-enable-badge120{max-width:92px;text-align:right}}

/* v131: separate, touch-friendly folder and notebook controls. */
.notes-notebook-card92 .notes-folder-open131,
.notes-page-card92 .notes-folder-open131 {
 display:flex;flex-direction:column;align-items:flex-start;gap:6px;
 width:100%;min-width:0;flex:1;padding:0;border:0;border-radius:10px;
 background:transparent;color:inherit;font:inherit;cursor:pointer;text-align:left;
}
.notes-folder-open131 b {overflow-wrap:anywhere}
.notes-folder-open131 small {color:var(--muted)}
.notes-folder-open131:focus-visible {outline:2px solid var(--primary,#72a7ff);outline-offset:2px}
.notes-notebook-card92 .notes-notebook-edit92,
.notes-page-card92 .notes-note-edit92 {border:0;font:inherit;font-size:22px;min-width:36px;min-height:36px;color:inherit;cursor:pointer;background:transparent}
.notes-folder-order131 {display:flex;gap:3px;flex-shrink:0}
.notes-notebook-card92 > .notes-folder-order131 {position:absolute;top:8px;right:42px}
.notes-folder-order131 .btn {width:28px;min-width:28px;height:28px;min-height:28px;padding:0;font-size:17px;line-height:1;border:0}
.notes-notebook-card92 .notes-notebook-edit92 {width:28px;min-width:28px;height:28px;min-height:28px}
.notes-folder-order131 .btn:disabled {opacity:.28;cursor:default}
.notes-folder-preview-head120 .notes-folder-order131 {margin-top:0}
.notes-archive131 > .notes-folder-preview-head120 {border-style:dashed}
.notes-menu92 {max-width:calc(100vw - 24px)}
.notes-menu92 .btn {white-space:normal;text-align:left}
