/* Cortuno components.
   Every colour, radius and fixed size is a token from tokens.json (var(--name)).
   Values with no token are copied from the product's own stylesheets. */

/* ---------------------------------------------------------------- Buttons */
.cbm-btn { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-min); padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-md); background: var(--action); color: var(--on-action); font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.cbm-btn:hover { background: var(--action-hover); }
.cbm-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cbm-btn svg { flex-shrink: 0; }
.cbm-btn-secondary { padding: 0 18px; border-color: var(--line); background: var(--surface); color: var(--action); }
.cbm-btn-secondary:hover { background: var(--surface-alt); }
.cbm-btn-quiet { background: var(--surface-alt); color: var(--text); }
.cbm-btn-quiet:hover { background: var(--tint); }
.cbm-btn-danger { background: var(--danger); color: var(--on-action); }
.cbm-btn-danger:hover { background: var(--danger); box-shadow: inset 0 0 0 999px rgba(0, 0, 0, 0.12); }
.cbm-btn-danger-outline { border-color: var(--danger); background: var(--surface); color: var(--danger); }
.cbm-btn-danger-outline:hover { background: var(--danger-bg); }
.cbm-btn-block { width: 100%; }
.cbm-btn-sm { min-height: var(--control-sm); padding: 0 12px; gap: 6px; font-size: 14px; }
.cbm-btn-icon { width: var(--control-sm); min-height: var(--control-sm); padding: 0; background: var(--surface-alt); color: var(--text-muted); }
.cbm-btn-icon:hover { background: var(--tint); color: var(--action); }
.cbm-link { color: var(--action); font-weight: 600; text-underline-offset: 3px; }
.cbm-link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-underline-offset: 3px; }
.cbm-link-btn:hover { text-decoration: underline; }
.cbm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- Fields */
.cbm-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cbm-label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.cbm-input, .cbm-select, .cbm-textarea { box-sizing: border-box; width: 100%; min-height: var(--control-min); padding: 10px 14px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 22px; }
.cbm-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.cbm-input::placeholder, .cbm-textarea::placeholder { color: var(--text-muted); }
.cbm-input:focus-visible, .cbm-select:focus-visible, .cbm-textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cbm-hint { margin: 0; font-size: 13px; line-height: 20px; color: var(--text-muted); }
.cbm-field-error { margin: 0; font-size: 14px; line-height: 22px; color: var(--danger); }
.cbm-field.is-invalid .cbm-input, .cbm-field.is-invalid .cbm-select, .cbm-field.is-invalid .cbm-textarea { border-color: var(--danger); }
.cbm-input-sm, .cbm-select-sm { min-height: var(--control-sm); padding: 4px 10px; font-size: 14px; line-height: 20px; }
.cbm-input-group { display: flex; }
.cbm-input-group .cbm-input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cbm-input-addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--input-border); border-right: 0; border-radius: var(--radius-md) 0 0 var(--radius-md); background: var(--surface-alt); color: var(--text-muted); font-size: 15px; }
.cbm-fieldset { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cbm-fieldset legend { margin-bottom: 6px; padding: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }

/* ---------------------------------------------------------------- Choices */
.cbm-choice { display: flex; align-items: center; gap: 10px; min-height: 40px; font-family: var(--font-sans); font-size: 15px; line-height: 22px; color: var(--text); cursor: pointer; }
.cbm-choice input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.cbm-switch, .cbm-choice .cbm-switch { appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 40px; height: 22px; margin: 0; border-radius: var(--radius-pill); background: var(--input-border); cursor: pointer; transition: background 0.15s ease; }
.cbm-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: transform 0.15s ease; }
.cbm-switch:checked { background: var(--action); }
.cbm-switch:checked::before { transform: translateX(18px); }
.cbm-choice input:focus-visible, .cbm-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cbm-switch-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .cbm-switch, .cbm-switch::before { transition: none; } }

/* ---------------------------------------------------------------- File pickers */
.cbm-filebox { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--input-border); border-radius: var(--radius-md); background: var(--surface-alt); color: var(--text-muted); font-size: 14px; }
.cbm-filebox input { font: inherit; color: inherit; }
.cbm-dropzone { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 140px; padding: 16px; border: 1.5px dashed var(--input-border); border-radius: var(--radius-item); background: var(--surface-alt); color: var(--text-muted); font-size: 14px; line-height: 22px; text-align: center; cursor: pointer; }
.cbm-dropzone:hover, .cbm-dropzone.is-over { border-color: var(--action); background: var(--tint); }
.cbm-dropzone strong { color: var(--action); }

/* ---------------------------------------------------------------- Notices, pills, chips */
.cbm-notice { margin: 0; padding: 12px 16px; border-radius: var(--radius-md); background: var(--tint); color: var(--text); font-size: 15px; line-height: 24px; }
.cbm-notice-success { background: var(--done-bg); color: var(--done); }
.cbm-notice-warning { background: var(--waiting-bg); color: var(--waiting); }
.cbm-notice-error { background: var(--danger-bg); color: var(--danger); }
.cbm-notice strong { font-weight: 600; }
.cbm-notice a { color: inherit; font-weight: 600; }
.cbm-pill { display: inline-block; padding: 3px 12px; border-radius: var(--radius-pill); background: var(--tint); color: var(--action); font-size: 13px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.cbm-pill-waiting { background: var(--waiting-bg); color: var(--waiting); }
.cbm-pill-done { background: var(--done-bg); color: var(--done); }
.cbm-pill-danger { background: var(--danger-bg); color: var(--danger); }
.cbm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--label-slate-bg); color: var(--label-slate); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.cbm-chip-slate { background: var(--label-slate-bg); color: var(--label-slate); }
.cbm-chip-red { background: var(--label-red-bg); color: var(--label-red); }
.cbm-chip-orange { background: var(--label-orange-bg); color: var(--label-orange); }
.cbm-chip-amber { background: var(--label-amber-bg); color: var(--label-amber); }
.cbm-chip-green { background: var(--label-green-bg); color: var(--label-green); }
.cbm-chip-teal { background: var(--label-teal-bg); color: var(--label-teal); }
.cbm-chip-blue { background: var(--label-blue-bg); color: var(--label-blue); }
.cbm-chip-indigo { background: var(--label-indigo-bg); color: var(--label-indigo); }
.cbm-chip-violet { background: var(--label-violet-bg); color: var(--label-violet); }
.cbm-chip-pink { background: var(--label-pink-bg); color: var(--label-pink); }
.cbm-chip-retired { border-style: dashed; border-color: currentColor; }
.cbm-chip-remove { padding: 0; margin-left: 2px; border: 0; background: none; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.cbm-chip-remove:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 2px; }
.cbm-tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: var(--radius-sm); background: var(--waiting-bg); color: var(--waiting); font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0.04em; vertical-align: 1px; }

/* ---------------------------------------------------------------- Dialog */
.cbm-overlay { box-sizing: border-box; position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--overlay); }
.cbm-dialog { box-sizing: border-box; width: 100%; max-width: 500px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-overlay); color: var(--text); font-family: var(--font-sans); }
.cbm-dialog-head { display: flex; align-items: center; gap: 16px; padding: 16px 16px 0; }
.cbm-dialog-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--danger-bg); color: var(--danger); }
.cbm-dialog-icon-warning { background: var(--waiting-bg); color: var(--waiting); }
.cbm-dialog-icon-primary { background: var(--tint); color: var(--action); }
.cbm-dialog-title { flex: 1; margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; }
.cbm-dialog-close { display: flex; align-items: center; justify-content: center; width: var(--control-sm); height: var(--control-sm); border: 0; border-radius: var(--radius-md); background: none; color: var(--text-muted); cursor: pointer; }
.cbm-dialog-close:hover { background: var(--surface-alt); color: var(--text); }
.cbm-dialog-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cbm-dialog-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 0; color: var(--text-muted); font-size: 15px; line-height: 24px; }
.cbm-dialog-body p { margin: 0; }
.cbm-dialog-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 20px 16px 16px; }

/* ---------------------------------------------------------------- Card, tabs, menu */
.cbm-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); }
.cbm-card-roomy { padding: var(--space-7); }
a.cbm-card { text-decoration: none; }
a.cbm-card:hover { border-color: var(--action); }
a.cbm-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cbm-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cbm-card-title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--text); }
.cbm-card-text { margin: 0; font-size: 15px; line-height: 24px; color: var(--text-muted); }
.cbm-panel-head { display: flex; align-items: center; gap: 10px; color: var(--action); }
.cbm-panel-title { margin: 0; font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 640px) { .cbm-card-roomy { padding: var(--space-5); } }
.cbm-tabs { display: flex; gap: 4px; margin: 0; padding: 0; border-bottom: 1px solid var(--line); list-style: none; overflow-x: auto; }
.cbm-tab { display: block; margin-bottom: -1px; padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-muted); font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; }
.cbm-tab:hover { border-bottom-color: var(--line); color: var(--text); }
.cbm-tab[aria-selected="true"], .cbm-tab[aria-current="page"] { border-bottom-color: var(--action); color: var(--action); font-weight: 600; }
.cbm-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.cbm-menu { box-sizing: border-box; min-width: 220px; margin: 0; padding: 6px 0; border: 1px solid var(--line); border-radius: var(--radius-item); background: var(--surface); box-shadow: var(--shadow-overlay); list-style: none; font-family: var(--font-sans); }
.cbm-menu-item { box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 16px; border: 0; background: none; color: var(--text); font-family: inherit; font-size: 15px; line-height: 22px; text-align: left; text-decoration: none; cursor: pointer; }
.cbm-menu-item:hover, .cbm-menu-item:focus-visible { background: var(--tint); outline: none; }
.cbm-menu-item svg { color: var(--text-muted); }
.cbm-menu-danger, .cbm-menu-danger svg { color: var(--danger); }
.cbm-menu-divider { height: 1px; margin: 6px 0; background: var(--line); }
.cbm-menu-label { padding: 6px 16px 2px; font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

/* ---------------------------------------------------------------- Data table, pagination */
.cbm-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.cbm-table-scroll { overflow-x: auto; }
.cbm-table { width: 100%; border-collapse: collapse; color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 22px; }
.cbm-table th { padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--text-muted); font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.cbm-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cbm-table tbody tr:last-child td { border-bottom: 0; }
.cbm-table tbody tr:hover { background: var(--surface-alt); box-shadow: inset 3px 0 0 var(--action); }
.cbm-table .cbm-ref { white-space: nowrap; }
.cbm-table .cbm-num { text-align: right; font-variant-numeric: tabular-nums; }
.cbm-table-actions { width: 1%; white-space: nowrap; }
.cbm-cell-primary { color: var(--action); font-weight: 600; text-decoration: none; }
.cbm-cell-primary:hover { text-decoration: underline; text-underline-offset: 3px; }
.cbm-sort { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.cbm-sort:hover, .cbm-sort.is-active { color: var(--action); }
.cbm-thumb { display: block; width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-alt); }
.cbm-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 18rem; margin: 0 auto; padding: 40px 0; color: var(--text-muted); font-size: 15px; line-height: 24px; text-align: center; }
.cbm-empty-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--action); }
.cbm-empty-title { margin: 0; color: var(--text); font-size: 16px; line-height: 24px; font-weight: 600; }
.cbm-empty p { margin: 0; }
.cbm-pagination-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); color: var(--text-muted); font-family: var(--font-sans); font-size: 14px; line-height: 20px; }
.cbm-pagination { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cbm-page { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; }
.cbm-page:hover { border-color: var(--action); color: var(--action); }
.cbm-page[aria-current="page"] { border-color: var(--action); background: var(--action); color: var(--on-action); }
.cbm-page:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cbm-page-size { display: flex; align-items: center; gap: 8px; }
.cbm-page-size .cbm-select { width: auto; }

/* ---------------------------------------------------------------- Back office: frame (module rail, page panel, top bar, footer) */
.cbm-shell { position: relative; display: flex; min-height: 100vh; background: var(--surface-alt); color: var(--text); font-family: var(--font-sans); }
.cbm-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.cbm-content { flex-grow: 1; padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 20px; }
.cbm-rail { box-sizing: border-box; display: flex; flex-direction: column; flex-shrink: 0; width: var(--rail-width); border-right: 1px solid var(--sidebar-line); background: var(--sidebar); font-family: var(--font-sans); }
.cbm-rail-brand { box-sizing: border-box; flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: var(--topbar-height); border-bottom: 1px solid var(--sidebar-line); }
.cbm-rail-brand img { display: block; width: 34px; height: 34px; }
.cbm-rail-items { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 8px; list-style: none; }
.cbm-rail-foot { padding: 8px; border-top: 1px solid var(--sidebar-line); }
.cbm-rail-item { box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding: 8px 2px 7px; border: 0; border-radius: var(--radius-item); background: none; color: var(--sidebar-text); font-family: inherit; font-size: 13px; line-height: 16px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.cbm-rail-item:hover { background: var(--sidebar-hover); color: var(--white); }
.cbm-rail-item[aria-current="page"] { background: var(--sidebar-active-bg); color: var(--sidebar-active); }
.cbm-rail-item:focus-visible { outline: 2px solid var(--sidebar-active); outline-offset: -2px; }
.cbm-rail-item svg { flex-shrink: 0; }
.cbm-pages { box-sizing: border-box; display: flex; flex-direction: column; flex-shrink: 0; width: var(--panel-width); border-right: 1px solid var(--line); background: var(--surface); font-family: var(--font-sans); }
.cbm-pages[hidden] { display: none; }
.cbm-pages-head { box-sizing: border-box; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: var(--topbar-height); padding: 0 10px 0 20px; border-bottom: 1px solid var(--line); }
.cbm-pages-title { margin: 0; color: var(--text); font-size: 18px; line-height: 24px; font-weight: 700; }
.cbm-pages-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px; list-style: none; }
.cbm-pages-group { padding: 14px 10px 4px; color: var(--text-muted); font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cbm-pages-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--radius-md); color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none; }
.cbm-pages-link:hover { background: var(--surface-alt); }
.cbm-pages-link[aria-current="page"] { background: var(--tint); color: var(--action); }
.cbm-pages-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cbm-icon-btn { display: flex; align-items: center; justify-content: center; position: relative; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-muted); font-family: inherit; cursor: pointer; text-decoration: none; }
.cbm-icon-btn:hover { background: var(--surface-alt); color: var(--text); }
.cbm-icon-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cbm-icon-btn-sm { width: 36px; height: 36px; }
.cbm-count { position: absolute; top: 2px; right: 0; box-sizing: border-box; min-width: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--action); color: var(--on-action); font-size: 13px; line-height: 18px; font-weight: 700; text-align: center; }
.cbm-topbar { box-sizing: border-box; display: flex; align-items: center; gap: 16px; height: var(--topbar-height); padding: 0 24px 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); font-family: var(--font-sans); }
.cbm-topbar .cbm-breadcrumb { flex: none; }
.cbm-topbar-actions { display: flex; align-items: center; gap: 6px; }
.cbm-goto { flex-grow: 1; max-width: 420px; margin-left: auto; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 1px solid var(--input-border); border-radius: var(--radius-md); background: var(--surface); color: var(--text-muted); font-family: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cbm-goto span { flex-grow: 1; }
.cbm-goto kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 13px; }
.cbm-goto:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cbm-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--text-muted); font-size: 14px; line-height: 20px; list-style: none; }
.cbm-breadcrumb li + li::before { content: "\203A"; margin-right: 6px; }
.cbm-breadcrumb a { color: inherit; text-decoration: none; }
.cbm-breadcrumb a:hover { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.cbm-breadcrumb [aria-current="page"] { color: var(--text); font-weight: 600; }
.cbm-lang-btn { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: none; color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cbm-lang-btn[aria-expanded="true"] { background: var(--tint); }
.cbm-lang-btn:focus-visible, .cbm-profile-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cbm-profile-btn { display: flex; align-items: center; gap: 8px; padding: 2px 6px 2px 2px; border: 0; border-radius: var(--radius-item); background: none; color: var(--text-muted); font-family: inherit; cursor: pointer; }
.cbm-avatar { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--action); color: var(--on-action); font-family: var(--font-sans); font-size: 13px; font-weight: 700; }
.cbm-popover { position: relative; }
.cbm-popover > .cbm-menu { position: absolute; top: 48px; right: 0; z-index: 20; }
.cbm-menu-head { display: flex; flex-direction: column; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.cbm-menu-head strong { color: var(--text); font-size: 15px; line-height: 22px; }
.cbm-menu-head span { color: var(--text-muted); font-size: 13px; line-height: 20px; }
.cbm-menu-item[aria-checked="true"] { font-weight: 600; }
.cbm-app-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 28px; border-top: 1px solid var(--line); color: var(--text-muted); font-family: var(--font-sans); font-size: 13px; line-height: 20px; }
.cbm-app-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.cbm-app-footer a { color: inherit; }
.cbm-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.cbm-page-title { margin: 0; color: var(--text); font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.015em; }
.cbm-page-subtitle { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; line-height: 22px; }
.cbm-page-header .cbm-breadcrumb { margin-bottom: 6px; }
.cbm-stat { box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 20px 24px; border: 1px solid var(--line); border-top: 3px solid var(--action); border-radius: var(--radius-lg); background: var(--surface); }
.cbm-stat-icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--tint); color: var(--action); }
.cbm-stat-label { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.cbm-stat-value { margin: 0; color: var(--text); font-size: 26px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cbm-detail-stat { padding: 14px 16px; border-radius: var(--radius-item); background: var(--surface-alt); }
.cbm-detail-stat .cbm-stat-label { margin-bottom: 4px; font-weight: 700; }
.cbm-detail-stat-value { margin: 0; color: var(--text); font-size: 16px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Back office: list page (views, filters, columns, selection) */
.cbm-tab-count { color: var(--text-muted); font-weight: 500; }
.cbm-tab[aria-selected="true"] .cbm-tab-count { color: inherit; }
.cbm-tab-add { color: var(--action); }
.cbm-list-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-sans); }
.cbm-list-toolbar > .cbm-input { width: 280px; }
.cbm-list-toolbar-end { margin-left: auto; display: flex; gap: 8px; }
.cbm-filter-btn { color: var(--text); }
.cbm-filter-btn.is-set { border-color: var(--action); background: var(--tint); color: var(--action); }
.cbm-filter-add { color: var(--action); }
.cbm-popover > .cbm-pop { position: absolute; top: 40px; left: 0; z-index: 20; }
.cbm-popover.is-end > .cbm-pop { left: auto; right: 0; }
.cbm-pop { box-sizing: border-box; width: 280px; border: 1px solid var(--line); border-radius: var(--radius-item); background: var(--surface); box-shadow: var(--shadow-overlay); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 20px; text-transform: none; letter-spacing: normal; font-weight: 400; white-space: normal; }
.cbm-pop-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 700; }
.cbm-pop-head .cbm-select { width: auto; margin-left: auto; }
.cbm-pop-back { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-muted); cursor: pointer; }
.cbm-pop-search { padding: 0 12px 6px; }
.cbm-pop-search:first-child { padding-top: 12px; }
.cbm-pop-note { margin: 0; padding: 12px 14px 6px; color: var(--text-muted); font-size: 13px; }
.cbm-pop-list { display: flex; flex-direction: column; max-height: 240px; overflow: auto; padding: 0 6px; }
.cbm-pop-section { padding: 6px 0; border-bottom: 1px solid var(--line); }
.cbm-pop-label { padding: 4px 14px; color: var(--text-muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cbm-pop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cbm-option { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 8px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; cursor: pointer; }
.cbm-option:hover { background: var(--surface-alt); }
.cbm-option input { flex-shrink: 0; width: 18px; height: 18px; margin: 0; accent-color: var(--action); }
.cbm-option-count { margin-left: auto; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cbm-option.is-locked { color: var(--text-muted); cursor: default; }
.cbm-filter-line { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-family: var(--font-sans); }
.cbm-filter-line-label { flex-shrink: 0; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.cbm-filter-line-chips { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; overflow: hidden; }
.cbm-filter-line.is-open { align-items: flex-start; }
.cbm-filter-line.is-open .cbm-filter-line-chips { flex-wrap: wrap; }
.cbm-filter-line-end { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 14px; }
.cbm-filter-chip { display: inline-flex; align-items: center; border: 1px solid var(--action); border-radius: var(--radius-pill); background: var(--tint); color: var(--action); font-size: 13px; line-height: 18px; white-space: nowrap; }
.cbm-filter-chip strong { font-weight: 700; }
.cbm-filter-chip-edit { padding: 4px 4px 4px 10px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.cbm-filter-chip .cbm-chip-remove { margin: 0; padding: 0 9px 0 4px; }
.cbm-filter-more { flex-shrink: 0; display: inline-flex; white-space: nowrap; align-items: center; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--action); font-family: inherit; font-size: 13px; line-height: 18px; font-weight: 600; cursor: pointer; }
button.cbm-sort { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
th[aria-sort="ascending"] .cbm-sort, th[aria-sort="descending"] .cbm-sort { color: var(--action); }
.cbm-th { display: inline-flex; align-items: center; gap: 4px; }
th[draggable="true"] { cursor: grab; }
.cbm-th-grip { flex-shrink: 0; color: var(--line); }
.cbm-th-funnel { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: 2px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-muted); cursor: pointer; }
.cbm-th-funnel:hover { background: var(--surface-alt); color: var(--text); }
.cbm-th-funnel.is-set { background: var(--tint); color: var(--action); }
.cbm-th-funnel.is-set svg { fill: currentColor; }
.cbm-th-funnel:focus-visible, .cbm-filter-chip-edit:focus-visible, .cbm-filter-more:focus-visible, .cbm-pop-back:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cbm-table th.is-drop-before { box-shadow: inset 3px 0 0 var(--action); }
.cbm-table .is-dragged { background: var(--surface-alt); color: var(--text-muted); }
.cbm-col-ghost { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px solid var(--action); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-overlay); color: var(--action); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.cbm-table .cbm-col-select { width: 20px; padding-right: 0; }
.cbm-table input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--action); vertical-align: middle; }
.cbm-table tbody tr.is-selected { background: var(--surface-alt); }
.cbm-selection-bar { display: flex; align-items: center; gap: 12px 16px; padding: 10px 16px; border-bottom: 1px solid var(--tint-line); background: var(--tint); color: var(--text); font-family: var(--font-sans); font-size: 14px; line-height: 20px; }
.cbm-selection-bar strong { font-weight: 600; }
.cbm-selection-bar-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cbm-selection-bar-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.cbm-selection-bar-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.cbm-selection-bar .cbm-link-btn { color: var(--action); font-weight: 600; }
.cbm-table-wrap > .cbm-selection-bar:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* ---------------------------------------------------------------- Back office: record page (header, two panes, autosave, save bar, composer) */
.cbm-record-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; font-family: var(--font-sans); }
.cbm-record-heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cbm-record-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; line-height: 22px; }
.cbm-record-actions { position: relative; display: flex; gap: 8px; }
.cbm-record-actions > .cbm-menu { position: absolute; top: 52px; right: 0; z-index: 20; }
.cbm-record { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.cbm-record-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.cbm-record-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cbm-record-side .cbm-card { gap: 14px; }
@media (max-width: 1100px) { .cbm-record { grid-template-columns: minmax(0, 1fr); } .cbm-record-side { order: -1; } }
.cbm-save-note { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: 13px; line-height: 20px; }
.cbm-save-note.is-saved { color: var(--done); font-weight: 600; }
.cbm-history { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; color: var(--text); font-size: 14px; line-height: 20px; list-style: none; }
.cbm-history-when { display: block; color: var(--text-muted); font-size: 13px; }
.cbm-input.is-changed, .cbm-select.is-changed, .cbm-textarea.is-changed { border-color: var(--action); }
.cbm-save-bar { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 12px 28px; border-top: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-overlay); color: var(--text); font-family: var(--font-sans); font-size: 15px; line-height: 22px; font-weight: 600; }
.cbm-save-bar .cbm-actions { gap: 8px; }
.cbm-message-note { border-color: var(--line); background: var(--surface-alt); }
.cbm-composer { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.cbm-composer:first-child { padding-top: 0; border-top: 0; }
.cbm-composer .cbm-textarea { min-height: 110px; }
.cbm-composer.is-note .cbm-textarea { background: var(--surface-alt); }
.cbm-composer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cbm-composer-foot > span { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font-size: 14px; }
.cbm-composer-foot .cbm-choice { min-height: 0; font-size: 14px; color: var(--text); }
.cbm-delivery { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 20px; }

/* ---------------------------------------------------------------- Public sites: header, footer */
.cbm-site-header { border-bottom: 1px solid var(--line); background: var(--surface); font-family: var(--font-sans); }
.cbm-site-header-inner { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(var(--content-max), 100% - 32px); height: var(--header-height); margin: 0 auto; }
.cbm-site-brand { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none; }
.cbm-site-logo { display: block; width: auto; height: 34px; }
.cbm-site-tenant { font-size: 21px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.cbm-site-divider { width: 1px; height: 24px; background: var(--line); }
.cbm-site-name { color: var(--text-muted); font-size: 15px; line-height: 20px; font-weight: 600; }
.cbm-site-nav { display: flex; align-self: stretch; align-items: center; gap: 28px; }
.cbm-site-nav a { padding: 22px 0 20px; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 15px; line-height: 28px; font-weight: 500; text-decoration: none; }
.cbm-site-nav a:hover { color: var(--text); }
.cbm-site-nav a[aria-current="page"], .cbm-site-tabs a[aria-current="page"] { border-bottom-color: var(--action); color: var(--text); font-weight: 600; }
.cbm-site-nav .cbm-link-btn, .cbm-site-header-inner > .cbm-link-btn { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.cbm-site-nav-sep { width: 1px; height: 20px; background: var(--line); }
.cbm-site-tabs { display: none; padding: 0 16px; border-top: 1px solid var(--line); }
.cbm-site-tabs a { flex-grow: 1; padding: 12px 0 10px; border-bottom: 2px solid transparent; color: var(--text-muted); font-size: 15px; line-height: 22px; font-weight: 500; text-align: center; text-decoration: none; }
.cbm-site-nav a:focus-visible, .cbm-site-tabs a:focus-visible, .cbm-site-brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.is-compact .cbm-site-header-inner { height: 60px; gap: 12px; width: auto; padding: 0 16px; }
.is-compact .cbm-site-brand { gap: 10px; }
.is-compact .cbm-site-logo { height: 26px; }
.is-compact .cbm-site-tenant { font-size: 18px; line-height: 24px; }
.is-compact .cbm-site-divider { height: 20px; }
.is-compact .cbm-site-name { font-size: 14px; }
.is-compact .cbm-site-nav { display: none; }
.is-compact .cbm-site-tabs { display: flex; }
@media (max-width: 640px) {
.cbm-site-header-inner { height: 60px; gap: 12px; width: auto; padding: 0 16px; }
.cbm-site-brand { gap: 10px; }
.cbm-site-logo { height: 26px; }
.cbm-site-tenant { font-size: 18px; line-height: 24px; }
.cbm-site-divider { height: 20px; }
.cbm-site-name { font-size: 14px; }
.cbm-site-nav { display: none; }
.cbm-site-tabs { display: flex; }
}
.cbm-site-footer { border-top: 1px solid var(--line); background: var(--surface); font-family: var(--font-sans); }
.cbm-site-footer-inner { box-sizing: border-box; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: min(var(--content-max), 100% - 32px); margin: 0 auto; padding: 24px 0; color: var(--text-muted); font-size: 13px; line-height: 20px; }
.cbm-site-footer a { color: inherit; }
@media (max-width: 640px) { .cbm-site-footer-inner { padding: 20px 0; } }

/* ---------------------------------------------------------------- Public sites: requests, conversation, files */
.cbm-requests { margin: 0; padding: 0; list-style: none; }
.cbm-requests li + li { border-top: 1px solid var(--line); }
.cbm-request { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; color: var(--text); font-family: var(--font-sans); text-decoration: none; }
.cbm-request:hover .cbm-request-subject { text-decoration: underline; text-underline-offset: 3px; }
.cbm-request:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.cbm-ref { color: var(--text-muted); font-family: var(--font-mono); font-size: 14px; line-height: 20px; }
.cbm-request-subject { font-weight: 600; overflow-wrap: anywhere; }
.cbm-request-yours { color: var(--text-muted); font-size: 14px; font-weight: 400; }
.is-compact .cbm-request { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; }
.is-compact .cbm-request .cbm-ref { font-size: 13px; }
.is-compact .cbm-request-subject { grid-column: 1 / -1; grid-row: 2; font-size: 15px; line-height: 1.45; }
@media (max-width: 640px) {
.cbm-request { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 0; }
.cbm-request .cbm-ref { font-size: 13px; }
.cbm-request-subject { grid-column: 1 / -1; grid-row: 2; font-size: 15px; line-height: 1.45; }
}
.cbm-thread { display: flex; flex-direction: column; gap: 16px; }
.cbm-message { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-item); background: var(--surface); color: var(--text); font-family: var(--font-sans); }
.cbm-message-business { border-color: var(--tint-line); background: var(--tint); }
.cbm-message-meta { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 22px; }
.cbm-message-author { color: var(--text); font-weight: 600; }
.cbm-message-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.cbm-attachments { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; font-size: 14px; line-height: 22px; list-style: none; }
.cbm-attachments li { display: flex; align-items: center; gap: 8px; color: var(--text-muted); }
.cbm-attachments a { color: var(--action); font-weight: 600; text-underline-offset: 3px; }
.cbm-files { margin: 0; padding: 0; list-style: none; font-family: var(--font-sans); }
.cbm-files li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; }
.cbm-files li + li { border-top: 1px solid var(--line); }
.cbm-file { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.cbm-file svg { flex-shrink: 0; color: var(--text-muted); }
a.cbm-file { font-weight: 600; }
a.cbm-file:hover span { text-decoration: underline; text-underline-offset: 3px; }
.cbm-file-pending { color: var(--text-muted); font-size: 14px; }

/* ---------------------------------------------------------------- Knowledge base */
.cbm-tree-card { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); font-family: var(--font-sans); }
.cbm-tree-title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.cbm-tree-title a { color: var(--text); text-decoration: none; }
.cbm-tree, .cbm-tree ul { margin: 0; padding: 0; list-style: none; }
.cbm-tree li { margin: 6px 0; }
.cbm-tree a { color: var(--text); font-size: 15px; line-height: 22px; text-decoration: none; }
.cbm-tree a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cbm-tree > li > a { font-weight: 600; }
.cbm-tree ul { margin: 6px 0 6px 6px; padding-left: 14px; border-left: 1px solid var(--line); }
.cbm-tree a[aria-current="page"] { color: var(--action); font-weight: 700; }
.cbm-tree a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cbm-article { box-sizing: border-box; display: flex; flex-direction: column; gap: 18px; padding: 40px 48px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-family: var(--font-sans); overflow-wrap: anywhere; }
.cbm-article h1 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.cbm-article h2 { margin: 12px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; }
.cbm-article p, .cbm-article ol, .cbm-article ul { margin: 0; max-width: 640px; font-size: 17px; line-height: 1.7; }
.cbm-article ol, .cbm-article ul { display: flex; flex-direction: column; gap: 6px; padding-left: 22px; }
.cbm-article img { max-width: 100%; height: auto; }
.cbm-article pre, .cbm-article code { font-family: var(--font-mono); white-space: pre-wrap; }
.cbm-article .cbm-note { padding: 14px 18px; border-radius: var(--radius-item); background: var(--tint); font-size: 15px; line-height: 1.6; }
.cbm-translations { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; }
.cbm-article .cbm-translations ul { display: flex; flex-direction: row; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.cbm-lang { display: inline-block; padding: 2px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--action); font-size: 13px; line-height: 20px; font-weight: 600; text-decoration: none; text-transform: uppercase; }
.cbm-lang:hover { border-color: var(--action); }
@media (max-width: 640px) { .cbm-article { padding: 24px 20px; } .cbm-article h1 { font-size: 24px; } }

/* ---------------------------------------------------------------- Landing page */
.cbm-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); background: var(--tint); color: var(--text); font-family: var(--font-sans); }
.cbm-hero-inner { width: min(68rem, 100% - 40px); margin: 0 auto; }
.cbm-eyebrow { margin: 0 0 8px; color: var(--text-muted); font-size: 13px; line-height: 20px; letter-spacing: 0.1em; text-transform: uppercase; }
.cbm-hero-title { margin: 0 0 20px; max-width: 24ch; font-size: 40px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
.cbm-hero-lead { margin: 0; max-width: 58ch; color: var(--text-muted); font-size: 18px; line-height: 1.6; }
.cbm-hero .cbm-actions { margin-top: 28px; }
.cbm-hero-note { margin: 16px 0 0; color: var(--text-muted); font-size: 14px; line-height: 22px; }
@media (max-width: 640px) { .cbm-hero { padding: 40px 0 32px; } .cbm-hero-title { font-size: 30px; } }
.cbm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 20px; }
.cbm-plan { box-sizing: border-box; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
.cbm-plan-name { margin: 0 0 4px; font-size: 21px; line-height: 28px; font-weight: 700; }
.cbm-plan-description { margin: 0 0 16px; color: var(--text-muted); }
.cbm-plan-prices { margin: 0 0 16px; padding: 0; list-style: none; }
.cbm-plan-prices li { padding: 10px 0; border-top: 1px solid var(--line); }
.cbm-plan-prices li:first-child { padding-top: 0; border-top: 0; }
.cbm-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.cbm-plan-amount { font-size: 26px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cbm-plan-interval { color: var(--text-muted); font-size: 14px; }
.cbm-plan-note { display: block; margin-top: 3px; color: var(--text-muted); font-size: 13px; line-height: 20px; }
.cbm-plan-saving { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: var(--radius-md); background: var(--tint); color: var(--action); font-size: 13px; line-height: 20px; font-weight: 600; }
.cbm-plan-limits { margin: 0; padding: 0; font-size: 15px; line-height: 22px; list-style: none; }
.cbm-plan-limits li { padding: 6px 0; border-top: 1px solid var(--line); }
.cbm-plan-limit { display: block; font-weight: 600; }
.cbm-plan-limit-key { color: var(--text-muted); font-weight: 400; }
.cbm-plan-behaviour { display: block; color: var(--text-muted); font-size: 13px; line-height: 20px; }
.cbm-plan-rates { margin: 6px 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); font-size: 14px; list-style: none; }
.cbm-plan-rates li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; border: 0; }
.cbm-plan-rates span:first-child { color: var(--text-muted); }
.cbm-plan-rates span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbm-plan-actions { margin-top: auto; padding-top: 20px; }
.cbm-addon { background: var(--surface-alt); }
.cbm-addon .cbm-plan-amount { font-size: 21px; line-height: 28px; }

/* ---------------------------------------------------------------- Sign-on */
.cbm-signin { box-sizing: border-box; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 26rem; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
.cbm-signin-brand { display: flex; align-items: center; gap: 8px; }
.cbm-signin-brand img { width: 32px; height: 32px; }
.cbm-signin-word { color: var(--text); font-family: var(--font-wordmark); font-size: 24px; line-height: 32px; font-weight: 700; }
.cbm-signin-lead { margin: 0; color: var(--text-muted); }
.cbm-signin-tenant { display: flex; flex-direction: column; gap: 4px; }
.cbm-signin-tenant p { margin: 0; }
.cbm-signin-tenant .cbm-hint { font-size: 14px; line-height: 22px; }
.cbm-signin form { display: flex; flex-direction: column; gap: 16px; }
.cbm-signin-help { margin: 0; font-size: 14px; }
