/* Classic Monks components: plain CSS, no JavaScript required.
   Every class starts with cm-. Colours, type, spacing and radii come from tokens.css. */

/* ---------- Base ---------- */
.cm { font-family: var(--font-sans); font-size: var(--cm-fs-body); line-height: var(--cm-lh-body); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }
.cm *, .cm *::before, .cm *::after { box-sizing: border-box; }
.cm :where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
.cm :where(ul, ol) { padding: 0; list-style: none; }
.cm :where(a) { color: inherit; text-decoration: none; }
.cm :focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* ---------- Density dial ----------
   Every size that sets the page's height reads one of these variables.
   Default (on .cm) is COMPACT. Add cm-density-comfortable or cm-density-tight
   to <body class="cm"> or to any single section to change it there. */
.cm {
  --cm-fs-h3: 19px;
  --cm-fs-body: 15px; --cm-lh-body: 24px;
  --cm-fs-small: 14px; --cm-lh-small: 22px; --cm-gap: 28px; --cm-col-gap: 48px;
  --cm-card-pad: 24px;
  --cm-step-y: 18px; --cm-step-num: 32px; --cm-faq-y: 14px;
}

/* ---------- Type helpers ---------- */

.cm-eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-text); }
.cm-eyebrow--muted { color: var(--ink-subtle); }

/* ---------- Icons (CSS masks; colour = currentColor) ---------- */
.cm-i { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--cm-icon) center / contain no-repeat; mask: var(--cm-icon) center / contain no-repeat; }
.cm-i--sm { width: 14px; height: 14px; }
.cm-i--lg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.cm-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: var(--radius-pill); border: 1px solid transparent; font: 500 15px/20px var(--font-sans); white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.cm-btn:active { transform: translateY(1px); }
.cm-btn__disc { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: -14px; border-radius: 50%; background: var(--monk-green); color: var(--on-brand); transition: transform .2s ease; }
.cm-btn:hover .cm-btn__disc { transform: translateX(2px); }
.cm-btn--primary { background: var(--ink); color: var(--surface); }
.cm-btn--primary:hover { background: var(--ink-muted); }
.cm-btn--brand { background: var(--monk-green); color: var(--on-brand); }
.cm-btn--brand:hover { background: var(--monk-green-hover); }
.cm-btn--brand .cm-btn__disc { background: var(--on-brand); color: var(--monk-green); }
.cm-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--border); padding-left: 8px; }
.cm-btn--secondary:hover { border-color: var(--border-strong); }
.cm-btn__play { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--surface); }

.cm-btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.cm-btn--sm .cm-btn__disc { width: 24px; height: 24px; margin-right: -10px; }
.cm-btn--block { width: 100%; justify-content: space-between; }
.cm-btn--light { background: #FFFFFF; color: #0F1A14; }
.cm-btn--light:hover { background: var(--green-50); }
.cm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--brand-text); }
.cm-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pills, chips, badges ---------- */

.cm-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--ink); font-size: 13px; line-height: 1; white-space: nowrap; }

.cm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--radius-xs); background: var(--surface-tint); color: var(--brand-text); font: 500 11px/16px var(--font-mono); }
.cm-badge--neutral { background: var(--surface-muted); color: var(--ink-subtle); }
.cm-tag { display: inline-flex; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(255,255,255,.85); color: #0F1A14; font: 500 11px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Window card (app-window frame) ---------- */
.cm-window { border-radius: var(--radius-md); background: var(--surface-muted); border: 1px solid var(--border); box-shadow: var(--shadow-float); padding: 0 6px 6px; min-width: 0; }

/* Code block */
.cm-code { padding: 12px 14px; border-radius: var(--radius-xs); background: var(--surface-muted); font: 400 13px/20px var(--font-mono); color: var(--ink-muted); overflow-x: auto; white-space: pre; }
.cm-code .add { color: var(--success); }

/* ---------- Steps ---------- */
.cm-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--cm-col-gap); align-items: start; }

.cm-step { display: grid; grid-template-columns: 112px 1fr; gap: 24px; padding-block: var(--cm-step-y); border-top: 1px solid var(--border); }
.cm-step__num { white-space: nowrap; font: 400 var(--cm-step-num)/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink-subtle); display: grid; gap: 10px; justify-items: start; align-content: start; }
.cm-step h3 { margin-bottom: 6px; }
.cm-step p { color: var(--ink-muted); font-size: var(--cm-fs-small); line-height: var(--cm-lh-small); }
.cm-step.is-active { border-top: 2px solid var(--monk-green); }
.cm-step.is-active .cm-step__num { color: var(--brand-text); }
@media (max-width: 860px) { .cm-steps { grid-template-columns: 1fr; gap: 40px; } .cm-step { grid-template-columns: 60px 1fr; } }

/* Bento grid */
.cm-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 860px) { .cm-bento > * { grid-column: 1 / -1 !important; } }

/* ---------- Pricing ---------- */

.cm-price { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: calc(var(--cm-gap) * .55); padding: var(--cm-card-pad); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }

/* Compare table */
.cm-compare { display: grid; }

/* ---------- Row lists ---------- */
.cm-rows { border-bottom: 1px solid var(--border); }

/* ---------- Letter ---------- */

.cm-avatars { display: flex; }
.cm-avatars > * { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--surface); display: grid; place-items: center; background: var(--green-100); color: #015433; font: 600 13px/1 var(--font-sans); object-fit: cover; }
.cm-avatars > * + * { margin-left: -10px; background: var(--saffron-50); color: #7A4A00; }

/* ---------- FAQ ---------- */
.cm-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--cm-col-gap); align-items: start; }
@media (max-width: 860px) { .cm-faq { grid-template-columns: 1fr; gap: 32px; } }
.cm-faq__list { border-bottom: 1px solid var(--border); }
.cm-faq details { border-top: 1px solid var(--border); }
.cm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: var(--cm-faq-y); cursor: pointer; list-style: none; font-size: var(--cm-fs-body); line-height: var(--cm-lh-body); font-weight: 500; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary .cm-i { color: var(--ink-subtle); }
.cm-faq summary .cm-i--minus, .cm-faq details[open] summary .cm-i--plus { display: none; }
.cm-faq details[open] summary .cm-i--minus { display: inline-block; }
.cm-faq summary:hover { color: var(--brand-text); }
.cm-faq details p { padding-bottom: var(--cm-faq-y); margin-top: -4px; max-width: 60ch; font-size: var(--cm-fs-small); line-height: var(--cm-lh-small); color: var(--ink-muted); }

/* Theme toggle */

@media (prefers-reduced-motion: reduce) { .cm *, .cm *::before, .cm *::after { transition: none !important; animation: none !important; } }

/* ---------- Icon set ---------- */
.cm-i--arrow-right{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M5 12h14M13 6l6 6-6 6"/%3E%3C/svg%3E')}
.cm-i--arrow-up{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 19V5M6 11l6-6 6 6"/%3E%3C/svg%3E')}
.cm-i--chevron-right{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M9 6l6 6-6 6"/%3E%3C/svg%3E')}
.cm-i--check{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M5 12.5l4.5 4.5L19 7.5"/%3E%3C/svg%3E')}
.cm-i--plus{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 5v14M5 12h14"/%3E%3C/svg%3E')}
.cm-i--minus{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M5 12h14"/%3E%3C/svg%3E')}
.cm-i--play{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M8 5.5v13l11-6.5z" fill="black"/%3E%3C/svg%3E')}
.cm-i--sun{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="4"/%3E%3Cpath d="M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/%3E%3C/svg%3E')}
.cm-i--moon{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z"/%3E%3C/svg%3E')}
.cm-i--monitor{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="4" width="18" height="12" rx="2"/%3E%3Cpath d="M8 20h8M12 16v4"/%3E%3C/svg%3E')}
.cm-i--menu{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M4 7h16M4 12h16M4 17h16"/%3E%3C/svg%3E')}
.cm-i--server{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="4" width="18" height="7" rx="2"/%3E%3Crect x="3" y="13" width="18" height="7" rx="2"/%3E%3Cpath d="M7 7.5h.01M7 16.5h.01"/%3E%3C/svg%3E')}
.cm-i--feather{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 4c-6 0-12 4-13 13l-3 3M7 17h7M10 12h6"/%3E%3Cpath d="M20 4c0 7-3 12-10 13"/%3E%3C/svg%3E')}
.cm-i--shield{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 3l7 3v6c0 4.5-3 7.5-7 9-4-1.5-7-4.5-7-9V6z"/%3E%3Cpath d="M9 12l2 2 4-4"/%3E%3C/svg%3E')}
.cm-i--refresh{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M20 12a8 8 0 1 1-2.3-5.6M20 4v5h-5"/%3E%3C/svg%3E')}
.cm-i--git{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="6" cy="6" r="2.5"/%3E%3Ccircle cx="6" cy="18" r="2.5"/%3E%3Ccircle cx="18" cy="8" r="2.5"/%3E%3Cpath d="M6 8.5v7M18 10.5c0 4-6 3-11 6"/%3E%3C/svg%3E')}
.cm-i--globe{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cpath d="M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18"/%3E%3C/svg%3E')}
.cm-i--x-social{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M5 4l14 16M19 4L5 20"/%3E%3C/svg%3E')}
.cm-i--linkedin{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="3" width="18" height="18" rx="3"/%3E%3Cpath d="M8 10v7M8 7v.01M12 17v-7M12 13c0-2 1.2-3 2.7-3S17 11 17 13v4"/%3E%3C/svg%3E')}

/* ---------- Space-saving layouts ---------- */

/* =====================================================================
   Dashboard (plugin admin): measured from the live Classic Monks
   settings screen. ALWAYS LIGHT: it lives inside wp-admin, which has no
   dark mode. Every colour here is a fixed dash-* token; never use the
   theme-switching tokens (surface, ink, ...) inside .cm-dash. Prefix: cm-dash-
   ===================================================================== */
.cm-dash { color-scheme: light; --cm-dash-caret: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231E1E1E" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M6 9l6 6 6-6"/%3E%3C/svg%3E'); font-family: var(--font-ui); font-size: 14px; line-height: 20px; color: var(--dash-text); background: var(--dash-bg); -webkit-font-smoothing: antialiased; }
.cm-dash *, .cm-dash *::before, .cm-dash *::after { box-sizing: border-box; }
.cm-dash :where(h1, h2, h3, p, ul, ol) { margin: 0; padding: 0; list-style: none; }
.cm-dash :where(a) { color: inherit; text-decoration: none; }
.cm-dash :where(button) { font: inherit; }
.cm-dash :focus-visible { outline: 2px solid var(--dash-green); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.cm-dash-topbar { display: flex; align-items: center; gap: 8px; height: 65px; padding: 0 24px; background: var(--dash-surface); border-bottom: 1px solid var(--dash-border); min-width: 0; }
.cm-dash-topbar__logo { display: block; height: 28px; width: auto; flex: none; }
.cm-dash-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 4px; background: var(--dash-chip); color: var(--dash-text-subtle); font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; }
.cm-dash-chip--licensed { background: var(--dash-green-50); color: var(--dash-green); }
.cm-dash-chip--licensed::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cm-dash-chip--expired { background: #FDF0EF; color: #B3261E; }
.cm-dash-chip--expired::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.cm-dash-tabs { display: flex; gap: 8px; height: 100%; margin-left: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.cm-dash-tab { display: inline-flex; align-items: center; height: 100%; padding: 0 11px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--dash-text-muted); font-size: 15px; font-weight: 500; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.cm-dash-tab:hover { color: var(--dash-heading); }
.cm-dash-tab[aria-selected="true"] { color: var(--dash-green); border-bottom-color: var(--dash-green); }

.cm-dash-search { position: relative; display: block; width: 216px; }
.cm-dash-search input { width: 100%; height: 37px; padding: 0 36px 0 14px; border: 1px solid var(--dash-border); border-radius: 4px; background: var(--dash-bg); color: var(--dash-strong); font: 400 14px/1 var(--font-ui); }
.cm-dash-search input::placeholder { color: var(--dash-placeholder); }
.cm-dash-search input:focus { outline: none; border-color: var(--dash-green); background: var(--dash-surface); box-shadow: 0 0 0 3px var(--dash-green-50); }
.cm-dash-search .cm-i { position: absolute; right: 13px; top: 50%; translate: 0 -50%; color: var(--dash-text-subtle); pointer-events: none; }
.cm-dash-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 37px; padding: 0 22px; border: 1px solid var(--dash-border); border-radius: 4px; background: var(--dash-bg); color: var(--dash-text-subtle); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.cm-dash-btn:hover { color: var(--dash-heading); border-color: var(--dash-border-strong); }
.cm-dash-btn--dirty { background: var(--dash-green); border-color: var(--dash-green); color: #FFFFFF; }
.cm-dash-btn--dirty:hover { background: var(--dash-green-700); border-color: var(--dash-green-700); color: #FFFFFF; }
@media (max-width: 1100px) { .cm-dash-search { width: 160px; } }
@media (max-width: 700px) { .cm-dash-chip, .cm-dash-search { display: none; } }

/* ---------- Sidebar ---------- */
.cm-dash-sidebar { background: var(--dash-surface); border-right: 1px solid var(--dash-border); padding: 20px 16px; }
.cm-dash-nav { display: grid; gap: 4px; }
.cm-dash-nav__item { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: none; color: var(--dash-text-muted); font-size: 15px; text-align: left; cursor: pointer; }
.cm-dash-nav__item .cm-i { width: 18px; height: 18px; }
.cm-dash-nav__item:hover { background: var(--dash-bg); color: var(--dash-heading); }
.cm-dash-nav__item[aria-current="page"] { background: var(--dash-green-25); color: var(--dash-green); font-weight: 500; }
.cm-dash-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 10px; background: var(--dash-green-75); color: var(--dash-green); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
[aria-current="page"] > .cm-dash-count { background: var(--dash-green); color: #FFFFFF; }

/* ---------- Content area ---------- */
.cm-dash-main { padding: 32px 24px 64px; min-width: 0; }
.cm-dash-page { max-width: 800px; margin-inline: auto; display: grid; gap: 24px; }
.cm-dash-page__head { display: grid; gap: 6px; }
.cm-dash-page__title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--dash-heading); letter-spacing: -0.01em; }
.cm-dash-page__desc { font-size: 15px; line-height: 22px; color: var(--dash-text-muted); }

/* ---------- Settings card ---------- */
.cm-dash-card { background: var(--dash-surface); border: 1px solid var(--dash-border); border-radius: 12px; padding: 22px 24px 20px; }

.cm-dash-group__title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--dash-heading); margin-bottom: 6px; }

/* ---------- Setting row ---------- */

.cm-dash-row { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.cm-dash-row__label { flex: 1; min-width: 0; font-size: 14px; color: var(--dash-text); cursor: pointer; }

/* ---------- Nested panel (opens when its parent toggle is on) ---------- */

.cm-dash-input, .cm-dash-select { width: 100%; height: 38px; padding: 0 14px; border: 1px solid var(--dash-border); border-radius: 4px; background: var(--dash-surface); color: var(--dash-strong); font: 400 14px/1 var(--font-ui); }

.cm-dash-select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: var(--cm-dash-caret); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; cursor: pointer; }
.cm-dash-input:focus, .cm-dash-select:focus { outline: none; border-color: var(--dash-green); box-shadow: 0 0 0 3px var(--dash-green-50); }

/* ---------- Dashboard icons ---------- */
.cm-i--gear{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="3"/%3E%3Cpath d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z"/%3E%3C/svg%3E')}
.cm-i--edit{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M11 4H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-6"/%3E%3Cpath d="M18.5 2.5a2.1 2.1 0 0 1 3 3L12 15l-4 1 1-4z"/%3E%3C/svg%3E')}
.cm-i--grid{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="3" y="3" width="4.5" height="4.5"/%3E%3Crect x="9.75" y="3" width="4.5" height="4.5"/%3E%3Crect x="16.5" y="3" width="4.5" height="4.5"/%3E%3Crect x="3" y="9.75" width="4.5" height="4.5"/%3E%3Crect x="9.75" y="9.75" width="4.5" height="4.5"/%3E%3Crect x="16.5" y="9.75" width="4.5" height="4.5"/%3E%3Crect x="3" y="16.5" width="4.5" height="4.5"/%3E%3Crect x="9.75" y="16.5" width="4.5" height="4.5"/%3E%3Crect x="16.5" y="16.5" width="4.5" height="4.5"/%3E%3C/svg%3E')}
.cm-i--user{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="8" r="4"/%3E%3Cpath d="M4 21c0-4 3.6-6.5 8-6.5s8 2.5 8 6.5"/%3E%3C/svg%3E')}
.cm-i--plug{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M9 2v5M15 2v5M6 7h12v4a6 6 0 0 1-12 0z"/%3E%3Cpath d="M12 17v5"/%3E%3C/svg%3E')}
.cm-i--file{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/%3E%3Cpath d="M14 2v6h6"/%3E%3C/svg%3E')}
.cm-i--search{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="11" cy="11" r="7"/%3E%3Cpath d="M20 20l-3.5-3.5"/%3E%3C/svg%3E')}
.cm-i--info{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9.5"/%3E%3Cpath d="M12 11v6M12 7.5v.01"/%3E%3C/svg%3E')}
.cm-i--chevrons-left{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M11 17l-5-5 5-5M18 17l-5-5 5-5"/%3E%3C/svg%3E')}
.cm-i--chevron-down{--cm-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M6 9l6 6 6-6"/%3E%3C/svg%3E')}

.cm-dash input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* ---------- Pricing plans: billing switch + plan list + detail card ----------
   Works without JavaScript: the billing radios and plan radios drive everything through :has(). */
.cm-plans { display: grid; gap: calc(var(--cm-gap) * .9); }
.cm-plans [data-bill="lifetime"] { display: none !important; }
.cm-plans:has(.cm-billing input[value="lifetime"]:checked) [data-bill="lifetime"] { display: revert !important; }
.cm-plans:has(.cm-billing input[value="lifetime"]:checked) a[data-bill="lifetime"] { display: inline-flex !important; }
.cm-plans:has(.cm-billing input[value="lifetime"]:checked) [data-bill="yearly"] { display: none !important; }

.cm-plan { grid-column: 1; position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.cm-plan:hover { border-color: var(--border-strong); }
.cm-plan > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }

.cm-plan:has(> input:checked) { border-color: var(--monk-green); background: var(--surface-tint); box-shadow: 0 0 0 1px var(--monk-green); }

.cm-plan:has(> input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Compare-all table (collapsed by default) */

.cm-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.cm-table th, .cm-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.cm-table thead th { font: 500 var(--cm-fs-h3)/1.2 var(--font-display); color: var(--ink); vertical-align: bottom; }
.cm-table thead th small { display: block; font: 400 12px/16px var(--font-sans); color: var(--ink-subtle); margin-top: 2px; }
.cm-table tbody th { text-align: left; font-weight: 400; color: var(--ink-muted); }
.cm-table td { color: var(--ink); }
.cm-table .is-pop { background: var(--surface-tint); }
.cm-table .cm-i { color: var(--brand-text); }
.cm-table .no { color: var(--ink-subtle); }

.cm-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tab header (option B) ----------
   A white tab that hangs from a thin top strip into a dark hero, with
   concave shoulders where it meets the page. Use only above a dark (night)
   or art hero; on a white hero use the regular .cm-header. */
.cm-header-tab { --tab-bg: var(--surface); --tab-ground: var(--night); --tab-r: 28px; --tab-inset: clamp(12px, 7.4vw, 106px); --tab-strip: 10px;
  position: relative; z-index: 20; padding-top: var(--tab-strip); background: linear-gradient(var(--tab-bg) var(--tab-strip), var(--tab-ground) var(--tab-strip)); }
[data-theme="dark"] .cm-header-tab { --tab-bg: var(--night-border); }
.cm-header-tab__bar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 72px; margin-inline: var(--tab-inset); margin-top: -1px; padding: 0 clamp(16px, 3.4vw, 46px); background: var(--tab-bg); border-radius: 0 0 var(--tab-r) var(--tab-r); }
.cm-header-tab__bar::before, .cm-header-tab__bar::after { content: ""; position: absolute; top: 0; width: var(--tab-r); height: var(--tab-r); }
.cm-header-tab__bar::before { left: calc(var(--tab-r) * -1); background: radial-gradient(circle at 0 100%, var(--tab-ground) calc(var(--tab-r) - .5px), var(--tab-bg) var(--tab-r)); }
.cm-header-tab__bar::after { right: calc(var(--tab-r) * -1); background: radial-gradient(circle at 100% 100%, var(--tab-ground) calc(var(--tab-r) - .5px), var(--tab-bg) var(--tab-r)); }
.cm-header-tab__logo img { display: block; height: 30px; width: auto; }
.cm-header-tab__nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); font-size: 16px; color: var(--ink-muted); }
.cm-header-tab__nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cm-header-tab__nav a:hover, .cm-header-tab__nav a[aria-current="page"] { color: var(--ink); }
.cm-header-tab__end { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

.cm-header-tab__link { font-size: 16px; color: var(--ink); white-space: nowrap; }
.cm-header-tab__link:hover { color: var(--brand-text); }

@media (max-width: 1000px) {
  .cm-header-tab { --tab-r: 20px; }
  .cm-header-tab__bar { grid-template-columns: 1fr auto; height: 68px; }
  .cm-header-tab__nav, .cm-header-tab__link, .cm-header-tab__icon { display: none; }
}
@media (max-width: 560px) { .cm-header-tab__logo img { height: 26px; } }

/* ---------- Trust pill ----------
   Avatars + rating + one line of proof, in a pill. Stars are one element:
   set --rating (0-5) and they fill to the exact fraction. */
.cm-trust { --rating: 5; display: inline-flex; align-items: center; gap: 14px; max-width: 100%; padding: 6px 22px 6px 6px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-soft); color: var(--ink); text-align: left; }
a.cm-trust:hover { border-color: var(--border-strong); }

.cm-stars { display: inline-block; flex: none; width: 90px; height: 18px; background: linear-gradient(90deg, var(--saffron) calc(var(--rating) / 5 * 100%), var(--border) 0); -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2.6l2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z" fill="black" stroke="black" stroke-width="1.2" stroke-linejoin="round"/%3E%3C/svg%3E') left center / 18px 18px repeat-x; mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2.6l2.9 6 6.6.8-4.9 4.6 1.3 6.5L12 17.3l-5.9 3.2 1.3-6.5L2.5 9.4l6.6-.8z" fill="black" stroke="black" stroke-width="1.2" stroke-linejoin="round"/%3E%3C/svg%3E') left center / 18px 18px repeat-x; }

@media (max-width: 480px) { .cm-trust { padding-right: 16px; } }

/* =====================================================================
   Round 3 patterns: feature visuals, cost cards, media list, chip art,
   mini cards, night showcase, included banner, key/value cards, byline
   ===================================================================== */

/* Feature visual: task progress with a checklist */
.cm-progress { display: grid; align-content: start; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 13px; }

.cm-progress ul { padding: 2px 12px; }
.cm-progress li { display: flex; align-items: center; gap: 8px; padding-block: 6px; border-top: 1px solid var(--border); color: var(--ink-muted); }
.cm-progress li:first-child { border-top: 0; }
.cm-progress li .cm-i { color: var(--brand-text); }
.cm-progress li .cm-badge { margin-left: auto; }

/* =====================================================================
   Pricing options with Yearly AND Lifetime visible at once
   A: .cm-ledger   B: .cm-dualcards
   ===================================================================== */
.cm-plan-feats { display: grid; gap: 8px; }
.cm-plan-feats h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.cm-plan-feats ul { display: grid; gap: 6px; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.cm-plan-feats li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; }
.cm-plan-feats li .cm-i { margin-top: 3px; color: var(--brand-text); }
.cm-plan-feats li b { font-weight: 500; color: var(--ink); }
.cm-price-amt { display: flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.cm-price-amt strong { font: 500 34px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.cm-price-amt span { font-size: 14px; color: var(--ink-subtle); }
.cm-price-per { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.cm-price-per b { font-weight: 500; color: var(--brand-text); }
.cm-btn--outline { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.cm-btn--outline:hover { border-color: var(--ink); }
.cm-btn--outline .cm-btn__disc { background: var(--surface-muted); color: var(--ink); }

/* ---------- A: Plan ledger ---------- */
.cm-ledger { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); overflow: hidden; }

@media (max-width: 860px) {
  .cm-price-amt strong { font-size: 28px; }
}

/* ---------- B: Dual-price cards ---------- */
.cm-dualcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .cm-dualcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cm-dualcards { grid-template-columns: minmax(0, 1fr); } }
.cm-dualcard { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.cm-dualcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cm-dualcard__top strong { display: block; font: 500 22px/28px var(--font-display); letter-spacing: -0.01em; }
.cm-dualcard__top span { font: 400 12px/18px var(--font-mono); color: var(--brand-text); }
.cm-dual { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-muted); }
.cm-dual > div { display: grid; gap: 3px; align-content: start; padding: 14px; min-width: 0; }
.cm-dual > div + div { border-left: 1px solid var(--border); }
.cm-dual .cm-eyebrow { font-size: 10px; }
.cm-dual .cm-price-amt strong { font-size: 28px; }
.cm-dual .cm-price-amt span { font-size: 12px; }
.cm-dual .cm-price-per { font-size: 12px; line-height: 17px; min-height: 34px; }
.cm-dual .cm-btn { margin-top: 10px; width: 100%; height: 38px; padding: 0 6px 0 14px; justify-content: space-between; font-size: 14px; }
.cm-dual .cm-btn .cm-btn__disc { width: 28px; height: 28px; margin-right: 0; }
.cm-dualcard .cm-plan-feats { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.cm-dualcard .cm-plan-feats { margin-top: 0; }
.cm-dualcard--night { background: var(--night); border-color: var(--night-border); color: var(--night-ink); --surface: var(--night-raised); --surface-muted: var(--night-raised); --border: var(--night-border); --ink: var(--night-ink); --ink-muted: var(--night-ink-muted); --ink-subtle: var(--night-ink-muted); --brand-text: var(--night-accent); }
.cm-dualcard--night::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(70% 45% at 100% 0%, rgba(1,130,76,.4), transparent 70%); }
.cm-dualcard--night .cm-eyebrow { color: var(--night-accent); }
.cm-dualcard--night .cm-badge { background: rgba(1,130,76,.28); color: var(--night-accent); }
.cm-dualcard--night .cm-btn--outline { background: transparent; color: var(--night-ink); border-color: #4A5750; }
.cm-dualcard--night .cm-btn--primary { background: #FFFFFF; color: #0F1A14; }

/* ---------- Pricing at a glance: Option B cards + the billing switch ----------
   Sits inside .cm-plans so the switch rules ([data-bill]) apply.
   The switch picks the BIG price; the other billing stays visible as a small line. */

.cm-glance-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-subtle); }
.cm-plans:has(.cm-billing input[value="lifetime"]:checked) .cm-price-amt[data-bill="lifetime"] { display: flex !important; }
