/* ============================================
   MODAL.CSS - Consolidated Modal Styles
   All modal-related CSS from style.css and header-style.css
   ============================================ */

/* ============================================
   Section 1: Common Animations
   ============================================ */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Section 2: Common Overlay Base
   All overlays share fixed positioning and flex centering.
   Display/opacity/visibility differ per overlay type.
   ============================================ */

/* Shared positioning and centering */
.save-modal-overlay,
.upgrade-modal-overlay,
.team-modal-overlay,
.console-modal-overlay,
.contact-modal-overlay,
.contact-form-modal-overlay,
.memo-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
}

/* diary-modal-overlay, folder-modal-overlay → GgModal로 전환 완료 (Phase 3) */

.upgrade-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    z-index: var(--z-modal-nested);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.upgrade-modal-overlay.show,
.upgrade-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.team-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.team-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Display none/flex pattern overlays --- */

.save-modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: var(--z-modal);
}

.save-modal-overlay.active {
    display: flex;
}

.console-modal-overlay {
    display: none;
    z-index: var(--z-modal);
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
}

.console-modal-overlay.active {
    display: flex;
}

.memo-image-overlay {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-critical);
    padding: 20px;
}

.memo-image-overlay.active {
    display: flex;
}

/* --- Contact overlays (no toggle pattern, rendered on demand) --- */

.contact-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
}

.contact-form-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    z-index: var(--z-modal);
    backdrop-filter: blur(4px);
}

/* --- Capacity info modal (opacity/visibility + internal overlay) --- */

.capacity-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal-nested);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.capacity-info-modal.show {
    opacity: 1;
    visibility: visible;
}

/* --- Save location modal (rendered on demand, internal overlay) --- */

.save-location-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal-nested);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Contact detail / analysis / reply modals (rendered on demand) --- */

.contact-detail-modal,
.analysis-modal,
.reply-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-nested);
}

/* --- Image lightbox overlay --- */

.image-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: var(--z-lightbox);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.image-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ============================================
   Section 3: Common Modal Elements
   ============================================ */

/* --- .modal-close (shared by team-modal, contact modals, console-square) --- */

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.modal-close:hover {
    background: var(--border-color);
}

/* --- .modal-header (shared by contact modals) --- */

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
    font-weight: var(--fw-sb);
    color: var(--text-primary);
}

/* --- .modal-body (shared by contact modals) --- */

.modal-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* --- .modal-footer (shared by contact modals) --- */

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* --- .modal-icon (contact page success icon) --- */

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: var(--fs-xxxl)
}

.modal-icon.success {
    background: rgba(79, 209, 197, 0.15);
    color: var(--accent-green);
}

/* --- .modal-input / .modal-textarea (project page shared inputs) --- */

.modal-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pj-border-default, var(--g-border-default, #D9D6CC));
    border-radius: 8px;
    font-size: var(--fs-sm);
    color: var(--pj-text-primary, var(--g-text-primary, #333));
    background: var(--pj-card-bg, var(--g-card-bg, #fff));
    box-sizing: border-box;
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: var(--pj-accent, var(--g-accent, #8BA86E));
    box-shadow: 0 0 0 2px rgba(139, 168, 110, 0.15);
}

.modal-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pj-border-default);
    border-radius: 8px;
    font-size: var(--fs-sm);
    color: var(--pj-text-primary);
    background: var(--pj-card-bg);
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.modal-textarea:focus {
    outline: none;
    border-color: var(--pj-accent);
}


/* Section 4: Diary Modal → GgModal로 전환 완료 (Phase 3) */


/* ============================================
   Section 5: Memo Paper Modal
   ============================================ */

.memo-paper-modal {
    width: 90%;
    max-width: 540px;
    min-height: 400px;
    padding: 0;
    border-radius: 4px;
    background: var(--memo-yellow);
    box-shadow:
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 0 60px rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.memo-color-bar {
    display: flex;
    gap: 8px;
    padding: 16px 20px 12px;
    justify-content: center;
}

.memo-color-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.memo-color-btn:hover {
    transform: scale(1.1);
}

.memo-color-btn.selected {
    border-color: rgba(0,0,0,0.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.memo-paper-title {
    width: 100%;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: var(--fw-sb);
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.memo-paper-title::placeholder {
    color: rgba(0,0,0,0.35);
}

.memo-paper-content {
    flex: 1;
    width: 100%;
    min-height: 180px;
    padding: 8px 20px 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    resize: none;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.memo-paper-content::placeholder {
    color: rgba(0,0,0,0.3);
}

.memo-paper-image-area {
    padding: 0 20px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.memo-image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.memo-image-preview .memo-preview-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
}

.memo-image-preview .memo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memo-image-preview .memo-preview-item .remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.8);
    color: white;
    border: none;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.memo-add-image-btn {
    padding: 8px 12px;
    background: rgba(0,0,0,0.08);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.memo-add-image-btn:hover {
    background: rgba(0,0,0,0.12);
}

.memo-thumbnail-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 16px;
    font-size: 13px;
    color: #555;
}

.memo-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.memo-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.memo-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(0,0,0,0.15);
    border-radius: 22px;
    transition: 0.3s;
}

.memo-toggle-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.memo-toggle input:checked + .memo-toggle-slider {
    background: var(--accent-dark-green);
}

.memo-toggle input:checked + .memo-toggle-slider::before {
    transform: translateX(18px);
}

.memo-paper-btns {
    display: flex;
    gap: 10px;
    padding: 12px 20px 20px;
    justify-content: flex-end;
    border-top: 1px dashed rgba(0,0,0,0.1);
    margin-top: auto;
}

.memo-paper-btns button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: var(--fw-sb);
    cursor: pointer;
    font-size: var(--fs-md);
}

.memo-paper-btns .btn-cancel {
    background: rgba(0,0,0,0.1);
    color: #555;
}

.memo-paper-btns .btn-confirm {
    background: rgba(0,0,0,0.7);
    color: white;
}

.memo-paper-btns .btn-confirm:hover {
    background: rgba(0,0,0,0.8);
}


/* ============================================
   Section 6: Memo Image Overlay
   ============================================ */

.memo-image-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.memo-image-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.memo-image-overlay-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.memo-preview-item img {
    cursor: pointer;
}

/* Memo edit page */
.memo-paper-edit {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    min-height: calc(100vh - 180px);
    padding: 0;
    border-radius: 4px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.15),
        inset 0 0 60px rgba(255,255,255,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.memo-paper-edit .memo-color-bar {
    padding: 20px 24px 16px;
}

.memo-paper-edit .memo-paper-title {
    padding: 16px 24px;
    font-weight: var(--fs-xl)
}

.memo-paper-edit .memo-paper-content {
    flex: 1;
    min-height: 300px;
    padding: 12px 24px 20px;
    font-size: 16px;
}

.memo-paper-edit .memo-paper-image-area {
    padding: 0 24px 16px;
}

.memo-paper-edit .memo-thumbnail-option {
    padding: 12px 24px 20px;
}

.memo-paper-edit .memo-paper-btns {
    padding: 16px 24px 24px;
}

.memo-paper-edit .memo-paper-btns .btn-confirm {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .memo-paper-modal {
        max-width: 360px;
    }

    .memo-paper-edit {
        max-width: 100%;
        border-radius: 0;
        min-height: calc(100vh - 140px);
    }
}


/* Section 7: Folder Modal → GgModal로 전환 완료 (Phase 3)
   .folder-modal, .folder-modal-btns 삭제됨 */

/* Folder select list (move modal - 여전히 사용 중) */
.folder-select-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.folder-select-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.folder-select-item:hover {
    background: var(--light-grey);
}

.folder-select-item.sub {
    padding-left: 34px;
}

.folder-select-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-dark-green);
}

.btn-create-folder-inline {
    width: 100%;
    padding: 14px;
    border: 2px dashed var(--border-color);
    background: none;
    border-radius: 10px;
    color: var(--accent-dark-green);
    font-weight: var(--fw-sb);
    cursor: pointer;
    margin-top: 10px;
}

.btn-create-folder-inline:hover {
    background: var(--light-grey);
}

/* Share modal desc */
.share-modal-desc {
    color: var(--text-muted);
    font-size: var(--fs-md);
    margin-bottom: 20px;
    line-height: 1.5;
}


/* ============================================
   Section 8: Upgrade Modal
   ============================================ */

.upgrade-modal {
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.upgrade-modal-overlay.show .upgrade-modal,
.upgrade-modal-overlay.active .upgrade-modal {
    transform: scale(1);
}

.upgrade-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upgrade-modal h2 {
    font-weight: var(--fs-xl)
    margin: 0 0 12px;
}

.upgrade-modal p {
    font-size: var(--fs-md);
    color: var(--text-muted);
    margin: 0 0 24px;
}

.upgrade-modal-actions {
    display: flex;
    gap: 12px;
}

.upgrade-modal-actions a,
.upgrade-modal-actions button {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: var(--fs-md);
    font-weight: var(--fw-sb);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.upgrade-modal .btn-cancel {
    background: #f3f4f6;
    color: var(--text-color);
    border: none;
}

.upgrade-modal .btn-upgrade {
    background: var(--accent-dark-green);
    color: white;
    border: none;
}


/* ============================================
   Section 9: Save Modal
   (Deduplicated: exists in both style.css and header-style.css)
   Using style.css version with var(--fs-md) for input font-size,
   and header-style.css .btn-save selector.
   ============================================ */

.save-modal {
    width: 100%;
    max-width: 480px;
    background: var(--g-card-bg);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px soild var(--green-border-soft);
}

.save-modal h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: var(--accent-dark-green);
}

.save-modal input {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--light-grey);
    font-size: var(--fs-md);
    margin-bottom: 15px;
    box-sizing: border-box;
}

.save-modal-btns {
    display: flex;
    gap: 10px;
}

.save-modal-btns button {
    flex: 1;
    padding: 13px 16px;
    border: none;
    border-radius: 6px;
    font-size: var(--fs-md);
    font-weight: var(--fw-sb);
    cursor: pointer;
    transition: all 0.2s;
}

.save-modal-btns .btn-cancel {
    background: var(--light-grey);
    color: #666;
}

.save-modal-btns .btn-confirm,
.save-modal-btns .btn-save {
    background: var(--accent-dark-green);
    color: white;
}

/* Save options */
.save-option {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 2px solid var(--g-border-default, #D9D6CC);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.save-option:hover {
    background: var(--g-inactive-bg, #F4F6F1);
}

.save-option input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--g-accent, #8BA86E);
    flex-shrink: 0;
}

.option-content {
    display: flex;
    gap: 6px;
    align-items: baseline;
}

.option-title {
    font-size: var(--fs-md, 14px);
    font-weight: var(--fw-sb, 600);
}

.option-desc {
    font-size: var(--fs-xs, 11px);
    color: var(--g-text-muted, #888);
}

/* Project list modal override */
.project-list-modal .save-modal {
    max-height: 70vh;
    overflow-y: auto;
}


/* ============================================
   Section 11: Save Location Modal
   (Deduplicated: exists in both files)
   Using style.css version (--g-card-bg)
   ============================================ */

.save-location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.save-location-content {
    position: relative;
    background: var(--g-card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

.save-location-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-grey);
}

.save-location-header h3 {
    flex: 1;
    margin: 0;
    font-size: 18px;
    color: var(--accent-dark-green);
    text-align: center;
}

.save-location-back,
.save-location-close {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-grey);
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-location-back {
    margin-right: auto;
}

.save-location-close {
    margin-left: auto;
}

.save-location-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

.save-location-input {
    margin-bottom: 20px;
}

.save-location-input label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.save-location-input input {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--light-grey);
    font-size: var(--fs-md);
    box-sizing: border-box;
}

.save-location-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-location-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid var(--light-grey);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-location-option:hover {
    border-color: var(--accent-blue);
    background: var(--light-grey);
}

.save-location-option .option-icon {
    font-size: 24px;
    margin-right: 12px;
}

.save-location-option .option-label {
    flex: 1;
    font-size: 15px;
    font-weight: var(--fw-md);
    text-align: left;
}

.save-location-option .option-arrow {
    color: var(--text-muted);
}

.save-location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.save-location-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid var(--light-grey);
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-location-item:hover {
    background: var(--light-grey);
}

.save-location-item.selected {
    border-color: var(--accent-blue);
    background: rgba(74, 144, 164, 0.1);
}

.save-location-item .item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--fs-xl)
    margin-right: 12px;
    background: var(--accent-yellow);
}

.save-location-item.team-item .item-icon {
    background: var(--accent-blue);
    color: white;
    font-weight: var(--fw-bold);
    font-size: 16px;
}

.save-location-item .item-info {
    flex: 1;
}

.save-location-item .item-name {
    font-size: var(--fs-md);
    font-weight: var(--fw-md);
    color: var(--text-main);
}

.save-location-item .item-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.save-location-item .item-check {
    color: var(--accent-blue);
    font-size: 18px;
    display: none;
}

.save-location-item.selected .item-check {
    display: block;
}

.save-location-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.save-location-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.save-location-footer {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--light-grey);
}

.save-location-footer .btn-cancel,
.save-location-footer .btn-confirm {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: var(--fw-sb);
    cursor: pointer;
    font-size: var(--fs-md);
}

.save-location-footer .btn-cancel {
    background: var(--light-grey);
    color: #666;
}

.save-location-footer .btn-confirm {
    background: var(--accent-dark-green);
    color: white;
}

.save-location-footer .btn-confirm:disabled {
    background: var(--light-grey);
    color: var(--text-muted);
    cursor: not-allowed;
}

.save-location-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
}

.save-location-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--light-grey);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.save-location-loading .loading-text {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: var(--fs-md);
}

/* Save modal - upgrade notice (non-logged in) */
.save-upgrade-notice {
    background: linear-gradient(135deg, #f8f4e8 0%, #fff9e6 100%);
    border: 1px solid #e8d9a0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.save-upgrade-notice .notice-icon {
    font-weight: var(--fs-xxxl)
    margin-bottom: 8px;
}

.save-upgrade-notice p {
    margin: 0;
    font-size: var(--fs-md);
    color: var(--text-main);
}


/* ============================================
   Section 12: Capacity Info Modal
   ============================================ */

.capacity-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.capacity-info-content {
    position: relative;
    background: var(--card-bg, #fff);
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.capacity-info-modal.show .capacity-info-content {
    transform: translateY(0);
}

.capacity-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #eee);
}

.capacity-info-title {
    font-size: 16px;
    font-weight: var(--fw-sb);
    color: var(--text-primary, #333);
}

.capacity-info-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted, #999);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.capacity-info-close:hover {
    color: var(--text-primary, #333);
}

.capacity-info-body {
    padding: 20px;
}

.capacity-info-current {
    font-size: 18px;
    text-align: center;
    padding: 12px;
    background: var(--light-grey, #f5f5f5);
    border-radius: 12px;
    margin-bottom: 16px;
}

.capacity-info-current.exceeded {
    background: #FFEBEE;
    color: #C62828;
}

.capacity-info-current strong {
    font-size: 24px;
}

.capacity-info-desc {
    font-size: var(--fs-md);
    line-height: 1.6;
    color: var(--text-secondary, #666);
}

.capacity-info-desc p {
    margin: 0 0 12px 0;
}

.capacity-info-desc ul {
    margin: 0;
    padding-left: 20px;
}

.capacity-info-desc li {
    margin-bottom: 8px;
}

.capacity-info-desc li strong {
    color: var(--text-primary, #333);
}

.capacity-info-warning {
    background: #FFF3E0;
    color: #E65100;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 13px;
}

.capacity-info-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color, #eee);
    display: flex;
    justify-content: center;
}

.capacity-info-btn {
    background: var(--accent-dark-green, #8BA86E);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 12px;
    font-size: var(--fs-md);
    font-weight: var(--fw-sb);
    cursor: pointer;
    transition: all 0.2s;
}

.capacity-info-btn:hover {
    background: var(--accent-dark-green-hover, #7A9860);
}


/* ============================================
   Section 13: Link Modal Content (from header-style.css)
   ============================================ */

.link-modal-content {
    overflow-y: auto;
    scrollbar-width: none;
}

.link-modal-content::-webkit-scrollbar {
    display: none;
}

/* ============================================
   Section 14: History Modal Content (from header-style.css)
   ============================================ */

.history-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--light-grey);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.history-item:hover {
    background: var(--border-color);
}

.history-item.current {
    border: 2px solid var(--accent-blue);
}

.history-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-item-version {
    font-size: 14px;
    font-weight: 600;
}

.history-item-date {
    font-size: 12px;
    color: var(--text-muted);
}

.history-item-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--g-accent, #8BA86E);
    color: #fff;
    font-weight: var(--fw-sb, 600);
}


/* ============================================
   Section 15: Recommendedlist Detail Modal
   ============================================ */

.recommendedlist-page .tag-chip,
.recommendedlist-detail-modal .tag-chip,
#tagsDisplay .tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--g-inactive-bg);
    border: 1px solid var(--g-border-light);
    border-radius: 20px;
    font-size: var(--fs-xs);
    color: var(--g-text-secondary);
}

.recommendedlist-detail-modal {
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.recommendedlist-detail-modal .detail-carousel {
    position: relative;
    aspect-ratio: 1;
    background: var(--g-section-bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.recommendedlist-detail-modal .carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.recommendedlist-detail-modal .carousel-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.recommendedlist-detail-modal .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.recommendedlist-detail-modal .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g-text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.recommendedlist-detail-modal .carousel-btn.prev {
    left: 0.5rem;
}

.recommendedlist-detail-modal .carousel-btn.next {
    right: 0.5rem;
}

.recommendedlist-detail-modal .carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.recommendedlist-detail-modal .carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.recommendedlist-detail-modal .carousel-dots .dot.active {
    background: var(--g-accent);
}

.recommendedlist-detail-modal .detail-carousel.no-image-fallback {
    aspect-ratio: auto;
    background: var(--g-inactive-bg, #f5f5f5);
    border: 1px dashed var(--g-border-default, #D9D6CC);
}

.recommendedlist-detail-modal .no-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
    color: var(--g-icon-inactive, #bbb);
}

.recommendedlist-detail-modal .no-image svg {
    opacity: 0.5;
}

.recommendedlist-detail-modal .no-image span {
    font-size: var(--fs-sm, 13px);
    color: var(--g-text-muted, #999);
}

.recommendedlist-detail-modal .detail-content h3 {
    font-size: 1.125rem;
    font-weight: var(--fw-bold);
    margin-bottom: 0.5rem;
    color: var(--g-text-primary);
}

.recommendedlist-detail-modal .detail-rating {
    margin-bottom: 0.5rem;
}

.recommendedlist-detail-modal .detail-rating .star {
    font-size: 1rem;
    color: var(--g-icon-inactive);
}

.recommendedlist-detail-modal .detail-rating .star.filled {
    color: var(--g-star-active);
}

.recommendedlist-detail-modal .detail-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.recommendedlist-detail-modal .detail-price {
    font-size: 1.25rem;
    font-weight: var(--fw-bold);
    color: var(--g-accent-dark);
    margin-bottom: 0.75rem;
}

.recommendedlist-detail-modal .detail-description {
    color: var(--g-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: var(--fs-md);
}

.recommendedlist-detail-modal .detail-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--g-accent);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--fw-md);
    transition: background 0.2s;
}

.recommendedlist-detail-modal .detail-link:hover {
    background: var(--g-accent-dark);
}

@media (min-width: 768px) {
    .recommendedlist-detail-modal {
        max-width: 500px;
    }
}


/* ============================================
   Section 16: Team Modal
   ============================================ */

.team-modal {
    background: #fff;
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.team-modal-overlay.active .team-modal {
    transform: scale(1);
}

.team-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.team-modal-header h3 {
    font-size: 18px;
    font-weight: var(--fw-sb);
    color: var(--text-dark);
    margin: 0;
}

.team-modal-body {
    padding: 25px;
}

.team-modal-body .form-group {
    margin-bottom: 20px;
}

.team-modal-body .form-group:last-child {
    margin-bottom: 0;
}

.team-modal-body label {
    display: block;
    font-size: 13px;
    font-weight: var(--fw-md);
    color: var(--text-dark);
    margin-bottom: 8px;
}

.team-modal-body input[type="text"],
.team-modal-body textarea,
.team-modal-body select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: var(--fs-md);
    transition: border-color 0.2s;
}

.team-modal-body input[type="text"]:focus,
.team-modal-body textarea:focus,
.team-modal-body select:focus {
    outline: none;
    border-color: var(--accent-dark-green);
}

.team-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 25px 25px;
}



/* ============================================
   Section 18: Travelplaner Detail Modal
   ============================================ */

.travelplaner-page .detail-modal,
body:has(.travelplaner-page) .detail-modal {
    max-width: 450px;
}

body:has(.travelplaner-page) .detail-modal h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: #4A7C59;
}

.travelplaner-page .modal-c1,
body:has(.travelplaner-page) .detail-modal .modal-c1 {
    margin-bottom: 20px;
}

.travelplaner-page .modal-c1 > label,
body:has(.travelplaner-page) .detail-modal .modal-c1 > label {
    font-size: 12px;
    color: #555;
}

.travelplaner-page .modal-c1 textarea,
body:has(.travelplaner-page) .detail-modal .modal-c1 textarea {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
}

.travelplaner-page .modal-c1 textarea:focus,
body:has(.travelplaner-page) .detail-modal .modal-c1 textarea:focus {
    border-color: #4A7C59;
}


.travelplaner-page .rating-stars,
body:has(.travelplaner-page) .detail-modal .rating-stars {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px 0;
    touch-action: none;
}

.travelplaner-page .rating-stars .star,
body:has(.travelplaner-page) .detail-modal .rating-stars .star {
    font-weight: var(--fs-xl);
    color: #E0E0E0;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.travelplaner-page .rating-stars .star:hover,
body:has(.travelplaner-page) .detail-modal .rating-stars .star:hover {
    transform: scale(1.15);
}

.travelplaner-page .rating-stars .star.active,
body:has(.travelplaner-page) .detail-modal .rating-stars .star.active {
    color: #FFB800;
}

.travelplaner-page .rating-stars .star.half,
body:has(.travelplaner-page) .detail-modal .rating-stars .star.half {
    background: linear-gradient(90deg, #FFB800 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.travelplaner-page .rating-stars .rating-value,
body:has(.travelplaner-page) .detail-modal .rating-stars .rating-value {
    margin-left: 6px;
    font-size: var(--fs-sm, 13px);
    color: var(--g-text-muted, #999);
    min-width: 24px;
}

/* 태그 입력 영역 */
.travelplaner-page #detailTagsField,
body:has(.travelplaner-page) .detail-modal #detailTagsField {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.travelplaner-page .detail-tags-container,
body:has(.travelplaner-page) .detail-modal .detail-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 0;
}

.travelplaner-page .detail-tags-container:not(:empty),
body:has(.travelplaner-page) .detail-modal .detail-tags-container:not(:empty) {
    margin-bottom: 8px;
}

.travelplaner-page .tag-chip,
body:has(.travelplaner-page) .detail-modal .tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #EDF3E8;
    color: #4A7C59;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 500;
}

.travelplaner-page .tag-chip .tag-remove,
body:has(.travelplaner-page) .detail-modal .tag-chip .tag-remove {
    width: 16px;
    height: 16px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: #4A7C59;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

.travelplaner-page .tag-chip .tag-remove:hover,
body:has(.travelplaner-page) .detail-modal .tag-chip .tag-remove:hover {
    background: rgba(0, 0, 0, 0.3);
}

.travelplaner-page .detail-tags-input-wrap,
body:has(.travelplaner-page) .detail-modal .detail-tags-input-wrap {
    display: flex;
    gap: 6px;
}

.travelplaner-page .detail-tags-input-wrap input,
body:has(.travelplaner-page) .detail-modal .detail-tags-input-wrap input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #D9D6CC;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #FFFFFF;
    transition: border-color 0.2s;
}

.travelplaner-page .detail-tags-input-wrap input:focus,
body:has(.travelplaner-page) .detail-modal .detail-tags-input-wrap input:focus {
    outline: none;
    border-color: #4A7C59;
}

/* 이미지 첨부 영역 */
.travelplaner-page #detailImagesField,
body:has(.travelplaner-page) .detail-modal #detailImagesField {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.travelplaner-page #detailImagesField label,
body:has(.travelplaner-page) .detail-modal #detailImagesField label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: var(--fw-sb);
    color: #666;
    margin-bottom: 8px;
}

.travelplaner-page #detailImagesField .image-count,
body:has(.travelplaner-page) .detail-modal #detailImagesField .image-count {
    font-size: 0.7rem;
    color: #999;
    font-weight: normal;
}

.travelplaner-page .detail-images-grid,
body:has(.travelplaner-page) .detail-modal .detail-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.travelplaner-page .detail-images-grid .no-images,
body:has(.travelplaner-page) .detail-modal .detail-images-grid .no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.8rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.travelplaner-page .image-preview-item,
body:has(.travelplaner-page) .detail-modal .image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.travelplaner-page .image-preview-item img,
body:has(.travelplaner-page) .detail-modal .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.travelplaner-page .image-preview-item:hover img,
body:has(.travelplaner-page) .detail-modal .image-preview-item:hover img {
    transform: scale(1.05);
}

.travelplaner-page .image-preview-item .image-overlay,
body:has(.travelplaner-page) .detail-modal .image-preview-item .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.travelplaner-page .image-preview-item:hover .image-overlay,
body:has(.travelplaner-page) .detail-modal .image-preview-item:hover .image-overlay {
    opacity: 1;
}

.travelplaner-page .image-preview-item .btn-image-action,
body:has(.travelplaner-page) .detail-modal .image-preview-item .btn-image-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.travelplaner-page .image-preview-item .btn-image-action:hover,
body:has(.travelplaner-page) .detail-modal .image-preview-item .btn-image-action:hover {
    background: #fff;
    transform: scale(1.1);
}

.travelplaner-page .image-preview-item .btn-image-action.btn-delete,
body:has(.travelplaner-page) .detail-modal .image-preview-item .btn-image-action.btn-delete {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.travelplaner-page .image-preview-item .btn-image-action.btn-delete:hover,
body:has(.travelplaner-page) .detail-modal .image-preview-item .btn-image-action.btn-delete:hover {
    background: #dc3545;
}

.travelplaner-page .detail-images-actions,
body:has(.travelplaner-page) .detail-modal .detail-images-actions {
    margin-top: 10px;
}

.travelplaner-page .btn-add-image,
body:has(.travelplaner-page) .detail-modal .btn-add-image {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #4A7C59;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.travelplaner-page .btn-add-image:hover,
body:has(.travelplaner-page) .detail-modal .btn-add-image:hover {
    background: #3d6a4a;
}

.travelplaner-page .btn-add-image:disabled,
body:has(.travelplaner-page) .detail-modal .btn-add-image:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Premium feature notice */
.travelplaner-page .premium-feature-notice,
body:has(.travelplaner-page) .detail-modal .premium-feature-notice {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-top: 10px;
}

.travelplaner-page .premium-feature-notice .premium-icon,
body:has(.travelplaner-page) .detail-modal .premium-feature-notice .premium-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.travelplaner-page .premium-feature-notice p,
body:has(.travelplaner-page) .detail-modal .premium-feature-notice p {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 12px 0;
}

.travelplaner-page .premium-feature-notice .btn-upgrade,
body:has(.travelplaner-page) .detail-modal .premium-feature-notice .btn-upgrade {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #B16D42 0%, #8B5433 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--fw-sb);
    transition: transform 0.2s, box-shadow 0.2s;
}

.travelplaner-page .premium-feature-notice .btn-upgrade:hover,
body:has(.travelplaner-page) .detail-modal .premium-feature-notice .btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(177, 109, 66, 0.3);
}

/* 아이콘 선택기 */
.travelplaner-page .detail-icon-field,
body:has(.travelplaner-page) .detail-modal .detail-icon-field {
    margin-bottom: 20px;
}

.travelplaner-page .icon-picker-row,
body:has(.travelplaner-page) .detail-modal .icon-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.travelplaner-page .icon-display,
body:has(.travelplaner-page) .detail-modal .icon-display {
    width: 44px;
    height: 44px;
    border: 2px dashed #D9D6CC;
    border-radius: 10px;
    background: #FAFAF8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: border-color 0.2s, background 0.2s;
}

.travelplaner-page .icon-display:hover,
body:has(.travelplaner-page) .detail-modal .icon-display:hover {
    border-color: #4A7C59;
    background: #F3F6EF;
}

.travelplaner-page .icon-display span.empty,
body:has(.travelplaner-page) .detail-modal .icon-display span.empty {
    color: #ccc;
    font-size: 18px;
}

.travelplaner-page .icon-clear-btn,
body:has(.travelplaner-page) .detail-modal .icon-clear-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    color: #888;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.travelplaner-page .icon-clear-btn:hover,
body:has(.travelplaner-page) .detail-modal .icon-clear-btn:hover {
    background: #e5e5e5;
    color: #555;
}

.travelplaner-page .icon-picker-panel,
body:has(.travelplaner-page) .detail-modal .icon-picker-panel {
    margin-top: 10px;
    padding: 14px;
    background: #FAFAF8;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    max-height: 220px;
    overflow-y: auto;
}

.travelplaner-page .icon-cat-label,
body:has(.travelplaner-page) .detail-modal .icon-cat-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    margin: 8px 0 6px;
}

.travelplaner-page .icon-cat-label:first-child,
body:has(.travelplaner-page) .detail-modal .icon-cat-label:first-child {
    margin-top: 0;
}

.travelplaner-page .icon-grid,
body:has(.travelplaner-page) .detail-modal .icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(36px, 1fr));
    gap: 4px;
}

.travelplaner-page .icon-item,
body:has(.travelplaner-page) .detail-modal .icon-item {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.travelplaner-page .icon-item:hover,
body:has(.travelplaner-page) .detail-modal .icon-item:hover {
    background: #EDF3E8;
}


/* ============================================
   Section 19: Contact Detail Modal
   ============================================ */

.contact-detail-modal .modal-overlay,
.analysis-modal .modal-overlay,
.reply-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.contact-detail-modal .modal-content,
.analysis-modal .modal-content,
.reply-modal .modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: var(--g-card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.25s ease;
}

.analysis-modal .modal-content.wide {
    max-width: 800px;
}

/* Contact detail modal (standalone version - used on contact page) */
.contact-detail-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.contact-detail-modal .modal-header h3 {
    font-size: 18px;
    font-weight: var(--fw-sb);
    color: var(--text-primary);
    margin: 0;
}

.contact-detail-modal .modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
}

.contact-detail-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
}


/* ============================================
   Section 20: Contact Modal (Success)
   ============================================ */

.contact-modal {
    background: var(--g-card-bg);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

.contact-modal h2 {
    font-size: 22px;
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.contact-modal p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.contact-modal .btn-primary {
    padding: 12px 32px;
    font-size: 15px;
}


/* ============================================
   Section 21: Contact Form Modal
   ============================================ */

.contact-form-modal {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--g-card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.25s ease;
}

.contact-form-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-color);
}

.contact-form-modal .modal-header h3 {
    font-size: 18px;
    font-weight: var(--fw-sb);
    color: var(--text-primary);
    margin: 0;
}

.contact-form-modal .modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--input-bg);
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.15s;
}

.contact-form-modal .modal-close:hover {
    background: var(--border-color);
}

.contact-form-modal .modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.contact-form-modal .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.contact-form-modal .btn-secondary {
    padding: 12px 24px;
    background: var(--input-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: var(--fs-md);
    font-weight: var(--fw-md);
    cursor: pointer;
    transition: background 0.15s;
}

.contact-form-modal .btn-secondary:hover {
    background: var(--border-color);
}

@media (max-width: 480px) {
    .contact-form-modal {
        width: 95%;
        max-height: 95vh;
    }

    .contact-form-modal .modal-header,
    .contact-form-modal .modal-body {
        padding: 16px;
    }
}


/* ============================================
   Section 22: Console Modal
   ============================================ */

.console-modal {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.console-modal.console-modal-lg {
    max-width: 700px;
}

.console-modal.console-modal-sm {
    max-width: 400px;
}

/* Legacy support for old structure */
.console-modal-content {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    background: #1a1a2e;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.console-modal-content.wide {
    max-width: 720px;
}

.console-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.console-modal-header h2 {
    font-size: 18px;
    font-weight: var(--fw-sb);
    color: #fff;
    margin: 0;
}

.console-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.console-modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.console-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.console-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Standalone console-modal size classes */
.console-modal-lg {
    max-width: 700px;
}

.console-modal-sm {
    max-width: 400px;
}

/* Console Square - modal close override */
.console-square-page .modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    color: #888;
    font-weight: var(--fs-xl)
    cursor: pointer;
    transition: all 0.2s;
}

.console-square-page .modal-close:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

@media (max-width: 480px) {
    .console-modal {
        padding: 10px;
    }

    .console-modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }

    .console-modal-header,
    .console-modal-body,
    .console-modal-footer {
        padding: 12px 16px;
    }
}


/* ============================================
   Section 23: Emoji Select Modal (weekplan)
   ============================================ */

.icon-select-modal .emoji-picker-cat {
    font-size: var(--fs-sm, 12px);
    font-weight: var(--fw-bold, 600);
    color: var(--g-text-muted, #999);
    margin: 10px 0 4px;
}

.icon-select-modal .emoji-picker-cat:first-child {
    margin-top: 0;
}

.icon-select-modal .emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
}

.icon-select-modal .emoji-picker-item {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.icon-select-modal .emoji-picker-item:hover {
    background: var(--wp-inactive-bg, #F5F5F5);
}

.icon-select-modal .emoji-picker-item.selected {
    background: var(--wp-accent, #8BA86E);
    border-radius: 8px;
}

.icon-select-modal .gg-modal-body {
    max-height: 360px;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .icon-select-modal .emoji-picker-grid {
        grid-template-columns: repeat(8, 1fr);
    }

    .icon-select-modal .emoji-picker-item {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}


/* ============================================
   Section 24: Schedule Detail Modal
   ============================================ */

.schedule-detail-modal .schedule-detail-content {
    margin: 15px 0;
}

.schedule-detail-modal .modal-c1 {
    margin-bottom: 12px;
}

.schedule-detail-modal .modal-c1 > label {
    font-size: var(--fs-sm);
    color: var(--wp-text-secondary);
}

.schedule-detail-modal .detail-time,
.schedule-detail-modal .detail-desc {
    font-size: var(--fs-md);
    color: var(--wp-text-primary);
}

.schedule-detail-modal .btn-edit {
    background: var(--wp-accent);
    color: #fff;
}

.schedule-detail-modal .btn-delete {
    background: #E57373;
    color: #fff;
}


/* ============================================
   Section 25: Start Date Modal (Project)
   ============================================ */

.start-date-modal {
    max-width: 360px;
}

.start-date-modal-content {
    padding: 8px 0;
}

.start-date-modal .modal-desc {
    font-size: var(--fs-xs);
    color: var(--pj-text-muted, var(--g-text-muted, #888));
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.start-date-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--pj-border-light, var(--g-border-light, #E8E5DC));
}

.start-date-row label {
    font-size: var(--fs-sm);
    color: var(--pj-text-secondary, var(--g-text-secondary, #555));
}

.start-date-row .current-date {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--pj-text-primary, var(--g-text-primary, #333));
}

.start-date-row input {
    padding: 6px 10px;
    font-size: var(--fs-sm);
}

.start-date-preview {
    margin-top: 12px;
    min-height: 32px;
}

.start-date-preview .preview-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(139, 168, 110, 0.1);
    border-radius: 6px;
    font-size: var(--fs-sm);
    color: var(--pj-text-secondary, var(--g-text-secondary, #555));
}

.start-date-preview .preview-icon {
    font-size: 16px;
    color: var(--pj-accent, var(--g-accent, #8BA86E));
}

.start-date-preview .preview-text strong {
    color: var(--pj-accent, var(--g-accent, #8BA86E));
}


/* ============================================
   Section 26: PERT Relation Modal (Project)
   ============================================ */

.pert-relation-modal {
    max-width: 420px;
    width: 90%;
}

.pert-rel-section {
    margin-bottom: 16px;
}

.pert-rel-section > label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--pj-text-muted, #888);
    margin-bottom: 8px;
    font-weight: var(--fw-sb);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pert-rel-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 200px;
    overflow-y: auto;
}

.pert-rel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    cursor: pointer;
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--pj-border-light, var(--g-border-light, #E8E5DC));
    border-radius: 4px;
    transition: background 0.15s;
}

.pert-rel-item:hover {
    background: rgba(0,0,0,0.02);
}

.pert-rel-item:last-child {
    border-bottom: none;
}

.pert-rel-item input[type="checkbox"] {
    accent-color: var(--pj-accent, #8BA86E);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pert-rel-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ============================================
   Section 27: Task Detail Modal (Project)
   ============================================ */

.task-detail-modal {
    max-width: 420px;
    width: 90%;
}

.detail-field {
    padding: 8px 0;
}

.detail-field:last-child {
    border-bottom: none;
}

.detail-field label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-sb);
    color: var(--g-text-primary);
}

.detail-value {
    font-size: var(--fs-sm);
    color: var(--pj-text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.cat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-md);
}

.detail-status {
    gap: 4px;
}

.status-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: all 0.2s;
    color: #555;
}

.status-btn.active {
    font-weight: var(--fw-bold);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

.detail-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--pj-border-light);
    border-radius: 3px;
    overflow: hidden;
    max-width: 200px;
}

.detail-progress-bar .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.detail-checklist {
    padding: 8px 0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--pj-text-primary);
}

.check-item.done .check-text {
    text-decoration: line-through;
    color: var(--pj-text-muted);
}

.check-box {
    width: 18px;
    height: 18px;
    border: 2px solid var(--pj-border-default);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--pj-accent);
    flex-shrink: 0;
}

.check-item.done .check-box {
    background: var(--pj-accent);
    border-color: var(--pj-accent);
    color: white;
}

/* 상태 배지 (자동 계산) */
.detail-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-md);
    color: #555;
    margin-left: 6px;
    vertical-align: middle;
}

/* 체크리스트 편집 UI */
.checklist-edit-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.checklist-edit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-edit-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-edit-check input[type="checkbox"] {
    display: none;
}

.checklist-edit-check .check-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--g-icon-inactive);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    background: #fff;
    flex-shrink: 0;
    transition: all 0.15s;
}

.checklist-edit-check input[type="checkbox"]:checked + .check-box {
    background: var(--pj-accent, #8BA86E);
    border-color: var(--pj-accent, #8BA86E);
    color: #fff;
}

.checklist-edit-text {
    flex: 1;
    min-width: 0;
}

.checklist-edit-del {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--pj-text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.checklist-edit-del:hover {
    background: #fee;
    color: #e53;
}

.checklist-edit-add {
    padding: 0 12px;
    border: 1px dashed var(--green-border-soft);
    border-radius: 6px;
    background: none;
    color: var(--g-text-muted);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    height: 36px;
}

.checklist-edit-add:hover {
    border-color: var(--accent-dark-green);
    color: var(--accent-dark-green);
    background: var(--green-bg-soft);
}

.task-detail-modal .modal-c1 input,
.task-detail-modal .modal-c1 select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--green-border-soft, var(--g-border-default, #D9D6CC));
    border-radius: 6px;
    font-size: var(--fs-md);
    font-family: inherit;
    background: var(--green-bg-light, var(--g-card-bg, #fff));
    color: var(--text-color, var(--g-text-primary, #333));
    outline: none;
    transition: all 0.2s;
    margin-bottom: 0;
}

.task-detail-modal .modal-c1 input:focus,
.task-detail-modal .modal-c1 select:focus {
    border-color: var(--pj-accent, var(--g-accent, #8BA86E));
    box-shadow: 0 0 0 2px rgba(139, 168, 110, 0.15);
    outline: none;
}

.task-detail-modal .modal-c1 select {
    cursor: pointer;
}

/* 시작일 + 작업일수 가로 배치 */
.detail-field-row {
    display: flex;
    gap: 10px;
}

.detail-field-half {
    flex: 1;
}

.detail-field-half label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--pj-text-muted, var(--g-text-muted, #888));
}

/* 담당자 멤버 체크박스 */
.detail-members {
    display: flex;
}

.detail-member-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 4px;
    cursor: pointer;
    font-size: var(--fs-sm);
    border-radius: 4px;
    transition: background 0.12s;
    flex: 1;
}

.detail-member-option:hover {
    background: var(--green-bg-soft);
}

.detail-member-option input[type="checkbox"] {
    accent-color: #8BA86E;
    width: 16px;
    height: 16px;
    margin: 0;
}

.detail-members .no-members {
    font-size: var(--fs-xs);
    color: var(--pj-text-muted, var(--g-text-muted, #888));
    padding: 4px 0;
}

/* 선행작업 드롭다운 */
.predecessor-dropdown {
    position: relative;
    width: 100%;
}

.predecessor-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid var(--green-border-soft);
    border-radius: 6px;
    font-size: var(--fs-md);
    font-family: inherit;
    background: var(--green-bg-light);
    color: var(--text-color);
    outline: none;
    transition: all 0.2s;
}

.predecessor-dropdown-toggle:hover {
    border-color: var(--pj-accent, #8BA86E);
}

.predecessor-dropdown-text {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--pj-text, #333);
}

.predecessor-dropdown-text:empty::before,
.predecessor-dropdown-text:only-child:not(:empty) {
    color: var(--pj-text, #333);
}

.predecessor-dropdown-arrow {
    font-size: 12px;
    color: var(--pj-text-muted, #999);
    margin-left: 8px;
    transition: transform 0.2s;
}

.predecessor-dropdown.open .predecessor-dropdown-arrow {
    transform: rotate(180deg);
}

.predecessor-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--pj-bg, #fff);
    border: 1px solid var(--pj-border, #ddd);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: var(--z-dropdown);
    padding: 4px 0;
}

.predecessor-dropdown.open .predecessor-dropdown-menu {
    display: block;
}

.predecessor-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: var(--fs-sm);
    text-align: left;
    transition: background 0.12s;
}

.predecessor-dropdown-item:hover {
    background: var(--pj-bg-light, #F0EDE6);
}

.predecessor-dropdown-item input[type="checkbox"] {
    accent-color: var(--pj-accent, #8BA86E);
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}

.predecessor-dropdown-item span {
    text-align: left;
    line-height: 1.3;
}

.predecessor-dropdown-empty {
    font-size: var(--fs-xs);
    color: var(--pj-text-muted);
    padding: 8px 12px;
    text-align: left;
}


/* ============================================
   Section 28: Category Modal (Project)
   ============================================ */

.category-modal {
    max-width: 360px;
    width: 85%;
}

/* ============================================
   Section 29: Member Assign Modal (Project)
   ============================================ */

.member-assign-modal {
    max-width: 360px;
    width: 85%;
}


/* ============================================
   Section 30: Member Modal (Project)
   ============================================ */

.member-modal {
    max-width: 360px;
    width: 85%;
}

.member-add-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.member-add-row input {
    flex: 1;
    margin-bottom: 0;
}

.member-manage-list {
    margin-top: 12px;
}

.member-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 6px;
    border-bottom: 1px solid var(--g-border-light, #E8E5DC);
    font-size: var(--fs-sm, 13px);
}

.member-manage-item:last-child {
    border-bottom: none;
}

.member-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--g-text-muted, #888);
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.member-remove-btn:hover {
    color: #E53935;
    background: rgba(229, 57, 53, 0.08);
}

.no-members {
    font-size: var(--fs-sm, 13px);
    color: var(--g-text-muted, #888);
    text-align: center;
    padding: 16px 0;
}


/* ============================================
   Section 31: Announcement Modal (Project)
   ============================================ */

.announcement-modal {
    max-width: 400px;
    width: 85%;
}


/* ============================================
   Section 32: Recommendmap Detail Modal
   ============================================ */

.recommendmap-page .detail-modal,
body:has(.recommendmap-page) .detail-modal {
    max-width: 450px;
}

body:has(.recommendmap-page) .detail-modal h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: #4A7C59;
}

.recommendmap-page .modal-c1,
body:has(.recommendmap-page) .detail-modal .modal-c1 {
    margin-bottom: 20px;
}

.recommendmap-page .modal-c1 > label,
body:has(.recommendmap-page) .detail-modal .modal-c1 > label {
    font-size: 12px;
    color: #555;
}

.recommendmap-page .modal-c1 textarea,
body:has(.recommendmap-page) .detail-modal .modal-c1 textarea {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
}

.recommendmap-page .modal-c1 textarea:focus,
body:has(.recommendmap-page) .detail-modal .modal-c1 textarea:focus {
    border-color: #4A7C59;
}

.recommendmap-page .modal-c1 input[type="text"],
body:has(.recommendmap-page) .detail-modal .modal-c1 input[type="text"],
body:has(.recommendmap-page) .category-modal .modal-c1 input[type="text"] {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
}

.recommendmap-page .modal-c1 input[type="text"]:focus,
body:has(.recommendmap-page) .detail-modal .modal-c1 input[type="text"]:focus,
body:has(.recommendmap-page) .category-modal .modal-c1 input[type="text"]:focus {
    border-color: #4A7C59;
}


body:has(.recommendmap-page) .category-modal {
    max-width: 380px;
}

body:has(.recommendmap-page) .category-modal h3 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: var(--fw-bold);
    color: #4A7C59;
}

.recommendmap-page .rating-stars,
body:has(.recommendmap-page) .detail-modal .rating-stars {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 8px 0;
    touch-action: none;
}

.recommendmap-page .rating-stars .star,
body:has(.recommendmap-page) .detail-modal .rating-stars .star {
    font-weight: var(--fs-xl);
    color: #E0E0E0;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.recommendmap-page .rating-stars .star:hover,
body:has(.recommendmap-page) .detail-modal .rating-stars .star:hover {
    transform: scale(1.15);
}

.recommendmap-page .rating-stars .star.active,
body:has(.recommendmap-page) .detail-modal .rating-stars .star.active {
    color: #FFB800;
}

.recommendmap-page .rating-stars .star.half,
body:has(.recommendmap-page) .detail-modal .rating-stars .star.half {
    background: linear-gradient(90deg, #FFB800 50%, #E0E0E0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.recommendmap-page .rating-stars .rating-value,
body:has(.recommendmap-page) .detail-modal .rating-stars .rating-value {
    margin-left: 6px;
    font-size: var(--fs-sm, 13px);
    color: var(--g-text-muted, #999);
    min-width: 24px;
}

.recommendmap-page #detailImagesField,
body:has(.recommendmap-page) .detail-modal #detailImagesField {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.recommendmap-page #detailImagesField label,
body:has(.recommendmap-page) .detail-modal #detailImagesField label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: var(--fw-sb);
    color: #666;
    margin-bottom: 8px;
}

.recommendmap-page #detailImagesField .image-count,
body:has(.recommendmap-page) .detail-modal #detailImagesField .image-count {
    font-size: 0.7rem;
    color: #999;
    font-weight: normal;
}

.recommendmap-page .detail-images-grid,
body:has(.recommendmap-page) .detail-modal .detail-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.recommendmap-page .detail-images-grid .no-images,
body:has(.recommendmap-page) .detail-modal .detail-images-grid .no-images {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.8rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.recommendmap-page .image-preview-item,
body:has(.recommendmap-page) .detail-modal .image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    cursor: pointer;
}

.recommendmap-page .image-preview-item img,
body:has(.recommendmap-page) .detail-modal .image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.recommendmap-page .image-preview-item:hover img,
body:has(.recommendmap-page) .detail-modal .image-preview-item:hover img {
    transform: scale(1.05);
}

.recommendmap-page .image-preview-item .image-overlay,
body:has(.recommendmap-page) .detail-modal .image-preview-item .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.recommendmap-page .image-preview-item:hover .image-overlay,
body:has(.recommendmap-page) .detail-modal .image-preview-item:hover .image-overlay {
    opacity: 1;
}

.recommendmap-page .image-preview-item .btn-image-action,
body:has(.recommendmap-page) .detail-modal .image-preview-item .btn-image-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.recommendmap-page .image-preview-item .btn-image-action:hover,
body:has(.recommendmap-page) .detail-modal .image-preview-item .btn-image-action:hover {
    background: #fff;
    transform: scale(1.1);
}

.recommendmap-page .image-preview-item .btn-image-action.btn-delete,
body:has(.recommendmap-page) .detail-modal .image-preview-item .btn-image-action.btn-delete {
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
}

.recommendmap-page .image-preview-item .btn-image-action.btn-delete:hover,
body:has(.recommendmap-page) .detail-modal .image-preview-item .btn-image-action.btn-delete:hover {
    background: #dc3545;
}

.recommendmap-page .detail-images-actions,
body:has(.recommendmap-page) .detail-modal .detail-images-actions {
    margin-top: 10px;
}

.recommendmap-page .btn-add-image,
body:has(.recommendmap-page) .detail-modal .btn-add-image {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #4A7C59;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.recommendmap-page .btn-add-image:hover,
body:has(.recommendmap-page) .detail-modal .btn-add-image:hover {
    background: #3d6a4a;
}

.recommendmap-page .btn-add-image:disabled,
body:has(.recommendmap-page) .detail-modal .btn-add-image:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.recommendmap-page .premium-feature-notice,
body:has(.recommendmap-page) .detail-modal .premium-feature-notice {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    margin-top: 10px;
}

.recommendmap-page .premium-feature-notice .premium-icon,
body:has(.recommendmap-page) .detail-modal .premium-feature-notice .premium-icon {
    font-weight: var(--fs-xxxl)
    margin-bottom: 8px;
}

.recommendmap-page .premium-feature-notice p,
body:has(.recommendmap-page) .detail-modal .premium-feature-notice p {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 12px 0;
}

.recommendmap-page .premium-feature-notice .btn-upgrade,
body:has(.recommendmap-page) .detail-modal .premium-feature-notice .btn-upgrade {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #B16D42 0%, #8B5433 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--fw-sb);
    transition: transform 0.2s, box-shadow 0.2s;
}

.recommendmap-page .premium-feature-notice .btn-upgrade:hover,
body:has(.recommendmap-page) .detail-modal .premium-feature-notice .btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(177, 109, 66, 0.3);
}


/* ============================================
   Section 33: Whatward Scheduler Detail Modal
   ============================================ */

.whatwardscheduler-detail-modal {
    max-width: 480px;
    width: 90%;
}

/* input-with-unit: 통합 detail-field 내에서 사용 */
.whatwardscheduler-detail-modal .input-with-unit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whatwardscheduler-detail-modal .input-with-unit input {
    flex: 1;
}

.whatwardscheduler-detail-modal .input-with-unit .unit {
    color: var(--g-text-muted);
    font-size: var(--fs-md);
    white-space: nowrap;
}

.whatwardscheduler-detail-modal .modal-images-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 60px;
}

.whatwardscheduler-detail-modal .no-images {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: var(--g-text-muted);
    font-size: var(--fs-md);
    background: var(--g-section-bg);
    border-radius: 8px;
}

.whatwardscheduler-detail-modal .modal-image-item {
    position: relative;
    width: 70px;
    height: 70px;
}

.whatwardscheduler-detail-modal .modal-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.whatwardscheduler-detail-modal .remove-image-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border: none;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    font-size: var(--fs-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatwardscheduler-detail-modal .btn-upload {
    padding: 8px 16px;
    background: var(--g-inactive-bg);
    border: 1px dashed var(--g-border-default);
    border-radius: 6px;
    font-size: var(--fs-md);
    cursor: pointer;
    margin-top: 8px;
}

.whatwardscheduler-detail-modal .btn-upload:hover {
    background: #e8e8e8;
}

.whatwardscheduler-detail-modal .save-modal-btns.three-btns {
    display: flex;
    gap: 10px;
}

.whatwardscheduler-detail-modal .btn-delete {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: var(--fs-md);
}

.whatwardscheduler-detail-modal .btn-delete:hover {
    background: #e03030;
}

@media (max-width: 768px) {
    .whatwardscheduler-detail-modal {
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    /* 16.2: input-with-unit 내 .unit position 오버라이드 */
    .whatwardscheduler-detail-modal .input-with-unit .unit {
        position: static;
        right: auto;
    }

    .whatwardscheduler-detail-modal .input-with-unit {
        flex-wrap: wrap;
    }
}


/* ============================================
   Section 33.5: Whatward Scheduler List Detail Modal (추천리스트 패턴)
   ============================================ */

.whatwardscheduler-list-detail-modal {
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 캐러셀: 추천리스트와 동일 */
.whatwardscheduler-list-detail-modal .detail-carousel {
    position: relative;
    aspect-ratio: 1;
    background: var(--g-section-bg);
    overflow: hidden;
    border-radius: 0;
}

.whatwardscheduler-list-detail-modal .carousel-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.whatwardscheduler-list-detail-modal .carousel-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
}

.whatwardscheduler-list-detail-modal .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.whatwardscheduler-list-detail-modal .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatwardscheduler-list-detail-modal .carousel-btn.prev { left: 0.5rem; }
.whatwardscheduler-list-detail-modal .carousel-btn.next { right: 0.5rem; }

.whatwardscheduler-list-detail-modal .carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.whatwardscheduler-list-detail-modal .carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.whatwardscheduler-list-detail-modal .carousel-dots .dot.active {
    background: var(--g-accent);
}

/* 상세 콘텐츠 */
.whatwardscheduler-list-detail-modal .detail-content {
    padding: 0;
}

.whatwardscheduler-list-detail-modal .detail-info-list {
    margin-bottom: 12px;
}

.whatwardscheduler-list-detail-modal .detail-info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--g-border-light, #f0f0f0);
}

.whatwardscheduler-list-detail-modal .detail-info-label {
    width: 80px;
    color: var(--g-text-muted);
    font-size: var(--fs-sm);
    flex-shrink: 0;
}

.whatwardscheduler-list-detail-modal .detail-info-value {
    flex: 1;
    font-size: var(--fs-md);
    color: var(--g-text-primary);
}

.whatwardscheduler-list-detail-modal .cat-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: var(--fs-sm);
    color: var(--g-text-primary);
}

.whatwardscheduler-list-detail-modal .detail-description {
    color: var(--g-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

@media (min-width: 769px) {
    .whatwardscheduler-list-detail-modal {
        max-width: 500px;
    }
}

/* ============================================
   Section 34: Family Scheduler Modal (.fs-modal → .modal-c1)
   ============================================ */

.fs-modal {
    max-width: 420px;
}

.fs-modal .detail-pin-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.fs-modal .detail-pin-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-md, 14px);
    cursor: pointer;
    margin-bottom: 0;
}

.fs-modal .detail-pin-row input[type="checkbox"],
.fs-modal .member-recurring-label input[type="checkbox"] {
    accent-color: var(--g-accent, #8BA86E);
}

.fs-modal .pin-hint {
    font-size: var(--fs-xs, 11px);
    color: var(--g-text-muted, #888);
}

.fs-modal .member-birthday-row select {
    flex: 1;
}

.fs-modal .member-recurring-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* ============================================
   Section 35: Geocode Modal (from header-style.css)
   ============================================ */

.geocode-modal {
    max-width: 420px;
    width: 90vw;
}

.geocode-modal h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.geocode-field-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.geocode-field-label {
    font-size: 13px;
    color: #666;
    flex-shrink: 0;
}

.geocode-field-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.geocode-field-btn {
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: #fff;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}

.geocode-field-btn:hover {
    border-color: #bbb;
    color: #333;
}

.geocode-field-btn.active {
    background: var(--accent-dark-green, #2d6a4f);
    border-color: var(--accent-dark-green, #2d6a4f);
    color: #fff;
}

.geocode-cost {
    margin: 0 0 12px;
    font-size: 14px;
    color: #666;
}

.geocode-overflow {
    margin: 0 0 10px;
    font-size: 12px;
    color: #e67e22;
}

.geocode-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.geocode-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.geocode-item:last-child {
    border-bottom: none;
}

.geocode-item-num {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-grey, #f0f0f0);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.geocode-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geocode-item-status {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

.geocode-item-status.loading {
    color: #3498db;
}

.geocode-item-status.success {
    color: #27ae60;
    font-weight: 600;
}

.geocode-item-status.fail {
    color: #e74c3c;
    font-size: 11px;
}

.geocode-empty {
    padding: 20px 0;
    text-align: center;
    color: #999;
}

.geocode-empty p {
    margin: 5px 0;
}

.geocode-hint {
    font-size: 12px;
    color: #bbb;
}

.geocode-result {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

.geocode-balance {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.geocode-warning {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #6d5500;
    line-height: 1.5;
}

.geocode-warning p:first-child {
    font-weight: 600;
    margin-bottom: 4px;
}


/* ============================================
   Section 36: Link Modal Sub-components (from header-style.css)
   ============================================ */

.share-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.share-toggle-label {
    font-size: 14px;
    font-weight: 500;
}

.share-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.share-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.share-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-grey);
    transition: 0.3s;
    border-radius: 26px;
}

.share-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.share-toggle input:checked + .share-toggle-slider {
    background-color: var(--accent-dark-green);
}

.share-toggle input:checked + .share-toggle-slider:before {
    transform: translateX(22px);
}

.link-seo-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--light-grey);
}

.link-seo-field {
    margin-bottom: 16px;
}

.link-seo-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.link-seo-field input,
.link-seo-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-grey);
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
    background: var(--card-bg);
}

.link-seo-field textarea {
    resize: vertical;
    min-height: 60px;
}

.link-share-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* Share URL section */
.share-url-section {
    margin-top: 10px;
    display: none;
}

.share-url-section.active {
    display: block;
}

.share-url-input {
    display: flex;
    gap: 8px;
}

.share-url-input input {
    flex: 1;
    margin-bottom: 0;
    font-size: 11px;
    padding: 10px;
}

.share-url-input button {
    background: var(--accent-dark-green);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
}


/* ============================================
   Section 37: Responsive - Save Modal
   ============================================ */

@media (max-width: 768px) {
    .save-modal-overlay {
        padding: 0 20px;
    }

    .save-modal {
        padding: 32px 20px;
    }
}


/* ============================================
   Section 38: Recipe Detail Modal
   ============================================ */

.recipe-page .modal-c1 > label,
body:has(.recipe-page) .detail-modal .modal-c1 > label {
    font-size: 12px;
    color: #555;
}

.recipe-page .modal-c1 input[type="text"],
.recipe-page .modal-c1 input[type="url"],
.recipe-page .modal-c1 input[type="number"],
body:has(.recipe-page) .detail-modal .modal-c1 input[type="text"],
body:has(.recipe-page) .detail-modal .modal-c1 input[type="url"],
body:has(.recipe-page) .detail-modal .modal-c1 input[type="number"] {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
}

.recipe-page .modal-c1 input:focus,
body:has(.recipe-page) .detail-modal .modal-c1 input:focus {
    border-color: var(--rc-accent, #8BA86E);
}

.recipe-page .modal-c1 textarea,
body:has(.recipe-page) .detail-modal .modal-c1 textarea {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.recipe-page .modal-c1 textarea:focus,
body:has(.recipe-page) .detail-modal .modal-c1 textarea:focus {
    border-color: var(--rc-accent, #8BA86E);
}


/* ============================================
   Section 39: Readinglog Modals
   ============================================ */

/* 책 정보 편집 모달 */
body:has(.readinglog-page) .detail-modal {
    max-width: 450px;
}

/* 별점 스와이프 */
body:has(.readinglog-page) .detail-modal .rating-stars {
    display: flex;
    gap: 2px;
    align-items: center;
    padding: 4px 0;
    touch-action: none;
}

body:has(.readinglog-page) .detail-modal .rating-stars .star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 22px;
    color: #DDD;
    cursor: pointer;
    transition: color 0.12s, transform 0.12s;
    border-radius: 50%;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

body:has(.readinglog-page) .detail-modal .rating-stars .star:hover {
    transform: scale(1.15);
}

body:has(.readinglog-page) .detail-modal .rating-stars .star.active {
    color: #FFB800;
}

body:has(.readinglog-page) .detail-modal .rating-stars .star.half {
    background: linear-gradient(90deg, #FFB800 50%, #DDD 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body:has(.readinglog-page) .detail-modal .rating-stars .rating-value {
    margin-left: 6px;
    font-size: var(--fs-sm, 13px);
    color: var(--g-text-muted, #999);
    min-width: 24px;
}


/* ============================================
   Section 37: Project Modal - Mobile Responsive
   ============================================ */

@media (max-width: 480px) {
    /* 시작일 일괄 변경 - date input 너비 */
    .start-date-form .modal-c1 input[type="date"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 작업 편집 - 시작일/작업일수 세로 배치 */
    .task-detail-modal .detail-field-row {
        flex-direction: column;
        gap: 0;
    }

    .task-detail-modal .detail-field-half {
        width: 100%;
    }

    .task-detail-modal .detail-field-half input[type="date"],
    .task-detail-modal .detail-field-half input[type="number"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 카테고리 모달 input 너비 */
    .category-modal .modal-c1 input,
    .category-modal .modal-c1 select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 15.2: 시작일 일괄 변경 - date input min-width 리셋 */
    .start-date-form input[type="date"] {
        min-width: 0;
    }

    /* 15.3: 작업 편집 - date/number input min-width 리셋 */
    .task-detail-modal .detail-field-half input[type="date"],
    .task-detail-modal .detail-field-half input[type="number"] {
        min-width: 0;
    }

    /* 20.4: 지출계획표 - 날짜 input 모바일 */
    .item-detail-modal .detail-field-row input[type="date"] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .item-detail-modal .detail-field-row {
        flex-direction: column;
        gap: 0;
    }
}
