.rt-wrap{width:100%;max-width:850px;margin:24px auto;font-family:inherit;color:#111827}
.rt-wrap *{box-sizing:border-box}
.rt-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:28px;box-shadow:0 12px 35px rgba(15,23,42,.08)}
.rt-header{display:flex;align-items:center;gap:15px;margin-bottom:25px}
.rt-logo{width:54px;height:54px;border-radius:14px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:center;font:700 20px/1 monospace}
.rt-header h2{margin:0 0 4px;font-size:25px;line-height:1.2}
.rt-header p{margin:0;color:#6b7280;font-size:14px}
.rt-field{margin-bottom:18px}
.rt-field label,.rt-panel-title{font-size:13px;font-weight:700;color:#374151}
.rt-pattern-row{display:flex;align-items:center;margin-top:8px;border:1px solid #d1d5db;border-radius:11px;background:#fff;overflow:hidden}
.rt-pattern-row:focus-within{border-color:#111827;box-shadow:0 0 0 3px rgba(17,24,39,.08)}
.rt-slash{padding:0 7px;color:#6b7280;font:18px monospace}
.rt-pattern,.rt-flags,.rt-text,.rt-replacement{border:0;outline:0;background:transparent;color:#111827;font:14px/1.5 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}
.rt-pattern{flex:1;min-width:0;height:48px}
.rt-flags{width:58px;height:48px;text-align:left}
.rt-text{display:block;width:100%;margin-top:8px;padding:14px;border:1px solid #d1d5db;border-radius:11px;resize:vertical;min-height:170px}
.rt-text:focus,.rt-replacement:focus{border-color:#111827;box-shadow:0 0 0 3px rgba(17,24,39,.08)}
.rt-error{min-height:20px;margin-top:6px;color:#b91c1c;font-size:12px}
.rt-label-row{display:flex;justify-content:space-between;align-items:center}
.rt-clear{border:0;background:none;color:#6b7280;font-size:12px;cursor:pointer}
.rt-options{display:flex;flex-wrap:wrap;gap:10px 18px;margin:4px 0 20px}
.rt-options label{font-size:13px;color:#4b5563;cursor:pointer}
.rt-options input{accent-color:#111827}
.rt-actions{display:flex;gap:10px}
.rt-test,.rt-copy,.rt-replace-btn{border:0;border-radius:10px;padding:12px 17px;font-weight:700;cursor:pointer}
.rt-test{background:#111827;color:#fff;flex:1}
.rt-copy{background:#f3f4f6;color:#111827}
.rt-stats{display:flex;gap:10px;margin:20px 0}
.rt-stats div{flex:1;background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:13px;text-align:center}
.rt-stats strong{display:block;font-size:22px;line-height:1.2}
.rt-stats span{display:block;color:#6b7280;font-size:11px;margin-top:4px}
.rt-panel,.rt-replace,.rt-examples{margin-top:16px;border:1px solid #e5e7eb;border-radius:13px;padding:15px;background:#fff}
.rt-panel-title{margin-bottom:10px}
.rt-highlight{min-height:80px;padding:13px;border-radius:9px;background:#f8fafc;font:14px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.rt-highlight mark{background:#fde68a;border-radius:3px;padding:1px 2px}
.rt-matches{display:flex;flex-wrap:wrap;gap:7px}
.rt-match-item{padding:7px 9px;border-radius:8px;background:#f3f4f6;font:12px monospace;word-break:break-all}
.rt-replace-row{display:flex;gap:9px}
.rt-replacement{flex:1;border:1px solid #d1d5db;border-radius:10px;padding:0 12px;height:44px}
.rt-replace-btn{background:#f3f4f6;color:#111827}
.rt-replace-result{margin-top:10px;padding:12px;border-radius:9px;background:#f8fafc;font:13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;min-height:42px}
.rt-example-list{display:flex;flex-wrap:wrap;gap:8px}
.rt-example-list button{border:1px solid #d1d5db;background:#fff;border-radius:8px;padding:7px 10px;font-size:12px;cursor:pointer}
.rt-example-list button:hover{background:#f9fafb}
.rt-note{margin:15px 0 0;color:#6b7280;font-size:11px;line-height:1.6}
@media(max-width:560px){.rt-card{padding:20px;border-radius:16px}.rt-header h2{font-size:21px}.rt-actions,.rt-replace-row{flex-direction:column}.rt-test{flex:auto}.rt-copy,.rt-replace-btn{width:100%}.rt-stats{gap:7px}.rt-stats div{padding:11px 6px}}
