.aiwest-wrap .aiwest-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.aiwest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.aiwest-wrap label {
  display: block;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 6px;
}
.aiwest-wrap pre {
  white-space: pre-wrap;
  max-height: 280px;
  overflow: auto;
  background: #f6f7f7;
  padding: 10px;
  border-radius: 8px;
}
.aiwest-answer {
  border-left: 4px solid #2271b1;
}
.aiwest-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0f0f1;
  font-size: 12px;
  font-weight: 600;
}
.aiwest-badge-ok {
  background: #d1e7dd;
  color: #0a3622;
}
.aiwest-badge-warn {
  background: #fff3cd;
  color: #664d03;
}

.aiwest-wrap details {
  margin: 10px 0;
}
.aiwest-wrap summary {
  cursor: pointer;
  font-weight: 600;
}

.button.aiwest-processing {
  opacity: 0.75;
  pointer-events: none;
}

.aiwest-wrap .nav-tab-wrapper {
  margin-top: 18px;
}
.aiwest-wrap .nav-tab {
  font-weight: 600;
}
.aiwest-grid > div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.aiwest-tools-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.aiwest-tools-links .button {
  margin: 0;
}
.aiwest-card .description {
  color: #646970;
}

.aiwest-check-list {
  margin: 8px 0 0 0;
}
.aiwest-check-list li {
  margin: 6px 0;
  font-size: 14px;
}
.aiwest-wrap .widefat pre {
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
}

#aiwest-working-overlay {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.58);
  align-items: center;
  justify-content: center;
}
#aiwest-working-overlay .aiwest-working-box {
  max-width: 520px;
  margin: 12vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
#aiwest-working-overlay h2 {
  margin: 12px 0 8px;
}
#aiwest-working-overlay p {
  font-size: 15px;
  color: #374151;
}
.aiwest-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: aiwest-spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes aiwest-spin {
  to {
    transform: rotate(360deg);
  }
}

/* AI Webmaster Studio v1.2.7 - lekkie style historii Chatu */
.aiwest-chat-history-table details {
  margin-top: 6px;
}
.aiwest-chat-history-table pre {
  white-space: pre-wrap;
  max-height: 260px;
  overflow: auto;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  padding: 10px;
  border-radius: 6px;
}

.aiwest-mini-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  margin-right: 6px;
}
.aiwest-editor-panel textarea {
  font-size: 12px;
}
.aiwest-map-placeholder h3 {
  margin-top: 0;
}

/* AI Webmaster Studio v1.3.1 - Gutenberg editor panel */
.aiwest-mini-logo-editor {
  vertical-align: middle;
  margin-right: 8px;
}
.aiwest-gutenberg-panel {
  padding: 4px 0 8px;
}
.aiwest-gutenberg-title {
  display: flex;
  align-items: center;
  margin-top: 0;
}
.aiwest-gutenberg-form .components-base-control {
  margin-bottom: 12px;
}
.aiwest-gutenberg-form textarea {
  min-height: 120px;
}
.aiwest-editor-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}
.aiwest-editor-description {
  font-size: 12px;
  color: #646970;
  margin-top: 10px;
}

.aiwest-mini-logo-editor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}
.aiwest-gutenberg-panel .components-notice {
  margin: 0 0 12px 0;
}
.aiwest-editor-submit .components-spinner {
  margin: 0 6px 0 0;
}
.aiwest-gutenberg-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.aiwest-copy-prompt {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  line-height: 1.5;
}
.aiwest-wrap ol {
  margin-left: 20px;
}
.aiwest-wrap ul {
  margin-left: 20px;
  list-style: disc;
}

.aiwest-card .notice.inline {
  margin: 12px 0;
  padding: 8px 12px;
}
.aiwest-card select {
  max-width: 360px;
}

.aiwest-menu-plan-table th:nth-child(1) {
  width: 20%;
}
.aiwest-menu-plan-table th:nth-child(2) {
  width: 13%;
}
.aiwest-menu-plan-table th:nth-child(3) {
  width: 22%;
}
.aiwest-menu-plan-table th:nth-child(4) {
  width: 18%;
}
.aiwest-menu-plan-table th:nth-child(5) {
  width: 8%;
}
.aiwest-menu-plan-table .regular-text {
  width: 100%;
  max-width: none;
}
.aiwest-menu-plan-table select {
  width: 100%;
  max-width: none;
}
.aiwest-menu-plan-row.is-submenu-item td:first-child {
  padding-left: 28px;
  position: relative;
}
.aiwest-menu-plan-row.is-submenu-item td:first-child:before {
  content: "↳";
  position: absolute;
  left: 10px;
  top: 13px;
  color: #646970;
}
.aiwest-menu-plan-table .button-link-delete {
  margin-left: 8px;
}
.aiwest-menu-plan-table td {
  vertical-align: middle;
}
@media (max-width: 1100px) {
  .aiwest-menu-plan-table {
    display: block;
    overflow-x: auto;
  }
  .aiwest-menu-plan-table input,
  .aiwest-menu-plan-table select {
    min-width: 150px;
  }
}

.aiwest-shortcode-notice {
  padding: 12px 14px;
  border: 1px solid #f59e0b;
  background: #fffbeb;
  border-radius: 12px;
  color: #92400e;
  margin: 12px 0;
}

/* AI Webmaster Studio v1.5.44 — AI Policy Center */
.aiwest-policy-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.aiwest-policy-status-grid > div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}
.aiwest-policy-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.aiwest-policy-profile-card {
  display: block;
  border: 1px solid #dcdcde;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
}
.aiwest-policy-profile-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}
.aiwest-policy-profile-card input {
  margin-right: 6px;
}
.aiwest-policy-profile-card span {
  display: block;
  color: #4b5563;
  font-weight: 400;
  margin-top: 8px;
}
.aiwest-policy-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.aiwest-policy-module-card {
  border: 1px solid #dcdcde;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}
.aiwest-policy-module-card h3 {
  margin: 0 0 8px;
}
.aiwest-policy-module-card p {
  min-height: 42px;
  color: #4b5563;
}
.aiwest-policy-module-card select {
  width: 100%;
  max-width: none;
}
.aiwest-policy-decision-allow {
  border-left: 5px solid #16a34a;
}
.aiwest-policy-decision-approve {
  border-left: 5px solid #2563eb;
}
.aiwest-policy-decision-report {
  border-left: 5px solid #f59e0b;
}
.aiwest-policy-decision-deny {
  border-left: 5px solid #dc2626;
}
.aiwest-policy-wrap .description {
  max-width: 980px;
}
.aiwest-policy-status-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

/* AI Webmaster Studio v1.5.46 — module intro and AI Website status cards */
.aiwest-module-intro {
  border-left: 4px solid #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 56%);
}
.aiwest-module-intro-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.aiwest-module-intro-title h2 {
  margin: 0;
}
.aiwest-module-intro-title .dashicons {
  color: #2563eb;
}
.aiwest-module-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.aiwest-module-intro-grid > div {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px;
}
.aiwest-module-intro-grid p {
  margin: 0.35em 0 0;
  color: #475569;
}
.aiwest-ai-status-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.aiwest-ai-status-kpi > div {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
}
.aiwest-run-plan-note {
  border-left: 4px solid #10b981;
  background: #ecfdf5;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0;
}
.aiwest-xai-note {
  border-left: 4px solid #6366f1;
  background: #eef2ff;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0;
}

/* AI Webmaster Studio v1.5.57 — Graphics rules and controlled media UI */
.aiwest-media-controls {
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  margin: 10px 0;
}
.aiwest-media-controls label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}
.aiwest-media-controls select,
.aiwest-media-controls input[type="number"],
.aiwest-media-controls textarea {
  max-width: 520px;
  width: 100%;
}
.aiwest-media-controls-compact {
  padding: 10px;
  background: #f8fafc;
}
.aiwest-media-controls-compact label {
  font-size: 12px;
  margin-top: 8px;
}
.aiwest-media-controls-compact select,
.aiwest-media-controls-compact textarea {
  max-width: 260px;
}
.aiwest-media-controls-compact input[type="number"] {
  max-width: 90px;
}
.aiwest-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin: 6px 0;
}
.aiwest-inline-fields label {
  margin-top: 0;
}
.aiwest-selected-media-preview {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}
.aiwest-media-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #2271b1;
}
.aiwest-media-row-form {
  margin-top: 8px;
  max-width: 320px;
}

/* AI Webmaster Studio v1.5.59 — Reports diagnostics and scheduler visibility */
.aiwest-status-table th {
  width: 240px;
}
.aiwest-tools-links form {
  display: inline-block;
  margin: 0;
}
.aiwest-wrap .aiwest-card table.aiwest-status-table {
  margin-top: 8px;
}
.aiwest-wrap .aiwest-card h2 {
  margin-top: 0;
}

/* AI Webmaster Studio v1.5.64: post-action preview links in admin notices. */
.aiwest-post-action-notice .aiwest-notice-actions {
  margin-top: 10px;
}
.aiwest-post-action-notice .aiwest-notice-actions .button {
  margin-right: 6px;
  margin-bottom: 4px;
}
.aiwest-post-action-notice .aiwest-notice-details {
  margin-top: 6px;
}
.aiwest-post-action-notice .aiwest-notice-media-preview {
  margin: 8px 0 10px;
}
.aiwest-post-action-notice .aiwest-notice-media-image {
  max-width: 120px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #dcdcde;
  background: #fff;
  padding: 2px;
}
.aiwest-media-preview-image {
  max-width: 70px;
  height: auto;
  border-radius: 6px;
  margin: 4px 8px 0 0;
  vertical-align: middle;
}
