/* =========================================================
   Secure Folder Web — 공통 컴포넌트 테마 (전 페이지 로드)
   버튼/인풋/테이블/검색바/페이징/탭/팝업을 SF 디자인 언어로.
   마크업 무변경 — style.css 뒤에 로드하는 오버라이드 레이어.
   페이지 <style>보다 먼저 로드되므로, 페이지 내 정의를 이겨야
   하는 규칙(통계 상세 차트 등)만 !important 사용.
   ========================================================= */

/* ── 콘텐츠 타이포 ── */
.contents h3,
.contents h4,
.contents .tit {
    color: var(--sfs-ink);
    letter-spacing: -0.02em;
}

.contents .head-wrap h3 {
    font-size: 24px;
    font-weight: 700;
}

.page-index {
    color: var(--sfs-faint) !important;
    font-size: 12px !important;
}

.contents .text-muted,
.contents .sub-txt {
    color: var(--sfs-sub);
}

/* ── 버튼: 필 + 단일 포인트, 떠오르는 효과 제거 ── */
.btn,
.btn-line,
.btn-b,
.btn-w {
    border-radius: 999px;
    font-weight: 500;
    transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out;
}

.btn:hover,
.btn-line:hover,
.btn-b:hover,
.btn-w:hover {
    transform: none;
    box-shadow: none;
}

/* 주요 액션 버튼: 코발트 대비가 약해 또렷하지 않다는 피드백 → 그래파이트로 통일.
   페이지별로 따로 덮어쓰지 말 것 (홈/서비스 정보가 서로 달라 보이던 원인) */
.btn-b {
    background: #18181B;
    border: 1px solid #18181B;
    color: #fff;
}

.btn-b:hover {
    background: #27272A;
    border-color: #27272A;
    color: #fff;
}

.btn-w,
.btn-line {
    color: var(--sfs-body);
    background: #fff;
    border: 1px solid var(--sfs-border-strong, #CBD5E1);
}

.btn-w:hover,
.btn-line:hover {
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

/* ── 인풋 ── */
.inp,
.select,
.design-inp,
textarea.inp {
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    color: var(--sfs-ink);
    background-color: #fff;
    transition: border-color .15s ease-out, box-shadow .15s ease-out;
}

.inp:focus,
.select:focus,
.design-inp:focus,
.input-row .inp:focus {
    outline: none;
    border-color: var(--sfs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.inp::placeholder {
    color: var(--sfs-faint);
}

/* ── 테이블: 검은 줄·라벨 박스 제거, 밀도 압축 ── */
.normal-table,
.simple-table,
.table {
    border-top: none;
}

.normal-table th,
.simple-table th,
.table th,
.normal-table td,
.simple-table td,
.table td {
    padding: 13px 14px;
    line-height: 1.5;
}

/* 목록형: thead 헤더 행만 옅은 배경 */
.normal-table thead th,
.simple-table thead th,
.table thead th {
    background-color: #F8FAFC;
    color: var(--sfs-sub);
    font-size: 12.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--sfs-border);
}

/* 폼/상세형: 행 라벨 th는 배경 없이 조용한 kv 라벨로 */
.normal-table tbody th,
.simple-table tbody th,
.table tbody th {
    background-color: transparent;
    color: var(--sfs-sub);
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--sfs-border);
}

.normal-table tbody td,
.simple-table tbody td,
.table tbody td {
    color: var(--sfs-ink);
}

.normal-table td,
.simple-table td,
.table td {
    color: var(--sfs-body);
    font-size: 13.5px;
    border-bottom: 1px solid var(--sfs-border);
}

.normal-table thead + tbody tr:hover,
.simple-table thead + tbody tr:hover,
.table thead + tbody tr:hover {
    background-color: #F8FAFC;
}

/* ── 안내 박스 ── */
.notice-box {
    background: #F8FAFC;
    border: 1px solid var(--sfs-border);
    border-radius: 12px;
}

.notice-box .hyphen-list,
.hyphen-list.gray {
    color: var(--sfs-sub);
}

/* ── 검색/필터 바 ── */
.search-box {
    background: #fff;
    border: 1px solid var(--sfs-border) !important;
    border-radius: 14px;
    box-shadow: none;
    padding: 18px 20px;
}

/* ── 페이징: 밑줄 → 필 ── */
.paging .num a {
    min-width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border-radius: 999px;
    color: var(--sfs-sub);
    font-variant-numeric: tabular-nums;
}

.paging .num a:hover {
    background: var(--sfs-bg-subtle);
    color: var(--sfs-body);
    text-decoration: none;
    font-weight: 500;
}

.paging .num a.active,
.paging .num a:active {
    background: #18181B;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* ── 탭: 검정 박스 → 세그먼트 ── */
.tab {
    border: 1px solid var(--sfs-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.tab li {
    border-right: 1px solid var(--sfs-border);
}

.tab li a {
    color: var(--sfs-sub);
    font-size: 15px;
    font-weight: 500;
    transition: background-color .15s ease-out, color .15s ease-out;
}

.tab li a:hover {
    color: var(--sfs-ink);
    background: var(--sfs-bg-subtle);
}

.tab li a.active,
.tab li a:active {
    color: var(--sfs-primary-hover);
    background: var(--sfs-primary-light);
    font-weight: 700;
}

/* ── 레이어 팝업: 청록 띠 제거, 라운드 카드 ── */
.popup,
.alert {
    background-color: rgba(15, 23, 42, 0.5);
}

.popup .pop,
.alert .pop {
    border-top: none;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.popup .tit,
.alert .tit {
    color: var(--sfs-ink);
    letter-spacing: -0.02em;
}

/* ── 자동 로그아웃 팝업 ── */
.auto-logout-box {
    border-radius: 16px;
    width: 400px;
}

.auto-logout-header {
    background: #fff;
    color: var(--sfs-ink);
    padding: 22px 24px 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auto-logout-body {
    padding: 16px 24px 22px;
}

.auto-logout-warn-msg {
    color: var(--sfs-ink);
    font-weight: 600;
}

.auto-logout-timer {
    background: var(--sfs-primary-light);
    color: var(--sfs-primary-hover);
    border-radius: 12px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    font-weight: 700;
}

.auto-logout-notice {
    color: var(--sfs-sub);
}

.auto-logout-btn-row button {
    border-radius: 999px;
    font-weight: 500;
    transition: background-color .15s ease-out, border-color .15s ease-out;
}

.btn-do-logout {
    border: 1px solid #CBD5E1;
    background: #fff;
    color: var(--sfs-body);
}

.btn-do-logout:hover {
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

.btn-do-extend,
.btn-do-confirm {
    border: none;
    background: #18181B;
    color: #fff;
}

.btn-do-extend:hover,
.btn-do-confirm:hover {
    background: var(--sfs-primary-hover);
}

.btn-do-confirm {
    border-radius: 999px;
}

/* ── SweetAlert2: SF 팝업 표준 ── */
/* 확인/알림 다이얼로그는 페이지의 어떤 팝업(레거시 .popup, 자동로그아웃 9999 등)보다 위 */
.swal2-container {
    z-index: 20000 !important;
}

.swal2-container.swal2-backdrop-show {
    background: rgba(15, 23, 42, 0.45) !important;
}

/* 토스트는 딤 배경 없음 (swal 기본 동작 복원) */
body.swal2-toast-shown .swal2-container {
    background: transparent !important;
}

.swal2-popup {
    width: 400px !important;
    border-radius: 18px !important;
    padding: 30px 28px 26px !important;
    font-family: var(--sfs-font) !important;
    color: var(--sfs-body) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

/* 아이콘: 파란 틴트 원 + 라인 아이콘 (swal 기본 컬러링 무력화) */
.swal2-icon.sf-swal-ico {
    width: 52px !important;
    height: 52px !important;
    margin: 0 auto 14px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--sfs-primary-light, #EFF6FF) !important;
    color: var(--sfs-primary, #2563EB) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.swal2-icon.sf-swal-ico .swal2-icon-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.swal2-icon.sf-swal-ico svg {
    width: 24px;
    height: 24px;
}

.swal2-icon.sf-swal-ico.sf-swal-ico-danger {
    background: #FEF2F2 !important;
    color: var(--sfs-danger, #DC2626) !important;
}

.swal2-title {
    color: var(--sfs-ink) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    padding: 0 !important;
}

.swal2-html-container {
    font-size: 13.5px !important;
    color: var(--sfs-body) !important;
    line-height: 1.65 !important;
    margin: 9px 0 0 !important;
}

.swal2-actions {
    margin-top: 24px !important;
    gap: 8px !important;
}

.swal2-styled.swal2-confirm {
    background-color: #18181B !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    min-width: 108px;
    height: 40px;
    padding: 0 24px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
}

.swal2-styled.swal2-confirm:hover {
    background-color: #27272A !important;
}

/* 삭제/해지류 확인: 빨간 확정 버튼 */
.sf-swal-danger .swal2-styled.swal2-confirm {
    background-color: var(--sfs-danger, #DC2626) !important;
}

.sf-swal-danger .swal2-styled.swal2-confirm:hover {
    background-color: #B91C1C !important;
}

.swal2-styled.swal2-cancel {
    background-color: #fff !important;
    color: var(--sfs-body) !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    min-width: 108px;
    height: 40px;
    padding: 0 24px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.swal2-styled.swal2-cancel:hover {
    border-color: var(--sfs-ink) !important;
    color: var(--sfs-ink) !important;
}

/* ── 로그인 페이지 ── */
.login-btn {
    background: #18181B;
    border-radius: 12px;
}

.login-btn:hover {
    background: var(--sfs-primary-hover);
}

.login-btn:active {
    background: var(--sfs-primary-hover);
}

.sub-actions button {
    border-radius: 12px;
    font-weight: 600;
}

/* ── 통계 상세 차트 (페이지 <style>을 이겨야 하므로 !important) ── */
.bar {
    background: #93C5FD !important;
    border-radius: 5px 5px 2px 2px !important;
}

.bar.highlighted {
    background: var(--sfs-primary) !important;
}

.grid-line {
    background: #EEF2F6 !important;
}

.grid-label,
.x-label {
    color: var(--sfs-faint) !important;
}

/* =========================================================
   인증 계열 공용 (로그인/OTP/비밀번호 재설정/가입)
   ========================================================= */
/* ── 로그인 페이지 전용 (타이포/밀도는 SF 기준 스케일) ── */
.sf-auth {
    min-height: calc(100dvh - 140px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 80px;
}

.sf-auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #E8EBF1;
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px -14px rgba(15, 23, 42, 0.10);
    padding: 36px 32px 32px;
}

.sf-auth-label {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    color: var(--sfs-primary, #2563EB);
}

.sf-auth-head {
    margin-bottom: 26px;
}

.sf-auth-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.sf-auth-head p {
    margin-top: 7px;
    font-size: 13.5px;
    color: #6B7280;
}

.sf-field {
    margin-bottom: 16px;
}

.sf-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
}

.sf-input {
    position: relative;
    display: flex;
    align-items: center;
}

.sf-input input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 14px;
    color: #0F172A;
    background: #fff;
    transition: border-color .15s ease-out, box-shadow .15s ease-out;
}

.sf-input input::placeholder {
    color: #94A3B8;
}

.sf-input input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* 오류 상태: 문구만이 아니라 입력칸 자체를 경고색으로 */
.sf-input.is-error input,
.sf-input.is-error select,
.sf-input.is-error textarea {
    border-color: #DC2626;
    background: #FFFBFB;
}

.sf-input.is-error input:focus,
.sf-input.is-error select:focus,
.sf-input.is-error textarea:focus {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.13);
}

.sf-input .password-eye {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
}

.sf-input .password-eye:hover {
    color: #374151;
}

.sf-input .password-eye svg {
    width: 20px;
    height: 20px;
}

.sf-input input[type="password"],
.sf-input input#userPwd {
    padding-right: 44px;
}

.sf-err {
    display: none;
    margin-top: 6px;
    font-size: 12.5px;
    color: #DC2626;
}

.sf-login-btn {
    width: 100%;
    height: 46px;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: #18181B;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease-out;
}

.sf-login-btn:hover {
    background: #27272A;
}

.sf-login-btn:focus-visible {
    outline: 2px solid #18181B;
    outline-offset: 2px;
}

.sf-sub-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.sf-sub-actions button {
    flex: 1;
    height: 42px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease-out, color .15s ease-out;
}

.sf-sub-actions button:hover {
    border-color: #0F172A;
    color: #0F172A;
}

.sf-auth-note {
    width: 100%;
    max-width: 400px;
    margin-top: 14px;
    padding: 13px 16px;
    background: #F8FAFC;
    border: 1px solid #E8EBF1;
    border-radius: 12px;
}

.sf-auth-note li {
    position: relative;
    padding-left: 11px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #6B7280;
    word-break: keep-all;
}

.sf-auth-note li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #94A3B8;
}

/* 로그인 실패 팝업 */
.sf-fail-card {
    background: #fff;
    width: 380px;
    max-width: calc(100vw - 40px);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 28px 26px 24px;
    text-align: center;
}

.sf-fail-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #FEF2F2;
    color: #DC2626;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 700;
}

.sf-fail-card .tt {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    letter-spacing: -0.01em;
}

.sf-fail-card .tt b {
    color: #2563EB;
    font-variant-numeric: tabular-nums;
}

.sf-fail-card .ds {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.65;
    color: #6B7280;
    word-break: keep-all;
}

.sf-fail-card .cf {
    width: 100%;
    height: 44px;
    margin-top: 20px;
    border: none;
    border-radius: 999px;
    background: #18181B;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease-out;
}

.sf-fail-card .cf:hover {
    background: #1D4ED8;
}

/* =========================================================
   회원가입 페이지 (.join-content) — 타이포 스케일 강제 + 파랑 다이어트
   ========================================================= */
.join-content {
    width: 100% !important;
    max-width: 920px;
    padding-bottom: 60px;
}

.join-content h3.fs30 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.02em;
}

.join-content .sub-txt.fs18 {
    font-size: 13.5px;
    color: var(--sfs-sub);
    margin-top: 7px;
}

.join-content h4.fs18 {
    font-size: 15px;
    font-weight: 600;
    color: var(--sfs-ink);
}

.join-content .normal-table th {
    font-size: 13px;
    font-weight: 500;
    color: var(--sfs-sub);
}

.join-content .inp {
    height: 44px;
    font-size: 14px;
}

.join-content .inp::placeholder {
    font-size: 13.5px;
}

.join-content .input-msg {
    font-size: 12.5px;
}

.join-content .radio-label,
.join-content .checkbox-label {
    font-size: 14px;
    color: var(--sfs-body);
}

.join-content input.design-inp {
    accent-color: var(--sfs-primary);
}

/* 인라인 "중복 확인" 계열은 보조 버튼으로 강등 — 파랑은 최종 액션에만 */
.join-content .btn-b.btn-w112 {
    background: #fff;
    border: 1px solid #CBD5E1;
    color: var(--sfs-body);
    font-size: 13.5px;
}

.join-content .btn-b.btn-w112:hover {
    background: #fff;
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

/* 단계 표시 (01 정보 입력 / 02 / 03) */
.step-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-bar-container .step-active {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--sfs-primary-light);
    color: var(--sfs-primary-hover);
    font-size: 12.5px;
    font-weight: 600;
}

.step-bar-container .step-num {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.step-bar-container .step-disabled {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #EEF2F6;
    color: var(--sfs-faint);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   폼 상세 페이지 공용 (key-create 등) — 비율/밀도 정상화
   ========================================================= */
/* 섹션 제목 유틸 h4.fs18 → 표준 15px */
.contents h4.fs18 {
    font-size: 15px;
    font-weight: 600;
}

/* 검은 띠 박스 → 조용한 안내 카드 */
.border-box {
    border: 1px solid var(--sfs-border);
    border-radius: 12px;
    background: #F8FAFC;
    color: var(--sfs-sub);
    font-size: 13px;
    padding: 14px 16px;
}

/* 거대 초이스 박스 → 선택 카드 */
.radio-box02 input[type=radio]+label {
    height: auto;
    min-height: 68px;
    padding: 15px 18px 13px 46px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    background: #fff;
    color: var(--sfs-sub);
    font-size: 12.5px;
    transition: border-color .15s ease-out, background-color .15s ease-out;
}

.radio-box02 input[type=radio]+label span {
    font-size: 14px;
    font-weight: 600;
    color: var(--sfs-ink);
    margin-bottom: 5px;
}

.radio-box02 input[type=radio]:checked+label {
    border-color: var(--sfs-primary);
    background: var(--sfs-primary-light);
}

.radio-box02 input[type="radio"]+label:before {
    top: 15px;
    left: 16px;
}

.radio-box02 input[type="radio"]:checked+label:after {
    top: 20px;
    left: 21px;
}

/* 인풋 행 안의 보조 버튼(중복확인 등)은 아웃라인으로 강등 */
.input-row .btn-b {
    background: #fff;
    border: 1px solid #CBD5E1;
    color: var(--sfs-body);
    font-size: 13.5px;
}

.input-row .btn-b:hover {
    background: #fff;
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

/* =========================================================
   섹션 타이틀/포인트 잔재 정리
   ========================================================= */
.border-tit {
    font-size: 15px;
    font-weight: 600;
    color: var(--sfs-ink);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sfs-border);
}

.bar-tit:before {
    background-color: var(--sfs-primary);
    border-radius: 3px;
}

/* 통계 상세 브라우저형 탭 상단 라운드 */
.tab-wrap .tab {
    border-radius: 9px 9px 0 0;
}

.tab-wrap .tab.active {
    color: var(--sfs-primary-hover);
}

/* =========================================================
   [전 화면 일괄] 타이포 유틸 리매핑 — SF 기준 스케일로 압축
   페이지들이 fs13~fs90을 제각각 쓰므로 유틸 정의 자체를 통일.
   (!important: 페이지 인라인 <style>과 style="" 속성까지 이긴다)
   ========================================================= */
.fs34, .fs30, .fs26 { font-size: 22px !important; }
.fs24, .fs22, .fs20 { font-size: 17px !important; }
.fs18 { font-size: 15px !important; }
.fs16 { font-size: 14px !important; }
.fs15 { font-size: 13.5px !important; }
.fs40 { font-size: 28px !important; }
.fs50 { font-size: 34px !important; }
.fs90 { font-size: 64px !important; }

/* 페이지 타이틀(공통 head-wrap)은 위 리매핑과 무관하게 22 고정 */
.contents .head-wrap h3 {
    font-size: 22px !important;
}

/* =========================================================
   공지/FAQ 아코디언 — 로고보다 큰 핀 진압, 밀도 압축
   ========================================================= */
.notice-accordion-list .pin .accordion-tit a:before {
    width: 15px;
    height: 16px;
    margin-top: -8px;
    left: 22px;
    opacity: 0.75;
}

.notice-accordion-list .accordion-tit a:before {
    background-color: #CBD5E1;
}

.accordion-list .accordion-tit a {
    font-size: 14px;
}

.accordion-list .accordion-box > div {
    padding: 18px 24px;
    font-size: 13.5px;
    color: var(--sfs-sub);
    line-height: 1.65;
    background: #F8FAFC;
    border-radius: 12px;
    border-bottom: 0;
    margin: 0 0 10px;
}

/* 오류 페이지 그림자 정리 */
.section.error .article {
    box-shadow: none;
    border: 1px solid var(--sfs-border);
    border-radius: 16px;
}

/* 구 다크테마 잔재: 콘텐츠 시트 라운드 모서리 제거 */
.contents {
    border-radius: 0;
}

/* =========================================================
   저격 수정 배치: register 스텝퍼/라디오/겹침, 재설정 카드,
   OTP 안내 행간, 복사 아이콘
   ========================================================= */
/* register: 스텝퍼 제거 (회원가입에만 있고 정보값 없음) */
.join-content .step-bar-container {
    display: none;
}

/* 라디오/체크 크기 정상화 */
.contents input.design-inp,
.join-content input.design-inp {
    width: 16px;
    height: 16px;
}

/* "중복 확인" 버튼이 인풋 칸 침범하던 겹침 해결 */
.join-content .btn-b.btn-w112 {
    width: 96px !important;
    padding: 0;
}

/* 비밀번호 재설정/의무변경 카드 (reset-card 계열) 전면 정리 */
.reset-card {
    width: 100%;
    max-width: 480px;
    margin: 44px auto;
    padding: 32px 30px 28px;
    border: 1px solid var(--sfs-border);
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.reset-head {
    text-align: left;
    margin-bottom: 22px;
}

.reset-head h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.02em;
    margin-bottom: 7px;
}

.reset-head p {
    font-size: 13.5px;
    color: var(--sfs-sub);
    line-height: 1.6;
}

.reset-card .form-group {
    margin-bottom: 16px;
}

.reset-card .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--sfs-ink);
    margin-bottom: 7px;
}

.modern-input {
    height: 44px;
    border-radius: 10px;
    padding: 0 13px;
    border: 1px solid #CBD5E1;
}

.modern-input:focus-within {
    border-color: var(--sfs-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.modern-input input {
    font-size: 14px;
}

.modern-input .input-icon,
.modern-input i {
    display: none;
}

.reset-actions {
    margin-top: 18px;
    gap: 10px;
}

.reset-actions button {
    height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.reset-actions .btn-primary {
    background: #18181B;
}

.reset-actions .btn-primary:hover {
    background: var(--sfs-primary-hover);
}

.reset-actions .btn-outline:hover {
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

.notice-card {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid var(--sfs-border);
}

.notice-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--sfs-ink);
    margin-bottom: 8px;
}

.notice-card li {
    font-size: 12.5px;
    color: var(--sfs-sub);
    line-height: 1.6;
    margin-bottom: 5px;
}

.notice-card li:last-child {
    margin-bottom: 0;
}

/* 인증 카드 안내글 행간 */
.sf-auth-head p {
    line-height: 1.6;
}

.sf-auth-note li {
    margin-bottom: 5px;
}

.sf-auth-note li:last-child {
    margin-bottom: 0;
}

/* 복사하기 아이콘: 로고보다 큰 것 강등 */
.contents img[src*="copy"] {
    width: 16px;
    height: auto;
    opacity: 0.65;
    cursor: pointer;
}

.contents img[src*="copy"]:hover {
    opacity: 1;
}

/* 인풋 내부 글자: 본문 스케일(13.5px)로 통일 — 주변 텍스트보다 커지지 않게 */
.inp,
.select,
.design-inp,
textarea.inp,
.modern-input input,
.sf-input input {
    font-size: 13.5px !important;
}

.inp::placeholder,
textarea.inp::placeholder,
.modern-input input::placeholder,
.sf-input input::placeholder {
    font-size: 13.5px;
    color: var(--sfs-faint);
}

/* =========================================================
   [신축 컴포넌트] 카드 + 키-값 상세 (서비스 정보 등 상세 페이지 공용)
   ========================================================= */
.sf-cardgrid {
    display: grid;
    gap: 16px;
    max-width: 880px;
}

/* 카드 밀도 기준값 — 전 화면 공통. 페이지에서 개별로 조이지 말 것 */
.sf-card {
    background: #fff;
    border: 1px solid var(--sfs-border);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sf-card-tit {
    font-size: 15px !important;
    font-weight: 600;
    color: var(--sfs-ink);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.sf-kv {
    margin: 0;
}

.sf-kv-row {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 13px 2px;
    border-bottom: 1px solid var(--sfs-border);
}

.sf-kv-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.sf-kv-row dt {
    font-size: 13px;
    color: var(--sfs-sub);
}

.sf-kv-row dd {
    margin: 0;
    font-size: 13.5px;
    color: var(--sfs-ink);
    min-width: 0;
    word-break: break-all;
}

.sf-mono {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12.5px;
    letter-spacing: 0;
}

.sf-copy {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 11px;
    border: 1px solid var(--sfs-border);
    border-radius: 999px;
    background: #fff;
    color: var(--sfs-sub);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .15s ease-out, color .15s ease-out;
}

.sf-copy:hover {
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

/* =========================================================
   [신축 컴포넌트] A 패턴: 목록 페이지 (필터바 + 목록 카드)
   ========================================================= */
.sf-filterbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--sfs-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.sf-filterbar label {
    font-size: 13px;
    color: var(--sfs-sub);
    margin: 0 2px 0 6px;
    white-space: nowrap;
}

.sf-filterbar .select {
    height: 40px;
    width: auto;
    min-width: 120px;
    padding: 0 30px 0 12px;
}

.sf-filterbar .input-row {
    flex: 1;
    min-width: 220px;
}

.sf-filterbar .inp {
    width: 100%;
    height: 40px;
    padding: 0 13px;
}

.sf-listcard {
    background: #fff;
    border: 1px solid var(--sfs-border);
    border-radius: 16px;
    padding: 8px 20px 14px;
    margin-bottom: 16px;
}

.sf-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 12px;
}

.sf-list-head .cnt {
    font-size: 13.5px !important;
    color: var(--sfs-sub);
}

.sf-list-head .cnt b,
.sf-list-head .cnt .fw700 {
    color: var(--sfs-ink);
    font-variant-numeric: tabular-nums;
}

.sf-list-head .actions {
    display: flex;
    gap: 8px;
}

.sf-listcard table {
    width: 100% !important;
}

.sf-listcard .paging {
    margin: 16px 0 6px;
}

.sf-listcard + .notice-box {
    margin-top: 0;
}

/* 행 내 상태 변경 셀렉트: 컴팩트 */
.sf-status {
    width: 112px !important;
    height: 34px !important;
    font-size: 12.5px !important;
    padding: 0 26px 0 10px !important;
}

/* 빈 목록 */
.sf-empty-cell,
.normal-table td.no-data {
    text-align: center;
    padding: 44px 0 !important;
    color: var(--sfs-faint);
    font-size: 13px;
}

/* =========================================================
   [요즘 느낌 배치] 진입 모션 · 브라우저 기본 부품 추방 · 디테일
   ========================================================= */
/* 페이지 콘텐츠 진입 모션 — 전 페이지 공통 */
@keyframes sf-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.contents .inner,
.contents .join-content,
.contents .sf-auth,
.contents .reset-card {
    animation: sf-enter .35s cubic-bezier(.22, 1, .36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .contents .inner,
    .contents .join-content,
    .contents .sf-auth,
    .contents .reset-card {
        animation: none;
    }
}

/* OS 기본 셀렉트 화살표 → 커스텀 셰브론 */
.select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* 기본 파란 링크 정리: 우리 파랑, 밑줄은 호버에만 */
.contents a:not([class]),
.contents td a {
    color: var(--sfs-primary);
    text-decoration: none;
}

.contents a:not([class]):hover,
.contents td a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 테이블 행 호버 트랜지션 */
.normal-table tbody tr,
.simple-table tbody tr,
.table tbody tr {
    transition: background-color .12s ease-out;
}

/* 얇은 스크롤바 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #D3DAE6;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #B6C2D4;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-track {
    background: transparent;
}

/* 포커스 링 통일 */
.btn:focus-visible,
.sf-copy:focus-visible,
a:focus-visible {
    outline: 2px solid var(--sfs-primary);
    outline-offset: 2px;
    border-radius: 6px;
}

/* =========================================================
   [신축 컴포넌트] 상태 요약 스트립 + 상태 뱃지
   ========================================================= */
.st-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border: 1px solid var(--sfs-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.st-cell {
    position: relative;
    padding: 17px 20px 15px;
    cursor: pointer;
    transition: background-color .15s ease-out;
    border-left: 1px solid var(--sfs-border);
    background: transparent;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    text-align: left;
    font-family: inherit;
}

.st-cell:first-child {
    border-left: 0;
}

.st-cell:hover {
    background: #FAFBFE;
}

.st-cell.on {
    background: var(--sfs-primary-light);
}

.st-cell.on .st-lb,
.st-cell.on .st-num {
    color: var(--sfs-primary-hover);
}

.st-cell:focus-visible {
    outline: 2px solid var(--sfs-primary);
    outline-offset: -2px;
}

.st-lb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--sfs-sub);
}

.st-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

.st-num {
    margin-top: 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--sfs-ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
    animation: sf-num-in .5s cubic-bezier(.34, 1.45, .64, 1) both;
}

.st-cell:nth-child(2) .st-num { animation-delay: .05s; }
.st-cell:nth-child(3) .st-num { animation-delay: .1s; }
.st-cell:nth-child(4) .st-num { animation-delay: .15s; }
.st-cell:nth-child(5) .st-num { animation-delay: .2s; }

@keyframes sf-num-in {
    from { opacity: 0; transform: translateY(7px); filter: blur(2px); }
    to { opacity: 1; transform: none; filter: none; }
}

.st-num small {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--sfs-faint);
    margin-left: 4px;
    letter-spacing: 0;
}

@media (prefers-reduced-motion: reduce) {
    .st-num { animation: none; }
}

@media (max-width: 1100px) {
    .st-strip { grid-template-columns: repeat(2, 1fr); }
    .st-cell { border-top: 1px solid var(--sfs-border); }
    .st-cell:nth-child(-n+2) { border-top: 0; }
    .st-cell:nth-child(odd) { border-left: 0; }
}

/* (반응형 블록은 캐스케이드 순서 문제로 파일 맨 끝에 위치 — .sf-dash-grid 기본 정의보다 뒤여야 함) */

/* 상태 뱃지 (색 점 + 라벨) */
.sf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.sf-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.sf-badge.b-act { background: #F0FDF4; color: #16A34A; }
.sf-badge.b-act i { background: #16A34A; }
.sf-badge.b-wait { background: #EFF6FF; color: #2563EB; }
.sf-badge.b-wait i { background: #2563EB; }
.sf-badge.b-ina { background: #FEFCE8; color: #A16207; }
.sf-badge.b-ina i { background: #D97706; }
.sf-badge.b-chg { background: #F1F5F9; color: #64748B; }
.sf-badge.b-chg i { background: #94A3B8; }

/* 구 teal 강조 텍스트: 파랑 링크처럼 보이는 것 방지 — 값은 잉크로 */
.contents .teal {
    color: var(--sfs-ink);
}

/* 파랑 필 정책: 테이블 행 내부 액션 버튼은 아웃라인으로 강등
   (파랑 필은 페이지 대표 액션 1개만) */
.normal-table td .btn-b,
.normal-table th .btn-b,
.simple-table td .btn-b,
.simple-table th .btn-b,
.table td .btn-b,
.table th .btn-b,
#componentAddButton,
#combineButton {
    background: #fff;
    border: 1px solid #CBD5E1;
    color: var(--sfs-body);
}

.normal-table td .btn-b:hover,
.normal-table th .btn-b:hover,
.simple-table td .btn-b:hover,
.simple-table th .btn-b:hover,
.table td .btn-b:hover,
.table th .btn-b:hover,
#componentAddButton:hover,
#combineButton:hover {
    background: #fff;
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

/* 상태 요약 스트립: 색 점 제거 (라벨만, 담백하게) */
.st-strip .st-dot {
    display: none;
}

/* 인라인 헬퍼 버튼(.btn-wrap 셀) 파랑 필 강등 */
.btn-wrap .btn-b {
    background: #fff;
    border: 1px solid #CBD5E1;
    color: var(--sfs-body);
}

.btn-wrap .btn-b:hover {
    background: #fff;
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

/* =========================================================
   [밀도] 흰 시트 전면 → 캔버스 + 페이지 카드 구조
   ========================================================= */
.contents,
.contents.bg-w {
    background: transparent;
}

/* 카드 컴포넌트를 아직 안 쓰는 페이지: 콘텐츠 블록을 자동 카드화 */
.contents > .inner:not(.sfv2):not(:has(.sf-listcard, .sf-cardgrid, .st-strip)),
.contents > form > .inner:not(.sfv2):not(:has(.sf-listcard, .sf-cardgrid, .st-strip)) {
    background: #fff;
    border: 1px solid var(--sfs-border);
    border-radius: 16px;
    padding: 30px 34px 34px;
}

/* 섹션 카드로 개조된 가입 페이지(.sf-cardgrid 보유)는 자동 카드화 제외 */
.join-content:not(:has(.sf-cardgrid)) {
    background: #fff;
    border: 1px solid var(--sfs-border);
    border-radius: 16px;
    padding: 30px 34px 40px !important;
}

/* 스트립 선택 상태 강화: 선택 카드 문법(틴트+파란 인셋 링) + 클릭 촉감 */
.st-cell {
    transition: background-color .15s ease-out, transform .1s ease-out;
}

.st-cell:active {
    transform: scale(0.985);
}

.st-cell.on {
    background: var(--sfs-primary-light);
    box-shadow: inset 0 0 0 1.5px var(--sfs-primary);
}

/* 목록 카드 기본 높이 고정: 행 수와 무관하게 레이아웃 안정 */
.sf-listcard {
    display: flex;
    flex-direction: column;
    min-height: 430px;
}

.sf-listcard .paging {
    margin-top: auto;
    padding-top: 16px;
}

/* 폼 페이지 리듬: 라벨-인풋 밀착, 제목-내용 호흡, 섹션 간 구분 */
.contents form .normal-table.mb40 {
    margin-bottom: 26px;
}

.contents form h4.fs18 {
    margin-bottom: 12px;
}

/* 라벨 칸 폭 축소: 라벨과 인풋 사이 허공 제거 */
.contents form .normal-table tbody th {
    width: 108px;
    padding-right: 18px;
}

/* 수동 생성(Combined 키) 구간 정돈 */
#componentTable h2 {
    font-size: 13px;
    font-weight: 500;
    color: var(--sfs-sub);
}

#componentTable tr {
    height: auto !important;
}

#componentTable th {
    vertical-align: middle;
}

/* 키 생성 타입 선택 카드: 제목-설명 호흡 */
.radio-box02 input[type=radio]+label {
    padding: 16px 18px 15px 46px;
    line-height: 1.55;
}

.radio-box02 input[type=radio]+label span {
    margin-bottom: 7px;
    line-height: 1.3;
}

/* Combine 안내문 → 당구장 안내 박스 문법으로 통일 */
#componentTable tr:has(#combineStatusText) th {
    background: #F8FAFC;
    border: 1px solid var(--sfs-border) !important;
    border-radius: 12px;
    padding: 13px 16px;
}

#combineStatusText {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--sfs-ink);
    margin-bottom: 6px;
}

#combineStatusText ~ .gray {
    font-size: 12.5px;
    color: var(--sfs-sub);
    line-height: 1.8;
}

/* 참고 사이트 외부링크 아이콘: 텍스트 크기에 맞춤 */
.contents img[src*="btn-link"] {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    opacity: 0.55;
}

.contents a:hover img[src*="btn-link"] {
    opacity: 1;
}

/* byte 카운터: 인풋에서 살짝 띄우기 */
.input-summary {
    margin-top: 6px !important;
}

/* 회원가입: 카드 상단 여백 + 현재 단계 조용히 표시 */
.join-content {
    margin-top: 26px;
}

.join-content .step-bar-container {
    display: flex;
}

.step-bar-container .step-disabled {
    display: none;
}

.step-bar-container .step-active {
    background: transparent;
    padding: 0;
    height: auto;
    color: var(--sfs-sub);
    font-size: 12.5px;
    font-weight: 500;
    gap: 6px;
}

.step-bar-container .step-num {
    color: var(--sfs-primary);
    font-weight: 700;
}

/* Combined 키 생성: 테이블 % 배치 → 플렉스 정렬 (균형 재건) */
#componentTable {
    display: block;
}

#componentTable tr {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    height: auto !important;
}

#componentTable th {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: 0 !important;
}

/* 1) Component 라벨 */
#componentTable tr > th:first-child {
    flex: none;
    width: 92px;
    padding-top: 12px;
}

/* 2) Hex 입력 (남는 폭 전부) */
#componentTable th:has(.hex-input) {
    flex: 1;
    min-width: 0;
}

/* 3) KCV 확인 / KCV 라벨 / 값 / 초기화 */
#componentTable th:has(.btn-kcv-check),
#componentTable th:has(.reset-btn) {
    flex: none;
    padding-top: 2px;
}

#componentTable th:has(> h2) {
    flex: none;
    padding-top: 12px;
}

#componentTable th:has(.kcv-output) {
    flex: none;
    width: 130px;
    padding-top: 0;
}

/* Combine 버튼: 입력 칼럼 시작선에 정렬 */
#componentTable tr:has(#combineButton) {
    padding-left: 102px;
    margin-bottom: 14px;
}

#combineButton {
    margin-left: 0;
}

/* 안내 박스 행: 전체 폭 + 줄바꿈 정리 */
#componentTable tr:has(#combineStatusText) {
    display: block;
    padding-left: 0;
}

#componentTable tr:has(#combineStatusText) th {
    display: block;
    width: 100%;
}

#componentTable tr:has(#combineStatusText) br {
    display: none;
}

#combineStatusText ~ .gray {
    display: block;
}

#combineStatusText {
    margin-bottom: 4px;
}

/* 숨김 인풋만 있는 행 제거 */
#componentTable tr:not(:has(th)) {
    display: none;
    margin: 0;
}

/* 비로그인 레이아웃(section 클래스 없음): 고정 헤더에 안 덮이게 상단 확보 */
section:not(.section) > .contents {
    padding-top: 108px;
}

/* 스텝 표시: 옛 연결선/장식 완전 제거 (취소선처럼 글자 관통하던 것) */
.step-bar-container::before,
.step-bar-container::after,
.step-bar-container .step-active::before,
.step-bar-container .step-active::after,
.step-bar-container .step-num::before,
.step-bar-container .step-num::after,
.step-bar-container .step-txt::before,
.step-bar-container .step-txt::after {
    display: none !important;
    content: none !important;
}

.step-bar-container .step-active,
.step-bar-container .step-txt {
    text-decoration: none;
    background-image: none;
}

.step-bar-container {
    border: 0;
    background: none;
    height: auto;
}

/* 회원가입 폼: 인풋 오른쪽 끝선 정렬 (버튼 행 기준) */
.join-content .input-row {
    display: flex;
}

.join-content .input-row .inp {
    flex: 1;
    width: auto;
    min-width: 0;
}

/* 버튼 없는 행(colspan)은 버튼 칼럼만큼 오른쪽을 비워 끝선 일치 */
.join-content td[colspan] .input-box {
    padding-right: 112px;
}

/* 체크박스 동반 행은 예외 (대표자와 동일 등) */
.join-content td[colspan] .input-box:has(+ .checkbox-row),
.join-content .flex .input-box {
    padding-right: 0;
}

/* 공지 목록 행: 날짜 줄바꿈 금지 + 제목 한 줄 말줄임 */
.accordion-list .accordion-tit a {
    display: flex;
    align-items: center;
    gap: 14px;
}

.notice-accordion-list .accordion-tit .date {
    flex: none;
    width: auto;
    min-width: 92px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--sfs-sub);
}

.notice-accordion-list .accordion-tit .tit {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 카드 안 설명글: 내용과의 호흡 */
.sf-card .text-muted {
    margin-bottom: 14px;
}

.sf-card .sf-card-tit {
    margin-bottom: 6px;
}

.sf-card .sf-card-tit:only-child,
.sf-card h4.sf-card-tit + table {
    margin-top: 8px;
}

/* 행 내 액션 버튼(수정/삭제/재발송): 세로 쌓임 금지, 한 줄 정렬 */
.normal-table td:has(.btn),
.simple-table td:has(.btn),
.table td:has(.btn) {
    white-space: nowrap;
}

.normal-table td .btn + .btn,
.normal-table td .btn + a .btn,
.normal-table td a + .btn,
.normal-table td a + a .btn {
    margin-left: 6px;
}

/* 기업 정보 수정 모드: 인풋이 칸을 채워 열 끝선 정렬 */
#company-update-form .inp {
    width: 100%;
}

/* =========================================================
   [폭 규칙] 콘텐츠 폭 3단계 — 목록 1080 / 좁은 폼·상세 720 / 인증 400
   ========================================================= */
.contents .inner {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.contents .inner.sf-narrow {
    max-width: 1080px;
}

/* 상태 요약 스트립: 통계 KPI 스트립과 동일 리듬으로 통일 */
.st-cell {
    padding: 22px 26px 20px;
}

.st-num {
    margin-top: 10px;
    font-size: 30px;
}

/* 스트립 셀: 라벨-숫자 간격 통계와 동일(14px), 모서리 셀 라운드 정합 */
.st-num {
    margin-top: 14px;
}

.st-cell:first-child {
    border-radius: 15px 0 0 15px;
}

.st-cell:last-child {
    border-radius: 0 15px 15px 0;
}

.st-num {
    margin-top: 18px;
}

/* 공지: 제목과 펼침 꺾새 사이 간격 */
.notice-accordion-list .accordion-tit .tit {
    margin-right: 28px;
}

/* 카드 그리드: 880 제한 해제 — 페이지 폭(inner) 규칙을 따른다 */
.sf-cardgrid {
    max-width: none;
}

/* 개인정보처리방침: 구식 회색/보더 톤 정리 */
.privacy-policy-wrap {
    font-size: 14px;
    color: #1F2937;
    line-height: 1.75;
}

.privacy-effective-date {
    background: #F8FAFC !important;
    border: 1px solid var(--sfs-border) !important;
    border-radius: 12px;
}

.privacy-policy-wrap select,
.privacy-policy-wrap .select {
    border: 1px solid #CBD5E1 !important;
    border-radius: 10px;
    color: var(--sfs-ink) !important;
}

/* 스트립 셀: 통계 KPI 셀과 동일한 키(높이)로 */
.st-cell {
    min-height: 122px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 과한 최소높이 철회 — 자연 높이로 */
.st-cell {
    min-height: 0;
    padding: 22px 26px 20px;
}

/* 공지: 펼친 행은 제목 전문을 줄바꿈으로 표시 */
.notice-accordion-list div > .accordion-tit:has(+ .accordion-box[aria-hidden="false"]) .tit {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.5;
    padding: 4px 0;
}

/* 1차 패치 잔재 철회: 시행일자 회색 밴드 제거 (템플릿 새 스타일이 정본) */
.privacy-effective-date {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

/* 로그인: 클래식 2단 (일러스트 + 카드) */
.sf-auth-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.sf-auth-visual {
    width: 380px;
    flex: none;
    position: relative;
}

/* 일러스트 뒤 은은한 단색 래디얼 — 첫 화면 깊이감 */
.sf-auth-visual::before {
    content: "";
    position: absolute;
    inset: -72px;
    background: radial-gradient(closest-side, rgba(37, 99, 235, 0.07), transparent 72%);
    pointer-events: none;
}

.sf-auth-visual img {
    position: relative;
}

.sf-auth-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.sf-auth-side {
    width: 100%;
    max-width: 400px;
}

.sf-auth-side .sf-auth-note {
    max-width: none;
}

@media (max-width: 960px) {
    .sf-auth-visual {
        display: none;
    }
}

/* 인증 안내 노트: 묻히는 회색 → 파란 안내박스 표준 (C# 앱과 동일 문법) */
.sf-auth-note {
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
}

.sf-auth-note li {
    color: #1E40AF;
}

.sf-auth-note li::before {
    background: #60A5FA;
}

/* =========================================================
   [신축 컴포넌트] 상세 2열 배치 (서비스 정보 등 밀도 보강)
   ========================================================= */
.sf-grid2 {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

.sf-grid2 .sf-card {
    display: flex;
    flex-direction: column;
}

.sf-grid2 .sf-keynote {
    margin-top: auto;
}

/* 노트 바로 위 내용과 최소 간격 보장 (auto가 0으로 찌부되는 경우 대비) */
.sf-kv:has(+ .sf-keynote) {
    margin-bottom: 16px;
}

.sf-grid2 .sf-col {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.sf-grid2 .sf-card {
    min-width: 0;
}

/* 키-값 행 우측 액션 묶음 (보기/복사 등 복수 버튼) */
.sf-kv-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 2열 상세 보정: 긴 mono 값(왼쪽)에 폭을 더 주고, 라벨은 좁게, 값 줄바꿈 금지 */
.sf-grid2 {
    grid-template-columns: 1.4fr 1fr;
}

.sf-grid2 .sf-kv-row {
    grid-template-columns: 110px 1fr auto;
}

.sf-grid2 .sf-kv-row dd {
    word-break: normal;
}

.sf-grid2 .sf-mono {
    white-space: nowrap;
}

/* =========================================================
   [신축 컴포넌트] 서비스 아이덴티티 헤더 + 카드 아이콘 칩 (상세 페이지)
   ========================================================= */
.sf-idcard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 26px 30px;
}

.sf-ico-lg {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--sfs-primary-light, #EFF6FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sfs-primary, #2563EB);
    flex: none;
}

.sf-ico-lg svg {
    width: 22px;
    height: 22px;
}

.sf-id-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sf-id-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--sfs-sub);
}

.sf-id-meta .sf-mono {
    color: var(--sfs-body);
}

.sf-id-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #CBD5E1;
    flex: none;
}

.sf-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.sf-card-head .sf-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--sfs-primary-light, #EFF6FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sfs-primary, #2563EB);
    flex: none;
}

.sf-card-head .sf-ico svg {
    width: 14px;
    height: 14px;
}

/* 카드 성격 구분용 아이콘 배지 컬러 변형 */
.sf-card-head .sf-ico.violet { background: #F5F3FF; color: #7C3AED; }
.sf-card-head .sf-ico.amber { background: #FFFBEB; color: #D97706; }
.sf-card-head .sf-ico.teal { background: #F0FDFA; color: #0D9488; }

.sf-card-head .sf-card-tit {
    margin-bottom: 0;
}

.sf-keynote {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid var(--sfs-border);
    font-size: 12.5px;
    color: var(--sfs-sub);
    line-height: 1.55;
}

.sf-grid2 .sf-card {
    padding: 28px 30px;
}

/* 아이콘 전용 필 버튼 (복사/보기) */
.sf-copy.sf-iconbtn {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
}

.sf-copy.sf-iconbtn svg {
    width: 13px;
    height: 13px;
}

/* API Key처럼 긴 값 행: 라벨/액션 윗줄, 값은 아랫줄 전폭 사용 */
.sf-kv-row.sf-kv-stack {
    grid-template-columns: 1fr auto;
    row-gap: 7px;
}

.sf-kv-row.sf-kv-stack dd {
    grid-column: 1 / -1;
    overflow-x: auto;
}


/* =========================================================
   위험 액션 버튼: 삭제·즉시 해지 등은 붉은 outline으로 분리
   ========================================================= */
.btn.btn-danger,
td .btn.btn-danger,
.btn-wrap .btn.btn-danger {
    background: #fff !important;
    border: 1px solid #FECACA !important;
    color: var(--sfs-danger, #DC2626) !important;
}

.btn.btn-danger:hover,
td .btn.btn-danger:hover {
    border-color: #F87171 !important;
    background: #FEF2F2 !important;
    color: #B91C1C !important;
}


/* fs14는 원본 style.css에 정의가 없어 부모 크기(16px)를 상속받던 버그 — 스케일에 맞춰 신설 */
.contents .fs14,
.fs14 {
    font-size: 13px !important;
}

/* =========================================================
   [신축 컴포넌트] 모던 폼 (회원가입 등 긴 폼)
   ========================================================= */
/* 라디오 → 선택 필 */
.sf-choice {
    display: flex;
    gap: 10px;
}

.sf-choice .radio-row + .radio-row {
    margin-left: 0;
}

.sf-choice input.design-inp {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.sf-choice input[type="radio"] + label {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #CBD5E1;
    border-radius: 10px;
    font-size: 13.5px !important;
    color: var(--sfs-body);
    background: #fff;
    transition: border-color .15s ease-out, background .15s ease-out;
}

.sf-choice input[type="radio"] + label:before,
.sf-choice input[type="radio"]:checked + label:after {
    display: none;
}

.sf-choice input[type="radio"]:checked + label {
    border-color: var(--sfs-primary, #2563EB);
    background: var(--sfs-primary-light, #EFF6FF);
    color: #1D4ED8;
    font-weight: 600;
}

.sf-choice input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--sfs-primary, #2563EB);
    outline-offset: 2px;
}

/* 2열 필드 그리드 */
.sf-formgrid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    align-items: start;
}

.sf-formgrid2 .sf-field {
    margin-bottom: 22px;
}

/* 가입 폼 카드는 호흡 넉넉하게 */
.join-content .sf-card {
    padding: 28px 30px;
}

.join-content .sf-card-tit {
    margin-bottom: 20px;
}

.join-content .sf-field {
    margin-bottom: 22px;
}

.join-content .sf-field > label {
    margin-bottom: 9px;
}

.join-content .sf-choice {
    margin-top: 2px;
}

.sf-formgrid2 .sf-field-full {
    grid-column: 1 / -1;
}

/* 입력창 + 부속 버튼 한 줄 */
.sf-inline {
    display: flex;
    gap: 10px;
}

.sf-inline .sf-input {
    flex: 1;
}

.sf-inline .btn {
    flex: none;
}

/* 라벨 우측 보조 체크박스 행 */
.sf-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.sf-label-row > label {
    margin-bottom: 0 !important;
}

/* 파일 업로드 박스 */
.sf-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px dashed #CBD5E1;
    border-radius: 12px;
    background: #FAFBFD;
    cursor: pointer;
    transition: border-color .15s ease-out;
}

.sf-upload:hover {
    border-color: var(--sfs-primary, #2563EB);
}

.sf-upload .up-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--sfs-primary-light, #EFF6FF);
    color: var(--sfs-primary, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.sf-upload .up-ico svg {
    width: 18px;
    height: 18px;
}

.sf-upload input[type="text"] {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 13.5px;
    color: var(--sfs-body);
    cursor: pointer;
    outline: none;
    min-width: 0;
}

.sf-upload .up-btn {
    flex: none;
    padding: 8px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sfs-body);
}

/* 폼 내 파란 안내 박스 (PW 안내 등) */
.sf-forminfo {
    padding: 12px 14px;
    border: 1px solid #DBEAFE;
    border-radius: 10px;
    background: var(--sfs-primary-light, #EFF6FF);
    font-size: 13px;
    color: #1E40AF;
    line-height: 1.55;
}

/* 카드 세로 스택 (display:block 토글과 호환) */
.sf-stack > .sf-card {
    margin-bottom: 16px;
}

.sf-stack > .sf-card:last-child {
    margin-bottom: 0;
}


/* 필드 아래 보조 옵션 (대표자와 동일 등) */
.sf-subopt {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
}

/* 필드 오류 문구: 입력칸 바로 아래, 하위 옵션(체크박스)과 간격 확보 */
.sf-field > .input-msg {
    margin-top: 6px;
}

/* 한국어 어절 보존: 안내문이 낱말 중간에서 끊기지 않도록 */
.sf-forminfo,
.sf-done-desc,
.dl-note {
    word-break: keep-all;
}

/* 오류 모음 영역: 2열 그리드에서 필드 높이가 변해 하위 옵션이 흔들리는 것을 방지 */
.sf-errarea {
    margin: -8px 0 4px;
}

.sf-errarea:not(:has(> p:not([style*="display: none"]))) {
    margin: 0;
}

.sf-errarea > p {
    margin-top: 4px;
}

/* 오류 문구 색 복구: 레거시 `.contents p`(0-1-1)가 `.red`(0-1-0)를 눌러 회색으로 보이던 문제 */
.contents p.input-msg.red,
.contents p.noti-txt.red,
.contents .input-msg.red {
    color: #DC2626;
}

.sf-field > .input-msg + .sf-subopt {
    margin-top: 10px;
}

.sf-subopt .checkbox-label {
    padding-left: 10px;
}

.sf-subopt .checkbox-label {
    font-size: 12.5px !important;
    color: var(--sfs-sub);
    cursor: pointer;
}

/* 폼 마무리 푸터 카드 */
.sf-formfooter {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 26px !important;
}

/* 약관 동의: 전체 동의 강조 카드 + 본문 박스 */
.sf-agreeall {
    background: var(--sfs-primary-light, #EFF6FF) !important;
    border-color: #DBEAFE !important;
}

.sf-agreeall .checkbox-label {
    font-weight: 700;
    font-size: 15px !important;
    color: var(--sfs-ink);
}

.sf-agreeall-sub {
    margin: 8px 0 0 30px;
    font-size: 12.5px;
    color: var(--sfs-sub);
    line-height: 1.55;
}

.sf-termscard .terms-item-row .checkbox-label {
    font-weight: 600;
    font-size: 14px !important;
}

.sf-termscard .terms-req {
    margin-left: 6px;
    font-size: 12.5px !important;
}

.sf-termscard .terms-box {
    height: 380px;
    overflow-y: auto;
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid var(--sfs-border);
    border-radius: 12px;
    background: #FAFBFD;
    font-size: 13px !important;
    line-height: 1.7;
    color: var(--sfs-body);
}

/* 체크박스 선명화 (가입 플로우 스코프) */
.join-content input[type="checkbox"] + label:before {
    border: 1.5px solid #94A3B8;
    border-radius: 6px;
}

/* 필수 동의 전 다음 버튼 비활성 */
.join-content .btn-b:disabled {
    background: #CBD5E1 !important;
    cursor: not-allowed;
}


/* 완료/상태 카드 (이메일 인증 대기 등) */
.sf-donecard {
    text-align: center;
    padding: 40px 34px 34px !important;
}

.sf-done-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--sfs-primary-light, #EFF6FF);
    color: var(--sfs-primary, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-done-ico svg {
    width: 28px;
    height: 28px;
}

/* 완료 아이콘 경고 변형 (실패/만료 안내) */
.sf-done-ico.warn {
    background: #FFF7ED;
    color: #D97706;
}

.sf-done-tit {
    font-size: 21px !important;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.02em;
}

.sf-done-desc {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--sfs-sub);
    line-height: 1.75;
}

.sf-done-desc b {
    color: var(--sfs-ink);
    font-weight: 600;
}


/* 재설정 화면 취소는 보조 톤으로 */
.reset-actions .btn-outline {
    border-color: #E2E8F0;
    color: var(--sfs-sub);
}

.reset-actions .btn-outline:hover {
    border-color: var(--sfs-ink);
    color: var(--sfs-ink);
}

/* =========================================================
   홈 (관리 작업 런처)
   ========================================================= */
.sf-home-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sf-home-head h3 {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-home-head .sub {
    margin-top: 8px;
    font-size: 14px;
    color: var(--sfs-sub);
}

.sf-home-date {
    font-size: 13px;
    color: var(--sfs-faint);
}

.sf-launch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.sf-launch .sf-card {
    display: flex;
    flex-direction: column;
    padding: 26px 28px;
}

.dl-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dl-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--sfs-primary-light, #EFF6FF);
    color: var(--sfs-primary, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.dl-ico svg {
    width: 22px;
    height: 22px;
}

.dl-nm {
    font-size: 16px;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.01em;
}

.dl-meta {
    margin-top: 5px;
    font-size: 13px;
    color: var(--sfs-sub);
}

.dl-note {
    margin-top: 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--sfs-sub);
    line-height: 1.7;
}

.sf-dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    height: 44px;
    border-radius: 12px;
    background: #18181B;
    border: 1px solid #18181B;
    color: #fff !important;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease-out;
}

.sf-dl-btn:hover {
    background: #27272A;
    border-color: #27272A;
}

.sf-dl-btn svg {
    width: 15px;
    height: 15px;
}

.sf-headrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sf-headrow .sf-card-tit {
    margin-bottom: 0;
}

.sf-card-more {
    font-size: 12.5px;
    color: var(--sfs-primary, #2563EB);
    font-weight: 500;
    text-decoration: none;
}

.sf-card-more:hover {
    text-decoration: underline;
}

.sf-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

.sf-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    padding: 13px 16px;
    border: 1px solid var(--sfs-border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: border-color .15s ease-out;
}

.sf-tile:hover {
    border-color: var(--sfs-primary, #2563EB);
}

.sf-tile .ti {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--sfs-primary-light, #EFF6FF);
    color: var(--sfs-primary, #2563EB);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sf-tile .ti svg {
    width: 15px;
    height: 15px;
}

.sf-tile .tl {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sfs-body);
    word-break: keep-all;
    line-height: 1.35;
}

.sf-notice-mini {
    flex: 1;
}

.sf-notice-mini li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sfs-border);
    font-size: 13.5px;
}

.sf-notice-mini li:last-child {
    border-bottom: 0;
}

/* 공지 제목: 한 줄이면 긴 제목이 대부분 잘려나가므로 2줄까지 허용 후 말줄임 */
.sf-notice-mini .t {
    color: var(--sfs-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: normal;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.sf-notice-mini .d {
    color: var(--sfs-faint);
    font-size: 12px;
    flex: none;
    white-space: nowrap;
}

.sf-help {
    background: var(--sfs-primary-light, #EFF6FF) !important;
    border-color: #DBEAFE !important;
}

.sf-help p {
    font-size: 13px;
    color: #1E40AF;
    line-height: 1.8;
}


/* 홈: 카드 내 지표 행 (관리자 전용 요약) */
.sf-statrow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 6px;
}

.sf-stat {
    padding: 10px 18px 6px;
    border: 0;
    border-left: 1px solid var(--sfs-border);
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background-color .15s ease-out;
    border-radius: 10px;
}

.sf-stat:first-child {
    border-left: 0;
    padding-left: 2px;
}

.sf-stat:hover {
    background: #FAFBFE;
}

.sf-stat .lb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--sfs-sub);
}

.sf-stat .lb i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: none;
}

.sf-stat .num {
    margin-top: 7px;
    font-size: 22px;
    font-weight: 700;
    color: var(--sfs-ink);
    font-variant-numeric: tabular-nums;
}

.sf-stat .num small {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 400;
    color: var(--sfs-faint);
}


/* 반폭 카드용 2x2 지표 변형 */
.sf-statrow.cols2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 0;
}

.sf-statrow.cols2 .sf-stat {
    border-left: 0;
    padding: 10px 2px 8px;
}

.sf-statrow.cols2 .sf-stat:nth-child(even) {
    border-left: 1px solid var(--sfs-border);
    padding-left: 18px;
}


/* 홈 히어로 현황판: 두 지표 그룹을 한 판에 */
.sf-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 24px 28px 20px;
    margin-bottom: 16px;
}

.sf-hero-stats .grp {
    min-width: 0;
}

.sf-hero-stats .grp + .grp {
    border-left: 1px solid var(--sfs-border);
    padding-left: 28px;
    margin-left: 28px;
}

.sf-hero-stats .num {
    font-size: 26px;
}

/* 3열 카드 행 */
.sf-launch3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.sf-launch3 .sf-card {
    display: flex;
    flex-direction: column;
    padding: 24px 26px;
}

/* 얇은 도움 바 */
.sf-helpbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding: 14px 22px;
    border: 1px solid #E7EFFC;
    border-radius: 14px;
    background: var(--sfs-primary-light, #EFF6FF);
    font-size: 13px;
    color: #1E40AF;
}

.sf-helpbar b {
    font-weight: 700;
    color: #1E3A8A;
}

.sf-helpbar .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #93C5FD;
    flex: none;
}


/* 홈 관리자 대시보드 */
.st-delta {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--sfs-primary-light, #EFF6FF);
    color: var(--sfs-primary-hover, #1D4ED8);
    font-size: 11.5px;
    font-weight: 600;
    vertical-align: 3px;
}

.sf-dash-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 16px;
}

.sf-dash-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.sf-chartcard {
    display: flex;
    flex-direction: column;
    /* 패딩은 전역 .sf-card 기준을 따름 (홈만 넉넉해 보이던 원인) */
    cursor: pointer;
}

.sf-chartcard:hover {
    border-color: #BFD3F8;
}

.sf-bars {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex: 1;
    min-height: 170px;
    margin-top: 20px;
}

.sf-bars .b {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    height: 100%;
}

.sf-bars .bar {
    width: 100%;
    max-width: 46px;
    border-radius: 8px 8px 4px 4px;
    background: #DBEAFE;
}

.sf-bars .b.pk .bar {
    background: var(--sfs-primary, #2563EB);
}

.sf-bars .bv {
    font-size: 12px;
    color: var(--sfs-sub);
    font-variant-numeric: tabular-nums;
}

.sf-bars .b.pk .bv {
    color: var(--sfs-primary-hover, #1D4ED8);
    font-weight: 700;
}

.sf-bars .bl {
    font-size: 11.5px;
    color: var(--sfs-faint);
}

/* 대시보드 우측 열 카드도 전역 카드 패딩을 따름 — 하단만 살짝 여유 */
.sf-dash-col .sf-card {
    padding-bottom: 16px;
}

.sf-dash-col .sf-statrow .num {
    font-size: 20px;
}


/* 라인 차트 (홈 히어로). 예전엔 190px라 오른쪽 열(도넛+공지)이 짧으면
   grid align-items:stretch에 눌려 차트가 납작해졌음 — 최소 높이를 올려 항상 제대로 된 비율 확보.
   svg는 absolute 필수: JS가 컨테이너 크기를 viewBox에 쓰는데, svg가 일반 흐름에 있으면
   viewBox 비율이 다시 컨테이너 높이를 밀어올려 리사이즈마다 커지기만 하는 래칫 루프 발생 */
.sf-line-chart {
    position: relative;
    flex: 1;
    min-height: 280px;
    margin-top: 14px;
}

.sf-line-chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}


/* 홈 히어로: Agent 현황 */
.sf-heroagent .sf-statrow .num {
    font-size: 28px;
}

.sf-heroagent .sf-statrow {
    flex: 1;
    align-content: center;
}

/* 조치 필요 알림줄 */
.sf-actnote {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 12px;
    border: 1px solid #FBE9AE;
    border-radius: 9px;
    background: #FFFBEB;
    font-size: 12.5px;
    color: #92400E;
    cursor: pointer;
    transition: border-color .15s ease-out;
}

.sf-actnote:hover {
    border-color: #F59E0B;
}

.sf-actnote b {
    font-weight: 700;
}

.sf-actnote .arr {
    margin-left: auto;
    color: #B45309;
}

.sf-line-chart.sm {
    min-height: 120px;
}


/* 히어로: 전체 숫자 + 상태 구성 바 + 레전드 */
.sf-total {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 20px;
}

.sf-total .tn {
    font-size: 42px;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.sf-total .tl {
    font-size: 13.5px;
    color: var(--sfs-sub);
}

.sf-compbar {
    display: flex;
    gap: 3px;
    height: 14px;
    margin-top: 18px;
}

.sf-compbar span {
    border-radius: 5px;
    min-width: 8px;
}

.sf-complegend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.sf-complegend button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid #EEF1F6;
    border-radius: 999px;
    background: #FAFBFD;
    font-size: 12px;
    color: var(--sfs-body);
    cursor: pointer;
    transition: border-color .15s ease-out;
}

.sf-complegend button:hover {
    border-color: var(--sfs-primary, #2563EB);
}

.sf-complegend button i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: none;
}

.sf-complegend button b {
    font-weight: 700;
    color: var(--sfs-ink);
    font-variant-numeric: tabular-nums;
}


/* KPI 미니 스파크라인 + 숫자 팝인 */
.sf-stat .spark {
    display: block;
    width: 100%;
    max-width: 130px;
    height: 22px;
    margin-top: 9px;
}

@keyframes sf-num-pop {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: none; }
}

.sf-hero-stats .num,
.sf-hero-stats .sf-total .tn,
.sf-hero-stats .spark,
.sf-hero-stats .sf-compbar {
    animation: sf-num-pop .5s ease-out both;
}

.sf-hero-stats .sf-stat:nth-child(2) .num,
.sf-hero-stats .sf-stat:nth-child(2) .spark { animation-delay: .06s; }
.sf-hero-stats .sf-stat:nth-child(3) .num,
.sf-hero-stats .sf-stat:nth-child(3) .spark { animation-delay: .12s; }
.sf-hero-stats .sf-stat:nth-child(4) .num,
.sf-hero-stats .sf-stat:nth-child(4) .spark { animation-delay: .18s; }
.sf-hero-stats .sf-compbar { animation-delay: .12s; }


/* 카드 제목 옆 기간 캡션 */
.sf-tit-cap {
    margin-left: 4px;
    font-size: 12px;
    color: var(--sfs-faint);
}


/* 도넛 현황 */
.sf-donut-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 14px;
    flex: 1;
}

.sf-donut {
    width: 150px;
    height: 150px;
    flex: none;
}

.sf-donut-row .sf-complegend {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    max-width: 180px;
    margin-top: 0;
    gap: 2px;
}

.sf-donut-row .sf-complegend button b {
    margin-left: auto;
}


/* 촘촘 KPI 스트립 (홈 6칸) */
.st-strip.dense {
    margin-bottom: 16px;
}

.st-strip.dense .st-cell {
    padding: 19px 20px 17px;
}

.st-strip.dense .st-num {
    font-size: 21px;
    margin-top: 8px;
}

.st-strip.dense .st-delta {
    vertical-align: 2px;
    margin-left: 6px;
}


/* 스트립 상단 캡션줄 */
.sf-strip-cap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 0 2px;
}

.sf-strip-cap .tit {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sfs-ink);
}

.sf-strip-cap .cap {
    font-size: 12px;
    color: var(--sfs-faint);
}


/* 홈 클린 패스: 아이콘 칩 무채화(색은 데이터에만), 공지 행 리딩 아이콘 */
body.dashboard.sub:has(.sf-home) .section {
    background: #F7F8FA;
}

.sf-home {
    color: var(--sfs-body);
}

.sf-home .sf-card,
.sf-home .st-strip {
    border-color: #D7DEE9;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 20px rgba(15, 23, 42, 0.025);
}

.sf-home .sf-card {
    background: #FFFFFF;
}

.sf-home .sf-home-head {
    margin-bottom: 20px;
}

.sf-home .sf-home-head h3 {
    font-size: 23px !important;
}

.sf-home .sf-home-head .sub,
.sf-home .sf-home-date {
    color: #6B7280;
}

.sf-home .sf-badge.b-act {
    background: #EAF8F2;
    color: #0F8B5F;
}

.sf-home .st-strip {
    background: #FFFFFF;
}

.sf-home .st-cell {
    border-left-color: #DDE3EC;
    padding-top: 17px;
    padding-bottom: 16px;
}

.sf-home .st-cell:hover {
    background: #F8FAFC;
}

.sf-home .st-lb {
    color: #6B7280;
}

.sf-home .st-num {
    color: #111827;
}

.sf-home .st-delta {
    background: #EDF4FF;
    color: #2456C7;
}

.sf-home .sf-card-head .sf-ico {
    background: #F2F5F8;
    color: #64748B;
}

.sf-home .sf-card-more {
    color: #2456C7;
}

.sf-home .sf-line-chart {
    margin-top: 12px;
}

.sf-home .sf-line-chart line {
    stroke: #E7ECF3;
}

.sf-home .sf-chartcard:hover {
    border-color: #AFC3E8;
}

.sf-home .sf-complegend button {
    background: #F8FAFC;
    border-color: #E7ECF3;
}

.sf-home .sf-complegend button:hover {
    border-color: #9FB5DA;
}

.sf-home .sf-actnote {
    background: #FFF8E6;
    border-color: #F3D98C;
}

.sf-home .dl-ico {
    background: #EDF4FF;
}

/* 배경은 전역 .sf-dl-btn(그래파이트 솔리드)을 따름 — 홈에서 흰색으로 덮던 잔재 제거 */
.sf-home .sf-dl-btn {
    border-radius: 10px;
}

.sf-home .sf-opstats .op {
    background: #F7F9FC;
}

.sf-home .sf-notice-mini li {
    padding: 13px 0;
    border-bottom-color: #E7ECF3;
}

.sf-home .sf-notice-mini .ri {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #F2F5F8;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    align-self: center;
}

.sf-home .sf-notice-mini .ri svg {
    width: 14px;
    height: 14px;
}

.sf-home .sf-notice-mini li {
    align-items: center;
}


/* 테이블 클린 문법: 이니셜 아바타 + 행 리듬 */
.sf-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12.5px;
    font-weight: 700;
    flex: none;
    user-select: none;
}

.sf-rowid {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.sf-listcard .normal-table tbody td {
    padding-top: 12px;
    padding-bottom: 12px;
}


/* 운영 상태 카드 (평시/장애 동일 레이아웃) */
.sf-okstate {
    margin-top: 14px;
}

.sf-okstate .solo {
    margin-top: 0;
    font-size: 13.5px;
    color: var(--sfs-body);
}

.sf-okstate .tt {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--sfs-ink);
    letter-spacing: -0.01em;
}

.sf-okstate .tt.danger {
    color: var(--sfs-danger, #DC2626);
}

.sf-okstate p {
    margin-top: 6px;
    font-size: 13px;
    color: var(--sfs-sub);
    line-height: 1.6;
}

.sf-okstate .mini {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.sf-okstate .mini span {
    padding: 5px 11px;
    border-radius: 8px;
    background: #F8FAFC;
    font-size: 12px;
    color: var(--sfs-sub);
}

.sf-okstate .mini span b {
    font-weight: 700;
    color: var(--sfs-ink);
}

.sf-okstate .mini span.warn {
    background: #FEF2F2;
    color: #B91C1C;
}

.sf-okstate .mini span.warn b {
    color: #B91C1C;
}


/* 도넛 조각 호버 */
.sf-donut .seg {
    cursor: pointer;
    transition: stroke-width .15s ease-out;
}

.sf-donut .seg:hover {
    stroke-width: 17.5;
}

/* 도넛 범례: 알약 → 민무늬 텍스트 (그래프가 주인공) */
.sf-donut-row .sf-complegend button {
    display: flex;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 5px 6px;
    font-size: 12.5px;
    border-radius: 6px;
}

.sf-donut-row .sf-complegend button:hover {
    color: var(--sfs-primary-hover, #1D4ED8);
    background: #FAFCFF;
}


/* 빈 상태 컴포넌트 (목록 0건) */
.sf-listcard .accordion-list:has(.notice-empty) {
    flex: 1;
    display: flex;
}

.sf-listcard .notice-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
}

.sf-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 40px 20px;
}

.sf-empty .ei {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #F1F5F9;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sf-empty .ei svg {
    width: 24px;
    height: 24px;
}

.sf-empty b {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--sfs-body);
}

.sf-empty p {
    font-size: 13px;
    color: var(--sfs-faint);
}


/* 운영 상태 미니 지표 4칸 */
.sf-opstats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.sf-opstats .op {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 15px;
    border-radius: 10px;
    background: #F8FAFC;
}

.sf-opstats .op .lb {
    font-size: 12px;
    color: var(--sfs-sub);
}

.sf-opstats .op b {
    font-size: 16px;
    font-weight: 700;
    color: var(--sfs-ink);
    font-variant-numeric: tabular-nums;
}

.sf-opstats .op.warn {
    background: #FEF2F2;
}

.sf-opstats .op.warn .lb,
.sf-opstats .op.warn b {
    color: #B91C1C;
}

/* 브라우저 내장 비밀번호 눈알/지우기 버튼 제거 (Edge 등) — 커스텀 토글과 중복 방지 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* 마스킹 값 + 눈알은 항상 한 줄 */
td:has(.sf-masked) {
    white-space: nowrap;
}

/* 통계 표 정렬: 텍스트 왼쪽, 숫자 오른쪽 (전역 리셋의 baseline 정렬을 셀 세로 중앙으로 복원) */
.stat-table th,
.stat-table td {
    vertical-align: middle;
}

.stat-table th:first-child,
.stat-table td:first-child {
    text-align: left;
    padding-left: 28px;
}

.stat-table th:last-child,
.stat-table td:last-child {
    text-align: right;
    padding-right: 28px;
    font-variant-numeric: tabular-nums;
}

/* 통계 가로 막대 색 통일 (버전 분포) */
.horizontal-bar {
    background: #93C5FD !important;
}

.horizontal-bar.highlighted {
    background: #2563EB !important;
}

/* =========================================================
   반응형(노트북·창 분할 구간) — 반드시 파일 맨 끝 유지.
   같은 특이도 규칙은 나중에 선언된 쪽이 이기므로,
   .sf-dash-grid(3100줄대) 등 기본 정의보다 뒤에 있어야 미디어쿼리가 적용됨.
   사이드바 고정폭(280px)을 감안해 뷰포트 브레이크포인트를 당겨 잡음 */
@media (max-width: 1300px) {
    .sf-dash-grid {
        grid-template-columns: 1fr;
    }

    .st-strip.sf-cardgrid.dense {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .st-strip .st-cell {
        border-top: 1px solid var(--sfs-border);
    }

    .st-strip .st-cell:nth-child(-n+2) {
        border-top: 0;
    }
}

/* =========================================================
   홈 밀도 강화 — .sf-home 스코프 (통계 등 다른 화면의 스트립 리듬은 유지).
   캐스케이드 순서상 기본 정의보다 뒤(파일 끝)에 있어야 함
   ========================================================= */
.sf-home .sf-home-head {
    margin-bottom: 14px;
}

.sf-home .sf-strip-cap {
    margin-bottom: 6px;
}

.sf-home .st-strip {
    margin-bottom: 12px;
}

.sf-home .st-cell {
    padding: 14px 18px 12px;
}

.sf-home .st-num {
    margin-top: 6px;
    font-size: 24px;
}

.sf-home .sf-cardgrid,
.sf-home .sf-dash-grid,
.sf-home .sf-dash-col {
    gap: 12px;
}

.sf-home .sf-dash-grid {
    margin-top: 12px;
}

.sf-home .sf-line-chart {
    min-height: 236px;
}

.sf-home .sf-notice-mini li {
    padding: 8px 0;
}

.sf-home .sf-donut-row {
    gap: 16px;
}

.sf-home .sf-helpbar {
    margin-top: 12px;
    padding: 10px 18px;
}
