/* ============================================================
   PublisherKits SocialPromoter — Admin CSS
   Brand: Navy #1a2d4a · Blue #4a7fc1 · Paper #f5f1e8
   Font: system stacks (no remote fonts - WP.org guideline)
   ============================================================ */

/* --------------------------------------------------------
   Base
-------------------------------------------------------- */
.pkits-sp-wrap,
.pkits-sp-wrap * {
	font-family: 'Source Sans 3', 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
	box-sizing: border-box;
}

/* --------------------------------------------------------
   Page title
-------------------------------------------------------- */
.pkits-sp-page-title {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #1a2d4a;
	font-family: 'Roboto Slab', Georgia, serif;
	font-weight: 700;
	font-size: 22px;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 2px solid #d0e0f0;
}

.pkits-sp-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: #1a2d4a;
	color: #fff;
	font-family: 'Roboto Slab', Georgia, serif;
	font-weight: 700;
	font-size: 13px;
	border-radius: 6px;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.pkits-sp-intro {
	font-size: 14px;
	color: #5a6a7a;
	margin-bottom: 20px;
	line-height: 1.6;
}

/* --------------------------------------------------------
   Settings sections (shared across pages)
-------------------------------------------------------- */
.pkits-sp-settings-section {
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 20px;
	max-width: 860px;
}

.pkits-sp-settings-section-title {
	font-family: 'Roboto Slab', Georgia, serif;
	font-size: 15px;
	font-weight: 600;
	color: #1a2d4a;
	margin: 0 0 4px;
	padding: 0;
	border: none;
}

.pkits-sp-settings-section-desc {
	font-size: 13px;
	color: #5a6a7a;
	margin: 0 0 16px;
}

.pkits-sp-settings-table th {
	font-weight: 600;
	color: #1a2d4a;
	vertical-align: top;
	padding-top: 10px;
	width: 220px;
	font-size: 13px;
}

/* --------------------------------------------------------
   Toggle labels (checkboxes in settings)
-------------------------------------------------------- */
.pkits-sp-toggle-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.pkits-sp-toggle-label input[type="checkbox"] {
	margin-top: 2px;
	flex-shrink: 0;
}

.pkits-sp-toggle-text {
	font-size: 13px;
	color: #1a2d4a;
	line-height: 1.5;
}

/* --------------------------------------------------------
   Callback notice (Platforms page)
-------------------------------------------------------- */
.pkits-sp-callback-notice {
	background: #f5f1e8;
	border: 1px solid #d0e0f0;
	border-left: 4px solid #1a2d4a;
	border-radius: 0 6px 6px 0;
	padding: 12px 16px;
	margin-bottom: 20px;
	max-width: 860px;
}

.pkits-sp-callback-notice strong {
	display: block;
	color: #1a2d4a;
	font-size: 13px;
	margin-bottom: 4px;
}

.pkits-sp-callback-notice code {
	display: block;
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 12px;
	color: #1a2d4a;
	margin: 6px 0;
	word-break: break-all;
}

.pkits-sp-callback-hint {
	font-size: 11px;
	color: #5a6a7a;
	margin: 4px 0 0;
}

/* --------------------------------------------------------
   Platform cards (Platforms page)
-------------------------------------------------------- */
.pkits-sp-platform-card {
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 8px;
	padding: 20px 24px;
	margin-bottom: 20px;
	max-width: 860px;
}

.pkits-sp-platform-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8f0f8;
}

.pkits-sp-platform-header h2 {
	font-family: 'Roboto Slab', Georgia, serif;
	font-size: 17px;
	font-weight: 600;
	color: #1a2d4a;
	margin: 0;
	padding: 0;
	border: none;
}

.pkits-sp-platform-icon-large {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	color: #fff;
	flex-shrink: 0;
}

.pkits-sp-icon-lg-x        { background: #1a2d4a; }
.pkits-sp-icon-lg-facebook  { background: #1877f2; font-size: 18px; }
.pkits-sp-icon-lg-linkedin  { background: #0a66c2; font-size: 12px; }

.pkits-sp-platform-desc {
	margin-bottom: 16px;
}

.pkits-sp-cred-table th {
	font-size: 13px;
	font-weight: 600;
	color: #1a2d4a;
	width: 180px;
}

.pkits-sp-accounts-table {
	margin-top: 12px;
}

/* --------------------------------------------------------
   X balance warning
-------------------------------------------------------- */
.pkits-sp-x-balance-notice {
	background: #f5f1e8;
	border-left: 4px solid #dba617;
	border-radius: 0 4px 4px 0;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 13px;
}

.pkits-sp-x-balance-notice strong {
	display: block;
	color: #1a2d4a;
	margin-bottom: 4px;
}

.pkits-sp-x-balance-notice p {
	margin: 0;
	color: #5a6a7a;
	line-height: 1.5;
}

.pkits-sp-x-balance-notice a {
	color: #4a7fc1;
}

/* --------------------------------------------------------
   Queue & History tables
-------------------------------------------------------- */
.pkits-sp-queue-table,
.pkits-sp-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	margin-top: 8px;
}

.pkits-sp-queue-table th,
.pkits-sp-history-table th {
	background: #1a2d4a;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	padding: 8px 10px;
	text-align: left;
}

.pkits-sp-queue-table td,
.pkits-sp-history-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #e8f0f8;
	color: #1a2d4a;
	vertical-align: middle;
}

.pkits-sp-queue-table tr:hover td,
.pkits-sp-history-table tr:hover td {
	background: #f5f1e8;
}

/* History: each send is a card with its channels grouped inside. */
.pkits-sp-send-cards {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 1100px;
}

.pkits-sp-send-card {
	background: #fff;
	border: 1px solid #dbe4ee;
	border-radius: 8px;
	overflow: hidden;
}

.pkits-sp-send-card-head {
	padding: 10px 14px;
	background: #f6f9fc;
	border-bottom: 1px solid #e3e8ef;
}

.pkits-sp-send-card-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.pkits-sp-send-card-title a {
	font-size: 13px;
	font-weight: 600;
	color: #1a2d4a;
	text-decoration: none;
}

.pkits-sp-send-card-kind {
	font-size: 12px;
	font-weight: 600;
	color: #8a9ab0;
}

.pkits-sp-send-card-time {
	font-size: 11px;
	color: #8a9ab0;
	white-space: nowrap;
}

.pkits-sp-send-card-copy {
	margin-top: 4px;
	font-size: 12px;
	color: #5a6a7a;
	line-height: 1.4;
}

.pkits-sp-send-card-channels {
	padding: 2px 14px;
}

.pkits-sp-send-channel {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #eef2f7;
}

.pkits-sp-send-channel:last-child {
	border-bottom: none;
}

.pkits-sp-send-channel .pkits-sp-history-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	flex: 1 1 auto;
}

.pkits-sp-send-channel-err {
	font-size: 11px;
	color: #d63638;
}

.pkits-sp-send-channel-actions {
	display: flex;
	gap: 6px;
	margin-left: auto;
	flex-shrink: 0;
}

.pkits-sp-stat-stale {
	font-size: 10px;
	color: #8a9ab0;
	font-style: italic;
}

/* --------------------------------------------------------
   Platform badges (inline - metabox and history)
-------------------------------------------------------- */
.pkits-sp-platform-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.3px;
	flex-shrink: 0;
}

.pkits-sp-badge-x        { background: #1a2d4a; }
.pkits-sp-badge-facebook  { background: #1877f2; }
.pkits-sp-badge-linkedin  { background: #0a66c2; }
.pkits-sp-badge-bluesky   { background: #1185fe; }

/* --------------------------------------------------------
   Status labels
-------------------------------------------------------- */
.pkits-sp-status-label {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.pkits-sp-status-label.pkits-sp-status-sent,
.pkits-sp-status-sent     { background: #d1f5e8; color: #1d9e75; }
.pkits-sp-status-label.pkits-sp-status-failed,
.pkits-sp-status-failed   { background: #fde8e8; color: #d63638; }
.pkits-sp-status-label.pkits-sp-status-pending,
.pkits-sp-status-pending  { background: #fff3cd; color: #856404; }
.pkits-sp-status-label.pkits-sp-status-draft,
.pkits-sp-status-draft    { background: #f0f0f0; color: #5a6a7a; }

/* --------------------------------------------------------
   Metabox (post editor sidebar)
-------------------------------------------------------- */
#pkits-sp-metabox {
	font-size: 12px;
	color: #1a2d4a;
}

.pkits-sp-field {
	margin-bottom: 12px;
}

.pkits-sp-field label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #1a2d4a;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

#pkits-sp-copy {
	width: 100%;
	font-size: 12px;
	line-height: 1.5;
	border: 1px solid #d0e0f0;
	border-radius: 4px;
	padding: 6px 8px;
	box-sizing: border-box;
	resize: vertical;
	color: #1a2d4a;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
}

#pkits-sp-copy:focus {
	border-color: #4a7fc1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(74, 127, 193, 0.15);
}

.pkits-sp-char-row {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	color: #5a6a7a;
	margin-top: 3px;
}

.pkits-sp-char-counter.over-limit { color: #d63638; font-weight: 700; }

/* Hashtag pills */
.pkits-sp-tags-label {
	font-size: 11px;
	font-weight: 600;
	color: #1a2d4a;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 5px;
	display: block;
}

.pkits-sp-tag-pill {
	display: inline-block;
	background: #e8f0f8;
	color: #1a2d4a;
	border: 1px solid #d0e0f0;
	border-radius: 12px;
	padding: 2px 10px;
	font-size: 11px;
	cursor: pointer;
	margin: 2px;
	transition: background 0.15s;
}

.pkits-sp-tag-pill:hover {
	background: #4a7fc1;
	color: #fff;
	border-color: #4a7fc1;
}

/* Account checkboxes */
.pkits-sp-account-check {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	font-size: 12px;
	cursor: pointer;
	line-height: 1.3;
}

/* Beat the more-specific `.pkits-sp-field label` rule, which otherwise forces
   these rows to display:block and uppercase. Real flex, top-aligned so wrapped
   account names sit in their own column under the first line, not under the box. */
.pkits-sp-field label.pkits-sp-account-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	margin-bottom: 6px;
}

.pkits-sp-account-check input[type="checkbox"] {
	flex: 0 0 auto;
	margin: 2px 0 0;
}

.pkits-sp-account-label {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 12px;
	color: #1a2d4a;
	text-transform: none;
}

.pkits-sp-account-check .pkits-sp-platform-badge {
	margin-top: 1px;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 5px;
	border-radius: 3px;
	letter-spacing: 0.3px;
	color: #fff;
	flex-shrink: 0;
	min-width: 20px;
	text-align: center;
}

/* Thumbnail preview */
.pkits-sp-thumb-preview {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid #d0e0f0;
	flex-shrink: 0;
}

/* Post Now button */
#pkits-sp-post-now {
	width: 100%;
	background: #1a2d4a;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 9px 0;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	cursor: pointer;
	margin-bottom: 8px;
	letter-spacing: 0.2px;
}

#pkits-sp-post-now:hover {
	background: #15243c;
}

.pkits-sp-schedule-row {
	display: flex;
	gap: 6px;
	align-items: center;
}

.pkits-sp-schedule-row input[type="datetime-local"] {
	flex: 1;
	font-size: 11px;
	border: 1px solid #d0e0f0;
	border-radius: 4px;
	padding: 5px 6px;
	color: #1a2d4a;
}

.pkits-sp-actions {
	margin-top: 12px;
}

/* History section in metabox */
.pkits-sp-history {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e8f0f8;
}

.pkits-sp-history-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.pkits-sp-history-header strong {
	font-size: 11px;
	font-weight: 600;
	color: #1a2d4a;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.pkits-sp-history-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pkits-sp-clear-failed-btn {
	background: none;
	border: none;
	color: #d63638;
	font-size: 10px;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.pkits-sp-view-all-link {
	font-size: 10px;
	color: #4a7fc1;
	text-decoration: underline;
}

.pkits-sp-status-line {
	font-size: 12px;
	line-height: 1.5;
	color: #1a2d4a;
	margin: 0;
}

.pkits-sp-status-line .pkits-sp-send-cancel {
	margin-left: 6px;
}

.pkits-sp-history-top {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.pkits-sp-foldout {
	margin-top: 12px;
	border: 1px solid #e3e8ef;
	border-radius: 6px;
	background: #fcfdfe;
}

.pkits-sp-foldout > summary {
	cursor: pointer;
	padding: 8px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #1a2d4a;
	list-style: none;
}

.pkits-sp-foldout > summary::-webkit-details-marker {
	display: none;
}

.pkits-sp-foldout > summary::before {
	content: "\25B8";
	display: inline-block;
	margin-right: 6px;
	color: #8a9ab0;
}

.pkits-sp-foldout[open] > summary::before {
	content: "\25BE";
}

.pkits-sp-foldout-body {
	padding: 0 10px 10px;
}

.pkits-sp-foldout-toggle {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	color: #1a2d4a;
	margin-bottom: 8px;
}

.pkits-sp-foldout-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 12px;
}

.pkits-sp-foldout-row input[type="number"] {
	width: 56px;
}

.pkits-sp-foldout-hint {
	margin: 8px 0 0;
	font-size: 11px;
	color: #8a9ab0;
}

/* History table in metabox */
.pkits-sp-history-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 11px;
}

.pkits-sp-history-table td {
	padding: 5px 4px;
	border-bottom: 1px solid #f0f4f8;
	color: #1a2d4a;
	vertical-align: middle;
}

.pkits-sp-status-failed td { background: #fff8f8; }
.pkits-sp-status-sent td   { background: #f8fffc; }

.pkits-sp-delete-item-btn {
	background: none;
	border: none;
	color: #b0b8c4;
	cursor: pointer;
	font-size: 12px;
	padding: 0 2px;
	line-height: 1;
}

.pkits-sp-delete-item-btn:hover { color: #d63638; }

/* Notice in metabox */
.pkits-sp-notice {
	font-size: 12px;
	color: #5a6a7a;
	padding: 8px;
	background: #f5f1e8;
	border-radius: 4px;
	border-left: 3px solid #d0e0f0;
}

.pkits-sp-notice a { color: #4a7fc1; }

/* --------------------------------------------------------
   Metabox image field
-------------------------------------------------------- */
.pkits-sp-image-field label.pkits-sp-account-check {
	align-items: center;
}

.pkits-sp-image-field .pkits-sp-account-check input[type="checkbox"] {
	margin-top: 0;
}

/* --------------------------------------------------------
   History page actions
-------------------------------------------------------- */
.pkits-sp-history-page-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

/* --------------------------------------------------------
   Settings page
-------------------------------------------------------- */
.pkits-sp-template-preview {
	margin-top: 8px;
	font-size: 12px;
	color: #5a6a7a;
	background: #f5f1e8;
	border-radius: 4px;
	padding: 6px 10px;
	border-left: 3px solid #4a7fc1;
}

.pkits-sp-template-preview strong {
	color: #1a2d4a;
	margin-right: 6px;
}

/* --------------------------------------------------------
   Nudge - banner
-------------------------------------------------------- */
.pkits-sp-nudge-notice {
	border-left-color: #dba617 !important;
	background: #f5f1e8;
	padding: 10px 14px;
}

.pkits-sp-nudge-banner-inner {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.pkits-sp-nudge-icon {
	color: #dba617;
	font-size: 14px;
	flex-shrink: 0;
}

.pkits-sp-nudge-text {
	font-size: 13px;
	color: #1a2d4a;
	font-weight: 600;
	flex: 1;
	min-width: 200px;
}

.pkits-sp-nudge-banner-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.pkits-sp-nudge-btn-dismiss-perm {
	background: none;
	border: none;
	color: #5a6a7a;
	font-size: 12px;
	cursor: pointer;
	padding: 0 4px;
	text-decoration: underline;
}

.pkits-sp-nudge-btn-dismiss-perm:hover { color: #d63638; }

/* --------------------------------------------------------
   Nudge modal
-------------------------------------------------------- */
.pkits-sp-nudge-overlay {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(26, 45, 74, 0.65);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.pkits-sp-nudge-modal {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 460px;
	box-shadow: 0 8px 32px rgba(26, 45, 74, 0.2);
	overflow: hidden;
}

.pkits-sp-nudge-modal-header {
	background: #1a2d4a;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pkits-sp-nudge-modal-logo {
	background: #4a7fc1;
	color: #fff;
	font-family: 'Roboto Slab', Georgia, serif;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	flex-shrink: 0;
	letter-spacing: 0.3px;
}

.pkits-sp-nudge-modal-title {
	color: #fff;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	font-size: 14px;
	font-weight: 600;
	flex: 1;
	margin: 0; padding: 0; border: none;
}

.pkits-sp-nudge-modal-close {
	background: none;
	border: none;
	color: #a8c4e0;
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	line-height: 1;
	flex-shrink: 0;
}

.pkits-sp-nudge-modal-close:hover { color: #fff; }

#pkits-sp-nudge-no-accounts,
#pkits-sp-nudge-compose,
#pkits-sp-nudge-success {
	padding: 18px;
}

.pkits-sp-nudge-field {
	margin-bottom: 14px;
}

.pkits-sp-nudge-field > strong,
.pkits-sp-nudge-field > label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: #1a2d4a;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	margin-bottom: 5px;
}

#pkits-sp-nudge-copy {
	width: 100%;
	font-size: 12px;
	line-height: 1.5;
	border: 1px solid #d0e0f0;
	border-radius: 4px;
	padding: 6px 8px;
	box-sizing: border-box;
	resize: vertical;
	color: #1a2d4a;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
}

#pkits-sp-nudge-copy:focus {
	border-color: #4a7fc1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(74, 127, 193, 0.15);
}

.pkits-sp-nudge-char-count.over-limit { color: #d63638; font-weight: 700; }

.pkits-sp-nudge-schedule-row {
	background: #f5f1e8;
	border-radius: 4px;
	padding: 10px 12px;
	margin-bottom: 14px;
}

.pkits-sp-nudge-schedule-hint {
	font-size: 11px;
	color: #1a2d4a;
	margin-bottom: 6px;
}

#pkits-sp-nudge-datetime {
	width: 100%;
	font-size: 12px;
	box-sizing: border-box;
}

.pkits-sp-nudge-modal-actions { padding-top: 4px; }
.pkits-sp-nudge-modal-actions .button { margin-right: 6px; margin-bottom: 8px; }

.pkits-sp-nudge-modal-secondary {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.pkits-sp-nudge-text-btn {
	background: none;
	border: none;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	color: #5a6a7a;
	text-decoration: underline;
}

.pkits-sp-nudge-text-btn:hover { color: #1a2d4a; }
.pkits-sp-nudge-never:hover { color: #d63638; }
.pkits-sp-nudge-sep { color: #d0e0f0; font-size: 11px; }

.pkits-sp-nudge-result {
	font-size: 12px;
	padding: 6px 8px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.pkits-sp-nudge-result.success { background: #d1f5e8; color: #1d9e75; }
.pkits-sp-nudge-result.error   { background: #fde8e8; color: #d63638; }

.pkits-sp-nudge-success-icon { font-size: 36px; color: #1d9e75; text-align: center; margin-bottom: 8px; }
.pkits-sp-nudge-success-msg  { font-size: 14px; color: #1a2d4a; text-align: center; margin-bottom: 16px; }

.pkits-sp-no-accounts-msg { font-size: 13px; color: #1a2d4a; margin-bottom: 12px; }

/* --------------------------------------------------------
   Settings page
-------------------------------------------------------- */
.pkits-sp-settings-section {
	max-width: 860px;
}

/* --------------------------------------------------------
   Campaigns list page
-------------------------------------------------------- */
.pkits-sp-campaigns-table .pkits-sp-campaign-note {
	font-size: 11px;
	color: #5a6a7a;
	margin-top: 2px;
}

.pkits-sp-post-counts {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 11px;
}

.pkits-sp-count-sent    { color: #1d9e75; font-weight: 600; }
.pkits-sp-count-pending { color: #856404; font-weight: 600; }
.pkits-sp-count-draft   { color: #5a6a7a; }
.pkits-sp-muted         { color: #8a9ab0; }

.pkits-sp-campaign-status {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-transform: uppercase;
}

.pkits-sp-campaign-status-draft    { background: #f0f0f0;    color: #5a6a7a; }
.pkits-sp-campaign-status-active   { background: #d1f5e8;    color: #1d9e75; }
.pkits-sp-campaign-status-complete { background: #e8f0f8;    color: #1a2d4a; }
.pkits-sp-campaign-status-archived { background: #f5f5f5;    color: #8a9ab0; }

.pkits-sp-empty-state {
	padding: 40px 20px;
	text-align: center;
	color: #5a6a7a;
	background: #f5f1e8;
	border-radius: 8px;
	border: 1px dashed #d0e0f0;
}

.pkits-sp-empty-state p {
	margin-bottom: 12px;
	font-size: 14px;
}

/* --------------------------------------------------------
   Campaign Workspace layout
-------------------------------------------------------- */
.pkits-sp-workspace-layout {
	display: grid;
	grid-template-columns: 380px 1fr;
	gap: 20px;
	align-items: start;
	max-width: 1200px;
}

.pkits-sp-workspace-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.pkits-sp-workspace-header .pkits-sp-settings-section-title { margin: 0; }

/* UTM preview */
.pkits-sp-utm-preview {
	background: #f5f1e8;
	border-left: 3px solid #4a7fc1;
	border-radius: 0 4px 4px 0;
	padding: 10px 12px;
	margin-top: 12px;
	font-size: 12px;
}

.pkits-sp-utm-preview strong {
	display: block;
	color: #1a2d4a;
	margin-bottom: 4px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.pkits-sp-utm-preview-url {
	word-break: break-all;
	font-size: 11px;
	color: #1a2d4a;
}

/* --------------------------------------------------------
   Campaign post cards
-------------------------------------------------------- */
.pkits-sp-campaign-post {
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 8px;
	border-left: 3px solid #d0e0f0;
}

.pkits-sp-cp-status-draft   { border-left-color: #c0c8d4; }
.pkits-sp-cp-status-pending { border-left-color: #dba617; }
.pkits-sp-cp-status-sent    { border-left-color: #1d9e75; }
.pkits-sp-cp-status-failed  { border-left-color: #d63638; }

.pkits-sp-cp-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	flex-wrap: wrap;
}

.pkits-sp-cp-schedule {
	font-size: 12px;
	color: #5a6a7a;
	flex: 1;
}

.pkits-sp-cp-actions {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.pkits-sp-cp-copy {
	font-size: 12px;
	color: #1a2d4a;
	line-height: 1.5;
	margin-bottom: 4px;
}

.pkits-sp-cp-url code {
	font-size: 10px;
	color: #5a6a7a;
	word-break: break-all;
}

/* Post modal wider */
.pkits-sp-post-modal-inner {
	max-width: 520px !important;
}

@media ( max-width: 900px ) {
	.pkits-sp-workspace-layout { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------
   History page actions
-------------------------------------------------------- */
.pkits-sp-history-page-actions {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

/* --------------------------------------------------------
   char row hint
-------------------------------------------------------- */
.pkits-sp-char-hint {
	color: #8a9ab0;
	font-size: 10px;
}

/* ============================================================
   Two-column page layout (v1.1.0+)
   ============================================================ */

.pkits-sp-page-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	align-items: start;
	max-width: 1100px;
}

.pkits-sp-page-main  { min-width: 0; }
.pkits-sp-page-aside { display: flex; flex-direction: column; gap: 16px; }

@media ( max-width: 960px ) {
	.pkits-sp-page-layout { grid-template-columns: 1fr; }
	.pkits-sp-page-aside  { display: none; }
}

/* --------------------------------------------------------
   Sidebar widgets
-------------------------------------------------------- */
.pkits-sp-widget {
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 8px;
	overflow: hidden;
}

.pkits-sp-widget-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px 10px;
	border-bottom: 1px solid #e8f0f8;
}

.pkits-sp-widget-icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: #e8f0f8;
	color: #4a7fc1;
	font-size: 14px;
	flex-shrink: 0;
}

.pkits-sp-widget-title {
	font-family: 'Roboto Slab', Georgia, serif;
	font-size: 13px;
	font-weight: 600;
	color: #1a2d4a;
	margin: 0;
}

.pkits-sp-widget-body {
	padding: 12px 16px 14px;
}

/* Summary widget rows */
.pkits-sp-summary-row {
	padding: 8px 0;
	border-bottom: 1px solid #f0f4f8;
}

.pkits-sp-summary-row:last-child { border-bottom: none; }

.pkits-sp-summary-label {
	font-size: 10px;
	font-weight: 700;
	color: #5a6a7a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.pkits-sp-summary-value {
	font-size: 13px;
	color: #1a2d4a;
	font-weight: 400;
}

.pkits-sp-summary-value.muted { color: #8a9ab0; font-style: italic; }

/* Guidance widget */
.pkits-sp-guidance-widget {
	background: #f5f1e8;
	border-color: #e8dfc8;
}

.pkits-sp-guidance-widget .pkits-sp-widget-icon {
	background: #fff3cd;
	color: #dba617;
}

.pkits-sp-guidance-list {
	list-style: none;
	padding: 0;
	margin: 0 0 10px;
}

.pkits-sp-guidance-list li {
	font-size: 12px;
	color: #1a2d4a;
	line-height: 1.5;
	padding: 4px 0 4px 16px;
	position: relative;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pkits-sp-guidance-list li:last-child { border-bottom: none; }

.pkits-sp-guidance-list li::before {
	content: '·';
	position: absolute;
	left: 4px;
	color: #4a7fc1;
	font-weight: 700;
}

.pkits-sp-widget-link {
	font-size: 12px;
	color: #4a7fc1;
	text-decoration: none;
	font-weight: 600;
}

.pkits-sp-widget-link:hover { text-decoration: underline; }

/* --------------------------------------------------------
   Section cards (redesigned)
-------------------------------------------------------- */
.pkits-sp-card {
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
}

.pkits-sp-card-header {
	padding: 16px 20px 14px;
	border-bottom: 1px solid #e8f0f8;
}

.pkits-sp-card-title {
	font-family: 'Roboto Slab', Georgia, serif;
	font-size: 16px;
	font-weight: 600;
	color: #1a2d4a;
	margin: 0 0 3px;
}

.pkits-sp-card-desc {
	font-size: 13px;
	color: #5a6a7a;
	margin: 0;
}

.pkits-sp-card-body {
	padding: 16px 20px 20px;
}

/* --------------------------------------------------------
   Form grid (two fields per row)
-------------------------------------------------------- */
.pkits-sp-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 20px;
	margin-bottom: 14px;
}

.pkits-sp-form-grid.single { grid-template-columns: 1fr; }

.pkits-sp-form-group { display: flex; flex-direction: column; gap: 5px; }
.pkits-sp-form-group.full-width { grid-column: 1 / -1; }

.pkits-sp-form-group label {
	font-size: 10px;
	font-weight: 700;
	color: #5a6a7a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.pkits-sp-form-group input[type="text"],
.pkits-sp-form-group input[type="email"],
.pkits-sp-form-group input[type="url"],
.pkits-sp-form-group input[type="date"],
.pkits-sp-form-group select,
.pkits-sp-form-group textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #d0e0f0;
	border-radius: 5px;
	font-size: 13px;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	color: #1a2d4a;
	background: #fff;
	box-sizing: border-box;
}

.pkits-sp-form-group input:focus,
.pkits-sp-form-group select:focus,
.pkits-sp-form-group textarea:focus {
	border-color: #4a7fc1;
	outline: none;
	box-shadow: 0 0 0 2px rgba(74,127,193,0.12);
}

.pkits-sp-form-group .pkits-sp-field-hint {
	font-size: 11px;
	color: #8a9ab0;
	line-height: 1.4;
	margin-top: 2px;
}

/* Contact pair (name + email inline) */
.pkits-sp-contact-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* Checkbox rows */
.pkits-sp-check-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f4f8;
}

.pkits-sp-check-row:last-child { border-bottom: none; }

.pkits-sp-check-row input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }

.pkits-sp-check-label {
	font-size: 13px;
	color: #1a2d4a;
	line-height: 1.5;
}

.pkits-sp-check-label small {
	display: block;
	font-size: 11px;
	color: #8a9ab0;
	margin-top: 1px;
}

/* Copy template preview */
.pkits-sp-template-preview-box {
	background: #f5f1e8;
	border-left: 3px solid #4a7fc1;
	border-radius: 0 4px 4px 0;
	padding: 8px 12px;
	font-size: 12px;
	color: #1a2d4a;
	margin-top: 8px;
}

.pkits-sp-template-preview-box strong {
	color: #5a6a7a;
	margin-right: 6px;
}

/* --------------------------------------------------------
   Page action bar (bottom buttons)
-------------------------------------------------------- */
.pkits-sp-action-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 8px;
	margin-top: 4px;
}

.pkits-sp-btn-primary {
	background: #1a2d4a;
	color: #fff;
	border: none;
	border-radius: 5px;
	padding: 10px 20px;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.pkits-sp-btn-primary:hover { background: #15243c; color: #fff; }

.pkits-sp-btn-secondary {
	background: transparent;
	color: #1a2d4a;
	border: 1.5px solid #1a2d4a;
	border-radius: 5px;
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.pkits-sp-btn-secondary:hover { background: #f5f1e8; color: #1a2d4a; }

/* --------------------------------------------------------
   Platform cards (redesigned for Platforms page)
-------------------------------------------------------- */
.pkits-sp-plat-card {
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
}

.pkits-sp-plat-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #e8f0f8;
}

.pkits-sp-plat-icon {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 900;
	color: #fff;
	flex-shrink: 0;
}

.pkits-sp-plat-icon-x        { background: #000; }
.pkits-sp-plat-icon-facebook  { background: #1877f2; font-size: 22px; }
.pkits-sp-plat-icon-linkedin  { background: #0a66c2; font-size: 14px; font-weight: 700; }
.pkits-sp-plat-icon-bluesky   { background: #1185fe; font-size: 14px; font-weight: 700; }

.pkits-sp-plat-name {
	font-family: 'Roboto Slab', Georgia, serif;
	font-size: 16px;
	font-weight: 600;
	color: #1a2d4a;
	flex: 1;
}

/* Platform status badges */
.pkits-sp-plat-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
}

.pkits-sp-plat-status::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
}

.pkits-sp-plat-status-needs {
	background: #fff3cd;
	color: #856404;
}

.pkits-sp-plat-status-needs::before { background: #dba617; }

.pkits-sp-plat-status-ready {
	background: #d1f5e8;
	color: #1d9e75;
}

.pkits-sp-plat-status-ready::before { background: #1d9e75; }

.pkits-sp-plat-status-connected {
	background: #d1f5e8;
	color: #1d9e75;
}

.pkits-sp-plat-status-connected::before { background: #1d9e75; }

.pkits-sp-plat-card-body {
	padding: 16px 20px 20px;
}

.pkits-sp-plat-notice {
	background: #f5f1e8;
	border-left: 3px solid #dba617;
	border-radius: 0 4px 4px 0;
	padding: 10px 12px;
	font-size: 12px;
	color: #1a2d4a;
	line-height: 1.5;
	margin-bottom: 14px;
}

.pkits-sp-plat-notice a { color: #4a7fc1; }

/* Callback URL box */
.pkits-sp-callback-box {
	background: #fff;
	border: 1px solid #d0e0f0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.pkits-sp-callback-box .pkits-sp-card-title {
	font-size: 14px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.pkits-sp-callback-url-row {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f5f6f8;
	border: 1px solid #d0e0f0;
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 11px;
	color: #1a2d4a;
	word-break: break-all;
	margin-bottom: 6px;
}

.pkits-sp-copy-url-btn {
	background: none;
	border: 1px solid #d0e0f0;
	border-radius: 3px;
	padding: 2px 6px;
	font-size: 11px;
	cursor: pointer;
	color: #4a7fc1;
	flex-shrink: 0;
}

/* --------------------------------------------------------
   Nudge & reminders checkbox groups
-------------------------------------------------------- */
.pkits-sp-check-group-label {
	font-size: 10px;
	font-weight: 700;
	color: #5a6a7a;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 6px;
	margin-top: 14px;
	display: block;
}

.pkits-sp-check-group-label:first-child { margin-top: 0; }

/* --------------------------------------------------------
   Campaign post stats pills
-------------------------------------------------------- */
.pkits-sp-stat-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #e8f0f8;
	border-radius: 10px;
	padding: 2px 8px;
	font-size: 11px;
	border: 1px solid #d0e0f0;
}

.pkits-sp-stat-label {
	color: #5a6a7a;
	font-weight: 600;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.pkits-sp-stat-value {
	color: #1a2d4a;
	font-weight: 700;
}

/* --------------------------------------------------------
   AI Draft panel
-------------------------------------------------------- */
.pkits-sp-ai-toggle {
	font-size: 11px;
	color: #4a7fc1;
	background: none;
	border: 1px solid #d0e0f0;
	border-radius: 4px;
	padding: 4px 10px;
	cursor: pointer;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	font-weight: 600;
	transition: background 0.15s;
}

.pkits-sp-ai-toggle:hover,
.pkits-sp-ai-toggle.is-open {
	background: #e8f0f8;
	border-color: #4a7fc1;
}

/* --------------------------------------------------------
   Compose page - mode toggle
-------------------------------------------------------- */
.pkits-sp-mode-toggle {
	display: flex;
	gap: 6px;
}

.pkits-sp-mode-btn {
	padding: 7px 18px;
	border: 1.5px solid #d0e0f0;
	border-radius: 5px;
	background: #fff;
	color: #5a6a7a;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	cursor: pointer;
	transition: all 0.15s;
}

.pkits-sp-mode-btn:hover {
	border-color: #4a7fc1;
	color: #1a2d4a;
}

.pkits-sp-mode-btn.is-active {
	background: #1a2d4a;
	border-color: #1a2d4a;
	color: #fff;
}

/* --------------------------------------------------------
   Compose - post type pills
-------------------------------------------------------- */
.pkits-sp-type-pill {
	padding: 4px 12px;
	border: 1.5px solid #d0e0f0;
	border-radius: 20px;
	background: #fff;
	color: #5a6a7a;
	font-size: 12px;
	font-weight: 600;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	cursor: pointer;
	transition: all 0.15s;
	white-space: nowrap;
}

.pkits-sp-type-pill:hover {
	border-color: #4a7fc1;
	color: #1a2d4a;
}

.pkits-sp-type-pill.is-active {
	background: #1a2d4a;
	border-color: #1a2d4a;
	color: #fff;
}

/* --------------------------------------------------------
   Author tag pills
-------------------------------------------------------- */
.pkits-sp-tag-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	border: 1px solid #c8a800;
	border-radius: 4px;
	background: #fff;
	color: #7a6000;
	font-size: 11px;
	cursor: pointer;
	font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
	transition: background 0.15s;
}

.pkits-sp-tag-pill:hover {
	background: #fff8e8;
	border-color: #a07800;
}

.pkits-sp-tag-hash {
	background: #f5f1e8;
}

/* ----------------------------------------------------------------
   Queue & History - grouped by send (one line per send)
   ---------------------------------------------------------------- */
.pkits-sp-send-group-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #8a9ab0;
	margin: 10px 0 4px;
}
.pkits-sp-send {
	border: 1px solid #e3e8ef;
	border-radius: 6px;
	padding: 6px 8px;
	margin-bottom: 6px;
	background: #fff;
}
.pkits-sp-send.is-queued {
	background: #fffaf0;
	border-color: #f0e0bd;
}
.pkits-sp-send-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.pkits-sp-send-when {
	font-size: 12px;
	color: #3a4a5e;
	font-weight: 600;
}
.pkits-sp-send-cancel {
	font-size: 11px;
	line-height: 1;
	padding: 3px 8px;
	border: 1px solid #d7654a;
	background: #fff;
	color: #b3261e;
	border-radius: 4px;
	cursor: pointer;
}
.pkits-sp-send-cancel:hover {
	background: #fdeceb;
}
.pkits-sp-send-remove {
	border: none;
	background: none;
	color: #b0bac6;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}
.pkits-sp-send-remove:hover {
	color: #b3261e;
}
.pkits-sp-send-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin-top: 5px;
}
.pkits-sp-chip {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #fff;
	padding: 2px 7px;
	border-radius: 10px;
	line-height: 1.4;
}
.pkits-sp-chip-sent { background: #1a8a5a; }
.pkits-sp-chip-pending { background: #c98a00; }
.pkits-sp-chip-failed { background: #b3261e; }
.pkits-sp-chip-cancelled { background: #9aa6b4; text-decoration: line-through; }
.pkits-sp-chip-suggested { background: #4a7fc1; }
.pkits-sp-chip-stat {
	font-size: 10px;
	color: #5a6a7a;
	background: #eef2f7;
	border-radius: 8px;
	padding: 2px 7px;
}
.pkits-sp-send-refresh {
	font-size: 10px;
	color: #4a7fc1;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
	padding: 0 2px;
}

/* --------------------------------------------------------
   Campaign post preview modal
-------------------------------------------------------- */
.pkits-sp-preview-modal-inner {
	max-width: 1280px;
	width: 95vw;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
}

.pkits-sp-preview-modal-inner .pkits-sp-nudge-modal-header {
	flex-shrink: 0;
}

.pkits-sp-preview-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
}

#pkits-sp-preview-body {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: start;
}

@media ( max-width: 960px ) {
	#pkits-sp-preview-body {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media ( max-width: 640px ) {
	#pkits-sp-preview-body {
		grid-template-columns: minmax(0, 1fr);
	}
}

.pkits-sp-preview-card {
	border: 1px solid #dbe4ee;
	border-radius: 8px;
	padding: 14px;
	background: #fff;
}

.pkits-sp-preview-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.pkits-sp-preview-chars {
	font-size: 11px;
}

.pkits-sp-preview-copy {
	font-size: 13px;
	color: #1a2d4a;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}
