.note-studio{display:grid;gap:16px;min-width:0}.note-studio-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--mc-glass-border);border-radius:16px;background:var(--mc-glass-subtle)}.note-studio-tabs button{flex:1;min-height:44px;border:0;border-radius:12px;background:transparent;color:var(--mc-ink-secondary);font:inherit;font-weight:750}.note-studio-tabs button[aria-pressed="true"]{color:var(--mc-ink);background:var(--mc-glass-prominent,var(--mc-surface));box-shadow:var(--mc-shadow-subtle)}
.note-format,.note-board-tools{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-bottom:10px}.note-format label,.note-board-tools label{display:grid;gap:5px;color:var(--mc-ink-secondary);font-size:.75rem;font-weight:650}.note-format select,.note-board-tools select{min-height:42px;max-width:150px;padding:8px;border:1px solid var(--mc-line);border-radius:10px;background:var(--mc-surface);color:var(--mc-ink);font:inherit;font-size:.85rem}.note-format button,.note-board-tools button{min-width:42px;min-height:42px;padding:8px 12px;border:1px solid var(--mc-line);border-radius:10px;background:var(--mc-glass-standard);color:var(--mc-ink);font:inherit;font-size:.85rem}.note-format button[aria-pressed="true"]{border-color:var(--mc-blue);box-shadow:inset 0 0 0 1px var(--mc-blue)}.note-studio button:focus-visible,.note-studio select:focus-visible,.note-paper:focus-visible{outline:3px solid var(--mc-blue);outline-offset:3px}.note-studio button:disabled{opacity:.5;cursor:default}
.note-paper{min-height:390px;padding:clamp(20px,4vw,42px);border:1px solid #d8d9d3;border-radius:14px;color:#172644;background:#fffef8;box-shadow:0 8px 24px rgba(0,0,0,.08);font:18px/1.75 Arial,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;caret-color:#1646b8}.note-paper:empty:before{content:'Start with an idea…';color:#65708a;pointer-events:none}.note-paper span{line-height:inherit}.note-studio-tip,.note-studio-meter,.note-studio-status{color:var(--mc-ink-secondary);font-size:.78rem;line-height:1.5}.note-studio-tip{margin:8px 0 14px}.note-studio-status{min-height:1.5em;margin:0}.note-studio-meter{display:flex;justify-content:space-between;gap:16px;margin-top:12px}.note-studio-meter span:last-child{max-width:330px;text-align:right}
.note-whiteboard{display:block;width:100%;aspect-ratio:5/3;min-height:280px;max-height:600px;border:1px solid #d8d9d3;border-radius:14px;background:#fffef8;touch-action:none;user-select:none;-webkit-user-select:none}.note-finger-toggle{display:flex;align-items:center;gap:8px;margin-bottom:14px;color:var(--mc-ink-secondary);font-size:.85rem}.note-finger-toggle input{width:20px;height:20px}.note-ink-actions,.note-writing-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:14px}.note-ink-actions>span{color:var(--mc-ink-secondary);font-size:.8rem}.note-scribble,.note-writing-help{margin-top:16px;padding:16px;border:1px solid var(--mc-line);border-radius:14px;background:var(--mc-glass-subtle)}.note-scribble summary,.note-writing-help summary{min-height:32px;cursor:pointer;color:var(--mc-ink);font-weight:700}.note-scribble p,.note-writing-help p{font-size:.85rem;line-height:1.5;color:var(--mc-ink-secondary)}.note-scribble textarea,[data-ink-result]{min-height:140px!important}.note-writing-suggestion{display:grid;gap:8px;padding:14px 0;border-top:1px solid var(--mc-line);margin-top:14px}.note-writing-suggestion p{margin:0;white-space:pre-wrap}.note-writing-suggestion p:nth-child(2){color:var(--mc-ink);font-weight:650}.note-writing-suggestion small{color:var(--mc-ink-secondary)}
#study-note-sheet{width:min(960px,calc(100vw - 24px))}#study-note-sheet .note-form{max-width:none;width:100%}.note-cloud-choice>summary{cursor:pointer;font-weight:700;color:var(--mc-ink)}.note-cloud-choice[open]{display:block}.note-cloud-choice[open]>*+*{margin-top:12px}.notes-studio-start{display:grid;gap:18px}.notes-studio-start h2{margin:4px 0 0}.notes-studio-start p{margin:0;color:var(--mc-ink-secondary);line-height:1.5}.notes-studio-start .notes-document-provider{text-align:left;width:100%;font:inherit;cursor:pointer}.notes-studio-links{padding-top:16px;border-top:1px solid var(--mc-line)}.notes-studio-links summary{cursor:pointer;color:var(--mc-ink-secondary);font-size:.85rem}.notes-studio-links>div{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.notes-studio-links p{font-size:.8rem;margin-top:10px}.notes-studio-links a{color:var(--mc-blue);font-weight:650;min-height:44px;display:inline-flex;align-items:center}
@media(max-width:640px){.note-format{gap:6px}.note-format select{max-width:125px}.note-format label:first-child{flex:1}.note-format label:first-child select{max-width:none}.note-paper{min-height:330px;padding:20px}.note-studio-meter{flex-direction:column;gap:4px}.note-studio-meter span:last-child{text-align:left}.note-whiteboard{min-height:300px}.note-board-tools{gap:6px}.note-board-tools button{padding:8px}.note-format button,.note-format select,.note-board-tools button,.note-board-tools select{min-height:44px}}
@media(prefers-reduced-motion:reduce){.note-studio *{animation:none!important;transition:none!important}}

.note-studio-files{padding:16px;border:1px solid var(--mc-line);border-radius:14px;background:var(--mc-glass-subtle)}.note-studio-files summary{min-height:32px;cursor:pointer;font-weight:700;color:var(--mc-ink)}.note-studio-files p{font-size:.82rem;color:var(--mc-ink-secondary);line-height:1.5}.note-studio-files>div{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.note-studio-files .mc-input{flex:1;min-width:180px}

.note-studio-bar{display:flex;align-items:center;justify-content:space-between;gap:12px}.note-studio-bar>strong{font-size:.85rem;color:var(--mc-ink-secondary)}.note-studio-bar .mc-button{min-height:44px}
#study-note-sheet.is-note-expanded{width:100dvw!important;max-width:100dvw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;inset:0}#study-note-sheet.is-note-expanded .note-form{height:100%;max-height:100%;padding:max(16px,env(safe-area-inset-top)) clamp(16px,4vw,48px) max(16px,env(safe-area-inset-bottom));gap:14px}#study-note-sheet.is-note-expanded .note-form>:not(.note-studio):not(.planner-form__actions):not([data-note-status]){display:none!important}#study-note-sheet.is-note-expanded .note-studio{width:100%;max-width:1400px;margin:0 auto}#study-note-sheet.is-note-expanded .note-studio-bar{position:sticky;top:-1px;z-index:2;background:var(--mc-surface);border-radius:12px;padding:4px 12px}#study-note-sheet.is-note-expanded .note-paper{min-height:65dvh}#study-note-sheet.is-note-expanded .note-whiteboard{height:65dvh;max-height:none;aspect-ratio:auto}#study-note-sheet.is-note-expanded .planner-form__actions{position:sticky;bottom:0;z-index:2;background:var(--mc-surface);padding:12px;border-radius:14px;border:1px solid var(--mc-line);margin:0 auto;width:100%;max-width:1400px}

#study-note-sheet.is-note-expanded .note-studio-tabs{position:sticky;top:60px;z-index:2;background:var(--mc-surface)}#study-note-sheet.is-note-expanded .note-studio-bar{min-height:56px}

#study-note-sheet:not(.is-note-expanded){height:min(90dvh,1000px);max-height:90dvh;max-width:calc(100dvw - 24px);margin:auto;inset:0;overflow:hidden}#study-note-sheet .note-form{height:100%;max-height:100%;overflow-x:hidden;overflow-y:auto}

.note-time-metadata{display:flex;flex-wrap:wrap;column-gap:18px;row-gap:5px;color:var(--mc-ink-secondary);font-size:.75rem;line-height:1.6;margin-top:-6px}.note-time-metadata time{font-variant-numeric:tabular-nums}@media(max-width:640px){.note-time-metadata{display:grid;gap:3px}}

.note-studio-identity{min-width:0;display:grid;gap:6px}.note-studio-identity>strong{font-size:.85rem;color:var(--mc-ink-secondary);overflow-wrap:anywhere}.note-studio-identity .note-time-metadata{margin:0;font-size:.68rem}.note-studio-bar>[data-studio-expand]{flex-shrink:0}@media(max-width:640px){.note-studio-identity .note-time-metadata{font-size:.64rem}}

.note-studio-bar{position:sticky;top:0;z-index:3;padding:10px 0;background:var(--mc-surface);border-bottom:1px solid var(--mc-line)}.note-studio-save-state{margin:0!important;min-height:1em;font-size:.68rem!important;line-height:1.4!important;color:var(--mc-ink-secondary)}

#study-note-sheet .note-studio-tabs,#study-note-sheet.is-note-expanded .note-studio-tabs{position:sticky;top:var(--note-studio-header-height,100px);z-index:2;background:var(--mc-surface)}
.note-studio-bar .mc-button{min-width:0;padding:9px 11px!important;font-size:.75rem!important}

/* Expanded Notes uses the existing modal and editor nodes. Nothing is moved,
   re-created, or saved merely by changing the amount of editing space. */
#study-note-sheet.is-note-expanded{box-sizing:border-box;position:fixed;inset:0;width:100vw!important;width:100dvw!important;max-width:none!important;height:100vh;height:100dvh;max-height:none!important;overflow:hidden;background:var(--mc-surface);}
#study-note-sheet.is-note-expanded .note-form{box-sizing:border-box;display:flex;flex-direction:column;min-height:0;width:100%;height:100%;max-height:none;overflow:hidden;padding:max(10px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));gap:8px;}
#study-note-sheet.is-note-expanded .note-form:fullscreen{width:100dvw;height:100dvh;background:var(--mc-surface);}
#study-note-sheet.is-note-expanded .note-studio{display:flex;flex-direction:column;flex:1 1 0;min-height:0;width:100%;max-width:none;margin:0;gap:8px;}
#study-note-sheet.is-note-expanded .note-studio-bar{position:static;flex:0 0 auto;flex-wrap:wrap;min-height:44px;padding:0 0 8px;gap:8px;}
#study-note-sheet.is-note-expanded .note-studio-identity{flex:1 1 180px;}
#study-note-sheet.is-note-expanded .note-studio-tabs{position:static;flex:0 0 auto;margin:0;}
#study-note-sheet.is-note-expanded :is([data-studio-document],[data-studio-board]){display:flex;flex-direction:column;flex:1 1 0;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;}
#study-note-sheet.is-note-expanded [hidden]{display:none!important;}
#study-note-sheet.is-note-expanded :is(.note-format,.note-board-tools){position:sticky;top:0;z-index:1;flex:0 0 auto;margin:0;padding:4px 0 8px;background:var(--mc-surface);}
#study-note-sheet.is-note-expanded .note-studio-tip{flex:0 0 auto;margin:4px 0 8px;}
#study-note-sheet.is-note-expanded .note-paper{box-sizing:border-box;flex:1 0 200px;min-height:200px;width:100%;margin:0;overflow:auto;overscroll-behavior:contain;padding:clamp(20px,3vw,48px);}
#study-note-sheet.is-note-expanded .note-whiteboard{box-sizing:border-box;flex:1 0 240px;min-height:240px;height:100%;max-height:none;width:100%;aspect-ratio:auto;}
#study-note-sheet.is-note-expanded :is(.note-studio-meter,.note-ink-actions,.note-finger-toggle){flex:0 0 auto;margin:6px 0;}
#study-note-sheet.is-note-expanded :is(.note-writing-help,.note-scribble){flex:0 0 auto;margin:6px 0;padding:10px 14px;}
#study-note-sheet.is-note-expanded .note-studio-files{display:none;}
#study-note-sheet.is-note-expanded .note-studio-status:empty{display:none;}
#study-note-sheet.is-note-expanded .planner-form__actions{position:static;flex:0 0 auto;max-width:none;width:100%;margin:0;padding:8px 0 0;border:0;border-top:1px solid var(--mc-line);border-radius:0;}
@media(max-width:640px){#study-note-sheet.is-note-expanded .note-studio-identity{flex-basis:120px;}#study-note-sheet.is-note-expanded .note-studio-meter span:last-child{display:none;}}
/* Short landscape windows keep the drawing area and Restore on screen;
   secondary helpers remain reachable by scrolling the workspace. */
@media(max-height:540px){
 #study-note-sheet.is-note-expanded .note-studio-identity .note-time-metadata{display:none;}
 #study-note-sheet.is-note-expanded :is(.note-studio-bar,.note-studio-tabs){padding-block:0;min-height:40px;}
 #study-note-sheet.is-note-expanded .note-studio-tip{display:none;}
 #study-note-sheet.is-note-expanded .note-whiteboard{flex:1 0 180px;min-height:180px;}
 #study-note-sheet.is-note-expanded .note-paper{flex-basis:180px;min-height:180px;}
 #study-note-sheet.is-note-expanded .note-board-tools{gap:6px;}
 #study-note-sheet.is-note-expanded .note-finger-toggle{margin:0 0 4px;}
}

/* The Notes hook is paper and ink, with readable content on solid surfaces. */
.app-shell .notes-studio-start{padding:clamp(20px,3vw,32px);gap:24px;overflow:hidden;background:var(--mc-surface);border-color:var(--mc-line)}
.notes-studio-intro{display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:center;gap:24px;min-width:0}
.notes-studio-intro__copy{max-width:560px;min-width:0}.notes-studio-intro__copy h2{font-size:clamp(26px,3vw,36px);line-height:1.2;letter-spacing:-.03em;margin:8px 0 14px;color:var(--mc-ink)}
.notes-studio-intro__copy>.eyebrow{font-size:14px;color:var(--mc-teal);font-weight:750;letter-spacing:.08em}.notes-studio-intro__copy>p:last-child{font-size:16px;line-height:1.6;color:var(--mc-ink-secondary)}
.notes-studio-art{position:relative;height:178px;width:230px;color:var(--mc-teal);pointer-events:none}.notes-studio-art__paper{position:absolute;left:18px;top:6px;display:grid;align-content:start;gap:13px;width:130px;height:160px;box-sizing:border-box;padding:24px 18px;border:1px solid var(--mc-line-strong);border-radius:12px;background:var(--mc-surface);transform:rotate(-8deg);box-shadow:0 10px 24px rgba(7,26,45,.09)}.notes-studio-art__paper b{font-size:32px;font-weight:750;line-height:1}.notes-studio-art__paper i{height:3px;border-radius:3px;background:var(--mc-line-strong)}.notes-studio-art__paper i:last-child{width:65%}
.notes-studio-art__ink{position:absolute;right:0;bottom:0;width:140px;height:118px;border:1px solid var(--mc-line-strong);border-radius:14px;background:var(--mc-surface);transform:rotate(7deg);box-shadow:0 8px 20px rgba(7,26,45,.08)}.notes-studio-art__ink svg{width:100%;height:100%}.notes-studio-art__ink>span{position:absolute;right:-5px;top:-12px;display:grid;place-items:center;width:36px;height:36px;background:var(--mc-mint);border:1px solid var(--mc-line-strong);border-radius:50%;font-size:24px;color:#0f4f42}
.app-shell .notes-studio-start .notes-document-provider{min-height:104px;padding:18px;text-align:left;background:var(--mc-surface);border:1px solid var(--mc-line-strong);border-radius:16px;gap:14px}.notes-studio-start .notes-document-provider strong{font-size:16px;line-height:1.4;color:var(--mc-ink)}.notes-studio-start .notes-document-provider small{font-size:14px;line-height:1.5;color:var(--mc-ink-secondary)}.notes-studio-start .notes-document-provider__icon{display:grid!important;width:48px;height:56px;color:var(--mc-teal);font-size:26px;border-color:var(--mc-line-strong);border-radius:10px;background:var(--mc-surface)}.notes-studio-start .notes-document-provider--ink .notes-document-provider__icon{color:var(--mc-blue);font-size:30px}.notes-studio-start .notes-document-provider>span:last-child{font-size:24px;color:var(--mc-teal)}.app-shell .notes-studio-start .notes-document-provider:hover{background:var(--mc-glass-subtle);border-color:var(--mc-teal)}
.notes-studio-start .notes-studio-links summary{display:flex;align-items:center;min-height:48px;font-size:14px;font-weight:650;color:var(--mc-ink-secondary)}.notes-studio-start .notes-studio-links summary:before{content:'＋';font-size:20px;margin-right:10px}.notes-studio-start .notes-studio-links[open] summary:before{content:'−'}.notes-studio-start .notes-studio-links p{font-size:14px;line-height:1.6;color:var(--mc-ink-secondary)}.notes-studio-start .notes-studio-links a,.notes-studio-start .notes-studio-links button{min-height:48px;font-size:14px}
.notes-library-heading{margin-bottom:20px}.notes-library-heading h2{margin:0 0 6px;color:var(--mc-ink);font-size:22px;line-height:1.3}.notes-library-heading p{margin:0;font-size:16px;line-height:1.6;color:var(--mc-ink-secondary)}.notes-library-card>.mc-input{margin-bottom:12px}.notes-library-card>.mc-input>span{font-size:14px;color:var(--mc-ink-secondary)}.notes-library-card input[type=search]{min-height:48px;font-size:16px}
.note-library-item{align-items:center;gap:16px;padding:20px 0;min-width:0}.note-library-item>.note-library-item__body{display:grid;gap:8px;flex:1;min-width:0}.note-library-item__open{display:flex;align-items:center;gap:18px;width:100%;min-height:96px;color:var(--mc-ink);text-decoration:none!important;min-width:0}.note-library-item__open:hover .note-library-item__copy>strong{text-decoration:underline;text-underline-offset:3px}.note-library-item__preview{display:grid;align-content:center;gap:10px;width:82px;height:96px;flex:0 0 82px;box-sizing:border-box;padding:12px;border:1px solid var(--mc-line-strong);border-radius:10px;background:var(--mc-surface);color:var(--mc-teal);overflow:hidden}.note-library-item__preview>svg{width:100%;height:100%;min-height:68px}.note-library-item__glyph{font-size:26px;font-weight:750;line-height:1}.note-library-item__paper-lines{display:grid;gap:6px}.note-library-item__paper-lines i{display:block;width:100%;height:2px;background:var(--mc-line-strong);border-radius:2px}.note-library-item__paper-lines i:last-child{width:60%}
.note-library-item__copy{display:grid;gap:6px;min-width:0}.note-library-item__copy>strong{font-size:17px;font-weight:750;line-height:1.4;color:var(--mc-ink);overflow-wrap:anywhere}.note-library-item .note-library-item__kind{font-size:14px;font-weight:650;line-height:1.4;color:var(--mc-teal)}.note-library-item__excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:16px;font-weight:400;line-height:1.5;color:var(--mc-ink-secondary);overflow-wrap:anywhere}.note-library-item__metadata{display:flex;flex-wrap:wrap;gap:4px 16px;padding-left:100px}.note-library-item .note-library-item__metadata small{font-size:14px;line-height:1.5;color:var(--mc-ink-secondary)}.note-library-item .note-library-item__link{min-height:48px;font-size:14px}.note-library-item__open:focus-visible,.notes-studio-start summary:focus-visible{outline:3px solid var(--mc-blue);outline-offset:4px;border-radius:8px}
.notes-library-empty{display:grid;justify-items:start;gap:12px;padding:28px 0 12px;max-width:560px}.notes-library-empty__mark{display:grid;place-items:center;width:64px;height:72px;border:1px solid var(--mc-line-strong);border-radius:12px;color:var(--mc-teal);background:var(--mc-surface);font-size:30px;font-weight:750}.notes-library-empty h3{margin:4px 0 0;font-size:20px;line-height:1.4;color:var(--mc-ink)}.notes-library-empty p{margin:0;font-size:16px;line-height:1.6;color:var(--mc-ink-secondary)}.notes-library-empty .mc-button{min-height:48px;margin-top:4px;font-size:16px}
@media(max-width:700px){.notes-studio-intro{grid-template-columns:minmax(0,1fr) 140px;gap:14px}.notes-studio-art{width:140px;height:150px}.notes-studio-art__paper{width:105px;height:132px;left:2px;top:0;padding:17px 14px;gap:10px}.notes-studio-art__ink{width:102px;height:92px}.notes-studio-intro__copy h2{font-size:26px}.notes-studio-start .notes-document-tools__providers{grid-template-columns:1fr}.note-library-item{align-items:stretch}.note-library-item__link{align-self:flex-start;margin-left:100px}.note-library-item__open{min-height:96px}}
@media(max-width:420px){.notes-studio-intro{grid-template-columns:1fr}.notes-studio-art{display:none}.note-library-item__preview{width:64px;height:84px;flex-basis:64px;padding:9px}.note-library-item__open{gap:14px}.note-library-item__metadata{padding-left:78px}.note-library-item__link{margin-left:78px}.notes-studio-start .notes-document-provider{padding:14px;gap:12px}.notes-studio-start .notes-document-provider__icon{width:42px;flex-basis:42px}.notes-studio-start .notes-document-provider>span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.notes-studio-start *,.note-library-item *{animation:none!important;transition:none!important}}

/* Keep the writing/drawing surface reachable when helpers are open in a short
   window. The same editor remains mounted; its tools cannot overlap it. */
#study-note-sheet.is-note-expanded .note-studio {overflow-y:auto;overscroll-behavior:contain;}
#study-note-sheet.is-note-expanded :is([data-studio-document],[data-studio-board]) {flex:1 0 220px;}
#study-note-sheet.is-note-expanded :is(.focus-note-helpers,.note-studio-status) {flex:0 0 auto;}
#study-note-sheet.is-note-expanded.is-focus-capture .note-studio-bar {display:flex!important;}
#study-note-sheet.is-note-expanded .focus-note-start {display:none;}
#study-note-sheet.is-note-expanded [data-studio-board] {flex:0 0 auto;overflow:visible;}
#study-note-sheet.is-note-expanded .note-whiteboard {flex:0 0 auto;height:clamp(240px,50dvh,650px);}

/* Defer fixed-size ink previews while keeping row geometry and targets stable. */
@supports (content-visibility: auto) {
  [data-notes-library] .note-library-item__preview {
    content-visibility: auto;
  }
}

/* Keep writing space when a phone keyboard or landscape shrinks the viewport. */
@media (max-width: 900px) and (max-height: 600px) {
  #study-note-sheet:not(.is-note-expanded) {height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);}
  #study-note-sheet:not(.is-note-expanded) .note-form {padding:16px;gap:8px;scroll-padding-bottom:80px;}
  #study-note-sheet:not(.is-note-expanded) .note-form .note-studio {gap:8px;}
  #study-note-sheet:not(.is-note-expanded) .note-form .note-studio-bar {display:flex!important;position:static;align-items:center;gap:8px;min-height:0;padding:0 32px 8px 0;}
  #study-note-sheet:not(.is-note-expanded) .note-form .note-studio-identity {position:static;min-width:0;gap:2px;padding:0;}
  #study-note-sheet:not(.is-note-expanded) .note-studio-identity p {margin-block:0;}
  #study-note-sheet:not(.is-note-expanded) .note-form [data-studio-expand] {flex:0 0 44px;min-width:44px;min-height:44px;padding:8px;}
  #study-note-sheet:not(.is-note-expanded) [data-studio-expand-label] {display:none;}
  #study-note-sheet:not(.is-note-expanded) .note-form .note-studio-tabs {padding:3px;}
  #study-note-sheet:not(.is-note-expanded) .note-form .note-paper {min-height:180px;padding:16px;}
  #study-note-sheet:not(.is-note-expanded) .note-form .planner-form__actions {padding-block:8px;}
}

/* Grammar check that runs on this device. The underline colour holds at least
   3:1 against both light and dark paper. Nothing here animates. */
::highlight(mc-note-grammar){text-decoration:underline wavy #2f6fed;}
[data-studio-document]{position:relative;}
.note-grammar-status{min-height:44px;padding:0;border:0;background:none;color:var(--mc-ink);font:inherit;font-weight:650;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
.note-studio .note-grammar-status:disabled{opacity:1;color:var(--mc-ink-secondary);text-decoration:none;cursor:default;}
@media(min-width:641px){.note-studio-meter{align-items:center;}}
.note-grammar-pop{position:absolute;z-index:6;box-sizing:border-box;width:min(340px,calc(100% - 16px));padding:14px;border:1px solid var(--mc-line-strong,var(--mc-line));border-radius:14px;background:var(--mc-surface);color:var(--mc-ink);box-shadow:0 12px 32px rgba(0,0,0,.22);}
.note-grammar-why{margin:0 0 10px;color:var(--mc-ink);font-size:.9rem;line-height:1.45;overflow-wrap:anywhere;}
.note-grammar-choices{display:flex;flex-wrap:wrap;gap:8px;}
.note-grammar-choices .mc-button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;}
.note-grammar-panel{box-sizing:border-box;margin-top:12px;padding:16px;border:1px solid var(--mc-line);border-radius:14px;background:var(--mc-surface);color:var(--mc-ink);}
.note-grammar-panel__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;}
.note-grammar-toggle{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--mc-ink);font-size:.9rem;}
.note-grammar-toggle input{width:20px;height:20px;flex:none;}
.note-grammar-note{margin:8px 0 0;color:var(--mc-ink-secondary);font-size:.85rem;line-height:1.5;}
.note-grammar-list{display:grid;gap:0;margin:12px 0 0;padding:0;list-style:none;}
.note-grammar-item{display:grid;gap:6px;padding:14px 0;border-top:1px solid var(--mc-line);}
.note-grammar-excerpt{justify-self:start;min-height:44px;max-width:100%;padding:0;border:0;background:none;color:var(--mc-ink);font:inherit;font-weight:700;text-align:left;text-decoration:underline wavy #2f6fed;text-underline-offset:4px;overflow-wrap:anywhere;cursor:pointer;}
.note-grammar-status:focus-visible,.note-grammar-excerpt:focus-visible,.note-grammar-toggle input:focus-visible{outline:3px solid var(--mc-blue);outline-offset:3px;}
#study-note-sheet.is-note-expanded .note-grammar-panel{flex:0 0 auto;}
