:root{color:#173b47;background:#eaf1f6;--ink:#173b47;--muted:#456675;--line:#b3c7d4;--primary:#145dba;--green:#116c58}
body{background:#eaf1f6;color:var(--ink);height:100dvh;overflow:hidden}
button{border-radius:12px;min-height:36px;background:var(--primary);color:white;font-weight:600;line-height:1.4}
button.ghost,button.secondary{background:#f5f9fd;color:#234d69;border:1px solid #9cb8cd}
button.admin-button{background:#6347a2;color:white}button.danger,button.danger-soft{background:#a42643;color:white}
button.link-button{background:transparent;color:#145dba}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #2d7ed2;outline-offset:2px}
button:disabled{opacity:.55}input,textarea,select{color:var(--ink);background:white;border:1px solid var(--line);border-radius:10px;line-height:1.5}
.shell{height:100dvh;min-height:0;display:flex;flex-direction:column;max-width:1800px}
.topbar{flex:none;padding:12px 20px;background:#dbeaf3;border-bottom:1px solid #a7c2d5;z-index:5}
.topbar h1{font-size:25px;color:#114c71}.topbar p,.helper{color:var(--muted)}.usage{color:#365d79}.user-badge{color:#543984}
.warning{color:#764504;background:#fff0cd;border-color:#c9a050}
.auth-card,.admin-card{background:#fff;border-color:var(--line);color:var(--ink)}.auth-card{overflow:auto;max-height:calc(100dvh - 140px);flex-shrink:1}
.auth-card>h2{position:sticky;top:-22px;background:white;padding:12px 0;z-index:1}
.auth-card label,.admin-card label{color:#315464}
.auth-card input,.auth-card textarea,.admin-card input,.admin-card select,.search,.title-input{background:white;color:var(--ink);border-color:var(--line)}
.status{color:#195c93}.secret-box,.admin-row,.admin-request{background:#eef5fa;color:var(--ink);border-color:var(--line)}
.admin-row small,.admin-request small,.admin-request p{color:#466779}.admin-panel{overflow:auto;min-height:0;flex:1}.admin-head{position:sticky;top:-18px;background:#eaf1f6;padding:10px 0;z-index:2}
.role-admin{color:#6443a0}.role-user{color:#155bb3}
.workspace{flex:1;min-height:0;height:auto;grid-template-columns:280px minmax(390px,1fr) minmax(260px,.7fr);overflow:hidden}
.sidebar{display:flex;flex-direction:column;background:#f2f7fb;border-color:var(--line);min-height:0;overflow:hidden}
.side-head{flex:none;margin-bottom:10px!important}.side-head h2{margin:0;font-size:19px}
.search,#noteTitleDetails input{padding:6px 10px;margin-top:0;min-height:34px;font-size:16px;line-height:1.4}
.note-folder-tools{flex-wrap:wrap}.note-folder-tools select{background:white;color:var(--ink);border-color:var(--line);min-height:34px}
#newWorkListBtn{background:#116c58;color:white;width:100%}
.notes-list{flex:1;overflow:auto;min-height:0;padding-bottom:12px}
.note-card{background:white;color:var(--ink);border-color:#b3c7d4;box-shadow:0 2px 6px #173b4708}
.note-card.active{background:#deedff;border-color:#377ac4}.note-card span,.note-card small{color:#446475}
.note-card[data-color=yellow]{background:#fff4cb;border-color:#c2a346}.note-card[data-color=pink]{background:#ffe8ee;border-color:#c48da1}
.note-card[data-color=blue]{background:#e4efff;border-color:#88afd8}.note-card[data-color=green]{background:#def4e9;border-color:#88b7a2}
.note-row-menu{color:#2b5770!important;background:#edf4fa!important;border-color:#b3c7d4!important}
.editor,.viewer{border-color:var(--line)}.note-editor-head{background:#dceef1;border-color:#9dbfc7}.note-title-toggle{color:#174554}
.note-meta-row{background:#edf5f7}.note-editor-head>button:last-child{background:#145dba;color:#fff}.note-meta-row .file-button{background:#d9e8f2;color:#285777}
.viewer{display:flex;flex-direction:column;overflow:hidden;background:#f6f9fc}.viewer-head{flex:none}.viewer-body{flex:1;min-height:0;overflow:auto;color:#315969;border-color:#aac3d3;background:#fff}
.attachment small{color:#4b6877}.excel-table td{border-color:#b3c7d4}.sheet-tabs button{background:#e1ecf5;color:#285777}
dialog{background:#fff;color:var(--ink);border-color:#aac0d0}dialog .note-dialog-head{background:white;border-color:#b4c9d5;z-index:3}#noteFolderName{background:#fff;color:var(--ink);border-color:var(--line)}
#noteWorkEditor{flex:1;min-height:0;overflow:auto;padding:12px;background:#f6fafc}
.work-toolbar{display:flex;gap:6px;flex-wrap:wrap}.work-toolbar button{font-size:12px;padding:6px 9px}.work-toolbar .file-button{font-size:12px;background:#e0ecf5;color:#234e70;padding:8px 10px}
.work-toolbar input{display:none}.work-summary{font-size:13px;color:#285e6c;margin:10px 0}.work-empty{padding:24px;background:white;border:1px dashed #9bbdcc;border-radius:14px;line-height:1.7}
.work-table-wrap{overflow:auto;border:1px solid #acc6d6;border-radius:12px}.work-table{border-collapse:collapse;width:100%;font-size:13px;background:white}
.work-table th,.work-table td{border-bottom:1px solid #c6d9e5;padding:7px;vertical-align:top}.work-table th{background:#dceaf3;position:sticky;top:0;z-index:1;white-space:nowrap;color:#234b67}
.work-table th button{background:transparent;color:#234b67;padding:3px;min-height:26px}.work-table td textarea{min-height:36px;width:150px;resize:vertical;padding:5px;margin:0}
.work-table td>input:not([type=checkbox]){width:115px;padding:5px}.work-table input[type=checkbox]{width:20px;height:20px;accent-color:#116c58}
.work-table td:last-child{white-space:nowrap}.work-table td:last-child button{padding:3px 7px;min-height:30px;background:#edf4fa;color:#285777;border:1px solid #b3c7d4}
.work-state{display:block;font-size:12px;font-weight:700;color:#486474;margin-top:5px}.work-state[data-state="완료"]{color:#116743}.work-state[data-state="진행 중"]{color:#135fbd}.work-state[data-state="실패"],.work-state[data-state="오류"]{color:#a12544}.work-state[data-state="값 변경됨"]{color:#865b14}.work-step{display:block;color:#557181;max-width:160px;overflow-wrap:anywhere}
@media(max-width:1100px){.workspace{grid-template-columns:260px minmax(360px,1fr)}.viewer{display:none}}
@media(max-width:720px){.topbar{padding:10px;min-height:60px}.topbar h1{font-size:21px}.workspace{display:flex;flex-direction:column}.sidebar{flex:1}.editor{display:none}.note-writing .workspace{height:100dvh}.note-writing .editor{display:flex;flex:1;min-height:0}.note-writing .sidebar{display:none}#noteWorkEditor{padding:8px}.note-editor-head{padding:6px}.note-folder-tools #newWorkListBtn{width:auto;margin-left:auto}.note-folder-tools select{flex:1}.auth-card{margin:20px auto}}
