body.portal { line-height: 1.6; }
.cm-shell { max-width: 860px; margin: 0 auto; padding: 24px 16px 56px; }
.cm-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-intro h1 { margin-bottom: 12px; }
.cm-h1-sub { display: block; margin-top: 4px; color: var(--muted); font-size: .55em; font-weight: 700; letter-spacing: 0; }
.cm-intro .lead { margin-bottom: 16px; font-size: 17px; }
.cm-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }

.cm-tool { margin: 22px 0 36px; padding: 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 12px; }
.cm-label { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; color: var(--text); font-size: 14px; font-weight: 750; }
.cm-label:first-of-type { margin-top: 0; }
.cm-num { display: inline-grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; }
.cm-paints { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cm-paint { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.cm-paint:hover:not(:disabled) { border-color: var(--accent); }
.cm-paint:disabled { opacity: .45; cursor: default; }
.cm-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }

.cm-mix { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.cm-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 10px; background: var(--bg); }
.cm-row-name { flex: 1; font-weight: 750; }
.cm-parts { min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.cm-step { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-soft); color: var(--text); font-size: 20px; font-weight: 800; cursor: pointer; touch-action: manipulation; }
.cm-step:disabled { opacity: .45; cursor: default; }
.cm-empty { padding: 10px 8px; color: var(--muted); }
.cm-edit { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 14px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.cm-chip:hover { border-color: var(--accent); }
.cm-chip-quiet { background: transparent; color: var(--muted); }

.cm-result { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--bg); }
.cm-swatch { flex: none; width: 96px; height: 96px; border-radius: 18px; background: #800080; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.cm-result-text p { margin: 0; }
.cm-makes { font-size: 20px; line-height: 1.35; }
.cm-detail { margin-top: 6px !important; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.cm-light { margin-top: 6px !important; font-size: 14px; }

.cm-article h2 { margin: 30px 0 12px; font-size: 24px; }
.cm-article li { margin-bottom: 8px; color: var(--muted); }
.cm-article li strong { color: var(--text); }
.cm-table-wrap { overflow-x: auto; }
.cm-chart { width: 100%; border-collapse: collapse; font-size: 15px; }
.cm-chart th, .cm-chart td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.cm-chart thead th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.cm-chart tbody th { font-weight: 700; }
.cm-chart td { display: flex; align-items: center; gap: 10px; }
.cm-cell-swatch { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.cm-recipes li { margin-bottom: 6px; }
.cm-faq details { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cm-faq summary { color: var(--text); font-weight: 750; cursor: pointer; }
.cm-faq details p { margin: 8px 0 0; }
.cm-cta { margin-top: 32px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.cm-cta h2 { margin-top: 0; }
.cm-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 380px) {
  .cm-swatch { width: 72px; height: 72px; }
  .cm-makes { font-size: 18px; }
}
@media (min-width: 640px) {
  .cm-shell { padding: 36px 24px 64px; }
  .cm-tool { padding: 22px; }
}
