:root{--notes-border:var(--sl-line);--notes-sidebar:266px;--notes-header-height:104px}*{box-sizing:border-box}html{scrollbar-gutter:stable}body{margin:0;background:var(--sl-bg);color:var(--sl-text);font-family:'Pretendard Variable',system-ui,sans-serif;font-size:14px}h1,h2,h3{color:var(--sl-heading)}button,input,select,textarea{font:inherit;color:inherit;background:var(--sl-surface);border:1px solid var(--sl-line);border-radius:0;min-height:36px;padding:8px 12px;max-width:100%}button{cursor:pointer}button:hover{background-color:var(--sl-raised);color:var(--sl-heading)}button:disabled{opacity:.45;cursor:default}.primary{background:var(--sl-button);color:var(--sl-on-button);border-color:transparent;font-weight:600}.primary:hover{background:var(--sl-button-hover);color:var(--sl-on-button)}:is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid var(--sl-accent);outline-offset:3px}button:active{transform:translateY(1px)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip{position:absolute;left:16px;top:-100px;background:var(--sl-accent);color:var(--sl-bg);padding:12px;z-index:300}.skip:focus{top:12px}.sl-site-brand{flex:none}.sl-site-brand img{width:80px!important;height:52px!important}.brand-label{font-size:17px;font-weight:550;letter-spacing:-.03em}.sl-preferences{font-size:12px}.notes-shell{width:min(calc(100% - var(--sl-gutter)*2),var(--sl-content-width));max-width:none;padding:0;margin-inline:auto}#notes-app{display:grid;grid-template-columns:var(--notes-sidebar) minmax(0,1fr);min-height:calc(100dvh - var(--notes-header-height))}#sidebar{background:var(--sl-surface);border-right:1px solid var(--sl-line);padding:24px 16px 16px;display:flex;flex-direction:column;min-width:0;height:calc(100dvh - var(--notes-header-height));position:sticky;top:0}.sidebar-heading{display:flex;align-items:center;gap:4px;justify-content:space-between;min-height:32px}.eyebrow{font:10px/1.5 monospace;letter-spacing:.18em;color:var(--sl-muted)}.sidebar-heading .eyebrow{margin:0}.icon-button{border:0;background:transparent;min-width:36px;padding:6px;font-size:19px;line-height:1;flex:none}.sidebar-tools{display:grid;gap:3px;margin:18px 0 14px}.sidebar-tools button,#trash-view{background:transparent;border:0;text-align:left;padding:8px 10px}.sidebar-tools button[aria-current],#trash-view[aria-current]{color:var(--sl-heading);background:var(--sl-raised)}#search{width:100%;font-size:13px;background:var(--sl-bg);padding:10px}.tree-heading{margin-top:17px;color:var(--sl-muted);font-size:12px}.new-note{width:100%;margin:6px 0 10px;text-align:left}#tree{display:grid;align-content:start;gap:2px;overflow:auto;flex:1;min-height:90px;margin:4px -5px 18px;padding:0 5px}.tree-row{display:flex;align-items:center;border-radius:0;min-height:36px;gap:0}.tree-row:hover{background:var(--sl-raised)}.tree-row[aria-current]{background:var(--sl-raised);color:var(--sl-heading)}.tree-row[aria-current] .tree-name{font-weight:600}.tree-row .tree-fold{padding:0;width:24px;min-width:24px;min-height:32px;border:0;background:transparent;color:var(--sl-muted);font-size:15px}.tree-row .tree-name{flex:1;min-width:0;padding:8px 4px;border:0;background:transparent;text-align:left;display:flex;gap:8px;align-items:center;font-size:13px}.tree-name .node-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-icon{color:var(--sl-muted);font-size:15px;flex:none;width:17px}.sidebar-footer{border-top:1px solid var(--sl-line);padding-top:10px;display:grid;gap:3px;font-size:12px}.sidebar-footer button{font-size:12px}.local-banner{font:9px monospace;letter-spacing:.08em;color:var(--sl-muted);padding:8px 10px}.transfer>summary{cursor:pointer;padding:10px;min-height:36px;list-style:none}.transfer>summary:after{content:'⌄';float:right}.transfer button{display:block;width:100%;text-align:left;margin:4px 0}.transfer details{padding:6px}.transfer input{width:100%;font-size:11px}.transfer pre{max-height:180px}.editor{min-width:0}.document-bar{display:flex;align-items:center;gap:12px;min-height:59px;padding:10px 24px;border-bottom:1px solid var(--sl-line);position:sticky;top:0;z-index:50;background:var(--sl-bg)}#breadcrumbs{display:flex;align-items:center;gap:6px;overflow:hidden;flex:1;font-size:12px;color:var(--sl-muted);white-space:nowrap}#breadcrumbs button{background:none;border:0;min-height:32px;padding:6px 4px;min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--sl-muted);font-size:12px}#breadcrumbs span{overflow:hidden;text-overflow:ellipsis}#save-state{font-size:11px;color:var(--sl-muted);white-space:nowrap}#save-state[data-state=saved]:before{content:'✓ ';color:var(--sl-accent)}#save-state[data-state=error],#save-state[data-state=conflict]{color:var(--sl-error)}#save{font-size:12px;min-height:32px;padding:5px 12px}#status{margin:14px 24px 0;padding:12px 16px;background:var(--sl-surface);border:1px solid var(--sl-line);border-radius:0;font-size:13px;line-height:1.6}#status[data-error=true]{border-color:var(--sl-error)}#editor-form,.home-view{width:min(100% - 96px,900px);margin:48px auto 36px}.page-heading{display:flex;align-items:flex-start;gap:16px}#title{flex:1;width:0;min-height:60px;padding:0;background:transparent;border:0;border-radius:0;font-size:clamp(24px,2.8vw,36px);letter-spacing:-.04em;font-weight:650;line-height:1.4;color:var(--sl-heading)}#title:focus-visible{outline:0;border-bottom:1px solid var(--sl-accent)}.document-actions{display:flex;gap:4px;align-items:center;padding-top:10px}.document-actions summary{font-weight:600;letter-spacing:2px;cursor:pointer;list-style:none;min-width:36px;min-height:36px;display:flex;align-items:center;justify-content:center;border-radius:0}.document-actions summary:hover{background:var(--sl-raised)}.document-actions summary::-webkit-details-marker{display:none}#action-menu{position:relative}.action-options{position:absolute;right:0;top:100%;min-width:190px;display:grid;gap:2px;padding:6px;background:var(--sl-surface);border:1px solid var(--sl-line);box-shadow:4px 4px 0 var(--sl-line);border-radius:0;z-index:60}.action-options button{border:0;background:transparent;text-align:left;font-size:13px}.action-options button:hover{background:var(--sl-raised)}#delete{color:var(--sl-error)}.page-meta{display:flex;gap:12px;justify-content:space-between;color:var(--sl-muted);font-size:11px;margin:10px 0 30px;padding-bottom:20px;border-bottom:1px solid var(--sl-line)}#favorite[aria-pressed=true]{color:var(--sl-accent)}.notice{padding:12px 16px;border:1px solid var(--sl-control);background:var(--sl-surface);border-radius:0;margin:16px 24px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px}.notice span{flex:1;min-width:160px}.notice button{font-size:12px}#move-panel{margin:0 0 20px}#move-panel .notes-select{flex:1;min-width:180px}.folder-heading,.attachment-heading{display:flex;justify-content:space-between;gap:10px;align-items:center}.folder-heading h2,.attachment-heading h2{font-size:15px;font-weight:550;margin:0}.folder-heading button{font-size:12px}.document-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px}.document-card{background:var(--sl-surface);border:1px solid var(--sl-line);padding:20px;border-radius:0;display:flex;flex-direction:column;gap:14px;text-align:left;min-height:138px;min-width:0}.document-card:hover{border-color:var(--sl-control)}.document-card strong{font-size:15px;font-weight:550;overflow-wrap:anywhere}.document-card .snippet{color:var(--sl-muted);font-size:12px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.document-card small{font-size:10px;color:var(--sl-muted);margin-top:auto}.home-view{margin-top:72px}.home-view h1{font-size:34px;letter-spacing:-.045em;font-weight:600;margin:20px 0 14px}.home-view>p.muted{font-size:14px}.empty-list{color:var(--sl-muted);font-size:12px;padding:20px 10px;line-height:1.7;grid-column:1/-1}.attachments{border-top:1px solid var(--sl-line);padding-top:22px;margin-top:32px}.file-button{font-size:12px;color:var(--sl-muted);cursor:pointer;padding:8px;min-height:36px;display:flex;align-items:center}.file-button:hover{color:var(--sl-heading)}#attachments{padding:0;list-style:none;display:grid;gap:8px}#attachments li{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--sl-surface);border:1px solid var(--sl-line);border-radius:0}#attachments a{color:var(--sl-text);text-decoration:none;overflow-wrap:anywhere;flex:1}#attachments a:hover{text-decoration:underline}#attachments small{font-size:10px;color:var(--sl-muted)}#attachments button{font-size:11px;min-height:30px}.editor-footer{margin-top:32px;font-size:10px;color:var(--sl-muted);display:flex;justify-content:space-between;gap:10px;padding-top:16px;border-top:1px solid var(--sl-line)}.muted{color:var(--sl-muted)}.small{font-size:11px;line-height:1.7}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 Consolas,monospace;max-height:400px;overflow:auto}#preserved{margin-top:24px;border-top:1px solid var(--sl-line);padding:16px 0}#preserved summary{font-size:12px;cursor:pointer}#database{overflow:auto;margin:20px 0}#database table{border-collapse:collapse;width:100%;font-size:13px}#database :is(td,th){border:1px solid var(--sl-line);padding:10px;text-align:left}.row{display:flex;gap:10px;margin-top:24px;justify-content:flex-end}.notes-dialog{color:var(--sl-text);background:var(--sl-surface);border:1px solid var(--sl-control);border-radius:0;width:min(440px,calc(100% - 32px));padding:28px;box-shadow:4px 4px 0 var(--sl-line)}.notes-dialog::backdrop{background:var(--sl-overlay)}.notes-dialog h2{margin-top:0;font-size:20px;font-weight:550}.notes-dialog input{width:100%;margin-top:8px;background:var(--sl-bg)}.notes-dialog p{font-size:13px;line-height:1.7}.history-dialog{width:min(720px,calc(100% - 32px));max-height:85dvh}#history>div{padding:16px 0;border-top:1px solid var(--sl-line)}#history .revision-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px}#history .revision-preview{color:var(--sl-muted);padding:12px 0;font-size:12px;white-space:pre-wrap;max-height:240px;overflow:auto}#history button{font-size:12px}.notes-select{position:relative;width:100%}.notes-select>button{width:100%;text-align:left;display:flex;justify-content:space-between;gap:8px;font-weight:550}.notes-select>button:after{content:'⌄'}.notes-select>[role=listbox]{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:110;background:var(--sl-surface);border:1px solid var(--sl-control);border-radius:0;padding:5px;box-shadow:4px 4px 0 var(--sl-line);max-height:320px;overflow:auto}.notes-select [role=option]{display:flex;width:100%;border:0;background:transparent;text-align:left;min-height:40px;justify-content:space-between;font-size:13px}.notes-select [role=option]:hover,.notes-select [aria-selected=true]{background:var(--sl-raised)}.notes-select [aria-selected=true]:after{content:'✓';color:var(--sl-accent)}#sidebar-close{display:none}#notes-app.sidebar-hidden{grid-template-columns:minmax(0,1fr)}#notes-app.sidebar-hidden #sidebar{display:none}.gate{width:min(calc(100% - 48px),700px);margin:70px auto}.gate h1{font-size:36px}.button{display:inline-block;padding:12px 20px;margin-top:20px;border:1px solid var(--sl-control);color:inherit;border-radius:0}
/* Locally hosted editor, tuned to the existing SeolLab theme. */
#body-editor .toastui-editor-defaultUI{border:0;border-radius:0;background:transparent}#body-editor .toastui-editor-defaultUI-toolbar{background:var(--sl-surface);border:1px solid var(--sl-line);border-radius:0;padding:4px 8px;min-height:46px;height:auto;display:flex;align-items:center;flex-wrap:wrap}#body-editor .toastui-editor-toolbar-divider{background:var(--sl-line)}#body-editor .toastui-editor-toolbar-group{height:32px}#body-editor .toastui-editor-toolbar-icons{min-height:32px;min-width:32px;border-radius:0}#body-editor .toastui-editor-toolbar-icons:hover{background-color:var(--sl-raised)}#body-editor .toastui-editor-main{background:transparent;min-height:390px}#body-editor .toastui-editor-contents{font:16px/1.85 'Pretendard Variable',system-ui,sans-serif;color:var(--sl-text)}#body-editor .toastui-editor-contents :is(h1,h2,h3,h4,h5,h6){color:var(--sl-heading);border-color:var(--sl-line);font-family:inherit;letter-spacing:-.035em}#body-editor .toastui-editor-contents p{color:var(--sl-text);line-height:1.85}#body-editor .toastui-editor-contents a{color:var(--sl-accent)}#body-editor .toastui-editor-contents :is(td,th){border-color:var(--sl-line)}#body-editor .toastui-editor-contents th{background:var(--sl-raised)}#body-editor .toastui-editor-contents :is(td,th)>p{color:var(--sl-text)}#body-editor .toastui-editor-contents pre{background:var(--sl-surface);color:var(--sl-text)}#body-editor .toastui-editor-contents img{max-width:100%;height:auto}#body-editor .toastui-editor-ww-container{background:transparent}#body-editor .toastui-editor-ww-container .toastui-editor-contents{padding:26px 2px 32px}#body-editor .toastui-editor-md-container{background:transparent;color:var(--sl-text)}#body-editor .toastui-editor-md-container .toastui-editor{font:14px/1.8 Consolas,'Pretendard Variable',monospace;padding:24px 2px}#body-editor .toastui-editor-mode-switch{background:transparent;border-color:var(--sl-line);height:38px}#body-editor .toastui-editor-mode-switch .tab-item{background:transparent;color:var(--sl-muted);border-color:var(--sl-line);font:11px 'Pretendard Variable',system-ui,sans-serif;line-height:32px;padding:0 14px;height:32px;min-height:32px;border-radius:0}#body-editor .toastui-editor-mode-switch .tab-item.active{background:var(--sl-surface);color:var(--sl-heading)}#body-editor .toastui-editor-popup{background:var(--sl-surface);color:var(--sl-text);border:1px solid var(--sl-control);box-shadow:4px 4px 0 var(--sl-line)}#body-editor .toastui-editor-popup :is(label,h1,h2,h3,h4,h5,h6){color:var(--sl-text)}#body-editor .toastui-editor-popup :is(input,button){color:var(--sl-text);background:var(--sl-raised);border-color:var(--sl-line);font:13px 'Pretendard Variable',system-ui,sans-serif}#body-editor .toastui-editor-md-preview{padding:24px 12px}#body-editor .ProseMirror:focus{outline:0}#readonly-body{white-space:pre-wrap;line-height:1.8;color:var(--sl-muted)}
@media(max-width:1000px){:root{--notes-sidebar:240px}#editor-form,.home-view{width:calc(100% - 48px)}.document-bar{padding:10px 16px;gap:8px}}
@media(max-width:760px){#notes-app,#notes-app.sidebar-hidden{display:block}#sidebar{position:fixed;left:0;top:var(--notes-header-height);bottom:0;width:280px;height:calc(100dvh - var(--notes-header-height));z-index:90;box-shadow:none;display:none}#notes-app.sidebar-open #sidebar{display:flex}#notes-app.sidebar-open #sidebar-backdrop{display:block!important;position:fixed;inset:var(--notes-header-height) 0 0;z-index:85;border:0;border-radius:0;background:var(--sl-overlay)}#sidebar-close{display:block}.document-bar{gap:6px;padding:10px 12px;min-height:56px}#save-state{font-size:10px}#breadcrumbs{font-size:11px}#breadcrumbs button{font-size:11px;max-width:85px}#editor-form,.home-view{width:calc(100% - 36px);margin:30px auto}.page-heading{gap:4px}#title{font-size:27px;min-height:52px}.document-actions{padding-top:6px}.page-meta{margin-bottom:22px}.document-cards{grid-template-columns:1fr;gap:10px;margin-top:20px}.document-card{min-height:120px;padding:18px}.home-view h1{font-size:28px}#status,.notice{margin:12px 18px}.notice button{flex:1}.editor-footer{flex-wrap:wrap;line-height:1.6}#body-editor .toastui-editor-main{min-height:350px}#body-editor .toastui-editor-contents{font-size:15px}#body-editor .toastui-editor-defaultUI-toolbar{padding:4px;gap:0}#body-editor .toastui-editor-toolbar-divider{margin:8px 3px}#body-editor .toastui-editor-toolbar-icons{width:28px;min-width:28px;margin:0}.brand-label{font-size:16px}.attachment-heading h2{font-size:14px}.file-button{font-size:11px}#attachments li{gap:8px;padding:10px}#attachments small{display:none}.history-dialog{padding:20px}}
#save-state:empty{display:none}.toastui-editor-mode-switch .tab-item{cursor:pointer}
#body-editor .toastui-editor-popup-add-image .toastui-editor-tabs{display:none}
.blocked-image{display:inline-block;padding:8px 12px;border:1px dashed var(--sl-line);border-radius:0;font-size:12px;color:var(--sl-muted)}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}button:active{transform:none}}
/* Header popovers must sit above the sticky document bar and mobile navigation. */
html[data-seollab-service] .sl-site-header{z-index:120}
#tree{grid-template-columns:minmax(0,1fr);overflow-x:hidden}
.tree-row{min-width:0}.tree-name .node-name{min-width:0;flex:1}

/* SeolLab current design rules, reviewed 2026-10-07. Notes navigation stays independent. */
@media(max-width:640px){:root{--notes-header-height:88px}}
@media(max-width:760px){#sidebar{left:var(--sl-gutter);width:min(280px,calc(100% - var(--sl-gutter)*2))}}
.brand-label{font-size:15px;font-weight:550;letter-spacing:-.015em}
.sl-shell-inner .sl-preferences{font-size:13px}
.sl-preferences #sign-out{margin:0}
.sl-preferences #sign-out button{border:0;background:transparent;color:var(--sl-muted);font:inherit;padding:8px;white-space:nowrap}
.sl-preferences #sign-out button:hover{color:var(--sl-heading);background:var(--sl-raised)}
.sl-shell-inner :is(.sl-theme-options button,.sl-language a){min-height:44px}
button{font-weight:600}.tree-name,.sidebar-tools button,#trash-view{font-weight:550}
:is(input,textarea,select),.notes-select>button{border-color:var(--sl-control)}
.notes-select [role=option]{min-height:44px;font-weight:550}
.notes-select [aria-selected=true]{color:var(--sl-accent)}
.action-options button{min-height:44px}
.tree-row .tree-name,.sidebar-footer button,.file-button,#attachments button{font-size:13px}
.page-meta,#save-state,#save,#breadcrumbs,#breadcrumbs button,#attachments small,.editor-footer{font-size:12px}
.tree-heading{font-size:12px}.local-banner,.eyebrow{font-weight:400}
#title,.home-view h1,.gate h1,#body-editor .toastui-editor-contents :is(h1,h2,h3,h4,h5,h6){font-family:'Inter Variable','Pretendard Variable',system-ui,sans-serif}
#body-editor .toastui-editor-defaultUI{font-family:'Pretendard Variable',system-ui,sans-serif}
#body-editor :is(.toastui-editor-defaultUI-toolbar,.toastui-editor-toolbar-icons,.toastui-editor-popup,.toastui-editor-popup button,.toastui-editor-popup input,.toastui-editor-mode-switch,.toastui-editor-mode-switch .tab-item,.toastui-editor-dropdown-toolbar,.toastui-editor-tooltip){border-radius:0}
#body-editor .toastui-editor-mode-switch .tab-item{font-size:13px}
#body-editor :is(.toastui-editor-popup,.toastui-editor-dropdown-toolbar){background:var(--sl-surface);color:var(--sl-text);border:1px solid var(--sl-control);box-shadow:4px 4px 0 var(--sl-line)}
#body-editor .toastui-editor-popup :is(input,textarea){border-color:var(--sl-control);border-radius:0;background:var(--sl-bg);font-family:'Pretendard Variable',system-ui,sans-serif}
#body-editor .toastui-editor-popup button{min-height:44px;height:auto;font-weight:600}
#body-editor .toastui-editor-popup .toastui-editor-ok-button{background:var(--sl-button);color:var(--sl-on-button);outline-color:var(--sl-accent)}
#body-editor .toastui-editor-popup .toastui-editor-ok-button:hover{background:var(--sl-button-hover)}
#body-editor .toastui-editor-popup .toastui-editor-close-button{background:transparent;color:var(--sl-text);border:1px solid var(--sl-control)}
#body-editor .toastui-editor-defaultUI-toolbar button{border-color:transparent}
#body-editor .toastui-editor-defaultUI-toolbar button:not(:disabled):hover{background-color:var(--sl-raised);border-color:var(--sl-control)}
#body-editor .toastui-editor-defaultUI-toolbar button.active{border-color:var(--sl-accent);background-color:var(--sl-raised)}
#body-editor .toastui-editor-toolbar-icons.active{background-position-y:3px}
#body-editor .toastui-editor-dark .toastui-editor-toolbar-icons.active{background-position-y:-49px}
#body-editor :is(.toastui-editor-tooltip,.toastui-editor-tooltip .arrow){background:var(--sl-heading);color:var(--sl-bg);box-shadow:none}
#body-editor .toastui-editor-tooltip{font-family:'Pretendard Variable',system-ui,sans-serif}
#body-editor .toastui-editor-contents .task-list-item::before{background-image:none;background-color:transparent;border:1px solid var(--sl-control);border-radius:0;box-sizing:border-box}
#body-editor .toastui-editor-contents .task-list-item.checked::before{content:'✓';background-image:none;background-color:var(--sl-accent);border-color:var(--sl-accent);color:var(--sl-bg);font:600 14px/16px 'Pretendard Variable',sans-serif;text-align:center}
#body-editor .ProseMirror-selectednode{outline-color:var(--sl-accent)}
#body-editor li.ProseMirror-selectednode:after{border-color:var(--sl-accent)}
#body-editor .toastui-editor-popup-add-table .toastui-editor-table-cell{background:var(--sl-bg);border-color:var(--sl-control)}
#body-editor .toastui-editor-popup-add-table .toastui-editor-table-cell.header{background:var(--sl-raised)}
#body-editor .toastui-editor-popup-add-table .toastui-editor-table-selection-layer{background:var(--sl-accent);border-color:var(--sl-accent);opacity:.2}
#body-editor .toastui-editor-popup-add-table .toastui-editor-table-description{color:var(--sl-text)}
#body-editor .toastui-editor-md-tab-container{background:var(--sl-surface);border-color:var(--sl-line);border-radius:0}
#body-editor .toastui-editor-md-tab-container .tab-item{background:var(--sl-surface);color:var(--sl-muted);border-color:var(--sl-line);border-radius:0;font-family:'Pretendard Variable',sans-serif;font-size:13px}
#body-editor .toastui-editor-md-tab-container .tab-item.active{background:var(--sl-raised);color:var(--sl-heading);border-color:var(--sl-control)}
#body-editor :is(.toastui-editor-md-delimiter,.toastui-editor-md-meta,.toastui-editor-md-html,.toastui-editor-md-thematic-break,.toastui-editor-md-table,.toastui-editor-md-block-quote){color:var(--sl-muted)}
#body-editor :is(.toastui-editor-md-table-cell,.toastui-editor-md-marked-text){color:var(--sl-text)}
#body-editor :is(.toastui-editor-md-link,.toastui-editor-md-link.toastui-editor-md-link-desc.toastui-editor-md-marked-text,.toastui-editor-md-list-item-style.toastui-editor-md-list-item-odd,.toastui-editor-md-list-item-style.toastui-editor-md-list-item-even){color:var(--sl-accent)}
#body-editor .toastui-editor-md-code{background:var(--sl-surface);color:var(--sl-text);border-radius:0}
#body-editor .toastui-editor-md-code.toastui-editor-md-marked-text{color:var(--sl-text)}
#body-editor :is(.toastui-editor-md-heading,.toastui-editor-md-strong){color:var(--sl-heading)}
#body-editor .toastui-editor-md-link.toastui-editor-md-link-url.toastui-editor-md-marked-text{color:var(--sl-muted)}
#body-editor .toastui-editor-md-code-block-line-background{background:var(--sl-surface)}
#body-editor .toastui-editor-popup input:focus{outline-color:var(--sl-accent)}
#body-editor .toastui-editor-popup :is(input,span).wrong{border-color:var(--sl-error)}
#body-editor .toastui-editor-popup-add-image .toastui-editor-file-name{background:var(--sl-bg);color:var(--sl-muted);border-color:var(--sl-control);border-radius:0}
#body-editor .toastui-editor-popup-add-image .toastui-editor-file-name.has-file{color:var(--sl-text)}
#body-editor .toastui-editor-popup-add-image .toastui-editor-file-select-button{background:var(--sl-raised);color:var(--sl-text);border-color:var(--sl-control);border-radius:0}
#body-editor .toastui-editor-popup-add-heading li{min-height:44px;display:flex;align-items:center}
#body-editor .toastui-editor-popup-add-heading li:hover{background:var(--sl-raised)}
#body-editor .toastui-editor-context-menu{background:var(--sl-surface);color:var(--sl-text);border:1px solid var(--sl-control);border-radius:0;box-shadow:4px 4px 0 var(--sl-line);font-family:'Pretendard Variable',system-ui,sans-serif}
#body-editor .toastui-editor-context-menu .menu-group{border-color:var(--sl-line);color:var(--sl-text)}
#body-editor .toastui-editor-context-menu .menu-item{height:44px;line-height:44px}
#body-editor .toastui-editor-context-menu li:not(.disabled):hover{background:var(--sl-raised)}
#body-editor .toastui-editor-context-menu li.disabled{color:var(--sl-muted)}
#body-editor .toastui-editor-contents :is(div,ul,ol){color:var(--sl-text)}
#body-editor .toastui-editor-contents :is(del,blockquote,blockquote p){color:var(--sl-muted)}
#body-editor .toastui-editor-contents :is(blockquote,table,hr){border-color:var(--sl-line)}
#body-editor .toastui-editor-contents ul>li:not(.task-list-item)::before{background-color:var(--sl-muted)}
#body-editor .toastui-editor-contents a:hover{color:var(--sl-accent)}
#body-editor .toastui-editor-contents code{background:var(--sl-surface);color:var(--sl-text);border-radius:0}
#body-editor .toastui-editor-contents pre code{background:transparent;color:var(--sl-text)}
#body-editor .toastui-editor-contents :is(td,th).toastui-editor-cell-selected{background:var(--sl-raised);box-shadow:inset 0 0 0 2px var(--sl-accent)}
#body-editor .toastui-editor-ww-code-block-language{background:var(--sl-surface);color:var(--sl-text);border-color:var(--sl-control);border-radius:0}
#body-editor .toastui-editor-ww-code-block-language input{color:var(--sl-text);outline-color:var(--sl-accent)}
#body-editor .toastui-editor-contents .toastui-editor-ww-code-block:after{background-color:var(--sl-raised);color:var(--sl-text);border-color:var(--sl-control);border-radius:0}
#body-editor .toastui-editor-main .toastui-editor-md-splitter{background:var(--sl-line)}
#body-editor .toastui-editor-defaultUI-toolbar .scroll-sync::before{color:var(--sl-muted)}
#body-editor .toastui-editor-defaultUI-toolbar .scroll-sync.active::before{color:var(--sl-accent)}
#body-editor .toastui-editor-defaultUI-toolbar .switch{background:var(--sl-control);border-radius:0}
#body-editor .toastui-editor-defaultUI-toolbar .switch::before{background:var(--sl-text);border-radius:0}
#body-editor .toastui-editor-defaultUI-toolbar input:checked+.switch{background:var(--sl-surface)}
#body-editor .toastui-editor-defaultUI-toolbar input:checked+.switch::before{background:var(--sl-accent)}
.action-options{border-color:var(--sl-control)}
#body-editor .toastui-editor-defaultUI{color:var(--sl-text)}
/* Editor positioning otherwise places a 300px popup left of narrow documents. */
@media(max-width:760px){
 #body-editor .toastui-editor-popup{left:0!important;right:auto!important;margin-left:0;width:min(300px,100%);max-width:100%}
 #body-editor .toastui-editor-dropdown-toolbar{left:auto!important;right:0!important;max-width:100%;height:auto;flex-wrap:wrap}
}
.typed-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:20px 0}.typed-toolbar select{max-width:320px}.typed-toolbar input{flex:1;min-width:120px}.database-scroll{overflow:auto;max-width:100%}#database table input,#database table select{min-width:130px;max-width:240px;font:inherit}#database table input[type=checkbox]{min-width:0}#database details label{display:block;margin:12px 0}#database details input,#database details select,#database textarea{display:block;width:100%;margin-top:6px}#database textarea{min-height:120px}#database details{max-width:420px}#database summary{cursor:pointer}.database-board{display:flex;gap:16px;overflow:auto;padding-bottom:12px}.board-column{flex:0 0 260px;border:1px solid var(--sl-line);padding:12px;background:var(--sl-surface)}.database-row-card{padding:12px;border:1px solid var(--sl-line);margin:12px 0;background:var(--sl-bg)}.database-calendar{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));gap:1px;min-width:700px;margin-top:16px}.database-results{overflow:auto}.calendar-day{min-height:110px;border:1px solid var(--sl-line);padding:8px}.whiteboard-stage{overflow:auto;border:1px solid var(--sl-line);background:#fff}.whiteboard-stage svg{display:block;width:100%;min-width:600px;min-height:380px;max-height:700px}.whiteboard-stage [data-element-id]{cursor:pointer}.whiteboard-stage [data-element-id]:focus{outline:2px solid var(--sl-accent)}.scene-properties{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;align-items:end}.scene-properties label{display:grid;gap:6px}.scene-properties input{max-width:140px}.scene-properties textarea{max-width:320px}#history pre{white-space:pre-wrap;overflow-wrap:anywhere}

/* Vector toolbar: no bitmap sprite offsets, identical geometry in both themes. */
#body-editor .toastui-editor-toolbar{height:auto;min-height:50px}
#body-editor .toastui-editor-defaultUI-toolbar{padding:6px;gap:0;min-height:50px}
#body-editor .toastui-editor-toolbar-group{display:flex;align-items:center;height:36px;gap:2px;float:none}
#body-editor .toastui-editor-toolbar-divider{height:20px;margin:0 8px;align-self:center}
#body-editor .toastui-editor-toolbar-icons{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;margin:0;border:1px solid transparent;background-image:none!important;color:var(--sl-text);opacity:1}
#body-editor .toastui-editor-toolbar-icons::before{content:'';display:block;width:22px;height:22px;flex:none;background-color:currentColor;mask:var(--notes-tool-icon) center/contain no-repeat;-webkit-mask:var(--notes-tool-icon) center/contain no-repeat}
#body-editor .toastui-editor-toolbar-icons.active{color:var(--sl-accent)}
#body-editor .toastui-editor-toolbar-icons:disabled{opacity:.35}
#body-editor .toastui-editor-dropdown-toolbar{height:auto;padding:6px;gap:2px}
#body-editor .toastui-editor-toolbar-icons.heading{--notes-tool-icon:url('/assets/icons/heading.svg')}
#body-editor .toastui-editor-toolbar-icons.bold{--notes-tool-icon:url('/assets/icons/bold.svg')}
#body-editor .toastui-editor-toolbar-icons.italic{--notes-tool-icon:url('/assets/icons/italic.svg')}
#body-editor .toastui-editor-toolbar-icons.strike{--notes-tool-icon:url('/assets/icons/strike.svg')}
#body-editor .toastui-editor-toolbar-icons.hrline{--notes-tool-icon:url('/assets/icons/hrline.svg')}
#body-editor .toastui-editor-toolbar-icons.quote{--notes-tool-icon:url('/assets/icons/quote.svg')}
#body-editor .toastui-editor-toolbar-icons.bullet-list{--notes-tool-icon:url('/assets/icons/bullet-list.svg')}
#body-editor .toastui-editor-toolbar-icons.ordered-list{--notes-tool-icon:url('/assets/icons/ordered-list.svg')}
#body-editor .toastui-editor-toolbar-icons.task{--notes-tool-icon:url('/assets/icons/task.svg')}
#body-editor .toastui-editor-toolbar-icons.task-list{--notes-tool-icon:url('/assets/icons/task.svg')}
#body-editor .toastui-editor-toolbar-icons.table{--notes-tool-icon:url('/assets/icons/table.svg')}
#body-editor .toastui-editor-toolbar-icons.link{--notes-tool-icon:url('/assets/icons/link.svg')}
#body-editor .toastui-editor-toolbar-icons.image{--notes-tool-icon:url('/assets/icons/image.svg')}
#body-editor .toastui-editor-toolbar-icons.code{--notes-tool-icon:url('/assets/icons/code.svg')}
#body-editor .toastui-editor-toolbar-icons.codeblock{--notes-tool-icon:url('/assets/icons/codeblock.svg')}
#body-editor .toastui-editor-toolbar-icons.more{--notes-tool-icon:url('/assets/icons/more.svg')}
#body-editor .toastui-editor-toolbar-icons.indent{--notes-tool-icon:url('/assets/icons/indent.svg')}
#body-editor .toastui-editor-toolbar-icons.outdent{--notes-tool-icon:url('/assets/icons/outdent.svg')}
.notes-dialog label{display:block;font-size:13px;font-weight:550}
.notes-dialog input{min-height:44px;padding:10px 12px;line-height:1.5}
.notes-dialog input:focus-visible{outline:2px solid var(--sl-accent);outline-offset:2px}
.notes-dialog input[aria-invalid=true]{border-color:var(--sl-error)}
.notes-dialog .field-error{margin:10px 0 0;color:var(--sl-error);font-size:13px;line-height:1.5}
.notes-dialog .row button{min-height:44px;min-width:80px}
#body-editor .toastui-editor-defaultUI:has(.toastui-editor-popup[style*="display: block"]) .toastui-editor-tooltip{display:none!important}
#body-editor .toastui-editor-defaultUI:has(.toastui-editor-dropdown-toolbar:not([style*="display: none"])) .toastui-editor-tooltip{display:none!important}
#body-editor .toastui-editor-defaultUI-toolbar:not(:has(.toastui-editor-toolbar-icons:hover)) .toastui-editor-tooltip{display:none!important}
@media(max-width:760px){#editor-form,.home-view{width:100%}.document-bar{padding-inline:0}#status,.notice{margin-inline:0}}
@media(pointer:coarse){#body-editor .toastui-editor-toolbar-group{height:44px}#body-editor .toastui-editor-toolbar-icons{height:44px;width:44px;min-height:44px;min-width:44px}}
