.rt-tool{display:flex;flex-direction:column;gap:.75rem;min-width:0;width:100%;font-family:var(--font-sans);color:var(--foreground)}
.rt-tool [hidden]{display:none!important}
.rt-note{margin:0;padding:.625rem .875rem;border-radius:var(--radius);background:var(--accent);color:var(--accent-foreground);font-size:var(--text-small);line-height:1.5}
.rt-note-muted{background:var(--muted);color:var(--foreground)}
.rt-panel{position:relative;min-height:17rem}
.rt-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.375rem;min-height:17rem;margin:0;padding:2rem 1rem;text-align:center;cursor:pointer;border:2px dashed var(--input);border-radius:var(--radius);transition:border-color .15s ease,background-color .15s ease}
.rt-drop:hover,.rt-drop.is-over{border-color:var(--ring);background:var(--accent)}
.rt-drop:focus-within{outline:2px solid var(--ring);outline-offset:2px}
.rt-file{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.rt-drop-icon{width:2.5rem;height:2.5rem;color:var(--emphasis)}
.rt-drop-title{font-size:var(--text-h3);font-weight:600;line-height:1.3}
.rt-drop-sub{font-size:var(--text-body);color:var(--muted-foreground)}
.rt-drop-meta{font-size:var(--text-small);color:var(--muted-foreground);font-family:var(--font-mono)}
.rt-drop-cta{margin-top:.5rem;display:inline-flex;align-items:center;min-height:2.5rem;padding:0 1.125rem;border-radius:var(--radius);background:var(--emphasis);color:var(--emphasis-foreground);font-weight:600;font-size:var(--text-body)}
.rt-stage{display:flex;flex-direction:column;gap:.875rem;padding:.25rem 0}
.rt-thumb{display:block;max-width:100%;max-height:20rem;margin:0 auto;border-radius:var(--radius);object-fit:contain;background:var(--muted)}
.rt-meta{margin:0;font-size:var(--text-small);color:var(--muted-foreground);text-align:center;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.rt-status{margin:0;font-size:var(--text-small);text-align:center;line-height:1.5}
.rt-notice{margin:0;padding:.5rem .75rem;border-radius:var(--radius);background:var(--muted);font-size:var(--text-small);line-height:1.5}
.rt-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.rt-btn{display:inline-flex;align-items:center;justify-content:center;min-height:2.5rem;padding:0 1.125rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--card);color:var(--foreground);font:inherit;font-size:var(--text-body);font-weight:600;line-height:1;text-decoration:none;cursor:pointer;transition:background-color .15s ease,border-color .15s ease}
.rt-btn:hover{background:var(--muted)}
.rt-btn-primary{background:var(--emphasis);border-color:var(--emphasis);color:var(--emphasis-foreground)}
.rt-btn-primary:hover{background:var(--emphasis);filter:brightness(1.06)}
.rt-btn:disabled{opacity:.55;cursor:not-allowed}
.rt-btn:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.rt-working{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.625rem;min-height:15rem;padding:2rem 1rem;text-align:center}
.rt-working p{margin:0}
.rt-working-label{font-weight:600}
.rt-working-clock{font-family:var(--font-mono);font-size:var(--text-small);color:var(--muted-foreground)}
.rt-spin{width:2rem;height:2rem;border-radius:50%;border:3px solid var(--border);border-top-color:var(--emphasis);animation:rt-spin .9s linear infinite}
@keyframes rt-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.rt-spin{animation-duration:2.4s}}
.rt-error{display:flex;flex-direction:column;gap:.375rem;padding:.75rem 1rem;border-radius:var(--radius);border:1px solid color-mix(in oklch,var(--destructive) 35%,transparent);background:color-mix(in oklch,var(--destructive) 7%,transparent);color:var(--destructive);font-size:var(--text-small);line-height:1.5}
.rt-error p{margin:0}
.rt-error-hint{color:var(--foreground)}
.rt-compare{--pos:50%;position:relative;width:min(100%,calc(70vh * var(--ar,1.5)));margin:0 auto;overflow:hidden;border-radius:var(--radius);background:var(--muted);user-select:none;-webkit-user-select:none}
.rt-compare:focus-within{outline:2px solid var(--ring);outline-offset:2px}
.rt-compare img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.rt-cmp-after{clip-path:inset(0 0 0 var(--pos))}
.rt-cmp-line{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 0 1px rgb(0 0 0 / .3);pointer-events:none}
.rt-cmp-line::after{content:"";position:absolute;top:50%;left:50%;width:1.75rem;height:1.75rem;margin:-.875rem 0 0 -.875rem;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgb(0 0 0 / .35)}
.rt-cmp-tag{position:absolute;top:.5rem;padding:.125rem .5rem;border-radius:999px;background:rgb(0 0 0 / .55);color:#fff;font-size:var(--text-micro);pointer-events:none}
.rt-cmp-tag-l{left:.5rem}
.rt-cmp-tag-r{right:.5rem}
.rt-cmp-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none}
.rt-policy{display:flex;flex-wrap:wrap;gap:.25rem 1rem;margin:0;padding:0;list-style:none;font-size:var(--text-small);color:var(--muted-foreground)}
.rt-policy li{display:flex;gap:.375rem;align-items:baseline}
.rt-policy li::before{content:"✓";color:var(--success);font-weight:700}
.rt-passes{display:flex;flex-direction:column;gap:.75rem;padding:1rem;border:1px solid var(--border);border-radius:calc(var(--radius) * 1.5);background:var(--card)}
.rt-passes-title{margin:0;font-size:var(--text-h3);font-weight:600}
.rt-pass-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr));gap:.5rem}
.rt-pass{display:flex;flex-direction:column;align-items:flex-start;gap:.375rem;padding:.75rem;border:1px solid var(--border);border-radius:var(--radius)}
.rt-pass-name{font-weight:600}
.rt-pass-price{font-family:var(--font-mono);color:var(--muted-foreground)}
.rt-pass-notes{margin:0;font-size:var(--text-small);color:var(--muted-foreground)}
.rt-conditions{display:flex;flex-direction:column;gap:.25rem;margin:0;padding:.75rem 1rem;border-radius:var(--radius);background:var(--muted);list-style:none;font-size:var(--text-small);line-height:1.5;color:var(--muted-foreground)}
.rt-conditions .rt-cond-main{color:var(--foreground);font-weight:600}
