:root{--c-bg:#f5f6f8;--c-card:#fff;--c-text:#1f2328;--c-muted:#6b7280;--c-border:#e2e5ea;--c-primary:#2457d6;--c-danger:#c62828;--c-ok:#1b7f4b;--radius:8px;color:var(--c-text);background:var(--c-bg);font-family:Pretendard,Noto Sans KR,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}a{color:var(--c-primary);text-decoration:none}a:hover{text-decoration:underline}h2,h3{margin:0 0 12px}button,.btn{border:1px solid var(--c-border);color:var(--c-text);cursor:pointer;background:#fff;border-radius:6px;padding:7px 14px;font-size:14px;text-decoration:none;display:inline-block}button:hover,.btn:hover{background:#f0f2f5;text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--c-primary);border-color:var(--c-primary);color:#fff}.btn-primary:hover{background:#1c47b3}.btn-danger{color:var(--c-danger);border-color:#f1c4c4}.btn-link{color:var(--c-primary);background:0 0;border:none}input,select,textarea{border:1px solid var(--c-border);width:100%;font:inherit;border-radius:6px;padding:8px 10px}textarea{font-family:ui-monospace,Consolas,monospace;font-size:13px}.layout{min-height:100vh;display:flex}.sidebar{color:#cfd6e4;background:#1e2433;flex-shrink:0;width:210px;padding:20px 0}.sidebar .logo{color:#fff;margin:0;padding:0 20px 20px;font-size:20px}.sidebar nav a{color:#cfd6e4;padding:10px 20px;display:block}.sidebar nav a.active,.sidebar nav a:hover{color:#fff;background:#2c3550;text-decoration:none}.main{flex-direction:column;flex:1;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--c-border);background:#fff;justify-content:flex-end;align-items:center;gap:16px;padding:12px 24px;display:flex}.content{padding:24px}.page-header{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.page-header .actions{gap:8px;display:flex}.card{background:var(--c-card);border:1px solid var(--c-border);border-radius:var(--radius);margin-bottom:16px;padding:20px}.two-col{grid-template-columns:1fr 1fr;align-items:start;gap:16px;display:grid}@media (width<=900px){.two-col{grid-template-columns:1fr}}.form{flex-direction:column;gap:6px;display:flex}.form label{margin-top:8px;font-size:13px;font-weight:600}.form .checkbox{align-items:center;gap:6px;font-weight:400;display:flex}.form .checkbox input{width:auto}.form-actions{gap:8px;margin-top:16px;display:flex}.search-bar{gap:8px;max-width:640px;margin-bottom:12px;display:flex}.search-bar select{width:160px}.search-bar input{flex:1}.table{border-collapse:collapse;width:100%;font-size:14px}.table th,.table td{border-bottom:1px solid var(--c-border);text-align:left;padding:10px 8px}.table th{background:#fafbfc;font-weight:600}.notice-row{background:#fffbea}.row-actions{gap:6px;display:flex}.pagination{justify-content:center;gap:4px;margin-top:12px;display:flex}.pagination .active{background:var(--c-primary);color:#fff;border-color:var(--c-primary)}.grid-scroll{overflow-x:auto}.data-grid{table-layout:fixed;min-width:100%}.data-grid th{-webkit-user-select:none;user-select:none;position:relative}.data-grid th,.data-grid td{text-overflow:ellipsis;overflow:hidden}.grid-sort{font:inherit;cursor:pointer;color:inherit;text-align:left;background:0 0;border:none;width:100%;padding:0;font-weight:600}.grid-sort:hover{color:var(--c-primary)}.grid-resizer{cursor:col-resize;touch-action:none;width:6px;height:100%;position:absolute;top:0;right:0}.grid-resizer:hover,.grid-resizer.resizing{background:var(--c-primary);opacity:.5}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.tree,.tree ul{margin:0;padding-left:18px;list-style:none}.tree{padding-left:0}.tree-item{text-align:left;background:0 0;border:none;width:100%;padding:6px 8px}.tree-item.selected{background:#e8efff}.tree-item.disabled{opacity:.5}.tabs{gap:4px;margin-top:12px;display:flex}.tabs .active{background:var(--c-primary);color:#fff}.html-preview{border:1px dashed var(--c-border);border-radius:6px;min-height:200px;padding:16px}.html-editor{border:1px solid var(--c-border);background:#fff;border-radius:6px}.html-editor-toolbar{border-bottom:1px solid var(--c-border);background:#fafbfc;border-radius:6px 6px 0 0;flex-wrap:wrap;align-items:center;gap:4px;padding:6px;display:flex}.html-editor-toolbar button{min-width:32px;padding:4px 8px;font-size:13px}.html-editor-toolbar button.active{background:var(--c-primary);color:#fff;border-color:var(--c-primary)}.html-editor-toolbar .sep{background:var(--c-border);width:1px;height:20px;margin:0 2px}.html-editor-toolbar .spacer{flex:1}.html-editor .html-editor-content{border:none;border-radius:0 0 6px 6px;outline:none}.html-editor .html-editor-content:focus-visible{box-shadow:inset 0 0 0 2px #c9d6ff}.html-editor textarea{border:none;border-radius:0 0 6px 6px;width:100%}.html-editor .is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:var(--c-muted);pointer-events:none;height:0}.badge{background:#eef0f3;border-radius:10px;margin-right:6px;padding:1px 8px;font-size:12px;display:inline-block}.badge-ok{color:var(--c-ok);background:#e3f4ea}.alert{border-radius:6px;margin-bottom:12px;padding:10px 14px}.alert-error{color:var(--c-danger);background:#fdecec}.error-box{border-color:#f1c4c4}.loading,.empty{text-align:center;color:var(--c-muted);padding:32px}.muted{color:var(--c-muted)}.small{font-size:12px}.mono{font-family:ui-monospace,Consolas,monospace}.stats{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;display:grid}.stat{color:var(--c-text);flex-direction:column;gap:8px;display:flex}.stat strong{font-size:28px}.stat-label{color:var(--c-muted)}.login-wrap{justify-content:center;align-items:center;min-height:100vh;display:flex}.login-card{flex-direction:column;gap:6px;width:360px;display:flex}.login-card h1{margin:0}.login-card label{margin-top:8px;font-size:13px;font-weight:600}.login-card button{margin-top:16px;padding:10px}.hint{color:var(--c-muted);text-align:center;font-size:12px}
