/* Panels, buttons, metrics, tables, forms, families, tokens. */
    .showcase-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 16px; }
    .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 17px; box-shadow: var(--shadow); min-width: 0; }
    .panel-top { display: flex; justify-content: space-between; gap: 12px; padding: 20px 21px; align-items: center; border-bottom: 1px solid var(--border); }
    .panel-top h3 { margin: 0; font-size: 13px; font-weight: 780; letter-spacing: -.015em; }
    .panel-top small { display: block; font-size: 11px; margin-top: 3px; color: var(--muted); }
    .tag { display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 7px; font-size: 10px; font-weight: 750; white-space: nowrap; }
    .tag.primary { background: var(--primary-soft); color: var(--primary-soft-text); }
    .tag.amber { background: var(--accent-soft); color: var(--accent-text); }
    .tag.success { background: var(--success-soft); color: var(--success); }
    .tag.warning { background: var(--warning-soft); color: var(--warning); }
    .tag.error { background: var(--error-soft); color: var(--error); }
    .tag.muted { background: var(--surface-subtle); color: var(--muted-strong); }
    .dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: currentColor; }
    .dashboard-preview { padding: 21px; }
    .preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
    .preview-top h3 { font-size: 23px; margin: 0; font-weight: 770; line-height: 1.25; letter-spacing: -.045em; }
    .preview-top p { margin: 3px 0 0; font-size: 11px; color: var(--muted); }
    .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 760; padding: 9px 12px; text-decoration: none; white-space: nowrap; min-height: 35px; }
    .btn svg { width: 13px; height: 13px; }
    .btn.primary { background: var(--primary); color: var(--primary-text); }
    .btn.primary:hover { background: var(--primary-hover); }
    .btn.secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
    .btn.secondary:hover { background: var(--surface-subtle); }
    .btn.amber { background: var(--accent); color: var(--on-accent); }
    .btn.amber:hover { background: var(--accent-hover); }
    .btn.soft { background: var(--primary-soft); color: var(--primary-soft-text); }
    .btn:disabled { cursor: not-allowed; opacity: .45; }
    .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
    .metric { border: 1px solid var(--border); background: var(--surface-inset); border-radius: 12px; padding: 14px; min-width: 0; }
    .metric.focus { background: var(--primary-soft); border-color: var(--primary-border); }
    .metric .m-label { font-size: 10px; font-weight: 630; color: var(--muted); }
    .metric.focus .m-label { color: var(--primary-soft-text); }
    .metric .m-value { margin: 5px 0 3px; font-size: clamp(15px, 1.45vw, 21px); letter-spacing: -.055em; font-weight: 800; white-space: nowrap; }
    .metric .m-foot { font-size: 10px; color: var(--muted); }
    .metric .m-foot.up { color: var(--success); font-weight: 710; }
    .revenue-chart { display: flex; justify-content: space-between; align-items: end; gap: 10px; border-bottom: 1px solid var(--border); margin-top: 23px; padding-bottom: 12px; }
    .chart-heading { font-size: 11px; font-weight: 730; }
    .chart-note { font-size: 10px; color: var(--muted); }
    .bars { height: 87px; display: flex; gap: 7px; align-items: end; flex: 1; justify-content: end; max-width: 310px; }
    .bar { min-width: 6px; width: 15%; max-width: 28px; border-radius: 4px 4px 1px 1px; background: var(--chart-muted); }
    .bar.blue { background: var(--primary); }
    .bar.amber { background: var(--accent); }
    .table-title { display: flex; align-items: center; justify-content: space-between; margin: 19px 0 11px; }
    .table-title strong { font-size: 12px; }
    .table-title a { text-decoration: none; color: var(--link); font-size: 10px; font-weight: 750; }
    .scroll-wrap { overflow-x: auto; }
    table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
    th { background: var(--table-head); color: var(--muted-strong); font-weight: 770; text-align: left; padding: 10px 12px; font-size: 10px; }
    th:first-child { border-radius: 7px 0 0 7px; }
    th:last-child { border-radius: 0 7px 7px 0; }
    td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
    tbody tr:hover { background: var(--row-hover); }
    tbody tr:last-child td { border-bottom: none; }
    .amount { font-weight: 740; font-variant-numeric: tabular-nums; }
    .mini-avatar { width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--surface-subtle); color: var(--muted-strong); border-radius: 7px; font-size: 9px; font-weight: 800; margin-right: 7px; }
    .side-stack { display: grid; gap: 16px; align-content: start; }
    .control-body { padding: 20px; display: grid; gap: 15px; }
    label.field-label { display: block; font-size: 11px; font-weight: 720; margin-bottom: 6px; }
    .field { width: 100%; min-height: 38px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 9px 11px; border-radius: 9px; outline: none; }
    .field:focus { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 0 0 3px var(--focus-ring); }
    .field::placeholder { color: var(--muted); opacity: .8; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
    .buttons-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .microcopy { font-size: 10px; color: var(--muted); }
    .notices { padding: 16px 19px 18px; display: grid; gap: 9px; }
    .notice { display: flex; gap: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-inset); align-items: flex-start; padding: 10px 11px; }
    .notice-icon { display: grid; place-items: center; flex: 0 0 auto; height: 23px; width: 23px; border-radius: 7px; font-weight: 800; font-size: 12px; }
    .notice-icon.success { background: var(--success-soft); color: var(--success); }
    .notice-icon.warning { background: var(--warning-soft); color: var(--warning); }
    .notice-icon.error { background: var(--error-soft); color: var(--error); }
    .notice-icon.primary { background: var(--primary-soft); color: var(--primary-soft-text); }
    .notice strong { display: block; font-size: 11px; }
    .notice span { display: block; font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 1px; }
    .families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .family { padding: 18px; }
    .family-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 9px; }
    .family-top h3 { margin: 0; font-size: 12px; font-weight: 790; }
    .family-top span { color: var(--muted); font-size: 10px; }
    .swatch-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .swatch { border: none; background: transparent; text-align: left; padding: 0; min-width: 0; color: var(--text); }
    .swatch-color { height: 62px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--muted) 28%, transparent); display: flex; align-items: end; padding: 6px; }
    .swatch-color i { font-size: 10px; font-style: normal; font-weight: 850; opacity: 0; background: rgba(0,0,0,.3); color: white; border-radius: 4px; padding: 0 4px; }
    .swatch:hover .swatch-color i, .swatch:focus-visible .swatch-color i { opacity: 1; }
    .swatch strong { display: block; margin-top: 8px; color: var(--muted-strong); font-size: 10px; font-weight: 720; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .swatch code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 9px; color: var(--muted); margin-top: 1px; }
    .semantic-wrap { padding: 18px; }
    .semantic-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
    .token { padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-inset); min-width: 0; text-align: left; color: var(--text); }
    .token .token-color { border-radius: 7px; height: 54px; border: 1px solid color-mix(in srgb, var(--muted) 28%, transparent); display: block; }
    .token .token-name { display: block; font-size: 10px; font-weight: 740; margin-top: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .token code { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; font-family: ui-monospace, Menlo, Consolas, monospace; }
    .state-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .state-card { border-radius: 12px; padding: 17px; background: var(--surface); border: 1px solid var(--border); }
    .state-card .swatch-strip { height: 7px; display: flex; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
    .state-card .swatch-strip span { flex: 1; }
    .state-card h3 { margin: 0; font-size: 12px; }
    .state-card p { font-size: 11px; line-height: 1.7; color: var(--muted); margin: 5px 0 12px; }
html:has(.modal-backdrop.open),
html:has(.nf-popover-backdrop.open),
html:has(.nf-critical-scrim.open),
html:has(.drawer-backdrop.open),
html:has(.br-modal:not([hidden])),
html:has(.tm-dialog:not([hidden])),
html:has(dialog[open]) {
  overflow: hidden;
}
.preview-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--border)}
.preview-row:last-of-type{border-bottom:0}.preview-row .head{font-size:11px;font-weight:740;color:var(--text)}.preview-row .sub{font-size:10px;color:var(--muted);margin-top:2px}
