#sc-wrap {
    font-family: sans-serif;
    max-width: 700px;
    margin: 0 auto;
}
#sc-wrap .sc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 16px;
}
.sc-lead {
    margin: 0 0 16px;
    color: #555;
    font-size: 14px;
}
.sc-input-row {
    display: flex;
    gap: 8px;
}
#sc-url {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border .2s;
    box-sizing: border-box;
}
#sc-url:focus { border-color: #4a90e2; }

#sc-btn {
    padding: 12px 24px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
#sc-btn:hover { background: #2c6dc2; }
#sc-btn:disabled { background: #aaa; cursor: not-allowed; }

/* プログレス */
#sc-progress { display: none; margin-top: 24px; }

.sc-prog-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
#sc-prog-status { font-weight: 600; }
#sc-prog-count { font-size: 14px; font-weight: 700; color: #4a90e2; }

.sc-prog-track {
    height: 14px;
    background: #e8e8e8;
    border-radius: 99px;
    overflow: hidden;
}
#sc-prog-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4a90e2, #7ec8ff);
    border-radius: 99px;
    transition: width .5s ease;
}

.sc-prog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 4px;
}
#sc-prog-speed {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
    min-width: 100px;
}
#sc-prog-eta {
    font-size: 12px;
    color: #888;
}

/* エラー */
#sc-error {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: #fff0f0;
    border-left: 4px solid #d00;
    border-radius: 6px;
    color: #c00;
    font-size: 14px;
}

/* 結果 */
#sc-result { display: none; }
.sc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.sc-page-count { font-size: 26px; font-weight: 700; color: #222; }
.sc-page-count span { font-size: 14px; color: #888; font-weight: 400; margin-left: 4px; }
.sc-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.sc-dl-btn {
    padding: 10px 20px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
.sc-dl-btn:hover { background: #1e8449; }
.sc-copy-btn { background: #555; }
.sc-copy-btn:hover { background: #333; }

.sc-xml-area summary {
    cursor: pointer;
    font-size: 13px;
    color: #4a90e2;
    font-weight: 600;
    padding: 4px 0;
}
#sc-xml-ta {
    width: 100%;
    height: 220px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 11px;
    font-family: monospace;
    box-sizing: border-box;
    background: #fafafa;
    resize: vertical;
    margin-top: 8px;
}
