#sheet.editor-more {
  position:fixed; inset:auto 0 0; margin:0 auto; width:min(640px,100%); max-width:100%; padding:0;
  height:92vh; height:92dvh; max-height:100dvh; overflow:hidden; border:0; border-radius:28px 28px 0 0;
  background:var(--surface,#fffcf7); color:var(--ink,#51473d);
}
.more-history { display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:14px; padding:10px 0; }
.more-history button { display:flex; flex-flow:column; min-width:0; align-items:center; gap:6px; border:0; border-radius:8px; padding:6px; font-size:16px; }
.history-thumb { display:block; width:100%; height:140px; background:var(--app-paper,#fff); border:1px solid var(--edge); border-radius:4px; overflow:hidden; }
.history-thumb svg { width:100%; height:100%; }.more-history>p { grid-column:1/-1; }

.paper-selector,.paper-colors { display:grid; grid-template-columns:repeat(auto-fill,minmax(84px,1fr)); gap:6px; margin-bottom:13px; }
.paper-selector button,.paper-colors button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:6px 3px; min-height:44px; background:var(--surface); border:1px solid var(--edge); border-radius:10px; font:400 13px/1.35 Inter,sans-serif; }
.paper-selector button[aria-pressed=true],.paper-colors button[aria-pressed=true] { outline:2px solid var(--accent); outline-offset:-2px; }
.paper-selector .sample-paper.paper { display:block; width:46px; height:54px; min-width:0; min-height:0; margin:0; padding:0; border:1px solid var(--edge); background-size:12px 12px; }
.paper-selector .sample-paper.lines,.paper-selector .sample-paper.music,.paper-selector .sample-paper.oly { background-size:auto; }
.paper-colors .sample-color { display:block; width:26px; height:26px; border-radius:50%; border:1px solid var(--edge); background:var(--paper-swatch); }
#sheet.editor-subsheet #fields>h3 { margin:12px 0 6px; font-size:16px; }

#sheet.editor-subsheet { position:fixed; inset:auto 0 0; width:min(640px,100%); max-width:100%; max-height:92dvh; margin:0 auto; padding:0; border:0; border-radius:28px 28px 0 0; overflow:hidden; }
#sheet.editor-subsheet form { display:flex; flex-direction:column; max-height:92dvh; }
#sheet.editor-subsheet .dialog-top { flex:none; position:relative; padding:40px 20px 8px; margin:0; }
#sheet.editor-subsheet #dialogTitle { font-size:22px; font-weight:500; }
#sheet.editor-subsheet .dialog-top::before { content:""; position:absolute; top:16px; left:calc(50% - 16px); width:32px; height:4px; border-radius:4px; background:#887f72; }
#sheet.editor-subsheet #dismiss { position:absolute; top:0; left:calc(50% - 30px); width:60px; height:40px; border:0; padding:0; border-radius:20px; background:transparent; color:transparent; font-size:0; touch-action:none; }
#sheet.editor-subsheet #fields { min-height:0; overflow:auto; padding:4px 20px max(20px,env(safe-area-inset-bottom)); overscroll-behavior:contain; }
#sheet.editor-subsheet #dialogActions { flex:none; padding:2px 20px 14px; }#sheet.editor-subsheet #dialogActions:empty { display:none; }

.org-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:10px 0; }
.org-actions strong { margin-inline-end:auto; }
.org-actions button,.org-grid button,.org-archive button { color:var(--ink); background:var(--surface); border:1px solid var(--edge); border-radius:10px; min-height:44px; padding:6px 10px; font:inherit; }
.org-actions button[aria-pressed=true],.org-tile[aria-pressed=true],.org-tile[aria-current=page] { outline:2px solid var(--accent); outline-offset:-2px; }
.org-actions button:disabled { opacity:.44; }.org-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:8px; }
.org-grid .org-tile { display:flex; flex-flow:column; gap:6px; align-items:center; touch-action:pan-y; user-select:none; }
.org-grid.dragging,.org-grid.dragging .org-tile { touch-action:none; }
.org-tile .org-thumb.paper { display:block; width:100%; max-height:145px; min-height:70px; overflow:hidden; pointer-events:none; margin:0; padding:0; }
.org-thumb svg { width:100%; height:100%; }.org-archive { margin:12px 0; }.org-archive button { display:block; margin:6px 0; }

#sheet.editor-more form { display:flex; flex-direction:column; height:100%; max-height:100%; box-sizing:border-box; }
#sheet.editor-more .dialog-top { flex:none; height:44px; min-height:44px; margin:0; position:relative; }
#sheet.editor-more .dialog-top::before { content:""; position:absolute; width:32px; height:4px; border-radius:5px; background:#887f72; top:16px; left:calc(50% - 16px); }
#sheet.editor-more #dialogTitle { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
#sheet.editor-more #dismiss { position:absolute; left:calc(50% - 30px); top:0; width:60px; height:44px; padding:0; border:0; border-radius:20px; background:transparent; color:transparent; font-size:0; touch-action:none; }
#sheet.editor-more #dismiss:focus-visible { outline:2px solid var(--accent); outline-offset:-7px; }
#sheet.editor-more:focus { outline:none; }
#sheet.editor-more #fields { flex:1 1 0; padding:0 20px max(24px,env(safe-area-inset-bottom)); margin:0; overflow-y:auto; overscroll-behavior:contain; min-height:0; }
#sheet.editor-more #dialogActions { display:none; }
.more-list { display:flex; flex-direction:column; }
.more-list h3 { margin:10px 8px 2px; color:var(--muted); font:500 16px/24px Inter,sans-serif; }
.more-row { display:flex; align-items:center; text-align:start; gap:16px; padding:5px 8px; width:100%; min-height:58px; flex:none; border:0; border-radius:12px; background:transparent; color:inherit; font:400 19px/1.35 Inter,sans-serif; }
.more-row:hover,.more-row:focus-visible,.more-choices button:hover { background:var(--soft,#f5eddf); }
.more-row:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.more-row img { flex:none; width:34px; height:34px; object-fit:contain; }
.more-row span { flex:1; min-width:0; }
.more-row small,.more-choices small { max-width:40%; color:var(--muted); font:400 17px/1.3 Inter,sans-serif; text-align:end; }
.more-row[data-more=remove] { color:#a54135; }
.more-row[role=switch]::after { content:""; width:44px; height:26px; border-radius:20px; background:radial-gradient(circle at 13px 50%,#fff 8px,transparent 9px),#b2aca3; }
.more-row[role=switch][aria-checked=true]::after { background:radial-gradient(circle at 31px 50%,#fff 8px,transparent 9px),#a27244; }
.more-choices { display:grid; gap:6px; margin-bottom:12px; }
.more-choices button,.note-peer header button { min-height:44px; border:1px solid var(--edge); border-radius:12px; background:var(--surface); color:var(--ink); padding:6px 12px; font:400 16px/1.35 Inter,sans-serif; }
.more-choices>button { display:flex; align-items:center; justify-content:space-between; text-align:start; gap:10px; }
.more-choices>div { display:flex; align-items:center; gap:6px; }
.more-choices>div>button:first-child { flex:1; }
.note-tools [hidden] { display:none!important; }
.note-panes { display:grid; grid-template-columns:minmax(0,var(--first-pane,50%)) 10px minmax(0,1fr); overflow:hidden; min-width:0; min-height:0; grid-row:3; }
.note-panes>.stage,.note-peer { min-width:0; min-height:0; }
.note-splitter { background:#e6d9c5; border-inline:2px solid #f6eddd; cursor:col-resize; touch-action:none; }
.note-splitter:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.note-peer { display:flex; flex-direction:column; overflow:hidden; background:#f6ead8; }
.note-peer header { display:flex; align-items:center; gap:6px; padding:4px 8px; background:var(--surface); }
.note-peer header button:first-child { flex:1; text-align:start; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.note-peer header small { white-space:nowrap; }
.peer-scroll { flex:1; min-height:0; overflow:auto; }.peer-page.paper { display:block; width:100%; border:0; padding:0; margin:0 auto; }
.peer-page svg { display:block; width:100%; height:100%; }
.classic-editor.with-note-nav>.note-panes { margin-left:var(--nav-width); }
.classic-editor.with-ai>.note-panes { margin-left:var(--pane-size,var(--ai-w)); }
.classic-editor.with-note-nav.with-ai>.note-panes { margin-left:calc(var(--nav-width) + var(--pane-size,var(--ai-w))); }
.paper.plannerDay,.paper.plannerDay::before { background-image:linear-gradient(to right,transparent 11%,#9fb3d6 11.2%,transparent 11.4%),repeating-linear-gradient(transparent 0 62px,#cad6e6 63px,transparent 64px); }
.paper.plannerWeek,.paper.plannerWeek::before { background-size:14.2857% 144px; background-image:linear-gradient(to right,#9fb3d6 1px,transparent 1px),linear-gradient(#9fb3d6 1px,transparent 1px); }
.paper.todo,.paper.todo::before { background-size:100% 48px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='48'%3E%3Cpath d='M16 12h16v16H16z' fill='none' stroke='%239fb3d6'/%3E%3Cpath d='M0 47H800' stroke='%23cad6e6'/%3E%3C/svg%3E"); }
@media(max-width:599px) {
  .more-row { gap:12px; }.more-row small { font-size:15px; max-width:34%; }.more-row span { overflow-wrap:anywhere; }
  .note-panes { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,var(--first-pane,50%)) 10px minmax(0,1fr); }
  .note-splitter { cursor:row-resize; }.classic-editor.with-note-nav>.note-panes,.classic-editor.with-note-nav.with-ai>.note-panes { margin-left:0; }
}
