:root{font-family:-apple-system,BlinkMacSystemFont,"Noto Sans TC",system-ui,sans-serif;background:#f1f5fa;color:#1a2940;font-size:16px}
body{margin:0}button,input{font:inherit}button{cursor:pointer}[hidden]{display:none!important}
.rt-main{max-width:600px;margin:0 auto;padding:24px 16px 64px;color:#1a2940;line-height:1.65;box-sizing:border-box}
.badge{margin-top:20px;display:inline-block;padding:7px 12px;border:1px solid #89ade0;border-radius:20px;font-weight:750;font-size:14px;color:#fff}
.rt-main *{box-sizing:border-box}
.rt-hero{background:linear-gradient(135deg,#142c55,#376bb0);color:white;border-radius:22px;padding:28px 22px;margin-bottom:18px}
.rt-hero h1{font-size:clamp(28px,6vw,40px);line-height:1.2;margin:12px 0;font-weight:850;color:white}
.rt-hero p{margin:0;color:#e3edff;font-size:16px}
.rt-panel{background:white;border:1px solid #e1e8f0;border-radius:20px;padding:20px;margin:16px 0;box-shadow:0 6px 18px #152b480b}
.rt-panel h2{font-size:22px;line-height:1.3;margin:7px 0;color:#1a2940;font-weight:780}
.rt-panel>p{margin:7px 0;color:#52627a;font-size:16px}
.rt-tag{color:#255ca6;font-size:14px;font-weight:800}
.rt-field{margin:22px 0}
.rt-field label{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:16px;font-weight:700;margin-bottom:8px}
.rt-field label strong{color:#215ab2;white-space:nowrap}.rt-field label span{color:#63748b;font-weight:500}
.rt-field input[type=range]{width:100%;height:44px;accent-color:#2c65bd;touch-action:pan-y;cursor:pointer}
.rt-endpoints{display:flex;justify-content:space-between;font-size:14px;color:#64748b}
.rt-field input[type=number]{width:100%;padding:13px 12px;border:1px solid #adbed4;border-radius:12px;font-size:18px;background:#fbfcff;color:#17283e;min-height:48px}
.rt-field input:focus-visible,.rt-main button:focus-visible,.rt-main a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.rt-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.rt-presets button{border:1px solid #cbd7e8;border-radius:12px;background:#f3f6fa;color:#314562;font-size:16px;font-weight:700;padding:10px 2px;min-height:44px}
.rt-presets button[aria-pressed=true]{background:#e3efff;border:2px solid #2862b9;color:#1d57a8}
.rt-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}
.rt-metrics>div,.rt-metric{background:#eef4fd;padding:15px;border-radius:15px;min-width:0}.rt-metric{margin:10px 0}
.rt-metrics span,.rt-metric span{color:#475b75;font-size:15px;display:block}
.rt-metrics b,.rt-metric b{display:block;font-size:clamp(19px,5vw,27px);line-height:1.3;margin:5px 0;color:#1d4a91;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.rt-warning{background:#fff3e9}.rt-warning b{color:#99451a}.rt-positive{background:#e8f6ed}.rt-positive b{color:#176336}
.rt-main .rt-hint{font-size:14px;color:#586b83;line-height:1.7;margin:9px 0}
.rt-main hr{border:0;border-top:1px solid #dce5ef;margin:24px 0}
.rt-action{display:block;width:100%;min-height:50px;padding:14px 10px;border:0;border-radius:14px;font-size:16px;font-weight:800;text-align:center;cursor:pointer;margin-top:12px;text-decoration:none}
.rt-secondary{background:#e8eff9;color:#25518e}.rt-line{background:#078c3b;color:white}
.rt-line:disabled{background:#c6d0d8;color:#435366;cursor:not-allowed}
.rt-consent{display:flex;gap:10px;align-items:flex-start;font-size:15px;margin-top:21px;color:#34465e}
.rt-consent input{width:22px;height:22px;flex-shrink:0;accent-color:#078c3b;margin-top:3px}
.rt-error{background:#fff3e9;color:#99451a!important;border-radius:12px;padding:14px}
.rt-details{margin-top:15px;font-size:15px}.rt-details summary{cursor:pointer;font-weight:700}.rt-details pre{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;background:#f3f6fa;padding:12px;border-radius:12px;font-size:14px}
.rt-footer{text-align:center;font-size:14px;color:#586b83;margin-top:24px}
.rt-funding{border:1px solid #cbdced;border-radius:15px;padding:14px;margin-top:18px;background:#f4f8fd}.rt-funding h3{margin:0;color:#1d4a91;font-size:20px}.rt-funding-table{border-collapse:collapse;width:100%;table-layout:fixed;font-variant-numeric:tabular-nums;font-size:14px}.rt-funding-table th,.rt-funding-table td{padding:12px 4px;text-align:center;overflow-wrap:anywhere;border-bottom:1px solid #dbe5f0}.rt-funding-table thead th{color:#475b75;font-weight:650;font-size:13px}.rt-funding-table tbody th{color:#215ab2;font-size:19px}.rt-funding-table td{font-weight:750;color:#1a2940}.rt-funding-table tbody tr:nth-child(2){background:#e4eefb}
@media(max-width:360px){.rt-panel{padding:16px}.rt-metrics{grid-template-columns:1fr}}
