/* Desktop layout follows FleanUp 1.129's QWidget geometry. */
:root{--bg:#eaf0f5;--panel:#f3f6fa;--border:#bac9d8;--accent:#3478c9;--button:#e8f0f9;--header:#bac9d8;--tab:#396e9d}body{font-family:'Malgun Gothic','Noto Sans KR',sans-serif;font-size:12px;margin:0;height:100dvh;overflow:hidden;padding:6px 6px 0;color:var(--text)}button,input,select,textarea{font-size:12px;border-radius:4px}button{padding:5px 9px;background:var(--button);min-height:30px}button:active{transform:none}button.primary{background:var(--selected);color:var(--text);border-color:var(--accent)}.brandbar,.intro,.page-foot{display:none}.app-shell{margin:0;border:0;box-shadow:none;border-radius:0;background:transparent;height:100%;display:flex;flex-direction:column;overflow:hidden}.tabs{flex:none;height:52px;border:0;border-radius:7px;padding:4px 6px;background:var(--header);gap:4px;overflow:visible}.tabs button{flex:none;padding:0 18px;height:42px;min-width:108px;color:#fff;background:var(--tab);border:1px solid #34648e;border-radius:11px 11px 5px 5px;font-size:12px}.tabs button.viewer-tab{background:var(--button);color:var(--text);border-color:var(--border)}.tabs button.active{background:#305d85;color:#fff}.tabs button.viewer-tab.active{background:var(--surface);color:var(--text)}.tabs button.active:after{height:2px;background:#e7f0f9;left:12px;right:12px;bottom:3px}.tabs #new-viewer{border:0;border-radius:50%;min-width:32px;width:32px;height:32px;padding:0;font-size:23px;background:var(--button);color:var(--text);margin-left:5px}.tabs #settings{margin-left:auto;min-width:92px;width:92px;border-radius:4px;background:var(--button);color:var(--text);border:0;padding:0;font-weight:400}.workspace-caption{display:none}#toolbar{display:none!important}#workspace{flex:1;min-height:0;overflow:hidden;padding-top:8px;display:flex;flex-direction:column}.app-status{height:20px;padding:2px 6px;border:0;flex:none;background:transparent;color:var(--text);font-size:11px}.app-status span:last-child{display:none}.organizer{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;padding:0 3px 4px}.folder-panel{border:1px solid var(--border);background:var(--surface);padding:7px;border-radius:5px;display:flex;flex-direction:column;overflow:hidden}.panel-top{padding:0 0 6px;background:transparent;gap:6px;flex:none;height:36px}.panel-title{flex:1;width:30px;height:30px;padding:4px 7px;color:var(--accent);font-size:12px}.panel-top select{width:96px;height:30px;padding:3px;background:var(--button)}.panel-top .tiny{height:30px;white-space:nowrap;padding:4px 6px}.base{width:30px;height:30px;min-width:30px;padding:5px;color:var(--accent);border-color:var(--border);background:var(--button)}.base.registered:before{mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 4h8l3 4h9v13H2z'/%3E%3C/svg%3E")}.base.empty{opacity:.45}body.moon .base.empty{opacity:.75}.panel-content{flex:1;display:grid;grid-template-columns:minmax(70px,31%) minmax(0,1fr);height:auto;min-height:0}.folder-list{border:1px solid var(--border);border-right:5px solid var(--border);padding:0;background:var(--surface);min-height:0;overflow:auto;display:block}.folder-list small{display:none}.folder-list button{font-size:12px;min-height:29px;padding:4px 6px;border-radius:0}.file-area{padding:0;display:flex;flex-direction:column;overflow:hidden;background:var(--bg);min-height:0}.panel-nav{display:flex;gap:3px;flex:none;height:30px;margin-bottom:6px}.panel-nav button{width:26px;min-width:24px;padding:0;font-size:18px;min-height:30px}.panel-nav .address{flex:1;min-width:0;font-size:11px;text-align:left;padding:4px 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.search-row{display:flex;gap:5px;height:30px;flex:none;margin-bottom:6px}.file-area .search-row input{flex:1;width:20px;height:30px;font-size:12px;padding:4px}.search-row select{width:53px;padding:2px;background:var(--button);font-size:11px}.search-row button{width:32px;padding:0}.files{position:relative;flex:1;overflow:auto;margin:0;gap:0;background:var(--surface);display:block}.file{width:100%;min-height:28px;gap:5px;font-size:12px;padding:4px 5px;border-radius:0}.file-icon{font-size:16px}.files.grid{display:grid;align-content:start;grid-template-columns:repeat(auto-fill,minmax(76px,1fr))}.files.grid .file{font-size:11px;min-height:70px}.empty-state{height:100%;font-size:12px;line-height:1.6;min-height:0;position:relative;background:var(--bg)}.file-area:has(.empty-state):after{content:'☁';font-size:73px;line-height:1;position:absolute;right:22px;bottom:20px;color:var(--accent);opacity:.22;pointer-events:none}.launcher{flex:none;height:88px;border:0;border-radius:0;background:var(--surface);margin:0 3px;display:flex;justify-content:center;gap:18px;position:relative;padding:6px 90px}.launcher-title{position:absolute;left:50%;top:37px;transform:translateX(-50%);font-size:12px;pointer-events:none}.launcher:has(.launch-item) .launcher-title{top:5px;font-size:10px;color:var(--muted)}.launcher .launch-item{border:0;background:transparent;width:68px;min-height:66px;padding:3px;display:flex;align-items:center;justify-content:end;flex-direction:column;gap:2px;font-size:10px;margin-top:10px}.launch-item span{font-size:29px}.menu-popup{position:fixed;z-index:60;min-width:190px;background:var(--surface);border:1px solid var(--border);box-shadow:0 5px 20px #0002;padding:4px;border-radius:3px}.menu-popup button{display:block;width:100%;text-align:left;background:transparent;border:0;border-radius:2px;padding:7px 14px;min-height:29px}.menu-popup button:hover{background:var(--selected)}.menu-popup hr{border:0;border-top:1px solid var(--border);margin:4px}.menu-popup .checked{color:var(--accent)}#mascot{width:78px;height:86px;bottom:24px;right:16px}#mascot span{right:80px}.viewer-desktop{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:5px;flex:1;min-height:0}.viewer-desktop.layout-3 .viewer-panel:first-child{grid-row:span 2}.viewer-desktop.layout-1{grid-template-columns:1fr;grid-template-rows:1fr}.viewer-desktop.layout-2{grid-template-rows:1fr}.viewer-panel{background:var(--surface);border:1px solid var(--border);position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.viewer-controls{display:flex;gap:4px;align-items:center;padding:7px 6px 5px;flex-wrap:wrap;background:var(--panel)}.viewer-controls button{padding:3px 7px;height:30px;font-size:12px}.viewer-controls .panel-number{background:var(--accent);color:white;border-radius:5px;padding:7px 10px}.viewer-controls input{width:90px;min-width:35px;flex:1;height:30px}.viewer-controls .open-name{width:110px;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.viewer-controls .viewer-close{margin-left:auto}.viewer-path{display:flex;gap:7px;align-items:center;padding:5px 7px;border-bottom:1px solid var(--border);font-size:11px;min-height:38px}.viewer-panel .preview{padding:18px;flex:1;min-height:0;background:var(--surface);justify-content:center;position:relative}.preview-canvas{padding:8px;box-shadow:none;max-width:100%;border-radius:0}.preview-canvas img{max-height:calc(100vh - 240px);display:block}.viewer-panel:not(:first-child) .preview-canvas img{max-height:calc(45vh - 120px)}.viewer-panel .empty-state{background:var(--surface);width:100%;cursor:pointer}.viewer-list{position:absolute;top:110px;left:7px;width:240px;max-height:250px;overflow:auto;background:var(--surface);border:1px solid var(--border);padding:4px;z-index:6}.viewer-list button{width:100%;display:block;text-align:left;font-size:12px;border:0;background:transparent}.calendar{flex:1;min-height:0;padding:12px 18px 14px;display:grid;grid-template-columns:minmax(0,7fr) minmax(320px,3fr);gap:20px;background:var(--surface)}.calendar>section{display:flex;flex-direction:column;min-height:0}.month-head{height:50px;gap:8px;margin:0 0 12px}.month-head h2{font-size:22px;margin:0 15px 0 10px;order:0}.month-head button{min-width:30px;height:32px;padding:4px 9px}.week{background:var(--button);border:1px solid var(--border);border-bottom:0;flex:none;height:33px}.week div{border-right:1px solid var(--border);font-size:12px;color:var(--text)}.week div:first-child{color:#ed5454}.week div:last-child{color:#559afa}.month-grid{flex:1;min-height:0;grid-template-rows:repeat(6,1fr);border-bottom:1px solid var(--border)}.day{min-height:0;overflow:hidden;border-color:#d0d4da;background:var(--surface);padding:10px 8px;border-radius:0}.day.outside{color:var(--muted);opacity:.6}.day em{background:var(--selected);font-size:11px}.agenda{padding:0;background:transparent;border-radius:0;display:flex;flex-direction:column;min-height:0;gap:12px}.agenda h3{font-size:18px;font-weight:400;border-bottom:1px solid var(--border);padding:12px;height:49px}.agenda-head{display:flex;justify-content:space-between;align-items:center;height:46px;padding:0 5px}.agenda-list{height:26%;min-height:110px;border:1px solid var(--border);background:var(--panel);border-radius:6px;padding:6px;overflow:auto}.agenda-list button{display:block;width:100%;text-align:left;border:0;background:transparent;margin:2px 0}.agenda-list button.selected{background:var(--selected)}.agenda-detail-label{margin:10px 5px}.agenda-detail{flex:1;min-height:90px;white-space:pre-wrap;border:1px solid var(--border);border-radius:6px;padding:15px;overflow:auto;line-height:1.8}.agenda-controls{display:flex;gap:20px;margin:6px 0}.agenda-controls button{flex:1;padding:5px}.agenda .muted{font-size:11px;margin:3px 0}.notes{flex:1;min-height:0;grid-template-columns:202px 277px minmax(0,1fr);gap:8px;background:var(--surface)}.categories{background:var(--panel);border:0;margin:0 0 8px 8px;padding:0;overflow:auto}.category-head{height:46px;display:flex;gap:6px;align-items:center;position:sticky;top:0;background:var(--bg);padding:3px 0;z-index:2}.category-head span{flex:1}.categories .category-head button{width:30px;border:1px solid var(--border);text-align:center;background:var(--button);padding:3px}.categories>button{min-height:43px;margin:0;padding:8px 28px;border-bottom:1px solid var(--border);border-radius:0}.categories>button.active{border-left:3px solid var(--accent);font-weight:400;color:var(--text)}.categories hr{margin:0;border-top:2px solid var(--accent)}.category-extensions{padding-left:40px}.category-extensions button{padding:8px 9px;min-height:36px;font-size:11px;margin:0;border-bottom:1px solid var(--border);border-radius:0}.category-extensions button.active{background:var(--selected)}.note-list{max-height:none;min-height:0;overflow:hidden;padding:0 8px;border-left:1px solid var(--border);border-right:1px solid var(--border);display:flex;flex-direction:column}.note-list-head{display:flex;gap:6px;align-items:center;min-height:46px}.note-list-head strong{font-size:12px;font-weight:400;margin-right:auto;white-space:nowrap}.note-list-head button{padding:4px 8px;white-space:nowrap}.note-list input{font-size:12px;height:30px;padding:5px 8px}.note-cards{flex:1;min-height:0;overflow:auto}.note-card{border:0;border-bottom:1px solid var(--border);border-radius:0;margin:0;padding:14px 8px}.note-card.selected{background:var(--selected);border-left:3px solid var(--accent)}.note-sync{font-size:11px;margin:8px 0;line-height:1.5}.editor{padding:4px 12px 8px 3px;gap:6px;overflow:hidden;min-height:0}.note-editor-head{display:flex;gap:7px;height:44px;align-items:center}.editor #note-title{font-size:18px;flex:1;width:30px;padding:4px;min-width:35px;color:var(--text)}.note-editor-head button{white-space:nowrap;min-width:40px}.note-modified{background:var(--panel);border:1px solid var(--border);padding:6px 10px;border-radius:4px;white-space:nowrap;font-size:11px}.rich-toolbar{display:flex;flex-wrap:wrap;gap:6px;background:var(--panel);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:6px 8px;align-items:center;flex:none}.rich-toolbar button{min-width:34px;height:34px;padding:4px 8px}.rich-toolbar label{font-size:11px;display:flex;align-items:center;gap:4px}.rich-toolbar input{width:42px;height:32px;text-align:center;padding:3px}.rich-toolbar select{height:32px;padding:3px}.rich-toolbar .sep{height:25px;border-left:1px solid var(--border);margin:0 4px}.note-rich{flex:1;min-height:0;overflow:auto;border:1px solid var(--border);padding:15px;line-height:1.8;white-space:pre-wrap;font-size:13px}.note-rich:empty:before{content:'메모를 입력하세요…';color:var(--muted)}.note-rich img{max-width:90%}.note-rich a{color:var(--accent)}.editor-meta{margin:0;font-size:10px;min-height:22px}.picker-window{min-height:300px}.picker-nav{display:flex;gap:6px;margin:15px 0}.picker-nav input{flex:1}.picker-body{display:grid;grid-template-columns:120px 1fr;min-height:230px;border:1px solid var(--border)}.picker-places{background:var(--panel);padding:8px}.picker-places button{width:100%;text-align:left;border:0;background:transparent;margin:3px 0}.picker-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;padding:10px;gap:8px}.picker-items button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:75px;font-size:11px;border-color:transparent;background:transparent}.picker-items button.selected{background:var(--selected);border-color:var(--accent)}.picker-items b{font-size:27px;color:#dca942}.guide-card{bottom:28px}body.moon{--header:#484b5c;--tab:#43405e;--button:#30323e}body:not(.moon){--button:var(--panel)}.web-badge{font-size:10px;color:var(--muted);margin-left:auto;white-space:nowrap}.tabs .web-badge+#settings{margin-left:8px}.tutorial-focus{z-index:22!important}#guide-layer{background:#13243685}.app-shell:has(.tutorial-focus){overflow:visible}dialog{font-size:12px}dialog h2{font-size:18px}.import-table{width:100%;border-collapse:collapse;font-size:12px}.import-table th,.import-table td{padding:8px;border-bottom:1px solid var(--border);text-align:left}.import-table tbody tr{cursor:pointer}.import-table tbody tr.selected{background:var(--selected)}
@media(max-width:1100px){.panel-top{gap:4px}.panel-top select{width:76px}.organizer{grid-template-columns:repeat(4,minmax(0,1fr))}.calendar{grid-template-columns:minmax(0,1fr) 300px}.notes{grid-template-columns:170px 230px minmax(0,1fr)}.note-editor-head{flex-wrap:wrap;height:auto;min-height:44px}.note-modified{display:none}.search-row{gap:3px}.search-row select{width:46px}.search-row button{width:25px}.panel-nav{gap:2px}.panel-nav button{width:22px;min-width:20px}}
@media(max-width:760px){body{overflow:auto;padding:4px;height:auto;min-height:100dvh}.app-shell{height:auto;overflow:visible}.tabs{position:sticky;top:0;z-index:10;height:49px;gap:3px;overflow-x:auto;border-radius:5px}.tabs button{min-width:79px;padding:0 9px;font-size:11px;height:39px}.tabs #settings{min-width:63px;width:63px}.web-badge{display:none}#workspace{min-height:calc(100dvh - 80px);overflow:visible}.organizer{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,290px);flex:none}.panel-top{gap:3px}.panel-top select{width:57px;font-size:10px}.panel-top .tiny{font-size:10px;padding:3px}.base{min-width:24px;width:24px}.panel-title{font-size:11px;padding:3px}.panel-content{grid-template-columns:70px minmax(0,1fr)}.panel-nav .address{display:none}.panel-nav{gap:2px}.panel-nav button{min-width:18px;width:20px}.search-row{flex-wrap:wrap;height:57px}.search-row input{flex-basis:100%;height:27px!important}.search-row select{flex:1;height:25px}.search-row button{height:25px;min-height:25px}.file-area{height:auto}.file{font-size:10px}.folder-list button{font-size:10px;min-width:0;width:100%}.folder-list{display:block}.launcher{height:90px;padding:6px 65px 6px 8px;gap:8px}.viewer-desktop{height:900px;flex:none;display:flex;flex-direction:column}.viewer-panel{flex:1;min-height:260px}.viewer-controls{gap:3px}.viewer-controls button{font-size:10px;padding:3px}.calendar{display:block;padding:10px}.month-grid{height:410px;flex:none}.day{padding:6px 3px}.day em{font-size:9px}.agenda{margin-top:18px;min-height:440px}.agenda-list{min-height:100px}.agenda-detail{min-height:160px}.notes{grid-template-columns:135px minmax(0,1fr);gap:4px;min-height:850px}.categories{grid-row:span 2;margin-left:0}.category-extensions{padding-left:20px}.categories>button{padding-left:20px}.note-list{min-height:240px;max-height:290px;padding:0 5px}.note-list-head{flex-wrap:wrap;padding:4px 0;gap:4px}.note-list-head strong{width:100%;margin-bottom:3px}.note-list-head button{font-size:10px;padding:3px 7px}.editor{grid-column:2;min-height:500px;padding:4px}.note-editor-head #note-title{flex-basis:100%;font-size:16px}.note-editor-head button{font-size:10px;min-width:30px;padding:3px}.rich-toolbar{gap:3px;padding:4px}.rich-toolbar button{min-width:27px;font-size:11px;padding:3px;height:29px}.rich-toolbar .sep{display:none}.rich-toolbar label{font-size:10px}.rich-toolbar input{width:35px}.note-rich{padding:8px;font-size:12px}.editor-meta{flex-wrap:wrap}.app-status{height:auto;min-height:20px;font-size:10px}.app-status #status{white-space:normal}.picker-body{grid-template-columns:85px 1fr}.picker-items{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-card img{width:85px}#mascot{width:65px;height:74px;bottom:10px;right:10px}.month-head h2{font-size:19px;margin:0 5px}.month-head{gap:5px}}
.editor .rich-toolbar input{font-size:12px;font-weight:400;padding:3px;height:32px}.viewer-panel .preview{justify-content:flex-start}.viewer-panel .preview-canvas{flex-shrink:0;margin:auto}.file-area:has(.empty-state):after{content:'';width:126px;height:84px;background:var(--ornament) center/contain no-repeat;opacity:.62;right:12px;bottom:10px}.launcher:after{content:'';position:absolute;width:126px;height:84px;bottom:5px;right:12px;background:var(--ornament) center/contain no-repeat;opacity:.62;pointer-events:none}.viewer-panel .empty-state:after{content:'';position:absolute;width:126px;height:84px;bottom:10px;right:12px;background:var(--ornament) center/contain no-repeat;opacity:.62;pointer-events:none}.viewer-panel .preview:has(.document){align-items:center}.search-row input{background:var(--surface)}
@media(max-width:520px){.organizer{grid-template-columns:1fr;grid-template-rows:repeat(8,310px)}.panel-top select{width:96px;font-size:12px}.panel-top .tiny{font-size:12px;padding:4px 6px}.panel-title{font-size:12px;padding:4px 7px}.base{width:30px;min-width:30px}.panel-content{grid-template-columns:100px minmax(0,1fr)}.panel-nav .address{display:block}.panel-nav button{min-width:22px;width:24px}.panel-nav{gap:3px}.search-row{height:30px;flex-wrap:nowrap}.search-row input{flex-basis:auto;height:30px!important}.search-row select{height:30px;flex:none;width:50px}.search-row button{height:30px;min-height:30px;width:30px}.file,.folder-list button{font-size:12px}}
