/* 备忘录页占满整个电脑端屏幕：覆盖全站 .app / .main-content 的宽度限制 */
body.page-notes-full .app { max-width: 100%; }
body.page-notes-full .main-content { max-width: 100%; border-right: 0; }
/* ===================== 在线备忘录 Notes ===================== */
/* 主题变量定义在 :root，确保位于 .nt-app 之外的弹窗遮罩 / 提示（#ntOverlay、#ntToast）也能正确继承，
   否则固定定位的弹窗脱离 .nt-app 作用域后 var(--nt-*) 无法解析，弹窗背景会变透明。 */
:root {
    --nt-bg: var(--bg-secondary, #fff);
    --nt-border: var(--border-color, #e5e7eb);
    --nt-text: var(--text-primary, #1f2937);
    --nt-sub: var(--text-secondary, #6b7280);
    --nt-accent: var(--accent, #0a7cff);
    --nt-hover: var(--bg-hover, #f3f4f6);
    --nt-danger: #e5484d;
    --nt-radius: 12px;
}
.nt-app {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    min-height: 420px;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 12px 24px;
}
/* 顶部栏 */
.nt-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px 10px;
    flex: none;
}
.nt-logo { font-size: 20px; font-weight: 800; margin: 0; white-space: nowrap; color: var(--nt-text); }
.nt-logo .nt-logo-ico { margin-right: 6px; }
.nt-search {
    flex: 1;
    max-width: 420px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--nt-hover);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 14px;
    transition: border-color .15s, background .15s;
}
.nt-search:focus-within { border-color: var(--nt-accent); background: var(--nt-bg); }
.nt-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--nt-text);
    min-width: 0;
}
.nt-search .nt-search-ico { color: var(--nt-sub); font-size: 14px; }
.nt-top-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.nt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--nt-border);
    background: var(--nt-bg);
    color: var(--nt-text);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 14px;
    cursor: pointer;
    transition: background .15s, border-color .15s, opacity .15s;
    white-space: nowrap;
    user-select: none;
}
.nt-btn:hover { background: var(--nt-hover); }
.nt-btn:active { opacity: .8; }
.nt-btn.nt-primary { background: var(--nt-accent); border-color: var(--nt-accent); color: #fff; }
.nt-btn.nt-primary:hover { filter: brightness(1.08); background: var(--nt-accent); }
.nt-btn.nt-ghost { background: transparent; border-color: transparent; }
.nt-btn.nt-danger { color: var(--nt-danger); }
.nt-icon-btn { padding: 7px 9px; font-size: 15px; }
.nt-btn:disabled { opacity: .45; cursor: not-allowed; }
/* 主体三栏 */
.nt-body {
    flex: 1;
    display: flex;
    gap: 0;
    min-height: 0;
    position: relative;
}
/* --- 侧边栏 --- */
.nt-sidebar {
    width: 230px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: var(--nt-bg);
    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);
    padding: 10px 8px;
    overflow-y: auto;
    min-height: 0;
}
.nt-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--nt-text);
    font-size: 14px;
    user-select: none;
    margin-bottom: 2px;
}
.nt-nav-item:hover { background: var(--nt-hover); }
.nt-nav-item.nt-active { background: rgba(10,124,255,.12); color: var(--nt-accent); font-weight: 600; }
.nt-nav-item .nt-ico { font-size: 16px; width: 20px; text-align: center; flex: none; }
.nt-nav-item .nt-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-nav-item .nt-count {
    font-size: 12px;
    color: var(--nt-sub);
    background: var(--nt-hover);
    border-radius: 999px;
    padding: 1px 8px;
    flex: none;
}
.nt-nav-item.nt-active .nt-count { background: var(--nt-accent); color: #fff; }
.nt-nav-item.nt-folder-row { position: relative; }
.nt-nav-item .nt-folder-more {
    width: 24px; height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 14px;
    color: var(--nt-sub);
    flex: none;
}
.nt-nav-item:hover .nt-folder-more { display: inline-flex; }
.nt-nav-item .nt-folder-more:hover { background: var(--nt-border); color: var(--nt-text); }
.nt-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 10px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--nt-sub);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nt-section-title .nt-add-folder {
    margin-left: auto;
    width: 22px; height: 22px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: var(--nt-sub);
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nt-section-title .nt-add-folder:hover { background: var(--nt-hover); color: var(--nt-text); }

/* 栏宽拖拽分隔条（桌面）：宽度为 0 实现栏间无间距，用 ::after 透明命中区拖拽，hover 时才显色 */
.nt-resizer {
    flex: 0 0 0;
    width: 0;
    position: relative;
    z-index: 5;
}
.nt-resizer::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4px;
    right: -4px;
    cursor: col-resize;
}
.nt-resizer:hover::after, .nt-resizer.nt-resizing::after { background: var(--nt-accent, #4a8cff); opacity: .5; }

.nt-folder-menu {
    position: absolute;
    right: 4px;
    top: calc(100% + 2px);
    z-index: 30;
    min-width: 140px;
    background: var(--nt-bg);
    border: 1px solid var(--nt-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 4px;
    display: none;
}
.nt-folder-menu.nt-open { display: block; }
.nt-folder-menu .nt-fmenu-item {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: var(--nt-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.nt-folder-menu .nt-fmenu-item:hover { background: var(--nt-hover); }
.nt-folder-menu .nt-fmenu-item.nt-danger-c { color: var(--nt-danger); }
/* --- 列表栏 --- */
.nt-list {
    width: 320px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: var(--nt-bg);
    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);
    min-height: 0;
}
.nt-list-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 8px;
    border-bottom: 1px solid var(--nt-border);
    flex: none;
}
.nt-list-title { font-size: 17px; font-weight: 700; color: var(--nt-text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-list-tools { display: flex; align-items: center; gap: 6px; }
.nt-sort {
    border: 1px solid var(--nt-border);
    background: var(--nt-bg);
    border-radius: 7px;
    padding: 5px 6px;
    font-size: 12px;
    color: var(--nt-text);
    outline: none;
    cursor: pointer;
    max-width: 96px;
}
.nt-items { flex: 1; overflow-y: auto; padding: 6px; min-height: 0; }
.nt-item {
    position: relative;
    display: flex;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 4px;
    transition: background .12s, border-color .12s;
    align-items: flex-start;
}
.nt-item:hover { background: var(--nt-hover); }
.nt-item-exp {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--nt-bg, #fff);
    color: var(--nt-sub);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    transition: opacity .12s, background .12s, color .12s;
}
.nt-item:hover .nt-item-exp { opacity: 1; }
.nt-item-exp:hover { background: var(--nt-accent); color: #fff; }
.nt-item.nt-active .nt-item-exp { background: var(--nt-bg, #fff); }
.nt-item.nt-active { background: rgba(10,124,255,.10); border-color: rgba(10,124,255,.35); }
.nt-item .nt-checkbox {
    width: 18px; height: 18px;
    border: 2px solid var(--nt-border);
    border-radius: 50%;
    flex: none;
    margin-top: 2px;
    transition: all .12s;
}
.nt-item .nt-checkbox.nt-checked { background: var(--nt-accent); border-color: var(--nt-accent); }
.nt-item .nt-checkbox.nt-checked::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 700;
}
.nt-item-main { flex: 1; min-width: 0; }
.nt-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--nt-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nt-item-preview {
    font-size: 12.5px;
    color: var(--nt-sub);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nt-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--nt-sub);
    margin-top: 4px;
}
.nt-item-meta .nt-badge {
    background: var(--nt-hover);
    border-radius: 999px;
    padding: 0 7px;
    font-size: 11px;
}
.nt-empty-list {
    padding: 48px 16px;
    text-align: center;
    color: var(--nt-sub);
    font-size: 14px;
}
.nt-empty-list .nt-eico { font-size: 40px; margin-bottom: 10px; }
/* 批量操作条 */
.nt-multibar {
    flex: none;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-top: 1px solid var(--nt-border);
    flex-wrap: wrap;
}
.nt-multibar.nt-open { display: flex; }
.nt-multibar .nt-btn { padding: 5px 10px; font-size: 13px; }
/* --- 编辑区 --- */
.nt-editor {
    flex: 1;
    min-width: 0;
    display: none;
    flex-direction: column;
    background: var(--nt-bg);
    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);
    min-height: 0;
}
.nt-editor.nt-on { display: flex; }
.nt-editor-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--nt-border);
    flex: none;
}
.nt-editor-actions { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nt-editor-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px 40px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.nt-title-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 22px;
    font-weight: 700;
    color: var(--nt-text);
    padding: 2px 0 10px;
}
.nt-title-input::placeholder { color: var(--nt-sub); opacity: .6; }
/* 工具栏 */
.nt-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--nt-border);
    border-bottom: 1px solid var(--nt-border);
    margin-bottom: 10px;
    user-select: none;
    flex: none;
}
.nt-tb-btn {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    color: var(--nt-text);
    padding: 0 6px;
}
.nt-tb-btn:hover { background: var(--nt-hover); }
.nt-tb-btn.nt-tb-on { background: rgba(10,124,255,.14); color: var(--nt-accent); }
.nt-tb-btn.nt-tb-bold { font-weight: 800; }
.nt-tb-btn.nt-tb-italic { font-style: italic; font-family: Georgia, serif; }
.nt-tb-btn.nt-tb-underline { text-decoration: underline; }
.nt-tb-sep { width: 1px; height: 18px; background: var(--nt-border); margin: 0 4px; flex: none; }
/* 编辑正文 */
.nt-editor-body {
    flex: 1;
    outline: 0;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--nt-text);
    min-height: 120px;
    word-break: break-word;
}
.nt-editor-body:empty::before {
    content: attr(data-placeholder);
    color: var(--nt-sub);
    opacity: .55;
    pointer-events: none;
}
.nt-editor-body h1, .nt-editor-body h2, .nt-editor-body h3, .nt-editor-body h4 {
    color: var(--nt-text);
    margin: 14px 0 6px;
    font-weight: 700;
    line-height: 1.35;
}
.nt-editor-body h1 { font-size: 24px; }
.nt-editor-body h2 { font-size: 20px; }
.nt-editor-body h3 { font-size: 17px; }
.nt-editor-body h4 { font-size: 15px; }
.nt-editor-body p { margin: 4px 0; }
.nt-editor-body ul, .nt-editor-body ol { margin: 6px 0; padding-left: 24px; }
.nt-editor-body li { margin: 2px 0; }
.nt-editor-body a { color: var(--nt-accent); text-decoration: underline; }
.nt-editor-body blockquote {
    margin: 8px 0;
    padding: 6px 14px;
    border-left: 3px solid var(--nt-accent);
    background: var(--nt-hover);
    border-radius: 0 8px 8px 0;
    color: var(--nt-sub);
}
.nt-editor-body pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0;
}
.nt-editor-body pre code { background: transparent; padding: 0; font-size: inherit; }
.nt-editor-body code {
    background: var(--nt-hover);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: 13px;
    font-family: 'Cascadia Code', Consolas, Menlo, monospace;
}
.nt-editor-body img { max-width: 100%; border-radius: 10px; margin: 6px 0; }
.nt-editor-body hr { border: 0; border-top: 1px solid var(--nt-border); margin: 12px 0; }
.nt-editor-body table { border-collapse: collapse; margin: 8px 0; max-width: 100%; }
.nt-editor-body th, .nt-editor-body td { border: 1px solid var(--nt-border); padding: 6px 10px; font-size: 14px; }
.nt-editor-body th { background: var(--nt-hover); font-weight: 700; }
/* 待办清单 */
.nt-editor-body .nt-todo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 3px 0;
    cursor: default;
    position: relative;
}
.nt-editor-body .nt-todo > span:first-child {
    flex: none;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 2px;
    user-select: none;
}
.nt-editor-body .nt-todo > span:first-child:hover { background: var(--nt-hover); }
.nt-editor-body .nt-todo[data-checked="1"] > span:first-child { color: var(--nt-accent); text-decoration: none; }
.nt-editor-body .nt-todo[data-checked="1"] { color: var(--nt-sub); text-decoration: line-through; }
/* 编辑区底部 meta */
.nt-editor-meta {
    flex: none;
    padding: 8px 14px;
    border-top: 1px solid var(--nt-border);
    font-size: 12px;
    color: var(--nt-sub);
    display: flex;
    align-items: center;
    gap: 12px;
}
.nt-save-state { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.nt-save-state .nt-save-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}
.nt-save-state.nt-saving .nt-save-dot { background: #f59e0b; animation: ntPulse 1s infinite; }
@keyframes ntPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
/* 空状态 */
.nt-empty {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed var(--nt-border);
    border-radius: var(--nt-radius);
    color: var(--nt-sub);
}
.nt-empty .nt-empty-ico { font-size: 52px; opacity: .7; }
.nt-empty .nt-empty-text { font-size: 15px; }
/* 移动返回按钮 */
.nt-back { display: none; }
/* 模态框 */
.nt-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.nt-overlay.nt-open { display: flex; }
.nt-modal {
    width: 100%;
    max-width: 400px;
    background: var(--nt-bg);
    border: 1px solid var(--nt-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: ntPop .18s ease;
}
@keyframes ntPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.nt-modal-title { font-size: 16px; font-weight: 700; color: var(--nt-text); margin: 0 0 14px; }
.nt-modal-input {
    width: 100%;
    border: 1px solid var(--nt-border);
    background: var(--nt-bg);
    color: var(--nt-text);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.nt-modal-input:focus { border-color: var(--nt-accent); }
.nt-modal-msg { font-size: 14px; color: var(--nt-sub); line-height: 1.6; margin-bottom: 14px; }
.nt-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.nt-folder-pick { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nt-folder-pick .nt-fpick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--nt-text);
}
.nt-folder-pick .nt-fpick-item:hover { background: var(--nt-hover); }
.nt-folder-pick .nt-fpick-item.nt-active { background: rgba(10,124,255,.12); color: var(--nt-accent); font-weight: 600; }
/* Toast */
.nt-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(17,24,39,.92);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: all .25s;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.nt-toast.nt-show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 移动端侧边栏抽屉遮罩 */
.nt-drawer-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 40;
    display: none;
    border-radius: var(--nt-radius);
}
/* ============ 响应式 ============ */
@media (max-width: 1100px) {
    .nt-sidebar { width: 200px; }
    .nt-list { width: 280px; }
}
@media (max-width: 900px) {
    .nt-app { height: calc(100vh - 64px); }
    .nt-sidebar {
        position: absolute;
        left: 0; top: 0; bottom: 0;
        z-index: 50;
        width: 250px;
        box-shadow: 0 12px 40px rgba(0,0,0,.18);
        transform: translateX(-105%);
        transition: transform .22s ease;
        border-radius: var(--nt-radius) 0 0 var(--nt-radius);
    }
    .nt-sidebar.nt-open { transform: translateX(0); }
    .nt-drawer-mask.nt-open { display: block; }
    .nt-back { display: inline-flex; }
    .nt-list, .nt-editor, .nt-empty { display: none; }
    .nt-list.nt-panel-on, .nt-editor.nt-panel-on, .nt-empty.nt-panel-on { display: flex; }
    .nt-body .nt-list { width: 100%; }
    /* 移动端靠面板切换，隐藏拖拽分隔条并清除内联宽度 */
    .nt-resizer { display: none; }
    .nt-sidebar[style], .nt-list[style] { width: auto !important; flex: none !important; }
}
@media (max-width: 600px) {
    .nt-app { height: calc(100dvh - 53px - 12px); padding: 4px 6px 12px; }
    .nt-logo { font-size: 17px; }
    .nt-topbar { flex-wrap: wrap; gap: 6px; }
    .nt-search { order: 3; max-width: none; flex-basis: 100%; }
    .nt-editor-scroll { padding: 12px 14px 32px; }
    .nt-title-input { font-size: 19px; }
    .nt-editor-body { font-size: 15px; }
}
/* ============ 在线画板 ============ */
.nt-draw-wrap { margin-top: 10px; }
.nt-draw-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end;
    padding: 10px 12px; background: var(--nt-hover);
    border: 1px solid var(--nt-border); border-radius: 10px; margin-bottom: 10px;
}
.nt-draw-group { display: flex; align-items: center; gap: 6px; }
.nt-draw-label { font-size: 12px; color: var(--nt-sub); white-space: nowrap; }
.nt-draw-label em { font-style: normal; color: var(--nt-accent); font-weight: 700; margin-left: 2px; }
.nt-draw-swatch {
    width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15);
    cursor: pointer; padding: 0; transition: transform .12s;
}
.nt-draw-swatch:hover { transform: scale(1.12); }
.nt-draw-btn {
    font-size: 13px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
    border: 1px solid var(--nt-border); background: var(--nt-bg); color: var(--nt-text);
    transition: all .15s;
}
.nt-draw-btn:hover { background: var(--nt-hover); }
.nt-draw-btn.nt-active { background: rgba(10,124,255,.14); color: var(--nt-accent); border-color: var(--nt-accent); }
.nt-draw-btn.nt-danger { color: var(--nt-danger); }
.nt-draw-group input[type="color"] {
    width: 30px; height: 26px; border: 1px solid var(--nt-border); border-radius: 6px;
    padding: 2px; background: var(--nt-bg); cursor: pointer;
}
.nt-draw-group input[type="range"] { width: 120px; vertical-align: middle; accent-color: var(--nt-accent); }
.nt-draw-canvas-area {
    flex: 1; min-height: 360px; border: 1px solid var(--nt-border); border-radius: 12px;
    overflow: hidden; background: #fff; touch-action: none; position: relative;
}
#ntDrawCanvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
#ntDrawExportGroup { position: relative; }
.nt-draw-export {
    position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
    min-width: 230px; padding: 12px; background: var(--nt-bg);
    border: 1px solid var(--nt-border); border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,.18); text-align: left;
}
.nt-draw-export[hidden] { display: none; }
.nt-de-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.nt-de-row:last-child { margin-bottom: 0; }
.nt-de-fmt { font-size: 13px; color: var(--nt-text); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nt-de-fmt input { accent-color: var(--nt-accent); }
.nt-de-actions { display: flex; gap: 8px; justify-content: flex-end; }
.nt-draw-btn.nt-primary { background: var(--nt-accent); color: #fff; border-color: var(--nt-accent); }
.nt-bg-transparent.nt-active { background: var(--nt-accent); color: #fff; border-color: var(--nt-accent); }
/* 画板全屏显示（原生 Fullscreen API + iOS 等不支持时的伪全屏降级） */
.nt-draw-wrap:fullscreen,
.nt-draw-wrap:-webkit-full-screen {
    margin: 0 !important; width: 100vw; height: 100vh;
    display: flex; flex-direction: column;
    background: var(--nt-bg); padding: 8px; box-sizing: border-box;
}
.nt-draw-wrap:fullscreen .nt-draw-toolbar,
.nt-draw-wrap:-webkit-full-screen .nt-draw-toolbar { margin-bottom: 8px; }
.nt-draw-wrap:fullscreen .nt-draw-canvas-area,
.nt-draw-wrap:-webkit-full-screen .nt-draw-canvas-area { flex: 1; min-height: 0; }
.nt-draw-fs-pe {
    position: fixed; inset: 0; z-index: 2147483000;
    margin: 0 !important; width: 100vw; height: 100vh;
    display: flex; flex-direction: column;
    background: var(--nt-bg); padding: 8px; box-sizing: border-box;
}
.nt-draw-fs-pe .nt-draw-toolbar { margin-bottom: 8px; }
.nt-draw-fs-pe .nt-draw-canvas-area { flex: 1; min-height: 0; }
@media (max-width: 600px) {
    .nt-draw-toolbar { gap: 8px 10px; padding: 8px; }
    .nt-draw-group input[type="range"] { width: 84px; }
    .nt-draw-canvas-area { min-height: 300px; }
    .nt-draw-export { right: 0; left: 0; min-width: 0; }
}

/* ============ 导出多格式 ============ */
.nt-exp-group { margin: 4px 0 12px; }
.nt-exp-label { font-size: 13px; color: var(--nt-sub); margin: 10px 0 6px; }
.nt-exp-fmt { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--nt-text); }
.nt-exp-fmt:hover { background: var(--nt-hover); }
.nt-exp-fmt input { accent-color: var(--nt-accent); }
.nt-exp-img { margin-top: 4px; padding: 10px 12px; background: var(--nt-hover); border-radius: 10px; }
.nt-exp-img[hidden] { display: none; }
.nt-exp-img input[type=range] { width: 100%; accent-color: var(--nt-accent); margin-top: 4px; }
/* 打印导出区域（PDF / 打印用） */
#ntPrintArea { display: none; }
@media print {
    .nt-app, .nt-overlay, .nt-toast { display: none !important; }
    #ntPrintArea { display: block !important; }
    .nt-doc { color: #000; }
}