.ts-topics {
    --ts-ink: #181c32;
    --ts-muted: #5e6278;
    --ts-line: #e9edf3;
    --ts-brand: #ad2347;
    margin: 0;
    color: var(--ts-ink);
    background: #f6f7f9;
    font: 1rem/1.5 Geist, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ts-topics *, .ts-topics *::before { box-sizing: border-box; }
.ts-topics a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ts-topics h1, .ts-topics h2 { color: inherit; text-wrap: balance; }
.ts-topics p { text-wrap: pretty; }
.ts-wrap { width: min(100%, 72rem); padding-inline: 1.5rem; margin-inline: auto; }
.ts-bar { background: #fff; border-bottom: 1px solid var(--ts-line); }
.ts-bar .ts-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; }
.ts-bar img { display: block; max-width: 100%; height: 2rem; }
.ts-back, .ts-eyebrow { color: var(--ts-brand); font-size: .875rem; font-weight: 600; }
.ts-back:hover { text-decoration: underline; }
.ts-skip { position: absolute; inset-inline-start: 1rem; top: 0; padding: .75rem; background: white; transform: translateY(-110%); z-index: 4; }
.ts-skip:focus { transform: translateY(0); }
.ts-intro { padding-block: 3rem 2rem; }
.ts-intro h1 { margin: .5rem 0 .75rem; font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
.ts-intro p { max-width: 680px; margin: 0; }
.ts-intro .ts-summary { margin-top: 1rem; color: var(--ts-muted); font-size: .875rem; }
.ts-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); align-items: start; gap: 1.5rem; }
.ts-panel.card { padding: 1.5rem; border: 1px solid var(--ts-line); border-radius: .75rem; background: #fff; box-shadow: 0 2px 8px #181c3208; }
.ts-panel h2 { margin: 0; font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; }
.ts-directory { position: sticky; top: 1rem; z-index: 2; }
.ts-directory h2 { font-size: .875rem; line-height: 1.25rem; color: var(--ts-muted); }
.ts-directory ul, .ts-tags { list-style: none; padding: 0; margin: 1rem 0 0; }
.ts-directory ul { display: grid; gap: .25rem; }
.ts-directory a, .ts-tags a {
    display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .5rem .75rem;
    border-radius: .5rem; color: var(--ts-tone); text-decoration: none; font-size: .875rem;
    line-height: 1.25rem; font-weight: 600; transition: background-color .2s cubic-bezier(.32,.72,0,1);
}
.ts-directory a:hover, .ts-tags a { background: var(--ts-tint); }
.ts-tags a:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ts-directory a:active, .ts-tags a:active { transform: translateY(1px); }
.ts-dot { display: inline-block; flex: 0 0 .5rem; width: .5rem; height: .5rem; background: var(--ts-tone); border-radius: 50%; }
.ts-sections { display: grid; gap: 1rem; }
.ts-sections section { scroll-margin-top: 1rem; }
.ts-sections section:target { border-color: var(--ts-tone); }
.ts-group-head, .ts-group-head h2 { display: flex; align-items: center; gap: .75rem; }
.ts-group-head { justify-content: space-between; flex-wrap: wrap; }
.ts-group-head > span { color: var(--ts-muted); font-size: .875rem; }
.ts-tags { display: flex; flex-wrap: wrap; gap: .75rem; }
.ts-count { padding-inline: .5rem; border-radius: .25rem; background: #fff; white-space: nowrap; font-size: .75rem; font-variant-numeric: tabular-nums; }
.ts-tone-violet { --ts-tone: #6544ad; --ts-tint: #f2edff; }
.ts-tone-blue { --ts-tone: #285aa4; --ts-tint: #edf5ff; }
.ts-tone-teal { --ts-tone: #176559; --ts-tint: #e8f7f2; }
.ts-tone-amber { --ts-tone: #824c09; --ts-tint: #fff4de; }
.ts-tone-rose { --ts-tone: #a02e50; --ts-tint: #fff0f4; }
.ts-footer { padding-block: 2rem; color: var(--ts-muted); font-size: .875rem; }
@media (max-width: 48rem) {
    .ts-wrap { padding-inline: 1rem; }
    .ts-intro { padding-block: 2rem 1.5rem; }
    .ts-intro h1 { font-size: 1.875rem; line-height: 2.25rem; }
    .ts-layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .ts-panel.card { padding: 1rem; }
    .ts-directory { top: 0; }
    .ts-directory ul { display: flex; overflow-x: auto; margin: .5rem -.5rem -.5rem; padding: .5rem; }
    .ts-directory a { white-space: nowrap; background: var(--ts-tint); }
    .ts-sections section { scroll-margin-top: 8rem; }
}
@media (prefers-reduced-motion: reduce) {
    .ts-topics a { transition: none; }
}
