/* ── Social Graph Modal overlay ── */
#twt-aeo-sg-modal-overlay {
position: fixed; top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,.65); z-index: 100000;
padding: 20px; box-sizing: border-box; overflow-y: auto;
}
.twt-aeo-modal {
background: #fff; border-radius: 6px; width: 100%; max-width: 660px;
margin: 40px auto; box-shadow: 0 12px 48px rgba(0,0,0,.35);
display: flex; flex-direction: column;
}
.twt-aeo-modal__header {
display: flex; align-items: center; justify-content: space-between;
padding: 16px 20px; border-bottom: 1px solid #e0e0e0;
position: sticky; top: 0; background: #fff; z-index: 1;
}
.twt-aeo-modal__title {
margin: 0; font-size: 15px; font-weight: 600;
display: flex; align-items: center; gap: 8px;
}
.twt-aeo-modal__close {
background: none; border: none; font-size: 22px; line-height: 1;
cursor: pointer; color: #666; padding: 0 4px;
}
.twt-aeo-modal__close:hover { color: #000; }
.twt-aeo-modal__body { padding: 20px; flex: 1; }
.twt-aeo-modal__footer {
padding: 14px 20px; border-top: 1px solid #e0e0e0;
display: flex; align-items: center; gap: 10px;
background: #f9f9f9; border-radius: 0 0 6px 6px;
position: sticky; bottom: 0;
}
.twt-aeo-modal__field { margin-bottom: 16px; }
.twt-aeo-modal__label {
display: flex; align-items: center; justify-content: space-between;
font-size: 12px; font-weight: 600; text-transform: uppercase;
letter-spacing: .04em; color: #444; margin-bottom: 5px;
}
.twt-aeo-modal__input,
.twt-aeo-modal__textarea,
.twt-aeo-modal__select {
width: 100%; box-sizing: border-box; border: 1px solid #c3c4c7;
border-radius: 3px; padding: 7px 10px; font-size: 13px; line-height: 1.4;
}
.twt-aeo-modal__input:focus,
.twt-aeo-modal__textarea:focus,
.twt-aeo-modal__select:focus {
border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; outline: none;
}
.twt-aeo-modal__hint { display: block; font-size: 11px; color: #888; margin-top: 4px; }
.twt-aeo-modal__char-count { font-weight: normal; font-size: 11px; color: #888; }
.twt-aeo-modal__char-count.is-over { color: #d63638; font-weight: 600; }
.twt-aeo-modal__status { font-size: 12px; }
.twt-aeo-modal__status.is-success { color: #00a32a; }
.twt-aeo-modal__status.is-error   { color: #d63638; }

/* ── Section dividers inside modal ── */
.twt-aeo-modal__section {
margin: 20px 0 0; padding: 14px; border-radius: 4px;
border: 1px solid #e0e0e0; background: #fafafa;
}
.twt-aeo-modal__section-title {
display: flex; align-items: center; gap: 6px;
font-size: 11px; font-weight: 700; text-transform: uppercase;
letter-spacing: .06em; color: #555; margin: 0 0 12px;
}
.twt-aeo-modal__section .twt-aeo-modal__field:last-child { margin-bottom: 0; }

/* ── Image picker ── */
.twt-aeo-og-image-picker { display: flex; gap: 14px; align-items: flex-start; }
.twt-aeo-og-image-picker__thumb {
width: 160px; height: 90px; flex-shrink: 0;
border: 2px dashed #c3c4c7; border-radius: 4px;
cursor: pointer; overflow: hidden;
display: flex; align-items: center; justify-content: center;
background: #f9f9f9;
}
.twt-aeo-og-image-picker__thumb:hover { border-color: #2271b1; }
.twt-aeo-og-image-picker__thumb img { width: 100%; height: 100%; object-fit: cover; }
.twt-aeo-og-image-picker__placeholder {
display: flex; flex-direction: column; align-items: center;
gap: 4px; color: #aaa; font-size: 11px;
}
.twt-aeo-og-image-picker__actions { display: flex; flex-direction: column; gap: 8px; }

/* ── Social card live preview ── */
.twt-aeo-og-preview {
border: 1px solid #e0e0e0; border-radius: 4px;
overflow: hidden; margin-bottom: 16px;
}
.twt-aeo-og-preview__inner { display: flex; }
.twt-aeo-og-preview__image-wrap {
width: 120px; flex-shrink: 0; background: #f0f0f0;
display: flex; align-items: center; justify-content: center; min-height: 80px;
}
.twt-aeo-og-preview__image-wrap img { width: 100%; height: 80px; object-fit: cover; }
.twt-aeo-og-preview__placeholder { color: #bbb; font-size: 24px; }
.twt-aeo-og-preview__text { padding: 10px 12px; flex: 1; }
.twt-aeo-og-preview__site { font-size: 10px; color: #888; text-transform: uppercase; margin-bottom: 3px; }
.twt-aeo-og-preview__title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.twt-aeo-og-preview__desc  { font-size: 11px; color: #555; line-height: 1.4; }

/* ── Buttons ── */
.twt-aeo-btn {
display: inline-flex; align-items: center; gap: 5px;
padding: 6px 12px; border-radius: 3px; font-size: 13px;
cursor: pointer; border: 1px solid transparent; line-height: 1.4;
}
.twt-aeo-btn--primary { background: #2271b1; color: #fff; border-color: #2271b1; }
.twt-aeo-btn--primary:hover { background: #135e96; }
.twt-aeo-btn--ghost { background: #fff; color: #2271b1; border-color: #c3c4c7; }
.twt-aeo-btn--ghost:hover { border-color: #2271b1; }
.twt-aeo-btn--sm { padding: 4px 8px; font-size: 12px; }
.twt-aeo-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Logo badge ── */
.twt-aeo-logo {
display: inline-block; background: #2271b1; color: #fff;
font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px;
}

/* ── Badges ── */
.twt-aeo-badge {
display: inline-block; font-size: 11px; font-weight: 600;
padding: 2px 7px; border-radius: 10px; white-space: nowrap;
}
.twt-aeo-badge--warn { background: #fcf0e3; color: #b35900; }
.twt-aeo-badge--good { background: #edfaef; color: #006505; }
.twt-aeo-badge--auto { background: #f0f0f1; color: #555; }
.twt-aeo-badge--tw   { background: #e7f5ff; color: #0055a5; }
.twt-aeo-og-source-badge--ours { background: #e8f0fe; color: #1a56b0; }
.twt-aeo-tag--missing { display: inline-block; font-size: 11px; color: #d63638; font-weight: 600; }
.twt-aeo-og-type-pill {
display: inline-block; font-size: 11px; font-weight: 600;
padding: 2px 7px; border-radius: 10px; background: #f0f0f1; color: #444;
}

/* ── Table ── */
.twt-aeo-page-table-wrap { overflow-x: auto; }
.twt-aeo-og-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.twt-aeo-og-table th, .twt-aeo-og-table td {
padding: 8px 10px; border-bottom: 1px solid #f0f0f1; vertical-align: middle;
}
.twt-aeo-og-table thead th { background: #f6f7f7; font-size: 12px; font-weight: 600; }
.twt-aeo-og-table thead th:hover { background: #eef0f1; }
.twt-aeo-page-row--issues td:first-child { border-left: 3px solid #d63638; }
.twt-aeo-page-row--ok td:first-child    { border-left: 3px solid #00a32a; }
.twt-aeo-og-field-ok { display: inline-flex; align-items: center; gap: 4px; color: #00a32a; font-size: 12px; }
.twt-aeo-og-field-text { color: #333; }
.twt-aeo-og-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.twt-aeo-link { font-size: 12px; color: #2271b1; }

/* ── Summary cards ── */
.twt-aeo-summary-grid { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.twt-aeo-summary-card {
flex: 1; min-width: 140px; background: #fff;
border: 1px solid #e0e0e0; border-radius: 6px; padding: 16px;
display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.twt-aeo-summary-card__number { font-size: 28px; font-weight: 700; }
.twt-aeo-summary-card__label  { font-size: 12px; color: #666; text-align: center; }
.twt-aeo-summary-card--alert { border-color: #f6b73c; }
.twt-aeo-summary-card--good  { border-color: #00a32a; }

/* ── Notice ── */
.twt-aeo-og-notice {
background: #e8f0fe; border-left: 4px solid #2271b1;
padding: 10px 14px; font-size: 13px; border-radius: 0 3px 3px 0;
margin-bottom: 16px; display: flex; gap: 8px; align-items: flex-start;
}

/* ── Site handle card ── */
.twt-aeo-site-handle-card {
background: #fff; border: 1px solid #e0e0e0; border-radius: 6px;
padding: 16px; margin-bottom: 20px;
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.twt-aeo-site-handle-card__label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.twt-aeo-site-handle-card__input {
border: 1px solid #c3c4c7; border-radius: 3px; padding: 6px 10px;
font-size: 13px; width: 200px;
}
.twt-aeo-site-handle-card__hint { font-size: 12px; color: #666; }
#twt-aeo-site-handle-status { font-size: 12px; }

/* ── Sections ── */
.twt-aeo-section { margin-bottom: 24px; }
.twt-aeo-section__title { font-size: 14px; margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.twt-aeo-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 16px; }
.twt-aeo-card__note { margin-top: 0; color: #555; font-size: 13px; }
.twt-aeo-checklist { margin: 0; padding: 0; list-style: none; }
.twt-aeo-checklist__item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }

/* ── Pagination ── */
.twt-og-pagination { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.twt-og-pagination a, .twt-og-pagination span {
display: inline-block; padding: 5px 10px; border: 1px solid #c3c4c7;
border-radius: 3px; font-size: 13px; text-decoration: none; color: #2271b1;
}
.twt-og-pagination span.current {
background: #2271b1; color: #fff; border-color: #2271b1; font-weight: 600;
}
.twt-og-pagination a:hover { border-color: #2271b1; background: #f0f6fc; }

/* ── Auto-fill chip ── */
.twt-aeo-autofill-chip {
display: inline-flex; align-items: center; gap: 4px;
background: #e8f0fe; color: #1a56b0; border-radius: 10px;
font-size: 11px; padding: 2px 8px; cursor: pointer;
border: 1px solid #c5d9f5; margin-left: 8px;
}
.twt-aeo-autofill-chip:hover { background: #d0e4fc; }
