body { background: #f6f7f9; }
body.show-dashboard { background: #090b12; }
.dashboard { min-height: 100vh; display: flex; flex-direction: column; }
.dashboard[hidden], .notepad[hidden] { display: none !important; }
.dashboard.arriving { animation: dashboard-reveal .65s cubic-bezier(.2,.7,.2,1) both; }
.notepad { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; min-width: 0; background: #fff; color: #25272c; font: 13px/1.4 'Segoe UI', Arial, sans-serif; }
.notepad.exiting { pointer-events: none; animation: note-away .5s cubic-bezier(.4,0,.2,1) both; }
.notepad-titlebar { min-height: 52px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f4f5f7; border-bottom: 1px solid #e4e6ea; }
.notepad-app { display: flex; align-items: center; gap: 11px; font-weight: 500; }
.notepad-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: #e4edf9; color: #4d7bb2; }
.notepad-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.notepad-title-detail { color: #858c98; font-size: 11px; }
.notepad-toolbar { display: flex; align-items: center; gap: 2px; min-height: 41px; padding: 0 16px; border-bottom: 1px solid #eaecf0; background: #fafbfc; }
.notepad-menu { position: relative; }
.notepad-menu summary { display: block; padding: 6px 12px; border-radius: 5px; cursor: pointer; list-style: none; user-select: none; }
.notepad-menu summary::-webkit-details-marker { display: none; }
.notepad-menu summary:hover, .notepad-menu[open] summary { background: #ebedf1; }
.notepad-dropdown { position: absolute; top: calc(100% + 5px); left: 0; z-index: 10; min-width: 205px; padding: 5px; border: 1px solid #e1e3e8; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgba(28, 35, 50, .12); }
.notepad-dropdown button { display: flex; justify-content: space-between; align-items: center; gap: 25px; width: 100%; padding: 9px 10px; border: 0; border-radius: 5px; background: transparent; color: #323640; text-align: left; white-space: nowrap; font: inherit; cursor: pointer; }
.notepad-dropdown button span { color: #9198a3; font-size: 11px; }
.notepad-dropdown button:hover, .notepad-dropdown button:focus-visible { background: #f0f2f5; }
.notepad-divider { height: 1px; margin: 4px 6px; background: #e9ebef; }
.notepad-document { flex: 1; min-height: 0; padding: 8px 14px; background: #fff; }
.notepad-document textarea { display: block; width: 100%; height: 100%; padding: 12px; resize: none; border: 0; outline: 0; background: transparent; color: #25272c; font: 15px/1.65 Consolas, 'Courier New', monospace; }
.notepad-status { display: flex; justify-content: flex-end; align-items: center; min-height: 32px; gap: 0; padding: 0 15px; border-top: 1px solid #e9ebef; background: #f8f9fb; color: #707783; font-size: 11px; }
.notepad-status span { padding: 0 14px; border-left: 1px solid #e2e5e9; white-space: nowrap; }
.notepad-status span:first-child { border-left: 0; }
.notepad.dark { color: #e4e6eb; background: #1e1f22; color-scheme: dark; }
.notepad.dark .notepad-titlebar { background: #202124; border-color: #35373c; }
.notepad.dark .notepad-mark { background: #303e50; color: #9abce7; }
.notepad.dark .notepad-title-detail { color: #a1a5ae; }
.notepad.dark .notepad-toolbar { background: #27282c; border-color: #3a3c41; }
.notepad.dark .notepad-menu summary:hover, .notepad.dark .notepad-menu[open] summary { background: #3b3d43; }
.notepad.dark .notepad-dropdown { background: #303136; border-color: #484a50; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.notepad.dark .notepad-dropdown button { color: #e4e6eb; }
.notepad.dark .notepad-dropdown button:hover, .notepad.dark .notepad-dropdown button:focus-visible { background: #45474d; }
.notepad.dark .notepad-divider { background: #484a50; }
.notepad.dark .notepad-document { background: #1e1f22; }
.notepad.dark .notepad-document textarea { color: #e4e6eb; }
.notepad.dark .notepad-status { background: #27282c; border-color: #3a3c41; color: #b1b4bd; }
.notepad.dark .notepad-status span { border-color: #45474d; }
.return-to-note { padding: 0 10px 0 0; border: 0; border-right: 1px solid #3d4658; background: transparent; color: #b7c2d5; font: inherit; cursor: pointer; }
.return-to-note:hover { color: #fff; }
@keyframes note-away { to { opacity: 0; transform: scale(1.025); filter: blur(8px); } }
@keyframes dashboard-reveal { from { opacity: 0; transform: scale(.985); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 640px) { .notepad-titlebar { padding: 0 16px; } .notepad-document { padding: 4px; } .notepad-status { padding: 0 4px; } .notepad-status span { padding: 0 8px; } .notepad-status span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .notepad.exiting, .dashboard.arriving { animation: none; } }
.notepad { --note-zoom: 1; }
.notepad-tabbar { display: flex; align-items: flex-end; gap: 5px; min-height: 47px; padding: 6px 14px 0; border-bottom: 1px solid #e3e5e9; background: #eef0f4; }
.notepad-tabs { display: flex; align-items: flex-end; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.notepad-tab { display: flex; align-items: center; flex: 0 0 auto; width: 190px; max-width: 42vw; height: 37px; border: 1px solid transparent; border-bottom: 0; border-radius: 9px 9px 0 0; color: #626976; }
.notepad-tab.active { background: #fafbfc; border-color: #e3e5e9; color: #252a32; }
.notepad-tab-select { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 0; height: 100%; padding: 0 4px 0 11px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.notepad-tab-icon { color: #8194af; font-size: 15px; }
.notepad-tab-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notepad-tab-rename { min-width: 0; width: 100%; padding: 3px 5px; border: 1px solid #6d94c9; border-radius: 4px; outline: none; background: #fff; color: #25272c; font: inherit; }
.notepad-tab.dragging { opacity: .45; }
.notepad-tab-close:disabled { visibility: hidden; cursor: default; }
.notepad.dark .notepad-tab-rename { background: #202124; color: #eef0f4; }
.notepad-dropdown { max-height: min(70vh, 520px); overflow-y: auto; }
.notepad-tab-dirty { flex: none; color: #8799b7; font-size: 8px; }
.notepad-tab-close, .notepad-new-tab { display: grid; place-items: center; flex: none; width: 27px; height: 27px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: 18px/1 'Segoe UI', sans-serif; cursor: pointer; }
.notepad-tab-close { margin-right: 5px; }
.notepad-new-tab { margin: 0 0 5px; color: #677180; font-size: 21px; }
.notepad-tab-close:hover, .notepad-new-tab:hover { background: rgba(120, 130, 145, .15); }
.notepad-toolbar-hint { margin-left: auto; padding-right: 9px; color: #9ba2ad; font-size: 11px; }
.notepad-document textarea { font-size: calc(15px * var(--note-zoom)); }
.notepad-document textarea[hidden], .notepad-find[hidden] { display: none !important; }
.notepad-find { display: flex; flex-direction: column; align-items: stretch; align-self: flex-end; gap: 6px; position: absolute; z-index: 5; top: 146px; right: 22px; max-width: calc(100% - 30px); padding: 7px; border: 1px solid #d7dce4; border-radius: 10px; background: #f8f9fb; box-shadow: 0 12px 35px rgba(20, 25, 35, .15); }
.notepad-find-row { display: flex; align-items: center; gap: 5px; }
.notepad-find-row input { flex: 1; }
.notepad-find input { width: 210px; min-width: 80px; padding: 8px 10px; border: 1px solid #d6dce4; border-radius: 6px; background: #fff; color: #25272c; font: inherit; }
.notepad-find span { color: #7b8391; white-space: nowrap; font-size: 10px; }
.notepad-find button { width: 27px; height: 29px; border: 0; border-radius: 5px; background: transparent; color: #576172; font-size: 16px; cursor: pointer; }
.notepad-find button:hover { background: #e8ebef; }
.notepad-find .notepad-replace-button { width: auto; padding: 0 9px; font-size: 11px; white-space: nowrap; }
.notepad-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.notepad.dark .notepad-tabbar { border-color: #37393f; background: #1c1d20; }
.notepad.dark .notepad-tab { color: #a0a5af; }
.notepad.dark .notepad-tab.active { border-color: #37393f; background: #27282c; color: #eef0f4; }
.notepad.dark .notepad-tab-icon { color: #94afd2; }
.notepad.dark .notepad-tab-dirty { color: #aec2df; }
.notepad.dark .notepad-new-tab { color: #a6adba; }
.notepad.dark .notepad-toolbar-hint { color: #777f8d; }
.notepad.dark .notepad-find { border-color: #484a50; background: #303136; box-shadow: 0 12px 35px rgba(0, 0, 0, .35); }
.notepad.dark .notepad-find input { border-color: #555861; background: #202124; color: #f1f2f5; }
.notepad.dark .notepad-find span { color: #a6adba; }
.notepad.dark .notepad-find button { color: #c9cdd5; }
.notepad.dark .notepad-find button:hover { background: #45474d; }
@media (max-width: 640px) { .notepad-tabbar { padding-left: 8px; } .notepad-tab { width: 155px; } .notepad-toolbar-hint { display: none; } .notepad-find { right: 10px; } .notepad-find input { width: 130px; } .notepad-status span { padding: 0 6px; } }
