.agent001-settings-wrap {
    max-width: 1100px;
}

.agent001-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    padding: 4px 24px 16px;
    margin: 0 0 16px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
}

.agent001-card h2 {
    margin: 16px 0 4px;
    padding: 0 0 12px;
    border-bottom: 1px solid #f0f0f1;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.agent001-card .form-table {
    margin-top: 4px;
}

.agent001-card .form-table th {
    width: 200px;
    padding: 14px 10px 14px 0;
    font-weight: 500;
    color: #50575e;
}

.agent001-card .form-table td {
    padding: 14px 10px;
}

.agent001-settings-wrap .notice.inline {
    margin: 12px 0;
}

.agent001-hero {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 40px 24px;
    margin: 24px 0;
    text-align: center;
    max-width: 720px;
}

form:has(.agent001-hero) p.submit {
    display: none;
}

.agent001-hero h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.agent001-hero-lead {
    max-width: 480px;
    margin: 0 auto 24px;
    color: #50575e;
    line-height: 1.6;
}

.agent001-hero-error {
    color: #b32d2e;
    max-width: 480px;
    margin: 0 auto;
}

.agent001-hero .button-hero {
    margin: 8px 0;
}

.agent001-status {
    font-size: 14px;
    line-height: 1;
    margin-right: 4px;
}

.agent001-status-ok {
    color: #008a20;
}

.agent001-status-fail {
    color: #b32d2e;
}

.agent001-status-site {
    margin-left: 6px;
    background: #f0f0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.agent001-agent-select {
    min-width: 280px;
    max-width: 100%;
}

.agent001-inline-error {
    color: #b32d2e;
    margin: 0 0 8px;
}

.agent001-cat-list {
    max-height: 280px;
    overflow: auto;
    border: 1px solid #c3c4c7;
    background: #fff;
    padding: 6px 12px;
    max-width: 520px;
    border-radius: 3px;
}

.agent001-cat-row {
    display: block;
    padding: 3px 0 3px 4px;
    line-height: 1.5;
}

.agent001-cat-row[data-depth="1"] { padding-left: 24px; }
.agent001-cat-row[data-depth="2"] { padding-left: 44px; }
.agent001-cat-row[data-depth="3"] { padding-left: 64px; }
.agent001-cat-row[data-depth="4"] { padding-left: 84px; }
.agent001-cat-row[data-depth="5"] { padding-left: 104px; }

.agent001-cat-master {
    border-bottom: 1px solid #ddd;
    margin-bottom: 4px;
    padding-bottom: 6px;
}

.agent001-sync-progress {
    margin-top: 12px;
    padding: 12px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 3px;
}

.agent001-sync-progress[hidden] {
    display: none;
}

.agent001-sync-label {
    font-weight: 600;
    margin: 0 0 8px 0;
}

.agent001-progress-track {
    background: #e0e0e0;
    border-radius: 3px;
    height: 18px;
    overflow: hidden;
    margin: 8px 0;
    position: relative;
}

.agent001-progress-bar {
    background: #2271b1;
    height: 100%;
    transition: width 0.35s ease;
    min-width: 0;
}

.agent001-sync-progress[data-phase="done"] .agent001-progress-bar {
    background: #00a32a;
}

.agent001-sync-progress[data-phase="error"] .agent001-progress-bar {
    background: #d63638;
}

.agent001-sync-progress[data-phase="reading"] .agent001-progress-bar,
.agent001-sync-progress[data-phase="queued"] .agent001-progress-bar,
.agent001-sync-progress[data-phase="posting"] .agent001-progress-bar {
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: agent001-progress-stripes 1s linear infinite;
}

@keyframes agent001-progress-stripes {
    from { background-position: 0 0; }
    to   { background-position: 20px 0; }
}

.agent001-sync-counter {
    margin: 8px 0 0 0;
    color: #50575e;
    font-size: 13px;
}

.agent001-sync-result[hidden] {
    display: none;
}

.agent001-sync-result .notice {
    margin: 8px 0 0 0;
}
