/* CleanSlate developer platform, embedded in the account dashboard. Tokens derive from the dashboard theme. */
.dc-root {
    --bg: var(--page-bg); --surface: var(--card-bg, #fff); --surface-2: var(--fill, rgba(127,127,127,.1)); --sunken: var(--fill-subtle, var(--fill, rgba(127,127,127,.08)));
    --text-2: color-mix(in srgb, var(--text) 78%, var(--muted)); --line-strong: color-mix(in srgb, var(--line) 65%, var(--text) 35%);
    --accent: var(--text); --accent-text: #ffffff; --accent-hover: color-mix(in srgb, var(--text) 85%, var(--page-bg));
    --chart: #3d6b5a; --ok: #1d7a43; --ok-bg: #e5f3ea; --warn: #8a5a00; --warn-bg: #fbf0d6; --bad: #b3261e; --bad-bg: #fbe7e5; --info: #2b5aa6; --info-bg: #e6eefa;
    --focus: 0 0 0 3px rgba(111, 168, 146, .4);
    --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 6px 20px rgba(20, 20, 20, .05);
    --font: var(--font-sans, "Instrument Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif);
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --radius: 10px;
    font: 14px/1.5 var(--font); color: var(--text);
}
html[data-admin-theme="dark"] .dc-root {
    --accent-text: #111111;
    --chart: #6fa892; --ok: #55c07f; --ok-bg: #12261b; --warn: #e5b84d; --warn-bg: #2a2110; --bad: #f1807a; --bad-bg: #2d1513; --info: #8db3f0; --info-bg: #15213a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}
.dc-root *, .dc-root *::before, .dc-root *::after { box-sizing: border-box; }
.dc-root h1, .dc-root h2, .dc-root h3, .dc-root h4 { margin: 0; letter-spacing: -.01em; }
.dc-root h2 { font-size: 16px; } .dc-root h3 { font-size: 14px; }
.dc-root p { margin: 0; }
.dc-root a { color: inherit; }
.dc-root code, .dc-root pre { font-family: var(--mono); font-size: 12.5px; }
.dc-root code { background: var(--sunken); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.dc-root button, .dc-root input, .dc-root select, .dc-root textarea { font: inherit; color: inherit; }
.dc-root :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.dc-muted { color: var(--muted); } .dc-mono { font-family: var(--mono); font-size: 12.5px; }
.dc-num { font-variant-numeric: tabular-nums; }

/* Platform frame */
#developerPlatform { padding: 0; overflow: hidden; }
.dc-platform-head { padding: 22px 24px 4px; }
.dc-platform-head h2 { font-size: 22px; margin-top: 4px; }
.dc-tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.dc-tabs::-webkit-scrollbar { display: none; }
.dc-tab { flex: none; border: 0; background: none; padding: 12px 12px 11px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.dc-tab:hover { color: var(--text); }
.dc-tab.is-active { color: var(--text); border-bottom-color: var(--chart); }
#developerPlatform > .dc-notice { margin: 16px 24px 0; }
.dc-panel { padding: 24px; display: grid; gap: 22px; }
.dc-panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dc-panel-head h3 { font-size: 18px; } .dc-panel-head p { margin-top: 3px; max-width: 62ch; }
.dc-panel-body { display: grid; gap: 22px; min-width: 0; }
.dc-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dc-card .dc-card { box-shadow: none; }
#developerPlatform .dc-card { background: var(--surface); }

/* Controls */
.dc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s; }
.dc-btn:hover { background: var(--accent-hover); }
.dc-btn[disabled], .dc-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.dc-btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.dc-btn-secondary:hover { background: var(--surface-2); }
.dc-btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.dc-btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.dc-btn-danger { background: var(--surface); color: var(--bad); border-color: var(--line-strong); }
.dc-btn-danger:hover { background: var(--bad-bg); }
.dc-btn-danger.is-solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.dc-btn-sm { min-height: 30px; padding: 0 10px; font-size: 13px; }
.dc-icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 8px; background: transparent; cursor: pointer; color: var(--text-2); }
.dc-icon-btn:hover { background: var(--surface-2); color: var(--text); }
.dc-icon-btn svg { width: 19px; height: 19px; }
.dc-field { display: grid; gap: 6px; }
.dc-field > label, .dc-label { font-size: 13px; font-weight: 500; }
.dc-hint { font-size: 12.5px; color: var(--muted); }
.dc-input, .dc-select, .dc-textarea { width: 100%; min-height: 38px; padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.dc-input:focus, .dc-select:focus, .dc-textarea:focus { outline: none; border-color: var(--chart); box-shadow: var(--focus); }
.dc-input[aria-invalid="true"] { border-color: var(--bad); }
.dc-input[readonly] { background: var(--sunken); color: var(--text-2); }
.dc-field-error { color: var(--bad); font-size: 12.5px; }
.dc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dc-form-grid .is-wide { grid-column: 1 / -1; }
.dc-check-list { display: grid; gap: 4px; max-height: 220px; overflow: auto; padding: 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); }
.dc-check { display: flex; gap: 9px; align-items: flex-start; padding: 6px 7px; border-radius: 6px; cursor: pointer; }
.dc-check:hover { background: var(--surface-2); }
.dc-check input { margin-top: 3px; accent-color: var(--chart); }
.dc-segment { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--sunken); flex-wrap: wrap; }
.dc-segment button { border: 0; background: transparent; padding: 5px 12px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--text-2); }
.dc-segment button[aria-pressed="true"], .dc-segment button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* Surfaces */
.dc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.dc-card-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dc-card-body { padding: 20px; }
.dc-grid { display: grid; gap: 16px; }
.dc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dc-stat { padding: 16px 18px; }
.dc-stat-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.dc-stat-value { margin-top: 6px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dc-stat-sub { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.dc-notice { padding: 11px 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface); }
.dc-notice.is-error, .dc-callout.is-error { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.dc-notice.is-success, .dc-callout.is-success { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.dc-callout { padding: 12px 14px; border-radius: 9px; background: var(--info-bg); color: var(--text); display: flex; gap: 10px; font-size: 13.5px; }
.dc-callout.is-warn { background: var(--warn-bg); }
.dc-callout strong { font-weight: 600; }

/* Tables */
.dc-table-wrap { overflow-x: auto; }
.dc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dc-table th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.dc-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dc-table tbody tr:last-child td { border-bottom: 0; }
.dc-table tbody tr:hover td { background: var(--surface-2); }
.dc-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.dc-table small { display: block; color: var(--muted); font-size: 12px; }
.dc-table-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; flex-wrap: wrap; }

/* Badges */
.dc-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.dc-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.dc-badge.is-ok { background: var(--ok-bg); color: var(--ok); } .dc-badge.is-warn { background: var(--warn-bg); color: var(--warn); }
.dc-badge.is-bad { background: var(--bad-bg); color: var(--bad); } .dc-badge.is-info { background: var(--info-bg); color: var(--info); }
.dc-badge.is-plain::before { display: none; }
.dc-chip { display: inline-block; padding: 1px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 12px; margin: 1px 3px 1px 0; background: var(--surface); }

/* States */
.dc-state { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 44px 24px; color: var(--text-2); }
.dc-state h3 { font-size: 15px; color: var(--text); } .dc-state p { max-width: 46ch; color: var(--muted); }
.dc-state .dc-btn { margin-top: 8px; }
.dc-state.is-error h3 { color: var(--bad); }
.dc-skel { border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--sunken), var(--surface-2)); background-size: 200% 100%; animation: dcSkel 1.3s linear infinite; height: 14px; }
@keyframes dcSkel { to { background-position: -200% 0; } }
.dc-skel-block { display: grid; gap: 12px; padding: 20px; }
@media (prefers-reduced-motion: reduce) { .dc-skel, html.admin-progress::before { animation: none; } }

/* Code */
.dc-code { position: relative; border: 1px solid var(--line); border-radius: 9px; background: var(--sunken); }
.dc-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; line-height: 1.6; color: var(--text); }
.dc-code-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Chart */
.dc-chart { position: relative; padding: 8px 4px 0; }
.dc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.dc-chart .bar { fill: var(--chart); }
.dc-chart .bar.is-active { fill: var(--accent); }
.dc-chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.dc-chart .grid line { stroke: var(--line); stroke-width: 1; }
.dc-tooltip { position: absolute; pointer-events: none; z-index: 5; padding: 7px 10px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-size: 12px; line-height: 1.4; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: var(--shadow); }

/* Progress / steps */
.dc-progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.dc-progress span { display: block; height: 100%; background: var(--chart); }
.dc-steps { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.dc-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dc-steps li:last-child { border-bottom: 0; }
.dc-step-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; color: transparent; }
.dc-steps li.is-done .dc-step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.dc-steps li.is-done .dc-step-title { color: var(--muted); text-decoration: line-through; }
.dc-step-body { flex: 1; min-width: 0; } .dc-step-title { font-weight: 500; }

/* Filters */
.dc-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dc-filters .dc-field { min-width: 150px; flex: 1 1 150px; max-width: 240px; }

/* Modal */
.dc-modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 20px; }
.dc-modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dc-modal.is-wide { max-width: 640px; }
.dc-modal-head { padding: 18px 22px 0; } .dc-modal-body { padding: 12px 22px 20px; display: grid; gap: 14px; }
.dc-modal-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.dc-secret { display: flex; gap: 8px; } .dc-secret .dc-input { font-family: var(--mono); font-size: 12.5px; }

/* Toasts */
.dc-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: grid; gap: 8px; }
.dc-toast { padding: 10px 14px; border-radius: 9px; background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow); max-width: 360px; font-size: 13.5px; }
.dc-toast.is-error { background: var(--bad); color: #fff; }

/* Docs */
.dc-docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: start; }
.dc-toc { position: sticky; top: 16px; display: grid; gap: 2px; font-size: 13px; }
.dc-toc a { padding: 5px 10px; border-radius: 6px; color: var(--text-2); text-decoration: none; }
.dc-toc a:hover { background: var(--surface-2); color: var(--text); }
.dc-prose { display: grid; gap: 14px; min-width: 0; }
.dc-prose section { display: grid; gap: 12px; scroll-margin-top: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.dc-prose section:last-child { border-bottom: 0; }
.dc-prose h2 { font-size: 20px; } .dc-prose h3 { margin-top: 6px; }
.dc-prose p, .dc-prose li { color: var(--text-2); max-width: 78ch; } .dc-prose ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }


@media (max-width: 1040px) { .dc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dc-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
    .dc-docs { grid-template-columns: 1fr; } .dc-toc { position: static; grid-auto-flow: column; overflow-x: auto; }
    .dc-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .dc-panel { padding: 16px; } .dc-platform-head { padding: 18px 16px 4px; } #developerPlatform > .dc-notice { margin: 12px 16px 0; }
    .dc-grid-4 { grid-template-columns: 1fr 1fr; } .dc-form-grid { grid-template-columns: 1fr; }
    .dc-stat-value { font-size: 20px; } .dc-filters .dc-field { max-width: none; }
    .dc-modal-foot { flex-direction: column-reverse; } .dc-modal-foot .dc-btn { width: 100%; }
}

/* Embedded as a page inside the dashboard shell */
.dc-embedded .dc-panel { padding: 0; }
.dc-embedded .dc-panel-head:not(:has(.dc-btn)) { display: none; }
.dc-embedded .dc-panel-head { justify-content: flex-end; }
.dc-embedded .dc-notice { margin-bottom: 18px; }

.dc-embedded .dc-btn:not(.dc-btn-secondary):not(.dc-btn-ghost):not(.dc-btn-danger) { color: var(--accent-text); }

.dc-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .dc-split { grid-template-columns: 1fr; } }
.dc-stat-action { margin-top: 10px; }
.dc-details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.dc-details > summary { cursor: pointer; padding: 12px 16px; font-weight: 500; }
.dc-details > div { padding: 0 16px 14px; color: var(--muted); display: grid; gap: 6px; }
.dc-row-link { cursor: default; }
.dc-table td small { max-width: 240px; }
.dc-balance-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dc-balance-line:last-child { border-bottom: 0; }

.dc-filters-custom { display: flex; gap: 12px; padding: 0 20px 14px; border-bottom: 1px solid var(--line); }
.dc-filters-custom[hidden] { display: none; }
.dc-filters-custom .dc-field { max-width: 200px; }
.api-overview .dc-embedded { margin-top: 4px; }
.dc-embedded .dc-panel-head:empty, .dc-embedded .dc-panel-head:not(:has(.dc-btn)) { display: none; }

@media (min-width: 700px) { [data-api-page] { position: relative; } [data-api-page] .dc-embedded .dc-panel-head { position: absolute; top: 6px; right: 0; } }

/* Models */
.dc-logo { width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; color: var(--text-2); }
.dc-logo.is-xs { width: 20px; height: 20px; border-radius: 6px; font-size: 10px; }
.dc-logo.is-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.dc-logo.is-lg { width: 48px; height: 48px; border-radius: 13px; }
.dc-logo.is-art { width: 52px; height: 52px; border: 0; background: transparent; color: #111111; font-size: 26px; }
.dc-logo-mark { width: 55%; height: 55%; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.dc-logo.is-art .dc-logo-mark { width: 100%; height: 100%; }

/* Tags and copy controls: one neutral palette */
.dc-tag { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid transparent; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.dc-tag.is-solid { background: var(--text); color: var(--bg); font-weight: 500; }
.dc-tag.is-outline { border-color: var(--line-strong); background: transparent; color: var(--muted); }
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-copy { width: 30px; height: 30px; flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.dc-copy:hover { background: var(--surface-2); color: var(--text); }
.dc-copy svg { width: 16px; height: 16px; }
.dc-copy.is-copied { color: var(--text); }
.dc-copy.is-field { width: 38px; height: 38px; border: 1px solid var(--line-strong); background: var(--surface); }
.dc-code-bar .dc-copy { width: 26px; height: 26px; }
.dc-id-chip { width: auto; max-width: 100%; min-width: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 8px 0 10px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer; }
.dc-id-chip:hover { border-color: var(--line-strong); color: var(--text); }
.dc-id-chip code { overflow: hidden; padding: 0; border: 0; background: none; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.dc-id-chip svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.dc-id-chip:hover svg, .dc-id-chip.is-copied svg { color: var(--text); }

/* Auto Router */
.dc-router { display: grid; grid-template-columns: 148px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; }
.dc-router-art { display: grid; place-items: center; background: #f2f2f0; }
.dc-router-body { min-width: 0; display: grid; gap: 14px; padding: 20px 22px; }
.dc-router-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dc-router-title { display: flex; align-items: center; gap: 10px; }
.dc-router-title h2 { font-size: 19px; }
.dc-router-desc { max-width: 76ch; color: var(--muted); }
.dc-router-facts { display: flex; flex-wrap: wrap; gap: 0; }
.dc-router-fact { display: grid; gap: 2px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); }
.dc-router-fact:last-child { border-right: 0; }
.dc-router-fact span { color: var(--muted); font-size: 12px; }
.dc-router-fact strong { font-size: 15px; font-weight: 500; }
.dc-router-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.dc-pool-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); }

.dc-models-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.dc-models-head h2 { font-size: 17px; }
.dc-models-summary { margin-top: 3px; color: var(--muted); }
.dc-view-toggle button { min-width: 82px; }

/* Model cards: one neutral band, black marks */
.dc-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.dc-mcard { min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, transform .15s; }
.dc-mcard:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.dc-mcard-art { height: 104px; display: grid; place-items: center; background: #f2f2f0; }
.dc-mcard-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; }
.dc-mcard-body .dc-mprices { margin-top: auto; }
.dc-mcard-title { display: grid; gap: 2px; }
.dc-mcard-title h3 { font-size: 16px; font-weight: 500; }
.dc-mcard-title span { color: var(--muted); font-size: 13px; }
.dc-mprices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px 0; border-block: 1px solid var(--line); }
.dc-mprice { display: grid; gap: 2px; }
.dc-mprice + .dc-mprice { padding-left: 12px; border-left: 1px solid var(--line); }
.dc-mprice span { color: var(--muted); font-size: 12px; }
.dc-mprice strong { font-size: 15px; font-weight: 500; }

.dc-compare-model { display: flex; align-items: center; gap: 12px; }
.dc-compare .dc-table td, .dc-compare .dc-table th { white-space: nowrap; }
.dc-compare .dc-table td.is-num { color: var(--text-2); }
.dc-compare .dc-best { color: var(--text); font-weight: 600; }
.dc-compare .dc-best::after { content: "Lowest"; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 500; vertical-align: 1px; }

@media (max-width: 640px) {
    .dc-router { grid-template-columns: 1fr; }
    .dc-router-art { height: 96px; }
}

/* Billing */
.dc-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; }
.dc-preset { padding: 11px 0; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); font-weight: 600; cursor: pointer; }
.dc-preset:hover { border-color: var(--muted); }
.dc-preset[aria-pressed="true"] { border-color: var(--chart); background: color-mix(in srgb, var(--chart) 14%, var(--surface)); box-shadow: inset 0 0 0 1px var(--chart); }
.dc-summary { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; background: var(--sunken); }
.dc-sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.dc-sum-line:last-child { border-bottom: 0; }
.dc-sum-line.is-muted { color: var(--muted); }
.dc-sum-line.is-total { font-weight: 600; font-size: 15px; }
.dc-pos { color: var(--ok); }
#payBtn { min-height: 46px; font-size: 15px; width: 100%; }
