:root {
    --bg: #f6f8fc;
    --panel: #ffffff;
    --line: #e3e6eb;
    --text: #202124;
    --muted: #5f6368;
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --danger: #d93025;
    --ok: #188038;
    --unread-bg: #ffffff;
    --read-bg: #f2f4f8;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(60, 64, 67, .15);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
b { font-weight: 600; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.num { text-align: right; }
.spacer { flex: 1; }
.dot { color: var(--muted); margin: 0 4px; }

/* ------------------------------ 상단바 ------------------------------ */
.topbar {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 20px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    padding-top: 6px;
    white-space: nowrap;
}
.brand-mark { font-size: 22px; }

.search-form { flex: 1; max-width: 900px; position: relative; }

.search-box {
    display: flex;
    align-items: center;
    background: #eef1f6;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 2px 6px 2px 10px;
    transition: background .15s, box-shadow .15s;
}
.search-box:focus-within {
    background: #fff;
    box-shadow: var(--shadow);
    border-color: var(--line);
}
.search-field {
    border: 0;
    background: transparent;
    font-size: 13px;
    color: var(--muted);
    padding: 8px 4px;
    outline: none;
    cursor: pointer;
}
.search-input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 15px;
    padding: 10px 8px;
    outline: none;
}
.search-button, .search-adv {
    border: 0;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    color: var(--muted);
}
.search-button:hover, .search-adv:hover { background: rgba(0, 0, 0, .06); }

.advanced-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(60, 64, 67, .2);
    padding: 16px;
    z-index: 40;
}
.advanced-panel.open { display: block; }
.adv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}
.adv-grid label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: var(--muted);
    gap: 4px;
}
.adv-grid input[type=text], .adv-grid input[type=date], .adv-grid select {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 7px 9px;
    font-size: 14px;
    outline: none;
}
.adv-grid input:focus, .adv-grid select:focus { border-color: var(--primary); }
.adv-checks { flex-direction: row !important; align-items: center; gap: 16px; font-size: 13px; color: var(--text); }
.adv-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

.top-actions { display: flex; gap: 8px; padding-top: 4px; }

/* ------------------------------ 레이아웃 ------------------------------ */
.layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: calc(100vh - 61px);
}

.sidebar {
    width: 248px;
    flex: 0 0 248px;
    padding: 16px 10px;
    position: sticky;
    top: 61px;
    max-height: calc(100vh - 61px);
    overflow-y: auto;
}

.nav-list { list-style: none; margin: 0 0 12px; padding: 0; }
.nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 0 20px 20px 0;
    color: var(--text);
    font-size: 13.5px;
}
.nav-list a:hover { background: #e8eaed; }
.nav-list a.active { background: #d3e3fd; font-weight: 700; color: var(--primary-dark); }
.nav-list .count { color: var(--muted); font-size: 12px; }
.nav-list a.active .count { color: var(--primary-dark); }
.mailbox-list a { padding-right: 10px; }
.mailbox-name {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.empty-hint { padding: 8px 14px; color: var(--muted); font-size: 12.5px; }

.sidebar-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .5px;
}
.sidebar-footer {
    padding: 12px 14px;
    font-size: 12px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    margin-top: 8px;
}
.link-small { font-size: 12px; color: var(--primary); }
.link-small:hover { text-decoration: underline; }
.link-strong { color: var(--primary); font-weight: 600; }
.link-strong:hover { text-decoration: underline; }

.content {
    flex: 1;
    min-width: 0;
    padding: 12px 20px 40px;
}
.content-full { max-width: 800px; margin: 0 auto; }

/* ------------------------------ 버튼 ------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #eef1f6;
    color: var(--text);
    white-space: nowrap;
}
.btn:hover { background: #e2e6ee; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: #eef1f6; }
.btn-danger { background: transparent; color: var(--danger); border-color: #f3c4c1; }
.btn-danger:hover { background: #fce8e6; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.inline-form { display: inline; }

/* ------------------------------ 알림 ------------------------------ */
.alerts:empty { display: none; }
.alert {
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13.5px;
}
.alert-info { background: #e6f4ea; color: #1e6b34; border: 1px solid #b7e1c2; }
.alert-error { background: #fce8e6; color: #a50e0e; border: 1px solid #f3c4c1; }
/* 관리자가 다른 사용자의 데이터를 보고 있을 때. 정보도 오류도 아니므로 새 상태가 필요하다. */
.alert-warn { background: #fef7e0; color: #8a5a00; border: 1px solid #fadf9a; }

/* 메일함 이름 인라인 편집 — 숨김은 CSS 로만 하므로 JS 없는 환경에서도 폼이 동작한다 */
.rename-form { display: none; gap: 6px; align-items: center; }
.rename-input { padding: 4px 8px; font-size: 13px; border: 1px solid var(--border); border-radius: 6px; min-width: 220px; }
tr.renaming .rename-form { display: inline-flex; }
tr.renaming .batch-name { display: none; }
tr.renaming .rename-start { visibility: hidden; }

/* 관리자 조회 대상 전환 */
.owner-switch { display: flex; align-items: center; }
.owner-switch label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.owner-switch select { padding: 5px 8px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; max-width: 190px; }
.owner-switch-label { white-space: nowrap; }

/* ------------------------------ 목록 툴바 ------------------------------ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px 12px;
    flex-wrap: wrap;
}
.toolbar-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.toolbar-right { margin-left: auto; display: flex; gap: 6px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.mini-select {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12.5px;
    background: #fff;
    cursor: pointer;
}

.result-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 0;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--muted);
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f0fe;
    color: var(--primary-dark);
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 12px;
}
.chip-clear { background: #f1f3f4; color: var(--muted); }
.chip-clear:hover { background: #e2e6ee; }

/* ------------------------------ 메일 목록 ------------------------------ */
.mail-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    overflow: hidden;
}
.mail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-bottom: 1px solid #eef0f3;
    min-height: 46px;
}
.mail-row:last-child { border-bottom: 0; }
.mail-row:hover { box-shadow: inset 0 0 0 9999px rgba(26, 115, 232, .04); }
.mail-row.is-read { background: var(--read-bg); }
.mail-row.is-unread { background: var(--unread-bg); }
.mail-row.is-unread .col-subject b, .mail-row.is-unread .col-from { font-weight: 700; }
.mail-row.is-read .col-from, .mail-row.is-read .col-subject b { font-weight: 400; color: #3c4043; }

.star-btn {
    border: 0;
    background: transparent;
    color: #d0d3d8;
    font-size: 17px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}
.star-btn:hover { color: #f5b400; }
.star-btn.on { color: #f5b400; }

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 28px;
}
.avatar-lg { width: 40px; height: 40px; flex: 0 0 40px; font-size: 17px; }

.mail-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 8px 0;
}
.col-from {
    flex: 0 0 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13.5px;
}
.col-subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-subject .preview { color: var(--muted); margin-left: 8px; font-weight: 400; }
.col-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--muted);
}
.badge-batch {
    background: #f1f3f4;
    border-radius: 4px;
    padding: 2px 6px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.col-meta .date { min-width: 62px; text-align: right; }
.col-meta .size { min-width: 60px; text-align: right; }

.mail-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty-illustration { font-size: 46px; margin-bottom: 8px; }

/* ------------------------------ 페이지네이션 ------------------------------ */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 16px 0; flex-wrap: wrap; }
.page-link {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 6px;
    padding: 6px 11px;
    font-size: 13px;
    color: var(--muted);
}
.page-link:hover { background: #eef1f6; }
.page-link.current { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

.sender-stats { margin-top: 24px; }
.sender-stats h3 { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.sender-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sender-chips .chip b { background: rgba(255, 255, 255, .7); border-radius: 8px; padding: 0 6px; }

/* ------------------------------ 상세 ------------------------------ */
.view-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.mail-view {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px 24px;
}
.view-subject { font-size: 21px; margin: 0 0 16px; font-weight: 500; word-break: break-all; }
.tag {
    display: inline-block;
    font-size: 11px;
    border-radius: 4px;
    padding: 2px 7px;
    background: #f1f3f4;
    color: var(--muted);
    vertical-align: middle;
}
.tag-priority { background: #fce8e6; color: var(--danger); }
.tag-ok { background: #e6f4ea; color: var(--ok); }
.tag-ng { background: #fce8e6; color: var(--danger); }

.view-header { display: flex; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.view-header-main { min-width: 0; flex: 1; }
.view-header .line { font-size: 13px; margin-bottom: 3px; word-break: break-all; }
.view-header .label {
    display: inline-block;
    min-width: 62px;
    color: var(--muted);
    font-size: 12px;
}
.meta-line { margin-top: 6px; color: var(--muted); }
.meta-line a { color: var(--primary); }
.meta-line a:hover { text-decoration: underline; }

.raw-headers {
    display: none;
    background: #f8f9fb;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font-size: 12px;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 12px 0 0;
}
.raw-headers.open { display: block; }

.warning-banner {
    margin-top: 12px;
    background: #fef7e0;
    border: 1px solid #fbd77e;
    color: #7a5b00;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
}

.attachments { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.attachments-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.attachment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.attachment-list li { display: flex; flex-direction: column; gap: 2px; }
.attachment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    background: #fbfcfe;
}
.attachment-card:hover { border-color: var(--primary); background: #f2f7fe; }
.file-icon {
    flex: 0 0 40px;
    height: 34px;
    background: var(--primary);
    color: #fff;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .3px;
}
.file-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.file-name { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { font-size: 11px; color: var(--muted); }
.download-icon { color: var(--muted); }
.attachment-preview { font-size: 11.5px; color: var(--primary); padding-left: 4px; }
.attachment-preview:hover { text-decoration: underline; }

.body-frame-wrap { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.body-frame {
    width: 100%;
    min-height: 420px;
    border: 0;
    background: #fff;
}

/* ------------------------------ 패널 / 폼 ------------------------------ */
.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.panel h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.error-panel { text-align: center; padding: 60px 24px; }
.panel-danger { border-color: #f3c4c1; }
.panel-danger h2 { color: var(--danger); }
.danger-notes { margin: 8px 0 16px; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.right-action { float: right; font-weight: 600; }

.dropzone {
    position: relative;
    border: 2px dashed #b7c3d6;
    border-radius: var(--radius);
    background: #f8faff;
    padding: 36px 20px;
    text-align: center;
    margin: 14px 0;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--primary); background: #eef4ff; }
.dropzone p { margin: 4px 0; }
.dropzone-icon { font-size: 40px; }
.dropzone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-preview { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.file-preview li {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 6px 10px;
}

.form-row + .form-row { margin-top: 12px; }
.form-row label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); max-width: 420px; }
.form-row input[type=text],
.form-row input[type=password] {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}
.form-row input[type=text]:focus,
.form-row input[type=password]:focus { border-color: var(--primary); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }

/* ------------------------------ 업로드 진행 ------------------------------ */
.progress-box {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8faff;
    padding: 14px 16px;
}
.progress-box.is-failed { background: #fdf3f2; border-color: #f3c4c1; }

.progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.progress-phase { font-size: 13.5px; font-weight: 600; }
.progress-percent { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.progress-track {
    height: 8px;
    border-radius: 4px;
    background: #dfe4ee;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary);
    border-radius: 4px;
    transition: width .25s ease;
}
.progress-box.is-failed .progress-bar { background: var(--danger); }

/* 전체 분량을 모를 때(전송 완료 후 서버 준비 중 등) 흐르는 줄무늬로 표시 */
.progress-bar.indeterminate {
    background-image: linear-gradient(115deg,
        rgba(255, 255, 255, .45) 25%, transparent 25%,
        transparent 50%, rgba(255, 255, 255, .45) 50%,
        rgba(255, 255, 255, .45) 75%, transparent 75%);
    background-size: 28px 28px;
    animation: progress-stripes 1s linear infinite;
}
@keyframes progress-stripes {
    from { background-position: 0 0; }
    to { background-position: 28px 0; }
}

.progress-detail {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    word-break: break-all;
    min-height: 16px;
}
.progress-counters {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 10px 0 0;
    padding: 0;
    font-size: 13px;
}
.progress-counters .label { color: var(--muted); font-size: 12px; margin-right: 6px; }
.progress-counters .ok { color: var(--ok); }
.progress-counters .ng { color: var(--danger); }

.result-inline { margin-top: 16px; }
.result-inline h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
    .progress-bar { transition: none; }
    .progress-bar.indeterminate { animation: none; }
}

.result-grid { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 12px; font-size: 14px; }
.result-grid .label { color: var(--muted); font-size: 12px; margin-right: 6px; }
.result-grid .ok { color: var(--ok); }
.result-grid .ng { color: var(--danger); }
.error-list { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--danger); max-height: 260px; overflow: auto; }
.bullet { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.bullet li { margin-bottom: 4px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; }
.data-table th { color: var(--muted); font-size: 12px; font-weight: 600; }
.data-table tbody tr:hover { background: #f8faff; }
.data-table a { color: var(--primary); }
.data-table a:hover { text-decoration: underline; }

/* ------------------------------ 반응형 ------------------------------ */
@media (max-width: 1100px) {
    .col-from { flex: 0 0 130px; }
    .badge-batch { display: none; }
}

@media (max-width: 860px) {
    .topbar { flex-wrap: wrap; }
    .sidebar { display: none; }
    .adv-grid { grid-template-columns: 1fr; }
    .col-from { flex: 0 0 100px; }
    .col-subject .preview { display: none; }
    .col-meta .size { display: none; }
}

/* ------------------------------ 로그인 / 가입 ------------------------------ */
.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(160deg, #eef3fc 0%, #f6f8fc 60%);
}
.auth-card {
    width: 100%;
    max-width: 380px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(60, 64, 67, .12);
    padding: 32px 28px 24px;
    text-align: center;
}
.auth-card-wide { max-width: 440px; }
.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}
.auth-lead { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.auth-card h2 { margin: 8px 0; font-size: 18px; }

.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin-top: 4px; }
.auth-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); }
.auth-form input {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 115, 232, .12); }
.btn-block { justify-content: center; width: 100%; padding: 11px; font-size: 14px; margin-top: 6px; }
.field-error { color: var(--danger); font-size: 11.5px; }

.auth-footer { margin-top: 18px; font-size: 13px; display: flex; gap: 6px; justify-content: center; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-note {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

/* ------------------------------ 로그인 사용자 ------------------------------ */
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    margin-left: 4px;
    border-left: 1px solid var(--line);
    font-size: 13px;
}
.user-name { font-weight: 600; }
.user-role {
    background: #e6f4ea;
    color: var(--ok);
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
}
.pending-badge {
    display: inline-block;
    min-width: 18px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

/* ------------------------------ 계정 관리 ------------------------------ */
.row-pending { background: #fffbe9; }
.tag-wait { background: #fef7e0; color: #8a6100; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.reason-input {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    width: 140px;
    outline: none;
}
.small { font-size: 11.5px; }
