/* 유자록 — 기존 Win95 CSS 변수·창 구조·입체 테두리를 바탕으로 정리했습니다. */
@font-face {
  font-family:'RoundedFixedsys';
  src:url('assets/DungGeunMo.woff') format('woff');
  font-weight:normal;
  font-display:swap;
}
:root {
  --desktop:#008080;
  --win-gray:#c0c0c0;
  --win-light:#fff;
  --win-midlight:#dfdfdf;
  --win-shadow:#808080;
  --win-dark:#000;
  --title-blue:#000080;
  --title-text:#fff;
  --paper:#fff;
  --text:#111;
  --focus:#000080;
  --win-font:'RoundedFixedsys','Gulim','굴림',sans-serif;
}
* { box-sizing:border-box; }
html,body { height:100%;margin:0; }
body,button,input,select,textarea { font-family:var(--win-font);font-size:16px; }
body { overflow:hidden;color:var(--text); }
button,input,select,textarea { border-radius:0;color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:default;color:#808080;text-shadow:1px 1px #fff; }
[hidden] { display:none!important; }
button:focus-visible,a:focus-visible { outline:1px dotted currentColor;outline-offset:-5px; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline:1px solid #000080;outline-offset:1px; }
input,select,textarea { border:2px solid;border-color:#808080 #fff #fff #808080;background:white;padding:6px;min-width:0; }
button { font:inherit; }
.sr-only,.honeypot { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
.skip-link { position:fixed;top:-100px;left:10px;z-index:100;background:white;color:navy;padding:12px; }
.skip-link:focus { top:10px; }
.icon { display:inline-block;width:24px;height:24px;object-fit:contain;vertical-align:middle;flex-shrink:0;image-rendering:pixelated; }
svg.icon { shape-rendering:crispEdges; }
[data-icon] { display:inline-flex;align-items:center;justify-content:center;flex-shrink:0; }
.icon-small .icon { width:16px;height:16px; }
.desktop { position:relative;height:100dvh;min-height:0;background:var(--desktop);padding:4.5vh 0 60px; }
.desktop-shortcuts { position:absolute;left:10px;top:15px;width:92px;display:grid;gap:23px; }
.desktop-shortcuts button { display:flex;flex-direction:column;align-items:center;gap:7px;border:1px solid transparent;color:white;background:transparent;text-shadow:1px 1px #004040;padding:5px;font-size:16px; }
.desktop-shortcuts button:hover { border:1px dotted white; }
.desktop-shortcuts .icon { width:32px;height:32px; }
.window,.classic-btn,.win-btn,.start-btn,.task-button,.start-menu,.raised {
  border:2px solid;border-color:#fff #000 #000 #fff;
  box-shadow:inset 1px 1px #dfdfdf,inset -1px -1px #808080;
  background:var(--win-gray);
}
.window { width:min(1280px,80vw);height:calc(100dvh - 4.5vh - 69px);margin:0 auto;min-width:0;display:flex;flex-direction:column;padding:2px; }
.window.maximized { position:fixed;inset:0 0 35px;width:100%;height:auto;z-index:10; }
.titlebar { display:flex;align-items:center;justify-content:space-between;min-height:24px;padding:2px 3px 2px 4px;color:white;background:linear-gradient(90deg,#000080,#1084d0);font-size:14px;user-select:none; }
.titlebar__title { display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden; }
.window-controls { display:flex;gap:2px; }
.win-btn { display:grid;place-items:center;width:18px;height:17px;padding:0;color:#000;font:700 13px/1 Arial,sans-serif; }
.classic-btn,.start-btn,.task-button { min-height:29px;padding:4px 11px;display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none;color:#111; }
.classic-btn:active,.tool-btn:active,.win-btn:active,.start-btn:active,.task-button:active { border-color:#000 #fff #fff #000;box-shadow:inset 1px 1px #808080; }
.classic-btn.primary { outline:1px solid #000;outline-offset:1px; }
.classic-btn.danger { color:#800000; }
.menubar { display:flex;position:relative;align-items:center;padding:2px 3px;border-bottom:1px solid #fff;min-height:27px; }
.menubar button { border:0;background:transparent;padding:2px 9px;text-align:left; }
.menubar button:hover,.menubar button[aria-expanded=true] { color:white;background:navy; }
.menu-wrap { position:relative; }
.menu-panel { position:absolute;top:100%;left:0;z-index:30;min-width:220px;padding:3px; }
.menu-panel button { display:flex;align-items:center;justify-content:space-between;width:100%;padding:9px;gap:18px;white-space:nowrap; }
.menu-panel small { font-size:13px; }
hr { margin:4px 2px;border:0;border-top:1px solid #808080;border-bottom:1px solid #fff; }
.toolbar { display:flex;align-items:center;gap:14px;padding:6px 8px;border-bottom:1px solid #808080;min-height:43px; }
.toolbar .tool-btn { display:inline-flex;align-items:center;gap:6px;min-width:77px;min-height:30px;padding:3px 10px;font-size:14px; }
.toolbar .icon { width:20px;height:20px; }
.toolbar-divider,.taskbar-divider { width:2px;align-self:stretch;flex-shrink:0;margin:1px 0;background:#808080;border-right:1px solid white; }
.addressbar,.searchbar { display:flex;align-items:center;gap:10px;padding:5px 8px;border-top:1px solid white;border-bottom:1px solid #808080;min-height:35px; }
.addressbar>label,.searchbar>label { width:62px;flex-shrink:0; }
.address-field { flex:1;min-width:0;display:flex;align-items:center;gap:6px;background:white;border:2px solid;border-color:#808080 white white #808080;padding:0 5px;height:26px; }
.address-field input { flex:1;min-width:0;border:0;padding:1px;height:22px;font-size:14px;outline:none; }
.searchbar input { flex:1;min-width:0;padding:2px 5px;height:27px; }
.searchbar .classic-btn { min-height:26px;height:27px;padding:2px 11px;font-size:14px; }
.window-body { display:grid;grid-template-columns:180px minmax(0,1fr);min-height:0;flex:1;margin:5px 3px 2px;background:white;overflow:hidden;border:2px solid;border-color:#808080 white white #808080; }
.sidebar { display:flex;flex-direction:column;min-width:0;overflow:auto;background:#efefef;border-right:1px solid #808080;padding:13px 7px; }
.folder-heading { margin:0 6px 12px;font-size:16px;font-weight:400; }
#folderNav { display:grid;gap:2px; }
.folder { display:flex;align-items:center;gap:8px;width:100%;border:0;background:transparent;padding:8px 6px;text-align:left;min-height:34px; }
.folder .icon { width:16px;height:16px; }
.folder .count { margin-left:auto;color:#666;font-size:12px; }
.folder:hover,.folder.active { color:white;background:navy; }
.folder:hover .count,.folder.active .count { color:white; }
.sidebar-bottom { margin-top:auto;padding:22px 6px 4px; }
.account-button { padding:0;border:0;background:transparent;text-decoration:underline;font-size:13px; }
.content { min-width:0;overflow:auto;padding:24px 25px 36px;scroll-behavior:smooth;background:white; }
.content:focus { outline:0; }
.document-view .window-body { grid-template-columns:minmax(0,1fr); }
.document-view .sidebar { display:none; }
.document-view .content { padding:32px 25px 40px; }
.section-heading { display:flex;align-items:center;gap:12px;margin:0 0 20px; }
.section-heading h1 { font-size:18px;font-weight:400;margin:0; }
.view-controls { display:flex;align-items:center;gap:5px;margin-left:auto; }
.view-button { display:grid;place-items:center;width:27px;height:26px;padding:1px;border:1px solid;border-color:#fff #808080 #808080 #fff;background:#c0c0c0;font-size:18px; }
.view-button.active { border-color:#808080 #fff #fff #808080;background:#dfdfdf; }
.sort-select { height:27px;font-size:13px;padding:2px 4px;margin-left:3px; }
.post-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.post-card { display:flex;flex-direction:column;min-width:0;background:#c0c0c0;border:1px solid;border-color:#fff #000 #000 #fff;box-shadow:inset -1px -1px #808080,inset 1px 1px #dfdfdf;cursor:pointer; }
.post-card:hover { outline:1px dotted #333;outline-offset:-4px; }
.post-card:focus-within { outline:2px solid navy; }
.post-cover { display:grid;place-items:center;height:145px;margin:6px 6px 0;background:#fff;overflow:hidden;border:1px solid;border-color:#808080 white white #808080; }
.post-cover>img:not(.icon) { width:100%;height:100%;object-fit:cover; }
.post-cover .icon { width:40px;height:40px; }
.post-card-body { padding:12px; }
.post-card h2 { margin:0;font-size:16px;font-weight:400;line-height:1.5;overflow-wrap:anywhere; }
.post-open { border:0;background:transparent;text-align:left;padding:0;font:inherit;line-height:inherit; }
.post-open:focus-visible { outline:0; }
.post-meta { display:flex;align-items:center;gap:9px;margin-top:8px;font-size:13px; }
.post-meta time { white-space:nowrap; }
.comment-count { display:flex;align-items:center;gap:4px; }
.comment-count .icon { width:15px;height:15px; }
.draft-badge { font-size:13px;color:#800000; }
.list-view { grid-template-columns:1fr;gap:9px; }
.list-view .post-card { flex-direction:row;align-items:center;min-height:51px;padding:7px 10px;gap:12px; }
.list-view .post-cover { width:29px;height:32px;flex-shrink:0;margin:0;border:0;background:transparent; }
.list-view .post-cover .icon { width:27px;height:29px; }
.list-view .post-card-body { display:flex;align-items:center;flex-wrap:wrap;gap:6px 11px;padding:0;min-width:0; }
.list-view .post-meta { margin:0;font-size:14px; }
.empty-message,.loading-state { padding:50px 15px;text-align:center;line-height:1.8; }
.empty-message h2 { font-weight:400;font-size:20px; }
.empty-message p { margin:0 0 18px; }
.statusbar { display:flex;padding:2px 3px;min-height:22px;font-size:12px; }
.statusbar>span { display:block;flex:1;padding:3px 5px;border:1px solid;border-color:#808080 white white #808080;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.taskbar { position:fixed;bottom:0;left:0;right:0;height:35px;padding:3px 5px;display:flex;align-items:center;gap:7px;background:#c0c0c0;border-top:2px solid white;z-index:50; }
.start-btn { min-height:27px;height:27px;padding:2px 6px;gap:4px;font-size:16px; }
.start-btn .icon { width:16px;height:16px; }
.taskbar-divider { margin:0 1px; }
.task-button { justify-content:flex-start;height:27px;min-height:27px;width:230px;max-width:46vw;padding:3px 9px;gap:6px;font-size:14px; }
.system-tray { display:flex;align-items:center;gap:9px;margin-left:auto;height:27px;padding:3px 8px;border:1px solid;border-color:#808080 white white #808080; }
.clock { font-size:14px;min-width:75px;text-align:center; }
.start-menu { display:grid;grid-template-columns:33px 1fr;position:fixed;left:4px;bottom:34px;width:265px;min-height:220px;z-index:60; }
.start-menu__rail { writing-mode:vertical-rl;transform:rotate(180deg);padding:12px 7px;color:#ddd;background:#808080;font-size:19px; }
.start-menu__items { padding:4px; }
.start-menu__items button { display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px;border:0;background:transparent;text-align:left;font-size:14px; }
.start-menu__items button:hover { background:navy;color:white; }
.closed-note { position:absolute;inset:45% auto auto 50%;transform:translate(-50%,-50%); }
dialog.app-dialog { position:fixed;inset:0;width:min(440px,calc(100vw - 24px));height:fit-content;min-height:0;max-height:calc(100dvh - 45px);margin:auto;padding:2px;overflow:hidden;color:#111; }
.app-dialog > .titlebar { flex-shrink:0; }
.app-dialog > .dialog-body { min-height:0;overflow-y:auto; }
.app-dialog:not([open]) { display:none; }
.app-dialog::backdrop { background:#0004; }
.dialog-body { padding:20px; }
.dialog-body h2 { font-size:21px;font-weight:400;margin:0 0 16px; }
.dialog-body p { font-size:14px;line-height:1.8;margin:0 0 17px; }
.dialog-body label { display:flex;flex-direction:column;gap:7px;margin-bottom:14px; }
.dialog-actions { display:flex;justify-content:flex-end;gap:8px;margin-top:18px; }
.dialog-brand { display:none; }
.form-error { color:#a00000;font-size:14px;line-height:1.7; }
.toast { position:fixed;z-index:70;bottom:47px;right:17px;max-width:calc(100vw - 34px);padding:11px 15px;font-size:14px;line-height:1.6; }
.article-head { margin:0 0 23px; }
.article-head h1 { margin:0 0 16px;font-size:27px;line-height:1.5;color:#0000a0;font-weight:400;overflow-wrap:anywhere; }
.article-byline { display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:14px; }
.article-byline>span:not(.article-actions) { color:#666; }
.article-actions { display:flex;gap:10px;margin-left:auto; }
.text-button { border:0;background:transparent;padding:0;text-decoration:underline;color:#000080;font-size:14px; }
.markdown { font-size:16px;line-height:1.9;overflow-wrap:anywhere; }
.markdown h1 { font-size:25px;font-weight:400;line-height:1.5;margin:27px 0 15px; }
.markdown h2 { font-size:22px;font-weight:400;line-height:1.5;margin:25px 0 14px; }
.markdown h3 { font-size:18px;line-height:1.5;margin:22px 0 12px; }
.markdown p { margin:0 0 22px; }
.markdown ul { margin:0 0 22px;padding-left:27px; }
.markdown blockquote { border-left:3px solid #808080;background:#eee;margin:22px 0;padding:12px 18px; }
.markdown pre { background:#eee;border:1px solid #aaa;padding:15px;overflow:auto;white-space:pre;font:14px/1.8 Consolas,monospace; }
.markdown code { background:#eee;font-family:Consolas,monospace;font-size:.9em;padding:2px 4px; }
.markdown pre code { padding:0; }
.attachment-gallery { display:grid;gap:20px;margin:26px 0; }
.attachment-gallery figure { margin:0; }
.attachment-gallery img,.attachment-gallery video { display:block;max-width:100%;max-height:750px;margin:auto; }
.attachment-gallery video { width:100%;background:#111; }
.attachment-gallery figcaption { margin-top:8px;font-size:13px;text-align:center;color:#666;overflow-wrap:anywhere; }
.comments-section { border-top:1px solid #808080;margin-top:45px;padding-top:22px; }
.comments-section h2 { font-size:20px;font-weight:400;margin:0 0 20px; }
.comments-section h2 span { font-size:16px; }
.comment { border-top:1px solid #c0c0c0;padding:16px 0; }
.comment-head { display:flex;align-items:center;gap:9px;font-size:16px; }
.comment-head time { margin-left:auto;font-size:13px; }
.author-badge { font-size:12px;color:#000080; }
.comment p { font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0; }
.comment.reply { margin-left:24px;padding-left:15px;border-left:1px solid #808080; }
.comment-actions { display:flex;gap:12px; }
.deleted-comment { color:#808080; }
.comment-form { background:#c0c0c0;border:1px solid;border-color:#fff #808080 #808080 #fff;padding:17px;margin-top:22px; }
.comment-form label { display:block;font-size:14px;margin-bottom:5px; }
.comment-form input { width:180px;max-width:100%;margin-bottom:12px;padding:5px 7px; }
.comment-form textarea { width:100%;resize:vertical;min-height:110px;line-height:1.8; }
.comment-form-footer { display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px; }
.comment-form-footer p { margin:0;font-size:13px; }
.reply-label { display:flex;justify-content:space-between;gap:10px;font-size:14px;margin-bottom:12px; }
.editor-title { display:flex;align-items:center;gap:8px;margin-bottom:22px; }
.editor-title h1 { margin:0;font-size:23px;font-weight:400; }
.editor-subtitle { font-size:14px;line-height:1.7;color:#666; }
.editor-fields { display:grid;grid-template-columns:135px minmax(0,1fr);gap:13px;margin-bottom:17px; }
.editor-fields label { display:flex;flex-direction:column;gap:7px;font-size:14px; }
.editor-fields input,.editor-fields select { width:100%;height:35px;border-right-color:#808080;border-bottom-color:#808080; }
.editor-tools { display:flex;align-items:center;gap:3px;padding:5px;background:#c0c0c0;border:1px solid #808080; }
.editor-tools button { min-width:30px;min-height:28px;padding:3px 9px;font-size:14px; }
.editor-tabs { display:flex;gap:3px;margin-left:auto; }
.editor-tabs button.active { background:#dfdfdf;border-color:#808080 #fff #fff #808080; }
#postBody,#editorPreview { width:100%;min-height:330px;padding:17px;border:1px solid #808080;font-size:16px;line-height:1.9; }
#postBody { resize:vertical; }
.editor-count { font-size:13px;text-align:right;margin:7px 0 15px;color:#666; }
.upload-box { padding:15px;background:#efefef;border:1px solid #808080; }
.upload-label { display:flex;align-items:center;gap:9px;margin-bottom:9px; }
.upload-box p { margin:8px 0;font-size:13px;line-height:1.6; }
.upload-box input { background:transparent;border:0;padding:3px 0;max-width:100%;font-size:14px; }
.attachment-list { display:grid;gap:7px;margin-top:10px; }
.attachment-item { display:flex;align-items:center;gap:9px;padding:6px;border:1px solid #aaa;background:white;font-size:13px; }
.attachment-item img { width:42px;height:35px;object-fit:cover; }
.attachment-name { flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.attachment-item button { border:0;background:transparent;padding:4px;font-size:17px; }
.editor-footer { display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:20px; }
.editor-footer .spacer { flex:1; }
.editor-status { margin-top:14px;font-size:13px;color:#666; }
@media(max-width:1000px) {
 .window { width:calc(100vw - 120px);margin-left:108px;margin-right:12px; }
 .desktop-shortcuts { width:87px; }
 .window-body { grid-template-columns:158px minmax(0,1fr); }
 .content { padding:20px; }
 .folder { gap:6px;font-size:15px; }
 .list-view .post-card-body { flex-direction:column;align-items:flex-start;gap:4px; }
 .list-view .post-card { min-height:65px; }
}
@media(max-width:700px) {
 .desktop { padding:5px 5px 40px; }
 .desktop-shortcuts { display:none; }
 .window { width:100%;height:100%;margin:0; }
 .titlebar { font-size:13px; }
 .menubar { padding:2px 0;min-height:28px; }
 .menubar button { padding:3px 6px;font-size:13px; }
 .menu-panel { min-width:190px; }
 .menu-panel button { padding:10px; }
 .toolbar { gap:10px;padding:5px;min-height:41px; }
 .toolbar .tool-btn { min-width:0;padding:4px 8px;font-size:13px;gap:5px; }
 .toolbar .icon { width:18px;height:18px; }
 .addressbar,.searchbar { gap:7px;padding:4px 5px;min-height:33px; }
 .addressbar>label,.searchbar>label { font-size:13px;width:51px; }
 .address-field input { font-size:13px; }
 .searchbar input { font-size:14px; }
 .window-body { display:flex;flex-direction:column;margin:4px 1px 1px; }
 .sidebar { flex-shrink:0;display:block;padding:4px;border:0;border-bottom:1px solid #808080;overflow:visible; }
 .folder-heading,.sidebar-bottom { display:none; }
 #folderNav { display:flex;gap:2px;overflow-x:auto; }
 .folder { width:auto;flex:0 0 auto;min-height:33px;gap:5px;padding:7px 5px;font-size:13px;white-space:nowrap; }
 .folder .icon { width:15px;height:15px; }
 .folder .count { display:none; }
 .content { flex:1;min-height:0;padding:17px 12px 25px; }
 .document-view .content { padding:24px 17px 30px; }
 .section-heading { margin-bottom:17px; }
 .section-heading h1 { font-size:17px; }
 .view-controls { gap:4px; }
 .sort-select { font-size:12px; }
 .list-view .post-card { padding:9px;gap:9px;min-height:63px; }
 .list-view .post-card-body { flex-direction:column;align-items:flex-start; }
 .post-card h2 { font-size:15px; }
 .list-view .post-meta { font-size:12px; }
 .list-view .post-cover { width:25px; }
 .list-view .post-cover .icon { width:24px;height:26px; }
 .post-list:not(.list-view) { grid-template-columns:1fr; }
 .statusbar { font-size:11px;min-height:21px; }
 .taskbar { gap:5px; }
 .task-button { font-size:13px;max-width:43vw; }
 .system-tray { gap:5px;padding:3px 5px; }
 .system-tray>span { display:none; }
 .clock { min-width:62px;font-size:12px; }
 .article-head h1 { font-size:23px; }
 .article-byline { font-size:13px; }
 .markdown { font-size:16px; }
 .comment-head { font-size:14px; }
 .comment-head time { font-size:12px; }
 .comment.reply { margin-left:12px;padding-left:12px; }
 .comment-form { padding:13px; }
 .comment-form-footer p { font-size:12px; }
 .editor-fields { grid-template-columns:1fr;gap:12px; }
 .editor-fields label:first-child { max-width:160px; }
 .editor-tools { gap:2px;flex-wrap:wrap; }
 .editor-tools button { font-size:12px;min-width:25px;padding:4px 6px; }
 #postBody,#editorPreview { padding:14px;min-height:310px; }
 .dialog-body { padding:18px; }
}
@media(max-width:370px) {
 .menubar button { padding:3px 4px;font-size:12px; }
 .toolbar { gap:6px; }.toolbar .tool-btn { padding:4px 6px; }
 .folder { font-size:12px;padding:7px 4px;gap:4px; }.folder .icon { width:14px;height:14px; }
}
@media(prefers-reduced-motion:reduce) { .content { scroll-behavior:auto; } }
