/* page styles group c – dashboard, analytics, team & roles, billing, settings, admin, help, onboarding. Tokens only. */

/* ---- shared helpers ---- */
.c-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); margin-top: 16px; }
.c-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.c-kpi5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.c-kpi5 .kpi .value { font-size: 22px; }
@media (max-width: 1100px) { .c-2-1, .c-1-2 { grid-template-columns: minmax(0, 1fr); } .c-kpi5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .c-kpi5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.c-h { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; margin-bottom: 10px; }
.c-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.c-big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 8px; }
.c-icon-box { width: 36px; height: 36px; border-radius: var(--radius); background: var(--accent-50); color: var(--accent); display: inline-grid; place-items: center; flex: none; }
.c-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.c-title-badge { vertical-align: middle; margin-left: 6px; font-size: 12px; letter-spacing: 0; }
.c-title-badge svg { width: 13px; height: 13px; }
.badge svg { width: 13px; height: 13px; }
.c-ico-sm { width: 14px; height: 14px; vertical-align: -2px; color: var(--text-3); }
.c-warn-text { color: var(--warn); font-weight: 600; } .c-err-text { color: var(--err); font-weight: 600; }
.tbl th.num, .tbl td.num { text-align: right; white-space: nowrap; }
.c-radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.c-radio:hover { border-color: var(--border-strong); }
.c-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.c-radio input { margin-top: 3px; accent-color: var(--accent); }
.c-radio > span { display: flex; flex-direction: column; gap: 2px; }
.c-hide-sm { display: inline; }
@media (max-width: 700px) { .c-hide-sm { display: none; } }
.c-link-row { color: inherit; text-decoration: none; border-radius: var(--radius-sm); }
.c-link-row:hover { text-decoration: none; background: var(--surface-2); }
.c-link-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-site-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border); }
.c-kpi-link { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.c-kpi-link:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }
.c-ol { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.c-info { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.seg.is-disabled { opacity: .55; } .seg.is-disabled button { cursor: not-allowed; }

/* ---- tabs as links (team) ---- */
.c-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 500; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.c-tabs a:hover { color: var(--text); text-decoration: none; }
.c-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
[data-mode="dark"] .c-tabs a.active { color: var(--text); }
.c-tabs .ico { width: 16px; height: 16px; }

/* ---- vertical tab layout (settings) ---- */
.c-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.c-vtabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; }
.c-vtabs a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.c-vtabs a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.c-vtabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.c-vtabs a .ico { color: var(--text-3); }
.c-vtabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border-color: var(--border); }
.c-vtabs a.active .ico { color: var(--accent); }
[data-mode="dark"] .c-vtabs a.active .ico { color: var(--text); }
.c-tabbody { min-width: 0; }
.c-count { margin-left: auto; height: 18px; padding: 0 6px; }
@media (max-width: 960px) {
  .c-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .c-vtabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; gap: 6px; }
  .c-vtabs::-webkit-scrollbar { display: none; }
  .c-vtabs a { border-color: var(--border); background: var(--surface); padding: 7px 12px; font-size: var(--fs-sm); }
  .c-vtabs a.active { background: var(--accent-50); border-color: var(--accent-100); box-shadow: none; }
}

/* ---- analytics ---- */
.c-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 16px; }
.c-inline { display: flex; align-items: center; gap: 8px; }
.c-inline select { width: auto; min-width: 200px; }
@media (max-width: 700px) { .c-inline { flex: 1 1 100%; } .c-inline select { min-width: 0; flex: 1; } }

/* ---- team: permission matrix, tri-state overrides, role list, preview ---- */
.c-perm th, .c-perm td { text-align: center; padding: 0 6px; }
.c-perm th { white-space: normal; text-transform: none; letter-spacing: 0; font-size: 11.5px; line-height: 1.2; vertical-align: bottom; min-width: 58px; }
.c-perm .c-yes { color: var(--ok); display: inline-flex; } .c-perm .c-yes svg { width: 18px; height: 18px; }
.c-perm .c-no { color: var(--text-3); }
.c-perm th:first-child, .c-perm td:first-child { text-align: left; padding-left: 14px; white-space: nowrap; }
.c-perm td { height: 40px; }
.c-perm input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.c-perm input[type=checkbox]:disabled { cursor: default; opacity: .9; }
.c-perm .c-na { color: var(--border-strong); }
.c-perm .c-all { background: var(--surface-2); }
.c-colall { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; text-decoration: underline dotted; }
.c-colall:hover { color: var(--accent); }
.c-vis-sec td { background: var(--surface-3); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); text-align: left !important; height: 30px !important; }
.c-tri { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 34px; height: 28px; padding: 0 6px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font: 600 11px/1 var(--font); cursor: pointer; }
.c-tri .ico { width: 14px; height: 14px; }
.c-tri span:not(.c-def) { display: none; }
.c-tri.grant { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.c-tri.deny { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.c-tri .c-def { display: inline-flex; opacity: .7; }
.c-tri:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.c-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; color: var(--text-2); }
.c-legend .c-tri { cursor: default; height: 22px; min-width: 26px; margin-left: 6px; }
.c-legend .c-tri:first-child { margin-left: 0; }
.c-role-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.c-role-item:hover { border-color: var(--border-strong); }
.c-role-item.active { border-color: var(--accent); background: var(--accent-50); }
.c-role-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-role-item .c-icon-box { width: 30px; height: 30px; }
.c-role-select { height: 34px; min-width: 150px; width: auto; }
.c-preview-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.c-pm { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); background: var(--accent-50); color: var(--text); font-size: var(--fs-sm); font-weight: 500; }
.c-pm .ico { width: 16px; height: 16px; color: var(--accent); flex: none; }
[data-mode="dark"] .c-pm .ico { color: var(--text); }
.c-pm.off { background: var(--surface-2); color: var(--text-3); font-weight: 400; }
.c-pm.off .ico { color: var(--text-3); }
.c-pm .right { margin-left: auto; }

/* ---- billing ---- */
.c-plan-hero { display: flex; flex-direction: column; justify-content: space-between; }
.c-plan-name { font-size: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; }
.c-plan-price { text-align: right; font-size: 22px; font-weight: 700; }
.c-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.c-facts > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-facts b { font-size: var(--fs-md); overflow-wrap: anywhere; }
@media (max-width: 700px) { .c-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-plan-price { text-align: left; margin-left: 0; } }
.c-usage { display: flex; flex-direction: column; gap: 14px; }
.c-usage .row svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.c-usage .meter { margin-top: 6px; }
.c-plans { display: grid; gap: 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1300px) { .c-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .c-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .c-plans { grid-template-columns: minmax(0, 1fr); } }
.c-plans .price-card { padding: 18px; }
.c-plans .price { font-size: 26px; }
.c-limits { padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text-2); }

/* ---- settings ---- */
.c-logo-row { display: flex; gap: 16px; align-items: center; }
.c-logo { width: 72px; height: 72px; border-radius: var(--radius-lg); border: 2px dashed var(--border-strong); display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 22px; color: var(--text-3); overflow: hidden; flex: none; }
.c-logo img { width: 100%; height: 100%; object-fit: contain; }
.c-logo-wide { width: 150px; }
.c-zip { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.c-appearance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 1100px) { .c-appearance { grid-template-columns: minmax(0, 1fr); } }
.c-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.c-sw { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 10px 4px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-2); cursor: pointer; font: inherit; }
.c-sw:hover:not(:disabled) { border-color: var(--border-strong); }
.c-sw:disabled { cursor: not-allowed; opacity: .5; }
.c-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-sw.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); color: var(--text); }
.c-sw .swatch { background: var(--accent); pointer-events: none; }
.c-sw .swatch.c-sw-brand { background: var(--brand-primary); box-shadow: 0 0 0 1px var(--border-strong), inset -9px 0 0 var(--coral); }
.c-sw-def { position: absolute; top: -8px; right: -4px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 99px; background: var(--text); color: var(--surface); }
.c-preview { box-shadow: var(--shadow); }
.c-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
@media (max-width: 1100px) { .c-brand { grid-template-columns: minmax(0, 1fr); } }
.c-color { display: flex; gap: 8px; } .c-color input[type=text] { flex: 1; min-width: 0; font-family: ui-monospace, monospace; }
.c-color input[type=color] { width: 48px; padding: 2px; flex: none; }
.c-bp { --rr: 10px; font-family: var(--bf); }
.c-bp[data-r="sharp"] { --rr: 3px; } .c-bp[data-r="round"] { --rr: 18px; }
.c-bp-app { display: grid; grid-template-columns: 150px minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); min-height: 170px; }
.c-bp-side { background: var(--surface); border-right: 1px solid var(--border); padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.c-bp-logo { display: flex; align-items: center; gap: 6px; padding: 0 6px 10px; font-size: 12px; min-height: 30px; }
.c-bp-logo img { max-height: 26px; max-width: 130px; object-fit: contain; }
.c-bp-nav { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--rr); font-size: 12px; color: var(--text-2); }
.c-bp-nav .ico { width: 14px; height: 14px; }
.c-bp-nav.on { background: color-mix(in srgb, var(--bp) 12%, var(--surface)); color: var(--bp); font-weight: 600; }
.c-bp-main { padding: 14px; }
.c-bp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rr); padding: 12px; font-size: 13px; }
.c-bp-meter { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 8px; } .c-bp-meter span { display: block; width: 62%; height: 100%; border-radius: 99px; background: var(--ba); }
.c-bp-btn { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--rr); background: var(--bp); color: var(--bpt, #fff); font-size: 12px; font-weight: 600; }
.c-bp-btn.acc { background: var(--ba); color: #152238; }
.c-bp-btn.ghost { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
@media (max-width: 560px) { .c-bp-app { grid-template-columns: 110px minmax(0, 1fr); } }

/* ---- help ---- */
.c-help-hero { background: var(--accent); border: 0; color: var(--accent-contrast); }
.c-help-hero .card-body { padding: 32px; }
.c-help-hero h2 { margin-bottom: 14px; color: inherit; }
.c-help-search { max-width: 560px; }
.c-help-search input { height: 46px; font-size: var(--fs-md); border-color: transparent; }
.c-guide { display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.c-guide:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-50); }
.c-guide:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-faq details { border-bottom: 1px solid var(--border); }
.c-faq details:last-child { border-bottom: 0; }
.c-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 20px; font-weight: 600; }
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq summary:hover { background: var(--surface-2); }
.c-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.c-faq summary svg { margin-left: auto; color: var(--text-3); transition: transform .15s; flex: none; }
.c-faq details[open] summary svg { transform: rotate(180deg); }
.c-faq details > div { padding: 0 20px 16px; color: var(--text-2); line-height: 1.6; }

/* ---- onboarding ---- */
.c-welcome { max-width: 820px; margin: 0 auto; }
.c-wstep.done { background: var(--surface-2); }
.c-wnum { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.c-wstep.done .c-wnum { background: var(--ok); border-color: var(--ok); color: #fff; }
.c-wnum .ico { width: 18px; height: 18px; }
.c-wform { margin-top: 12px; }
.c-wbtn { flex: none; }
@media (max-width: 700px) { .c-wstep .card-body > .row { flex-wrap: wrap !important; } .c-wbtn { width: 100%; justify-content: center; } }

/* ---- admin ---- */
.c-admin-nav { display: none; }
@media (max-width: 960px) {
  .c-admin-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px 14px; padding: 2px 16px 6px; }
  .c-admin-nav::-webkit-scrollbar { display: none; }
  .c-admin-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
  .c-admin-nav a:hover { text-decoration: none; color: var(--text); }
  .c-admin-nav a.active { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-700); }
  [data-mode="dark"] .c-admin-nav a.active { color: var(--text); }
  .c-admin-nav .ico { width: 15px; height: 15px; }
}
.c-budget { display: flex; flex-direction: column; gap: 4px; min-width: 120px; }
.c-budget .meter { height: 6px; }
.c-ai-box { padding: 14px; border: 1px solid var(--accent-100); border-radius: var(--radius); background: var(--accent-50); }
[data-mode="dark"] .c-ai-box { background: var(--surface-2); border-color: var(--border); }
.c-ai-box input { background: var(--surface); }
.c-grant { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.c-grant .form-grid { width: 100%; }
.c-trial { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--info-bg); }
.c-trial[hidden] { display: none; }
.c-plans-tbl input { width: 100px; height: 32px; }
.c-plans-tbl td { padding: 6px 10px; }
.c-models input[type=number] { width: 92px; height: 32px; }
.c-models td { padding: 6px 10px; }
.c-keycard.missing { border-color: var(--warn); }
.c-central { border-color: var(--accent-100); }
.c-add { display: flex; gap: 8px; margin-top: 12px; }
.c-add input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .c-add { flex-direction: column; } }
.c-tbl-sm { font-size: var(--fs-sm); }
.c-tbl-sm td { height: 44px; }
.c-fld { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.c-fld > span { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.c-tabbody .seg button { display: inline-flex; align-items: center; gap: 6px; }
.c-tabbody .seg .ico { width: 15px; height: 15px; }
.overlay.drawer .modal.wide { width: min(920px, 100%); }
.tbl .tgl, .table-wrap .tgl { position: relative; }
/* dashboard – recent articles (status pills + compact list) */
.c-pills { margin-bottom: 8px; }
.c-pill-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.c-pill-dot.ok { background: var(--ok); } .c-pill-dot.warn { background: var(--warn); } .c-pill-dot.err { background: var(--err); }
.c-pill-dot.info { background: var(--info); } .c-pill-dot.accent { background: var(--accent); } .c-pill-dot.none { background: var(--border-strong); }
.bp-chips button.active .c-pill-dot { box-shadow: 0 0 0 2px var(--accent-contrast); }
.c-recent-tbl td { height: 44px; }
.c-recent-title { max-width: 0; width: 46%; }
.c-recent-title a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-weight: 600; }
.c-recent-tbl .c-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
@media (max-width: 700px) { .c-recent-tbl .c-col-md { display: none; } }
@media (max-width: 480px) { .c-recent-tbl .c-col-xs { display: none; } .c-recent-title { width: 70%; } }

/* ---------- Darstellung: layout cards, fonts, own colour ---------- */
.c-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .c-layouts { grid-template-columns: minmax(0, 1fr); } }
.c-lay { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.c-lay b { font-size: var(--fs-sm); margin-top: 6px; }
.c-lay:hover:not(:disabled) { border-color: var(--border-strong); }
.c-lay.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.c-lay:disabled { opacity: .5; cursor: not-allowed; }
.c-lay:focus-visible, .c-font:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* mini drawing: s = navigation, t = top bar, b = page content */
.c-lay-pic { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); overflow: hidden; }
.c-lay-pic i { position: absolute; display: block; border-radius: 3px; }
.c-lay-pic .s { background: var(--surface-3); }
.c-lay-pic .t { background: var(--surface-3); opacity: .7; }
.c-lay-pic .b { background: var(--surface); border: 1px solid var(--border); }
.c-lay-pic[data-pic="sidebar"] .s { left: 4%; top: 6%; bottom: 6%; width: 24%; }
.c-lay-pic[data-pic="sidebar"] .t { left: 32%; right: 4%; top: 6%; height: 12%; }
.c-lay-pic[data-pic="sidebar"] .b { left: 32%; right: 4%; top: 24%; bottom: 6%; }
.c-lay-pic[data-pic="rail"] .s { left: 4%; top: 6%; bottom: 6%; width: 8%; }
.c-lay-pic[data-pic="rail"] .t { left: 16%; right: 4%; top: 6%; height: 12%; }
.c-lay-pic[data-pic="rail"] .b { left: 16%; right: 4%; top: 24%; bottom: 6%; }
.c-lay-pic[data-pic="top"] .s { left: 4%; right: 4%; top: 6%; height: 12%; }
.c-lay-pic[data-pic="top"] .t { left: 4%; right: 4%; top: 22%; height: 9%; }
.c-lay-pic[data-pic="top"] .b { left: 12%; right: 12%; top: 36%; bottom: 6%; }
.c-lay.active .c-lay-pic .s { background: var(--accent); opacity: .85; }

.c-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 6px; }
.c-font { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); cursor: pointer; text-align: left; min-width: 0; }
.c-font .c-font-aa { font-size: 22px; font-weight: 600; line-height: 1.1; }
.c-font .xs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; color: var(--text-2); }
.c-font:hover:not(:disabled) { border-color: var(--border-strong); }
.c-font.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.c-font:disabled { opacity: .5; cursor: not-allowed; }

.c-sw .swatch.c-sw-custom { background: conic-gradient(#e5484d 0 25%, #f5a524 0 50%, #30a46c 0 75%, #0091ff 0); }   /* four flat quarters, no blend */
.c-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.c-custom .c-color { width: 220px; max-width: 100%; }
.c-ratio { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); padding: 4px 10px; border-radius: 99px; }
.c-ratio .ico { width: 15px; height: 15px; }
.c-ratio.ok { color: var(--ok); background: var(--ok-bg); } .c-ratio.warn { color: var(--warn); background: var(--warn-bg); }
.c-ap-side { position: sticky; top: 80px; align-self: start; }
[data-layout="top"] .c-ap-side { top: 140px; }
@media (max-width: 1100px) { .c-ap-side { position: static; } }
section[data-sec] { scroll-margin-top: 140px; }
