/* assets/css/common.css — FeelAI Admin (Toss style) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:       #3182F6;
    --primary-light: #EBF2FE;
    --primary-dark:  #1A6EF2;

    --success:       #00C73C;
    --success-light: #E8FBF0;
    --warning:       #FF9500;
    --warning-light: #FFF4E5;
    --danger:        #F04452;
    --danger-light:  #FFEDEF;
    --info:          #3182F6;
    --info-light:    #EBF2FE;

    --bg:            #F7F8FA;
    --bg2:           #F0F2F5;
    --surface:       #FFFFFF;
    --surface2:      #F7F8FA;
    --border:        #E8EBED;
    --border2:       #D1D6DB;

    --text1:         #191F28;
    --text2:         #4E5968;
    --text3:         #8B95A1;
    --text4:         #B0B8C1;

    --sidebar-w:     220px;
    --topbar-h:      56px;
    --bottomnav-h:   60px;
    --radius:        12px;
    --radius-sm:     8px;
    --radius-xs:     6px;
    --shadow:        0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:     0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.12);
}

html { overflow-x: hidden; }

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    background: var(--bg);
    color: var(--text1);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── 레이아웃 ── */
.layout { display: flex; min-height: 100vh; }

/* ── 사이드바 ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    height: var(--topbar-h);
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo-icon {
    width: 32px; height: 32px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-logo-name { font-size: 15px; font-weight: 700; color: var(--text1); letter-spacing: -0.4px; }
.sidebar-logo-ver  { font-size: 10px; color: var(--text3); margin-top: 1px; }

.sidebar-nav { flex: 1; padding: 12px 12px; overflow-y: auto; }

.nav-section {
    padding: 14px 8px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    letter-spacing: 0.4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text2);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s, color .12s;
    margin: 1px 0;
}

.nav-item:hover { background: var(--bg); color: var(--text1); }

.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }

.nav-badge {
    margin-left: auto;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg);
}

.user-avatar {
    width: 30px; height: 30px;
    background: var(--primary);
    border-radius: var(--radius-xs);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 600; color: var(--text1); }
.user-id   { font-size: 11px; color: var(--text3); }

.btn-logout {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 6px;
    border-radius: var(--radius-xs);
    transition: all .12s;
}
.btn-logout:hover { color: var(--danger); background: var(--danger-light); }

/* ── 메인 ── */
.main-wrap {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title { font-size: 15px; font-weight: 700; color: var(--text1); letter-spacing: -0.3px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(0,199,60,0.15);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(0,199,60,0.15); }
    50%      { box-shadow: 0 0 0 5px rgba(0,199,60,0.05); }
}

.status-label { font-size: 12px; color: var(--text3); font-weight: 500; }

/* 서버 헬스 */
.server-health {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 600; font-family: 'SF Mono', 'Fira Code', monospace;
    background: var(--surface2, #f5f5f5); border-radius: 8px; padding: 4px 10px;
    border: 1px solid var(--border);
}
.sh-item { white-space: nowrap; }
.sh-ok { color: var(--success, #00C73C); }
.sh-warn { color: #FF9500; }
.sh-danger { color: var(--danger, #F04452); }
@media (max-width: 900px) { .server-health { display: none; } }

.page-body { flex: 1; padding: 24px; }
.page-body-inner { max-width: 1200px; }

/* ── 페이지 타이틀 (전역 공통) ── */
.fc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 10px;
}
.fc-page-header__left { display: flex; flex-direction: column; gap: 4px; }
.fc-page-header__right { display: flex; align-items: center; gap: 10px; }

.fc-page-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text1);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.3;
}
.fc-page-subtitle {
    font-size: 0.8rem;
    color: var(--text3);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .fc-page-title { font-size: 1.1rem; }
}

/* ── 카드 ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text1);
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ── 버튼 ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all .12s;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: -0.1px;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
    background: var(--bg);
    color: var(--text2);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); color: var(--text1); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(0.9); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.9); }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { filter: brightness(0.9); }

.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-lg { padding: 11px 22px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ── 배지 ── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.badge-green  { background: var(--success-light); color: #009e2e; }
.badge-yellow { background: var(--warning-light); color: #b86800; }
.badge-red    { background: var(--danger-light);  color: #d42c3a; }
.badge-blue   { background: var(--primary-light); color: var(--primary); }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-gray   { background: var(--bg2); color: var(--text2); }

/* ── 테이블 ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--bg2); }
th {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 12px 12px;
    font-size: 13px;
    color: var(--text1);
    border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ── 폼 ── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 6px;
}
.form-hint { font-size: 11px; color: var(--text3); margin-top: 4px; }

.form-control {
    width: 100%;
    padding: 9px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text1);
    font-size: 13px;
    transition: border-color .12s, box-shadow .12s;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49,130,246,0.12);
}

.form-control::placeholder { color: var(--text4); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ── 모달 ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }

.modal:not(.fade) {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 28px;
    width: 90%;
    max-width: 560px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-wide { max-width: 860px; }

.modal:not(.fade) .modal-header,
.modal-overlay .modal-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.modal:not(.fade) .modal-title,
.modal-overlay .modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.3px;
}

.modal:not(.fade) .modal-body { }

.modal:not(.fade) .modal-footer,
.modal-overlay .modal-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: var(--radius-xs);
    transition: all .12s;
}
.modal-close:hover { color: var(--text1); background: var(--bg); }

/* ── 토스트 ── */
.toast-wrap {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn .22s ease;
    min-width: 220px;
    max-width: 320px;
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text1);
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--primary); }
.toast-warning { border-left: 3px solid var(--warning); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 유틸 ── */
.text-muted { color: var(--text3); }
.text-sm    { font-size: 12px; }
.fw-700     { font-weight: 700; }
.mt-4       { margin-top: 4px; }
.mt-8       { margin-top: 8px; }
.mt-16      { margin-top: 16px; }
.mt-24      { margin-top: 24px; }
.gap-8      { gap: 8px; }
.gap-12     { gap: 12px; }
.gap-16     { gap: 16px; }
.flex       { display: flex; }
.flex-1     { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3    { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-4    { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* ── 스크롤바 ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text4); }

/* ════════════════════════════════════════════════
   📱 모바일 공통 요소 (기본=숨김, 모바일에서 표시)
════════════════════════════════════════════════ */
.mob-bottom-nav { display: none; }

/* 햄버거 버튼 — 데스크탑 숨김 */
.btn-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text1);
    padding: 4px 6px;
    border-radius: var(--radius-xs);
    line-height: 1;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s;
}
.btn-hamburger:active { background: var(--bg2); }

.mob-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 199;
}

/* ════════════════════════════════════════════════
   📱 모바일 반응형 (≤767px)
════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* CSS 변수 모바일 오버라이드 */
    :root {
        --topbar-h: 52px;
    }

    /* 사이드바: 슬라이드 오버레이 방식 */
    .sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100dvh;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform .26s cubic-bezier(.4,0,.2,1);
        box-shadow: none;
    }
    body.sidebar-open { overflow: hidden; position: fixed; width: 100%; }

    .sidebar-open .sidebar {
        transform: translateX(0);
        box-shadow: 4px 0 40px rgba(0,0,0,.15);
    }
    .sidebar-open .mob-overlay { display: block; z-index: 299; }

    /* 메인 영역 */
    .main-wrap { margin-left: 0; max-width: 100vw; overflow-x: hidden; }

    /* 탑바 */
    .topbar { padding: 0 14px; height: var(--topbar-h); gap: 10px; }
    .topbar-title { font-size: 14px; }

    /* 햄버거 버튼 모바일에서 표시 */
    .btn-hamburger { display: flex; align-items: center; justify-content: center; }

    /* 페이지 본문: 하단 탭 높이만큼 패딩 */
    .page-body {
        padding: 14px 14px calc(14px + var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
        max-width: 100%;
        overflow-x: hidden;
    }

    /* 그리드 */
    .grid-4 { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .grid-3 { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .grid-2 { grid-template-columns: 1fr !important; }
    .mob-grid-1 { display: block !important; }
    .mob-grid-stack > * { width: 100% !important; }

    /* 인라인 style="display:grid;..." 모바일 대응 — 1컬럼 강제 */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    /* 인라인 style="display:flex;..." 모바일 줄바꿈 —
       전역 flex-wrap은 chat 레이아웃 등 깨짐 위험으로 제거
       각 페이지 CSS에서 개별 처리 */

    /* 카드 */
    .card { padding: 14px; border-radius: 10px; }
    .card-header { margin-bottom: 12px; padding-bottom: 10px; flex-wrap: wrap; gap: 6px; }
    .page-header { flex-wrap: wrap !important; gap: 6px !important; }

    /* 테이블 */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-wrap table { min-width: 600px; }
    th { padding: 8px 10px; font-size: 11px; }
    td { padding: 9px 10px; font-size: 12px; }
    .hide-mob { display: none !important; }

    /* 폼 — iOS 핀치줌 방지 (font-size 16px 이상) */
    .form-control,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select, textarea { font-size: 16px !important; }

    /* 버튼 */
    .btn-sm { padding: 5px 9px; font-size: 12px; }
    .btn-group-mob { flex-wrap: wrap !important; gap: 5px !important; }

    /* 모달: 하단 시트 */
    .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
    .modal:not(.fade) {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 20px 16px calc(16px + env(safe-area-inset-bottom, 0px)) !important;
        max-height: 90dvh !important;
        overflow-y: auto;
    }
    .modal:not(.fade)::before {
        content: '';
        display: block;
        width: 36px; height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: -8px auto 14px;
    }

    /* 토스트 */
    .toast-wrap { top: calc(var(--topbar-h) + 8px); right: 10px; left: 10px; }
    .toast { max-width: 100%; min-width: 0; }

    /* 배지 */
    .badge { font-size: 10px; padding: 2px 6px; }

    /* 하단 탭 내비게이션 */
    .mob-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: var(--surface);
        border-top: 1px solid var(--border);
        z-index: 200;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    }
    .mob-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text3);
        font-size: 10px;
        font-weight: 500;
        cursor: pointer;
        background: none;
        border: none;
        padding: 6px 4px;
        text-decoration: none;
        transition: color .12s;
        -webkit-tap-highlight-color: transparent;
        position: relative;
    }
    .mob-tab .tab-icon { font-size: 20px; line-height: 1; }
    .mob-tab.active { color: var(--primary); }
    .tab-badge {
        position: absolute;
        top: 4px;
        background: var(--danger);
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        padding: 1px 5px;
        border-radius: 999px;
        min-width: 16px;
        text-align: center;
    }
}

/* ── 탭바 수평 스크롤 우측 페이드 힌트 ── */
.tab-bar-wrap {
    position: relative;
}
.tab-bar-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 60px;
    background: linear-gradient(to right, rgba(247,248,250,0), rgba(247,248,250,0.95));
    pointer-events: none;
    border-radius: 0 8px 8px 0;
    z-index: 1;
}



/* ═══ MAYTON 호환 코드 ═══ */
.menu-badge{margin-left:auto;background:var(--danger);color:#fff;font-size:10px;font-weight:700;padding:1px 6px;border-radius:999px;min-width:18px;text-align:center}
#fc-top-bar{position:fixed;top:0;left:0;right:0;height:3px;z-index:9999;pointer-events:none}
#fc-top-bar.active{background:linear-gradient(90deg,var(--primary),var(--primary-light),var(--primary));background-size:200% 100%;animation:fc-bar 1.5s ease-in-out infinite}
@keyframes fc-bar{0%{background-position:200% 0}100%{background-position:-200% 0}}
#fc-overlay{display:none;position:fixed;inset:0;background:rgba(255,255,255,.7);z-index:9998;align-items:center;justify-content:center;backdrop-filter:blur(2px)}
#fc-overlay.show{display:flex}
.fc-overlay-box{text-align:center;padding:40px}
.fc-overlay-spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite;margin:0 auto 16px}
@keyframes spin{to{transform:rotate(360deg)}}
.fc-overlay-title{font-size:15px;font-weight:700;color:var(--text1);margin-bottom:4px}
.fc-overlay-sub{font-size:12px;color:var(--text3)}
.pagination{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:20px}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:0 8px;border-radius:var(--radius-xs);font-size:13px;font-weight:500;color:var(--text2);transition:all .12s}
.pagination a:hover{background:var(--bg);color:var(--text1)}
.pagination .active,.pagination .current{background:var(--primary);color:#fff;font-weight:600}
img{max-width:100%}


/* ═══ 패치: a 태그 밑줄 제거 + 오버레이 센터링 ═══ */
a, a:hover, a:visited, a:active, a:focus { text-decoration: none !important; }

/* ── Extracted inline styles ────────────────────────── */
.header-logo-link { text-decoration:none; color:inherit; }
.header-admin-badge { font-size:9px; background:#ef4444; color:#fff; padding:1px 5px; border-radius:999px; margin-left:4px; }


/* 커스텀 modal-overlay도 viewport 기준 */
.modal-overlay {
    justify-content: center;
    align-items: center;
}
.modal-overlay .modal-box,
.modal-overlay > div:first-child {
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* ── 네이버답변등록 ON/OFF 토글 ── */
.ar-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
}
.ar-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text2);
    letter-spacing: .2px;
    white-space: nowrap;
}
.ar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    outline: none;
    min-width: 58px;
    justify-content: center;
    font-family: inherit;
}
.ar-btn::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .8;
    flex-shrink: 0;
}
.ar-btn.on       { background: var(--success-light); color: #009e2e; box-shadow: 0 0 0 1px #b7f0c8; }
.ar-btn.on:hover { background: #c8f5d8; }
.ar-btn.off      { background: var(--danger-light);  color: #c0242f; box-shadow: 0 0 0 1px #fdd; }
.ar-btn.off:hover{ background: #fdd; }
.ar-btn.loading  { background: var(--bg2); color: var(--text3); box-shadow: 0 0 0 1px var(--border); cursor: not-allowed; }
.ar-btn:disabled { opacity: .6; cursor: not-allowed; }
.ar-msg { font-size: 11px; color: var(--text3); }
