/* Scoped controls: subject styles must not change the writing UI. */
html body #ilmdosh-page-ink{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;z-index:1000!important;pointer-events:none!important;background:transparent!important;display:block;max-width:none!important;border:0!important;margin:0!important;padding:0!important}
html body #ilmdosh-page-ink.is-writing{pointer-events:none!important}
html.ilmdosh-writing-active body :is(main,article,section,p,li,h1,h2,h3,h4,td,th,figure,img){touch-action:none}
html body #ilmdosh-page-ink[hidden],html body .ilmdosh-writing-ui[hidden],html body .language-notebook-options[hidden]{display:none!important}
html body .ilmdosh-writing-ui{box-sizing:border-box;color:#193849;font:700 14px/1.5 Nunito,system-ui,sans-serif;-webkit-text-fill-color:currentColor}
html body #ilmdosh-pen-launcher{position:fixed;left:12px;top:42vh;z-index:1003;width:48px;height:48px;min-height:48px;border:1px solid #87949b;border-radius:15px;background:linear-gradient(145deg,#e6ebee,#cbd3d8);color:#596871;padding:10px;box-shadow:0 3px 12px #163c4930;cursor:grab;touch-action:none}
html body #ilmdosh-pen-launcher svg{display:block;width:26px;height:26px;fill:none;stroke:currentColor}
html body #ilmdosh-pen-launcher[aria-pressed=true]{background:linear-gradient(145deg,#27b950,#83d92f);color:white;border-color:#258c43;outline:2px solid #176855;outline-offset:2px}
html body #ilmdosh-pen-quick{position:fixed;z-index:1003;display:flex;flex-direction:column;gap:3px;padding:3px;border:1px solid #a2c9b6;border-radius:12px;background:#f9fffc;box-shadow:0 3px 10px #163c4920}
html body #ilmdosh-pen-quick button{display:grid;place-items:center;width:28px;min-width:28px;height:28px;min-height:28px;padding:5px;border:0;border-radius:8px;background:#e5f5eb;color:#176855;touch-action:manipulation}
html body #ilmdosh-pen-quick button:hover:not(:disabled){background:#ccebd9}
html body #ilmdosh-pen-quick svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor}
html body #ilmdosh-pen-settings-controls{position:static;padding:8px 0;background:transparent;border:0;box-shadow:none;max-width:100%}
html body #ilmdosh-pen-settings-controls .writing-start{width:100%;margin-top:10px;background:#196c68;color:white}
html.ilmdosh-writing-active body>.header,html.ilmdosh-writing-active .ilmdosh-section-shell,html.ilmdosh-writing-active .dock{z-index:1002!important}
html body #ilmdosh-ink-error{position:fixed;bottom:80px;left:12px;z-index:1010;max-width:calc(100vw - 24px);padding:10px 14px;border:1px solid #ba4f4f;border-radius:12px;background:#fff0ed;color:#8c2525;pointer-events:none;font:700 13px/1.4 system-ui}
html body #ilmdosh-ink-error[hidden]{display:none!important}
html body .ilmdosh-writing-ui button,html body .ilmdosh-writing-ui select{box-sizing:border-box;min-width:40px;min-height:42px;padding:7px 10px;border:1.5px solid #9eb8ae;border-radius:10px;background:#fff;color:#1e6152;font:800 13px/1.4 Nunito,system-ui,sans-serif;cursor:pointer;margin:0;text-transform:none;letter-spacing:0}
html body .ilmdosh-writing-ui button::before,html body .ilmdosh-writing-ui button::after{display:none!important}
html body .ilmdosh-writing-ui button[aria-pressed=true]{background:#e0f4e9;border-color:#197457;box-shadow:inset 0 -2px #197457}
html body .ilmdosh-writing-ui button:disabled{opacity:.4;cursor:default}
html body .writing-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px;min-width:0}
html body .writing-heading>strong{flex:1;min-width:0;font-size:19px;cursor:grab;color:#1b7256;touch-action:none}
html body .writing-actions{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
html body .writing-options{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:8px}
html body .writing-options label{display:flex;align-items:center;gap:7px;font:700 12px/1.5 Nunito,system-ui}
html body .writing-options input[type=color]{width:44px;height:40px;padding:3px;border:1px solid #9eb8ae;border-radius:9px;background:white}
html body .writing-status{margin:7px 0 0;font:600 12px/1.5 Nunito,system-ui;color:#536c76}
html body #ilmdosh-language-notebook{position:fixed;z-index:1004;left:auto;right:12px;top:16vh;bottom:auto;box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-width:none;max-height:76vh;margin:0;padding:12px;border:2px solid #82b7a2;border-radius:20px;background:#f9fcfb;box-shadow:0 8px 35px #12334526;overflow:auto;transform:none}
html body #ilmdosh-language-notebook:not([open]){display:none!important}
html body .language-notebook-lesson{margin:2px 0 8px;font-size:12px;line-height:1.4;color:#536c76;max-width:100%;overflow-wrap:anywhere}
html body .language-notebook-viewport{max-height:47vh;overflow:auto;border:1px solid #cbded6;border-radius:10px;background:#fff;overscroll-behavior:contain}
html body #ilmdosh-language-paper{display:block!important;width:100%!important;height:auto!important;aspect-ratio:5/7;max-width:none!important;padding:0!important;border:0!important;margin:0!important;touch-action:none;cursor:crosshair;background-color:#fff}
html body #ilmdosh-language-notebook[data-paper=grid] #ilmdosh-language-paper{background-image:linear-gradient(#e1ede8 1px,transparent 1px),linear-gradient(90deg,#e1ede8 1px,transparent 1px);background-size:28px 28px}
html body #ilmdosh-language-notebook[data-paper=ruled] #ilmdosh-language-paper{background-image:repeating-linear-gradient(0deg,transparent 0,transparent 31px,#d9e8e1 31px,#d9e8e1 32px)}
html body .language-notebook-pages{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;margin-top:9px}
html body .language-notes-launcher{position:fixed;right:154px;bottom:var(--tools-bottom,12px);z-index:94;touch-action:none}
html body #ilmdosh-ink-confirm{z-index:1100;max-width:min(380px,calc(100vw - 24px));padding:22px;border:2px solid #82b7a2;border-radius:20px;background:#fff}
html body #ilmdosh-ink-confirm::backdrop{background:#102d4359}
html body #ilmdosh-ink-confirm h2{font-size:21px;line-height:1.3;margin:0 0 12px}
html body .ilmdosh-writing-ui :focus-visible{outline:3px solid #e5ae3d;outline-offset:3px}
html.ilmdosh-shared-settings[data-pen-visible=false] #ilmdosh-pen-launcher,html.ilmdosh-shared-settings[data-pen-visible=false] #ilmdosh-page-ink{display:none!important}
@media(max-width:370px){html body .language-notes-launcher{right:auto;left:76px}}
@media(max-width:760px){
 html body #ilmdosh-pen-launcher{width:38px;height:38px;min-width:38px;min-height:38px;padding:8px;border-radius:12px}
 html body #ilmdosh-pen-launcher svg{width:20px;height:20px}
 html body #ilmdosh-pen-quick{gap:2px;padding:2px;border-radius:10px}
 html body #ilmdosh-pen-quick button{width:24px;min-width:24px;height:24px;min-height:24px;padding:4px;border-radius:6px}
 html body #ilmdosh-pen-quick svg{width:16px;height:16px}
}
@media print{html body :is(#ilmdosh-page-ink,#ilmdosh-pen-launcher,#ilmdosh-pen-quick,#ilmdosh-pen-toolbar,#ilmdosh-language-notebook,.language-notes-launcher){display:none!important}}
