.system-case[hidden],.has-system-case .popup-case__grid{display:none!important}
.system-case{--system-muted:#aaa6b1;--system-line:#ffffff20;margin-top:55px}
[data-theme="light"] .system-case{--system-muted:#625d6b;--system-line:#21162d20}
.system-case-opening{max-width:760px;margin-bottom:40px}.system-case-opening h3{font-size:clamp(36px,5vw,64px);letter-spacing:-.045em;line-height:1.07;margin:16px 0 24px}
.system-case p{line-height:1.7;color:var(--system-muted);font-size:16px}.system-case .eyebrow{font-size:11px;letter-spacing:.13em}
.system-theme-toolbar{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;background:#111116f2;backdrop-filter:blur(14px);border-bottom:1px solid var(--system-line)}
[data-theme="light"] .system-theme-toolbar{background:#faf8fcf2}.system-theme-toolbar>span{font-size:13px;color:var(--system-muted)}.system-theme-toolbar>div{display:flex;gap:4px;padding:4px;border:1px solid var(--system-line);border-radius:99px}
.system-theme-toolbar button{border:0;background:transparent;color:inherit;font:inherit;font-size:13px;border-radius:99px;padding:9px 18px;cursor:pointer}.system-theme-toolbar button[aria-pressed="true"]{background:#f1eaf5;color:#18131d}.system-theme-toolbar button:focus-visible{outline:2px solid #398eff;outline-offset:2px}
.system-chapter{margin:65px 0}.system-chapter-heading{max-width:720px;margin-bottom:28px}.system-chapter h3{font-size:clamp(26px,3.4vw,40px);line-height:1.14;letter-spacing:-.025em;margin:12px 0 18px}.system-chapter h4{font-size:20px;margin:22px 0 8px}
.system-foundation-flow{display:flex;align-items:center;gap:20px;margin:28px 0}.system-foundation-flow span{flex:1;padding:22px 12px;text-align:center;border:1px solid var(--system-line);border-radius:12px;font-size:15px}.system-foundation-flow b{color:var(--system-muted);font-weight:400}
.system-token-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.system-token-grid article{padding:20px;border:1px solid var(--system-line);border-radius:14px;display:flex;flex-direction:column;gap:14px;min-width:0}.system-token-grid code{font-size:12px;overflow-wrap:anywhere}.system-token-grid article>span{font-size:13px;color:var(--system-muted)}.system-token-swatch{height:70px;border-radius:8px}.token-first{background:#dcf7ec}.token-second{background:#28b87f}[data-preview-theme="dark"] .token-first{background:#12543a}[data-preview-theme="dark"] .token-second{background:#79e2b8}
.system-input-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.system-input-grid article{min-width:0}.system-input-visual{background:#fafafa;border-radius:12px;min-height:160px;display:flex;align-items:center;padding:18px}.system-case img{display:block;width:100%;height:auto}.system-input-grid p{font-size:14px;margin:0}
.system-button-board{height:560px;overflow:auto;border-radius:14px;background:#fff;border:1px solid var(--system-line)}.system-button-board img{width:150%;max-width:none}.system-note{font-size:12px!important;margin:14px 0}
[data-preview-theme="dark"] .system-input-visual,[data-preview-theme="dark"] .system-button-board{background:#18181b}
.system-complex{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center}.system-picker{padding:20px;background:#eeedf0;border-radius:20px}.system-picker img{max-width:420px;margin:auto}[data-preview-theme="dark"] .system-picker{background:#17171a}.system-detail-copy{max-width:500px}.system-closing{border-top:1px solid var(--system-line);padding-top:50px}.system-family-list{display:flex;flex-wrap:wrap;gap:10px}.system-family-list span{padding:10px 17px;border:1px solid var(--system-line);border-radius:99px;font-size:13px}
@media(max-width:700px){.system-input-grid,.system-complex{grid-template-columns:1fr}.system-input-visual{min-height:150px;padding:25px}.system-token-grid{grid-template-columns:1fr}.system-chapter{margin:46px 0}.system-theme-toolbar>span{max-width:135px;font-size:12px}.system-foundation-flow{gap:8px}.system-foundation-flow span{font-size:11px;padding:16px 5px}.system-button-board{height:430px}.system-button-board img{width:850px}.system-complex{gap:16px}}

/* Curated, natural-size examples replace the long component catalogue. */
.system-chapter{margin:46px 0}.system-chapter-heading{margin-bottom:22px}
.system-input-visual{min-height:130px;padding:18px}.system-input-visual img{max-width:320px;margin:auto}
.system-picker{padding:16px}.system-picker img{max-width:280px}
.system-example-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:620px}
.system-example-row figure,.system-chip-samples figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:16px}
.system-mini-visual{width:100%;min-height:110px;display:flex;align-items:center;justify-content:center;background:#fafafa;border-radius:12px}
.system-case .system-button-large{width:164px;height:auto}.system-case .system-button-small{width:131px;height:auto}
.system-case figcaption{font-size:12px;color:var(--system-muted);line-height:1.4}
.system-chip-samples{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:28px;padding:30px 24px;background:#fafafa;border-radius:14px;max-width:720px}
.system-case .system-chip-medium{width:181.5px;height:48px;object-fit:contain}.system-case .system-chip-small{width:145.5px;height:48px;object-fit:contain}
.system-chip-samples figcaption{color:#62626b}
[data-preview-theme="dark"] .system-mini-visual,[data-preview-theme="dark"] .system-chip-samples{background:#18181b}
[data-preview-theme="dark"] .system-chip-samples figcaption{color:#aaa6b1}
.system-decisions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:28px 0 0}.system-decisions>div{border-top:1px solid var(--system-line);padding-top:16px}.system-decisions dt{font-size:15px;font-weight:600;margin-bottom:9px}.system-decisions dd{margin:0;font-size:14px;color:var(--system-muted);line-height:1.7}
@media(max-width:700px){.system-decisions{grid-template-columns:1fr;gap:16px}.system-chip-samples{gap:24px;padding:24px 12px}.system-example-row{gap:12px}.system-case .system-button-large{width:131px}.system-case .system-button-small{width:104px}.system-mini-visual{min-height:90px}.system-input-visual{min-height:120px}.system-chapter{margin:38px 0}}

/* Fixed primitive swatches with a soft halo in either page theme. */
.system-token-grid article{padding:26px;overflow:visible}.system-token-swatch{height:70px;margin:4px 0 10px;border:1px solid #ffffff1c}
.system-case .token-first,.system-case[data-preview-theme="dark"] .token-first{background:#12543a;box-shadow:0 0 22px #28b87f55,0 0 44px #28b87f22,inset 0 1px 0 #64dba544}
.system-case .token-second,.system-case[data-preview-theme="dark"] .token-second{background:#600642;box-shadow:0 0 22px #e64bb655,0 0 44px #e64bb622,inset 0 1px 0 #f18dc444}
.system-tag-samples{display:flex;align-items:center;gap:34px;flex-wrap:wrap;background:#fafafa;border-radius:14px;padding:28px;max-width:620px}.system-tag-samples figure{display:flex;flex-direction:column;align-items:center;gap:14px;margin:0}.system-tag-samples img{width:158px;height:auto}.system-tag-samples figcaption{color:#62626b}
[data-preview-theme="dark"] .system-tag-samples{background:#18181b}[data-preview-theme="dark"] .system-tag-samples figcaption{color:#aaa6b1}
.system-context-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:24px}.system-context-grid article{min-width:0}.system-filter-example,.system-tooltip-example{height:120px;display:flex;align-items:center;justify-content:center;padding:16px;background:#f3f3f6;border-radius:14px}.system-filter-example img{width:100%;max-width:592px}.system-tooltip-example img{width:100%;max-width:260px}.system-context-grid p{font-size:14px}.system-context-grid h4{font-size:19px}
@media(max-width:700px){.system-context-grid{grid-template-columns:1fr}.system-tag-samples{gap:24px;padding:24px 16px;justify-content:center}.system-tag-samples img{width:125px}.system-filter-example{height:95px;padding:10px}.system-tooltip-example{height:100px}}

.system-case .token-first{background:#12543a}.system-case .token-second{background:#600642}
.system-case[data-preview-theme="dark"] .token-first{background:#dcf7ec;box-shadow:0 0 22px #86eec277,0 0 44px #28b87f33}
.system-case[data-preview-theme="dark"] .token-second{background:#fdd9f1;box-shadow:0 0 22px #f69ed477,0 0 44px #e64bb633}
.system-token-swatch{transition:background .25s,box-shadow .25s}
.system-tooltip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.system-tooltip-grid article{min-width:0}.system-tooltip-specimen{height:190px;display:flex;align-items:center;justify-content:center;padding:22px;background:#f3f3f6;border-radius:14px}.system-tooltip-specimen img{width:auto;max-width:100%;max-height:145px;object-fit:contain}.system-tooltip-grid p{font-size:14px}.system-tooltip-grid h4{font-size:19px}
@media(max-width:700px){.system-tooltip-grid{grid-template-columns:1fr}.system-tooltip-specimen{height:150px}.system-tooltip-specimen img{max-height:120px}}

.system-example-row{grid-template-columns:1fr 1fr .7fr;max-width:850px}.system-case .system-button-icon{width:54px;height:auto}
.system-tag-samples{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;gap:24px;padding:28px 20px}.system-tag-samples img{width:158px;max-width:100%}
.system-filter-options{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:850px}.system-filter-options figure{margin:0;min-width:0}.system-filter-state{display:flex;align-items:center;justify-content:center;background:#fafafa;border-radius:14px;padding:28px 20px;min-height:120px}.system-filter-state img{max-width:288px;width:100%}.system-filter-options figcaption{text-align:center;margin-top:15px}[data-preview-theme="dark"] .system-filter-state{background:#18181b}
@media(max-width:700px){.system-example-row{grid-template-columns:1fr 1fr}.system-example-row figure:last-child{grid-column:1/-1;max-width:160px;width:100%;justify-self:center}.system-tag-samples{grid-template-columns:1fr 1fr;gap:24px 16px}.system-filter-options{grid-template-columns:1fr}.system-case .system-button-icon{width:44px}}

.library-example{border-top:1px solid var(--system-line);margin-top:28px;padding-top:22px}
.system-case .library-example h4{margin:0 0 8px}.system-case .library-example>p{margin:0 0 18px;max-width:580px;font-size:15px}
.library-states{display:flex;gap:6px;flex-wrap:wrap;margin:18px 0}
.library-states button{border:1px solid var(--system-line);border-radius:24px;color:inherit;background:transparent;font:inherit;font-size:13px;padding:8px 12px;cursor:pointer}
.library-states button[aria-pressed=true]{background:#e8dff2;color:#21172b}.library-states button:focus-visible{outline:2px solid #ad84d4;outline-offset:2px}
.library-button-grid,.library-chip-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:10px}
.library-button-grid figure,.library-chip-grid figure{margin:0;min-width:0;text-align:center}
.library-button-sample,.library-chip-grid figure{border-radius:12px;background:#fafafa}
[data-preview-theme=dark] :is(.library-button-sample,.library-chip-grid figure){background:#18181b}
.library-button-sample{height:78px;display:grid;place-items:center;margin-bottom:8px}
.library-button-sample i{display:block;position:relative;width:96px;max-width:100%;aspect-ratio:52/22;overflow:hidden;container-type:inline-size}
.library-button-sample i::before{content:'';position:absolute;width:1057.6923%;aspect-ratio:2013/2375;left:calc((26 - var(--board-x))*100cqw/52);top:calc((11 - 46 - var(--board-row,0)*26.25)*100cqw/52);background:url('assets/design-system/buttons-light.webp') center/100% 100% no-repeat}
[data-preview-theme=dark] .library-button-sample i::before{background-image:url('assets/design-system/buttons-dark.webp');top:calc((11 - 48 - var(--board-row,0)*26.25)*100cqw/52)}
.library-chip-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.library-chip-grid figure{padding:18px 10px;color:#555;display:grid;justify-items:center;align-content:center;gap:10px}
.library-chip-grid img{width:auto;max-width:100%;height:var(--chip-height);object-fit:contain}
@media(max-width:980px){.library-chip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.system-case .library-chip-grid figcaption{color:#57535b}[data-preview-theme=dark] .library-chip-grid figcaption{color:#bbb4c1}
