 .pencil-preview{position:fixed;z-index:20;pointer-events:none;transform:translate(-50%,-50%);border:1.5px solid;border-radius:50%;background:transparent}
/* Classic tablet editor. The application starts below the iPad safe area. */
.note-continuous > .paper + .paper { margin-top:12px; }
.scroll-paper { cursor:pointer; touch-action:none; }
.stage .surface.pan { touch-action:none; }
.scroll-paper > svg { position:relative; width:100%; height:100%; display:block; pointer-events:none; }

.note-zoom-panel { position:fixed; z-index:5; bottom:max(12px,env(safe-area-inset-bottom)); inset-inline:12px; margin:auto; max-width:1100px; padding:6px 8px 8px; border:1px solid var(--edge); border-radius:18px; background:var(--surface); color:var(--ink); box-shadow:0 4px 20px #30291e40; }
.note-zoom-panel header { display:flex; align-items:center; gap:4px; padding:0 0 4px; }
.note-zoom-panel header span { flex:1; color:var(--muted); }
.note-zoom-panel header button { display:grid; place-items:center; width:44px; min-height:40px; border:0; border-radius:12px; background:transparent; color:var(--ink); font-size:20px; }
.note-zoom-window { position:relative; overflow:hidden; height:min(190px,26dvh); border:1px solid var(--edge); border-radius:12px; }
.note-zoom-window > .paper { position:absolute; top:0; left:0; margin:0; border-radius:0; box-shadow:none; transform-origin:0 0; pointer-events:none; }
.note-zoom-window > svg { position:relative; display:block; width:100%; height:100%; touch-action:none; user-select:none; }
.note-zoom-frame { fill:rgb(47 107 165 / 6%); stroke:#2f6ba5; stroke-width:2px; cursor:move; touch-action:none; }

.airy-editor .airy-topbar { display:flex;align-items:center;gap:4px;height:64px;min-width:0;padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right));box-sizing:border-box; }
.airy-topbar .icon { display:grid;place-items:center;border:0;background:transparent;border-radius:12px;flex:0 0 44px;height:44px;padding:5px; }
.airy-topbar .icon img { width:31px;height:31px;object-fit:contain; }
.airy-topbar .icon svg {display:block;width:21px;height:21px;}
.airy-topbar .icon:is([data-act=back],[data-act=noteNavigation],[data-act=openOtherNote]) {background:#f8efe3;border:1px solid #e9dccb;border-radius:13px;color:#51483e;}
.airy-topbar .icon:is([data-act=back],[data-act=noteNavigation],[data-act=openOtherNote]) svg {width:22px;height:22px;}
:root[data-tone=dark] .airy-topbar .icon:is([data-act=back],[data-act=noteNavigation],[data-act=openOtherNote]) {background:var(--app-bg);border-color:var(--app-line);color:var(--app-ink);}
.airy-topbar .icon:is([data-act=headerPdf],[data-act=headerPng],[data-act=headerBookmark],[data-act=moreNote]) {flex-basis:40px;height:40px;}
.airy-topbar .icon:is([data-act=headerPdf],[data-act=moreNote]) img {width:27px;height:27px;}
.airy-topbar .icon[aria-pressed=true] {background:var(--app-selected);}
.airy-open-tabs { display:flex;align-items:center;flex:1;min-width:0;overflow:hidden; }
.airy-open-tabs .notebook-tabs { min-width:0; }
.airy-open-tabs .shared-tab-title {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
.airy-topbar .status {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.airy-editor.with-ai .note-options {margin-inline-start:var(--pane-size,var(--ai-w));}
.airy-editor.with-note-nav .note-options {margin-inline-start:var(--nav-width);}
.airy-editor.with-note-nav.with-ai .note-options {margin-inline-start:calc(var(--nav-width) + var(--pane-size,var(--ai-w)));}
.airy-editor>#aiPane,.airy-editor>.note-nav {top:calc(-1 * var(--airy-options-h,0px));}

.classic-editor { grid-template-columns: minmax(0,1fr); grid-template-rows: auto auto minmax(0,1fr); }
.notebook-tab-band { background: #fbf4ea; min-width: 0; }
.notebook-tabs { position: relative; display: flex; gap: 8px; align-items: center; padding: 7px max(6px,env(safe-area-inset-left)); overflow-x: auto; scrollbar-width: none; }
.notebook-tabs::-webkit-scrollbar,.tool-scroll::-webkit-scrollbar { display:none; }
.notebook-tab { position: relative; flex: none; display: flex; align-items: center; height: 48px; min-width:144px; border:1px solid #e9dccb; border-radius:14px; background:#f8efe3; color:#796f63; }
.notebook-tab.current { color:#51483e; border-color:#d9be9b; background:linear-gradient(#fffdf8,#fff8ee); }
.notebook-tab.current::after { content:''; position:absolute; bottom:0; inset-inline:14px; height:2.5px; background:#e6b071; border-radius:5px; pointer-events:none; }
.notebook-tab button { display:flex; align-items:center; gap:7px; padding:0; background:transparent; border:0; color:inherit; }
.notebook-tab [role=tab] { flex:1; height:46px; padding-left:10px; text-align:start; font:400 17.5px/1.3 Inter,sans-serif; }
.notebook-tab [role=tab] img { width:34px; height:34px; object-fit:contain; }
.notebook-tab [role=tab] span { min-width:45px; max-width:190px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.notebook-tab .tab-close { justify-content:center; width:44px; height:44px; }
.tab-close span { display:grid; place-items:center; height:27px; width:27px; border-radius:100%; background:#f4e6d480; font-size:17px; }
.current .tab-close span { background:#f4e6d4; }
.workspace>.note-tools { display:block; min-width:0; padding:0; overflow:visible; background:white; border:0; }
.note-tools .note-main { display:flex; min-width:0; align-items:center; justify-content:space-between; gap:0; height:64px; min-height:0; padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left)); background:#faf0e0; border-bottom:1px solid #e5ded3; color:#51483e; }
.bar-start,.bar-end { flex:none; display:flex; align-items:center; }
.bar-start { min-width:0; max-width:33.333%; }
.bar-start h1 { margin:0; min-width:0; max-width:200px; overflow:hidden; }
.bar-start h1 button { display:block; max-width:100%; padding:0 8px 0 4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:500 19px/27px Inter,sans-serif; background:transparent; border:0; color:#574a3c; }
.bar-end .status { position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap; }
.note-tools .icon { flex:none; position:relative; border:0; padding:0; border-radius:14px; background:transparent; box-shadow:none; display:grid; place-items:center; width:54px; height:50px; min-width:0; min-height:0; }
.note-tools .icon img { width:37px; height:37px; object-fit:contain; }
.note-tools :is([data-quick-insert="molecule"],[data-act="laser"]) img { width:40px; height:40px; }
.note-tools .bar-start .icon,.note-tools .bar-end .icon { width:48px; height:48px; }
.note-tools .bar-start [data-act="aiToggle"] { width:44px; height:44px; }
.note-tools .bar-start .icon img,.note-tools .bar-end .icon img { width:32px; height:32px; }
.note-tools .bar-start [data-act="noteNavigation"] img { width:34px; height:34px; }
.note-tools [data-act="aiToggle"] img { width:32px; height:32px; }
.note-tools .icon.active,.note-tools .bar-start .icon[aria-pressed=true] { outline:0; background:#fffcf7; box-shadow:none; }
.note-tools .icon.active::after { content:''; position:absolute; width:13px; height:2px; bottom:6px; background:#8e674a; border-radius:4px; }
.note-tools .icon[style*="--ink-dot"]::before { content:''; position:absolute; z-index:1; right:9px; bottom:7px; width:8px; height:8px; border-radius:50%; background:var(--ink-dot); border:1px solid #65584e; }
.note-tools button:disabled { opacity:.38; }
.tool-strip { min-width:0; position:relative; }
.primary-strip { flex:1; }
.tool-scroll { min-width:0; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
.tool-track { display:flex; align-items:center; gap:6px; width:max-content; margin-inline:auto; padding:0 6px; }
.main-divider,.opt-sep { flex:none; height:24px; width:1px; background:#d6e0ea; margin-inline:4px; }
.main-divider { height:30px; margin-inline:2px 6px; }
.opt-sep { margin:0; }
.note-options { display:flex; align-items:center; justify-content:center; background:#fff; border-bottom:1px solid #dbe2e9; height:52px; }
.note-options .tool-scroll { width:100%; }
.option-track { gap:12px; padding-inline:12px; }
.pen-presets { display:flex; gap:2px; align-items:center; }
.option-track button { display:grid; place-items:center; flex:none; min-height:32px; padding:0; background:transparent; border:0; color:#172333; font:500 17px/1.15 Inter,sans-serif; }
.option-track .opt-chip { display:inline-flex; gap:7px; min-height:34px; padding:3px 10px; background:#fff; border:1px solid #d5e1ed; border-radius:9px; }
.opt-chip img { width:20px; height:20px; object-fit:contain; }
.option-track .pen-chip,.option-track [data-pen-option="width"] { min-height:36px; }
.option-track .pen-chip { padding-inline:8px 10px; gap:6px; }
.pen-chip .pen-chip-tip { position:relative; display:grid; width:20px; height:20px; }
.pen-chip-tip::after { content:''; position:absolute; width:4px; height:4px; border-radius:50%; right:0; bottom:0; background:var(--swatch); border:1px solid #7c8189; }
.pen-chip>img:last-child { width:16px; height:16px; }
.preset-star img { width:20px; height:20px; }
.option-track .palette-chip { gap:0; padding-inline:8px 12px; color:#526175; }
.ink-swatch { width:36px; height:36px; }
.ink-swatch i { width:30px; height:30px; background:var(--swatch); border:1px solid #0003; border-radius:50%; }
.ink-swatch[aria-pressed=true] i { width:26px; height:26px; outline:2px solid #202c39; outline-offset:3px; }
.note-options button[aria-pressed=true] { outline:0; }
.custom-ink { width:36px; height:36px; position:relative; }
.custom-ink::before { content:''; position:absolute; width:30px; height:30px; border-radius:50%; background:conic-gradient(from 90deg,red,yellow,lime,cyan,blue,magenta,red); }
.custom-ink span { position:relative; display:grid; place-items:center; background:white; border-radius:50%; width:22px; height:22px; }
.custom-ink img { width:14px; height:14px; }
.palette-sample { display:inline-flex; align-items:center; }
.palette-sample i { background:var(--swatch); width:16px; height:16px; border-radius:50%; margin-right:-7px; border:1.5px solid white; }
.palette-sample i:last-child { margin-right:0; }
.option-track .size-dot,.option-track .preset-sample,.option-track .preset-star,.option-track .opt-small { width:38px; height:38px; border-radius:50%; }
.option-track .size-dot,.option-track .opt-small { width:36px; height:36px; }
.size-dot i,.preset-sample i { display:block; background:#576474; border-radius:50%; }
.size-dot[aria-pressed=true] { background:#dfebf7; }
.size-dot[aria-pressed=true] i { background:#182537; }
.preset-sample .mark,.preset-sample .dot { background:var(--swatch); }
.preset-sample .mark { width:28px; height:5px; border-radius:5px; opacity:.75; }
.preset-sample .dot { width:14px; height:14px; }
.option-track .preset-star { font-size:20px; color:#526175; }
.opt-small img { width:22px; height:22px; object-fit:contain; }
.tool-hint { color:#626f7b; font-size:16px; }
.palette-options { display:grid; gap:5px; }
.palette-options button { display:flex; align-items:center; gap:12px; min-height:42px; background:#fff; border:1px solid #d5e1ed; border-radius:9px; font:inherit; }
.classic-editor .stage { background:#f6ead8; padding:10px 0 44px; touch-action:pan-x pan-y; }
.classic-editor .paper:not(.board) { width:min(100%,max(810px,80vw)); border-radius:0; }
.classic-editor .stage > .paper { display:block; }
.classic-editor .stage > .paper:not(.board) { width:calc(min(100%,max(810px,80vw)) * var(--note-page-zoom,1)); }
/* Paint the pattern at fit size, then scale it to the same edges as the SVG.
   WebKit rounds individual background tiles if their layout size is zoomed. */
.classic-editor .stage.note-zoomed > .paper { background-image:none; }
.stage.note-zoomed > .paper::before {
  content:""; position:absolute; left:0; top:0; pointer-events:none;
  width:calc(100% / var(--note-page-zoom)); height:calc(100% / var(--note-page-zoom));
  transform-origin:0 0; transform:scale(var(--note-page-zoom));
}
.classic-editor>.foot { grid-area:3 / 1 / 4 / 2; position:absolute; bottom:max(18px,env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); display:flex; z-index:2; gap:6px; border:0; border-radius:18px; background:#fffcf5ec; padding:0 4px; box-shadow:0 1px 4px #54452f24; }
.classic-editor>.foot>small { display:none; }
.classic-editor>.foot .row { gap:0; }
.classic-editor>.foot .icon { width:25px; height:30px; min-height:30px; font-size:19px; }
.page-chip { border:0; background:transparent; min-height:32px; padding:3px 8px; font:500 14px/1.2 Inter,sans-serif; }
.workspace>#aiPane,.workspace>.note-nav { grid-area:3 / 1 / 4 / 2; top:0; bottom:0; }
.workspace.with-note-nav { --nav-width:min(100%, calc(69px + clamp(196px,25vw,244px))); }
.workspace.with-note-nav:is([data-navigation-tab=contents],[data-navigation-tab=outline]) { --nav-width:min(100%, calc(69px + clamp(240px,32vw,300px))); }
.workspace.with-note-nav>.stage { margin-left:var(--nav-width); }
.workspace.with-note-nav.with-ai>.stage { margin-left:calc(var(--nav-width) + var(--pane-size,var(--ai-w))); }
.workspace.with-note-nav>#aiPane { left:var(--nav-width); max-width:calc(100% - var(--nav-width)); }
.note-nav { --nav-rail:#faf0e0; --nav-panel:#fffbf4; --nav-selected:#f3ddba; position:absolute; left:0; width:var(--nav-width); z-index:3; display:flex; color:var(--app-ink); background:var(--nav-panel); border-right:1px solid var(--app-line,#e4dbcd); }
:root[data-tone=dark] .note-nav { --nav-rail:var(--app-surface); --nav-panel:var(--app-bg); --nav-selected:var(--app-surface2); }
.nav-modes { flex:0 0 69px; display:flex; flex-direction:column; align-items:center; min-height:0; padding:8px 0; background:var(--nav-rail); border-right:1px solid var(--app-line,#e4dbcd); }
.nav-mode-scroll { flex:1; min-height:0; overflow:auto; scrollbar-width:none; }
.nav-mode-scroll [role=tablist] { display:grid; gap:5px; }
.nav-modes hr { width:30px; margin:11px auto; border:0; border-top:1px solid var(--app-line,#e4dbcd); }
.nav-modes button,.nav-body button { color:inherit; background:transparent; border:0; }
.nav-modes button { display:flex; flex-direction:column; align-items:center; gap:3px; width:60px; padding:7px 0; line-height:15px; font-size:12px; white-space:nowrap; border-radius:14px; }
.nav-modes img { width:36px; height:36px; }
.nav-modes button[aria-selected=true] { background:var(--nav-selected); }
.nav-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.nav-body header { display:flex; align-items:center; justify-content:space-between; gap:4px; padding:6px 4px 6px 18px; border-bottom:1px solid var(--app-line,#e4dbcd); }
.nav-body header strong { font-weight:500; font-size:19px; }
.nav-body header small { display:block; font-size:14px; color:var(--app-muted); }
.nav-body header button { display:grid; place-items:center; width:44px; height:44px; padding:0; }
.nav-body header img { width:30px; height:30px; }
.nav-body input[type=search] { margin:12px; min-width:0; font:inherit; border:1px solid var(--app-line,#c7bdad); border-radius:12px; background:var(--app-bg); }
.nav-body>[role=status] { padding:4px 16px; color:var(--app-muted); }
.nav-body [hidden] { display:none; }
.nav-pages { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:16px; }
.nav-thumbnail,.nav-add { display:grid; justify-items:center; width:100%; padding:6px; margin:0 0 14px; border-radius:12px; }
.nav-thumbnail span+span { padding:7px 0 2px; }
.nav-add { display:flex; align-items:center; justify-content:center; gap:10px; }
.nav-thumbnail[aria-current=page],.nav-heading-row[data-current=true] { background:color-mix(in srgb,var(--nav-selected) 65%,transparent); }
.nav-preview { display:block; background:white; width:100%; aspect-ratio:1 / 1.28; border:1px solid var(--app-line,#ddd4c5); border-radius:3px; overflow:hidden; }
.nav-thumbnail[aria-current=page] .nav-preview { border:2px solid var(--app-accent); }
.nav-headings { padding:0 10px 20px; }
.nav-headings h3,.nav-headings p { padding:10px 8px; font-weight:400; }
.nav-headings h3 { font-size:14px; color:var(--app-muted); }
.nav-heading-row { display:flex; align-items:center; margin:3px 0 3px calc(var(--depth)*13px); border-radius:10px; }
.nav-heading-row [data-nav-page] { display:flex; flex:1; min-width:0; gap:8px; align-items:center; justify-content:space-between; text-align:start; padding:7px 8px; font:inherit; line-height:22px; }
.nav-heading-row [data-nav-page] span { overflow-wrap:anywhere; }
.nav-fold { flex:none; width:40px; height:40px; padding:0; font-size:22px; }
.nav-fold span { display:inline-block; }
.nav-fold[aria-expanded=true] span { transform:rotate(90deg); }
.nav-insert-toc { padding:10px 12px; font-size:15px; }
.nav-preview svg { display:block; width:100%; height:100%; }
.insert-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr)); gap:6px; }
.insert-option { display:flex; align-items:center; gap:10px; min-height:46px; padding:5px 10px; background:#faf4e9; border:1px solid #e5d9c7; border-radius:12px; text-align:start; font:inherit; }
.insert-option img { flex:none; width:32px; height:32px; object-fit:contain; }
@media (hover:hover) { .note-tools button:not(:disabled):hover,.insert-option:hover { background-color:#efe2cd; } }
.note-tools button:focus-visible,.insert-option:focus-visible,.tool-scroll:focus-visible { outline:2px solid #87643d; outline-offset:-3px; }
@media(max-width:999px) {
  .primary-strip .icon { width:44px; height:44px; }
  .primary-strip .icon img { width:32px; height:32px; }
  .tool-track { gap:2px; }
  .option-track { gap:12px; }
}
@media(max-width:599px) {
  .bar-start h1 { display:none; }
  .note-tools .note-main { height:54px; padding-inline:3px; }
  .option-track { gap:10px; }
  .note-tools :is(.bar-start,.bar-end) .icon { width:36px; }
  .note-options { height:50px; }
  .workspace.with-note-nav.with-ai>.stage,.workspace.with-note-nav>.stage { margin-left:0; }
}
@media(prefers-reduced-motion:no-preference) { #laserTrail polyline { animation:note-laser-fade .9s ease-out forwards; } }
@keyframes note-laser-fade { 0%,35%{opacity:1} 100%{opacity:0} }

/* ColorPickerPanel and PaletteSetsDialog use the editor's colors in both appearances. */
#sheet:is(:has(.ep-packs),:has(.ec-picker)) { box-sizing:border-box;max-width:calc(100vw - 32px);height:auto;max-height:88dvh;padding:20px;border:0;border-radius:22px;color:var(--app-ink);background:var(--app-bg);overflow:auto; }
#sheet:has(.ep-packs) { width:760px; }
#sheet:has(.ec-picker) { width:400px;max-height:90dvh; }
#sheet:is(:has(.ep-packs),:has(.ec-picker)) :is(#fields,#form) { display:block;margin:0;padding:0; }
#sheet:is(:has(.ep-packs),:has(.ec-picker)) :is(#dismiss,#dialogActions) { display:none; }
#sheet:has(.ep-packs) .dialog-top { margin:0 0 12px;padding:0; }
#sheet:has(.ec-picker) .dialog-top { position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden; }
#sheet:has(.ep-packs) .dialog-top h2,#sheet .ec-picker h2 { margin:0;font:500 22px/28px Inter,sans-serif;color:var(--app-ink); }
.ep-packs { display:grid;gap:12px; }
.ep-packs p { margin:0;color:var(--app-muted);font:400 17px/24px Inter,sans-serif; }
.ep-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),220px));gap:12px; }
@media(max-width:305px){.ep-grid { grid-template-columns:minmax(0,1fr); }}
#sheet .ep-grid button { display:flex;flex-direction:column;gap:10px;padding:12px;text-align:start;background:var(--app-surface);color:var(--app-ink);border:1px solid var(--app-line);border-radius:14px; }
#sheet .ep-grid button[aria-pressed=true] { border-color:var(--app-accent);box-shadow:inset 0 0 0 1px var(--app-accent); }
.ep-name,.ep-strip { display:flex;align-items:center;justify-content:space-between;width:100%;gap:2px; }
.ep-name { font:500 19px/24px Inter,sans-serif; }
.ep-name small { font:400 16px/21px Inter,sans-serif;color:var(--app-accent); }
.ep-strip { background:#fffdf8;border-radius:10px;padding:8px 10px; }
.ep-strip i { width:28px;height:28px;border-radius:50%; }
.ep-packs:not([data-kind=pen]) .ep-strip i { width:30px;height:18px;border-radius:5px; }
#sheet :is(.ep-packs,.ec-picker) footer { display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px;margin:0;padding:0;border:0; }
#sheet :is(.ep-packs,.ec-picker) footer button { min-height:40px;padding:6px 12px;border:0;border-radius:999px;background:transparent;color:var(--app-muted);font:500 16px/22px Inter,sans-serif; }
#sheet :is(.ep-packs,.ec-picker) footer .primary { background:var(--app-accent);color:var(--app-on-accent); }
#notice .ep-undo { margin-inline-start:14px;padding:3px 6px;border:0;background:transparent;color:inherit;text-decoration:underline;pointer-events:auto; }
#sheet .ec-picker { display:grid;gap:14px;outline:0; }
.ec-picker header,.ec-comparison { display:flex;align-items:center; }
.ec-picker header { justify-content:space-between;gap:7px; }
.ec-comparison { flex:none;overflow:hidden;border:1px solid var(--app-line);border-radius:10px; }
.ec-comparison i { width:30px;height:30px; }
.ec-sv { position:relative;touch-action:none;height:170px;border-radius:14px;overflow:hidden;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,var(--hue-color)); }
.ec-sv i { position:absolute;pointer-events:none;width:22px;height:22px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px #0004;left:var(--sat);top:var(--light);transform:translate(-50%,-50%); }
#sheet .ec-picker .ec-hue { width:100%;height:30px;min-height:0;appearance:none;-webkit-appearance:none;cursor:pointer;margin:0;padding:0;border:0;background:transparent; }
.ec-hue::-webkit-slider-runnable-track { height:14px;border-radius:7px;background:linear-gradient(to right,red,yellow,lime,cyan,blue,magenta,red); }
.ec-hue::-webkit-slider-thumb { -webkit-appearance:none;width:22px;height:22px;margin-top:-4px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #0004;background:var(--hue-color); }
#sheet .ec-input { display:grid;position:relative;gap:0;margin:0; }
.ec-input span { position:absolute;top:-7px;left:12px;padding:0 4px;color:var(--app-muted);background:var(--app-bg);font-size:12px; }
#sheet .ec-picker .ec-input input { width:100%;min-height:52px;padding:9px 14px;border:1px solid var(--app-line);border-radius:12px;color:var(--app-ink);background:transparent;font:400 19px/26px monospace; }
#sheet .ec-input input[aria-invalid=true] { border-color:#bd3535; }
#sheet .ec-picker #ecError { color:#bf4343; }
#sheet .ec-picker h3 { margin:0;color:var(--app-muted);font:400 16.5px/22px Inter,sans-serif;letter-spacing:.6px; }
.ec-swatches { display:flex;flex-wrap:wrap;gap:6px; }
#sheet .ec-swatches button { box-sizing:border-box;display:grid;place-items:center;padding:0;width:34px;height:34px;min-width:0;min-height:0;border:2px solid transparent;border-radius:50%;background:transparent; }
#sheet .ec-swatches button[aria-pressed=true] { border-color:var(--app-ink); }
.ec-swatches i { display:block;width:28px;height:28px;border-radius:50%;background:var(--swatch);border:1px solid #0002; }
.ec-swatches [aria-pressed=true] i { width:24px;height:24px; }
#sheet .ec-picker footer [data-ec-action=default] { color:var(--app-accent); }

/* AiryEditor.kt – the Android tablet separates tools from notebook navigation. */
.workspace .airy-tools .note-main { height:50px; padding:0; border:0; }
.workspace .airy-tools .primary-strip .tool-track { padding:0 12px; gap:6px; }
.workspace .airy-tools .primary-strip .icon { width:42px; height:42px; border-radius:10px; }
.workspace .airy-tools .primary-strip .icon img { width:23px; height:23px; }
.workspace .airy-tools .primary-strip :is([data-act=whiteboards],[data-quick-insert=box],[data-quick-insert=table]) img { width:28px; height:28px; }
.workspace .airy-tools .primary-strip .main-divider { height:24px; margin-inline:6px; background:#67554433; }
.workspace .airy-tools .primary-strip .icon.active::after { display:none; }
.workspace .airy-tools .primary-strip .icon[style*="--ink-dot"]::before,.airy-nib::after { width:5px; height:5px; right:8px; bottom:8px; }
.workspace .note-tools .primary-strip [hidden] { display:none; }
.workspace .airy-tools .note-options { height:50px; padding-inline:10px 8px; gap:0; }
.workspace .airy-tools .note-options .tool-scroll { flex:1; width:auto; }
.workspace .airy-tools .option-track { padding:0; gap:4px; margin:0; }
.workspace .airy-tools .option-track .opt-sep { height:22px; margin-inline:6px; background:var(--app-line); }
.workspace .airy-tools .note-options :is(.icon,.airy-customize,.airy-nib) { position:relative; display:grid; place-items:center; flex:none; width:38px; height:38px; min-height:0; padding:0; border:0; border-radius:10px; background:transparent; }
.workspace .airy-tools .note-options :is(.icon,.airy-customize,.airy-nib) img { width:21px; height:21px; }
.workspace .airy-tools .airy-history,.workspace .airy-tools .airy-fixed-history { display:inline-flex; flex:none; align-items:center; }
.workspace .airy-tools .airy-history { margin-left:6px; gap:4px; }
.workspace .airy-tools .size-dot { position:relative; width:36px; height:36px; background:transparent; }
.workspace .airy-tools .size-dot[aria-pressed=true]::before { content:''; position:absolute; width:26px; height:26px; border:1.5px solid color-mix(in srgb,var(--app-accent) 35%,transparent); border-radius:50%; }
.workspace .airy-tools .size-dot i { background:var(--app-subtle); }
.workspace .airy-tools .size-dot[aria-pressed=true] i { background:var(--app-accent); }
.workspace .airy-tools .airy-nib::after { content:''; position:absolute; border:1px solid var(--app-muted); border-radius:100%; background:var(--ink-dot); }
.workspace .airy-tools .ink-swatch,.workspace .airy-tools .custom-ink { width:32px; height:32px; }
.workspace .airy-tools .ink-swatch i { width:26px; height:26px; }
.workspace .airy-tools .ink-swatch[aria-pressed=true] i { width:22px; height:22px; }
.workspace .airy-tools .custom-ink::before { width:28px; height:28px; }
.workspace .airy-tools .custom-ink span { width:20px; height:20px; }
.workspace .airy-tools .option-track [data-pen-option=width] { padding-inline:8px 11px; border:0; min-height:32px; gap:6px; background:var(--app-surface2); }
.workspace .airy-tools .option-track [data-pen-option=width] img { width:15px; height:15px; }
.classic-editor .note-options .lasso-mode[aria-pressed=true],.classic-editor .note-options [data-pen-option=liveConvert][aria-pressed=true] { background:var(--app-selected); color:var(--app-ink); }

.tape-menu { position:fixed; margin:0; width:min(444px,calc(100vw - 16px)); max-height:calc(100dvh - 16px); overflow:auto; padding:10px 12px; border:1px solid var(--app-line); border-radius:10px; color:var(--app-ink); background:var(--app-surface); box-shadow:0 4px 14px #10172526; }
.tape-menu::backdrop { background:transparent; }
.tape-menu h3 { margin:0 0 8px; color:var(--app-muted); font:500 17px/1.4 Inter,sans-serif; }
.tape-menu>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(92px,1fr)); gap:8px; }
.tape-menu button { display:grid; justify-items:center; align-content:center; gap:4px; padding:8px 6px; border:1px solid var(--app-line); border-radius:10px; color:var(--app-ink); background:transparent; font:400 16px/1.3 Inter,sans-serif; }
.tape-menu button[aria-pressed=true] { background:var(--app-selected); outline:2px solid var(--app-accent); outline-offset:-2px; }

/* EditorScreen.CompactTopBar and ToolSize.Normal: fixed navigation, separate scroll tracks. */
.note-tools.compact-tools .note-main {height:52px;padding-inline:4px;justify-content:flex-start;border-bottom:0;}
.compact-tools .bar-start {flex:1 0 auto;min-width:0;max-width:48%;}
.compact-tools .bar-start h1 {display:block;min-width:0;}
.compact-tools .bar-start h1 button {padding-inline:6px;max-width:100%;}
.note-tools.compact-tools .bar-start .icon,.note-tools.compact-tools .bar-end .icon,.compact-tools .compact-actions .icon {width:44px;height:44px;flex:none;}
.compact-tools .compact-actions {flex:1 1 auto;min-width:48px;}
.compact-tools .compact-actions .tool-track {gap:0;margin:0;padding:0;}
.compact-tools .primary-strip {padding-top:2px;background:var(--note-toolbar-bg,#faf0e0);}
.compact-tools .primary-strip .tool-track {gap:4px;padding:0 8px;}
.compact-tools .primary-strip .icon {width:48px;height:46px;}
.compact-tools .primary-strip .icon img {width:34.56px;height:34.56px;}
.compact-tools .primary-strip [data-act=laser] img {width:37.26px;height:37.26px;}
.compact-tools .note-options {height:50px;}

