:root{--bg:#f4f7fb;--panel:#ffffff;--line:#e5e7eb;--text:#111827;--muted:#6b7280;--brand:#2563eb;--brand-dark:#1d4ed8;--soft:#eff6ff;--shadow:0 10px 30px rgba(15,23,42,.08);--radius:20px;--danger:#dc2626}
*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Inter,"Noto Sans KR",system-ui,sans-serif;color:var(--text);background:linear-gradient(180deg,#f8fbff 0%,var(--bg) 100%)}
.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{padding:28px 20px;border-right:1px solid var(--line);background:#fff;position:sticky;top:0;height:100vh}
.brand-block{display:flex;gap:14px;align-items:center;margin-bottom:28px}.brand-badge{width:48px;height:48px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(135deg,var(--brand),#60a5fa);color:#fff;font-weight:800;box-shadow:var(--shadow)}
.brand-title{font-size:22px;font-weight:800}.brand-subtitle{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.4}.nav-group-title{font-size:12px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.06em;margin:16px 8px 8px}
.sidebar-nav{display:grid;gap:10px}.menu-btn{width:100%;text-align:left;padding:13px 14px;border:1px solid transparent;border-radius:14px;background:#fff;color:#334155;font-weight:700;cursor:pointer}.menu-btn:hover{background:#f8fafc;border-color:#dbeafe}.menu-btn.active{background:var(--soft);color:var(--brand-dark);border-color:#bfdbfe}
.main-panel{padding:28px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.topbar h1{margin:0;font-size:34px}.page-desc{margin:8px 0 0;color:var(--muted)}
.notice{padding:14px 16px;border-radius:14px;margin-bottom:20px;font-weight:600}.notice.success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.notice.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.notice.hidden{display:none}
.tab-section{display:none}.tab-section.active{display:block}.card{background:var(--panel);border:1px solid rgba(226,232,240,.9);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;margin-bottom:20px}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.section-head h3{margin:0;font-size:20px}.section-head p{margin:6px 0 0;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.form-grid.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}label{display:grid;gap:8px}label>span{font-size:14px;font-weight:700}
input,select,textarea{width:100%;border:1px solid #d1d5db;background:#fff;color:var(--text);border-radius:14px;padding:13px 14px;font-size:15px;outline:none}input:focus,select:focus,textarea:focus{border-color:#93c5fd;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
.full{grid-column:1/-1}.mt16{margin-top:16px}.checkbox-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;max-height:360px;overflow:auto;padding:6px 4px 6px 2px}
.checkbox-item{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;cursor:pointer}.checkbox-item input{width:18px;height:18px;margin:0;accent-color:var(--brand)}.check-row{display:flex;align-items:center;gap:10px}.check-row input{width:18px;height:18px;margin:0;accent-color:var(--brand)}
.wizard-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px}.wizard-step{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #dbe3f0;border-radius:16px;background:#f8fafc;color:#64748b}.wizard-step span{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:#e2e8f0;font-weight:800}.wizard-step.active{background:var(--soft);color:var(--brand-dark);border-color:#bfdbfe}.wizard-step.done{background:#ecfdf5;color:#166534;border-color:#bbf7d0}.wizard-step.done span{background:#22c55e;color:#fff}
.wizard-pane{display:none}.wizard-pane.active{display:block}.wizard-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.review-box,.placeholder-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:18px;line-height:1.8}
.btn{border:none;border-radius:14px;padding:12px 16px;font-size:14px;font-weight:700;cursor:pointer}.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff}.btn-secondary{background:#fff;color:#334155;border:1px solid #d1d5db}.btn-danger{background:#fff;color:var(--danger);border:1px solid #fecaca}.btn.hidden{display:none}
.table-wrap{overflow:auto}table{width:100%;border-collapse:separate;border-spacing:0;min-width:1260px}thead th{background:#f8fafc;color:#334155;text-align:left;font-size:13px;font-weight:800;padding:14px 12px;border-bottom:1px solid var(--line)}tbody td{padding:14px 12px;border-bottom:1px solid #eef2f7;font-size:14px;vertical-align:top;line-height:1.6}
a{color:var(--brand-dark);text-decoration:none}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}.code-box{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:16px;padding:16px;min-height:100px;overflow:auto}
.progress-modal,.confirm-modal{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;z-index:9999}.progress-modal.hidden,.confirm-modal.hidden{display:none}.progress-card,.confirm-card{width:min(560px,92vw);background:#fff;border-radius:20px;padding:24px;box-shadow:var(--shadow)}
.progress-bar{width:100%;height:16px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progress-fill{width:0%;height:100%;background:linear-gradient(135deg,var(--brand),#60a5fa);transition:width .35s ease}.progress-percent{margin-top:10px;font-weight:800;color:var(--brand-dark)}.progress-message{margin-top:6px;color:var(--muted)}.confirm-target{padding:14px 16px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;line-height:1.7;margin-bottom:12px;white-space:pre-line}.confirm-require{margin-bottom:12px;font-size:14px;color:#b91c1c}.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
@media (max-width:1280px){.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:relative;height:auto;border-right:none;border-bottom:1px solid var(--line)}.form-grid,.form-grid.two-col,.checkbox-grid,.wizard-steps{grid-template-columns:1fr}}

.toolbar select{min-width:260px}
hr{border:none;border-top:1px solid #e5e7eb;margin:16px 0}

.status-badge{display:inline-flex;align-items:center;justify-content:center;min-width:52px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:800}.status-badge.ok{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.status-badge.wait{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}.muted-text{color:#94a3b8}.realm-select{min-width:240px}
