:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;color:#182230;background:#f4f6fa;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}.hidden{display:none!important}.muted{color:#7b8798}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em;color:#8290a4;margin:0 0 9px}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 10%,#dce9ff,transparent 35%),#f4f6fa}
.auth-card{width:min(100%,420px);background:#fff;border:1px solid #e7ebf1;border-radius:20px;padding:38px;box-shadow:0 20px 60px #1c2c4412}
.brand-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#172b4d;color:white;font-size:25px;font-weight:800;margin-bottom:25px}.auth-card h1{font-size:25px;margin:0 0 8px}.auth-card form{display:grid;gap:9px;margin-top:28px}.auth-card label{font-size:13px;font-weight:700;margin-top:8px}.auth-card input{height:46px;border:1px solid #dce2eb;border-radius:9px;padding:0 13px;outline:none}.auth-card input:focus{border-color:#4779d6;box-shadow:0 0 0 3px #4779d61a}
.primary{border:0;border-radius:9px;padding:11px 17px;background:#2459b8;color:white;font-weight:700;cursor:pointer}.primary:hover{background:#1c499b}.full{height:47px;margin-top:14px}.message{min-height:20px;font-size:13px;color:#526174}.message.error,.error{color:#c43d48}.layout{min-height:100vh}.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:#111d31;color:#eaf0fa;padding:25px 17px;display:flex;flex-direction:column}.side-brand{display:flex;align-items:center;gap:11px;padding:0 9px 34px}.side-brand b,.side-brand small{display:block}.side-brand b{letter-spacing:.08em}.side-brand small{font-size:10px;color:#91a2bd;margin-top:4px;letter-spacing:.12em}.brand-mark.small{width:36px;height:36px;margin:0;border-radius:10px;font-size:18px}.sidebar nav{display:grid;gap:6px}.nav-item{border:0;background:transparent;color:#aebbd0;text-align:left;padding:13px 14px;border-radius:9px;cursor:pointer}.nav-item:hover,.nav-item.active{background:#263a5b;color:#fff}.side-bottom{margin-top:auto}.user-chip{display:flex;align-items:center;gap:10px;padding:14px 7px;border-top:1px solid #2c3a50}.avatar{width:32px;height:32px;display:grid;place-items:center;background:#3d5d8d;border-radius:50%;font-weight:800}.user-chip b,.user-chip small{display:block;max-width:150px;overflow:hidden;text-overflow:ellipsis}.user-chip b{font-size:12px}.user-chip small{font-size:11px;color:#9aabc4;margin-top:3px}.logout{width:100%;text-align:left;padding:10px 9px;background:none;border:0;color:#b5c1d3;cursor:pointer}
.main{margin-left:248px;padding:34px 42px;max-width:1600px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.topbar h1{font-size:27px;margin:0}.status{font-size:12px;color:#66758a;background:#fff;border:1px solid #e5eaf1;border-radius:30px;padding:9px 13px}.status i{display:inline-block;width:7px;height:7px;background:#27ae75;border-radius:50%;margin-right:7px}.welcome{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(115deg,#1c3760,#315b98);border-radius:16px;color:white;padding:28px 32px;margin-bottom:22px}.welcome .eyebrow{color:#b6c9e8}.welcome h2{font-size:23px;margin:0 0 8px}.welcome .muted{color:#d0dced;margin:0}.welcome-icon{font-size:58px;opacity:.45;padding:0 20px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card,.panel{background:#fff;border:1px solid #e7ebf1;border-radius:13px}.stat-card{padding:21px}.stat-card span,.stat-card small{display:block;color:#778498;font-size:13px}.stat-card strong{display:block;font-size:31px;margin:12px 0 5px;color:#1c2c43}.panel{padding:23px}.panel h3{margin:0 0 5px}.panel-head{margin-bottom:18px}.steps{padding-left:22px;margin:18px 0 0;display:grid;gap:16px}.steps li b,.steps li span{display:block}.steps li span{font-size:13px;color:#7b8798;margin-top:4px}.toolbar{display:flex;justify-content:space-between;align-items:center;margin:0 0 20px}.toolbar h2{font-size:21px;margin:0 0 5px}.toolbar p{margin:0}.table-panel{padding:0;overflow:hidden}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:650px}th,td{text-align:left;padding:15px 18px;border-bottom:1px solid #edf0f4;font-size:13px}th{background:#f8f9fb;color:#68768a;font-weight:700}td{color:#35445a}tr:last-child td{border-bottom:0}.empty{text-align:center;color:#8995a5;padding:30px}.tag{display:inline-block;background:#edf3ff;color:#315fa8;border-radius:20px;padding:4px 9px;font-size:11px}.hint{font-size:12px;color:#8a95a5;margin-top:13px}footer{font-size:11px;color:#a0a9b6;padding:30px 0 10px}.global{margin:-13px 0 16px}.notice{background:#fff6df;color:#8a6413;padding:11px;border-radius:8px;font-size:12px;margin-top:16px}
@media(max-width:800px){.sidebar{width:68px;padding:18px 9px}.side-brand{padding:0 6px 25px}.side-brand>div,.sidebar nav .nav-item{font-size:0}.sidebar nav .nav-item{height:43px;padding:0}.sidebar nav .nav-item:after{content:"•";font-size:22px}.user-chip{padding:12px 0}.user-chip>span:last-child,.logout{display:none}.main{margin-left:68px;padding:24px 18px}.stats{grid-template-columns:1fr}.topbar{align-items:flex-start;gap:10px;flex-direction:column}.welcome{padding:22px}.welcome-icon{display:none}}

/* =====================================================
   최초 관리자 등록 화면
   ===================================================== */

[hidden] {
    display: none !important;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background: #f3f5f9;
    box-sizing: border-box;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 38px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.setup-card {
    border-top: 4px solid #2563eb;
}

.setup-icon {
    font-size: 42px;
    text-align: center;
    margin-bottom: 15px;
}

.setup-card h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.setup-card h2 {
    text-align: center;
    font-size: 19px;
    color: #334155;
    margin: 12px 0;
}

.setup-description {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
}

.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-primary {
    width: 100%;
    height: 46px;
    margin-top: 12px;
    border: none;
    border-radius: 7px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.setup-message {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    color: #dc2626;
}

.setup-message.success {
    color: #15803d;
}

.setup-message.info {
    color: #2563eb;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }

    .setup-card h1 {
        font-size: 19px;
    }
}
