/* Interactive, illustrative System workspace. Tokens mirror the light theme. */
.demo-wrap { max-width: 1120px; margin-top: 48px; }
.app-window {
  --demo-cyan: #00E8F8;
  --demo-sidebar-blue: #00D8F8;
  --demo-aqua: #68F0F8;
  --demo-yellow: #98F8F8;
  --demo-accent: #00E8F8;
  --demo-text: #22272a;
  --demo-muted: #7a8388;
  --demo-line: #e2e7e9;
  --demo-bg: #f5f7f8;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e2e7e9;
  outline: 5px solid #ffffff60;
  border-radius: 14px;
  color: var(--demo-text);
  background: var(--demo-bg);
  box-shadow: 0 20px 48px -24px #25434930, 0 4px 14px #25434908;
  text-align: left;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.app-window .icon { width: 16px; height: 16px; }
#i-grid, #i-chart, #i-rank, #i-wallet { stroke-width: var(--demo-nav-stroke, 1.65); }
.app-window :is(h2, h3) { font-size: 12px; font-weight: 550; line-height: 1.5; letter-spacing: -.015em; text-wrap: initial; }
.app-sidebar { display: grid; grid-template-columns: 40px minmax(0, 1fr); margin: 10px 0 10px 10px; border: 0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 5px 18px #263c4510; }
.demo-rail { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 4px 16px; background: #000; color: #abb3b7; }
.demo-rail > span { width: 29px; height: 30px; display: grid; place-items: center; border-radius: 7px; }
.demo-rail .icon { width: 17px; height: 17px; }
.demo-rail .demo-rail-kora { width: 24px; height: 24px; padding: 2px; border: 1px solid transparent; border-radius: 50%; background: linear-gradient(#000,#000) padding-box,linear-gradient(160deg,#00D8F8,#00E8F8 20%,#3FF3F9 40%,#68F0F8 60%,#98F8F8 80%,#A8F8F8) border-box; overflow: hidden; margin-bottom: 22px; }
.demo-rail-kora img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.demo-rail .demo-rail-active { background: transparent; color: var(--demo-sidebar-blue); }
.demo-rail-account img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.demo-rail .demo-rail-account { margin-top: auto; width: 25px; height: 25px; overflow: hidden; box-shadow: 0 0 0 1.5px #ffffffa0; background: #263639; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 600; }
.demo-sidebar-panel { display: flex; flex-direction: column; padding: 18px 10px 14px; min-width: 0; }
.app-brand { display: flex; align-items: center; gap: 8px; padding-inline: 5px; }
.app-brand img { width: 26px; height: 38px; object-fit: contain; }
.app-brand > span { font-size: 27px; font-weight: 650; letter-spacing: -.07em; color: #171d20; line-height: 1; }
.app-brand > span > span { color: #00E8F8; }
.demo-nav-label { margin: 23px 7px 10px; font-size: 8px; letter-spacing: .1em; font-weight: 550; color: #929ba0; }
.app-nav { display: flex; flex-direction: column; gap: 5px; }
.app-nav-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 0 10px; border-radius: 7px; text-align: left; color: #738087; font-size: 11px; font-weight: 450; transition: color .2s, background .2s; }
.app-nav-item > .icon { display: none; }
.app-nav-item:hover { color: var(--demo-sidebar-blue); background: transparent; }
.app-nav-item.active { color: var(--demo-sidebar-blue); background: transparent; font-weight: 700; }
.app-window :focus-visible { outline: 2px solid #00E8F8; outline-offset: 3px; }
.demo-sidebar-bottom { margin-top: auto; padding: 18px 3px 0; display: flex; align-items: center; gap: 9px; }
.demo-sidebar-bottom strong { display: block; font-size: 9px; font-weight: 550; }
.demo-sidebar-bottom small { display: block; margin-top: 3px; font-size: 8px; color: var(--demo-muted); }
.demo-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--demo-line); border-radius: 50%; color: #657880; background: #f1f4f5; font-size: 8px; font-weight: 550; }
.app-main { position: relative; min-width: 0; background: var(--demo-bg); }
.demo-topbar { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; gap: 12px; font-size: 9px; color: var(--demo-muted); }
.demo-breadcrumb { display: flex; gap: 9px; align-items: center; }
.demo-breadcrumb > span { color: #b3bdc1; }
.demo-topbar strong { font-weight: 450; color: #526169; }
.demo-live-label { display: inline-flex; align-items: center; gap: 5px; font-size: 8px; }
.demo-live-label > i { width: 4px; height: 4px; border-radius: 50%; background: #55baa7; }
.demo-panel-stage { display: grid; padding: 2px 20px 16px; }
.app-panel { grid-area: 1 / 1; min-width: 0; min-height: 370px; display: flex; flex-direction: column; gap: 12px; }
.app-panel:not([hidden]) { animation: demo-page-in .35s var(--ease); }
.demo-kpis { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.demo-kpi { position: relative; min-width: 0; min-height: 94px; padding: 12px 14px; border: 1px solid var(--demo-line); background: #fff; border-radius: 10px; }
.demo-kpi > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #79868d; font-size: 10px; }
.demo-kpi > span:first-child .icon { width: 13px; height: 13px; color: #99a5ab; }
.demo-kpi > strong { display: block; font-size: clamp(20px,2.1vw,28px); font-weight: 550; letter-spacing: -.055em; line-height: 1.2; margin-top: 8px; white-space: nowrap; }
.demo-kpi > strong small { font-size: 17px; color: #8c9aa1; margin-left: 2px; font-weight: 400; }
.demo-kpi > small { display: block; color: #8a969d; font-size: 8px; margin-top: 6px; }
.demo-progress { height: 5px; border-radius: 4px; overflow: hidden; background: #eaf0f2; }
.demo-progress > span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#00D8F8 0%,#00E8F8 20%,#3FF3F9 40%,#68F0F8 60%,#98F8F8 80%,#A8F8F8 100%); }
.demo-kpi .demo-progress { position: absolute; width: 42%; right: 14px; top: 52px; height: 4px; }
.demo-delta { display: none; position: absolute; top: -9px; right: 12px; padding: 2px 6px; background: #e9f8f2; border: 1px solid #c9eade; border-radius: 5px; font-size: 8px; font-weight: 550; color: #32876a; }
.app-window.sale-applied .demo-delta { display: inline-block; animation: demo-page-in .4s var(--ease); }
.demo-overview-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; flex: 1; }
.demo-card { min-width: 0; border: 1px solid var(--demo-line); border-radius: 10px; background: #fff; padding: 14px; }
.demo-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-card-heading > .icon { color: #9ba7ac; width: 14px; height: 14px; }
.demo-chart-card { display: flex; flex-direction: column; }
.sales-chart { width: 100%; height: 123px; min-height: 0; flex: 1; margin-top: 16px; overflow: visible; }
.sales-chart path { vector-effect: non-scaling-stroke; }
.chart-labels { font-size: 9px; fill: #93a0a6; font-family: var(--font); }
.demo-chart-axis { display: none; }
.demo-chart-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 8px; color: #85929a; }
.demo-chart-legend > span { display: flex; align-items: center; gap: 5px; }
.demo-chart-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--demo-accent); }
.demo-chart-legend > span + span i { width: 9px; height: 0; border-radius: 0; background: none; border-top: 1px dashed #a1afb6; }
.demo-rank-list { margin-top: 12px; }
.app-window .rank-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 0; min-width: 0; background: #fff; }
.app-window .rank-row + .rank-row { border-top: 1px solid #edf1f3; }
.app-window .rank-number { width: 16px; flex-shrink: 0; font-size: 9px; color: #8c999f; }
.app-window .rank-name { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.app-window .rank-name strong { font-size: 10px; font-weight: 550; }
.app-window .rank-name > span { font-size: 8px; color: var(--demo-muted); }
.app-window .rank-score { margin-left: auto; font-size: 11px; font-weight: 500; color: #4e646f; }
.app-window .rank-row.highlight { z-index: 1; background: #edfaf8; border-radius: 6px; box-shadow: 0 0 0 5px #edfaf8; }
.demo-performance-summary { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.demo-small-tag { font-size: 8px; padding: 3px 6px; color: #829198; background: #f6f8f9; border: 1px solid #eaf0f2; border-radius: 5px; white-space: nowrap; }
.demo-goal-number { display: flex; gap: 16px; align-items: center; margin: 12px 0; }
.demo-goal-number > strong { font-size: 38px; font-weight: 550; letter-spacing: -.065em; line-height: 1; }
.demo-goal-number small { font-size: 22px; color: #9aa6ac; font-weight: 400; margin-left: 2px; }
.demo-goal-number > span { font-size: 9px; color: var(--demo-muted); }
.demo-goal-facts { display: flex; justify-content: space-between; gap: 8px; color: #7a8b94; font-size: 8px; margin-top: 11px; }
.demo-next-step { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.demo-next-step > .icon { color: #00E8F8; margin-bottom: 12px; }
.demo-next-step > span { font-size: 9px; color: var(--demo-muted); }
.demo-next-step > strong { font-size: 26px; font-weight: 550; letter-spacing: -.045em; line-height: 1.3; margin-top: 4px; }
.demo-targets { flex: 1; padding-block: 14px; }
.demo-targets > .demo-card-heading { margin-bottom: 8px; }
.demo-person-target { display: flex; align-items: center; gap: 11px; padding: 8px 0; font-size: 10px; }
.demo-person-target + .demo-person-target { border-top: 1px solid #f0f3f4; }
.demo-person-target > span:nth-child(2) { min-width: 84px; }
.demo-person-target .demo-avatar { width: 23px; height: 23px; flex-basis: 23px; font-size: 7px; }
.demo-person-target > strong { width: 34px; text-align: right; font-weight: 500; }
.demo-target-track { flex: 1; height: 4px; border-radius: 4px; background: #edf1f3; overflow: hidden; }
.demo-target-track i { display: block; height: 100%; width: min(var(--meter),100%); background: var(--demo-accent); border-radius: inherit; }
.demo-ranking-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 14px; flex: 1; }
.demo-full-ranking { display: flex; flex-direction: column; }
.demo-rank-columns { display: flex; justify-content: space-between; margin-top: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--demo-line); font-size: 8px; color: #8c999f; }
.demo-full-ranking .demo-rank-list { margin: 0; }
.demo-full-ranking .rank-row { padding-block: 10px; gap: 10px; }
.demo-full-ranking .rank-score { font-size: 13px; }
.demo-rank-track { height: 3px; border-radius: 3px; background: #edf1f3; overflow: hidden; margin-top: 3px; }
.demo-rank-track i { display: block; height: 100%; background: var(--demo-accent); border-radius: inherit; }
.demo-person-spotlight { display: flex; flex-direction: column; align-items: flex-start; }
.demo-person-spotlight > .demo-avatar { width: 38px; height: 38px; flex-basis: 38px; font-size: 11px; margin-bottom: 12px; background: #f0f8f8; border-color: #d8ecee; color: #42868f; }
.demo-person-spotlight > span { font-size: 9px; color: var(--demo-muted); margin-top: 3px; }
.demo-spotlight-position { display: flex; align-items: center; gap: 13px; margin: 22px 0; }
.demo-spotlight-position > strong { font-size: 48px; line-height: 1; letter-spacing: -.065em; font-weight: 550; }
.demo-spotlight-position > span { font-size: 9px; color: var(--demo-muted); }
.demo-spotlight-stats { display: grid; gap: 13px; padding-top: 15px; width: 100%; border-top: 1px solid var(--demo-line); }
.demo-spotlight-stats > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px; }
.demo-spotlight-stats span { font-size: 8px; color: var(--demo-muted); }
.demo-spotlight-stats strong { font-size: 12px; font-weight: 550; }
.app-window.sale-applied .demo-person-spotlight { border-color: #c4e7e0; }
.demo-commission-summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; overflow: hidden; padding-block: 14px; }
.demo-commission-summary:before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(100deg,#00D8F8 0%,#00E8F8 20%,#3FF3F9 40%,#68F0F8 60%,#98F8F8 80%,#A8F8F8 100%); }
.demo-commission-summary > div > span { display: block; font-size: 9px; color: var(--demo-muted); }
.demo-commission-summary > div > strong { display: block; margin-top: 8px; font-size: 34px; font-weight: 550; letter-spacing: -.055em; line-height: 1.15; }
.demo-commission-summary > div:last-child { border-left: 1px solid var(--demo-line); padding-left: 25px; }
.demo-commission-summary .demo-bonus-total { margin: 5px 0; font-size: 24px; }
.demo-rule-rate small { font-size: 15px; font-weight: 400; color: #99a5ab; }
.demo-commission-detail { flex: 1; }
.demo-commission-table { border-collapse: collapse; width: 100%; margin-top: 14px; font-size: 10px; }
.demo-commission-table th { font-size: 8px; color: #8a989f; font-weight: 450; background: #f8fafb; }
.demo-commission-table td, .demo-commission-table th { padding: 8px 9px; text-align: right; border-bottom: 1px solid #ecf0f2; white-space: nowrap; }
.demo-commission-table td:first-child, .demo-commission-table th:first-child { text-align: left; }
.demo-commission-table td.demo-commission-value { color: #366775; font-weight: 500; }
.demo-table-person { display: flex; align-items: center; gap: 9px; }
.demo-table-person .demo-avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 7px; }
.simulate-button { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-width: 119px; min-height: 25px; padding: 0 9px; border: 0; border-radius: 6px; color: #132326; background: var(--cyan); box-shadow: inset 0 0 0 1px #ffffff40,0 1px 2px #0000001a; font-size: 8px; font-weight: 600; white-space: nowrap; transition: filter .15s, transform .15s; }
.simulate-button:hover { filter: brightness(1.04); }
.simulate-button:active { transform: translateY(1px); }
.simulate-button:disabled { cursor: wait; }
.simulate-button > .icon { width: 11px; height: 11px; }
.sale-toast { position: absolute; right: 24px; bottom: 78px; z-index: 4; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 48px); padding: 12px 15px; border: 1px solid #d6e9e4; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px #233e4820; color: #7f8f94; font-size: 9px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .4s var(--ease), visibility .3s; pointer-events: none; }
.sale-toast.visible { opacity: 1; visibility: visible; transform: none; }
.sale-toast strong { display: block; font-size: 10px; margin-top: 3px; color: #31584e; font-weight: 500; }
.demo-toast-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; border-radius: 50%; color: #338d73; background: #ecf8f3; }
.demo-caption { margin-top: 17px; text-align: center; font-size: 9px; color: #697e81; }
@keyframes demo-page-in { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) {
  .app-window { grid-template-columns: 187px minmax(0,1fr); }
  .app-sidebar { grid-template-columns: 34px minmax(0,1fr); }
  .demo-sidebar-panel { padding-inline: 9px; }
  .demo-rail > span { width: 26px; }
  .app-brand > span { font-size: 24px; }
  .app-brand img { width: 23px; height: 34px; }
  .demo-topbar { padding-inline: 18px; }
  .demo-panel-stage { padding-inline: 18px; }
  .demo-kpi { padding: 13px 11px; }
  .demo-kpi > span:first-child { font-size: 9px; }
  .demo-kpi > strong { font-size: 23px; }
  .demo-kpi .demo-progress { right: 11px; top: 58px; }
  .demo-overview-grid { grid-template-columns: 1.1fr 1fr; gap: 12px; }
  .demo-ranking-card .demo-avatar { display: none; }
  .demo-ranking-layout { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
  .demo-commission-table td, .demo-commission-table th { padding-inline: 5px; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .app-window { grid-template-columns: 174px minmax(0,1fr); }
  .demo-sidebar-panel { padding-inline: 7px; }
  .app-brand { gap: 5px; padding-inline: 2px; }
  .app-brand > span { font-size: 22px; }
  .app-nav-item { font-size: 10px; gap: 6px; padding-inline: 7px; }
  .demo-sidebar-bottom { gap: 6px; }
  .demo-kpis { gap: 8px; }
  .demo-kpi > strong { font-size: 20px; }
  .demo-kpi > span:first-child { font-size: 8px; }
  .demo-kpi > span:first-child .icon { display: none; }
  .demo-kpi > small { font-size: 7px; }
  .demo-kpi .demo-progress { width: 35%; }
  .app-window :is(h2, h3) { font-size: 11px; }
  .demo-person-target { gap: 8px; font-size: 9px; }
  .demo-next-step > strong { font-size: 23px; }
  .demo-goal-facts { font-size: 7px; }
  .demo-commission-table { font-size: 9px; }
  .demo-table-person .demo-avatar { display: none; }
  .simulate-button { min-width: 126px; }
}
@media (max-width: 680px) {
  .demo-wrap { margin-top: 36px; width: calc(100% - 28px); }
  .app-window { display: block; border-radius: 12px; outline-width: 3px; }
  .app-sidebar { display: none; }
  .app-nav { display: flex; flex-direction: row; flex-shrink: 0; gap: 0; }
  .app-nav-item { position: relative; justify-content: center; flex: 0 0 36px; width: 36px; min-height: 36px; padding: 0; gap: 0; color: #465158; border-radius: 5px; }
  .app-nav-item > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .app-nav-item > .icon { display: block; width: 17px; height: 17px; }
  .app-nav-item:hover, .app-nav-item.active { color: var(--demo-sidebar-blue); background: transparent; box-shadow: none; }
  .app-nav-item.active > .icon { --demo-nav-stroke: 2.5; }
  .app-nav-item.active:after { display: none; }
  .demo-topbar { height: 52px; padding-inline: 15px; gap: 8px; }
  .demo-breadcrumb, .demo-live-label { display: none; }
  .demo-panel-stage { padding: 4px 15px 15px; }
  .app-panel { min-height: 370px; gap: 10px; }
  .demo-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .demo-kpi { min-height: 78px; padding: 10px 12px; }
  .demo-kpi > span:first-child { font-size: 9px; min-height: 14px; }
  .demo-kpi > span:first-child .icon { display: block; width: 12px; height: 12px; }
  .demo-kpi > strong { font-size: clamp(18px,5.3vw,27px); margin-top: 6px; letter-spacing: -.045em; }
  .demo-kpi > strong small { font-size: 12px; }
  .demo-kpi > small { font-size: 8px; margin-top: 4px; }
  .demo-kpi:nth-child(3) { order: 1; }
  .demo-kpi:nth-child(3) > small { display: none; }
  .demo-kpi:nth-child(2) { order: 2; grid-column: 1 / -1; min-height: 57px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; padding-block: 8px; }
  .demo-kpi:nth-child(2) > span:first-child { grid-column: 1; grid-row: 1; color: #536971; }
  .demo-kpi:nth-child(2) > span:first-child .icon { display: none; }
  .demo-kpi:nth-child(2) > strong { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 24px; }
  .demo-kpi:nth-child(2) > small { grid-column: 1; grid-row: 2; margin: 0; font-size: 7px; }
  .demo-kpi .demo-progress { grid-column: 1 / -1; grid-row: 3; position: static; width: 100%; height: 3px; margin-top: 4px; }
  .demo-delta { font-size: 6px; right: 7px; top: -6px; padding-inline: 4px; }
  .demo-overview-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 8px; }
  .demo-overview-grid > .demo-card { padding: 12px 10px; }
  .demo-overview-grid .demo-card-heading { min-height: 18px; gap: 4px; }
  .demo-overview-grid :is(h2, h3) { font-size: 11px; }
  .demo-overview-grid .demo-card-heading > .icon { width: 12px; height: 12px; }
  .demo-heading-detail { display: none; }
  .sales-chart { height: 134px; flex: 1; min-height: 100px; margin-top: 18px; overflow: hidden; }
  .sales-chart .chart-labels { display: none; }
  .demo-chart-axis { display: flex; justify-content: space-between; color: #8a999f; font-size: 7px; margin-top: 6px; }
  .demo-chart-legend { flex-wrap: wrap; gap: 5px 10px; margin-top: 12px; font-size: 7px; }
  .demo-ranking-card .demo-rank-list { display: flex; flex-direction: column; margin-top: 9px; }
  .demo-ranking-card .rank-row { gap: 5px; padding-block: 7px; }
  .demo-ranking-card .rank-number { display: none; }
  .demo-ranking-card .rank-name strong { font-size: 8px; white-space: nowrap; }
  .demo-ranking-card .rank-name > span { font-size: 7px; }
  .demo-ranking-card .rank-score { font-size: 9px; }
  .demo-performance-summary { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 8px; }
  .demo-performance-summary .demo-card { padding: 12px 10px; }
  .demo-performance-summary :is(h2, h3) { font-size: 10px; }
  .demo-goal-summary .demo-small-tag { display: none; }
  .demo-goal-number { gap: 8px; }
  .demo-goal-number > strong { font-size: 30px; }
  .demo-goal-number small { font-size: 16px; }
  .demo-goal-number > span { font-size: 7px; }
  .demo-goal-facts { flex-wrap: wrap; gap: 3px; font-size: 7px; }
  .demo-next-step > strong { font-size: clamp(16px,4.5vw,24px); }
  .demo-next-step > span { font-size: 8px; }
  .demo-next-step > .icon { margin-bottom: 10px; }
  .demo-person-target { padding-block: 8px; gap: 8px; font-size: 9px; }
  .demo-person-target > span:nth-child(2) { min-width: 73px; }
  .demo-ranking-layout { grid-template-columns: 1fr; gap: 8px; }
  .demo-full-ranking .rank-row { padding-block: 6px; }
  .demo-full-ranking .demo-rank-track { display: none; }
  .demo-ranking-layout > .demo-card { padding: 12px; }
  .demo-person-spotlight { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 10px; align-items: center; }
  .demo-person-spotlight > .demo-avatar { grid-row: 1 / 3; margin: 0; width: 30px; height: 30px; }
  .demo-person-spotlight > :is(h2, h3) { grid-column: 2; }
  .demo-person-spotlight > span:not(.demo-avatar) { grid-column: 2; margin: 0; }
  .demo-spotlight-position { grid-column: 3; grid-row: 1 / 3; margin: 0; gap: 8px; }
  .demo-spotlight-position > strong { font-size: 32px; }
  .demo-spotlight-position > span { font-size: 8px; }
  .demo-spotlight-stats { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; padding-top: 10px; }
  .demo-spotlight-stats > div { flex-direction: column; align-items: flex-start; gap: 1px; }
  .demo-spotlight-stats strong { font-size: 10px; }
  .demo-commission-summary { padding: 14px; gap: 12px; }
  .demo-commission-summary > div > strong { font-size: 28px; }
  .demo-commission-summary > div > span { font-size: 8px; }
  .demo-commission-summary > div:last-child { padding-left: 13px; }
  .demo-commission-summary .demo-bonus-total { font-size: 22px; }
  .demo-commission-detail { display: flex; flex-direction: column; }
  .demo-commission-table { font-size: 9px; }
  .demo-commission-table th { font-size: 8px; }
  .demo-commission-table td, .demo-commission-table th { padding: 12px 3px; }
  .demo-commission-table td:nth-child(3), .demo-commission-table th:nth-child(3) { display: none; }
  .demo-table-person .demo-avatar { display: none; }
  .simulate-button { justify-content: center; flex-shrink: 0; min-width: 0; min-height: 24px; padding: 0 9px; border: 1px solid #ffffff40; border-radius: 5px; color: #132326; background: var(--cyan); box-shadow: none; font-size: 9px; font-weight: 500; line-height: 1.3; }
  .simulate-button > .icon { display: none; }
  .simulate-button:hover { color: #132326; filter: brightness(1.04); }
  .simulate-button:active { transform: none; }
  .simulate-button:disabled { text-decoration: none; }
  .sale-toast { display: none; }
  .demo-caption { font-size: 8px; margin-top: 14px; }
}
@media (max-width: 360px) {
  .demo-topbar { padding-inline: 11px; gap: 6px; }
  .app-nav-item { flex-basis: 32px; width: 32px; }
  .demo-panel-stage { padding-inline: 11px; }
  .demo-kpi { padding-inline: 10px; }
  .demo-kpi > span:first-child { font-size: 8px; }
  .demo-card { padding-inline: 11px; }
  .demo-overview-grid > .demo-card { padding-inline: 8px; }
  .demo-ranking-card .rank-number { display: none; }
  .demo-ranking-card .rank-name strong { font-size: 8px; }
  .demo-ranking-card .rank-score { font-size: 8px; }
  .demo-person-target { gap: 6px; }
  .demo-person-target .demo-avatar { display: none; }
  .demo-commission-table { font-size: 8px; }
  .demo-commission-summary > div > strong { font-size: 24px; }
  .demo-goal-facts { font-size: 7px; }
}
.motion-paused .app-panel, .motion-paused .demo-delta { animation: none !important; }
.app-window.demo-resetting * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .app-panel:not([hidden]), .app-window.sale-applied .demo-delta { animation: none; }
  .app-window *, .app-window *:before, .app-window *:after { transition: none !important; }
}
@media print { .simulate-button, .sale-toast { display: none !important; } }
