/* theme checker page (/docs/theme-checker) */
.tc{max-width:860px;margin:0 auto}
.tc-in{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:24px}
.tc .f label:not(.tc-drop){display:block;font-weight:600;font-size:14.5px;margin-bottom:8px}
.tc .hint{font-size:13.5px;color:var(--muted);margin-top:8px;line-height:1.55}
.tc-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.tc-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;min-height:156px;padding:24px;border:1.5px dashed var(--line2);border-radius:var(--r-lg);background:var(--canvas);color:var(--muted);cursor:pointer;transition:border-color .15s,background .15s}
.tc-drop b{color:var(--ink);font-size:15.5px;word-break:break-all}
.tc-drop span{font-size:13.5px}
.tc-drop:hover,.tc-drop.over{border-color:var(--brand);background:var(--brand-soft)}
.tc-input:focus-visible+.tc-drop{border-color:var(--brand);box-shadow:0 0 0 3px rgba(43,89,255,.18)}
.tc-drop.has{border-style:solid;background:#fff}
.tc-act{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.tc-state{display:flex;align-items:center;gap:10px;margin-top:16px;color:var(--muted);font-size:15px}
.tc-state[hidden],.tc-fail[hidden],.tc-res[hidden],.tc-act [hidden]{display:none}
.tc-spin{width:16px;height:16px;border:2px solid var(--line2);border-top-color:var(--brand);border-radius:50%;animation:tcspin .7s linear infinite}
@keyframes tcspin{to{transform:rotate(360deg)}}
.tc-fail{margin-top:16px}
.tc-res{margin-top:16px;display:flex;flex-direction:column;gap:16px}
.tc-score{display:flex;gap:28px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:24px}
.tc-ring{position:relative;width:132px;height:132px;flex:none}
.tc-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.tc-ring circle{fill:none;stroke-width:10}
.tc-ring .bg{stroke:var(--canvas2)}
.tc-ring .fg{stroke:var(--tc,var(--brand));stroke-linecap:round;stroke-dasharray:326.7;stroke-dashoffset:326.7;transition:stroke-dashoffset .9s var(--ease-out-expo)}
.tc-ring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.tc-ring b{font-size:34px;letter-spacing:-.03em}.tc-ring span{font-size:12.5px;color:var(--muted2)}
.tc-res[data-tone=good]{--tc:var(--ok,#12A26B)}.tc-res[data-tone=mid]{--tc:#d97706}.tc-res[data-tone=bad]{--tc:var(--bad,#d92d20)}
.tc-sum h2{font-size:24px;margin:0 0 4px;letter-spacing:-.02em}
.tc-sum p{margin:0 0 12px;color:var(--muted);font-size:15.5px;line-height:1.6}
.tc-counts{display:flex;flex-wrap:wrap;gap:8px}
.tc-pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:999px;font-size:13px;font-weight:600;background:var(--canvas2)}
.tc-pill i{width:8px;height:8px;border-radius:50%;background:currentColor}
.tc-pill.error,.tc-lv.error{color:var(--bad,#d92d20)}.tc-pill.warning,.tc-lv.warning{color:#b45309}.tc-pill.tip,.tc-lv.tip{color:var(--brand)}
.tc-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin:0}
.tc-info div{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:14px 16px}
.tc-info dt{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted2);margin:0 0 4px}
.tc-info dd{margin:0;font-weight:600;font-size:17px;word-break:break-word}
.tc-h{font-size:18px;margin:8px 0 0}
.tc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.tc-it{background:#fff;border:1px solid var(--line);border-left-width:3px;border-radius:var(--r-lg);padding:16px 18px}
.tc-it.error{border-left-color:var(--bad,#d92d20)}.tc-it.warning{border-left-color:#d97706}.tc-it.tip{border-left-color:var(--brand)}
.tc-lv{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.tc-it h4{margin:4px 0 0;font-size:16px;line-height:1.45}
.tc-it p{margin:6px 0 0;font-size:14.5px;line-height:1.6;color:var(--muted)}
.tc-it .fix{color:var(--ink2)}.tc-it .fix b{color:var(--ink)}
.tc-it code{font:600 13px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--canvas2);padding:1px 6px;border-radius:6px}
.tc-clean{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:20px;color:var(--muted)}
@media(max-width:560px){.tc-in{padding:16px}.tc-score{flex-direction:column;align-items:flex-start;gap:18px;padding:20px}.tc-act .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.tc-ring .fg{transition:none}.tc-spin{animation-duration:2s}}
