.app-panel{padding:22px;color:var(--text,#1b1b1f);font:14px/1.45 "Segoe UI",system-ui,"Noto Sans Thai",sans-serif}.app-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:16px}.app-head>div{font-size:20px;font-weight:600}.app-subtitle,.app-muted{color:var(--muted,#62646a);font-size:12px}.app-btn{border:1px solid var(--border,#d8d8dc);background:var(--surface,#fff);color:inherit;border-radius:5px;padding:7px 11px;cursor:pointer;font:inherit}.app-btn:hover,.app-btn:focus-visible{background:var(--hover,#e9f3ff);border-color:var(--accent,#0078d4);outline:0}.app-primary{background:var(--accent,#0078d4);border-color:var(--accent,#0078d4);color:#fff}.app-danger{color:#b3261e}.app-empty,.app-error{padding:28px;text-align:center;border:1px dashed var(--border,#d8d8dc);border-radius:8px;color:var(--muted,#62646a)}.app-error{color:#b3261e}.explorer{display:grid;grid-template-columns:170px minmax(0,1fr);gap:14px;min-height:385px}.explorer-side{border-right:1px solid var(--border,#ddd);padding-right:10px;display:grid;align-content:start;gap:2px}.explorer-nav{border:0;background:transparent;border-radius:5px;color:inherit;padding:8px;text-align:left;cursor:pointer;font:inherit}.explorer-nav:hover,.explorer-nav.active{background:var(--hover,#e9f3ff)}.explorer-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--border,#ddd);padding-bottom:10px}.explorer-status{margin-left:auto;color:var(--muted,#62646a);font-size:12px}.explorer-search{min-width:130px;flex:1;border:1px solid var(--border,#ddd);background:var(--surface,#fff);color:inherit;border-radius:5px;padding:7px 9px}.explorer-toolbar select{border:1px solid var(--border,#ddd);background:var(--surface,#fff);color:inherit;border-radius:5px;padding:7px}.explorer-breadcrumbs{display:flex;align-items:center;gap:7px;min-height:34px;color:var(--muted,#62646a);overflow:auto}.explorer-crumb{border:0;background:transparent;color:inherit;padding:4px;cursor:pointer}.explorer-stage{display:grid;gap:7px;position:relative}.explorer-stage.grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.explorer-file{border:1px solid var(--border,#ddd);border-radius:7px;background:var(--surface,#fff);color:inherit;display:grid;gap:4px;text-align:left;padding:11px;min-height:92px;cursor:pointer}.explorer-file.selected{background:color-mix(in srgb,var(--accent,#0078d4) 14%,var(--surface,#fff));border-color:var(--accent,#0078d4)}.explorer-file:focus-visible{outline:2px solid var(--accent,#0078d4);outline-offset:1px}.explorer-stage.list .explorer-file{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;min-height:unset;padding:8px}.file-glyph{display:inline-grid;width:30px;height:30px;color:var(--accent,#0078d4)}.file-glyph svg{width:100%;height:100%}.file-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notepad-tools{display:flex;gap:8px;align-items:center;margin-bottom:12px}.notepad-tools .app-muted{margin-right:auto}.notepad-area{box-sizing:border-box;width:100%;min-height:320px;border:1px solid var(--border,#d8d8dc);border-radius:6px;background:var(--surface,#fff);color:inherit;padding:14px;font:14px/1.7 Consolas,"Noto Sans Thai",monospace;resize:vertical}.preview-top{display:flex;justify-content:space-between;align-items:center;margin:15px 0 8px}.preview-image,.preview-video{max-height:370px;max-width:100%;border-radius:7px;object-fit:contain}.photo-tile .file-glyph{width:45px;height:45px}.settings-page{padding:12px;border:1px solid var(--border,#ddd);border-radius:7px}.storage-number{font-size:22px;font-weight:600}.about-logo{width:58px;height:58px;border-radius:14px;display:grid;place-items:center;background:var(--accent,#0078d4);color:#fff;font-size:30px;margin-bottom:16px}.cloud-menu{position:fixed;z-index:10000;min-width:180px;padding:4px;background:var(--surface,#fff);border:1px solid var(--border,#d8d8dc);box-shadow:0 8px 25px #0003;border-radius:7px}.cloud-menu-item{display:block;width:100%;border:0;background:transparent;color:inherit;text-align:left;padding:8px 10px;border-radius:4px;cursor:pointer;font:inherit}.cloud-menu-item:hover{background:var(--hover,#e9f3ff)}.cloud-dialog-cover{position:absolute;inset:0;z-index:1000;display:grid;place-items:center;background:#0005}.cloud-dialog{width:min(360px,calc(100% - 30px));padding:18px;border:1px solid var(--border,#ddd);border-radius:10px;background:var(--surface,#fff);box-shadow:0 10px 30px #0004}.cloud-dialog h3,.cloud-dialog p{margin-top:0}.cloud-dialog input{box-sizing:border-box;width:100%;padding:8px;border:1px solid var(--border,#ddd);border-radius:5px;background:var(--surface,#fff);color:inherit}.cloud-dialog-actions{display:flex;justify-content:end;gap:8px;margin-top:14px}@media(max-width:620px){.app-panel{padding:16px}.app-head{flex-direction:column}.explorer{grid-template-columns:1fr}.explorer-side{border-right:0;border-bottom:1px solid var(--border,#ddd);padding:0 0 8px;display:flex;overflow:auto}.explorer-nav{white-space:nowrap}.explorer-status{display:none}}

.explorer-file.drop-target,.explorer-stage.stage-drop-target{outline:2px solid var(--accent,#0078d4);outline-offset:2px}.explorer-select-box{position:absolute;z-index:5;pointer-events:none;background:color-mix(in srgb,var(--accent,#0078d4) 22%,transparent);border:1px solid var(--accent,#0078d4)}

.explorer-stage{position:relative}.cloud-dialog select{font:inherit;color:inherit;background:var(--surface)}
.window-notes .window-content{padding:0;overflow:hidden;background:var(--surface)}
.window-notes .app-head{display:none}
.notepad-shell{display:grid;grid-template:"menu" auto "editor" minmax(0,1fr) "status" auto / minmax(0,1fr);height:100%;min-height:0}
.window-notes > .window-titlebar { gap: 0; padding-inline-start: 6px; }
.notepad-tabs { display: flex; align-items: center; gap: 3px; flex: 1; align-self: stretch; min-width: 0; padding: 3px 4px; overflow-x: auto; scrollbar-width: thin; color: var(--text); }
.notepad-tab{display:flex;align-items:center;justify-content:space-between;gap:5px;flex:0 0 auto;width:clamp(110px,28vw,186px);min-height:28px;padding:0 5px 0 10px;text-align:left;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font:12px "Segoe UI",sans-serif}
.notepad-tab.active{background:var(--surface);color:var(--text);border-color:var(--line)}
.notepad-tab:hover:not(.active),.notepad-tab-add:hover,.notepad-tab-close:hover,.notepad-menu-button:hover{background:var(--hover)}
.notepad-tab span,.notepad-tab-label{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.notepad-tab-label{flex:1;align-self:stretch;border:0;padding:0;background:transparent;color:inherit;text-align:left;font:inherit}
.notepad-tab-close,.notepad-tab-add{flex:none;display:grid;place-items:center;width:24px;height:24px;border:0;border-radius:4px;background:transparent;color:inherit;font-size:16px}
.notepad-tab-add{align-self:center}
.notepad-menu{grid-area:menu;display:flex;gap:1px;align-items:center;padding:2px 6px;border-bottom:1px solid var(--line);background:var(--surface)}
.notepad-menu-button,.notepad-menu-item{border:0;border-radius:4px;background:transparent;color:var(--text);padding:5px 9px;font:12px "Segoe UI",sans-serif}
.notepad-menu-popup{position:fixed;z-index:750;display:grid;min-width:156px;padding:4px;border:1px solid var(--line);border-radius:7px;background:var(--floating-bg);box-shadow:var(--shadow);backdrop-filter:blur(20px)}
.notepad-menu-item{display:flex;align-items:center;justify-content:space-between;gap:22px;text-align:left;min-height:30px;white-space:nowrap}
.notepad-menu-item small{color:var(--muted);font:10px "Segoe UI",sans-serif}
.notepad-menu-item:hover:not(:disabled),.notepad-menu-item:focus-visible{background:var(--hover)}
.notepad-menu-item:disabled{opacity:.45}
.notepad-shell .notepad-area{grid-area:editor;display:block;width:100%;height:100%;min-height:0;margin:0;padding:12px;border:0;border-radius:0;outline:0;resize:none;background:var(--surface);color:var(--text);font:14px/1.45 Consolas,"Cascadia Mono",monospace}
.notepad-status{grid-area:status;min-height:24px;padding:4px 10px;border-top:1px solid var(--line);background:var(--surface-soft);color:var(--muted);font:11px/16px "Segoe UI",sans-serif}
