/* CEP License Tools UI. Scoped to .cept-shell so the WP theme stays untouched. */
.cept-shell,
.cept-shell * { box-sizing: border-box; min-width: 0; }

.cept-shell {
  --cept-ink: #252833;
  --cept-primary: #2f5d62;
  --cept-primary-2: #42787b;
  --cept-accent: #e45f4f;
  --cept-good: #1b9e83;
  --cept-warn: #b97514;
  --cept-bg: #f7f8f6;
  --cept-soft: #eef6f4;
  --cept-surface: #ffffff;
  --cept-muted: #606b75;
  --cept-line: #dce8e5;
  --cept-good-bg: #e7f6f1;
  --cept-warn-bg: #fbf1e0;
  --cept-panel-bg: #fbfdfd;
  --cept-radius: 8px;
  /* Type scale. Seven steps, identical values in all three plugins. Use a
     step; do not invent a size. A new step goes into all three files. */
  --cept-fs-xs: .75rem;                       /* 12px  eyebrow, badge, term label */
  --cept-fs-sm: .8125rem;                     /* 13px  meta, caption, dense table text */
  --cept-fs-md: .875rem;                      /* 14px  secondary body, buttons, UI text */
  --cept-fs-base: 1rem;                       /* 16px  body */
  --cept-fs-lg: 1.25rem;                      /* 20px  card title, h3, lead */
  --cept-fs-xl: 1.5rem;                       /* 24px  section h2, stat number */
  --cept-fs-2xl: clamp(1.9rem, 4.6vw, 2.6rem);/* 30-42px fluid  hero h1, price */
  --cept-radius-sm: 8px;
  --cept-pill: 999px;
  --cept-shadow: 0 1px 2px rgba(23, 28, 40, .04), 0 8px 24px rgba(23, 28, 40, .07);
  --cept-shadow-sm: 0 2px 10px rgba(23, 28, 40, .06);
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto 28px;
  padding: 0;
  overflow-x: clip;
  color: var(--cept-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: var(--cept-fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.cept-shell a { color: inherit; }
.cept-shell button,
.cept-shell input,
.cept-shell select,
.cept-shell textarea { color: inherit; font: inherit; }

.cept-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  padding: clamp(24px, 3.6vw, 38px);
  border: 1px solid var(--cept-line);
  border-top: 5px solid var(--cept-primary);
  border-radius: var(--cept-radius);
  background: linear-gradient(135deg, #fbfdfd, #fff 76%);
  box-shadow: var(--cept-shadow-sm);
}
.cept-hero h1 {
  max-width: 880px;
  margin: 5px 0 10px;
  color: var(--cept-ink);
  font-size: var(--cept-fs-2xl);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}
.cept-hero p { max-width: 760px; margin: 0; color: var(--cept-muted); font-size: var(--cept-fs-base); }
.cept-eyebrow {
  margin: 0 0 3px;
  color: var(--cept-primary);
  font-size: var(--cept-fs-xs);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.cept-grid,
.cept-compare,
.cept-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.cept-task-strip {
  counter-reset: cept-task;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.cept-task-strip li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: #fff;
  box-shadow: var(--cept-shadow-sm);
}
.cept-task-strip b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--cept-primary);
  color: #fff;
  font-size: var(--cept-fs-md);
  line-height: 1;
}
.cept-task-strip strong,
.cept-task-strip em { display: block; }
.cept-task-strip strong { color: var(--cept-ink); font-weight: 850; line-height: 1.22; }
.cept-task-strip em { margin-top: 3px; color: var(--cept-muted); font-size: var(--cept-fs-md); font-style: normal; line-height: 1.42; }

.cept-card,
.cept-state-card,
.cept-tool-card,
.cept-course,
.cept-panel {
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: var(--cept-surface);
  box-shadow: var(--cept-shadow);
}
.cept-card,
.cept-state-card,
.cept-tool-card,
.cept-course,
.cept-panel { padding: 18px; }
.cept-card h2,
.cept-state-card h2,
.cept-tool-card h2,
.cept-course h2 { margin: 3px 0 8px; line-height: 1.22; }
.cept-card p,
.cept-tool-card p,
.cept-course p { margin: 0 0 10px; color: var(--cept-muted); }
.cept-tool-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 184px;
  border-color: rgba(47, 93, 98, .18);
}
.cept-tool-card:hover {
  border-color: rgba(47, 93, 98, .44);
  box-shadow: 0 10px 30px rgba(23, 28, 40, .1);
  transform: translateY(-1px);
}
.cept-tool-card h2 a { color: var(--cept-ink); text-decoration: none; }
.cept-tool-card h2 a:hover { color: var(--cept-primary); text-decoration: underline; text-underline-offset: 3px; }

.cept-stat-grid { margin: 0 0 14px; }
.cept-stat {
  padding: 12px 14px;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: #fff;
  box-shadow: none;
}
.cept-stat span { display: block; color: var(--cept-muted); font-size: var(--cept-fs-sm); font-weight: 800; letter-spacing: 0; text-transform: none; }
.cept-stat strong { display: block; margin-top: 4px; color: var(--cept-primary); font-size: var(--cept-fs-xl); line-height: 1.1; }
.cept-stat em { display: block; margin-top: 3px; color: var(--cept-muted); font-size: var(--cept-fs-md); font-style: normal; }

.cept-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: #fff;
  box-shadow: var(--cept-shadow-sm);
}
.cept-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}
.cept-work-main { min-width: 0; }
.cept-side-panel {
  padding: 18px;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: var(--cept-panel-bg);
  box-shadow: var(--cept-shadow-sm);
}
.cept-side-panel h2 { margin: 3px 0 8px; color: var(--cept-ink); font-size: var(--cept-fs-lg); line-height: 1.22; }
.cept-side-panel p { margin: 0 0 10px; color: var(--cept-muted); }
.cept-form-two .cept-field { min-width: min(100%, 260px); }
.cept-field { display: grid; gap: 6px; min-width: min(100%, 310px); font-weight: 800; }
.cept-field span { color: var(--cept-muted); font-size: var(--cept-fs-sm); letter-spacing: 0; text-transform: none; }
.cept-field select,
.cept-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1.5px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: #fff;
  color: var(--cept-ink);
}
.cept-field select {
  appearance: none;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cept-muted) 50%),
    linear-gradient(135deg, var(--cept-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
.cept-field input:focus-visible,
.cept-field select:focus-visible,
.cept-button:focus-visible,
.cept-text-link:focus-visible { outline: 3px solid rgba(47, 93, 98, .35); outline-offset: 2px; }
.cept-search { margin: 0 0 12px; }
.cept-table-status { margin: -4px 0 10px; color: var(--cept-muted); font-size: var(--cept-fs-md); font-weight: 750; }

.cept-button,
.cept-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--cept-radius-sm);
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}
.cept-button {
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid var(--cept-accent);
  background: linear-gradient(135deg, var(--cept-accent), #D6544B);
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(232, 106, 94, .18);
}
.cept-button:hover { box-shadow: 0 8px 22px rgba(232, 106, 94, .28); transform: translateY(-1px); }
.cept-button:active { transform: scale(.98); }
.cept-button-secondary { background: #fff; color: var(--cept-primary) !important; border-color: var(--cept-line); box-shadow: none; }
.cept-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.cept-text-link { width: max-content; min-height: 34px; color: var(--cept-primary); }
.cept-text-link:hover { color: var(--cept-accent); text-decoration: underline; text-underline-offset: 3px; }

.cept-table-wrap {
  overflow: auto;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: #fff;
  box-shadow: var(--cept-shadow-sm);
}
.cept-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.cept-table th,
.cept-table td { padding: 11px 12px; border-bottom: 1px solid var(--cept-line); text-align: left; vertical-align: top; }
.cept-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--cept-soft);
  color: var(--cept-primary);
  font-size: var(--cept-fs-sm);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cept-table tbody tr:nth-child(even) { background: #FBFAFD; }
.cept-table tbody tr:hover { background: #fdf7f5; }
.cept-table tbody tr:last-child th,
.cept-table tbody tr:last-child td { border-bottom: 0; }
.cept-table th a { color: var(--cept-ink); text-decoration: none; }
.cept-table th a:hover { color: var(--cept-primary); text-decoration: underline; text-underline-offset: 3px; }
.cept-requirements-table { min-width: 620px; }
.cept-requirements-table th:first-child { width: 34%; }
.cept-requirements-table th a span { color: var(--cept-muted); font-weight: 700; }

.cept-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.cept-facts div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: var(--cept-bg);
}
.cept-facts dt { color: var(--cept-muted); font-size: var(--cept-fs-xs); font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.cept-facts dd { margin: 4px 0 0; color: var(--cept-primary); font-size: var(--cept-fs-base); font-weight: 850; line-height: 1.25; }
.cept-source { color: var(--cept-primary); font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.cept-source:hover { color: var(--cept-accent); text-decoration: underline; text-underline-offset: 3px; }

.cept-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: var(--cept-pill);
  background: var(--cept-soft);
  color: var(--cept-primary);
  font-size: var(--cept-fs-xs);
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}
.cept-badge-good { background: var(--cept-good-bg); color: var(--cept-good); }
.cept-badge-warn { background: var(--cept-warn-bg); color: var(--cept-warn); }
.cept-state-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.cept-state-head > div { min-width: 0; }
.cept-state-head h2 { margin-bottom: 4px; }

.cept-disclaimer,
.cept-notice {
  margin: 14px 0 0;
  padding: 13px 14px;
  border-radius: var(--cept-radius);
  background: var(--cept-warn-bg);
  color: #5a4109;
}
.cept-disclaimer { border-left: 4px solid var(--cept-warn); }
.cept-notice { border: 1px solid #efd49d; }
.cept-checklist-card { padding: 10px; }
.cept-checklist {
  counter-reset: cept-checklist;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cept-checklist li {
  counter-increment: cept-checklist;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: var(--cept-panel-bg);
}
.cept-checklist li::before {
  content: counter(cept-checklist);
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cept-primary);
  color: #fff;
  font-size: var(--cept-fs-xs);
  font-weight: 850;
  line-height: 1;
}

.cept-course {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-color: rgba(47, 93, 98, .22);
}
.cept-course h2 { color: var(--cept-ink); }
.cept-course .cept-button { box-shadow: 0 6px 18px rgba(232, 106, 94, .14); }
.cept-tools-nav {
  margin-top: 16px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: transparent;
}
.cept-page-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px;
  border: 1px solid var(--cept-line);
  border-radius: var(--cept-radius);
  background: #fff;
  box-shadow: var(--cept-shadow-sm);
}
.cept-page-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--cept-radius-sm);
  color: var(--cept-primary);
  font-size: var(--cept-fs-md);
  font-weight: 850;
  text-decoration: none;
  text-align: center;
}
.cept-page-nav a:hover { background: var(--cept-soft); }
.cept-tools-nav h2,
.cept-tools-nav h3 { margin: 0 0 8px; font-size: var(--cept-fs-base); color: var(--cept-primary); }
.cept-tools-nav ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cept-tools-nav a { display: grid; gap: 2px; min-height: 54px; padding: 9px 10px; border: 1px solid var(--cept-line); border-radius: var(--cept-radius); background: #fff; color: var(--cept-ink); font-weight: 800; text-decoration: none; }
.cept-tools-nav a strong { color: var(--cept-ink); line-height: 1.22; }
.cept-tools-nav a span { color: var(--cept-muted); font-size: var(--cept-fs-sm); font-weight: 750; line-height: 1.25; }
.cept-tools-nav a:hover { border-color: var(--cept-primary); color: var(--cept-primary); }
.cept-tools-nav a[aria-current="page"] { border-color: rgba(107, 65, 96, .35); background: #edf6f5; color: var(--cept-primary); }

.cept-empty {
  padding: 18px;
  border: 1px solid var(--cept-line);
  border-left: 4px solid var(--cept-warn);
  border-radius: var(--cept-radius);
  background: #fff;
  color: #6b520f;
  box-shadow: var(--cept-shadow-sm);
}
.cept-empty > strong { display: block; color: var(--cept-ink); font-size: var(--cept-fs-base); }
.cept-empty p { margin: 9px 0 0; color: #6b520f; }
.cept-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.cept-mini-card { padding: 12px; border: 1px solid var(--cept-line); border-radius: var(--cept-radius); background: var(--cept-panel-bg); }
.cept-mini-card strong { display: block; color: var(--cept-primary); }
.cept-mini-card span { color: var(--cept-muted); font-size: var(--cept-fs-md); }

.cept-shell--hub #cept-free-tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cept-shell--hub #cept-free-tools .cept-tool-card:first-child {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff, var(--cept-panel-bg));
}
.cept-shell--hub .cept-apps-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.cept-shell--hub .cept-apps-strip .cept-actions { margin: 0; }

@media (max-width: 760px) {
  .cept-shell { width: min(100%, calc(100vw - 18px)); margin-bottom: 18px; padding: 0; }
  .cept-hero { padding: 20px 16px; }
  .cept-hero h1 { line-height: 1.12; }
  .cept-task-strip { grid-template-columns: 1fr; gap: 8px; }
  .cept-task-strip li { min-height: 0; padding: 12px; }
  .cept-workspace,
  .cept-shell--hub .cept-apps-strip { grid-template-columns: 1fr; }
  .cept-form { display: grid; align-items: stretch; padding: 12px; }
  .cept-field,
  .cept-form .cept-button,
  .cept-course .cept-button { width: 100%; }
  .cept-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cept-state-head { display: grid; }
  .cept-course { grid-template-columns: 1fr; }
  .cept-actions .cept-button { width: 100%; }
  .cept-page-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 7px; }
  .cept-page-nav a { min-height: 42px; padding: 8px; }
  .cept-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cept-stat { padding: 11px; }
  .cept-stat strong { font-size: var(--cept-fs-lg); }
  .cept-stat em { font-size: var(--cept-fs-sm); line-height: 1.35; }
  .cept-requirements-table { min-width: 0; }
  .cept-requirements-table thead { display: none; }
  .cept-requirements-table,
  .cept-requirements-table tbody,
  .cept-requirements-table tr,
  .cept-requirements-table th,
  .cept-requirements-table td { display: block; width: 100%; }
  .cept-requirements-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; padding: 6px 12px; }
  .cept-requirements-table tr { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 5px; min-height: 70px; padding: 10px 0; border-bottom: 1px solid var(--cept-line); }
  .cept-requirements-table tr:last-child { border-bottom: 0; }
  .cept-requirements-table th,
  .cept-requirements-table td { padding: 0; border: 0; background: transparent; }
  .cept-requirements-table th { font-size: var(--cept-fs-md); line-height: 1.3; }
  .cept-requirements-table td { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--cept-muted); font-size: var(--cept-fs-md); }
  .cept-requirements-table td::before { content: attr(data-label); color: var(--cept-muted); font-size: var(--cept-fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .cept-requirements-table td[data-label="Status"] { justify-content: space-between; }
  .cept-requirements-table td[data-label="Source"] a { max-width: 100%; text-align: right; }
  .cept-requirements-table .cept-badge { padding: 3px 7px; font-size: var(--cept-fs-xs); }
  .cept-tools-nav ul { grid-template-columns: 1fr; }
  .cept-checklist { grid-template-columns: 1fr; }
  .cept-checklist li { min-height: 0; }
  .cept-shell--hub #cept-free-tools { grid-template-columns: 1fr; }
  .cept-shell--hub #cept-free-tools .cept-tool-card:first-child { grid-column: auto; }
}

@media (max-width: 460px) {
  .cept-facts { grid-template-columns: 1fr; }
  .cept-table { font-size: var(--cept-fs-md); }
  .cept-stat-grid { grid-template-columns: 1fr 1fr; }
  .cept-requirements-table tbody { grid-template-columns: 1fr; }
  .cept-state-head .cept-badge { width: 100%; justify-content: center; }
  .cept-actions { display: grid; }
  .cept-actions .cept-button,
  .cept-actions .cept-button-secondary { width: 100%; }
}

.cept-apps-strip { margin: 14px 0; padding: 16px; }
.cept-apps-strip h2 { margin: 2px 0 6px; }
.cept-apps-strip p { margin: 0; color: var(--cept-muted); }
