
        .secure-tool-page .p-secure-tool .size-result-text { font-weight: bold; color: #2c3e50; font-size: 0.95rem; margin-left: 10px; }

        /* 追加ボタンカラー (PDF) */
        .secure-tool-page .p-secure-tool .btn-tool-pdf { background-color: #f0f8ff; border-color: #3498db; color: #3498db; }
        .secure-tool-page .p-secure-tool .btn-tool-pdf:hover { background-color: #e1f0fa; border-color: #2980b9; color: #2980b9; }

        .secure-tool-page .p-secure-tool .settings-section { border-bottom: 1px dashed #ddd; padding-bottom: 15px; margin-bottom: 10px; }
        .secure-tool-page .p-secure-tool .settings-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
        .secure-tool-page .p-secure-tool .section-title { font-size: 0.85rem; color: #95a5a6; font-weight: bold; margin-bottom: 10px; display: block; }
        .secure-tool-page .p-secure-tool .mode-switch { display: flex; gap: 15px; margin-bottom: 10px; font-size: 0.95rem; }
        .secure-tool-page .p-secure-tool .mode-switch label { cursor: pointer; display: flex; align-items: center; gap: 5px; font-weight: bold; color: #34495e; }
        .secure-tool-page .p-secure-tool .range-value { font-size: 0.95rem; font-weight: bold; color: #3498db; width: 50px; text-align: right; display: inline-block; }
        .secure-tool-page .p-secure-tool input[type="checkbox"] { transform: scale(1.1); cursor: pointer; margin: 0; }
        .secure-tool-page .p-secure-tool .checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; font-weight: bold; color: #555; }
        .secure-tool-page .p-secure-tool .notice-text { font-size: 0.8rem; color: #e67e22; font-weight: bold; margin-top: 8px; background: #fdf2e9; padding: 8px 12px; border-radius: 4px; display: inline-block; }

        /* Grid & Cards */
        .secure-tool-page #page-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
        .secure-tool-page .p-secure-tool .page-card {
            background: white; border: 1px solid #ddd; border-radius: 8px;
            overflow: hidden; position: relative; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            transition: transform 0.2s; user-select: none;
        }
        .secure-tool-page .p-secure-tool .sortable-ghost { opacity: 0.4; background-color: #ecf0f1; border: 2px dashed #bdc3c7; }
        .secure-tool-page .p-secure-tool .page-card.deleted .card-body, .secure-tool-page .p-secure-tool .page-card.deleted .card-header { opacity: 0.4; filter: grayscale(100%); }
        .secure-tool-page .p-secure-tool .page-card.deleted::after {
            content: "除外"; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.7); color: white; padding: 4px 12px; border-radius: 15px; font-size: 0.9rem; pointer-events: none; z-index: 10;
        }
        .secure-tool-page .p-secure-tool .card-header { background: #f8f9fa; padding: 8px; display: flex; align-items: center; border-bottom: 1px solid #eee; }
        .secure-tool-page .p-secure-tool .grip-handle { cursor: move; color: #aaa; margin-right: 8px; font-size: 1.2rem; line-height: 1; }
        .secure-tool-page .p-secure-tool .grip-handle:hover { color: #555; }
        .secure-tool-page .p-secure-tool .page-info { flex-grow: 1; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
        .secure-tool-page .p-secure-tool .file-name { font-size: 0.8rem; font-weight: bold; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
        
        /* Size Badge */
        .secure-tool-page .p-secure-tool .card-size-badge {
            display: inline-block; background-color: #e8f6f3; color: #16a085;
            font-size: 0.7rem; font-weight: bold; padding: 3px 6px; border-radius: 4px;
            white-space: normal; line-height: 1.3; align-self: flex-start; word-break: break-all;
        }
        .secure-tool-page .p-secure-tool .card-size-badge.skipped { background-color: #f2f4f4; color: #7f8c8d; }
        .secure-tool-page .p-secure-tool .card-size-badge.increased { background-color: #fdedec; color: #c0392b; }

        .secure-tool-page .p-secure-tool .card-body { height: 200px; display: flex; align-items: center; justify-content: center; background: #eee; position: relative; cursor: move; overflow: hidden; }
        .secure-tool-page .p-secure-tool .card-body img { max-width: 100%; max-height: 100%; box-shadow: 0 0 5px rgba(0,0,0,0.1); transition: transform 0.3s; }
        .secure-tool-page .p-secure-tool .card-actions { display: flex; justify-content: space-around; padding: 8px 4px; background: white; border-top: 1px solid #eee; }
        .secure-tool-page .p-secure-tool .icon-btn { background: none; border: 1px solid transparent; font-size: 1.1rem; color: #7f8c8d; cursor: pointer; padding: 6px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
        .secure-tool-page .p-secure-tool .icon-btn:hover { background-color: #ecf0f1; color: #2c3e50; border-color: #ddd; }
        .secure-tool-page .p-secure-tool .icon-btn.delete-btn { width: auto; font-size: 0.9rem; padding: 6px 10px; }
        .secure-tool-page .p-secure-tool .page-card.deleted .icon-btn.delete-btn { color: #2980b9; background-color: #eaf2f8; border-color: #a9cce3; font-weight: bold; }
        .secure-tool-page .p-secure-tool .page-card:not(.deleted) .icon-btn.delete-btn:hover { color: #c0392b; background-color: #fdedec; border-color: #fadbd8; }

        /* Article Area */
        .secure-tool-page .article-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; }
        .secure-tool-page .article-section h2 { font-size: 1.6rem; color: #333; margin-bottom: 25px; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; }
        .secure-tool-page .article-section h3 { font-size: 1.3rem; color: #0056b3; margin-top: 40px; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
        .secure-tool-page .article-section h3::before { content: "#"; color: #007acc; font-family: var(--font-code, monospace); }
        .secure-tool-page .article-section p { margin-bottom: 1.5em; text-align: justify; line-height: 1.8; color: #444; }
        .secure-tool-page .article-section ul { margin-bottom: 1.5em; padding-left: 20px; color: #444; }
        .secure-tool-page .article-section li { margin-bottom: 0.5em; }
        .secure-tool-page .faq-item { margin-bottom: 20px; background: #f9f9f9; padding: 20px; border-radius: 8px; }
        .secure-tool-page .faq-q { font-weight: bold; color: #0056b3; margin-bottom: 10px; display: block; }
        .secure-tool-page .faq-a { font-size: 0.95rem; }
        .secure-tool-page .alert-box { background: #fff3cd; padding: 20px; border-radius: 6px; border: 1px solid #ffeeba; margin: 30px 0; color: #856404; font-size: 0.9rem; }

        /* 追加: ルーペ（部分拡大）用のスタイル */
        .secure-tool-page #preview-image-container { position: relative; display: flex; justify-content: center; align-items: center; cursor: crosshair; max-width: 90vw; max-height: 80vh; }
        .secure-tool-page #modal-image { max-width: 100%; max-height: 100%; box-shadow: 0 0 20px rgba(0,0,0,0.8); background: white; display: block; }
        .secure-tool-page #loupe { position: absolute; pointer-events: none; overflow: hidden; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 15px rgba(0,0,0,0.7); display: none; width: 250px; height: 250px; z-index: 2005; background: white; }
        .secure-tool-page #loupe-image { position: absolute; top: 0; left: 0; transform-origin: top left; max-width: none; max-height: none; box-shadow: none; }
    
/* Keep the settings and actions inside the shared shell at narrow widths. */
.secure-tool-page .p-secure-tool-toolbar{flex-direction:column;align-items:stretch}.secure-tool-page .p-secure-tool-settings{min-width:0;max-width:100%;box-sizing:border-box}.secure-tool-page .setting-item{min-width:0;max-width:100%}.secure-tool-page .setting-item select{max-width:100%;box-sizing:border-box}
