/* Design-system demonstrations only. The report keeps its own navigation. */
.tom .dsx-system{--dsx-ink:#1f2328;--dsx-muted:#626a77;--dsx-line:#e6e8ec;--dsx-pop:0 1px 2px rgba(31,35,40,.06),0 12px 32px -12px rgba(31,35,40,.22);font:13px/22px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif;font-variant-numeric:tabular-nums}
.tom .dsx-card{padding:clamp(18px,1.6cqw,26px);gap:16px;border-radius:12px;overflow:visible}
.tom .dsx-card h3{font-size:14px;line-height:22px;font-weight:600;color:#1f2328}
.tom .dsx-demo{display:flex;flex-direction:column;gap:12px;min-width:0}
.tom .dsx-demo>*,.tom .dsx-demo :is(input,select,textarea){min-width:0}
.tom .dsx-rules{display:flex;flex-direction:column;gap:6px;border-top:1px solid #e6e8ec;padding-top:12px;color:#626a77;font-size:12px;line-height:18px}
.tom .dsx-rules p,.tom .dsx-note,.tom .dsx-error{overflow-wrap:anywhere}
.tom .dsx-note,.tom .dsx-demo small{font-size:12px;line-height:18px;color:#626a77}
.tom .dsx-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start}
.tom .dsx-demo svg{width:16px;height:16px;flex:none;display:block}
.tom .dsx-demo code{font:10px/16px "DIN Alternate", "Report DIN Fallback",sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}
.tom .dsx-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;align-self:flex-start;min-height:32px;padding:5px 12px;border:1px solid #d5d9df;border-radius:8px;background:#fff;color:#1f2328;font:13px/20px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif;box-shadow:none;transition:background 120ms cubic-bezier(.2,.8,.2,1),border-color 120ms}
.tom .dsx-button:hover,.tom .dsx-hover{background:#eceef2}
.tom .dsx-button.dsx-primary{color:#fff;background:#1f2328;border-color:#1f2328}
.tom .dsx-button.dsx-primary:hover{background:#111;border-color:#111}
.tom .dsx-glass{background:#fff}.tom .dsx-ghost{border-color:transparent;background:transparent}
.tom .dsx-soft{background:#f6f7f9;border-color:#d5d9df}
.tom .dsx-destructive{color:white;background:#d64545;border-color:#d64545}
.tom .dsx-destructive:hover{background:#c03b3b}
.tom .dsx-soft-danger{background:#fdf0f0;color:#b42323;border-color:#f3cfcf}
.tom .dsx-soft-danger:hover{background:#fae1e1;border-color:#eab5b5}
.tom .dsx-plain{border-color:transparent;background:transparent;padding-left:0;padding-right:0}
.tom .dsx-polish{border-color:transparent;background:transparent;color:#626a77}
.tom .dsx-system :disabled{opacity:.5;cursor:not-allowed}
.tom .dsx-system :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #111;outline-offset:3px}
.tom .dsx-field{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:20px;min-width:0}
.tom .dsx-field-title{font-size:13px;line-height:20px}
.tom .dsx-system :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){display:block;width:100%;min-width:0;height:32px;padding:5px 12px;border:1px solid #d5d9df;border-radius:8px;background:white;color:#1f2328;font:13px/20px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif;box-shadow:none}
.tom .dsx-system textarea{height:auto;min-height:80px;resize:vertical}
.tom .dsx-system :is(input,select,textarea):focus{border-color:#111}
.tom .dsx-system :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea):focus{box-shadow:0 0 0 1px #111;outline:0}
.tom .dsx-system input::placeholder{color:#626a77}
.tom .dsx-system .dsx-card .dsx-field input[aria-invalid="true"]{border-color:#c2410c;background:#fff4e6}
.tom .dsx-demo .dsx-error{font:12px/18px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif;color:#c2410c}
.tom .dsx-search{display:block;position:relative}
.tom .dsx-search input{padding-right:36px!important}
.tom .dsx-search svg{position:absolute;right:12px;top:8px;color:#626a77;pointer-events:none}
.tom .dsx-two{display:grid;grid-template-columns:1fr;gap:12px}
.tom .dsx-principle{font:400 clamp(25px,2.5cqw,40px)/1.17 "DIN Alternate", "Report DIN Fallback",sans-serif;letter-spacing:-.04em}
.tom .dsx-principle strong{font-weight:700}
.tom .dsx-token-dot{width:22px;height:22px;border:1px solid #e6e8ec;border-radius:50%}
.tom .dsx-label{display:inline-flex;align-items:center;gap:4px;width:max-content;max-width:100%;border:1px solid transparent;padding:1px 6px;border-radius:6px;background:var(--soft,#f1f3f5);color:var(--tone,#4b5059);font:12px/20px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif;white-space:nowrap}
.tom .dsx-outline{background:transparent;border-color:var(--strong,#d5d9df)}
.tom .dsx-priority{background:#fff4e6;color:#c2410c}
.tom .dsx-label button{padding:0;color:inherit}
.tom .dsx-label button svg{width:12px;height:12px}
.tom .dsx-icon-demo{display:flex;flex:1;flex-direction:column;align-items:center;gap:8px;min-width:45px;padding:12px 0}
.tom .dsx-icon-demo svg{width:20px;height:20px}
.tom .dsx-icon-example{display:flex;flex-direction:column;gap:8px;background:#f6f7f9;padding:12px;border-radius:8px}
.tom .dsx-font-large{font:600 clamp(36px,4cqw,58px)/1.1 "DIN Alternate", "Report DIN Fallback",sans-serif;letter-spacing:-.05em}
.tom .dsx-number{font:400 24px/32px "DIN Alternate", "Report DIN Fallback",sans-serif}
.tom .dsx-chinese{font:500 16px/24px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif}
.tom .dsx-brand{font:400 24px/32px "DIN Alternate", "Report DIN Fallback","MF LangSong","PingFang SC",serif;letter-spacing:0}
.tom .dsx-emphasis{font:italic 700 24px/32px "DIN Alternate", "Report DIN Fallback","HYYakuHei","PingFang SC",sans-serif;font-synthesis:style}
.tom .dsx-scale,.tom .dsx-reading-list{display:flex;flex-direction:column;gap:16px}
.tom :is(.dsx-scale,.dsx-reading-list)>div{display:flex;flex-direction:column;gap:4px}
.tom .dsx-type-live{font:600 24px/1.35 "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif;overflow-wrap:anywhere;padding:16px 0}
.tom .dsx-truncate{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:8px 12px;background:#f6f7f9;border-radius:8px}
.tom .dsx-longword{overflow-wrap:anywhere;color:#626a77;font-size:12px}
.tom .dsx-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px}
.tom .dsx-swatches button{padding:0;display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left}
.tom .dsx-swatches button>span{width:100%;height:32px;border:1px solid #e6e8ec;border-radius:6px}
.tom .dsx-swatches small{font-size:11px}
.tom .dsx-semantic{display:flex;flex-direction:column;gap:12px}
.tom .dsx-semantic>div{display:grid;grid-template-columns:.9fr repeat(3,1fr);gap:6px;align-items:center;font-size:11px;line-height:18px}
.tom .dsx-semantic>div>span{display:flex;flex-direction:column;gap:4px}
.tom .dsx-semantic i{display:block;height:24px;border:1px solid #e6e8ec;border-radius:4px}
.tom .dsx-semantic-head{color:#626a77}
.tom .dsx-status-stack{display:flex;flex-direction:column;gap:12px}
.tom .dsx-contrast{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tom .dsx-contrast>div{display:flex;flex-direction:column;gap:8px;border:1px solid #e6e8ec;border-radius:8px;padding:12px;font-size:12px}
.tom .dsx-contrast strong{font-size:18px;font-weight:600}
.tom .dsx-radius-list{display:flex;flex-wrap:wrap;gap:12px}
.tom .dsx-radius-list>div{display:flex;flex-direction:column;gap:8px;align-items:center;width:calc(33.333% - 8px)}
.tom .dsx-radius-list>div>span{display:flex;align-items:center;justify-content:center;width:52px;height:52px;background:#f6f7f9;border:1px solid #d5d9df;font-size:18px}
.tom .dsx-radius-list small{text-align:center}
.tom .dsx-space-list{display:flex;align-items:flex-end;justify-content:space-between;gap:4px;padding-top:8px}
.tom .dsx-space-list>span{display:flex;flex-direction:column;align-items:center;gap:6px}
.tom .dsx-space-list i{width:12px;background:#1f2328;border-radius:1px;min-height:1px}
.tom .dsx-spacing-example{padding:24px;border-radius:12px;background:#f6f7f9;display:flex;flex-direction:column;gap:16px}
.tom .dsx-spacing-example>div{padding:8px;border:1px solid #d5d9df;border-radius:8px}
.tom .dsx-measures,.tom .dsx-layer-list{display:flex;flex-direction:column;gap:0}
.tom :is(.dsx-measures,.dsx-layer-list)>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e6e8ec;font-size:12px}
.tom .dsx-measures strong,.tom .dsx-layer-list strong{font-weight:600}
.tom .dsx-page-diagram{display:flex;border:1px solid #e6e8ec;border-radius:12px;overflow:hidden;height:168px}
.tom .dsx-page-diagram>aside{flex:none;width:26%;background:#f1f3f5;padding:12px;display:flex;flex-direction:column;gap:12px;transition:width 180ms cubic-bezier(.2,.8,.2,1)}
.tom .dsx-page-diagram>aside[data-collapsed]{width:11%;padding:12px 4px}
.tom .dsx-page-diagram>aside i{display:block;width:100%;height:6px;background:#d5d9df}
.tom .dsx-page-diagram>div{flex:1;min-width:0;padding:16px;display:flex;flex-direction:column;gap:16px;font-size:10px;color:#626a77}
.tom .dsx-split{display:flex;flex:1;min-width:0;--split:60}
.tom .dsx-split>span{width:calc(var(--split)*1%);background:#f6f7f9;display:flex;align-items:center;justify-content:center;min-width:0}
.tom .dsx-split>span:last-child{width:calc((100 - var(--split))*1%);background:#eceef2}
.tom .dsx-split>[role="separator"]{flex:none;cursor:col-resize;width:6px;background:#d5d9df;touch-action:none}
.tom .dsx-system input[type="range"]{width:100%;accent-color:#111;margin:0;min-width:0}
.tom .dsx-shadow{display:flex;align-items:center;justify-content:center;border:1px solid #e6e8ec;border-radius:8px;padding:14px 8px;flex:1;font-size:11px;background:white}
.tom .dsx-border-samples{display:flex;flex-direction:column;gap:8px;font-size:12px}
.tom .dsx-border-samples>span{border-left:1px solid #d5d9df;padding-left:10px}
.tom .dsx-border-samples>span:nth-child(2){border-left:.5px dashed #626a77}
.tom .dsx-border-samples>span:nth-child(3){border-left:2px solid #3b82f6}
.tom .dsx-motion-list{display:flex;flex-direction:column;gap:12px}
.tom .dsx-motion-list>div{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:12px}
.tom .dsx-motion-list i{grid-column:1/-1;background:#d5d9df;height:3px;border-radius:2px}
.tom .dsx-motion-track{padding:8px;background:#f6f7f9;border-radius:8px}
.tom .dsx-motion-track span{display:block;width:28px;height:28px;background:#1f2328;border-radius:8px}
.tom [data-dsx-form]{display:flex;flex-direction:column;gap:16px}
.tom [data-dsx-form] small{margin-top:-10px}
.tom .dsx-system :is(input[type="checkbox"],input[type="radio"]){width:16px;height:16px;accent-color:#111;vertical-align:middle;flex:none;margin:0}
.tom .dsx-choice-stack{display:flex;flex-direction:column;gap:16px}
.tom .dsx-choice-stack label,.tom [data-dsx-select-options] label{display:flex;align-items:center;gap:8px;font-size:13px}
.tom .dsx-choice-children{display:flex;flex-direction:column;gap:8px;padding-left:24px}
.tom .dsx-choice-stack fieldset{display:flex;gap:16px;border:0;padding:0;margin:0}
.tom .dsx-choice-stack legend{padding:0;margin-bottom:8px;font-size:12px;color:#626a77}
.tom .dsx-switch{width:36px;height:20px;border-radius:20px;background:#111;padding:2px}
.tom .dsx-switch span{display:block;width:16px;height:16px;background:#fff;border-radius:50%;transform:translateX(16px);transition:transform 120ms cubic-bezier(.2,.8,.2,1)}
.tom .dsx-switch[aria-checked="false"]{background:#d5d9df}
.tom .dsx-switch[aria-checked="false"] span{transform:none}
.tom .dsx-select-demo{position:relative;display:flex;flex-direction:column;gap:12px}
.tom .dsx-float{border:1px solid #e6e8ec;border-radius:12px;box-shadow:var(--dsx-pop);background:white;padding:16px;display:flex;flex-direction:column;gap:12px}
.tom [data-dsx-select-options]{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tom .dsx-tabs{display:flex;gap:2px;background:#f1f3f5;padding:3px;border-radius:8px;height:32px}
.tom .dsx-tabs .dsx-button{flex:1;min-height:0;height:26px;padding:3px 6px;border:0;border-radius:6px;background:transparent}
.tom .dsx-tabs [aria-selected="true"]{background:white}
.tom .dsx-line-tabs{background:transparent;border-bottom:1px solid #e6e8ec;padding:0;border-radius:0;height:36px}
.tom .dsx-line-tabs .dsx-button{height:36px;border-radius:0}
.tom .dsx-line-tabs [aria-selected="true"]{border-bottom:2px solid #111;font-weight:600}
.tom .dsx-tab-panel{padding:16px 0 8px;font-size:13px}
.tom [data-dsx-table]{display:flex;flex-direction:column;gap:12px}
.tom .dsx-table-wrap{width:100%;overflow-x:auto;border:1px solid #e6e8ec;border-radius:12px}
.tom .dsx-table-wrap table{width:100%;border-collapse:collapse;font-size:13px;line-height:22px;text-align:left;table-layout:fixed}
.tom .dsx-table-wrap th{height:40px;background:#f6f7f9;color:#626a77;font-weight:500;position:relative;padding:8px}
.tom .dsx-table-wrap td{padding:10px 8px;border-top:1px solid #e6e8ec;overflow-wrap:anywhere}
.tom .dsx-table-wrap :is(th,td):first-child{width:32px}
.tom .dsx-table-wrap th:nth-child(2){width:160px}
.tom .dsx-table-wrap th:last-child{min-width:90px}
.tom .dsx-table-wrap th button{font:inherit;padding:0;color:inherit}
.tom .dsx-table-wrap th input[type="range"]{position:absolute;width:18px;right:0;bottom:2px;height:8px;opacity:.35}
.tom .dsx-table-wrap th input[type="range"]:focus{opacity:1;width:50px}
.tom .dsx-table-footer{gap:8px}
.tom .dsx-table-footer .dsx-button{padding:5px 8px;font-size:12px}
.tom .dsx-table-footer select{width:auto;font-size:12px;padding:4px 6px}
.tom .dsx-table-footer output{font-size:12px}
.tom .dsx-dialog-anatomy{border:1px solid #e6e8ec;border-radius:12px;overflow:hidden;font-size:12px}
.tom .dsx-dialog-anatomy>span{display:block;background:#f6f7f9;padding:10px 16px}
.tom .dsx-dialog-anatomy>div{padding:24px;line-height:24px}
.tom .dsx-dialog{color:#1f2328;background:white;border:1px solid #e6e8ec;border-radius:12px;padding:0;width:min(480px,calc(100vw - 48px));max-height:calc(100vh - 48px);font:13px/22px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif;box-shadow:var(--dsx-pop)}
.tom .dsx-dialog::backdrop{background:rgba(0,0,0,.3)}
.tom .dsx-dialog header{height:64px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6e8ec}
.tom .dsx-dialog h4{font-size:16px;line-height:24px;font-weight:600;margin:0}
.tom .dsx-dialog header button{padding:4px;color:#626a77}
.tom .dsx-dialog-body{padding:24px;display:flex;flex-direction:column;gap:16px;max-height:calc(100vh - 176px);overflow-y:auto}
.tom .dsx-dialog footer{height:64px;padding:0 24px;display:flex;align-items:center;gap:8px;border-top:1px solid #e6e8ec}
.tom .dsx-toasts{position:fixed;z-index:1500;top:24px;right:24px;display:flex;flex-direction:column;gap:8px;width:300px;max-width:calc(100% - 48px);pointer-events:none}
.tom .dsx-toast{display:flex;align-items:flex-start;gap:8px;border:1px solid #d5d9df;border-radius:12px;padding:14px;background:#fff;color:#1f2328;box-shadow:var(--dsx-pop);pointer-events:auto;font:13px/20px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif}
.tom .dsx-toast>div{flex:1;display:flex;flex-direction:column;gap:8px}
.tom .dsx-toast>button{padding:0;color:#626a77}
.tom .dsx-toast svg{width:16px;height:16px}
.tom .dsx-feedback-demo{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:16px 0}
.tom .dsx-tooltip{position:fixed;z-index:1500;max-width:280px;padding:8px 12px;color:white;background:#1f2328;border-radius:6px;pointer-events:none;font:12px/18px "DIN Alternate", "Report DIN Fallback","PingFang SC",sans-serif}
@media(max-height:760px){.tom .dsx-card{padding:18px;gap:16px}}
@media(prefers-reduced-motion:reduce){.tom .dsx-system *{transition:none!important;animation:none!important}}
