* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

header {
    background: #16324f;
    color: white;
    padding: 20px 30px;
}

header h1 {
    margin: 0;
    font-size: 28px;
}

header p {
    margin: 6px 0 0;
    color: #dbe7f3;
}

.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 4px;
}

.dashboard-header > div {
    flex-basis: 100%;
}

main {
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.status-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.status-card h2 {
    margin-top: 0;
}

.online {
    color: #15803d;
    font-weight: bold;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
    margin-top: 0;
    color: #16324f;
}

.dashboard-card p {
    min-height: 40px;
    color: #4b5563;
}

.dashboard-card button,
.dashboard-header > button,
#add-website-button {
    background: #16324f;
    color: white;
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
}

.dashboard-card button:hover,
.dashboard-header > button:hover,
#add-website-button:hover {
    background: #244d73;
}

.dashboard-card button + button {
    margin-left: 10px;
}
/* Reuse SAT's disabled treatment for action families without a local rule.
   Quill's toolbar remains styled by its own theme. */
.dashboard-card button:disabled,
.dashboard-header > button:disabled,
#add-website-button:disabled,
#login-form button[type="submit"]:disabled,
#reset-password-form button[type="submit"]:disabled,
#password-reset-form button[type="submit"]:disabled,
#edit-website-form button:disabled,
#add-website-form button:disabled,
#wordpress-connection-form button:disabled,
#add-draft-form button:disabled,
#edit-draft-form button:disabled,
#add-draft-button:disabled,
#add-draft-task-form button:disabled,
#content-editor-form > button:disabled,
#close-draft-tasks-button:disabled,
.draft-task-item button:disabled,
#wordpress-publisher-form button:disabled,
.published-article-review-button:disabled,
.close-published-review-button:disabled,
#add-affiliate-platform-button:disabled,
#add-affiliate-platform-form button:disabled,
#add-affiliate-partner-button:disabled,
#add-affiliate-partner-form button:disabled,
#open-affiliate-catalogue-button:disabled,
#add-affiliate-catalogue-button:disabled,
.published-review-status-tool-button:disabled,
.category-post-count-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.login-view {
  width: 100%;
  max-width: 420px;
  margin: 60px auto;
  padding: 36px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

#login-form,
#reset-password-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#login-form label,
#reset-password-form label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

#login-form input,
#reset-password-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  font-size: 15px;
  box-sizing: border-box;
}

#login-form button[type="submit"],
#reset-password-form button[type="submit"] {
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background: #16324f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#login-form button[type="submit"]:hover,
#reset-password-form button[type="submit"]:hover {
  background: #244d73;
}
.password-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

#login-form input[type="checkbox"],
#reset-password-form input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
}

#password-reset-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#password-reset-form label {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

#password-reset-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #1f2937;
  font-size: 15px;
  box-sizing: border-box;
}

#password-reset-form button[type="submit"] {
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 6px;
  background: #16324f;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

#password-reset-form button[type="submit"]:hover {
  background: #244d73;
}

#password-reset-form .back-to-login {
  margin: 10px 0 0;
}

#password-reset-form #password-reset-message {
  margin: 10px 0 0;
}

#edit-website-form,
#add-website-form,
#wordpress-connection-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}
#edit-website-form[hidden],
#add-website-form[hidden],
#wordpress-connection-form[hidden] {
    display: none;
}


#edit-website-form h3,
#add-website-form h3,
#wordpress-connection-form h3 {
    margin: 0 0 8px;
    color: #16324f;
}

#edit-website-form label,
#add-website-form label,
#wordpress-connection-form label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#edit-website-form input,
#edit-website-form select,
#add-website-form input,
#wordpress-connection-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
}

#edit-website-form button,
#add-website-form button,
#wordpress-connection-form button {
    margin-top: 8px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#edit-website-form button:hover,
#add-website-form button:hover,
#wordpress-connection-form button:hover {
    background: #244d73;
}

.dashboard-header > button {
    background: #ffffff;
    color: #16324f;
    font-weight: 600;
}

.dashboard-header > button:hover {
    background: #dbe7f3;
}

#add-draft-form,
#edit-draft-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

#add-draft-form[hidden],
#edit-draft-form[hidden] {
    display: none;
}

#add-draft-form h3,
#edit-draft-form h3 {
    margin: 0 0 8px;
    color: #16324f;
}

#add-draft-form label,
#edit-draft-form label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#add-draft-form input,
#add-draft-form select,
#edit-draft-form input,
#edit-draft-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
}

#add-draft-form button,
#edit-draft-form button,
#add-draft-button {
    margin-top: 8px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

#add-draft-form button:hover,
#edit-draft-form button:hover,
#add-draft-button:hover {
    background: #244d73;
}

#draft-tasks-panel {
    margin-top: 24px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
}

#draft-tasks-panel[hidden] {
    display: none;
}

#draft-tasks-panel h3,
#draft-tasks-panel h4 {
    margin: 0 0 12px;
    color: #16324f;
}

#draft-tasks-list {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}

.draft-task-item {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.draft-task-item p {
    margin: 8px 0;
    color: #4b5563;
}

.draft-task-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1f2937;
}

.draft-task-check input {
    width: 18px;
    height: 18px;
}

.draft-task-check input:checked + span {
    color: #64748b;
    text-decoration: line-through;
}

#add-draft-task-form,
#content-editor-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#add-draft-task-form label,
#content-editor-form label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#add-draft-task-form input,
#add-draft-task-form textarea,
#content-editor-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

#add-draft-task-form button,
#content-editor-form > button,
#close-draft-tasks-button,
.draft-task-item button {
    margin-top: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#add-draft-task-form button:hover,
#content-editor-form > button:hover,
#close-draft-tasks-button:hover,
.draft-task-item button:hover {
    background: #244d73;
}

.draft-system-task-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 600;
    color: #1f2937;
}

.draft-task-status {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.draft-task-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.draft-task-status.completed {
    background: #dcfce7;
    color: #166534;
}


#content-editor-form[hidden] {
    display: none;
}

#wordpress-drafts-search-form,
#published-search-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    margin: 20px 0;
}

#wordpress-drafts-search-form label,
#published-search-form label {
    grid-column: 1 / -1;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#wordpress-drafts-search-input,
#published-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
}

#wordpress-drafts-search-form button,
#published-search-form button,
#sync-published-button,
#wordpress-drafts-pagination button,
#published-pagination button,
#published-pagination-top button {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#wordpress-drafts-search-form button:hover,
#published-search-form button:hover,
#sync-published-button:hover,
#wordpress-drafts-pagination button:hover,
#published-pagination button:hover,
#published-pagination-top button:hover {
    background: #244d73;
}

#wordpress-drafts-search-form button:disabled,
#published-search-form button:disabled,
#sync-published-button:disabled,
#wordpress-drafts-pagination button:disabled,
#published-pagination button:disabled,
#published-pagination-top button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

#wordpress-drafts-list,
#published-list {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

#wordpress-drafts-pagination,
#published-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

#wordpress-drafts-pagination[hidden],
#published-pagination[hidden] {
    display: none;
}

#published-page-summary {
    font-weight: 600;
    color: #1f2937;
}

#published-pagination-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: -46px 0 14px auto;
}

#published-pagination-top[hidden] {
    display: none;
}

#published-pagination-top button {
    padding: 7px 11px;
    font-size: 13px;
}

#published-page-summary-top {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

@media (max-width: 640px) {
    #published-search-form {
        grid-template-columns: 1fr;
    }

    #published-search-form label {
        grid-column: auto;
    }
}

#analyse-style-button,
#scan-categories-button,
#analyse-categories-button,
#full-analyse-categories-button,
#view-category-analysis-button,
#style-profile-form button {
    margin-top: 12px;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#analyse-style-button:hover,
#scan-categories-button:hover,
#analyse-categories-button:hover,
#full-analyse-categories-button:hover,
#view-category-analysis-button:hover,
#style-profile-form button:hover {
    background: #244d73;
}

#analyse-style-button:disabled,
#scan-categories-button:disabled,
#analyse-categories-button:disabled,
#full-analyse-categories-button:disabled,
#view-category-analysis-button:disabled,
#style-profile-form button:disabled {
    cursor: wait;
    opacity: 0.65;
}

#style-profile-summary {
    margin: 18px 0;
    padding: 12px 16px;
    border-left: 4px solid #16324f;
    background: #eef4f8;
    color: #1f2937;
    font-weight: 600;
}

#style-profile-summary:empty {
    display: none;
}

#style-profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 24px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}

#style-profile-form[hidden] {
    display: none;
}

#style-profile-form h3 {
    margin: 0 0 10px;
    color: #16324f;
}

#style-profile-form label {
    margin-top: 6px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

#style-profile-form input,
#style-profile-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

#style-profile-form textarea {
    resize: vertical;
}

#style-profile-form fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0 4px;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

#style-profile-form legend {
    padding: 0 8px;
    color: #16324f;
    font-weight: 700;
}

.style-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0;
}

.style-metrics p {
    margin: 0;
    padding: 12px;
    border-radius: 6px;
    background: #eef4f8;
}

@media (max-width: 700px) {
    .style-metrics {
        grid-template-columns: 1fr;
    }
}

#content-editor-form {
    margin-top: 20px;
}

#content-editor-form .ql-toolbar {
    border-color: #cbd5e1;
    border-radius: 6px 6px 0 0;
    background: #ffffff;
}

#content-editor-form .ql-container {
    min-height: 420px;
    border-color: #cbd5e1;
    border-radius: 0 0 6px 6px;
    background: #ffffff;
    color: #1f2937;
    font-size: 16px;
}

#content-editor-form .ql-editor {
    min-height: 420px;
    line-height: 1.65;
}

#content-editor-form .ql-editor h1,
#content-editor-form .ql-editor h2,
#content-editor-form .ql-editor h3 {
    color: #16324f;
}

#content-editor-change-summary {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

.content-editor-details {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 2px;
    color: #4b5563;
    font-size: 13px;
}

#content-editor-save-status {
    font-weight: 600;
}

@media (max-width: 700px) {
    .content-editor-details {
        flex-direction: column;
        gap: 4px;
    }

    #content-editor-form .ql-container,
    #content-editor-form .ql-editor {
        min-height: 320px;
    }
}


#content-ai-assistant {
    margin: 0 0 20px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #eef4f8;
}

#content-ai-assistant legend {
    padding: 0 8px;
    color: #16324f;
    font-weight: 700;
}

#content-ai-assistant p {
    margin: 0 0 12px;
    color: #4b5563;
}

#content-ai-assistant label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#content-ai-mode,
#content-ai-instructions {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    resize: vertical;
}

#content-ai-mode {
    margin-bottom: 14px;
}

#generate-ai-content-button {
    margin-top: 12px;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#generate-ai-content-button:hover {
    background: #244d73;
}

#generate-ai-content-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

#content-ai-message {
    margin: 12px 0 0;
}

#seo-assistant-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #eef4f8;
}

#seo-assistant-form[hidden] {
    display: none;
}

#seo-assistant-form h4 {
    margin: 0 0 4px;
    color: #16324f;
}

#seo-assistant-form > p {
    margin: 0 0 8px;
    color: #4b5563;
}

#seo-assistant-form label {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#seo-assistant-form input,
#seo-assistant-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

#seo-assistant-form > button {
    margin-top: 8px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#seo-assistant-form > button:hover {
    background: #244d73;
}

#seo-assistant-form > button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.seo-count {
    margin: -4px 0 4px !important;
    font-size: 13px;
    font-weight: 600;
}

.seo-count.valid {
    color: #166534 !important;
}

.seo-count.invalid {
    color: #92400e !important;
}

#seo-explanation {
    margin-top: 8px;
    padding: 14px;
    border-left: 4px solid #16324f;
    background: #ffffff;
}

#seo-explanation[hidden] {
    display: none;
}

#seo-explanation h5 {
    margin: 0 0 8px;
    color: #16324f;
    font-size: 15px;
}

#seo-explanation p {
    margin: 0;
    color: #4b5563;
}

#faq-generator-assistant {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #eef4f8;
}

#faq-generator-assistant[hidden] {
    display: none;
}

#faq-generator-assistant h4 {
    margin: 0 0 10px;
    color: #16324f;
}

#faq-generator-assistant > p {
    color: #4b5563;
}

.faq-generator-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

#generate-faqs-button,
#generate-faqs-again-button,
#faq-review-form > button {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#generate-faqs-button:hover,
#generate-faqs-again-button:hover,
#faq-review-form > button:hover {
    background: #244d73;
}

#generate-faqs-button:disabled,
#generate-faqs-again-button:disabled,
#faq-review-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.faq-generator-controls button[hidden] {
    display: none;
}

#faq-generator-version {
    margin: 14px 0 0;
    font-weight: 700;
    color: #16324f;
}

#faq-generator-message {
    margin: 8px 0;
}

#faq-review-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

#faq-review-list {
    display: grid;
    flex-basis: 100%;
    width: 100%;
    gap: 16px;
    margin-top: 14px;
}

.faq-review-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.faq-review-item h5 {
    margin: 0 0 4px;
    color: #16324f;
    font-size: 16px;
}

.faq-review-item label {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.faq-review-item input,
.faq-review-item textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

.faq-review-item input:disabled,
.faq-review-item textarea:disabled {
    background: #f8fafc;
    color: #475569;
}

#internal-links-assistant {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #eef4f8;
}

#internal-links-assistant[hidden] {
    display: none;
}

#internal-links-assistant h4 {
    margin: 0 0 10px;
    color: #16324f;
}

#internal-links-assistant > p {
    color: #4b5563;
}

.internal-links-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

#generate-internal-links-button,
#change-internal-link-decisions-button,
#reset-internal-links-button,
#internal-links-review-form > button {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#generate-internal-links-button:hover,
#change-internal-link-decisions-button:hover,
#internal-links-review-form > button:hover {
    background: #244d73;
}

#reset-internal-links-button {
    background: #9f2d2d;
}

#reset-internal-links-button:hover {
    background: #7f1d1d;
}

#generate-internal-links-button:disabled,
#change-internal-link-decisions-button:disabled,
#reset-internal-links-button:disabled,
#internal-links-review-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.internal-links-controls button[hidden] {
    display: none;
}

#internal-links-review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#internal-links-list {
    display: grid;
    gap: 16px;
    margin-top: 14px;
}

.internal-link-suggestion {
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.internal-link-suggestion h5 {
    margin: 0 0 12px;
    color: #16324f;
    font-size: 16px;
}

.internal-link-suggestion p {
    margin: 8px 0;
    color: #4b5563;
}

.internal-link-suggestion blockquote {
    margin: 12px 0;
    padding: 12px 16px;
    border-left: 4px solid #16324f;
    background: #f8fafc;
    color: #1f2937;
}

.internal-link-decision {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.internal-link-decision legend {
    padding: 0 6px;
    color: #16324f;
    font-weight: 700;
}

.internal-link-decision label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #1f2937;
}

.internal-link-decision input {
    width: 18px;
    height: 18px;
}

#editorial-review-assistant {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #eef4f8;
}

#editorial-review-assistant[hidden] {
    display: none;
}

#editorial-review-assistant h4,
#editorial-review-assistant h5 {
    color: #16324f;
}

#editorial-review-assistant h4 {
    margin: 0 0 10px;
}

#editorial-review-readiness {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(190px, 1fr)
    );
    gap: 10px;
    margin: 18px 0;
}

.editorial-readiness {
    margin: 0;
    padding: 12px 14px;
    border-radius: 6px;
}

.editorial-readiness.complete {
    border: 1px solid #86d9a6;
    background: #dcfce7;
    color: #166534;
}

.editorial-readiness.pending {
    border: 1px solid #f2cf73;
    background: #fef3c7;
    color: #92400e;
}

.editorial-review-metadata,
.editorial-review-preview {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.editorial-review-metadata h5,
.editorial-review-preview h5 {
    margin: 0 0 12px;
    font-size: 16px;
}

.editorial-review-metadata p {
    margin: 8px 0;
    color: #4b5563;
}

#editorial-review-content {
    max-height: 520px;
    overflow-y: auto;
    padding: 16px;
    border-left: 4px solid #16324f;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

#editorial-review-content h1,
#editorial-review-content h2,
#editorial-review-content h3,
#editorial-review-content h4 {
    margin: 20px 0 10px;
    color: #16324f;
    line-height: 1.3;
}

#editorial-review-content p {
    margin: 0 0 14px;
}

#editorial-review-content ul,
#editorial-review-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

#editorial-review-content a {
    color: #1d4ed8;
    text-decoration: underline;
}

#editorial-review-content img {
    max-width: 100%;
    height: auto;
}

#editorial-review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#editorial-review-form > label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#editorial-review-notes {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

.editorial-review-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
}

.editorial-review-confirmation input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

#editorial-review-form > button {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#editorial-review-form > button:hover {
    background: #244d73;
}

#editorial-review-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

#editorial-review-message {
    color: #4b5563;
}

#wordpress-publisher-assistant {
    margin: 16px 0;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

#wordpress-publisher-assistant h4 {
    margin: 0 0 12px;
    color: #16324f;
}

#wordpress-publisher-assistant > p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.5;
}

#wordpress-publisher-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#wordpress-publisher-form label {
    font-weight: 600;
    color: #1f2937;
}

#wordpress-publisher-form select,
#wordpress-publisher-form input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
}

#wordpress-schedule-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#wordpress-schedule-fields[hidden] {
    display: none;
}

#wordpress-publisher-form button {
    min-height: 40px;
    padding: 10px 14px;
    border: 0;
    border-radius: 4px;
    background: #16324f;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

#wordpress-publisher-form button:hover {
    background: #204465;
}

#wordpress-publisher-message {
    margin: 0;
    color: #4b5563;
}

#published-list {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.published-articles-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 14px;
}

.published-articles-table th,
.published-articles-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.published-articles-table th {
    background: #16324f;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.published-articles-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.published-articles-table tbody tr:hover {
    background: #edf4fb;
}

.published-article-title {
    min-width: 240px;
    color: #16324f;
    font-weight: 600;
}

.published-article-slug {
    min-width: 180px;
    max-width: 260px;
    overflow-wrap: anywhere;
    color: #64748b;
}

.published-article-date {
    white-space: nowrap;
    color: #475569;
}

.published-article-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.published-article-status.published {
    background: #dcfce7;
    color: #166534;
}

.published-article-status.out_of_sync {
    background: #fef3c7;
    color: #92400e;
}

.published-articles-table .published-article-main-row td {
    border-bottom: 0;
}

.published-articles-table .published-article-seo-row {
    background: #f8fafc;
}

.published-articles-table .published-article-seo-row td {
    padding: 4px 14px 12px;
    border-bottom: 1px solid #dbe4ee;
}

/* One shared row group per article preserves the table's column alignment. */
.published-articles-table:has(> .published-article-card) {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.published-article-card {
    border-radius: 15px;
    --article-card-border: var(--sat-card-border);
    --article-card-background: var(--sat-card-background);
}

.published-article-card::before,
.published-article-card::after {
    content: '';
    display: table-row;
    height: 8px;
}

.published-articles-table .published-article-card > tr {
    background: transparent;
}

.published-articles-table .published-article-card > tr > td {
    background: var(--article-card-background);
    border: 0 solid var(--article-card-border);
}

.published-articles-table .published-article-card > tr > td:first-child { border-left-width: 1px; }
.published-articles-table .published-article-card > tr > td:last-child { border-right-width: 1px; }
.published-articles-table .published-article-card > tr:first-child > td { border-top-width: 1px; }
.published-articles-table .published-article-card > tr:first-child > td:first-child { border-top-left-radius: 15px; }
.published-articles-table .published-article-card > tr:first-child > td:last-child { border-top-right-radius: 15px; }

.published-articles-table .published-article-card > tr:not([hidden]):not(:has(~ tr:not([hidden]))) > td {
    border-bottom-width: 1px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.published-article-card:hover,
.published-article-card:focus-within {
    --article-card-border: var(--sat-card-active-border);
    --article-card-background: var(--sat-card-active-background);
}

.published-article-seo-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.published-article-seo-item strong {
    color: #16324f;
}

.published-article-seo-missing {
    color: #94a3b8;
    font-style: italic;
}

/* Compact inline form actions */

:is(
    #edit-website-form,
    #add-website-form,
    #wordpress-connection-form,
    #add-draft-form,
    #edit-draft-form,
    #add-draft-task-form,
    #content-editor-form,
    #seo-assistant-form,
    #internal-links-review-form,
    #editorial-review-form,
    #wordpress-publisher-form,
    #style-profile-form
) {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
}

:is(
    #edit-website-form,
    #add-website-form,
    #wordpress-connection-form,
    #add-draft-form,
    #edit-draft-form,
    #add-draft-task-form,
    #content-editor-form,
    #seo-assistant-form,
    #internal-links-review-form,
    #editorial-review-form,
    #wordpress-publisher-form,
    #style-profile-form
) > :not(button) {
    flex-basis: 100%;
    width: 100%;
    box-sizing: border-box;
}

:is(
    #edit-website-form,
    #add-website-form,
    #wordpress-connection-form,
    #add-draft-form,
    #edit-draft-form,
    #add-draft-task-form,
    #content-editor-form,
    #seo-assistant-form,
    #internal-links-review-form,
    #editorial-review-form,
    #wordpress-publisher-form,
    #style-profile-form
) > button {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    align-self: flex-end;
    padding: 10px 16px;
}

#add-draft-task-form > button,
#close-draft-tasks-button,
#add-draft-button,
#add-website-button,
#analyse-style-button,
#scan-categories-button,
#analyse-categories-button,
#full-analyse-categories-button,
#view-category-analysis-button,
#sync-published-button {
    width: auto;
    min-width: 0;
    padding: 10px 16px;
}

@media (max-width: 600px) {
    :is(
        #edit-website-form,
        #add-website-form,
        #wordpress-connection-form,
        #add-draft-form,
        #edit-draft-form,
        #add-draft-task-form,
        #content-editor-form,
        #seo-assistant-form,
        #internal-links-review-form,
        #editorial-review-form,
        #wordpress-publisher-form,
        #style-profile-form
    ) > button {
        width: 100%;
        flex-basis: 100%;
    }
}

.published-article-seo-row .published-article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.published-article-seo-row .published-article-actions > button {
    flex: 0 0 auto;
    white-space: nowrap;
}
.published-accuracy-detail-row[hidden] { display: none; }
.published-accuracy-detail-row > td { white-space: normal; }
.published-accuracy-detail-row .accuracy-classification {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
}

.published-article-review-button,
.accuracy-button,
.close-published-review-button {
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background: #16324f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.accuracy-check-finding {
    border: 1px solid #d6e0e8;
    border-radius: 4px;
    padding: 12px;
    margin: 16px 0;
}
.accuracy-check-finding label {
    display: block;
    font-weight: 600;
}
.accuracy-check-finding textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font: inherit;
    font-weight: normal;
}

.published-article-review-button:hover,
.accuracy-button:hover:not(:disabled),
.close-published-review-button:hover {
    background: #204465;
}

.accuracy-button:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 2px;
}
.accuracy-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.accuracy-collections {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.accuracy-collections [aria-pressed="true"] {
    box-shadow: 0 0 0 3px #93c5fd;
}
.accuracy-classification {
    white-space: normal;
    min-width: 230px;
    max-width: 680px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    overflow-wrap: anywhere;
}
.published-article-review-panel > .accuracy-classification {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: none;
}
.accuracy-classification h4, .accuracy-classification p { margin: 0 0 8px; }
.accuracy-classification label { display: block; }
.accuracy-classification textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 8px;
    margin: 6px 0;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    font: inherit;
}
.accuracy-classification textarea:focus-visible { outline: 2px solid #60a5fa; }
.accuracy-classification .accuracy-button { margin: 6px 6px 6px 0; white-space: normal; }
.accuracy-classification summary { cursor: pointer; color: #16324f; font-weight: 600; }
.accuracy-classification summary:focus-visible { outline: 2px solid #60a5fa; }

.published-article-review-row > td {
    padding: 16px;
    background: #eef3f8;
}

.published-article-review-panel {
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.published-article-review-panel h3,
.published-article-review-panel h4 {
    color: #16324f;
}

.published-review-seo-summary {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #f8fafc;
}

.published-review-seo-summary p {
    margin: 6px 0;
    color: #475569;
}

.published-review-overview-summary {
    margin: 16px 0;
    padding: 14px;
    border-left: 4px solid #16324f;
    background: #ffffff;
    color: #16324f;
    font-weight: 700;
}

.published-review-status-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin: 14px 0 22px;
}

.published-review-status-card {
    padding: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

.published-review-status-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.published-review-status-header h5 {
    margin: 0;
    color: #16324f;
    font-size: 15px;
}

.published-review-status-card p {
    margin: 10px 0 0;
    color: #4b5563;
}

.published-review-status-time {
    font-size: 13px;
}

.published-review-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.published-review-status-not_started {
    background: #e5e7eb;
    color: #374151;
}

.published-review-status-in_progress {
    background: #dbeafe;
    color: #1e40af;
}

.published-review-status-ready {
    background: #fef3c7;
    color: #92400e;
}

.published-review-status-complete {
    background: #dcfce7;
    color: #166534;
}

.published-review-status-attention {
    background: #fee2e2;
    color: #991b1b;
}

.published-review-overview > h5 {
    margin: 22px 0 10px;
    color: #16324f;
}

.published-review-history-list {
    margin: 0;
    padding-left: 24px;
}

.published-review-history-list li {
    margin: 8px 0;
    color: #4b5563;
    line-height: 1.45;
}

.published-review-task {
    margin: 16px 0;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #eef4f8;
}

.published-review-task h4 {
    margin: 0 0 10px;
}

.published-review-task > p {
    color: #4b5563;
}

.published-review-task-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 8px;
}

.published-review-task-actions button,
.published-review-task-actions .published-review-live-post-link,
.published-review-faq-form > button {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.published-review-task-actions button:hover,
.published-review-task-actions .published-review-live-post-link:hover,
.published-review-faq-form > button:hover {
    background: #244d73;
    color: #ffffff;
}

.published-review-task-actions button:disabled,
.published-review-faq-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.published-review-task-actions button[hidden] {
    display: none;
}

.published-review-task-version {
    margin: 14px 0 0;
    font-weight: 700;
    color: #16324f;
}

.published-review-task-message {
    margin: 8px 0;
}

.published-review-faq-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.published-review-internal-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.published-review-internal-form[hidden] {
    display: none;
}

.published-review-internal-list {
    display: grid;
    gap: 16px;
}

.published-review-internal-form > button {
    align-self: flex-start;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.published-review-internal-form > button:hover {
    background: #244d73;
}

.published-review-internal-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.published-review-internal-form > button[hidden] {
    display: none;
}

.dashboard-card .published-review-danger-button,
.draft-task-item .published-review-danger-button,
.published-review-task-actions
.published-review-danger-button {
    background: #9f2d2d;
}

.dashboard-card .published-review-danger-button:hover,
.draft-task-item .published-review-danger-button:hover,
.published-review-task-actions
.published-review-danger-button:hover {
    background: #7f1d1d;
}


.published-review-disclaimer-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.published-review-disclaimer-form[hidden] {
    display: none;
}

.published-review-disclaimer-form label {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.published-review-disclaimer-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    line-height: 1.5;
}

.published-review-disclaimer-form textarea:disabled {
    background: #f8fafc;
    color: #475569;
}

.published-review-disclaimer-form > button {
    align-self: flex-start;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.published-review-disclaimer-form > button:hover {
    background: #244d73;
}

.published-review-disclaimer-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.published-review-disclaimer-form > button[hidden] {
    display: none;
}


.published-review-faq-list {
    display: grid;
    flex-basis: 100%;
    width: 100%;
    gap: 16px;
    margin-top: 14px;
}


.published-review-content {
    max-height: 560px;
    margin: 12px 0 16px;
    padding: 18px;
    overflow-y: auto;
    border-left: 4px solid #16324f;
    background: #f8fafc;
    color: #1f2937;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.published-review-content h1,
.published-review-content h2,
.published-review-content h3,
.published-review-content h4 {
    margin: 20px 0 10px;
    color: #16324f;
    line-height: 1.3;
}

.published-review-content p {
    margin: 0 0 14px;
}

.published-review-content ul,
.published-review-content ol {
    margin: 0 0 14px;
    padding-left: 24px;
}

.published-review-content a {
    color: #1d4ed8;
    text-decoration: underline;
}

.published-review-content img {
    max-width: 100%;
    height: auto;
}

.published-review-seo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 8px;
    scroll-margin-top: 20px;
}

.published-review-analyse-seo-button {
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    background: #16324f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.published-review-analyse-seo-button:hover {
    background: #204465;
}

.published-review-analyse-seo-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.published-review-seo-message {
    margin: 8px 0;
    color: #475569;
}

.published-review-seo-results {
    margin: 14px 0 20px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.published-review-seo-results[hidden] {
    display: none;
}

.published-review-seo-results h4,
.published-review-seo-results h5 {
    margin: 0 0 10px;
    color: #16324f;
}

.published-review-seo-results ul {
    margin: 8px 0 16px;
    padding-left: 22px;
    color: #475569;
}

.published-review-seo-suggestion {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 5px;
    background: #ffffff;
    color: #334155;
}

.published-review-seo-suggestion small {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

.published-review-seo-assessment,
.published-review-seo-explanation {
    color: #475569;
    line-height: 1.6;
}

.published-review-seo-edit-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0;
}

.published-review-seo-edit-form label {
    color: #16324f;
    font-weight: 600;
}

.published-review-seo-edit-form input,
.published-review-seo-edit-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    box-sizing: border-box;
}

.published-review-seo-edit-form textarea {
    resize: vertical;
}

.published-review-seo-character-count {
    margin-bottom: 8px;
    color: #64748b;
}

.published-review-seo-character-count.invalid {
    color: #b91c1c;
}

.published-review-seo-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.published-review-reset-seo-button {
    width: auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    background: #16324f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.published-review-reset-seo-button:hover {
    background: #204465;
}

.published-review-apply-seo-button,
.published-review-undo-seo-button {
    width: auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    background: #16324f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.published-review-apply-seo-button:hover,
.published-review-undo-seo-button:hover {
    background: #204465;
}

.published-review-apply-seo-button:disabled,
.published-review-undo-seo-button:disabled,
.published-review-reset-seo-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.published-review-undo-seo-button[hidden] {
    display: none;
}

#affiliate-links-list {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.affiliate-platform-card {
    padding: 18px 20px;
}

.affiliate-platform-card h3 {
    margin: 0;
}

#add-affiliate-platform-button,
#add-affiliate-platform-form button {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

#add-affiliate-platform-button:hover,
#add-affiliate-platform-form button:hover {
    background: #244d73;
}

#add-affiliate-platform-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

#add-affiliate-platform-form[hidden] {
    display: none;
}

#add-affiliate-platform-form h3 {
    margin: 0;
    color: #16324f;
}

#add-affiliate-platform-form label {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

#affiliate-platform-name {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-size: 15px;
}

.affiliate-platform-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#add-affiliate-platform-message:empty {
    display: none;
}

.affiliate-platform-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.affiliate-platform-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.affiliate-platform-actions button + button {
    margin-left: 0;
}

.affiliate-platform-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

#affiliate-partners-list {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.affiliate-partner-card {
    padding: 18px 20px;
}

.affiliate-partner-card h3 {
    margin: 0;
}

#add-affiliate-partner-button,
#add-affiliate-partner-form button {
    width: auto;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

#add-affiliate-partner-button:hover,
#add-affiliate-partner-form button:hover {
    background: #214569;
}

#add-affiliate-partner-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

#add-affiliate-partner-form[hidden] {
    display: none;
}

#add-affiliate-partner-form h3 {
    margin: 0;
}

#add-affiliate-partner-form label {
    font-weight: 600;
}

#affiliate-partner-name {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    box-sizing: border-box;
}

.affiliate-partner-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.affiliate-catalogue-section {
    max-width: none;
}

.affiliate-catalogue-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.affiliate-catalogue-heading h2,
.affiliate-catalogue-heading p {
    margin-top: 0;
}

#open-affiliate-catalogue-button,
#add-affiliate-catalogue-button,
#affiliate-catalogue-form button,
.affiliate-catalogue-row-actions button {
    width: auto;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

#open-affiliate-catalogue-button,
#add-affiliate-catalogue-button,
#affiliate-catalogue-form button {
    padding: 10px 16px;
}

.affiliate-catalogue-row-actions button {
    padding: 6px 10px;
    font-size: 13px;
}

#open-affiliate-catalogue-button:hover,
#add-affiliate-catalogue-button:hover,
#affiliate-catalogue-form button:hover,
.affiliate-catalogue-row-actions button:hover {
    background: #214569;
}

.affiliate-catalogue-filters {
    display: grid;
    grid-template-columns:
        minmax(220px, 2fr)
        repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.affiliate-catalogue-filters label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.affiliate-catalogue-filters input,
.affiliate-catalogue-filters select {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    box-sizing: border-box;
}

.affiliate-catalogue-table-wrap {
    max-height: 65vh;
    overflow: auto;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
}

.affiliate-catalogue-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
    font-size: 14px;
}

.affiliate-catalogue-table th,
.affiliate-catalogue-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.affiliate-catalogue-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #eaf0f6;
    color: #16324f;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.affiliate-catalogue-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.affiliate-catalogue-table tbody tr:hover {
    background: #eef5fb;
}

.affiliate-catalogue-table td:nth-child(1) {
    font-weight: 700;
}

.affiliate-catalogue-table td:nth-child(2) {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.affiliate-catalogue-table td:nth-child(3) {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}

.affiliate-catalogue-table a {
    color: #16324f;
    font-weight: 700;
}

.affiliate-catalogue-status {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.affiliate-catalogue-status.active {
    background: #dcfce7;
    color: #166534;
}

.affiliate-catalogue-status.incomplete {
    background: #e2e8f0;
    color: #475569;
}

.affiliate-catalogue-status.review_required {
    background: #fef3c7;
    color: #92400e;
}

.affiliate-catalogue-status.paused {
    background: #dbeafe;
    color: #1e40af;
}

.affiliate-catalogue-status.retired {
    background: #fee2e2;
    color: #991b1b;
}

.affiliate-catalogue-row-actions {
    display: flex;
    gap: 6px;
}

.affiliate-catalogue-row-actions
.affiliate-catalogue-delete-button {
    background: #b91c1c;
}

.affiliate-catalogue-row-actions
.affiliate-catalogue-delete-button:hover {
    background: #991b1b;
}

.affiliate-catalogue-row-actions button:disabled,
#affiliate-catalogue-form button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

#affiliate-catalogue-form {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px 18px;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

#affiliate-catalogue-form[hidden] {
    display: none;
}

#affiliate-catalogue-form h3,
#affiliate-catalogue-form-actions,
.affiliate-catalogue-form-actions,
#affiliate-catalogue-form-message {
    grid-column: 1 / -1;
}

#affiliate-catalogue-form h3 {
    margin: 0 0 4px;
    color: #16324f;
}

#affiliate-catalogue-form label {
    align-self: center;
    font-weight: 600;
    color: #334155;
}

#affiliate-catalogue-form input,
#affiliate-catalogue-form select,
#affiliate-catalogue-form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    box-sizing: border-box;
}

#affiliate-catalogue-form textarea {
    resize: vertical;
}

.affiliate-catalogue-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

#affiliate-catalogue-form-message {
    margin: 0;
}

@media (max-width: 980px) {
    .affiliate-catalogue-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .affiliate-catalogue-heading {
        flex-direction: column;
    }

    .affiliate-catalogue-filters {
        grid-template-columns: 1fr;
    }

    #affiliate-catalogue-form {
        grid-template-columns: 1fr;
    }
}

.affiliate-catalogue-problems {
    grid-column: 1 / -1;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #f59e0b;
    border-left-width: 5px;
    border-radius: 6px;
    background: #fffbeb;
    color: #78350f;
}

.affiliate-catalogue-problems[hidden] {
    display: none;
}

.affiliate-catalogue-problems h4 {
    margin: 0 0 8px;
    color: #78350f;
}

.affiliate-catalogue-problems ul {
    margin: 0;
    padding-left: 20px;
}

.affiliate-catalogue-problems li {
    margin-bottom: 6px;
    line-height: 1.4;
}

.affiliate-catalogue-problems li:last-child {
    margin-bottom: 0;
}

.affiliate-catalogue-no-problems {
    margin: 0;
    color: #166534;
    font-weight: 600;
}

.published-review-status-tool-button {
    margin-top: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.published-review-status-tool-button:hover {
    background: #244d73;
}

.published-review-status-tool-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.published-review-seo-actions button {
    padding: 9px 14px;
    border: 0;
    border-radius: 4px;
    background: #16324f;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.published-review-seo-actions button:hover {
    background: #204465;
}

.published-review-seo-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* Keep the standard bar visible through panel rebuilds and view transitions. */
#sat-action-progress {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 1000;
    pointer-events: none;
}

/* Published review action progress */
.published-action-progress {
    width: 100%;
    height: 8px;
    margin: 6px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe4ee;
}

.published-action-progress[hidden] {
    display: none;
}

.published-action-progress-bar {
    position: relative;
    left: -35%;
    width: 35%;
    height: 100%;
    border-radius: 999px;
    background: #16324f;
}

.published-action-progress.active
.published-action-progress-bar {
    animation:
        published-action-progress-motion
        1.15s ease-in-out infinite;
}

@keyframes published-action-progress-motion {
    from {
        left: -35%;
    }

    to {
        left: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .published-action-progress.active
    .published-action-progress-bar {
        animation-duration: 2.3s;
    }
}

/* Category Management sticky table header */
.category-management-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Category Management assigned posts */
.category-post-count-button {
    min-width: 34px;
    padding: 4px 9px;
    border: 0;
    border-radius: 6px;
    background: #16324f;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.category-post-count-button:hover {
    background: #244d73;
}

.category-posts-row td {
    padding: 8px 18px 14px 34px;
    background: #f8fafc;
}

.category-posts-list {
    margin: 0;
    padding-left: 20px;
    color: #475569;
}

.category-posts-list li {
    margin: 5px 0;
}

/* Category structure recommendation modification form */

.category-structure-modify-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #f8fafc;
}

.category-structure-modify-field {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(260px, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.category-structure-modify-field label {
    font-weight: 600;
    padding-top: 9px;
}

.category-structure-modify-field input,
.category-structure-modify-field select,
.category-structure-modify-field textarea {
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    padding: 9px 10px;
}

.category-structure-modify-field select[multiple] {
    min-height: 110px;
}

.category-structure-modify-panel > button {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .category-structure-modify-field {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .category-structure-modify-field label {
        padding-top: 0;
    }
}

.category-structure-modify-field[hidden] {
    display: none;
}

.category-structure-affected-categories {
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d9e1ea;
    border-radius: 6px;
    background: #ffffff;
    min-height: 42px;
}

/* Internal / protected category settings */

.category-flag-cell {
    text-align: center;
    vertical-align: middle;
    width: 90px;
}

.category-flag-cell input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.category-flag-cell input[type="checkbox"]:disabled {
    cursor: wait;
}

/* Category structure pre-apply validation */

.category-structure-validation-result {
    margin-top: 10px;
}

.category-structure-validation-result ul {
    margin: 8px 0 0 20px;
}

.category-validation-pass {
    font-weight: 600;
}

.category-validation-block {
    font-weight: 600;
}

.category-validation-suggestion {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #f8fafc;
}

.category-validation-suggestion p {
    margin: 0 0 10px;
}

.published-review-task-actions[hidden] {
    display: none;
}

/* Completed category structure task */

.category-task-complete {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    margin-top: 22px;
    padding: 20px 24px;
    border: 1px solid #2f9e44;
    border-radius: 8px;
    background: #eefaf1;
}

.category-task-complete-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2f9e44;
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
}

.category-task-complete-content strong {
    display: block;
    margin-bottom: 6px;
    color: #14532d;
    font-size: 1.35rem;
}

.category-task-complete-content p {
    margin: 4px 0;
    color: #14532d;
}

.category-task-complete-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
    padding: 10px 14px;
    border-radius: 18px;
    background: #d9f5df;
    color: #14532d;
    text-align: center;
}

.category-task-complete-date strong {
    font-size: 0.95rem;
}

.category-task-complete-date span {
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .category-task-complete {
        grid-template-columns: auto 1fr;
    }

    .category-task-complete-date {
        grid-column: 1 / -1;
        width: fit-content;
        margin-left: 66px;
    }
}

.category-structure-validation-result > button {
    margin-top: 14px;
}

/* Published article review task completion */

.published-review-task-complete {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border: 1px solid #86b894;
    border-radius: 6px;
    background: #f0f8f2;
    color: #285b36;
}

.published-review-task-complete strong {
    flex: 0 0 auto;
    font-weight: 700;
}

.published-review-task-complete span {
    line-height: 1.4;
}

/* Published article category placement modification */

.published-category-modify-panel {
    display: grid;
    grid-template-columns:
        auto minmax(260px, 1fr)
        auto minmax(260px, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

.published-category-modify-panel[hidden] {
    display: none;
}

.published-category-modify-panel label {
    margin: 0;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
}

.published-category-modify-panel select {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

@media (max-width: 850px) {
    .published-category-modify-panel {
        grid-template-columns: 1fr;
    }
}

/* Published review - WordPress category details */

#published-category-details-view .status-card {
    max-width: none;
}

#published-category-details-forms {
    display: grid;
    gap: 22px;
    margin: 24px 0;
}

.published-category-creation-form {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(220px, 1fr)
        minmax(220px, 1fr);
    gap: 10px 20px;
    padding: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
}

.published-category-creation-form h3 {
    grid-column: 1 / -1;
    margin: 0 0 8px;
}

.published-category-creation-form label {
    margin: 0;
    font-weight: 600;
}

.published-category-creation-form input,
.published-category-creation-form textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

.published-category-creation-form textarea {
    grid-column: 1 / -1;
    min-height: 110px;
    resize: vertical;
}

.published-category-creation-form label:nth-of-type(4) {
    grid-column: 1 / -1;
    margin-top: 6px;
}

@media (max-width: 850px) {
    .published-category-creation-form {
        grid-template-columns: 1fr;
    }

    .published-category-creation-form h3,
    .published-category-creation-form textarea,
    .published-category-creation-form label:nth-of-type(4) {
        grid-column: 1;
    }
}

/* WordPress category details field placement */

.published-category-creation-form label:nth-of-type(1) {
    grid-column: 1;
    grid-row: 2;
}

.published-category-creation-form input:nth-of-type(1) {
    grid-column: 1;
    grid-row: 3;
}

.published-category-creation-form label:nth-of-type(2) {
    grid-column: 2;
    grid-row: 2;
}

.published-category-creation-form input:nth-of-type(2) {
    grid-column: 2;
    grid-row: 3;
}

.published-category-creation-form label:nth-of-type(3) {
    grid-column: 3;
    grid-row: 2;
}

.published-category-creation-form input:nth-of-type(3) {
    grid-column: 3;
    grid-row: 3;
}

.published-category-creation-form label:nth-of-type(4) {
    grid-column: 1 / -1;
    grid-row: 4;
}

.published-category-creation-form textarea {
    grid-column: 1 / -1;
    grid-row: 5;
}

@media (max-width: 850px) {
    .published-category-creation-form label:nth-of-type(1),
    .published-category-creation-form input:nth-of-type(1),
    .published-category-creation-form label:nth-of-type(2),
    .published-category-creation-form input:nth-of-type(2),
    .published-category-creation-form label:nth-of-type(3),
    .published-category-creation-form input:nth-of-type(3),
    .published-category-creation-form label:nth-of-type(4),
    .published-category-creation-form textarea {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Published review - Author Review */

.published-review-task[data-review-task="author"] label {
    display: block;
    margin: 16px 0 6px;
    font-weight: 600;
}

.published-review-task[data-review-task="author"] select {
    display: block;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

.published-review-task[data-review-task="author"]
.published-review-task-actions {
    margin-top: 4px;
}

/* Timestamp is part of the existing green completion banner. */
.sat-completion-updated {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 400;
}
.sat-process-completions .published-review-task-complete {
    flex-wrap: wrap;
}

/* Imported drafts have their own fluid layout; published article tables retain
   their existing styles. Four desktop areas become complete cards on mobile. */
#wordpress-drafts-view { min-width: 0; overflow-wrap: anywhere; }
#wordpress-drafts-view .dashboard-header { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
#wordpress-drafts-view .dashboard-header > div { min-width: 0; flex: 1 1 260px; }
#wordpress-drafts-view main { width: 100%; }
#wordpress-drafts-search-form { grid-template-columns: minmax(0, 1fr) auto auto; }
#wordpress-drafts-search-input { min-width: 0; }
#wordpress-drafts-list { display: block; width: 100%; min-width: 0; }
.wordpress-draft-headings, .wordpress-draft-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.4fr) 6rem;
    gap: 18px;
    align-items: start;
    padding: 18px 14px;
}
.wordpress-draft-headings { background: #16324f; color: white; border-radius: 8px 8px 0 0; font-size: 14px; font-weight: 700; }
.wordpress-draft-rows { list-style: none; margin: 0; padding: 0; }
.wordpress-draft-row { border-bottom: 1px solid #dce3ea; font-size: 14px; }
.wordpress-draft-row:nth-child(even) { background: #f8fafc; }
.wordpress-draft-row > div { min-width: 0; }
.wordpress-draft-identity h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.45; color: #16324f; }
.wordpress-draft-row small { display: block; color: #475569; font-size: 13px; line-height: 1.6; }
.wordpress-draft-statuses, .wordpress-draft-dates { display: grid; gap: 6px; justify-items: start; }
.wordpress-draft-statuses .published-article-status { white-space: normal; max-width: 100%; }
#wordpress-drafts-schedule-completion { position: sticky; top: 8px; z-index: 3; }
#wordpress-drafts-schedule-completion:empty { display: none; }
#wordpress-drafts-pagination { flex-wrap: wrap; }
#wordpress-drafts-scheduling {
    width: min(620px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    border: 0;
    border-radius: 12px;
    color: #1f2937;
    box-shadow: 0 16px 64px #0005;
    overflow-y: auto;
    overflow-wrap: anywhere;
}
#wordpress-drafts-scheduling::backdrop { background: #0f172a99; }
.wordpress-schedule-heading { display: flex; gap: 16px; align-items: start; justify-content: space-between; }
.wordpress-schedule-heading h2 { min-width: 0; margin: 0; font-size: 21px; line-height: 1.4; }
.wordpress-schedule-heading button { flex-shrink: 0; }
.wordpress-schedule-help { color: #475569; font-size: 14px; line-height: 1.5; }
.wordpress-schedule-footer { display: flex; justify-content: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid #dce3ea; }
.wordpress-calendar-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 8px; }
.wordpress-calendar-navigation button { min-width: 44px; min-height: 44px; font-size: 22px; }
.wordpress-schedule-calendar { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.wordpress-schedule-calendar th { font-size: 13px; color: #475569; padding: 4px 0; }
.wordpress-schedule-calendar td { padding: 0; text-align: center; }
.wordpress-calendar-day { width: 100%; min-height: 44px; padding: 8px 0; border: 1px solid transparent; border-radius: 6px; background: #f1f5f9; color: #64748b; font: inherit; }
.wordpress-calendar-day.available { background: #dcfce7; border-color: #15803d; color: #14532d; font-weight: 700; cursor: pointer; }
.wordpress-calendar-day.available:hover { background: #bbf7d0; }
.wordpress-calendar-day.selected { background: #16324f; color: white; border-color: #16324f; box-shadow: inset 0 0 0 2px white; }
.wordpress-calendar-day:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.wordpress-calendar-day:disabled { cursor: not-allowed; }
.wordpress-schedule-selection { padding: 12px; background: #eff6ff; border-left: 3px solid #16324f; line-height: 1.6; }
#wordpress-schedule-content > button { margin: 4px 8px 4px 0; }
/* Put the shared SAT progress indicator inside the dialog's top layer. */
#wordpress-drafts-scheduling #sat-action-progress { position: sticky; top: 0; margin-top: 12px; width: 100%; }
@media (max-width: 760px) {
    #wordpress-drafts-view main { padding: 16px; }
    #wordpress-drafts-view .status-card { padding: 16px; }
    #wordpress-drafts-view .dashboard-header { padding: 20px 16px; }
    .wordpress-draft-headings { display: none; }
    .wordpress-draft-rows { display: grid; gap: 16px; }
    .wordpress-draft-row { grid-template-columns: minmax(0, 1fr); gap: 12px; border: 1px solid #dce3ea; border-radius: 8px; padding: 16px; }
    .wordpress-draft-statuses { display: flex; flex-wrap: wrap; }
    .wordpress-draft-statuses small { flex-basis: 100%; }
    .wordpress-draft-actions .accuracy-button { width: 100%; }
}
@media (max-width: 480px) {
    #wordpress-drafts-search-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    #wordpress-drafts-search-input { grid-column: 1 / -1; }
    #wordpress-drafts-scheduling { padding: 16px; }
    .wordpress-schedule-heading h2 { font-size: 18px; }
    .wordpress-schedule-calendar { border-spacing: 2px; }
}

/* Shared content/action cards. New cards use the existing .dashboard-card class.
   Page containers, forms, tables and status banners deliberately stay outside. */
:root {
    --sat-card-background: #f1f6fb;
    --sat-card-border: #8ba4bd;
    --sat-card-active-background: #e5eff9;
    --sat-card-active-border: #2563a6;
}

:is(.dashboard-card, .draft-task-item, .faq-review-item,
    .internal-link-suggestion, .published-review-task,
    .published-review-status-card, .accuracy-classification,
    .accuracy-check-finding, .published-review-seo-summary,
    .published-review-seo-results, .category-validation-suggestion,
    #affiliate-links-view main > .status-card:first-child) {
    background: var(--sat-card-background);
    border: 1px solid var(--sat-card-border);
    border-radius: 15px;
    box-shadow: none;

    /* A nested card owns its interaction; do not also highlight its parent. */
    &:is(:hover, :focus-within):not(:has(&:is(:hover, :focus-within))) {
        background: var(--sat-card-active-background);
        border-color: var(--sat-card-active-border);
    }
}

/* Stacked record cards outside the existing card grids. */
:not(.dashboard-grid, #affiliate-links-list, #affiliate-partners-list)
    > .dashboard-card ~ .dashboard-card {
    margin-top: 16px;
}

/* These records are already cards only at the existing mobile breakpoint. */
@media (max-width: 760px) {
    .wordpress-draft-rows > .wordpress-draft-row {
        background: var(--sat-card-background);
        border: 1px solid var(--sat-card-border);
        border-radius: 15px;
    }

    .wordpress-draft-row:is(:hover, :focus-within) {
        background: var(--sat-card-active-background);
        border-color: var(--sat-card-active-border);
    }
}
