/* 네이버폼 스타일 설문 UI */
.sv-naver { font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
.sv-naver-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; padding-bottom:10px; border-bottom:2px solid #222; }
.sv-naver-head h2 { margin:0; font-size:20px; font-weight:700; }
.sv-naver-head .btn-create { border-radius:20px; padding:6px 16px; font-weight:600; font-size:13px; }

.sv-list-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; margin-bottom:10px; padding:8px 10px; background:#f8f9fa; border:1px solid #e8e8e8; border-radius:8px; }
.sv-search-group, .sv-sort-group { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
.sv-list-toolbar .form-control { min-width:100px; }
.sv-list-toolbar input[name="stx"] { min-width:140px; }

.sv-card-list { display:flex; flex-direction:column; gap:5px; margin-bottom:12px; }
.sv-card { background:#fff; border:1px solid #e8e8e8; border-radius:8px; padding:7px 12px; display:flex; align-items:center; gap:8px; transition:box-shadow .2s; min-height:0; }
.sv-card:hover { box-shadow:0 2px 8px rgba(0,0,0,.05); }
.sv-card-body { flex:1; min-width:0; }
.sv-card-title { font-size:14px; font-weight:600; color:#222; margin:0 0 2px; line-height:1.3; }
.sv-card-title a { color:inherit; text-decoration:none; }
.sv-card-title a:hover { color:#03c75a; }
.sv-card-meta { font-size:11px; color:#888; line-height:1.3; display:flex; flex-wrap:wrap; align-items:center; gap:2px 6px; }
.sv-card-meta i { margin-right:2px; }
.sv-meta-sep { color:#ccc; }
.sv-card-actions { display:flex; flex-wrap:wrap; gap:3px; align-items:center; flex-shrink:0; }
.sv-card-actions .btn-xs { padding:2px 7px; font-size:11px; line-height:1.4; }

.sv-status { display:inline-block; font-size:10px; font-weight:700; padding:2px 7px; border-radius:4px; min-width:44px; text-align:center; }
.sv-status-ongoing { color:#03c75a; background:#e8faf0; }
.sv-status-ended { color:#888; background:#f0f0f0; }
.sv-status-stopped { color:#e74c3c; background:#fdecea; }
.sv-status-waiting { color:#f39c12; background:#fef6e8; }

.sv-status-select { border:1px solid #ddd; border-radius:4px; padding:2px 6px; font-size:11px; background:#fff; cursor:pointer; height:24px; }
.sv-status-select:focus { border-color:#03c75a; outline:none; }

.sv-tabs { margin-bottom:16px; }
.sv-tabs .btn { border-radius:20px !important; margin-right:6px; }

.sv-form-card { background:#fff; border:1px solid #e0e0e0; border-radius:12px; padding:24px; margin-bottom:16px; }
.sv-form-card h4 { margin:0 0 16px; font-size:15px; font-weight:700; color:#333; padding-bottom:10px; border-bottom:1px solid #eee; }
.sv-form-card .form-group { margin-bottom:14px; }
.sv-form-card .control-label { font-weight:600; color:#555; }

.sv-pw-box { max-width:400px; margin:40px auto; text-align:center; background:#fff; border:1px solid #e0e0e0; border-radius:12px; padding:40px 30px; }
.sv-pw-icon { font-size:48px; color:#03c75a; margin-bottom:16px; }

.sv-result-head { background:#f8f9fa; border-radius:12px; padding:20px 24px; margin-bottom:20px; border:1px solid #e8e8e8; }
.sv-result-head h3 { margin:0 0 8px; font-size:20px; font-weight:700; }
.sv-result-period { color:#666; font-size:13px; }
.sv-result-period i { color:#03c75a; margin-right:6px; }
.sv-result-head-btns .btn { margin-left:4px; }

.sv-named-banner {
    background: linear-gradient(135deg, #e8faf0 0%, #d4f5e0 100%);
    border: 2px solid #03c75a;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    text-align: center;
}
.sv-named-banner strong { color: #03c75a; font-size: 16px; display: block; margin-bottom: 6px; }
.sv-named-banner p { color: #555; margin: 0; font-size: 13px; }

.survey-board.sv-naver-editor .survey-builder-wrap,
.survey-board.sv-naver-editor .survey-q-card { /* editor uses survey-builder.css */ }
.survey-board:not(.sv-naver-editor) .survey-builder-wrap { background:#fafafa; border:1px solid #e8e8e8; border-radius:12px; padding:16px; }
.survey-board:not(.sv-naver-editor) .survey-q-card { border-radius:10px; border-left:4px solid #03c75a !important; box-shadow:0 1px 4px rgba(0,0,0,.05); }
.survey-builder-toolbar .btn-color { background:#03c75a; border-color:#03c75a; color:#fff; }
.survey-builder-toolbar .btn-color:hover { background:#02b351; border-color:#02b351; color:#fff; }

.sv-empty { text-align:center; padding:60px 20px; color:#999; background:#fafafa; border-radius:12px; border:1px dashed #ddd; }
.sv-empty i { font-size:40px; color:#ccc; display:block; margin-bottom:12px; }

.sv-icon-btn { display:inline-block; width:24px; height:24px; line-height:22px; text-align:center; border:1px solid #ddd; border-radius:50%; color:#666; background:#fff; cursor:pointer; text-decoration:none !important; font-size:11px; }
.sv-icon-btn:hover { border-color:#03c75a; color:#03c75a; background:#f8fff9; }

.sv-list-table { width:100%; margin-bottom:16px; }
.sv-list-table thead th { background:#f8f9fa; border-bottom:2px solid #e0e0e0; padding:10px 8px; font-size:13px; text-align:center; white-space:nowrap; }
.sv-list-table tbody td { padding:12px 8px; border-bottom:1px solid #eee; vertical-align:middle; font-size:13px; }
.sv-list-table tbody tr:hover { background:#fafafa; }
.sv-list-table .sv-td-subject { text-align:left; }
.sv-list-table .sv-td-subject .sv-subject { font-weight:600; color:#222; margin-bottom:4px; }
.sv-list-table .sv-td-period { color:#888; font-size:12px; white-space:nowrap; }
.sv-list-table .sv-td-actions { white-space:nowrap; text-align:center; }
.sv-list-table .sv-td-actions .btn { margin:2px 0; }

.sv-share-modal .modal-body input { font-size:12px; }

.sv-detail-content { line-height:1.7; color:#444; font-size:14px; }
.sv-q-preview-list { margin:0; padding:0; list-style:none; counter-reset: svq; }
.sv-q-preview-item { padding:14px 0; border-bottom:1px solid #f0f0f0; }
.sv-q-preview-item:last-child { border-bottom:none; }
.sv-q-preview-title { font-weight:600; color:#222; margin:0 0 8px; font-size:14px; }
.sv-q-preview-opts { margin:0; padding:0 0 0 18px; list-style:none; }
.sv-q-preview-opts li { color:#666; font-size:13px; padding:3px 0; }
.sv-q-preview-opts li:before { content:"· "; color:#03c75a; font-weight:bold; }

/* 응답 세부내역 */
.sv-detail-responses .sv-detail-summary { margin-bottom:16px; }
.sv-resp-table { font-size:12px; margin-bottom:16px; table-layout:fixed; width:100%; }
.sv-resp-table thead th {
    background:#f8f9fa;
    font-size:12px;
    text-align:center;
    white-space:nowrap;
    padding:7px 6px;
    vertical-align:middle;
}
.sv-resp-table tbody td {
    vertical-align:middle !important;
    padding:5px 8px !important;
    line-height:1.35;
}
.sv-resp-table tbody tr.sv-resp-row td { border-bottom:1px solid #eee; }
.sv-resp-table .sv-resp-th-actions,
.sv-resp-table .sv-resp-actions {
    width:200px;
    min-width:200px;
    max-width:200px;
}
.sv-resp-table .sv-resp-actions {
    white-space:nowrap;
    text-align:center;
    padding:4px 4px !important;
}
.sv-resp-table .sv-resp-actions .btn {
    display:inline-block;
    padding:2px 6px;
    font-size:11px;
    line-height:1.35;
    margin:0 1px;
    vertical-align:middle;
}
.sv-resp-badge { display:inline-block; font-size:10px; font-weight:700; padding:1px 6px; border-radius:10px; line-height:1.4; }
.sv-badge-member { color:#2563eb; background:#eff6ff; }
.sv-badge-guest { color:#6b7280; background:#f3f4f6; }
.sv-resp-ip { font-family:monospace; font-size:11px; color:#666; }
.sv-resp-detail-row td { background:#fafafa; padding:0 !important; border-top:none !important; }
.sv-resp-answers { padding:10px 14px; }
.sv-resp-answer-item { padding:6px 0; border-bottom:1px dashed #e8e8e8; }
.sv-resp-answer-item:last-child { border-bottom:none; }
.sv-resp-q { font-weight:600; color:#333; margin-bottom:4px; font-size:13px; }
.sv-resp-a { color:#555; font-size:13px; line-height:1.6; padding-left:18px; }

@media (max-width:767px) {
    .sv-card { flex-direction:column; align-items:flex-start; }
    .sv-card-actions { width:100%; }
}


/* 목록 헤더 액션 */
.sv-naver-head .sv-head-actions { display:flex; align-items:center; gap:8px; }
.sv-stealth-settings {
    border: none;
    background: #ffffff;
    color: #ffffff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
    box-shadow: none;
}
.sv-stealth-settings:hover,
.sv-stealth-settings:focus,
.sv-stealth-settings:active {
    background: #ffffff !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: none;
}


/* 공개/미공개 토글 */
.sv-vis-toggle {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
    background: #f5f5f5;
    cursor: pointer;
    vertical-align: middle;
    line-height: 1;
    min-height: 28px;
}
.sv-vis-toggle .sv-vis-opt {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    background: transparent;
    transition: background .15s, color .15s;
}
.sv-vis-toggle.is-public .sv-vis-opt[data-v="0"],
.sv-vis-toggle.is-private .sv-vis-opt[data-v="1"] {
    background: #03c75a;
    color: #fff;
}
.sv-vis-toggle.is-private .sv-vis-opt[data-v="1"] {
    background: #888;
    color: #fff;
}
.sv-vis-toggle:disabled {
    opacity: .6;
    cursor: wait;
}
.sv-card-actions .sv-vis-toggle { margin-right: 4px; }
