/**
 * All of the CSS for your admin-specific functionality should be
 * included in this file.
 */
#constantcontact-oauth,
#mailchimp-api {
  scroll-margin-top: 150px;
}

#copy-action-btn img {
  width: 15px;
  height: 15px;
  display: block;
}

.copy-action-btn img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

#debug-report {
  display: none;
  margin: 10px 0;
  padding: 0;
  position: relative;
}

#debug-report textarea {
  font-family: monospace;
  width: 100%;
  margin: 0;
  height: 300px;
  padding: 20px;
  border-radius: 0;
  resize: none;
  font-size: 12px;
  line-height: 20px;
  outline: 0;
}

#question_text {
  width: 100%;
}

.card-oracle-admin-display {
  display: block;
  margin: 0 20px 20px 0;
}

.btn-block {
  margin: 10px 0;
}

/* Presentation layout grid */
.card-oracle-presentation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

/* Layout cards */
.card-oracle-layout-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: all 0.2s ease;
}

.card-oracle-layout-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #2271b1;
}

/* Layout images */
.card-oracle-layout-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 4px;
}

/* Layout labels */
.card-oracle-layout-label {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #50575e;
}

.card-oracle-presentation-example {
  font-size: 1.125rem;
  font-weight: 600;
  padding-inline-start: 15px;
}

.card-oracle-modal-dialog > div {
  width: 500px;
  max-width: 90%;
  position: relative;
  margin: 5% auto;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-oracle-modal-dialog .card-oracle-modal-wide {
  width: 80%;
}

#card-oracle-modal-box {
  height: auto;
  max-height: 80vh;
  overflow: auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 0 0 8px 8px;
}

.card-oracle-link-error,
.card-oracle-link-info,
.card-oracle-link-warn {
  border-radius: 10px;
  color: #fff;
  float: inline-end;
  margin: 5px;
  padding: 5px 10px;
  text-decoration: none;
}

.card-oracle-link-error {
  background-color: #d63638;
}

.card-oracle-link-error:hover {
  background-color: #d63638;
  color: #fff;
}

.card-oracle-link-info {
  background-color: #043959;
}

.card-oracle-link-info:hover {
  background-color: #9ec2e6;
  color: #fff;
}

.card-oracle-link-warn {
  background-color: #f0c33c;
}

.card-oracle-link-warn:hover {
  background-color: #bd8600;
  color: #fff;
}

.card-oracle-list {
  align-items: center;
  border: 1px solid #8c8f94;
  border-radius: 10px;
  display: flex;
  height: 40px;
  margin: 5px;
  padding-inline-start: 10px;
  justify-content: space-between;
}

.card-oracle-item {
  color: #135e96;
}

.card-oracle-modal-dialog {
  position: fixed;
  font-family: Arial, Helvetica, sans-serif;
  top: 0;
  inset-inline-end: 0;
  bottom: 0;
  inset-inline-start: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  opacity: 0;
  -webkit-transition: opacity 400ms ease-in;
  transition: opacity 400ms ease-in;
  pointer-events: none;
}

.card-oracle-modal-dialog:target {
  opacity: 1;
  pointer-events: auto;
}

.card-oracle-modal-close {
  background: #f0f0f1;
  color: #2c3338;
  line-height: 32px;
  position: absolute;
  inset-inline-end: 12px;
  text-align: center;
  top: 12px;
  width: 32px;
  height: 32px;
  text-decoration: none;
  font-weight: 400;
  font-size: 20px;
  border-radius: 4px;
  transition: all 0.2s ease;
  z-index: 1;
}

.card-oracle-modal-close:hover {
  background: #2271b1;
  color: #fff;
}

/* Modal header */
.card-oracle-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.card-oracle-modal-header .card-oracle-modal-close {
  position: static;
  flex-shrink: 0;
}

.card-oracle-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1d2327;
}

.card-oracle-modal-link {
  text-align: center;
}

.card-oracle-row {
  display: flex;
}

.card-oracle-row,
.card-oracle-col {
  flex: 1;
}

.card-oracle-row .card-oracle-collast-child {
  margin-inline-start: 1em;
}

/* Accordion styles */

.card-oracle-shortcode-links {
  text-align: center;
}

.card-oracle-tabs {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, 0.5);
}

.card-oracle-tab {
  width: 100%;
  color: #fff;
  overflow: hidden;
}

.card-oracle-tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.card-oracle-tab-label {
  display: flex;
  justify-content: space-between;
  padding: 1em;
  background: #135e96;
  font-weight: bold;
  cursor: pointer;
}

.card-oracle-tab-label:hover {
  background: #0a4b78;
}

.card-oracle-tab-label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  transition: all 0.35s;
}

.card-oracle-tab-content {
  background-color: #f0f0f1;
  color: #135e96;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s;
}

.card-oracle-tab-content li {
  border: 1px solid #8c8f94;
  border-radius: 10px;
  display: flex;
  margin-inline-end: 1em;
  padding-inline-start: 10px;
  padding-top: 10px;
  vertical-align: text-bottom;
  width: calc(100% - 2em);
}

.card-oracle-tab-close {
  display: flex;
  justify-content: flex-end;
  padding: 1em;
  font-size: 0.75em;
  background: #135e96;
  cursor: pointer;
}

.card-oracle-tab-close:hover {
  background: #0a4b78;
}

input:checked + .card-oracle-tab-label {
  background: #0a4b78;
}

input:checked + .card-oracle-tab-label::after {
  transform: rotate(90deg);
}

input:checked ~ .card-oracle-tab-content {
  max-height: 100vh;
  padding: 1em;
}

.card-oracle-back-button {
  display: block;
  margin-inline-start: auto;
}

.card-oracle-admin-display .nav-tab-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #eaf1fb, #f7f9ff);
  border-radius: 999px;
  border: 0 !important;
  border-bottom: 0 !important;
  padding: 6px 14px !important;
  margin: 24px 0 32px;
  box-shadow: 0 18px 36px -28px rgba(19, 94, 150, 0.4);
}

.card-oracle-admin-display .nav-tab-wrapper::before,
.card-oracle-admin-display .nav-tab-wrapper::after {
  display: none;
}

.card-oracle-admin-display .nav-tab {
  border: 0;
  background: transparent;
  color: #2b3e58;
  border-radius: 999px;
  padding: 10px 20px;
  margin: 0 !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  line-height: 1.4;
  float: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card-oracle-admin-display .nav-tab:hover,
.card-oracle-admin-display .nav-tab:focus {
  background: rgba(19, 94, 150, 0.12);
  color: #135e96;
  transform: translateY(-1px);
}

.card-oracle-admin-display .nav-tab-active,
.card-oracle-admin-display .nav-tab-active:hover,
.card-oracle-admin-display .nav-tab-active:focus {
  background: #135e96;
  color: #fff;
  box-shadow: 0 14px 28px -18px rgba(19, 94, 150, 0.55);
  transform: none;
}

.card-oracle-card {
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 52px -38px rgba(26, 58, 108, 0.45);
  overflow: hidden;
}

.card-oracle-card--premium-callout {
  background-color: #fff8e5;
  border-color: #f0c33c;
  border-style: dashed;
}

.card-oracle-card p {
  font-size: 1.25rem;
}

.card-oracle-card-body {
  align-items: center;
  background-color: #f5f7fa;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.1rem;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 1rem;
}

.card-oracle-card-body--column {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-oracle-status-list {
  list-style: disc;
  margin: 0;
  padding-inline-start: 1.25rem;
}

.card-oracle-status-list li {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card-oracle-status-label {
  font-weight: 600;
}

.card-oracle-status-actions {
  margin-top: auto;
}

.card-oracle-premium-badge {
  align-self: center;
  background-color: #d63638;
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  margin-inline-start: auto;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
}

.card-oracle-premium-summary {
  font-size: 1rem;
  margin: 0;
}

.card-oracle-premium-list {
  margin-bottom: 0;
}

.card-oracle-card-header,
.card-oracle-stat-header {
  background: linear-gradient(135deg, #eef3f9, #dfe9f6);
  border: 0;
  border-bottom: 1px solid #d5e2f3;
  color: #1f2b3d;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 20px;
  gap: 0.75rem;
}

.co-dashboard {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 10px;
}

.co-dashboard__hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #182848, #32558b);
  color: #fff;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  box-shadow: 0 32px 60px -40px rgba(10, 21, 40, 0.65);
}

.co-dashboard__hero--subtle {
  background: linear-gradient(135deg, #1d3a62, #2f5a92);
}

.co-dashboard__hero-text {
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.co-dashboard__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.co-dashboard__hero-title {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #2271b1;
}

.co-dashboard__hero-description {
  font-size: 1rem;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.85);
}

.co-dashboard__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.co-dashboard__hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
}

.button-hero {
  font-size: 1rem;
}

.co-dashboard__hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  min-width: 260px;
}

.co-dashboard__metric {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(3px);
}

.co-dashboard__metric-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

.co-dashboard__metric-value {
  font-size: 1.4rem;
  font-weight: 700;
}

.co-dashboard__layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: start;
}

.co-dashboard__primary,
.co-dashboard__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.co-dashboard__section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.co-dashboard__section--panel {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  box-shadow: 0 22px 45px -30px rgba(24, 56, 107, 0.4);
  padding: 24px;
}

.co-dashboard__section-heading > h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #13263f;
}

.co-dashboard__section-heading > p {
  margin: 6px 0 0;
  color: #4a5a73;
  font-size: 0.95rem;
}

.co-dashboard__panel-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.co-dashboard__panel-scroll {
  border: 1px solid #e4ecf6;
  border-radius: 14px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.co-dashboard__panel-scroll table {
  margin-bottom: 0;
}

.co-dashboard__panel-body .form-table {
  background: #f7f9ff;
  border-radius: 14px;
  padding: 16px 20px;
  width: 100%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.co-dashboard__panel-body .form-table th {
  padding-inline-start: 0;
}

.co-dashboard__panel-body .form-table td {
  padding-inline-end: 0;
}

.co-dashboard__tile-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.co-dashboard-tile {
  display: grid;
  grid-template-areas:
    "icon label"
    "icon value"
    "icon description";
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #dfe6ef;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 24px 50px -35px rgba(49, 86, 133, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.co-dashboard-tile:hover,
.co-dashboard-tile:focus {
  transform: translateY(-4px);
  border-color: #9fb4d6;
  box-shadow: 0 30px 60px -35px rgba(25, 66, 120, 0.5);
}

.co-dashboard-tile__icon {
  grid-area: icon;
  align-self: start;
  font-size: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, #1e73be, #3f8bda);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.co-dashboard-tile__label {
  grid-area: label;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2b3e58;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.co-dashboard-tile__value {
  grid-area: value;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f2440;
  margin: 2px 0;
}

.co-dashboard-tile__description {
  grid-area: description;
  font-size: 0.9rem;
  color: #4a5a73;
}

.co-dashboard__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.co-dashboard__link-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.co-dashboard__link-item .dashicons {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #edf3fb;
  color: #215e9d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.co-dashboard__link-content > a {
  font-weight: 600;
  color: #135e96;
  text-decoration: none;
}

.co-dashboard__link-content > a:hover,
.co-dashboard__link-content > a:focus {
  text-decoration: underline;
}

.co-dashboard__link-content > p {
  margin: 4px 0 0;
  color: #4a5a73;
  font-size: 0.9rem;
}

.co-dashboard__support-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-dashboard__tile-grid--readings {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.co-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.co-settings-card {
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  box-shadow: 0 24px 52px -36px rgba(26, 58, 108, 0.45);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-inline-start: 4px solid #2c6cb0;
}

.co-settings-card[data-provider] {
  display: none;
}

.co-settings-card[data-provider].is-active {
  display: flex;
}

.co-settings-card > h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #13263f;
}

.co-settings-table {
  margin: 0;
}

.co-settings-card .form-table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 12px;
  padding: 0 6px;
}

.co-settings-card .form-table th {
  padding: 0 0 6px;
  width: auto;
  font-weight: 600;
  color: #2b3e58;
}

.co-settings-card .form-table td {
  padding: 0 0 18px;
}

.co-settings-card .form-table tr:last-child td {
  padding-bottom: 0;
}

.co-settings-card .form-table tr:last-child th {
  padding-bottom: 0;
}

.co-settings-actions {
  margin-top: 24px;
}

.co-dashboard__badge--inline {
  display: inline-flex;
  align-items: center;
  background: #d63638;
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-inline-start: 8px;
  letter-spacing: 0.05em;
}

.co-dashboard-tile--reading {
  grid-template-areas:
    "label label"
    "value value"
    "description description";
  grid-template-columns: 1fr;
  gap: 10px;
}

.co-dashboard-tile--reading .co-dashboard-tile__description {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
  color: #42526b;
}

.co-dashboard-tile--doc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 24px;
}

.co-dashboard-tile--doc .co-dashboard-tile__icon {
  margin-bottom: 16px;
  color: #1d2327;
}

.co-dashboard-tile--doc .co-dashboard-tile__label {
  font-size: 16px;
  font-weight: 600;
  color: #1d2327;
  margin-bottom: 12px;
  line-height: 1.3;
}

.co-dashboard-tile--doc .co-dashboard-tile__description {
  font-size: 13px;
  line-height: 1.6;
  color: #50575e;
  margin-bottom: 16px;
  flex-grow: 1;
}

.co-dashboard-tile--doc .co-dashboard-tile__actions {
  width: 100%;
  margin-top: auto;
}

.co-dashboard-tile__description--reading form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.co-dashboard-tile__description--reading .button {
  align-self: flex-start;
}

.co-dashboard-tile__installed {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #135e96;
}

/* Documentation Viewer Styles */
.co-doc-breadcrumbs {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #4a5a73;
}

.co-doc-breadcrumbs a {
  color: #135e96;
  text-decoration: none;
}

.co-doc-breadcrumbs a:hover {
  text-decoration: underline;
}

.co-doc-breadcrumbs .separator {
  margin: 0 8px;
  color: #9fb4d6;
}

.co-doc-breadcrumbs .current {
  color: #4a5a73;
}

/* Rendered Markdown Content */
.co-doc-content {
  max-width: 900px;
  line-height: 1.7;
  color: #2b3e58;
}

.co-doc-content h1 {
  font-size: 2rem;
  margin: 32px 0 16px;
  color: #13263f;
  border-bottom: 2px solid #dfe6ef;
  padding-bottom: 12px;
}

.co-doc-content h2 {
  font-size: 1.6rem;
  margin: 28px 0 14px;
  color: #13263f;
  border-bottom: 1px solid #e4ecf6;
  padding-bottom: 8px;
  scroll-margin-top: 100px;
}

.co-doc-content h3 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
  color: #2b3e58;
  scroll-margin-top: 100px;
}

.co-doc-content h4 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: #2b3e58;
  scroll-margin-top: 100px;
}

.co-doc-content h5 {
  font-size: 1rem;
  margin: 18px 0 8px;
  color: #2b3e58;
  font-weight: 600;
  scroll-margin-top: 100px;
}

.co-doc-content h6 {
  font-size: 0.95rem;
  margin: 16px 0 8px;
  color: #2b3e58;
  font-weight: 600;
  scroll-margin-top: 100px;
}

.co-doc-content p {
  margin: 14px 0;
  font-size: 1rem;
}

.co-doc-content a {
  color: #135e96;
  text-decoration: none;
  border-bottom: 1px solid #c3d9f0;
  transition: border-color 0.2s ease;
}

.co-doc-content a:hover {
  border-bottom-color: #135e96;
}

.co-doc-content ul,
.co-doc-content ol {
  margin: 16px 0;
  padding-inline-start: 32px;
}

.co-doc-content li {
  margin: 8px 0;
}

.co-doc-content code {
  background: #f7f9ff;
  border: 1px solid #dfe6ef;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #c7254e;
}

.co-doc-content pre {
  background: #f7f9ff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.co-doc-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #2b3e58;
}

.co-doc-content blockquote {
  border-inline-start: 4px solid #2c6cb0;
  margin: 20px 0;
  padding: 12px 20px;
  background: #f7f9ff;
  border-radius: 0 8px 8px 0;
  color: #4a5a73;
  font-style: italic;
}

.co-doc-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  overflow: hidden;
}

.co-doc-content th {
  background: #edf3fb;
  color: #13263f;
  font-weight: 600;
  padding: 12px 16px;
  text-align: start;
  border-bottom: 2px solid #dfe6ef;
}

.co-doc-content td {
  padding: 12px 16px;
  border-bottom: 1px solid #e4ecf6;
}

.co-doc-content tr:last-child td {
  border-bottom: none;
}

.co-doc-content tr:hover {
  background: #f7f9ff;
}

.co-doc-content hr {
  border: none;
  border-top: 1px solid #dfe6ef;
  margin: 32px 0;
}

.co-doc-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 782px) {
  .co-doc-content {
    padding: 0 12px;
  }

  .co-doc-content h1 {
    font-size: 1.6rem;
  }

  .co-doc-content h2 {
    font-size: 1.3rem;
  }

  .co-doc-content pre {
    padding: 12px;
    font-size: 0.85rem;
  }
}

.card-oracle-stats {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card-oracle-stat {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  box-shadow: 0 24px 52px -36px rgba(26, 58, 108, 0.45);
  overflow: hidden;
}

.card-oracle-stat-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #36465d;
  font-size: 0.95rem;
}

.card-oracle-stat-body p {
  margin: 0;
}

.card-oracle-modal-link a {
  font-weight: 600;
  color: #135e96;
  text-decoration: none;
}

.card-oracle-modal-link a:hover,
.card-oracle-modal-link a:focus {
  text-decoration: underline;
}

.card-oracle-dashboard {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1b2f4a;
  margin-bottom: 10px;
}

.card-oracle-dashboard span {
  font-size: 20px;
  background: #edf3fb;
  color: #215e9d;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-oracle-dashboard h2 {
  margin: 0;
  font-size: 1.3rem;
}

.card-oracle-float-right {
  float: inline-end;
}

.card-oracle-h1 {
  display: inline-block;
}

.card-oracle-icon-button,
.card-oracle-icon-container {
  font-size: 24px;
  height: 24px;
  width: 24px;
}

.card-oracle-icon-container {
  float: inline-end;
}

.card-oracle-message {
  overflow: hidden;
  position: relative;
}

.card-oracle-message.updated {
  border-inline-start-color: #135e96 !important;
  margin: 10px 0 10px 2px;
}

.card-oracle-message a.card-oracle-message-close {
  position: static;
  float: inline-end;
  padding: 0 15px 10px 28px;
  margin-top: -10px;
  font-size: 13px;
  line-height: 1.23076923;
  text-decoration: none;
}

.card-oracle-message a.card-oracle-message-close::before {
  position: relative;
  top: 18px;
  inset-inline-start: -20px;
  -webkit-transition: all 0.1s ease-in-out;
  transition: all 0.1s ease-in-out;
}

.co-dashboard__section--panel .card-oracle-message {
  border: 0;
  border-inline-start: 4px solid #135e96;
  background: linear-gradient(135deg, #ecf4ff, #f6f9ff);
  border-radius: 14px;
  margin: 0;
  padding: 18px 20px;
  box-shadow: 0 16px 34px -28px rgba(19, 94, 150, 0.45);
}

.co-dashboard__section--panel .card-oracle-message .submit {
  margin: 12px 0 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.card-oracle-metabox {
  font-weight: 700;
  margin-bottom: 10px;
  margin-inline-end: 10px;
}

.card-oracle-metabox-number {
  width: 5em;
}

.card-oracle-multibox {
  margin-inline-end: 10px;
}

.card-oracle-multiflex {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  margin-inline-start: -10px;
  margin-top: -10px;
}

.card-oracle-multiitem {
  background: #135e96;
  border-radius: 10px;
  box-sizing: border-box;
  color: #fff;
  flex: 0 0 200px;
  flex-shrink: 0;
  margin-inline-start: 10px;
  margin-top: 10px;
  padding: 10px;
}

.card-oracle-multiitem label {
  vertical-align: baseline;
}

.card-oracle-reading-heading {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-oracle-reading {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0;
}

.card-oracle-reading-table p {
  margin-top: 0;
}

.card-oracle-reading-table td {
  padding: 15px 10px;
  text-align: start;
  vertical-align: middle;
}

.card-oracle-reading-table th {
  font-size: 14px;
  font-weight: 600;
  padding: 18px 10px 20px 0;
  text-align: start;
  vertical-align: top;
}

.card-oracle-reading-table thead td {
  font-size: 20px;
  font-weight: 600;
  padding: 18px 10px 20px 0;
  text-align: start;
  vertical-align: top;
}

.card-oracle-readings {
  display: grid;
  grid-template-columns: minmax(500px, 1fr);
  margin: 1rem 0;
}

.card-oracle-shortcode-body {
  display: flex;
  justify-content: space-between;
}

.card-oracle-modal-dialog h2 {
  margin: 0;
  padding: 24px 24px 16px 24px;
  font-size: 20px;
  font-weight: 600;
  color: #1d2327;
  border-bottom: 1px solid #dcdcde;
}

.card-oracle-shortcode-header {
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  margin: 16px 0 8px 0;
  padding: 0;
  background: none;
  border: none;
  display: block;
}

.card-oracle-shortcode-header p {
  margin: 0;
  padding: 0;
}

.card-oracle-shortcode-link {
  bottom: 0;
  position: absolute;
}

.card-oracle-slider {
  background-color: #c3c4c7;
  bottom: 0;
  cursor: pointer;
  inset-inline-start: 0;
  position: absolute;
  inset-inline-end: 0;
  top: 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.card-oracle-slider::before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 21px;
  inset-inline-start: 4px;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  width: 21px;
}

.card-oracle-slider.round {
  border-radius: 29px;
}

.card-oracle-slider.round::before {
  border-radius: 50%;
}

.card-oracle-card_reading_metabox {
  border: 1px solid #135e96;
  border-radius: 4px;
  box-shadow: 0 3rem 2rem -3rem rgba(0, 0, 0, 0.2);
  padding: 5px;
}

.card-oracle-checkbox {
  display: inline-block;
  height: 29px;
  position: relative;
  width: 55px;
}

.card-oracle-checkbox input {
  display: none;
}

.card-oracle-version {
  margin-inline-start: 10px;
  margin-inline-end: 7px;
}

.card-oracle-help-blank {
  display: none;
}

.card-oracle-help-tip {
  background-color: #9ec2e6;
  border-radius: 50%;
  cursor: help;
  font-size: 14px;
  height: 20px;
  line-height: 20px;
  position: absolute;
  text-align: center;
  width: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.card-oracle-help-tip::before {
  color: #fff;
  content: '?';
  font-weight: bold;
}

.card-oracle-help-tip p {  /* The tooltip */
  background-color: #1d2327;
  border-radius: 3px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
  color: #fff;
  display: none;
  padding: 10px;
  position: absolute;
  inset-inline-end: -4px;
  text-align: start;
  width: 300px;
  z-index: 100;
}

.card-oracle-help-tip:hover {
  z-index: 200;
}

.card-oracle-help-tip:hover p {
  animation: fadein 0.3s ease-in-out;
  -webkit-animation: fadein 0.3s ease-in-out;
  display: block;
  transform-origin: 100% 0%;
}

.card-oracle-help-tip p::before { /* The pointer of the tooltip */
  border: 6px solid transparent;
  border-bottom-color: #1d2327;
  content: '';
  height: 0;
  position: absolute;
  inset-inline-end: 10px;
  top: -12px;
  width: 0;
}

.card-oracle-help-tip p::after { /* Prevents the tooltip from being hidden */
  content: '';
  height: 40px;
  inset-inline-start: 0;
  position: absolute;
  top: -40px;
  width: 100%;
}

.card-oracle-copy-hidden {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s 2s, opacity 2s linear;
  -webkit-transition: visibility 0s 2s, opacity 2s linear;
}

.card-oracle-copy-visible {
  animation: fadein 0.5s ease-in-out;
  -webkit-animation: fadein 0.5s ease-in-out;
  opacity: 1;
  visibility: visible;
}

.card-oracle-sortable-placeholder {
  border-color: #9ec2e6;
  background-color: #9ec2e6;
  margin-bottom: 9px;
  border-width: 1px;
  border-style: dashed;
}

/* CSS animation */
@-webkit-keyframes fadein {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }

  100% {
    opacity: 100%;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 100%; }
}

.card-oracle-modal-dialog > div > div {
  padding: 20px 24px 24px 24px;
}

.card-oracle-shortcode-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.card-oracle-shortcode-header {
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  display: block;
  min-width: 140px;
  flex-shrink: 0;
}

input.card-oracle-shortcode {
  background-color: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  color: #2c3338;
  font-family: Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  height: 36px;
  padding: 0 12px;
  flex: 1;
}

input.card-oracle-shortcode:focus {
  background-color: #fff;
  border-color: #2271b1;
  outline: none;
  box-shadow: 0 0 0 1px #2271b1;
}

.card-oracle-modal-dialog .copy-action-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2271b1;
  background: #2271b1;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.card-oracle-modal-dialog .copy-action-btn:hover {
  background: #135e96;
  border-color: #135e96;
}

input:checked + .card-oracle-slider {
  background-color: #135e96;
}

input:checked + .card-oracle-slider::before {
  -ms-transform: translateX(26px);
  -webkit-transform: translateX(26px);
  transform: translateX(26px);
}

input:focus + .card-oracle-slider {
  box-shadow: 0 0 1px #3582c4;
}

.card-oracle-color-3 {
  color: #135e96 !important;
}

table.card_oracle_wizard_table,
.co-dashboard__panel-body table.card_oracle_status_table {
  margin-bottom: 24px;
  border-radius: 14px;
  border: 1px solid #dfe6ef;
  overflow: visible;
  box-shadow: 0 20px 44px -32px rgba(19, 94, 150, 0.45);
}

.co-dashboard__panel-body table.card_oracle_status_table h2 {
  color: #1f2b3d;
}

table.card_oracle_status_table {
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 1em;
  width: 100%;
  overflow: visible;
}

table.card_oracle_wizard_table h2,
table.card_oracle_status_table h2 {
  font-size: 14px;
  margin: 0;
}

table.card_oracle_wizard_table tfoot,
table.card_oracle_status_table tfoot {
  background-color: #f6f7f7;
  padding: 12px;
}

table.card_oracle_wizard_table th,
table.card_oracle_status_table th {
  background-color: #f6f7f7;
  border-top: 0;
  font-weight: 600;
  padding: 12px;
}

table.card_oracle_wizard_table td.help-tip,
table.card_oracle_status_table td.help-tip {
  cursor: help;
  position: relative;
  width: 1em;
}

table.card_oracle_wizard_table td,
table.card_oracle_wizard_table th,
table.card_oracle_status_table td,
table.card_oracle_status_table th {
  font-size: 14px;
  font-weight: 400;
  vertical-align: middle;
}

table.card_oracle_wizard_table td strong.name,
table.card_oracle_wizard_table th strong.name,
table.card_oracle_status_table td strong.name,
table.card_oracle_status_table th strong.name {
  display: block;
  margin-bottom: 0.5em;
}

table.card_oracle_status_table td mark,
table.card_oracle_status_table th mark {
  background: transparent none;
}

table.card_oracle_status_table td mark.yes,
table.card_oracle_status_table th mark.yes {
  color: #00ba37;
}

table.card_oracle_status_table td mark.no,
table.card_oracle_status_table th mark.no {
  color: #8c8f94;
}

table.card_oracle_status_table td .red,
table.card_oracle_status_table td mark.error,
table.card_oracle_status_table th .red,
table.card_oracle_status_table th mark.error {
  color: #d63638;
}

table.card_oracle_status_table td ul,
table.card_oracle_status_table th ul {
  margin: 0;
}

table.card_oracle_wizard_table--tools td,
table.card_oracle_wizard_table--tools th,
table.card_oracle_status_table--tools td,
table.card_oracle_status_table--tools th {
  padding: 2em;
}

table.card_oracle_status_table td:first-child {
  width: 33%;
}

table.card_oracle_wizard_table tbody {
  cursor: move;
}

.card-oracle-wizard {
  max-width: 960px;
}

.card-oracle-wizard-intro {
  color: #42526b;
  font-size: 1rem;
  margin-bottom: 18px;
}

.card-oracle-wizard-intro p {
  margin: 0 0 10px;
}

.card-oracle-wizard-section {
  margin-bottom: 24px;
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  box-shadow: 0 24px 52px -36px rgba(26, 58, 108, 0.45);
  padding: 24px;
  border-inline-start: 4px solid #2c6cb0;
}

.card-oracle-wizard-section table.card_oracle_status_table,
.card-oracle-wizard-section table.card_oracle_wizard_table {
  border: 0;
  box-shadow: none;
  margin-bottom: 0;
  border-radius: 0;
}

.card-oracle-wizard-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-oracle-wizard-inline .regular-text {
  flex: 1 1 220px;
}

.card-oracle-wizard-inline .button {
  margin: 0;
}

.card-oracle-wizard-input {
  max-width: 320px;
}

.card-oracle-wizard-group {
  padding: 24px;
  background: #f6f7f9;
  border: 1px solid #dfe6ef;
  border-inline-start: 4px solid #2271b1;
  border-radius: 16px;
  box-shadow: 0 24px 52px -36px rgba(26, 58, 108, 0.45);
  margin-bottom: 24px;
}

.card-oracle-wizard-group-header {
  margin-bottom: 24px;
}

.card-oracle-wizard-group-header h2 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #1d2327;
}

.card-oracle-wizard-group-header p {
  margin: 0;
  font-size: 14px;
  color: #50575e;
  line-height: 1.5;
}

.card-oracle-wizard-group .card-oracle-wizard-section {
  border-inline-start: 1px solid #dfe6ef;
}

.card-oracle-wizard-group .card-oracle-wizard-section:last-of-type {
  margin-bottom: 0;
}

.card-oracle-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.card-oracle-wizard-actions .button {
  margin: 0;
}

.card-oracle-card--onboarding {
  border-inline-start: 4px solid #2c6cb0;
}

.card-oracle-card--onboarding-dismissed {
  border-inline-start: 4px solid #8c8f94;
}

.card-oracle-onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-oracle-onboarding-dismiss {
  margin: 0;
}

.card-oracle-onboarding-dismiss__button {
  color: #50575e;
  text-decoration: none;
}

.card-oracle-onboarding-progress {
  margin: 0 0 12px;
  font-weight: 600;
}

.card-oracle-onboarding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-oracle-onboarding-task {
  display: flex;
  align-items: center;
  background: #f6f7f7;
  border-radius: 4px;
  padding: 12px;
}

.card-oracle-onboarding-task__status {
  font-size: 18px;
  line-height: 1;
  color: #8c8f94;
  margin-inline-end: 12px;
}

.card-oracle-onboarding-task__status--complete {
  color: #00a32a;
}

.card-oracle-onboarding-task__content {
  flex: 1 1 auto;
  margin-inline-end: 12px;
}

.card-oracle-onboarding-task__label {
  display: block;
  font-weight: 600;
}

.card-oracle-onboarding-task__description {
  display: block;
  color: #50575e;
  font-size: 13px;
}

.card-oracle-onboarding-task__action {
  margin: 0;
  margin-inline-start: auto;
}

.card-oracle-onboarding-task--complete {
  background: #f1fdf5;
  border: 1px solid rgba(0, 163, 42, 0.25);
}

.card-oracle-onboarding-task--complete .card-oracle-onboarding-task__label {
  text-decoration: line-through;
}

.card-oracle-onboarding-dismissed {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-oracle-onboarding-dismissed .dashicons {
  color: #8c8f94;
}

@media (max-width: 782px) {
  .co-dashboard__hero {
    padding: 28px 24px;
  }

  .co-dashboard__hero-metrics {
    width: 100%;
  }

  .co-dashboard__layout {
    grid-template-columns: 1fr;
  }

  .co-dashboard__section--panel {
    padding: 20px;
  }

  .co-dashboard__tile-grid {
    grid-template-columns: 1fr;
  }

  .card-oracle-wizard-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .card-oracle-wizard-inline .regular-text,
  .card-oracle-wizard-inline .button {
    width: 100%;
  }

  .card-oracle-wizard-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .card-oracle-wizard-actions .button {
    width: 100%;
  }

  .card-oracle-onboarding-task {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-oracle-onboarding-task__status,
  .card-oracle-onboarding-task__content {
    margin-inline-end: 0;
  }

  .card-oracle-onboarding-task__action {
    width: 100%;
    text-align: center;
    margin-inline-start: 0;
  }
}

.card-oracle-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.card-oracle-toggle-thumb {
  align-items: center;
  background-color: #ccc;
  border-radius: 40px;
  bottom: 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  inset-inline-start: 0;
  overflow: hidden;
  position: absolute;
  inset-inline-end: 0;
  top: 0;
}

.card-oracle-toggle-thumb::before {
  background-color: #f0f6fc;
  border-radius: 50%;
  bottom: 4px;
  content: "";
  height: 26px;
  width: 26px;
  position: absolute;
  inset-inline-start: 4px;
  transition: 0.4s all ease;
}

.card-oracle-checkbox:checked + .card-oracle-toggle-thumb::before {
  transform: translateX(26px);
}
.card-oracle-checkbox:checked + .card-oracle-toggle-thumb {
  background-color: #2271b1;
}

.card-oracle-toggle-thumb svg {
  transition: 0.4s all ease;
}

.card-oracle-toggle-thumb svg:nth-child(1) {
  position: relative;
  inset-inline-start: -26px;
}

.card-oracle-checkbox:checked + .card-oracle-toggle-thumb > svg {
  transform: translateX(26px);
}

/* Yes/No Radio Button Group Styles */
.card-oracle-radio-group {
  display: inline-flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #8c8f94;
}

.card-oracle-radio-option {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.card-oracle-radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-oracle-radio-label {
  display: inline-block;
  padding: 6px 16px;
  background-color: #f0f0f1;
  color: #50575e;
  font-weight: 500;
  font-size: 13px;
  transition: all 0.2s ease;
  border-inline-end: 1px solid #8c8f94;
}

.card-oracle-radio-option:last-child .card-oracle-radio-label {
  border-inline-end: none;
}

.card-oracle-radio-option input[type="radio"]:checked + .card-oracle-radio-label {
  background-color: #2271b1;
  color: #fff;
}

.card-oracle-radio-option input[type="radio"]:focus + .card-oracle-radio-label {
  box-shadow: 0 0 0 2px #2271b1;
  outline: 2px solid transparent;
}

.card-oracle-radio-option:hover .card-oracle-radio-label {
  background-color: #dcdcde;
}

.card-oracle-radio-option input[type="radio"]:checked:hover + .card-oracle-radio-label {
  background-color: #135e96;
}

.card-oracle-form-button {
  background-color: #2271b1;
  color: #fff;
  padding: 10px 40px;
}

.card-oracle-form-left {
  text-align: start;
  padding-bottom: 10px;
}

.card-oracle-form-center {
  text-align: center;
  padding-bottom: 10px;
}

.card-oracle-form-right {
  overflow: hidden;
}

.card-oracle-form-right input,
.card-oracle-form-right button {
  clear: both;
  float: inline-end;
  margin: 15px 0;
}

.card-oracle-form-inline-center {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

.card-oracle-form-inline-right {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-end;
}

.card-oracle-form-inline-left {
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
}

.card-oracle-form-inline-justified {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

.card-oracle-grid-wrapper {
  display: grid;
  grid-template-areas:
    'header header'
    'label content'
    'bottom footer';
  grid-template-columns: 1fr 4fr;
  grid-gap: 0.5rem;
  padding: 5px 0 10px 0;
}

.card-oracle-grid-section {
  grid-area: header;
  font-size: 1.5rem;
  border-bottom: 2px solid #043959;
}

/* Metabox section card styling (matches dashboard co-settings-card) */
.card-oracle-metabox-section {
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  box-shadow: 0 24px 52px -36px rgba(26, 58, 108, 0.45);
  padding: 24px;
  border-inline-start: 4px solid #2c6cb0;
  margin-bottom: 20px;
}

.card-oracle-metabox-section-heading {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #13263f;
}

.card-oracle-metabox-section .card-oracle-grid-wrapper {
  padding: 8px 0;
}

.card-oracle-metabox-section .card-oracle-grid-section {
  display: none;
}

.card-oracle-metabox-text-editor {
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 16px;
  box-shadow: 0 24px 52px -36px rgba(26, 58, 108, 0.45);
  padding: 24px;
  border-inline-start: 4px solid #2c6cb0;
  margin-bottom: 20px;
}

.card-oracle-metabox-text-editor-heading {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #13263f;
}

.card-oracle-grid-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2b3e58;
  grid-area: label;
  align-self: center;
}

/* Visual Layout Selector */
.card-oracle-layout-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card-oracle-layout-selector .layout-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: 2px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 80px;
}

.card-oracle-layout-selector .layout-option:hover {
  border-color: #135e96;
  background: #f0f6fc;
}

.card-oracle-layout-selector .layout-option.selected {
  border-color: #135e96;
  background: #135e96;
  color: #fff;
}

.card-oracle-layout-selector .layout-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-oracle-layout-selector .layout-icon svg {
  width: 100%;
  height: 100%;
}

.card-oracle-layout-selector .layout-label {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.card-oracle-layout-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-oracle-layout-group:last-child {
  margin-bottom: 0;
}

.card-oracle-layout-group .layout-group-label {
  font-weight: 600;
  min-width: 80px;
  color: #1d2327;
}

.card-oracle-layout-demo {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 20px;
  margin-top: 8px;
  flex: 1;
}

.card-oracle-layout-demo #card-oracle-display-layout {
  display: flex;
  gap: 10px;
}

.card-oracle-layout-demo .card-oracle-form-textbox {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  color: #2c3338;
  min-width: 0;
}

.card-oracle-layout-demo .card-oracle-form-textbox::placeholder {
  color: #787c82;
}

.card-oracle-layout-demo .card-oracle-form-button {
  padding: 10px 20px;
  background: #135e96;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  white-space: nowrap;
}

/* Stacked layouts */
.card-oracle-layout-demo .card-oracle-form-left,
.card-oracle-layout-demo .card-oracle-form-center,
.card-oracle-layout-demo .card-oracle-form-right {
  flex-direction: column;
}

.card-oracle-layout-demo .card-oracle-form-left {
  align-items: flex-start;
}

.card-oracle-layout-demo .card-oracle-form-center {
  align-items: center;
}

.card-oracle-layout-demo .card-oracle-form-right {
  align-items: flex-end;
}

.card-oracle-layout-demo .card-oracle-form-left .card-oracle-form-textbox,
.card-oracle-layout-demo .card-oracle-form-center .card-oracle-form-textbox,
.card-oracle-layout-demo .card-oracle-form-right .card-oracle-form-textbox {
  width: 100%;
  max-width: 300px;
}

/* Inline layouts */
.card-oracle-layout-demo .card-oracle-form-inline-left,
.card-oracle-layout-demo .card-oracle-form-inline-center,
.card-oracle-layout-demo .card-oracle-form-inline-right {
  flex-direction: row;
  align-items: center;
}

.card-oracle-layout-demo .card-oracle-form-inline-left {
  justify-content: flex-start;
}

.card-oracle-layout-demo .card-oracle-form-inline-center {
  justify-content: center;
}

.card-oracle-layout-demo .card-oracle-form-inline-right {
  justify-content: flex-end;
}

.card-oracle-layout-demo .card-oracle-form-inline-left .card-oracle-form-textbox,
.card-oracle-layout-demo .card-oracle-form-inline-center .card-oracle-form-textbox,
.card-oracle-layout-demo .card-oracle-form-inline-right .card-oracle-form-textbox {
  flex: 0 1 200px;
}

.card-oracle-boxes {
  min-height: 100vh;
  position: relative;
  width: 100%;
}

.card-oracle-boxes div {
  display: inline;
}

.card-oracle-boxes div a {
  margin-inline-start: -1px;
  position: relative;
  inset-inline-start: 1px;
  text-decoration: none;
  color: #000;
  display: block;
  float: inline-start;
  padding: 5px 10px;
  border: 1px solid #c3c4c7;
  border-bottom: 1px solid #fff;
}

.card-oracle-boxes div:not(:target) a {
  border-bottom: 0;
  background: -moz-linear-gradient(top, #fff, #f0f0f1);
}

.card-oracle-boxes div:target a {
  background: #fff;
}

.card-oracle-boxes div div {
  background: #fff;
  z-index: -2;
  inset-inline-start: 0;
  top: 30px;
  bottom: 0;
  inset-inline-end: 0;
  padding: 20px;
}

.card-oracle-boxes div:not(:target) div {
  position: absolute;
}

.card-oracle-boxes div:target div {
  position: absolute;
  z-index: -1;
}

.card-oracle-grid-content {
  grid-area: content;
  align-content: left;
}

.card-oracle-grid-footer {
  grid-area: footer;
  font-size: 0.8125rem;
  color: #646970;
  margin-top: 4px;
}

.card-oracle-grid-footer--with-preview {
  display: block;
}

.card-oracle-grid-footer--with-preview .card-oracle-supplemental {
  margin-bottom: 12px;
}

.card-oracle-grid-footer--with-preview .card-oracle-layout-preview {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #dcdcde;
}

.card-oracle-grid-footer--with-preview .layout-group-label {
  font-weight: 600;
  min-width: 80px;
  color: #1d2327;
  padding-top: 10px;
  font-size: 13px;
}

.card-oracle-radio-toolbar input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.card-oracle-radio-toolbar label {
  background-color: #dcdcde;
  border: 2px solid #3c434a;
  border-radius: 10px;
  display: inline-block;
  margin-inline-end: 5px;
  padding: 5px 10px;
  font-size: 1rem;
}

.card-oracle-radio-toolbar label:hover {
  background-color: #2271b1;
  color: #fff;
}

.card-oracle-radio-toolbar input:focus + label {
  border: 2px dashed #3c434a;
}

.card-oracle-radio-toolbar input:checked + label {
  background-color: #135e96;
  color: #fff;
  border-color: #1ed14b;
}

/* Settings Error Styling */
.settings-error {
  margin: 20px 0;
  padding: 12px;
  border-inline-start: 4px solid #d63638;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.settings-error.error {
  border-inline-start-color: #d63638;
}

.settings-error p {
  margin: 0.5em 0;
  padding: 2px;
}

/* Highlight invalid API key fields */
.co-settings-table input[type="text"].form-invalid,
.co-settings-table input[type="text"]:invalid {
  border-color: #d63638;
  box-shadow: 0 0 0 1px #d63638;
}

/* Add error icon to invalid fields */
.co-settings-table tr.form-invalid input[type="text"]::after {
  content: "⚠";
  color: #d63638;
  margin-inline-start: 8px;
}

/* Progress Modal Styles */
.co-install-modal {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
}

.co-install-modal-overlay {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.co-install-modal-content {
  position: absolute;
  top: 50%;
  inset-inline-start: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 500px;
  z-index: 100001;
}

.co-install-modal-icon {
  margin-bottom: 20px;
}

.co-install-spinner {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #2271b1;
  animation: co-spin 1s linear infinite;
}

@keyframes co-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.co-install-modal-content h2 {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: #1d2327;
}

.co-install-modal-content p {
  margin: 0;
  font-size: 14px;
  color: #50575e;
  line-height: 1.6;
}

.co-warning-icon {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #dba617;
}

.co-modal-buttons {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.co-button-danger {
  background: #d63638 !important;
  border-color: #d63638 !important;
}

.co-button-danger:hover {
  background: #b32d2e !important;
  border-color: #b32d2e !important;
}
