/* Native product demonstrations. Values remain selectable and readable at every size. */
.demo-workspace,
.demo-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cbd4e0;
  border-radius: 8px;
  color: #17212f;
  background: #fff;
  box-shadow: 0 12px 30px #17212f0a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  text-align: left;
}
.demo-workspace-top { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 13px 20px; border-bottom: 1px solid #d8dee8; }
.demo-mini-brand { display: flex; align-items: center; gap: 9px; color: #17212f; font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.demo-mini-brand > :is(span, b):first-child { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 5px; color: #fff; background: #17212f; font-size: 18px; line-height: 1; }
.demo-context { margin-left: auto; color: #5d6879; font-size: 12px; }
.demo-tag { padding: 3px 8px; border: 1px solid #d8dee8; border-radius: 4px; color: #475569; background: #f5f7fa; font-size: 10px; font-weight: 500; }
.demo-workspace-body { display: grid; grid-template-columns: 170px minmax(0, 1fr); }
.demo-sidebar { display: flex; flex-direction: column; gap: 6px; padding: 21px 12px; border-right: 1px solid #d8dee8; background: #fafbfd; }
.demo-sidebar-label { padding: 0 10px 9px; color: #667085; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.demo-sidebar-item { display: flex; align-items: center; gap: 9px; min-height: 37px; padding: 8px 10px; border-radius: 5px; color: #536174; font-size: 12px; line-height: 1.45; cursor: default; }
.demo-sidebar-item .icon { width: 16px; height: 16px; }
.demo-sidebar-item.active { color: #1d4ed8; background: #eaf1fe; font-weight: 600; }
.demo-main { min-width: 0; padding: 28px; }
.demo-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.demo-heading-copy { min-width: 0; }
.demo-heading-copy h2,
.demo-heading-copy h3,
.demo-heading-copy h4 { margin: 0; color: #17212f; font-size: 20px; font-weight: 650; line-height: 1.35; letter-spacing: -.025em; }
.demo-heading-copy p { margin-top: 6px; color: #5d6879; font-size: 13px; line-height: 1.6; }
.demo-badge { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 4px 8px; border: 1px solid #cbd5e1; border-radius: 5px; color: #475569; background: #f8fafc; font-size: 11px; font-weight: 500; white-space: nowrap; }
.demo-badge.is-ok { color: #176142; background: #effaf4; border-color: #cae7d6; }
.demo-badge.is-warning { color: #8a5413; background: #fffbeb; border-color: #f4dfaa; }
.demo-badge .icon { width: 13px; height: 13px; }
.demo-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.demo-kpi { min-width: 0; padding: 13px 15px; border: 1px solid #d8dee8; border-radius: 6px; background: #fff; }
.demo-kpi > span { display: block; color: #5d6879; font-size: 11px; line-height: 1.5; }
.demo-kpi strong { display: block; margin-top: 5px; color: #17212f; font-size: 20px; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-kpi small { display: block; margin-top: 4px; color: #5d6879; font-size: 10px; line-height: 1.5; }
.demo-kpi.is-accent { background: #f4f8ff; border-color: #c9dafb; }
.demo-kpi.is-accent strong { color: #1d4ed8; }
.demo-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.demo-box { min-width: 0; overflow: hidden; border: 1px solid #d8dee8; border-radius: 6px; background: #fff; }
.demo-box-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 43px; padding: 11px 14px; border-bottom: 1px solid #d8dee8; color: #344054; background: #f8fafc; font-size: 12px; font-weight: 600; line-height: 1.5; }
.demo-box-title small,
.demo-box-title span { color: #667085; font-size: 10px; font-weight: 400; }
.demo-data-row { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding: 11px 14px; color: #475569; font-size: 12px; line-height: 1.5; }
.demo-data-row + .demo-data-row { border-top: 1px solid #edf0f5; }
.demo-data-row > :last-child { flex-shrink: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-data-row strong { color: #17212f; font-weight: 600; }
.demo-data-row.is-total { color: #1f4e79; background: #f1f6fd; font-weight: 600; }
.demo-data-row.is-total strong { color: inherit; }
.demo-alert,
.demo-reprise-warning { display: block; margin: 18px 0 0; padding: 11px 13px; border: 1px solid #efdca7; border-radius: 6px; color: #795016; background: #fffbef; font-size: 12px; line-height: 1.65; }
.demo-alert .icon,
.demo-reprise-warning .icon { float: left; width: 16px; height: 16px; margin: 2px 9px 0 0; }
.demo-alert p,
.demo-reprise-warning p { color: inherit; }
.demo-reprise-warning { margin: 0 0 12px; }
.demo-table-scroll { width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #d8dee8; border-radius: 6px; scrollbar-width: thin; scrollbar-color: #b8c4d5 #f5f7fa; }
.demo-table-scroll:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.demo-table { width: 100%; min-width: 560px; border-collapse: collapse; color: #344054; background: #fff; font-size: 13px; line-height: 1.5; }
.demo-table thead th { padding: 11px 13px; color: #fff; background: #1f4e79; font-size: 11px; font-weight: 550; text-align: left; vertical-align: middle; }
.demo-table td,
.demo-table tbody th,
.demo-table tfoot th { padding: 12px 13px; border-bottom: 1px solid #e7ecf2; color: inherit; background: transparent; font-size: inherit; font-weight: 400; text-align: left; vertical-align: middle; }
.demo-table tbody th,
.demo-table tfoot th { font-weight: 500; }
.demo-table th small { display: block; margin-top: 3px; color: #667085; font-size: 10px; font-weight: 400; line-height: 1.55; }
.demo-table tbody tr:last-child td,
.demo-table tbody tr:last-child th { border-bottom: 0; }
.demo-table tbody tr:nth-child(even) { background: #fafbfd; }
.demo-table th.numeric,
.demo-table td.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.demo-table td:first-child { font-weight: 500; }
.demo-table .demo-row-code { color: #526174; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.demo-table tr.demo-total-row td,
.demo-table tr.demo-total-row th { border-top: 1px solid #c8d9ed; color: #1f4e79; background: #eaf2fc; font-weight: 650; }
.demo-table tr.demo-muted-row td { color: #5d6879; background: #f7faf8; }
.demo-table td.demo-change { white-space: nowrap; }
.demo-change del { display: block; color: #7c8798; font-size: 11px; }
.demo-change strong { color: #1d4ed8; font-weight: 600; }
.demo-table .demo-pill { font-size: 10px; }
.demo-footnote { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 5px 20px; margin-top: 12px; color: #667085; font-size: 11px; line-height: 1.65; }
.demo-proof-text { display: block; margin-top: 18px; padding: 13px 15px; border-radius: 6px; color: #1f4e79; background: #eff5fd; font-size: 13px; line-height: 1.65; }
.demo-proof-text .icon { float: left; width: 17px; height: 17px; margin: 2px 9px 0 0; color: #2563eb; }
.demo-proof-text p { color: inherit; }
.demo-proof-text strong { font-weight: 600; }
.demo-gap { color: #8a5413; font-weight: 650; }
.demo-equation { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.equation-term { flex: 1 1 0; min-width: 0; padding: 13px 15px; border: 1px solid #d8dee8; border-radius: 6px; background: #f8fafc; }
.equation-term small { display: block; color: #5d6879; font-size: 11px; line-height: 1.5; }
.equation-term strong { display: block; margin-top: 4px; color: #17212f; font-size: 18px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.equation-term.is-result { border-color: #b9cff5; background: #eff5ff; }
.equation-term.is-result strong { color: #1d4ed8; }
.equation-sign { flex-shrink: 0; color: #667085; font-size: 20px; line-height: 1; }
.demo-pill { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 7px; border: 1px solid #d8dee8; border-radius: 4px; color: #475569; background: #f1f4f8; font-size: 11px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.demo-pill.success { color: #176142; background: #edf8f1; border-color: #c9e4d2; }
.demo-pill.warning { color: #8a5413; background: #fff8e6; border-color: #efdaa3; }
.demo-pill.neutral { color: #475569; background: #f1f4f8; border-color: #d8dee8; }
.demo-step-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.demo-step-list li { display: flex; align-items: flex-start; gap: 11px; padding: 13px 15px; color: #475569; font-size: 12px; line-height: 1.6; }
.demo-step-list li + li { border-top: 1px solid #edf0f5; }
.demo-step-list li > span:first-child { display: grid; place-items: center; flex: 0 0 23px; width: 23px; height: 23px; border: 1px solid #d5e1f3; border-radius: 4px; color: #2563eb; background: #f3f7fe; font-size: 11px; font-weight: 600; }
.demo-step-list strong { display: block; color: #17212f; font-weight: 600; }
.demo-inline-details { margin-top: 17px; border: 1px solid #d8dee8; border-radius: 6px; }
.demo-inline-details summary { padding: 11px 13px; color: #2563eb; background: #fafcff; font-size: 12px; font-weight: 500; line-height: 1.6; cursor: pointer; }
.demo-inline-details[open] summary { border-bottom: 1px solid #d8dee8; }
.demo-inline-details > div,
.demo-inline-details > p { padding: 13px; color: #5d6879; background: #fff; font-size: 12px; line-height: 1.7; }
.demo-inline-details .demo-table-scroll { padding: 0; border: 0; border-radius: 0 0 6px 6px; }
.demo-card { width: 100%; max-width: 700px; box-shadow: 0 8px 22px #17212f06; }
.demo-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid #d8dee8; background: #fafbfd; }
.demo-card-header h3,
.demo-card-header h4,
.demo-card-header > strong { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: -.015em; }
.demo-card-header > strong { flex: 1 1 54%; min-width: 0; }
.demo-card-header p,
.demo-card-header > span { color: #667085; font-size: 11px; line-height: 1.5; }
.demo-card-header > span { flex: 0 1 42%; min-width: 0; text-align: right; }
.demo-card-body { min-width: 0; padding: 19px; }
.demo-card .demo-table { min-width: 460px; font-size: 13px; }
.demo-card .demo-table thead th { padding: 10px; font-size: 11px; }
.demo-card .demo-table td,
.demo-card .demo-table tbody th,
.demo-card .demo-table tfoot th { padding: 11px 10px; }
.demo-card .demo-kpis { gap: 9px; margin-bottom: 16px; }
.demo-card .demo-kpi { padding: 10px 11px; }
.demo-card .demo-kpi strong { font-size: 18px; }
.demo-card .demo-kpi > span { font-size: 10px; }
.demo-card .demo-kpi small { font-size: 10px; }
.demo-card .demo-heading-copy h4 { font-size: 17px; }
.demo-card .demo-proof-text { margin-top: 15px; padding: 11px 12px; font-size: 12px; }
.demo-card .demo-equation { gap: 8px; margin-bottom: 16px; }
.demo-card .equation-term { padding: 10px 11px; }
.demo-card .equation-term strong { font-size: 16px; }
.demo-card .equation-term small { font-size: 10px; }
.demo-card .demo-two-columns { gap: 12px; margin-bottom: 16px; }
.demo-card .demo-box-title { padding: 10px 12px; }
.demo-card .demo-data-row { padding: 10px 12px; font-size: 12px; }
.demo-card .demo-footnote { font-size: 10px; }
.demo-tabs,
.demo-toggle { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 17px; padding: 3px; border: 1px solid #d8dee8; border-radius: 6px; background: #f5f7fa; }
.demo-tabs button,
.demo-toggle button { min-height: 33px; padding: 6px 11px; border: 1px solid transparent; border-radius: 4px; color: #5d6879; background: transparent; font-size: 11px; font-weight: 500; line-height: 1.5; }
.demo-tabs button:hover,
.demo-toggle button:hover { color: #1d4ed8; background: #eaf1fe; }
.demo-toggle button[aria-pressed='true'],
.demo-tabs button[aria-selected='true'] { color: #1d4ed8; background: #fff; border-color: #c4d5f5; box-shadow: 0 1px 3px #17212f08; }
.demo-controls-row { width: 100%; }
.demo-controls-row td:last-child { text-align: right; }
.native-demo-caption { display: block; margin-top: 12px; color: #667085; font-size: 12px; line-height: 1.7; }
.native-demo-caption strong { color: #475569; font-weight: 500; }
.demo-table td .demo-secondary { display: block; margin-top: 3px; color: #667085; font-size: 10px; font-weight: 400; }

@media (max-width: 1050px) {
  .demo-workspace-body { grid-template-columns: 145px minmax(0, 1fr); }
  .demo-main { padding: 23px; }
  .demo-sidebar { padding-inline: 8px; }
  .demo-sidebar-item { padding-inline: 8px; font-size: 11px; }
  .demo-kpi { padding: 12px; }
  .demo-kpi strong { font-size: 18px; }
}

@media (max-width: 760px) {
  .demo-workspace-body { display: block; }
  .demo-sidebar { display: none; }
  .demo-workspace-top { padding: 12px 17px; gap: 10px; min-height: 56px; }
  .demo-main { padding: 20px; }
  .demo-heading { gap: 12px; margin-bottom: 19px; }
  .demo-heading-copy h2,
  .demo-heading-copy h3,
  .demo-heading-copy h4 { font-size: 18px; }
  .demo-heading-copy p { font-size: 12px; }
  .demo-kpis { gap: 9px; margin-bottom: 19px; }
  .demo-kpi strong { font-size: 18px; }
  .demo-kpi > span { font-size: 10px; }
  .demo-two-columns { gap: 12px; }
  .demo-table { font-size: 12px; }
  .demo-table th,
  .demo-table td { padding-inline: 11px; }
  .demo-equation { gap: 8px; }
  .equation-term { padding: 11px 12px; }
  .equation-term strong { font-size: 17px; }
}

@media (max-width: 600px) {
  .demo-kpis,
  .demo-card .demo-kpis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .demo-kpi,
  .demo-card .demo-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 12px 14px; }
  .demo-kpi > span,
  .demo-card .demo-kpi > span { grid-column: 1; font-size: 11px; }
  .demo-kpi strong,
  .demo-card .demo-kpi strong { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 20px; }
  .demo-kpi small,
  .demo-card .demo-kpi small { grid-column: 1 / -1; margin-top: 4px; font-size: 10px; }
}

@media (max-width: 460px) {
  .demo-workspace { border-radius: 6px; }
  .demo-workspace-top { flex-wrap: wrap; padding: 11px 14px; gap: 7px 11px; }
  .demo-mini-brand { font-size: 15px; }
  .demo-context { font-size: 10px; }
  .demo-tag { font-size: 9px; }
  .demo-main { padding: 16px; }
  .demo-heading { flex-wrap: wrap; gap: 10px; }
  .demo-heading-copy { flex: 1 1 100%; }
  .demo-heading-copy h2,
  .demo-heading-copy h3,
  .demo-heading-copy h4 { font-size: 17px; }
  .demo-badge { font-size: 10px; }
  .demo-kpis { gap: 6px; }
  .demo-kpi { padding: 11px 12px; }
  .demo-kpi strong { font-size: 20px; letter-spacing: -.03em; }
  .demo-kpi > span { font-size: 11px; }
  .demo-kpi small { font-size: 10px; }
  .demo-two-columns { grid-template-columns: minmax(0, 1fr); }
  .demo-equation { flex-direction: column; gap: 6px; align-items: stretch; }
  .equation-term { width: 100%; }
  .equation-sign { align-self: center; font-size: 17px; }
  .demo-card-body { padding: 15px; }
  .demo-card-header { padding: 14px 15px; flex-wrap: wrap; gap: 5px; }
  .demo-card-header h3,
  .demo-card-header h4,
  .demo-card-header > strong { font-size: 13px; }
  .demo-card-header > strong,
  .demo-card-header > span { flex-basis: 100%; text-align: left; }
  .demo-card .demo-kpis { gap: 6px; }
  .demo-card .demo-kpi { padding: 11px 12px; }
  .demo-card .demo-kpi strong { font-size: 18px; }
  .demo-card .demo-kpi > span,
  .demo-card .demo-kpi small { font-size: 10px; }
  .demo-card .demo-two-columns { grid-template-columns: minmax(0, 1fr); }
  .demo-proof-text { padding: 11px 12px; font-size: 12px; }
  .demo-proof-text .icon { width: 15px; height: 15px; }
  .demo-footnote { font-size: 10px; }
  .demo-toggle button { min-height: 36px; padding-inline: 9px; font-size: 10px; }
  .native-demo-caption { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-table-scroll { scroll-behavior: auto; }
}
