        /* Modal Styles */
        .modal {
            position: fixed;
            z-index: 1001;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.4);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background-color: var(--modal-bg);
            padding: 20px;
            border: 1px solid var(--modal-border);
            border-radius: 8px;
            width: 80%;
            max-width: 400px;
            max-height: 85vh;
            overflow-y: auto;
            text-align: center;
            position: relative;
            animation: fadeIn 0.2s ease;
        }

        .close-btn {
            position: absolute;
            top: 10px;
            right: 15px;
            background: none;
            border: none;
            padding: 0;
            line-height: 1;
            color: var(--modal-close-color);
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        /* Confirmation dialogs: the question, then the two choices */
        .confirm-note {
            margin-top: 12px;
            font-size: 0.95em;
        }

        /* The destructive choice is the trash button's red, one shade darker: white text on
           #ef4444 reaches only ~3:1, which is fine for an icon but not for a word. */
        .choice-btn.danger {
            background-color: #dc2626;
            border-color: #dc2626;
            color: white;
        }

        .choice-btn.danger:hover {
            background-color: #b91c1c;
            border-color: #b91c1c;
        }

        .info-list {
            text-align: left;
            margin-top: 16px;
            line-height: 1.6;
        }

        .info-list dl {
            display: grid;
            grid-template-columns: auto 1fr;
            gap: 2px 10px;
            margin-top: 12px;
        }

        .info-list dt {
            font-weight: bold;
        }

        .info-list h4 {
            margin-top: 16px;
        }

        .info-list kbd {
            background: var(--btn-hover-bg);
            border: 1px solid var(--btn-border);
            border-radius: 4px;
            padding: 0 4px;
            font-size: 0.9em;
        }
