.ty-demo{--tp-bg:#f7f7f5;--tp-paper:#fff;--tp-ink:#222522;--tp-muted:#646a65;--tp-line:#d8dcd7;--tp-control-line:#8b938c;--tp-soft:#edefea;--tp-accent:#22684f;--tp-fill:#252925;--tp-on-fill:#fff;--tp-error:#ae3434;--tp-focus:#22684f;--tp-radius:10px;background:var(--tp-bg);color:var(--tp-ink);-webkit-font-smoothing:antialiased;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;min-height:100vh;font-family:Segoe UI,Microsoft YaHei,sans-serif;font-size:16px;line-height:1.65}.ty-demo[data-theme=dark]{--tp-bg:#171b19;--tp-paper:#202522;--tp-ink:#edf0eb;--tp-muted:#b1bab2;--tp-line:#485149;--tp-control-line:#6d7c70;--tp-soft:#2c342e;--tp-accent:#9acdb1;--tp-fill:#e6ece4;--tp-on-fill:#202522;--tp-error:#faa;--tp-focus:#9acdb1;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.ty-demo[data-theme=mint]{--tp-bg:#edf4ee;--tp-paper:#f7fbf7;--tp-ink:#253a2d;--tp-muted:#526959;--tp-line:#bfcfc2;--tp-control-line:#7f8f82;--tp-soft:#e2ece2;--tp-fill:#294b39;--tp-focus:#22684f}.ty-demo *,.ty-demo :before,.ty-demo :after{box-sizing:border-box}.ty-demo :is(h1,h2,h3,p,fieldset){margin:0}.ty-demo :is(button,input,select,textarea){font:inherit}.ty-demo button,.ty-demo a,.ty-demo summary{-webkit-tap-highlight-color:transparent}.ty-demo button,.ty-demo a{transition:background-color .16s,border-color .16s,color .16s,transform .16s}.ty-demo button{color:inherit;cursor:pointer}.ty-demo button:active:not(:disabled){transform:translateY(1px)}.ty-demo button:disabled{cursor:not-allowed;opacity:.55}.ty-demo a{color:inherit;text-decoration:none}.ty-demo [hidden]{display:none!important}.ty-demo :focus-visible{outline:2px solid var(--tp-focus);outline-offset:4px}.ty-demo svg{vertical-align:middle;flex-shrink:0}html{scrollbar-gutter:stable;scrollbar-color:#89928a #f7f7f5;scrollbar-width:auto}html:has(.ty-demo[data-theme=dark]){scrollbar-color:#819184 #171b19}html:has(.ty-demo[data-theme=mint]){scrollbar-color:#77927d #edf4ee}.tp-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.tp-skip{background:var(--tp-paper);z-index:10;clip-path:inset(50%);padding:8px 16px;position:fixed;top:8px;left:16px}.tp-skip:focus{clip-path:none}.tp-preview{background:var(--tp-soft);color:var(--tp-muted);justify-content:space-between;align-items:center;gap:16px;padding:8px max(24px,50% - 560px);font-size:12px;display:flex;position:relative}.tp-preview summary{cursor:pointer;border:1px solid var(--tp-line);white-space:nowrap;border-radius:5px;padding:4px 8px}.tp-preview-options{z-index:5;background:var(--tp-paper);border:1px solid var(--tp-line);border-radius:var(--tp-radius);gap:16px;width:min(320px,100vw - 32px);padding:20px;font-size:14px;display:grid;position:absolute;top:calc(100% + 8px);right:max(24px,50% - 560px);box-shadow:0 10px 32px #00000010}.tp-preview-options label{align-items:center;gap:12px;display:flex}.tp-preview-options select{color:var(--tp-ink);background:var(--tp-paper);border:1px solid var(--tp-line);border-radius:5px;flex:1;padding:8px}.tp-header{justify-content:space-between;align-items:center;gap:16px;max-width:1168px;margin:auto;padding:26px 24px;display:flex}.tp-brand{letter-spacing:-.02em;align-items:center;gap:12px;font-weight:650;display:flex}.tp-brand img{display:block}.tp-preferences{align-items:center;gap:12px;display:flex}.tp-button{border:1px solid var(--tp-line);background:var(--tp-paper);text-align:center;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:8px 17px;font-size:14px;font-weight:550;display:inline-flex}.tp-button:hover:not(:disabled){border-color:var(--tp-ink);background:var(--tp-soft)}.tp-solid{background:var(--tp-fill);border-color:var(--tp-fill);color:var(--tp-on-fill)!important}.tp-solid:hover:not(:disabled){background:var(--tp-fill);opacity:.9}.tp-language{min-width:46px;padding:8px 12px}.tp-themes{border:1px solid var(--tp-line);border-radius:8px;padding:3px;display:flex}.tp-themes button{width:34px;height:34px;color:var(--tp-muted);background:0 0;border:0;border-radius:5px;place-items:center;display:grid}.tp-themes button[aria-pressed=true]{background:var(--tp-paper);color:var(--tp-ink);box-shadow:0 1px 3px #00000012}.tp-themes button:hover{color:var(--tp-ink);background:var(--tp-soft)}.tp-main{max-width:1008px;margin:auto;padding:0 24px 72px}.tp-masthead{padding:42px 0 34px}.tp-course-meta{color:var(--tp-muted);align-items:center;gap:16px;margin-bottom:17px;font-size:13px;display:flex}.tp-course-meta span:first-child{letter-spacing:.09em;color:var(--tp-accent);border:1px solid var(--tp-line);background:var(--tp-paper);border-radius:5px;padding:4px 9px;font-family:Consolas,monospace}.tp-masthead h1{letter-spacing:-.035em;text-wrap:balance;max-width:820px;font-size:clamp(28px,3.3vw,40px);font-weight:680;line-height:1.28}.tp-masthead p{color:var(--tp-muted);margin-top:12px;font-size:16px}.ty-demo .tp-tabs{border-bottom:1px solid var(--tp-line);flex-wrap:wrap;gap:8px;padding-bottom:25px;display:flex}.ty-demo [data-slot=tabs-trigger]{border:1px solid var(--tp-line);min-height:43px;color:var(--tp-muted);background:var(--tp-paper);white-space:normal;border-radius:7px;justify-content:center;align-items:center;padding:9px 18px;font-size:14px;font-weight:550;display:inline-flex}.ty-demo [data-slot=tabs-trigger]:hover{border-color:var(--tp-ink);color:var(--tp-ink)}.ty-demo [data-slot=tabs-trigger][data-state=active]{background:var(--tp-fill);color:var(--tp-on-fill);border-color:var(--tp-fill)}.ty-demo [data-slot=tabs-content]{max-width:820px;margin:0 auto}.tp-section-heading{justify-content:space-between;align-items:center;gap:20px;padding:35px 0 22px;display:flex}.tp-section-heading h2{letter-spacing:-.02em;font-size:21px;font-weight:650;line-height:1.4}.tp-section-heading p{color:var(--tp-muted);margin-top:6px;font-size:14px}.tp-section-heading .tp-button{flex-shrink:0}.tp-reviews{gap:20px;display:grid}.tp-review{background:var(--tp-paper);border:1px solid var(--tp-line);border-radius:var(--tp-radius);padding:28px 32px 12px;scroll-margin-top:24px}.tp-byline{align-items:center;gap:11px;margin-bottom:21px;display:flex}.tp-avatar{border:1px solid var(--tp-line);background:var(--tp-soft);border-radius:50%;place-items:center;width:39px;height:39px;font-size:15px;display:grid}.tp-author{font-size:14px;font-weight:600;line-height:1.5}.tp-author small{color:var(--tp-muted);margin-top:3px;font-size:12px;font-weight:400;display:block}.tp-level{color:var(--tp-muted);border:1px solid var(--tp-line);vertical-align:middle;border-radius:3px;margin-left:8px;padding:1px 4px;font-family:Consolas,monospace;font-size:10px}.tp-rating{align-self:flex-start;align-items:center;gap:6px;margin-left:auto;padding-top:3px;font-size:15px;display:flex}.tp-rating span{color:var(--tp-muted);font-size:12px}.tp-review h3{letter-spacing:-.02em;margin-bottom:13px;font-size:20px;font-weight:650;line-height:1.45}.tp-review p{overflow-wrap:anywhere;margin-bottom:14px;font-size:15px;line-height:1.95}.tp-expand{border:1px solid var(--tp-line);background:0 0;border-radius:5px;margin:0 0 20px;padding:3px 9px;color:var(--tp-muted)!important;font-size:12px!important}.tp-expand:hover{border-color:var(--tp-ink);color:var(--tp-ink)!important}.tp-actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.tp-actions button{border:1px solid var(--tp-line);background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:38px;padding:6px 11px;font-size:13px;display:inline-flex}.tp-actions button:hover{background:var(--tp-soft);border-color:var(--tp-muted)}.tp-actions button[aria-pressed=true]{color:var(--tp-accent);background:var(--tp-soft);border-color:var(--tp-accent)}.tp-actions .tp-report{color:var(--tp-muted);margin-left:auto}.tp-count{font-variant-numeric:tabular-nums;color:var(--tp-muted)}.tp-notice{min-height:23px;color:var(--tp-muted);margin-top:6px;font-size:12px}.tp-discussion{border-top:1px solid var(--tp-line);margin:12px 0 16px;padding-top:20px}.tp-discussion label{margin-bottom:8px;font-size:14px;font-weight:600;display:block}.tp-discussion textarea{border:1px solid var(--tp-line);width:100%;color:var(--tp-ink);background:var(--tp-bg);resize:none;border-radius:7px;margin-bottom:10px;padding:12px}.tp-inline{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:20px;display:flex}.tp-locked{border:1px solid var(--tp-line);border-radius:var(--tp-radius);background:var(--tp-paper);margin-top:20px;position:relative;overflow:hidden}.tp-blur{opacity:.35;filter:blur(5px);pointer-events:none;align-content:center;gap:20px;padding:32px;display:grid;position:absolute;inset:0}.tp-blur i{background:var(--tp-line);width:85%;height:12px}.tp-blur i:nth-child(2n){width:62%}.tp-locked-copy{text-align:center;background:color-mix(in srgb, var(--tp-paper) 85%, transparent);padding:42px 24px;position:relative}.tp-locked h3{margin:13px 0 10px;font-size:21px}.tp-locked p{font-size:15px}.tp-locked small{color:var(--tp-muted);margin-top:9px;font-size:12px;display:block}.tp-state{text-align:center;border:1px solid var(--tp-line);border-radius:var(--tp-radius);background:var(--tp-paper);flex-direction:column;justify-content:center;align-items:center;gap:16px;min-height:300px;padding:45px 24px;display:flex}.tp-state p{max-width:440px;color:var(--tp-muted);font-size:14px}.tp-spinner{border:2px solid var(--tp-line);border-top-color:var(--tp-ink);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite tp-spin}@keyframes tp-spin{to{transform:rotate(360deg)}}.tp-form-panel{border:1px solid var(--tp-line);background:var(--tp-paper);border-radius:var(--tp-radius);margin-top:32px;padding:34px 40px 16px}.tp-form-heading{margin-bottom:30px}.tp-form-heading h2{letter-spacing:-.025em;text-wrap:balance;font-size:24px;font-weight:650;line-height:1.5}.tp-draft{color:var(--tp-muted);align-items:center;gap:7px;margin-top:12px;font-size:12px;display:inline-flex}.tp-draft>span{background:var(--tp-muted);border-radius:50%;width:5px;height:5px}.tp-fields{border:0;min-width:0;padding:0}.tp-field{min-width:0;margin:0 0 17px!important}.tp-field>label,.tp-score legend{margin-bottom:10px;padding:0;font-size:14px;font-weight:650;display:block}.tp-required{color:var(--tp-muted);font-size:12px;font-weight:400}.tp-field :is(input:not([type=radio]),select,textarea){border:1px solid var(--tp-control-line);background:var(--tp-paper);width:100%;color:var(--tp-ink);border-radius:7px;min-height:48px;padding:12px 14px;font-size:15px;transition:border-color .16s}.tp-field :is(input,select,textarea):hover{border-color:var(--tp-muted)}.tp-field input::placeholder,.tp-field textarea::placeholder,.tp-discussion textarea::placeholder{color:var(--tp-muted);opacity:1}.tp-field textarea{resize:none;min-height:180px;line-height:1.8}.tp-field [aria-invalid=true]:not([type=radio]){border-color:var(--tp-error)}.tp-score{border:0;padding:0}.tp-stars{grid-template-columns:repeat(5,1fr);gap:9px;display:grid}.tp-stars label{border:1px solid var(--tp-control-line);min-height:48px;color:var(--tp-muted);cursor:pointer;border-radius:7px;justify-content:center;align-items:center;gap:9px;font-size:15px;display:flex;position:relative}.tp-stars input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.tp-stars label:has(:focus-visible){outline:2px solid var(--tp-focus);outline-offset:3px}.tp-stars label:hover{border-color:var(--tp-ink)}.tp-stars label.is-selected{color:var(--tp-accent);border-color:var(--tp-accent);background:var(--tp-soft)}.tp-stars label:has(:disabled){cursor:not-allowed;opacity:.55}.tp-error{color:var(--tp-error);min-height:20px;font-size:12px;display:block}.tp-field>.tp-error,.tp-score>.tp-error{margin-top:5px}.tp-field-meta{color:var(--tp-muted);justify-content:space-between;align-items:flex-start;gap:12px;margin-top:7px;font-size:12px;display:flex}.tp-field-meta>span:last-child{white-space:nowrap}.tp-submit{width:100%;min-height:48px}.tp-form-status{align-items:center;gap:9px;min-height:48px;padding-top:10px;font-size:13px;display:flex}.tp-overview{padding:34px 0}.tp-overview h2{margin-bottom:20px}.tp-overview p{margin-bottom:16px}.tp-muted{color:var(--tp-muted)}.tp-reference{margin:28px 0 12px;font-size:13px;display:block}.tp-footer{border-top:1px solid var(--tp-line);max-width:1120px;color:var(--tp-muted);justify-content:space-between;gap:16px;margin:auto;padding:26px 24px;font-size:12px;display:flex}.tp-dialog{background:var(--tp-paper);width:min(600px,100vw - 32px);max-height:85dvh;color:var(--tp-ink);border:1px solid var(--tp-line);border-radius:12px;padding:28px}.tp-dialog::backdrop{background:#0006}.tp-dialog-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.tp-dialog h2{font-size:20px}.tp-dialog p{color:var(--tp-muted);margin:14px 0;font-size:13px}.tp-levels{margin:0;padding:0;list-style:none}.tp-levels li{border-top:1px solid var(--tp-line);grid-template-columns:40px 1fr 50px;align-items:center;gap:12px;padding:15px 0;font-size:14px;display:grid}.tp-levels small{text-align:right;color:var(--tp-muted)}@media (width<=640px){.tp-preview{gap:8px;padding:8px 16px;font-size:10px}.tp-header{flex-wrap:wrap;padding:20px 16px}.tp-brand{gap:8px;font-size:14px}.tp-brand img{width:32px;height:32px}.tp-preferences{gap:8px}.tp-main{padding:0 16px 48px}.tp-masthead{padding:22px 0 26px}.tp-masthead h1{font-size:28px}.tp-masthead p{font-size:13px}.ty-demo .tp-tabs{gap:7px;padding-bottom:22px}.ty-demo [data-slot=tabs-trigger]{padding:9px 11px;font-size:13px}.tp-section-heading{align-items:flex-start;gap:12px;padding:26px 0 18px}.tp-section-heading h2{font-size:20px}.tp-section-heading p{max-width:200px;font-size:12px}.tp-section-heading .tp-button{padding:8px 10px;font-size:12px}.tp-review{padding:22px 20px 10px}.tp-review h3{font-size:18px}.tp-review p{font-size:14px;line-height:1.95}.tp-actions{gap:7px}.tp-actions button{min-height:40px;padding:7px 9px;font-size:12px}.tp-actions .tp-report{margin-left:0}.tp-form-panel{margin-top:24px;padding:24px 20px 12px}.tp-form-heading h2{font-size:22px}.tp-stars{gap:7px}.tp-stars label{gap:5px}.tp-stars svg{width:16px}.tp-field-meta{flex-wrap:wrap;gap:2px}.tp-field-meta>span:last-child{margin-left:auto}.tp-footer{flex-direction:column;gap:5px;padding:22px 16px}.tp-locked h3{font-size:19px}.tp-locked-copy{padding:32px 20px}}@media (width<=380px){.tp-header{row-gap:12px}.tp-brand{width:100%}.tp-preferences{margin-left:auto}.tp-review{padding:20px 16px 10px}}@media (prefers-reduced-motion:reduce){.ty-demo *,.ty-demo :before,.ty-demo :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media (forced-colors:active){html{scrollbar-color:auto}.tp-stars label.is-selected,.tp-actions button[aria-pressed=true],.ty-demo [data-state=active]{outline:2px solid highlight}.tp-blur{display:none}}
