/**
 * when-meet 스타일
 */

/* ===== 인증 영역 (live-qa/collab-doc 공통) ===== */
.cloud-auth-area {
    position: fixed;
    top: 16px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 900;
}

.cloud-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    color: #555;
    transition: background 0.15s, box-shadow 0.15s;
}

.cloud-login-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.cloud-user-area {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #555;
}

.cloud-user-photo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.cloud-user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cloud-logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: #999;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.cloud-logout-btn:hover {
    color: #e74c3c;
    background: #fef0f0;
}

/* ===== 공통 ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
}

.subtitle {
    text-align: center;
    color: #888;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.text-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
    background: white;
}

.text-input:focus { border-color: #a8b5e0; }

textarea.text-input {
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
    height: auto;
    min-height: 60px;
}

.desc-input {
    min-height: 60px;
}

.form-hint {
    font-size: 0.75rem;
    color: #999;
    margin-top: 6px;
}

.hint {
    font-size: 0.78rem;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

/* ===== 폼 그리드 ===== */
.form-grid {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px 14px;
    align-items: start;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-align: right;
    white-space: nowrap;
    line-height: 36px;
}

.form-label-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.form-label-group .form-label {
    line-height: 1.4;
    margin-top: 8px;
}

.add-candidate-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px dashed #c0c5d8;
    background: white;
    color: #6a7fc4;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}

.add-candidate-btn:hover {
    border-color: #6a7fc4;
    border-style: solid;
    background: #f0f0ff;
    color: #4a5fa0;
}

.form-value {
    min-width: 0;
}

/* 토글 버튼 — 36px 통일 */
.toggle-btns {
    display: inline-flex;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.toggle-btn {
    padding: 0 18px;
    border: none;
    background: #f5f5f5;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 34px;
}

.toggle-btn + .toggle-btn {
    border-left: 1px solid #ddd;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #6a7fc4 0%, #9560b8 100%);
    color: white;
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* 체크박스 인라인 */
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #a8b5e0;
    cursor: pointer;
}

/* ===== 동적 리스트 (후보/참여자) ===== */
.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.candidate-item,
.participant-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.candidate-item .candidate-date {
    flex: 1;
    font-family: monospace;
    min-width: 130px;
}

.candidate-item .candidate-hour,
.candidate-item .candidate-minute {
    flex: 0 0 64px;
    font-family: monospace;
    text-align: center;
    padding: 8px 6px;
}

.candidate-time-colon {
    color: #888;
    font-weight: 700;
    margin: 0 -2px;
}

.candidate-weekday {
    flex: 0 0 32px;
    text-align: center;
    color: #6a7fc4;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: monospace;
}

.participant-item .participant-name {
    flex: 1;
}

.btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #eee;
    background: #fafafa;
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.12s;
}

.btn-icon-sm:hover {
    color: #e74c3c;
    border-color: #f5b8b0;
    background: #fef0f0;
}

.participants-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== 버튼 ===== */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 6px;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    background: none;
    color: #888;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 16px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.btn-back-link:hover {
    background: #f0f0f5;
    color: #555;
}

.btn-primary {
    background: linear-gradient(135deg, #6a7fc4 0%, #9560b8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(106, 127, 196, 0.35);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(106, 127, 196, 0.5);
}

.create-btn-area {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.create-btn-area .btn-primary {
    min-width: 200px;
    justify-content: center;
}

/* ===== 메인 그리드 ===== */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 내 일정 목록 ===== */
.my-polls-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-polls-login-hint,
.my-polls-empty {
    text-align: center;
    color: #bbb;
    font-size: 0.85rem;
    padding: 24px 0;
}

.my-poll-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fafbff;
    border-radius: 8px;
    border: 1px solid #eef0fb;
    transition: background 0.12s;
}

.my-poll-item:hover {
    background: #f5f6ff;
}

.my-poll-info {
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.my-poll-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-poll-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.72rem;
}

.my-poll-mode {
    color: #888;
    padding: 1px 6px;
    background: #eef0fb;
    border-radius: 4px;
}

.my-poll-status {
    padding: 1px 6px;
    border-radius: 4px;
}

.my-poll-status.status-open {
    color: #4a8a78;
    background: #e0f5ec;
}

.my-poll-status.status-confirmed {
    color: #8a4a78;
    background: #f5e0ec;
}

.my-poll-actions {
    display: flex;
    gap: 4px;
}

.my-poll-delete {
    border: none;
    background: none;
    color: #bbb;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.12s;
}

.my-poll-delete:hover { color: #e74c3c; }

/* ===== 응답 화면 ===== */
.respond-panel-wrap {
    max-width: 700px;
    margin: 0 auto;
}

.respond-header {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.title-row h1 {
    margin: 0;
}

.respond-title {
    font-size: 1.3rem;
    text-align: left;
    color: #444;
    margin: 0;
}

.respond-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    white-space: pre-wrap;
}

.respond-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.8rem;
}

.respond-creator {
    color: #888;
}

.respond-mode-badge {
    padding: 2px 10px;
    background: #eef0fb;
    color: #5b73c4;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.respond-deadline-badge {
    padding: 2px 10px;
    background: #fff5e6;
    color: #c98a4a;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.respond-deadline-badge.passed {
    background: #ffeae6;
    color: #c94a4a;
}

.name-entry-panel,
.respond-panel {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.name-entry-message {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 16px;
    text-align: center;
}

.name-entry-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.responder-info {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.responder-info-label {
    font-size: 0.78rem;
    color: #888;
}

.responder-name {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

.anon-name-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.anon-name-label {
    font-size: 0.8rem;
    color: #666;
}

.respond-section-title {
    font-size: 0.95rem;
    color: #555;
    margin: 16px 0 12px;
}

/* 후보 옵션 행 */
.candidate-option-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.candidate-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fafbff;
    border: 1px solid #eef0fb;
    border-radius: 10px;
    flex-wrap: wrap;
}

.candidate-option-info {
    flex: 1;
    min-width: 0;
}

.candidate-option-date {
    font-size: 0.92rem;
    font-weight: 600;
    color: #444;
}

.candidate-option-label {
    font-size: 0.82rem;
    color: #777;
    margin-top: 2px;
}

.answer-toggle-group {
    display: inline-flex;
    gap: 4px;
}

.answer-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #999;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.15s;
    font-weight: 600;
}

.answer-toggle:hover {
    border-color: #b0b8d6;
}

.answer-icon {
    font-size: 1rem;
    font-weight: 700;
}

.answer-toggle.answer-yes.active {
    background: linear-gradient(135deg, #98d3b8 0%, #b8e5cd 100%);
    color: white;
    border-color: #98d3b8;
}

.answer-toggle.answer-maybe.active {
    background: linear-gradient(135deg, #f0d68a 0%, #f5e0ad 100%);
    color: #6b5520;
    border-color: #f0d68a;
}

.answer-toggle.answer-no.active {
    background: linear-gradient(135deg, #f5b8b0 0%, #f5cfca 100%);
    color: white;
    border-color: #f5b8b0;
}

.respond-submit-area {
    text-align: center;
    margin-top: 8px;
}

.respond-submit-area .btn-primary {
    min-width: 180px;
    justify-content: center;
}

/* ===== 관리 화면 ===== */
.manage-header {
    margin-bottom: 16px;
}

.manage-title {
    text-align: left;
    font-size: 1.4rem;
    color: #444;
    margin: 0;
}

.manage-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 6px;
    white-space: pre-wrap;
}

.panel {
    background: white;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 16px;
}

.panel-title-sm {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

.share-url-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.share-url-row .text-input {
    flex: 1;
    font-family: monospace;
    font-size: 0.82rem;
}

.share-url-row .btn {
    flex-shrink: 0;
    padding: 6px 14px;
}

.btn-secondary {
    background: #f0f0f5;
    color: #666;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.btn-secondary:hover {
    background: #e5e5ee;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 참여자 URL 목록 */
.participant-urls-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.participant-urls-head .panel-title-sm {
    margin-bottom: 0;
}

.participant-urls-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.participant-url-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fafbff;
    border-radius: 8px;
    border: 1px solid #eef0fb;
    flex-wrap: wrap;
}

.participant-url-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    flex-shrink: 0;
}

.participant-url-text {
    flex: 1;
    min-width: 220px;
    font-family: monospace;
    font-size: 0.78rem;
    background: white;
    color: #555;
    padding: 6px 10px;
}

.participant-url-copy {
    flex-shrink: 0;
}

.participant-url-status {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.participant-url-status.responded {
    color: #4a8a78;
    background: #e0f5ec;
}

.participant-url-status.pending {
    color: #c98a4a;
    background: #fff5e6;
}

.participant-urls-empty {
    text-align: center;
    color: #bbb;
    padding: 16px 0;
    font-size: 0.85rem;
}

.participant-urls-toggle {
    align-self: center;
    padding: 6px 14px;
    background: none;
    border: none;
    color: #6a7fc4;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 6px;
    margin-top: 4px;
}

.participant-urls-toggle:hover {
    background: #f0f0ff;
    color: #4a5fa0;
}

.participant-urls-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* 참여자 추가 모달 */
.add-participants-modal {
    background: white;
    border-radius: 14px;
    padding: 24px;
    max-width: 460px;
    width: 90vw;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.add-participants-modal-title {
    font-size: 1.1rem;
    color: #444;
    margin: 0 0 8px;
}

.add-participants-modal-desc {
    font-size: 0.85rem;
    color: #777;
    margin: 0 0 14px;
}

.add-participants-modal textarea {
    width: 100%;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.add-participants-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.add-participants-modal-actions .btn {
    min-width: 110px;
    justify-content: center;
}

/* 응답 현황 표 */
.matrix-wrap {
    overflow-x: auto;
    margin: 0 -8px;
    padding: 0 8px;
}

.response-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 400px;
}

.response-matrix th,
.response-matrix td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #eef0fb;
}

.response-matrix th {
    background: #fafbff;
    font-weight: 600;
    color: #555;
    vertical-align: top;
}

.response-matrix th.confirmed,
.response-matrix td.matrix-tally-confirmed {
    background: linear-gradient(135deg, #8a6ca0 0%, #6a7fc4 100%) !important;
    color: white !important;
    border-color: #5b4c7c !important;
}

/* 두 셀 사이 경계는 hidden으로 강제 제거(border-collapse 충돌 회피) */
.response-matrix th.confirmed {
    border-bottom-style: hidden !important;
    box-shadow:
        inset 0 2px 0 #5b4c7c,
        inset 2px 0 0 #5b4c7c,
        inset -2px 0 0 #5b4c7c;
}

.response-matrix td.matrix-tally-confirmed {
    border-top-style: hidden !important;
    box-shadow:
        inset 0 -2px 0 #5b4c7c,
        inset 2px 0 0 #5b4c7c,
        inset -2px 0 0 #5b4c7c;
}

.response-matrix td.matrix-tally-confirmed .tally-yes,
.response-matrix td.matrix-tally-confirmed .tally-no,
.response-matrix td.matrix-tally-confirmed .matrix-confirm-radio {
    color: white !important;
}

.response-matrix td.matrix-tally-confirmed .matrix-confirm-radio input {
    accent-color: white;
}

.matrix-name-col {
    text-align: left;
    font-weight: 600;
    color: #444;
    background: #fafbff;
    position: sticky;
    left: 0;
    z-index: 1;
}

.matrix-cand-date {
    font-size: 0.85rem;
    font-weight: 600;
}

.matrix-cand-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
    font-weight: 400;
}

.response-matrix th.confirmed .matrix-cand-label {
    color: rgba(255,255,255,0.85);
}

.matrix-confirm-radio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.72rem;
    margin-top: 4px;
    cursor: pointer;
    font-weight: 500;
    color: #6a7fc4;
}

.matrix-confirm-radio input {
    accent-color: #6a7fc4;
    cursor: pointer;
}

.matrix-tally-confirmed {
    background: linear-gradient(135deg, #e8e0f2 0%, #d8defa 100%) !important;
}

.matrix-tally-confirmed .matrix-confirm-radio {
    color: #5b4c7c;
    font-weight: 700;
}

/* 사용자가 라디오를 선택한 후보 — 깜빡이는 외곽선으로 시각 표시 */
@keyframes pickedPulse {
    0%, 100% {
        box-shadow: inset 0 0 0 2px #6a7fc4;
        background-color: #eef0ff;
    }
    50% {
        box-shadow: inset 0 0 0 2px #c8a6d4;
        background-color: #f7eff8;
    }
}

.response-matrix th.picked,
.response-matrix td.picked {
    animation: pickedPulse 1.2s ease-in-out infinite;
    position: relative;
}

.matrix-cell {
    font-weight: 700;
    font-size: 1rem;
}

.matrix-cell-yes {
    background: #f0faf5;
    color: #4a8a78;
}

.matrix-cell-maybe {
    background: #fdf6e3;
    color: #8a6b20;
}

.matrix-cell-no {
    background: #fbebe8;
    color: #c94a4a;
}

.matrix-cell-none {
    color: #ccc;
}

.matrix-no-response .matrix-name-col {
    color: #aaa;
}

.no-response-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: #fff5e6;
    color: #c98a4a;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.matrix-total-row td {
    background: #f5f6ff;
    font-weight: 600;
    border-bottom: 2px solid #d0d6f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.matrix-tally {
    font-size: 0.78rem;
    line-height: 1.4;
}

.tally-counts {
    display: flex;
    justify-content: center;
    gap: 24px;
    white-space: nowrap;
}

.tally-yes { color: #4a8a78; font-weight: 700; }
.tally-no { color: #c94a4a; font-weight: 700; }

/* 확정 박스 */
.confirm-box.confirmed {
    border: 2px solid #c8a6d4;
}

.confirm-btn-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.confirm-btn-row .btn {
    min-width: 140px;
    justify-content: center;
}

/* ===== 확정 결과 화면 ===== */
.result-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 32px;
}

.result-confirmed-badge {
    display: inline-block;
    padding: 4px 14px;
    background: linear-gradient(135deg, #98d3b8 0%, #b8e5cd 100%);
    color: white;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.result-title {
    font-size: 1.6rem;
    color: #444;
    margin-bottom: 8px;
    text-align: center;
}

.result-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 6px;
    white-space: pre-wrap;
}

.result-creator {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 20px;
}

.result-date-box {
    padding: 20px;
    background: linear-gradient(135deg, #f5f6ff 0%, #fbf3fa 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.result-date {
    font-size: 1.4rem;
    font-weight: 700;
    color: #5b4c7c;
}

.result-label {
    font-size: 1rem;
    color: #7a6b9c;
    margin-top: 6px;
}

.result-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    text-align: left;
    padding: 10px 14px;
    background: #fafbff;
    border-radius: 8px;
    margin-bottom: 8px;
}

.result-row-label {
    flex-shrink: 0;
    width: 60px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
}

.result-row-value {
    flex: 1;
    font-size: 0.9rem;
    color: #444;
    white-space: pre-wrap;
    word-break: break-word;
}

.result-row-value a,
.respond-desc a,
.manage-desc a,
.result-desc a {
    color: #5b73c4;
    text-decoration: underline;
    word-break: break-all;
}

.result-row-value a:hover,
.respond-desc a:hover,
.manage-desc a:hover,
.result-desc a:hover {
    color: #8a4a78;
}

/* 일시 확정 시 장소/공지 입력 유도 모달 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.confirm-info-modal {
    background: white;
    border-radius: 14px;
    padding: 24px;
    max-width: 460px;
    width: 90vw;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.confirm-info-modal-title {
    font-size: 1.1rem;
    color: #444;
    margin: 0 0 8px;
}

.confirm-info-modal-desc {
    font-size: 0.88rem;
    color: #777;
    margin: 0 0 16px;
}

.confirm-info-modal-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.confirm-info-modal-fields label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #666;
    margin-top: 6px;
}

.confirm-info-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.confirm-info-modal-actions .btn {
    min-width: 130px;
    justify-content: center;
}

.result-note .result-row-value {
    line-height: 1.6;
}

.result-actions {
    margin-top: 24px;
}

/* ===== 토스트 ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s;
    z-index: 99999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #98d3b8 0%, #4a8a78 100%);
}

.toast.warning {
    background: linear-gradient(135deg, #f5b8b0 0%, #c98a4a 100%);
}

/* ===== 반응형 ===== */
@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .form-label {
        text-align: left;
        line-height: 1.4;
    }
    .form-label-group {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .form-label-group .form-label {
        margin-top: 0;
    }
    .candidate-item .candidate-date {
        flex: 0 0 130px;
    }
    .candidate-option {
        flex-direction: column;
        align-items: flex-start;
    }
    .answer-toggle-group {
        width: 100%;
        justify-content: space-between;
    }
    .answer-toggle {
        flex: 1;
        justify-content: center;
    }
    .matrix-cand-label {
        font-size: 0.7rem;
    }
}
